@thinkitive/form-builder
Version:
A drag-and-drop JSON Forms Builder for React
380 lines • 1.45 MB
JavaScript
"use strict";var $R=Object.defineProperty;var RR=(e,t,n)=>t in e?$R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Be=(e,t,n)=>RR(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("react"),Da=require("react-dom");function zT(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const R=zT(V),MR=zT(Da);var kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var em={exports:{}},Hs={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var O0;function IR(){if(O0)return Hs;O0=1;var e=V,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(l,c,u){var d,f={},p=null,h=null;u!==void 0&&(p=""+u),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(h=c.ref);for(d in c)r.call(c,d)&&!a.hasOwnProperty(d)&&(f[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)f[d]===void 0&&(f[d]=c[d]);return{$$typeof:t,type:l,key:p,ref:h,props:f,_owner:i.current}}return Hs.Fragment=n,Hs.jsx=s,Hs.jsxs=s,Hs}var Ys={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var T0;function NR(){return T0||(T0=1,process.env.NODE_ENV!=="production"&&function(){var e=V,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function y(se){if(se===null||typeof se!="object")return null;var De=g&&se[g]||se[m];return typeof De=="function"?De:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(se){{for(var De=arguments.length,Ae=new Array(De>1?De-1:0),Ye=1;Ye<De;Ye++)Ae[Ye-1]=arguments[Ye];x("error",se,Ae)}}function x(se,De,Ae){{var Ye=b.ReactDebugCurrentFrame,vt=Ye.getStackAddendum();vt!==""&&(De+="%s",Ae=Ae.concat([vt]));var Dt=Ae.map(function(wt){return String(wt)});Dt.unshift("Warning: "+De),Function.prototype.apply.call(console[se],console,Dt)}}var w=!1,O=!1,E=!1,C=!1,S=!1,P;P=Symbol.for("react.module.reference");function T(se){return!!(typeof se=="string"||typeof se=="function"||se===r||se===a||S||se===i||se===u||se===d||C||se===h||w||O||E||typeof se=="object"&&se!==null&&(se.$$typeof===p||se.$$typeof===f||se.$$typeof===s||se.$$typeof===l||se.$$typeof===c||se.$$typeof===P||se.getModuleId!==void 0))}function _(se,De,Ae){var Ye=se.displayName;if(Ye)return Ye;var vt=De.displayName||De.name||"";return vt!==""?Ae+"("+vt+")":Ae}function k(se){return se.displayName||"Context"}function $(se){if(se==null)return null;if(typeof se.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof se=="function")return se.displayName||se.name||null;if(typeof se=="string")return se;switch(se){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof se=="object")switch(se.$$typeof){case l:var De=se;return k(De)+".Consumer";case s:var Ae=se;return k(Ae._context)+".Provider";case c:return _(se,se.render,"ForwardRef");case f:var Ye=se.displayName||null;return Ye!==null?Ye:$(se.type)||"Memo";case p:{var vt=se,Dt=vt._payload,wt=vt._init;try{return $(wt(Dt))}catch{return null}}}return null}var M=Object.assign,j=0,W,H,X,U,L,D,B;function z(){}z.__reactDisabledLog=!0;function F(){{if(j===0){W=console.log,H=console.info,X=console.warn,U=console.error,L=console.group,D=console.groupCollapsed,B=console.groupEnd;var se={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:se,log:se,warn:se,error:se,group:se,groupCollapsed:se,groupEnd:se})}j++}}function A(){{if(j--,j===0){var se={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},se,{value:W}),info:M({},se,{value:H}),warn:M({},se,{value:X}),error:M({},se,{value:U}),group:M({},se,{value:L}),groupCollapsed:M({},se,{value:D}),groupEnd:M({},se,{value:B})})}j<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=b.ReactCurrentDispatcher,q;function Y(se,De,Ae){{if(q===void 0)try{throw Error()}catch(vt){var Ye=vt.stack.trim().match(/\n( *(at )?)/);q=Ye&&Ye[1]||""}return`
`+q+se}}var G=!1,K;{var J=typeof WeakMap=="function"?WeakMap:Map;K=new J}function Z(se,De){if(!se||G)return"";{var Ae=K.get(se);if(Ae!==void 0)return Ae}var Ye;G=!0;var vt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Dt;Dt=N.current,N.current=null,F();try{if(De){var wt=function(){throw Error()};if(Object.defineProperty(wt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(wt,[])}catch(Lt){Ye=Lt}Reflect.construct(se,[],wt)}else{try{wt.call()}catch(Lt){Ye=Lt}se.call(wt.prototype)}}else{try{throw Error()}catch(Lt){Ye=Lt}se()}}catch(Lt){if(Lt&&Ye&&typeof Lt.stack=="string"){for(var me=Lt.stack.split(`
`),be=Ye.stack.split(`
`),Re=me.length-1,Xe=be.length-1;Re>=1&&Xe>=0&&me[Re]!==be[Xe];)Xe--;for(;Re>=1&&Xe>=0;Re--,Xe--)if(me[Re]!==be[Xe]){if(Re!==1||Xe!==1)do if(Re--,Xe--,Xe<0||me[Re]!==be[Xe]){var qe=`
`+me[Re].replace(" at new "," at ");return se.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",se.displayName)),typeof se=="function"&&K.set(se,qe),qe}while(Re>=1&&Xe>=0);break}}}finally{G=!1,N.current=Dt,A(),Error.prepareStackTrace=vt}var _t=se?se.displayName||se.name:"",Ut=_t?Y(_t):"";return typeof se=="function"&&K.set(se,Ut),Ut}function ie(se,De,Ae){return Z(se,!1)}function de(se){var De=se.prototype;return!!(De&&De.isReactComponent)}function xe(se,De,Ae){if(se==null)return"";if(typeof se=="function")return Z(se,de(se));if(typeof se=="string")return Y(se);switch(se){case u:return Y("Suspense");case d:return Y("SuspenseList")}if(typeof se=="object")switch(se.$$typeof){case c:return ie(se.render);case f:return xe(se.type,De,Ae);case p:{var Ye=se,vt=Ye._payload,Dt=Ye._init;try{return xe(Dt(vt),De,Ae)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,pe={},Q=b.ReactDebugCurrentFrame;function oe(se){if(se){var De=se._owner,Ae=xe(se.type,se._source,De?De.type:null);Q.setExtraStackFrame(Ae)}else Q.setExtraStackFrame(null)}function te(se,De,Ae,Ye,vt){{var Dt=Function.call.bind(he);for(var wt in se)if(Dt(se,wt)){var me=void 0;try{if(typeof se[wt]!="function"){var be=Error((Ye||"React class")+": "+Ae+" type `"+wt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof se[wt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}me=se[wt](De,wt,Ye,Ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Re){me=Re}me&&!(me instanceof Error)&&(oe(vt),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ye||"React class",Ae,wt,typeof me),oe(null)),me instanceof Error&&!(me.message in pe)&&(pe[me.message]=!0,oe(vt),v("Failed %s type: %s",Ae,me.message),oe(null))}}}var le=Array.isArray;function re(se){return le(se)}function Te(se){{var De=typeof Symbol=="function"&&Symbol.toStringTag,Ae=De&&se[Symbol.toStringTag]||se.constructor.name||"Object";return Ae}}function Se(se){try{return fe(se),!1}catch{return!0}}function fe(se){return""+se}function ge(se){if(Se(se))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Te(se)),fe(se)}var _e=b.ReactCurrentOwner,$e={key:!0,ref:!0,__self:!0,__source:!0},ae,ce;function ue(se){if(he.call(se,"ref")){var De=Object.getOwnPropertyDescriptor(se,"ref").get;if(De&&De.isReactWarning)return!1}return se.ref!==void 0}function Ce(se){if(he.call(se,"key")){var De=Object.getOwnPropertyDescriptor(se,"key").get;if(De&&De.isReactWarning)return!1}return se.key!==void 0}function ye(se,De){typeof se.ref=="string"&&_e.current}function Me(se,De){{var Ae=function(){ae||(ae=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",De))};Ae.isReactWarning=!0,Object.defineProperty(se,"key",{get:Ae,configurable:!0})}}function Ze(se,De){{var Ae=function(){ce||(ce=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",De))};Ae.isReactWarning=!0,Object.defineProperty(se,"ref",{get:Ae,configurable:!0})}}var bt=function(se,De,Ae,Ye,vt,Dt,wt){var me={$$typeof:t,type:se,key:De,ref:Ae,props:wt,_owner:Dt};return me._store={},Object.defineProperty(me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ye}),Object.defineProperty(me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:vt}),Object.freeze&&(Object.freeze(me.props),Object.freeze(me)),me};function Ke(se,De,Ae,Ye,vt){{var Dt,wt={},me=null,be=null;Ae!==void 0&&(ge(Ae),me=""+Ae),Ce(De)&&(ge(De.key),me=""+De.key),ue(De)&&(be=De.ref,ye(De,vt));for(Dt in De)he.call(De,Dt)&&!$e.hasOwnProperty(Dt)&&(wt[Dt]=De[Dt]);if(se&&se.defaultProps){var Re=se.defaultProps;for(Dt in Re)wt[Dt]===void 0&&(wt[Dt]=Re[Dt])}if(me||be){var Xe=typeof se=="function"?se.displayName||se.name||"Unknown":se;me&&Me(wt,Xe),be&&Ze(wt,Xe)}return bt(se,me,be,vt,Ye,_e.current,wt)}}var Ne=b.ReactCurrentOwner,We=b.ReactDebugCurrentFrame;function rt(se){if(se){var De=se._owner,Ae=xe(se.type,se._source,De?De.type:null);We.setExtraStackFrame(Ae)}else We.setExtraStackFrame(null)}var Tt;Tt=!1;function nt(se){return typeof se=="object"&&se!==null&&se.$$typeof===t}function Et(){{if(Ne.current){var se=$(Ne.current.type);if(se)return`
Check the render method of \``+se+"`."}return""}}function $n(se){return""}var cn={};function yn(se){{var De=Et();if(!De){var Ae=typeof se=="string"?se:se.displayName||se.name;Ae&&(De=`
Check the top-level render call using <`+Ae+">.")}return De}}function Ve(se,De){{if(!se._store||se._store.validated||se.key!=null)return;se._store.validated=!0;var Ae=yn(De);if(cn[Ae])return;cn[Ae]=!0;var Ye="";se&&se._owner&&se._owner!==Ne.current&&(Ye=" It was passed a child from "+$(se._owner.type)+"."),rt(se),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ae,Ye),rt(null)}}function Ct(se,De){{if(typeof se!="object")return;if(re(se))for(var Ae=0;Ae<se.length;Ae++){var Ye=se[Ae];nt(Ye)&&Ve(Ye,De)}else if(nt(se))se._store&&(se._store.validated=!0);else if(se){var vt=y(se);if(typeof vt=="function"&&vt!==se.entries)for(var Dt=vt.call(se),wt;!(wt=Dt.next()).done;)nt(wt.value)&&Ve(wt.value,De)}}}function je(se){{var De=se.type;if(De==null||typeof De=="string")return;var Ae;if(typeof De=="function")Ae=De.propTypes;else if(typeof De=="object"&&(De.$$typeof===c||De.$$typeof===f))Ae=De.propTypes;else return;if(Ae){var Ye=$(De);te(Ae,se.props,"prop",Ye,se)}else if(De.PropTypes!==void 0&&!Tt){Tt=!0;var vt=$(De);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",vt||"Unknown")}typeof De.getDefaultProps=="function"&&!De.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(se){{for(var De=Object.keys(se.props),Ae=0;Ae<De.length;Ae++){var Ye=De[Ae];if(Ye!=="children"&&Ye!=="key"){rt(se),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ye),rt(null);break}}se.ref!==null&&(rt(se),v("Invalid attribute `ref` supplied to `React.Fragment`."),rt(null))}}var ot={};function mt(se,De,Ae,Ye,vt,Dt){{var wt=T(se);if(!wt){var me="";(se===void 0||typeof se=="object"&&se!==null&&Object.keys(se).length===0)&&(me+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var be=$n();be?me+=be:me+=Et();var Re;se===null?Re="null":re(se)?Re="array":se!==void 0&&se.$$typeof===t?(Re="<"+($(se.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):Re=typeof se,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Re,me)}var Xe=Ke(se,De,Ae,vt,Dt);if(Xe==null)return Xe;if(wt){var qe=De.children;if(qe!==void 0)if(Ye)if(re(qe)){for(var _t=0;_t<qe.length;_t++)Ct(qe[_t],se);Object.freeze&&Object.freeze(qe)}else v("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 Ct(qe,se)}if(he.call(De,"key")){var Ut=$(se),Lt=Object.keys(De).filter(function(ou){return ou!=="key"}),ko=Lt.length>0?"{key: someKey, "+Lt.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[Ut+ko]){var qp=Lt.length>0?"{"+Lt.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,ko,Ut,qp,Ut),ot[Ut+ko]=!0}}return se===r?He(Xe):je(Xe),Xe}}function It(se,De,Ae){return mt(se,De,Ae,!0)}function Wn(se,De,Ae){return mt(se,De,Ae,!1)}var hr=Wn,Dr=It;Ys.Fragment=r,Ys.jsx=hr,Ys.jsxs=Dr}()),Ys}process.env.NODE_ENV==="production"?em.exports=IR():em.exports=NR();var I=em.exports;function To(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(null,arguments)}function AR(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function jR(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var LR=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jR(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=AR(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Un="-ms-",ad="-moz-",Nt="-webkit-",WT="comm",pg="rule",hg="decl",FR="@import",qT="@keyframes",VR="@layer",BR=Math.abs,Qd=String.fromCharCode,zR=Object.assign;function WR(e,t){return jn(e,0)^45?(((t<<2^jn(e,0))<<2^jn(e,1))<<2^jn(e,2))<<2^jn(e,3):0}function UT(e){return e.trim()}function qR(e,t){return(e=t.exec(e))?e[0]:e}function At(e,t,n){return e.replace(t,n)}function tm(e,t){return e.indexOf(t)}function jn(e,t){return e.charCodeAt(t)|0}function Ll(e,t,n){return e.slice(t,n)}function fo(e){return e.length}function mg(e){return e.length}function su(e,t){return t.push(e),e}function UR(e,t){return e.map(t).join("")}var Jd=1,Ya=1,HT=0,sr=0,En=0,ys="";function ef(e,t,n,r,i,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Jd,column:Ya,length:s,return:""}}function Gs(e,t){return zR(ef("",null,null,"",null,null,0),e,{length:-e.length},t)}function HR(){return En}function YR(){return En=sr>0?jn(ys,--sr):0,Ya--,En===10&&(Ya=1,Jd--),En}function vr(){return En=sr<HT?jn(ys,sr++):0,Ya++,En===10&&(Ya=1,Jd++),En}function xo(){return jn(ys,sr)}function Fu(){return sr}function uc(e,t){return Ll(ys,e,t)}function Fl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function YT(e){return Jd=Ya=1,HT=fo(ys=e),sr=0,[]}function GT(e){return ys="",e}function Vu(e){return UT(uc(sr-1,nm(e===91?e+2:e===40?e+1:e)))}function GR(e){for(;(En=xo())&&En<33;)vr();return Fl(e)>2||Fl(En)>3?"":" "}function KR(e,t){for(;--t&&vr()&&!(En<48||En>102||En>57&&En<65||En>70&&En<97););return uc(e,Fu()+(t<6&&xo()==32&&vr()==32))}function nm(e){for(;vr();)switch(En){case e:return sr;case 34:case 39:e!==34&&e!==39&&nm(En);break;case 40:e===41&&nm(e);break;case 92:vr();break}return sr}function XR(e,t){for(;vr()&&e+En!==57;)if(e+En===84&&xo()===47)break;return"/*"+uc(t,sr-1)+"*"+Qd(e===47?e:vr())}function ZR(e){for(;!Fl(xo());)vr();return uc(e,sr)}function QR(e){return GT(Bu("",null,null,null,[""],e=YT(e),0,[0],e))}function Bu(e,t,n,r,i,a,s,l,c){for(var u=0,d=0,f=s,p=0,h=0,g=0,m=1,y=1,b=1,v=0,x="",w=i,O=a,E=r,C=x;y;)switch(g=v,v=vr()){case 40:if(g!=108&&jn(C,f-1)==58){tm(C+=At(Vu(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Vu(v);break;case 9:case 10:case 13:case 32:C+=GR(g);break;case 92:C+=KR(Fu()-1,7);continue;case 47:switch(xo()){case 42:case 47:su(JR(XR(vr(),Fu()),t,n),c);break;default:C+="/"}break;case 123*m:l[u++]=fo(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+d:b==-1&&(C=At(C,/\f/g,"")),h>0&&fo(C)-f&&su(h>32?E0(C+";",r,n,f-1):E0(At(C," ","")+";",r,n,f-2),c);break;case 59:C+=";";default:if(su(E=S0(C,t,n,u,d,i,l,x,w=[],O=[],f),a),v===123)if(d===0)Bu(C,t,E,E,w,a,f,l,O);else switch(p===99&&jn(C,3)===110?100:p){case 100:case 108:case 109:case 115:Bu(e,E,E,r&&su(S0(e,E,E,0,0,i,l,x,i,w=[],f),O),i,O,f,l,r?w:O);break;default:Bu(C,E,E,E,[""],O,0,l,O)}}u=d=h=0,m=b=1,x=C="",f=s;break;case 58:f=1+fo(C),h=g;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&YR()==125)continue}switch(C+=Qd(v),v*m){case 38:b=d>0?1:(C+="\f",-1);break;case 44:l[u++]=(fo(C)-1)*b,b=1;break;case 64:xo()===45&&(C+=Vu(vr())),p=xo(),d=f=fo(x=C+=ZR(Fu())),v++;break;case 45:g===45&&fo(C)==2&&(m=0)}}return a}function S0(e,t,n,r,i,a,s,l,c,u,d){for(var f=i-1,p=i===0?a:[""],h=mg(p),g=0,m=0,y=0;g<r;++g)for(var b=0,v=Ll(e,f+1,f=BR(m=s[g])),x=e;b<h;++b)(x=UT(m>0?p[b]+" "+v:At(v,/&\f/g,p[b])))&&(c[y++]=x);return ef(e,t,n,i===0?pg:l,c,u,d)}function JR(e,t,n){return ef(e,t,n,WT,Qd(HR()),Ll(e,2,-2),0)}function E0(e,t,n,r){return ef(e,t,n,hg,Ll(e,0,r),Ll(e,r+1,-1),r)}function La(e,t){for(var n="",r=mg(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function eM(e,t,n,r){switch(e.type){case VR:if(e.children.length)break;case FR:case hg:return e.return=e.return||e.value;case WT:return"";case qT:return e.return=e.value+"{"+La(e.children,r)+"}";case pg:e.value=e.props.join(",")}return fo(n=La(e.children,r))?e.return=e.value+"{"+n+"}":""}function tM(e){var t=mg(e);return function(n,r,i,a){for(var s="",l=0;l<t;l++)s+=e[l](n,r,i,a)||"";return s}}function nM(e){return function(t){t.root||(t=t.return)&&e(t)}}function KT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rM=function(t,n,r){for(var i=0,a=0;i=a,a=xo(),i===38&&a===12&&(n[r]=1),!Fl(a);)vr();return uc(t,sr)},oM=function(t,n){var r=-1,i=44;do switch(Fl(i)){case 0:i===38&&xo()===12&&(n[r]=1),t[r]+=rM(sr-1,n,r);break;case 2:t[r]+=Vu(i);break;case 4:if(i===44){t[++r]=xo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Qd(i)}while(i=vr());return t},iM=function(t,n){return GT(oM(YT(t),n))},C0=new WeakMap,aM=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!C0.get(r))&&!i){C0.set(t,!0);for(var a=[],s=iM(n,a),l=r.props,c=0,u=0;c<s.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?s[c].replace(/&\f/g,l[d]):l[d]+" "+s[c]}}},sM=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function XT(e,t){switch(WR(e,t)){case 5103:return Nt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Nt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Nt+e+ad+e+Un+e+e;case 6828:case 4268:return Nt+e+Un+e+e;case 6165:return Nt+e+Un+"flex-"+e+e;case 5187:return Nt+e+At(e,/(\w+).+(:[^]+)/,Nt+"box-$1$2"+Un+"flex-$1$2")+e;case 5443:return Nt+e+Un+"flex-item-"+At(e,/flex-|-self/,"")+e;case 4675:return Nt+e+Un+"flex-line-pack"+At(e,/align-content|flex-|-self/,"")+e;case 5548:return Nt+e+Un+At(e,"shrink","negative")+e;case 5292:return Nt+e+Un+At(e,"basis","preferred-size")+e;case 6060:return Nt+"box-"+At(e,"-grow","")+Nt+e+Un+At(e,"grow","positive")+e;case 4554:return Nt+At(e,/([^-])(transform)/g,"$1"+Nt+"$2")+e;case 6187:return At(At(At(e,/(zoom-|grab)/,Nt+"$1"),/(image-set)/,Nt+"$1"),e,"")+e;case 5495:case 3959:return At(e,/(image-set\([^]*)/,Nt+"$1$`$1");case 4968:return At(At(e,/(.+:)(flex-)?(.*)/,Nt+"box-pack:$3"+Un+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Nt+e+e;case 4095:case 3583:case 4068:case 2532:return At(e,/(.+)-inline(.+)/,Nt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(fo(e)-1-t>6)switch(jn(e,t+1)){case 109:if(jn(e,t+4)!==45)break;case 102:return At(e,/(.+:)(.+)-([^]+)/,"$1"+Nt+"$2-$3$1"+ad+(jn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tm(e,"stretch")?XT(At(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jn(e,t+1)!==115)break;case 6444:switch(jn(e,fo(e)-3-(~tm(e,"!important")&&10))){case 107:return At(e,":",":"+Nt)+e;case 101:return At(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Nt+(jn(e,14)===45?"inline-":"")+"box$3$1"+Nt+"$2$3$1"+Un+"$2box$3")+e}break;case 5936:switch(jn(e,t+11)){case 114:return Nt+e+Un+At(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nt+e+Un+At(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nt+e+Un+At(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Nt+e+Un+e+e}return e}var lM=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case hg:t.return=XT(t.value,t.length);break;case qT:return La([Gs(t,{value:At(t.value,"@","@"+Nt)})],i);case pg:if(t.length)return UR(t.props,function(a){switch(qR(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return La([Gs(t,{props:[At(a,/:(read-\w+)/,":"+ad+"$1")]})],i);case"::placeholder":return La([Gs(t,{props:[At(a,/:(plac\w+)/,":"+Nt+"input-$1")]}),Gs(t,{props:[At(a,/:(plac\w+)/,":"+ad+"$1")]}),Gs(t,{props:[At(a,/:(plac\w+)/,Un+"input-$1")]})],i)}return""})}},cM=[lM],uM=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||cM,a={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)a[y[b]]=!0;l.push(m)});var c,u=[aM,sM];{var d,f=[eM,nM(function(m){d.insert(m)})],p=tM(u.concat(i,f)),h=function(y){return La(QR(y),p)};c=function(y,b,v,x){d=v,h(y?y+"{"+b.styles+"}":b.styles),x&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new LR({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return g.sheet.hydrate(l),g},rm={exports:{}},Ft={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var P0;function dM(){if(P0)return Ft;P0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=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,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(O){if(typeof O=="object"&&O!==null){var E=O.$$typeof;switch(E){case t:switch(O=O.type,O){case c:case u:case r:case a:case i:case f:return O;default:switch(O=O&&O.$$typeof,O){case l:case d:case g:case h:case s:return O;default:return E}}case n:return E}}}function w(O){return x(O)===u}return Ft.AsyncMode=c,Ft.ConcurrentMode=u,Ft.ContextConsumer=l,Ft.ContextProvider=s,Ft.Element=t,Ft.ForwardRef=d,Ft.Fragment=r,Ft.Lazy=g,Ft.Memo=h,Ft.Portal=n,Ft.Profiler=a,Ft.StrictMode=i,Ft.Suspense=f,Ft.isAsyncMode=function(O){return w(O)||x(O)===c},Ft.isConcurrentMode=w,Ft.isContextConsumer=function(O){return x(O)===l},Ft.isContextProvider=function(O){return x(O)===s},Ft.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Ft.isForwardRef=function(O){return x(O)===d},Ft.isFragment=function(O){return x(O)===r},Ft.isLazy=function(O){return x(O)===g},Ft.isMemo=function(O){return x(O)===h},Ft.isPortal=function(O){return x(O)===n},Ft.isProfiler=function(O){return x(O)===a},Ft.isStrictMode=function(O){return x(O)===i},Ft.isSuspense=function(O){return x(O)===f},Ft.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===u||O===a||O===i||O===f||O===p||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===h||O.$$typeof===s||O.$$typeof===l||O.$$typeof===d||O.$$typeof===y||O.$$typeof===b||O.$$typeof===v||O.$$typeof===m)},Ft.typeOf=x,Ft}var Vt={};/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _0;function fM(){return _0||(_0=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=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,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===u||Z===a||Z===i||Z===f||Z===p||typeof Z=="object"&&Z!==null&&(Z.$$typeof===g||Z.$$typeof===h||Z.$$typeof===s||Z.$$typeof===l||Z.$$typeof===d||Z.$$typeof===y||Z.$$typeof===b||Z.$$typeof===v||Z.$$typeof===m)}function w(Z){if(typeof Z=="object"&&Z!==null){var ie=Z.$$typeof;switch(ie){case t:var de=Z.type;switch(de){case c:case u:case r:case a:case i:case f:return de;default:var xe=de&&de.$$typeof;switch(xe){case l:case d:case g:case h:case s:return xe;default:return ie}}case n:return ie}}}var O=c,E=u,C=l,S=s,P=t,T=d,_=r,k=g,$=h,M=n,j=a,W=i,H=f,X=!1;function U(Z){return X||(X=!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.")),L(Z)||w(Z)===c}function L(Z){return w(Z)===u}function D(Z){return w(Z)===l}function B(Z){return w(Z)===s}function z(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function F(Z){return w(Z)===d}function A(Z){return w(Z)===r}function N(Z){return w(Z)===g}function q(Z){return w(Z)===h}function Y(Z){return w(Z)===n}function G(Z){return w(Z)===a}function K(Z){return w(Z)===i}function J(Z){return w(Z)===f}Vt.AsyncMode=O,Vt.ConcurrentMode=E,Vt.ContextConsumer=C,Vt.ContextProvider=S,Vt.Element=P,Vt.ForwardRef=T,Vt.Fragment=_,Vt.Lazy=k,Vt.Memo=$,Vt.Portal=M,Vt.Profiler=j,Vt.StrictMode=W,Vt.Suspense=H,Vt.isAsyncMode=U,Vt.isConcurrentMode=L,Vt.isContextConsumer=D,Vt.isContextProvider=B,Vt.isElement=z,Vt.isForwardRef=F,Vt.isFragment=A,Vt.isLazy=N,Vt.isMemo=q,Vt.isPortal=Y,Vt.isProfiler=G,Vt.isStrictMode=K,Vt.isSuspense=J,Vt.isValidElementType=x,Vt.typeOf=w}()),Vt}process.env.NODE_ENV==="production"?rm.exports=dM():rm.exports=fM();var pM=rm.exports,ZT=pM,hM={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mM={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},QT={};QT[ZT.ForwardRef]=hM;QT[ZT.Memo]=mM;var gM=!0;function JT(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var gg=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||gM===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},yg=function(t,n,r){gg(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function yM(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var bM={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},vM=/[A-Z]|^ms/g,wM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eS=function(t){return t.charCodeAt(1)===45},k0=function(t){return t!=null&&typeof t!="boolean"},Up=KT(function(e){return eS(e)?e:e.replace(vM,"-$&").toLowerCase()}),D0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(wM,function(r,i,a){return po={name:i,styles:a,next:po},i})}return bM[t]!==1&&!eS(t)&&typeof n=="number"&&n!==0?n+"px":n};function Vl(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return po={name:i.name,styles:i.styles,next:po},i.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)po={name:s.name,styles:s.styles,next:po},s=s.next;var l=a.styles+";";return l}return xM(e,t,n)}case"function":{if(e!==void 0){var c=po,u=n(e);return po=c,Vl(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function xM(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Vl(e,t,n[i])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?r+=a+"{"+t[l]+"}":k0(l)&&(r+=Up(a)+":"+D0(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)k0(s[c])&&(r+=Up(a)+":"+D0(a,s[c])+";");else{var u=Vl(e,t,s);switch(a){case"animation":case"animationName":{r+=Up(a)+":"+u+";";break}default:r+=a+"{"+u+"}"}}}return r}var $0=/label:\s*([^\s;{]+)\s*(;|$)/g,po;function dc(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";po=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=Vl(n,t,a);else{var s=a;i+=s[0]}for(var l=1;l<e.length;l++)if(i+=Vl(n,t,e[l]),r){var c=a;i+=c[l]}$0.lastIndex=0;for(var u="",d;(d=$0.exec(i))!==null;)u+="-"+d[1];var f=yM(i)+u;return{name:f,styles:i,next:po}}var OM=function(t){return t()},tS=R.useInsertionEffect?R.useInsertionEffect:!1,nS=tS||OM,R0=tS||R.useLayoutEffect,rS=R.createContext(typeof HTMLElement<"u"?uM({key:"css"}):null);rS.Provider;var bg=function(t){return V.forwardRef(function(n,r){var i=V.useContext(rS);return t(n,i,r)})},fc=R.createContext({}),vg={}.hasOwnProperty,om="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",TM=function(t,n){var r={};for(var i in n)vg.call(n,i)&&(r[i]=n[i]);return r[om]=t,r},SM=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return gg(n,r,i),nS(function(){return yg(n,r,i)}),null},EM=bg(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[om],a=[r],s="";typeof e.className=="string"?s=JT(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=dc(a,void 0,R.useContext(fc));s+=t.key+"-"+l.name;var c={};for(var u in e)vg.call(e,u)&&u!=="css"&&u!==om&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),R.createElement(R.Fragment,null,R.createElement(SM,{cache:t,serialized:l,isStringTag:typeof i=="string"}),R.createElement(i,c))}),CM=EM,M0=function(t,n){var r=arguments;if(n==null||!vg.call(n,"css"))return R.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=CM,a[1]=TM(t,n);for(var s=2;s<i;s++)a[s]=r[s];return R.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(M0||(M0={}));var PM=bg(function(e,t){var n=e.styles,r=dc([n],void 0,R.useContext(fc)),i=R.useRef();return R0(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",a),s.hydrate([c])),i.current=[s,l],function(){s.flush()}},[t]),R0(function(){var a=i.current,s=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&yg(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function wg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dc(t)}function pc(){var e=wg.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var _M=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kM=KT(function(e){return _M.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),DM=kM,$M=function(t){return t!=="theme"},I0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?DM:$M},N0=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},RM=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return gg(n,r,i),nS(function(){return yg(n,r,i)}),null},MM=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var l=N0(t,n,r),c=l||I0(i),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,g=1;g<h;g++)f.push(d[g],p[g])}var m=bg(function(y,b,v){var x=u&&y.as||i,w="",O=[],E=y;if(y.theme==null){E={};for(var C in y)E[C]=y[C];E.theme=R.useContext(fc)}typeof y.className=="string"?w=JT(b.registered,O,y.className):y.className!=null&&(w=y.className+" ");var S=dc(f.concat(O),b.registered,E);w+=b.key+"-"+S.name,s!==void 0&&(w+=" "+s);var P=u&&l===void 0?I0(x):c,T={};for(var _ in y)u&&_==="as"||P(_)&&(T[_]=y[_]);return T.className=w,v&&(T.ref=v),R.createElement(R.Fragment,null,R.createElement(RM,{cache:b,serialized:S,isStringTag:typeof x=="string"}),R.createElement(x,T))});return m.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=f,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+s}}),m.withComponent=function(y,b){var v=e(y,ee({},n,b,{shouldForwardProp:N0(m,b,!0)}));return v.apply(void 0,f)},m}},IM=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],im=MM.bind(null);IM.forEach(function(e){im[e]=im(e)});var am={exports:{}},lu={exports:{}},Bt={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var A0;function NM(){if(A0)return Bt;A0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=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,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(O){if(typeof O=="object"&&O!==null){var E=O.$$typeof;switch(E){case t:switch(O=O.type,O){case c:case u:case r:case a:case i:case f:return O;default:switch(O=O&&O.$$typeof,O){case l:case d:case g:case h:case s:return O;default:return E}}case n:return E}}}function w(O){return x(O)===u}return Bt.AsyncMode=c,Bt.ConcurrentMode=u,Bt.ContextConsumer=l,Bt.ContextProvider=s,Bt.Element=t,Bt.ForwardRef=d,Bt.Fragment=r,Bt.Lazy=g,Bt.Memo=h,Bt.Portal=n,Bt.Profiler=a,Bt.StrictMode=i,Bt.Suspense=f,Bt.isAsyncMode=function(O){return w(O)||x(O)===c},Bt.isConcurrentMode=w,Bt.isContextConsumer=function(O){return x(O)===l},Bt.isContextProvider=function(O){return x(O)===s},Bt.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Bt.isForwardRef=function(O){return x(O)===d},Bt.isFragment=function(O){return x(O)===r},Bt.isLazy=function(O){return x(O)===g},Bt.isMemo=function(O){return x(O)===h},Bt.isPortal=function(O){return x(O)===n},Bt.isProfiler=function(O){return x(O)===a},Bt.isStrictMode=function(O){return x(O)===i},Bt.isSuspense=function(O){return x(O)===f},Bt.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===u||O===a||O===i||O===f||O===p||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===h||O.$$typeof===s||O.$$typeof===l||O.$$typeof===d||O.$$typeof===y||O.$$typeof===b||O.$$typeof===v||O.$$typeof===m)},Bt.typeOf=x,Bt}var zt={};/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var j0;function AM(){return j0||(j0=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=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,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===u||Z===a||Z===i||Z===f||Z===p||typeof Z=="object"&&Z!==null&&(Z.$$typeof===g||Z.$$typeof===h||Z.$$typeof===s||Z.$$typeof===l||Z.$$typeof===d||Z.$$typeof===y||Z.$$typeof===b||Z.$$typeof===v||Z.$$typeof===m)}function w(Z){if(typeof Z=="object"&&Z!==null){var ie=Z.$$typeof;switch(ie){case t:var de=Z.type;switch(de){case c:case u:case r:case a:case i:case f:return de;default:var xe=de&&de.$$typeof;switch(xe){case l:case d:case g:case h:case s:return xe;default:return ie}}case n:return ie}}}var O=c,E=u,C=l,S=s,P=t,T=d,_=r,k=g,$=h,M=n,j=a,W=i,H=f,X=!1;function U(Z){return X||(X=!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.")),L(Z)||w(Z)===c}function L(Z){return w(Z)===u}function D(Z){return w(Z)===l}function B(Z){return w(Z)===s}function z(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function F(Z){return w(Z)===d}function A(Z){return w(Z)===r}function N(Z){return w(Z)===g}function q(Z){return w(Z)===h}function Y(Z){return w(Z)===n}function G(Z){return w(Z)===a}function K(Z){return w(Z)===i}function J(Z){return w(Z)===f}zt.AsyncMode=O,zt.ConcurrentMode=E,zt.ContextConsumer=C,zt.ContextProvider=S,zt.Element=P,zt.ForwardRef=T,zt.Fragment=_,zt.Lazy=k,zt.Memo=$,zt.Portal=M,zt.Profiler=j,zt.StrictMode=W,zt.Suspense=H,zt.isAsyncMode=U,zt.isConcurrentMode=L,zt.isContextConsumer=D,zt.isContextProvider=B,zt.isElement=z,zt.isForwardRef=F,zt.isFragment=A,zt.isLazy=N,zt.isMemo=q,zt.isPortal=Y,zt.isProfiler=G,zt.isStrictMode=K,zt.isSuspense=J,zt.isValidElementType=x,zt.typeOf=w}()),zt}var L0;function oS(){return L0||(L0=1,process.env.NODE_ENV==="production"?lu.exports=NM():lu.exports=AM()),lu.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Hp,F0;function jM(){if(F0)return Hp;F0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(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 s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(d){return s[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 Hp=i()?Object.assign:function(a,s){for(var l,c=r(a),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var p=0;p<u.length;p++)n.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},Hp}var Yp,V0;function xg(){if(V0)return Yp;V0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Yp=e,Yp}var Gp,B0;function iS(){return B0||(B0=1,Gp=Function.call.bind(Object.prototype.hasOwnProperty)),Gp}var Kp,z0;function LM(){if(z0)return Kp;z0=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=xg(),n={},r=iS();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var f;try{if(typeof a[d]!="function"){var p=Error((c||"React class")+": "+l+" 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 p.name="Invariant Violation",p}f=a[d](s,d,c,l,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Kp=i,Kp}var Xp,W0;function FM(){if(W0)return Xp;W0=1;var e=oS(),t=jM(),n=xg(),r=iS(),i=LM(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return Xp=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(L){var D=L&&(u&&L[u]||L[d]);if(typeof D=="function")return D}var p="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:x,element:w(),elementType:O(),instanceOf:E,node:T(),objectOf:S,oneOf:C,oneOfType:P,shape:k,exact:$};function g(L,D){return L===D?L!==0||1/L===1/D:L!==L&&D!==D}function m(L,D){this.message=L,this.data=D&&typeof D=="object"?D:{},this.stack=""}m.prototype=Error.prototype;function y(L){if(process.env.NODE_ENV!=="production")var D={},B=0;function z(A,N,q,Y,G,K,J){if(Y=Y||p,K=K||q,J!==n){if(c){var Z=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 Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ie=Y+":"+q;!D[ie]&&B<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[ie]=!0,B++)}}return N[q]==null?A?N[q]===null?new m("The "+G+" `"+K+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new m("The "+G+" `"+K+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:L(N,q,Y,G,K)}var F=z.bind(null,!1);return F.isRequired=z.bind(null,!0),F}function b(L){function D(B,z,F,A,N,q){var Y=B[z],G=W(Y);if(G!==L){var K=H(Y);return new m("Invalid "+A+" `"+N+"` of type "+("`"+K+"` supplied to `"+F+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return y(D)}function v(){return y(s)}function x(L){function D(B,z,F,A,N){if(typeof L!="function")return new m("Property `"+N+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var q=B[z];if(!Array.isArray(q)){var Y=W(q);return new m("Invalid "+A+" `"+N+"` of type "+("`"+Y+"` supplied to `"+F+"`, expected an array."))}for(var G=0;G<q.length;G++){var K=L(q,G,F,A,N+"["+G+"]",n);if(K instanceof Error)return K}return null}return y(D)}function w(){function L(D,B,z,F,A){var N=D[B];if(!l(N)){var q=W(N);return new m("Invalid "+F+" `"+A+"` of type "+("`"+q+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return y(L)}function O(){function L(D,B,z,F,A){var N=D[B];if(!e.isValidElementType(N)){var q=W(N);return new m("Invalid "+F+" `"+A+"` of type "+("`"+q+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return y(L)}function E(L){function D(B,z,F,A,N){if(!(B[z]instanceof L)){var q=L.name||p,Y=U(B[z]);return new m("Invalid "+A+" `"+N+"` of type "+("`"+Y+"` supplied to `"+F+"`, expected ")+("instance of `"+q+"`."))}return null}return y(D)}function C(L){if(!Array.isArray(L))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.")),s;function D(B,z,F,A,N){for(var q=B[z],Y=0;Y<L.length;Y++)if(g(q,L[Y]))return null;var G=JSON.stringify(L,function(J,Z){var ie=H(Z);return ie==="symbol"?String(Z):Z});return new m("Invalid "+A+" `"+N+"` of value `"+String(q)+"` "+("supplied to `"+F+"`, expected one of "+G+"."))}return y(D)}function S(L){function D(B,z,F,A,N){if(typeof L!="function")return new m("Property `"+N+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var q=B[z],Y=W(q);if(Y!=="object")return new m("Invalid "+A+" `"+N+"` of type "+("`"+Y+"` supplied to `"+F+"`, expected an object."));for(var G in q)if(r(q,G)){var K=L(q,G,F,A,N+"."+G,n);if(K instanceof Error)return K}return null}return y(D)}function P(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var D=0;D<L.length;D++){var B=L[D];if(typeof B!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+X(B)+" at index "+D+"."),s}function z(F,A,N,q,Y){for(var G=[],K=0;K<L.length;K++){var J=L[K],Z=J(F,A,N,q,Y,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&G.push(Z.data.expectedType)}var ie=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new m("Invalid "+q+" `"+Y+"` supplied to "+("`"+N+"`"+ie+"."))}return y(z)}function T(){function L(D,B,z,F,A){return M(D[B])?null:new m("Invalid "+F+" `"+A+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return y(L)}function _(L,D,B,z,F){return new m((L||"React class")+": "+D+" type `"+B+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function k(L){function D(B,z,F,A,N){var q=B[z],Y=W(q);if(Y!=="object")return new m("Invalid "+A+" `"+N+"` of type `"+Y+"` "+("supplied to `"+F+"`, expected `object`."));for(var G in L){var K=L[G];if(typeof K!="function")return _(F,A,N,G,H(K));var J=K(q,G,F,A,N+"."+G,n);if(J)return J}return null}return y(D)}function $(L){function D(B,z,F,A,N){var q=B[z],Y=W(q);if(Y!=="object")return new m("Invalid "+A+" `"+N+"` of type `"+Y+"` "+("supplied to `"+F+"`, expected `object`."));var G=t({},B[z],L);for(var K in G){var J=L[K];if(r(L,K)&&typeof J!="function")return _(F,A,N,K,H(J));if(!J)return new m("Invalid "+A+" `"+N+"` key `"+K+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(B[z],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var Z=J(q,K,F,A,N+"."+K,n);if(Z)return Z}return null}return y(D)}function M(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(M);if(L===null||l(L))return!0;var D=f(L);if(D){var B=D.call(L),z;if(D!==L.entries){for(;!(z=B.next()).done;)if(!M(z.value))return!1}else for(;!(z=B.next()).done;){var F=z.value;if(F&&!M(F[1]))return!1}}else return!1;return!0;default:return!1}}function j(L,D){return L==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function W(L){var D=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":j(D,L)?"symbol":D}function H(L){if(typeof L>"u"||L===null)return""+L;var D=W(L);if(D==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return D}function X(L){var D=H(L);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function U(L){return!L.constructor||!L.constructor.name?p:L.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Xp}var Zp,q0;function VM(){if(q0)return Zp;q0=1;var e=xg();function t(){}function n(){}return n.resetWarningCache=t,Zp=function(){function r(s,l,c,u,d,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Zp}if(process.env.NODE_ENV!=="production"){var BM=oS(),zM=!0;am.exports=FM()(BM.isElement,zM)}else am.exports=VM()();var WM=am.exports;const o=kt(WM);function qM(e){return e==null||Object.keys(e).length===0}function Og(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(qM(i)?n:i):t;return I.jsx(PM,{styles:r})}process.env.NODE_ENV!=="production"&&(Og.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});/**
* @mui/styled-engine v7.2.0
*
* @license MIT
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function aS(e,t){const n=im(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
`)):r.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function UM(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const U0=[];function oi(e){return U0[0]=e,dc(U0)}var sm={exports:{}},Ht={};/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var H0;function HM(){if(H0)return Ht;H0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function g(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case e:switch(m=m.type,m){case n:case i:case r:case c:case u:case p:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case f:case d:return m;case a:return m;default:return y}}case t:return y}}}return Ht.ContextConsumer=a,Ht.ContextProvider=s,Ht.Element=e,Ht.ForwardRef=l,Ht.Fragment=n,Ht.Lazy=f,Ht.Memo=d,Ht.Portal=t,Ht.Profiler=i,Ht.StrictMode=r,Ht.Suspense=c,Ht.SuspenseList=u,Ht.isContextConsumer=function(m){return g(m)===a},Ht.isContextProvider=function(m){return g(m)===s},Ht.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Ht.isForwardRef=function(m){return g(m)===l},Ht.isFragment=function(m){return g(m)===n},Ht.isLazy=function(m){return g(m)===f},Ht.isMemo=function(m){return g(m)===d},Ht.isPortal=function(m){return g(m)===t},Ht.isProfiler=function(m){return g(m)===i},Ht.isStrictMode=function(m){return g(m)===r},Ht.isSuspense=function(m){return g(m)===c},Ht.isSuspenseList=function(m){return g(m)===u},Ht.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===r||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},Ht.typeOf=g,Ht}var Yt={};/**
* @license React
* react-is.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Y0;function YM(){return Y0||(Y0=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case t:switch(m=m.type,m){case r:case a:case i:case u:case d:case h:return m;default:switch(m=m&&m.$$typeof,m){case l:case c:case p:case f:return m;case s:return m;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Yt.ContextConsumer=s,Yt.ContextProvider=l,Yt.Element=t,Yt.ForwardRef=c,Yt.Fragment=r,Yt.Lazy=p,Yt.Memo=f,Yt.Portal=n,Yt.Profiler=a,Yt.StrictMode=i,Yt.Suspense=u,Yt.SuspenseList=d,Yt.isContextConsumer=function(m){return e(m)===s},Yt.isContextProvider=function(m){return e(m)===l},Yt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Yt.isForwardRef=function(m){return e(m)===c},Yt.isFragment=function(m){return e(m)===r},Yt.isLazy=function(m){return e(m)===p},Yt.isMemo=function(m){return e(m)===f},Yt.isPortal=function(m){return e(m)===n},Yt.isProfiler=function(m){return e(m)===a},Yt.isStrictMode=function(m){return e(m)===i},Yt.isSuspense=function(m){return e(m)===u},Yt.isSuspenseList=function(m){return e(m)===d},Yt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===a||m===i||m===u||m===d||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===l||m.$$typeof===s||m.$$typeof===c||m.$$typeof===g||m.getModuleId!==void 0)},Yt.typeOf=e}()),Yt}process.env.NODE_ENV==="production"?sm.exports=HM():sm.exports=YM();var Lo=sm.exports;function ho(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 sS(e){if(R.isValidElement(e)||Lo.isValidElementType(e)||!ho(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=sS(e[n])}),t}function Rn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ho(e)&&ho(t)&&Object.keys(t).forEach(i=>{R.isValidElement(t[i])||Lo.isValidElementType(t[i])?r[i]=t[i]:ho(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&ho(e[i])?r[i]=Rn(e[i],t[i],n):n.clone?r[i]=ho(t[i])?sS(t[i]):t[i]:r[i]=t[i]}),r}const GM=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function KM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,a=GM(t),s=Object.keys(a);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,h){const g=s.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:h)-r/100}${n})`}function d(p){return s.indexOf(p)+1<s.length?u(p,s[s.indexOf(p)+1]):l(p)}function f(p){const h=s.indexOf(p);return h===0?l(s[1]):h===s.length-1?c(s[h]):u(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:c,between:u,only:d,not:f,unit:n,...i}}function G0(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var s,l;const a=/min-width:\s*([0-9.]+)/;return+(((s=r.match(a))==null?void 0:s[1])||0)-+(((l=i.match(a))==null?void 0:l[1])||0)});return n.length?n.reduce((r,i)=>{const a=t[i];return delete r[i],r[i]=a,r},{...t}):t}function XM(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ZM(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:To(18,`(${t})`));return null}const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function QM(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const c=t(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},i=a=>(n(r,a),r);return n(i),{...e,containerQueries:i}}const JM={borderRadius:4},di=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Tl(e,t){return t?Rn(e,t,{clone:!1}):e}const tf={xs:0,sm:600,md:900,lg:1200,xl:1536},K0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${tf[e]}px)`},eI={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:tf[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ro(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||K0;return t.reduce((s,l,c)=>(s[a.up(a.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const a=r.breakpoints||K0;return Object.keys(t).reduce((s,l)=>{if(XM(a.keys,l)){const c=ZM(r.containerQueries?r:eI,l);c&&(s[c]=n(t[l],l))}else if(Object.keys(a.values||tf).includes(l)){const c=a.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function lS(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function lm(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function tI(e,...t){const n=lS(e),r=[n,...t].reduce((i,a)=>Rn(i,a),{});return lm(Object.keys(n),r)}function nI(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a<e.length&&(n[i]=!0)}):r.forEach(i=>{e[i]!=null&&(n[i]=!0)}),n}function Qp({values:e,breakpoints:t,base:n}){const r=n||nI(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,l,c)=>(Array.isArray(e)?(s[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[a],a=l):s[l]=e,s),{})}function ve(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":To(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nf(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function sd(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=nf(e,n)||r,t&&(i=t(i,r,e)),i}function Tn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,u=nf(c,r)||{};return ro(s,l,f=>{let p=sd(u,i,f);return f===p&&typeof f=="string"&&(p=sd(u,i,`${t}${f==="default"?"":ve(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:di}:{},a.filterProps=[t],a}function rI(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const oI={m:"margin",p:"padding"},iI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},X0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},aI=rI(e=>{if(e.length>2)if(X0[e])e=X0[e];else return[e];const[t,n]=e.split(""),r=oI[t],i=iI[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),rf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],of=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],sI=[...rf,...of];function hc(e,t,n,r){const i=nf(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} 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 s=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
`)):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(`
`)));const l=i[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}: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(`
`)),()=>{})}function af(e){return hc(e,"spacing",8,"spacing")}function Bi(e,t){return typeof t=="string"||t==null?t:e(t)}function lI(e,t){return n=>e.reduce((r,i)=>(r[i]=Bi(t,n),r),{})}function cI(e,t,n,r){if(!t.includes(n))return null;const i=aI(n),a=lI(i,r),s=e[n];return ro(e,s,a)}function cS(e,t){const n=af(e.theme);return Object.keys(e).map(r=>cI(e,t,r,n)).reduce(Tl,{})}function fn(e){return cS(e,rf)}fn.propTypes=process.env.NODE_ENV!=="production"?rf.reduce((e,t)=>(e[t]=di,e),{}):{};fn.filterProps=rf;function pn(e){return cS(e,of)}pn.propTypes=process.env.NODE_ENV!=="production"?of.reduce((e,t)=>(e[t]=di,e),{}):{};pn.filterProps=of;process.env.NODE_ENV!=="production"&&sI.reduce((e,t)=>(e[t]=di,e),{});function uS(e=8,t=af({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function sf(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?Tl(i,t[a](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function jr(e){return typeof e!="number"?e:`${e}px solid`}function Hr(e,t){return Tn({prop:e,themeKey:"borders",transform:t})}const uI=Hr("border",jr),dI=Hr("borderTop",jr),fI=Hr("borderRight",jr),pI=Hr("borderBottom",jr),hI=Hr("borderLeft",jr),mI=Hr("borderColor"),gI=Hr("borderTopColor"),yI=Hr("borderRightColor"),bI=Hr("borderBottomColor"),vI=Hr("borderLeftColor"),wI=Hr("outline",jr),xI=Hr("outlineColor"),lf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=hc(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Bi(t,r)});return ro(e,e.borderRadius,n)}return null};lf.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:di}:{};lf.filterProps=["borderRadius"];sf(uI,dI,fI,pI,hI,mI,gI,yI,bI,vI,lf,wI,xI);const cf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=hc(e.theme,"spacing",8,"gap"),n=r=>({gap:Bi(t,r)});return ro(e,e.gap,n)}return null};cf.propTypes=process.env.NODE_ENV!=="production"?{gap:di}:{};cf.filterProps=["gap"];const uf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=hc(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Bi(t,r)});return ro(e,e.columnGap,n)}return null};uf.propTypes=process.env.NODE_ENV!=="production"?{columnGap:di}:{};uf.filterProps=["columnGap"];const df=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=hc(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Bi(t,r)});return ro(e,e.rowGap,n)}return null};df.propTypes=process.env.NODE_ENV!=="production"?{rowGap:di}:{};df.filterProps=["rowGap"];const OI=Tn({prop:"gridColumn"}),TI=Tn({prop:"gridRow"}),SI=Tn({prop:"gridAutoFlow"}),EI=Tn({prop:"gridAutoColumns"}),CI=Tn({prop:"gridAutoRows"}),PI=Tn({prop:"gridTemplateColumns"}),_I=Tn({prop:"gridTemplateRows"}),kI=Tn({prop:"gridTemplateAreas"}),DI=Tn({prop:"gridArea"});sf(cf,uf,df,OI,TI,SI,EI,CI,PI,_I,kI,DI);function Fa(e,t){return t==="grey"?t:e}const $I=Tn({prop:"color",themeKey:"palette",transform:Fa}),RI=Tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fa}),MI=Tn({prop:"backgroundColor",themeKey:"palette",transform:Fa});sf($I,RI,MI);function yr(e){return e<=1&&e!==0?`${e*100}%`:e}const II=Tn({prop:"width",transform:yr}),Tg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,a,s,l,c;const r=((s=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:s[n])||tf[n];return r?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:yr(n)}};return ro(e,e.maxWidth,t)}return null};Tg.filterProps=["maxWidth"];const NI=Tn({prop:"minWidth",transform:yr}),AI=Tn({prop:"height",transform:yr}),jI=Tn({prop:"maxHeight",transform:yr}),LI=Tn({prop:"minHeight",transform:yr});Tn({prop:"size",cssProperty:"width",transform:yr});Tn({prop:"size",cssProperty:"height",transform:yr});const FI=Tn({prop:"boxSizing"});sf(II,Tg,NI,AI,jI,LI,FI);const mc={border:{themeKey:"borders",transform:jr},borderTop:{themeKey:"borders",transform:jr},borderRight:{themeKey:"borders",transform:jr},borderBottom:{themeKey:"borders",transform:jr},borderLeft:{themeKey:"borders",transform:jr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lf},color:{themeKey:"palette",transform:Fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fa},backgroundColor:{themeKey:"palette",transform:Fa},p:{style:pn},pt:{style:pn},pr:{style:pn},pb:{style:pn},pl:{style:pn},px:{style:pn},py:{style:pn},padding:{style:pn},paddingTop:{style:pn},paddingRight:{style:pn},paddingBottom:{style:pn},paddingLeft:{style:pn},paddingX:{style:pn},paddingY:{style:pn},paddingInline:{style:pn},paddingInlineStart:{style:pn},paddingInlineEnd:{style:pn},paddingBlock:{style:pn},paddingBlockStart:{style:pn},paddingBlockEnd:{style:pn},m:{style:fn},mt:{style:fn},mr:{style:fn},mb:{style:fn},ml:{style:fn},mx:{style:fn},my:{style:fn},margin:{style:fn},marginTop:{style:fn},marginRight:{style:fn},marginBottom:{style:fn},marginLeft:{style:fn},marginX:{style:fn},marginY:{style:fn},marginInline:{style:fn},marginInlineStart:{style:fn},marginInlineEnd:{style:fn},marginBlock:{style:fn},marginBlockStart:{style:fn},marginBlockEnd:{style:fn},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:cf},rowGap:{style:df},columnGap:{style:uf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yr},maxWidth:{style:Tg},minWidth:{transform:yr},height:{transform:yr},maxHeight:{transform:yr},minHeight:{transform:yr},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 VI(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function BI(e,t){return typeof e=="function"?e(t):e}function zI(){function e(n,r,i,a){const s={[n]:r,theme:i},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=nf(i,u)||{};return f?f(s):ro(s,r,g=>{let m=sd(p,d,g);return g===m&&typeof g=="string"&&(m=sd(p,d,`${n}${g==="default"?"":ve(g)}`,g)),c===!1?m:{[c]:m}})}function t(n){const{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;const s=i.unstable_sxConfig??mc;function l(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const d=lS(i.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(h=>{const g=BI(u[h],i);if(g!=null)if(typeof g=="object")if(s[h])p=Tl(p,e(h,g,i,s));else{const m=ro({theme:i},g,y=>({[h]:y}));VI(m,g)?p[h]=t({sx:g,theme:i,nested:!0}):p=Tl(p,m)}else p=Tl(p,e(h,g,i,s))}),!a&&i.modularCssLayers?{"@layer sx":G0(i,lm(f,p))}:G0(i,lm(f,p))}return Array.isArray(r)?r.map(l):l(r)}return t}const ai=zI();ai.filterProps=["sx"];function WI(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function bs(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={},...s}=e,l=KM(n),c=uS(i);let u=Rn({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...JM,...a}},s);return u=QM(u),u.applyStyles=WI,u=t.reduce((d,f)=>Rn(d,f),u),u.unstable_sxConfig={...mc,...s==null?void 0:s.unstable_sxConfig},u.unstable_sx=function(f){return ai({sx:f,theme:this})},u}function qI(e){return Object.keys(e).length===0}function ff(e=null){const t=R.useContext(fc);return!t||qI(t)?e:t}const UI=bs();function gc(e=UI){return ff(e)}function Jp(e){const t=oi(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Sg({styles:e,themeId:t,defaultTheme:n={}}){const r=gc(n),i=t&&r[t]||r;let a=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>Jp(typeof s=="function"?s(i):s)):a=Jp(a)),I.jsx(Og,{styles:a})}process.env.NODE_ENV!=="production"&&(Sg.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const HI=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??mc;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function pf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=HI(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return ho(l)?{...r,...l}:r}:a={...r,...t},{...i,sx:a}}const Z0=e=>e,YI=()=>{let e=Z0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Z0}}},dS=YI();function fS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=fS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function we(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=fS(e))&&(r&&(r+=" "),r+=t);return r}function GI(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=aS("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(ai);return R.forwardRef(function(c,u){const d=gc(n),{className:f,component:p="div",...h}=pf(c);return I.jsx(a,{as:p,ref:u,className:we(f,i?i(r):r),theme:t&&d[t]||d,...h})})}const KI={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 Pe(e,t,n="Mui"){const r=KI[t];return r?`${n}-${r}`:`${dS.generate(e)}-${t}`}function ke(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Pe(e,i,n)}),r}function pS(e,t=""){return e.displayName||e.name||t}function Q0(e,t,n){const r=pS(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function XI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Lo.ForwardRef:return Q0(e,e.render,"ForwardRef");case Lo.Memo:return Q0(e,e.type,"memo");default:return}}}function hS(e){const{variants:t,...n}=e,r={variants:t,style:oi(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=oi(i.style))}),r}const ZI=bs();function rr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Mi(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function QI(e){return e?(t,n)=>n[e]:null}function JI(e,t,n){e.theme=nN(e.theme)?n:e.theme[t]||e.theme}function zu(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>zu(e,i,n));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=n?Mi(r.style,n):r.style;else{const{variants:a,...s}=r;i=n?Mi(oi(s),n):s}return mS(e,r.variants,[i],n)}return r!=null&&r.isProcessed?n?Mi(oi(r.style),n):r.style:n?Mi(oi(r),n):r}function mS(e,t,n=[],r=void 0){var a;let i;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(i))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((a=e.ownerState)==null?void 0:a[c])!==l.props[c])continue e;typeof l.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Mi(oi(l.style(i)),r):l.style(i))):n.push(r?Mi(oi(l.style),r):l.style)}return n}function gS(e={}){const{themeId:t,defaultTheme:n=ZI,rootShouldForwardProp:r=rr,slotShouldForwardProp:i=rr}=e;function a(l){JI(l,t,n)}return(l,c={})=>{UM(l,E=>E.filter(C=>C!==ai));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=QI(yS(d)),...g}=c,m=u&&u.startsWith("Mui")||d?"components":"custom",y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,b=p||!1;let v=rr;d==="Root"||d==="root"?v=r:d?v=i:rN(l)&&(v=void 0);const x=aS(l,{shouldForwardProp:v,label:tN(u,d),...g}),w=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(S){return zu(S,E,S.theme.modularCssLayers?m:void 0)};if(ho(E)){const C=hS(E);return function(P){return C.variants?zu(P,C,P.theme.modularCssLayers?m:void 0):P.theme.modularCssLayers?Mi(C.style,m):C.style}}return E},O=(...E)=>{const C=[],S=E.map(w),P=[];if(C.push(a),u&&h&&P.push(function($){var H,X;const j=(X=(H=$.theme.components)==null?void 0:H[u])==null?void 0:X.styleOverrides;if(!j)return null;const W={};for(const U in j)W[U]=zu($,j[U],$.theme.modularCssLayers?"theme":void 0);return h($,W)}),u&&!y&&P.push(function($){var W,H;const M=$.theme,j=(H=(W=M==null?void 0:M.components)==null?void 0:W[u])==null?void 0:H.variants;return j?mS($,j,[],$.theme.modularCssLayers?"theme":void 0):null}),b||P.push(ai),Array.isArray(S[0])){const k=S.shift(),$=new Array(C.length).fill(""),M=new Array(P.length).fill("");let j;j=[...$,...k,...M],j.raw=[...$,...k.raw,...M],C.unshift(j)}const T=[...C,...S,...P],_=x(...T);return l.muiName&&(_.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(_.displayName=eN(u,d,l)),_};return x.withConfig&&(O.withConfig=x.withConfig),O}}function eN(e,t,n){return e?`${e}${ve(t||"")}`:`Styled(${XI(n)})`}function tN(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${yS(t||"Root")}`),n}function nN(e){for(const t in e)return!1;return!0}function rN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function yS(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Eg=gS();function Bl(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=i;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const u=c;r[a][u]=Bl(s[u],l[u],n)}}}else a==="className"&&n&&t.className?r.className=we(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[a]===void 0&&(r[a]=e[a])}return r}function bS(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Bl(t.components[n].defaultProps,r)}function hf({props:e,name:t,defaultTheme:n,themeId:r}){let i=gc(n);return r&&(i=i[r]||i),bS({theme:i,name:t,props:e})}const Kt=typeof window<"u"?R.useLayoutEffect:R.useEffect;function oN(e,t,n,r,i){const[a,s]=R.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Kt(()=>{if(!n)return;const l=n(e),c=()=>{s(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),a}const iN={...R},vS=iN.useSyncExternalStore;function aN(e,t,n,r,i){const a=R.useCallback(()=>t,[t]),s=R.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,i,n]),[l,c]=R.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addEventListener("change",f),()=>{d.removeEventListener("change",f)})]},[a,n,e]);return vS(c,l,s)}function wS(e={}){const{themeId:t}=e;return function(r,i={}){let a=ff();a&&t&&(a=a[t]||a);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=s?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=bS({name:"MuiUseMediaQuery",props:i,theme:a});process.env.NODE_ENV!=="production"&&typeof r=="function"&&a===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
`));let f=typeof r=="function"?r(a):r;f=f.replace(/^@media( ?)/m,""),f.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`));const h=(vS!==void 0?aN:oN)(f,l,c,u,d);return process.env.NODE_ENV!=="production"&&R.useDebugValue({query:f,match:h}),h}}wS();function Sa(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Cg(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Sa(e,t,n)}function sN(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function si(e){if(e.type)return e;if(e.charAt(0)==="#")return si(sN(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:To(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:To(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const lN=e=>{const t=si(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},fl=(e,t)=>{try{return lN(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function mf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function xS(e){e=si(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),mf({type:l,values:c})}function cm(e){e=si(e);let t=e.type==="hsl"||e.type==="hsla"?si(xS(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function J0(e,t){const n=cm(e),r=cm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Je(e,t){return e=si(e),t=Cg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mf(e)}function cu(e,t,n){try{return Je(e,t)}catch{return e}}function zi(e,t){if(e=si(e),t=Cg(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mf(e)}function Zt(e,t,n){try{return zi(e,t)}catch{return e}}function Wi(e,t){if(e=si(e),t=Cg(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mf(e)}function Qt(e,t,n){try{return Wi(e,t)}catch{return e}}function cN(e,t=.15){return cm(e)>.5?zi(e,t):Wi(e,t)}function uu(e,t,n){try{return cN(e,t)}catch{return e}}const uN="exact-prop: ";function gf(e){return process.env.NODE_ENV==="production"?e:{...e,[uN]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const Pg=R.createContext(null);process.env.NODE_ENV!=="production"&&(Pg.displayName="ThemeContext");function _g(){const e=R.useContext(Pg);return process.env.NODE_ENV!=="production"&&R.useDebugValue(e),e}const dN=typeof Symbol=="function"&&Symbol.for,fN=dN?Symbol.for("mui.nested"):"__THEME_NESTED__";function pN(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
`))),n}return{...e,...t}}function ld(e){const{children:t,theme:n}=e,r=_g();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
`));const i=R.useMemo(()=>{const a=r===null?{...n}:pN(r,n);return a!=null&&(a[fN]=r!==null),a},[n,r]);return I.jsx(Pg.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&(ld.propTypes={children:o.node,theme:o.oneOfType([o.object,o.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(ld.propTypes=gf(ld.propTypes));const OS=R.createContext();function TS({value:e,...t}){return I.jsx(OS.Provider,{value:e??!0,...t})}process.env.NODE_ENV!=="production"&&(TS.propTypes={children:o.node,value:o.bool});const Gn=()=>R.useContext(OS)??!1,SS=R.createContext(void 0);function ES({value:e,children:t}){return I.jsx(SS.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(ES.propTypes={children:o.node,value:o.object});function hN(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Bl(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Bl(i,r,t.components.mergeClassNameAndStyle):r}function mN({props:e,name:t}){const n=R.useContext(SS);return hN({props:e,name:t,theme:{components:n}})}let e1=0;function gN(e){const[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t==null&&(e1+=1,n(`mui-${e1}`))},[t]),r}const yN={...R},t1=yN.useId;function dr(e){if(t1!==void 0){const t=t1();return e??t}return gN(e)}function bN(e){const t=ff(),n=dr()||"",{modularCssLayers:r}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?i="":typeof r=="string"?i=r.replace(/mui(?!\.)/g,i):i=`@layer ${i};`,Kt(()=>{var l,c;const a=document.querySelector("head");if(!a)return;const s=a.firstChild;if(i){if(s&&((l=s.hasAttribute)!=null&&l.call(s,"data-mui-layer-order"))&&s.getAttribute("data-mui-layer-order")===n)return;const u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=i,a.prepend(u)}else(c=a.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[i,n]),i?I.jsx(Sg,{styles:i}):null}const n1={};function r1(e,t,n,r=!1){return R.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?{...t,[e]:a}:a;return r?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function zl(e){const{children:t,theme:n,themeId:r}=e,i=ff(n1),a=_g()||n1;process.env.NODE_ENV!=="production"&&(i===null&&typeof n=="function"||r&&i&&!i[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
`));const s=r1(r,i,n),l=r1(r,a,n,!0),c=(r?s[r]:s).direction==="rtl",u=bN(s);return I.jsx(ld,{theme:l,children:I.jsx(fc.Provider,{value:s,children:I.jsx(TS,{value:c,children:I.jsxs(ES,{value:r?s[r].components:s.components,children:[u,t]})})})})}process.env.NODE_ENV!=="production"&&(zl.propTypes={children:o.node,theme:o.oneOfType([o.func,o.object]).isRequired,themeId:o.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(zl.propTypes=gf(zl.propTypes));const o1={theme:void 0};function vN(e){let t,n;return function(i){let a=t;return(a===void 0||i.theme!==n)&&(o1.theme=i.theme,a=hS(e(o1)),t=a,n=i.theme),a}}const kg="mode",Dg="color-scheme",wN="data-color-scheme";function xN(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:i=kg,colorSchemeStorageKey:a=Dg,attribute:s=wN,colorSchemeNode:l="document.documentElement",nonce:c}=e||{};let u="",d=s;if(s==="class"&&(d=".%s"),s==="data"&&(d="[data-%s]"),d.startsWith(".")){const p=d.substring(1);u+=`${l}.classList.remove('${p}'.replace('%s', light), '${p}'.replace('%s', dark));
${l}.classList.add('${p}'.replace('%s', colorScheme));`}const f=d.match(/\[([^\]]+)\]/);if(f){const[p,h]=f[1].split("=");h||(u+=`${l}.removeAttribute('${p}'.replace('%s', light));
${l}.removeAttribute('${p}'.replace('%s', dark));`),u+=`
${l}.setAttribute('${p}'.replace('%s', colorScheme), ${h?`${h}.replace('%s', colorScheme)`:'""'});`}else u+=`${l}.setAttribute('${d}', colorScheme);`;return I.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
let colorScheme = '';
const mode = localStorage.getItem('${i}') || '${t}';
const dark = localStorage.getItem('${a}-dark') || '${r}';
const light = localStorage.getItem('${a}-light') || '${n}';
if (mode === 'system') {
// handle system mode
const mql = window.matchMedia('(prefers-color-scheme: dark)');
if (mql.matches) {
colorScheme = dark
} else {
colorScheme = light
}
}
if (mode === 'light') {
colorScheme = light;
}
if (mode === 'dark') {
colorScheme = dark;
}
if (colorScheme) {
${u}
}
} catch(e){}})();`}},"mui-color-scheme-init")}function ON(){}const TN=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return ON;const r=i=>{const a=i.newValue;i.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function eh(){}function i1(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function CS(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function SN(e){return CS(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function EN(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=kg,colorSchemeStorageKey:s=Dg,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=TN,noSsr:u=!1}=e,d=i.join(","),f=i.length>1,p=R.useMemo(()=>c==null?void 0:c({key:a,storageWindow:l}),[c,a,l]),h=R.useMemo(()=>c==null?void 0:c({key:`${s}-light`,storageWindow:l}),[c,s,l]),g=R.useMemo(()=>c==null?void 0:c({key:`${s}-dark`,storageWindow:l}),[c,s,l]),[m,y]=R.useState(()=>{const S=(p==null?void 0:p.get(t))||t,P=(h==null?void 0:h.get(n))||n,T=(g==null?void 0:g.get(r))||r;return{mode:S,systemMode:i1(S),lightColorScheme:P,darkColorScheme:T}}),[b,v]=R.useState(u||!f);R.useEffect(()=>{v(!0)},[]);const x=SN(m),w=R.useCallback(S=>{y(P=>{if(S===P.mode)return P;const T=S??t;return p==null||p.set(T),{...P,mode:T,systemMode:i1(T)}})},[p,t]),O=R.useCallback(S=>{S?typeof S=="string"?S&&!d.includes(S)?console.error(`\`${S}\` does not exist in \`theme.colorSchemes\`.`):y(P=>{const T={...P};return CS(P,_=>{_==="light"&&(h==null||h.set(S),T.lightColorScheme=S),_==="dark"&&(g==null||g.set(S),T.darkColorScheme=S)}),T}):y(P=>{const T={...P},_=S.light===null?n:S.light,k=S.dark===null?r:S.dark;return _&&(d.includes(_)?(T.lightColorScheme=_,h==null||h.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),k&&(d.includes(k)?(T.darkColorScheme=k,g==null||g.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),T}):y(P=>(h==null||h.set(n),g==null||g.set(r),{...P,lightColorScheme:n,darkColorScheme:r}))},[d,h,g,n,r]),E=R.useCallback(S=>{m.mode==="system"&&y(P=>{const T=S!=null&&S.matches?"dark":"light";return P.systemMode===T?P:{...P,systemMode:T}})},[m.mode]),C=R.useRef(E);return C.current=E,R.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const S=(...T)=>C.current(...T),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(S),S(P),()=>{P.removeListener(S)}},[f]),R.useEffect(()=>{if(f){const S=(p==null?void 0:p.subscribe(_=>{(!_||["light","dark","system"].includes(_))&&w(_||t)}))||eh,P=(h==null?void 0:h.subscribe(_=>{(!_||d.match(_))&&O({light:_})}))||eh,T=(g==null?void 0:g.subscribe(_=>{(!_||d.match(_))&&O({dark:_})}))||eh;return()=>{S(),P(),T()}}},[O,w,d,t,l,f,p,h,g]),{...m,mode:b?m.mode:void 0,systemMode:b?m.systemMode:void 0,colorScheme:b?x:void 0,setMode:w,setColorScheme:O}}const CN="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function PN(e){const{themeId:t,theme:n={},modeStorageKey:r=kg,colorSchemeStorageKey:i=Dg,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(u.displayName="ColorSchemeContext");const d=()=>R.useContext(u)||c,f={},p={};function h(b){var ge,_e,$e,ae;const{children:v,theme:x,modeStorageKey:w=r,colorSchemeStorageKey:O=i,disableTransitionOnChange:E=a,storageManager:C,storageWindow:S=typeof window>"u"?void 0:window,documentNode:P=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:_=!1,disableStyleSheetGeneration:k=!1,defaultMode:$="system",forceThemeRerender:M=!1,noSsr:j}=b,W=R.useRef(!1),H=_g(),X=R.useContext(u),U=!!X&&!_,L=R.useMemo(()=>x||(typeof n=="function"?n():n),[x]),D=L[t],B=D||L,{colorSchemes:z=f,components:F=p,cssVarPrefix:A}=B,N=Object.keys(z).filter(ce=>!!z[ce]).join(","),q=R.useMemo(()=>N.split(","),[N]),Y=typeof s=="string"?s:s.light,G=typeof s=="string"?s:s.dark,K=z[Y]&&z[G]?$:((_e=(ge=z[B.defaultColorScheme])==null?void 0:ge.palette)==null?void 0:_e.mode)||(($e=B.palette)==null?void 0:$e.mode),{mode:J,setMode:Z,systemMode:ie,lightColorScheme:de,darkColorScheme:xe,colorScheme:he,setColorScheme:pe}=EN({supportedColorSchemes:q,defaultLightColorScheme:Y,defaultDarkColorScheme:G,modeStorageKey:w,colorSchemeStorageKey:O,defaultMode:K,storageManager:C,storageWindow:S,noSsr:j});let Q=J,oe=he;U&&(Q=X.mode,oe=X.colorScheme),process.env.NODE_ENV!=="production"&&M&&!B.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
`));let te=oe||B.defaultColorScheme;B.vars&&!M&&(te=B.defaultColorScheme);const le=R.useMemo(()=>{var Ce;const ce=((Ce=B.generateThemeVars)==null?void 0:Ce.call(B))||B.vars,ue={...B,components:F,colorSchemes:z,cssVarPrefix:A,vars:ce};if(typeof ue.generateSpacing=="function"&&(ue.spacing=ue.generateSpacing()),te){const ye=z[te];ye&&typeof ye=="object"&&Object.keys(ye).forEach(Me=>{ye[Me]&&typeof ye[Me]=="object"?ue[Me]={...ue[Me],...ye[Me]}:ue[Me]=ye[Me]})}return l?l(ue):ue},[B,te,F,z,A]),re=B.colorSchemeSelector;Kt(()=>{if(oe&&T&&re&&re!=="media"){const ce=re;let ue=re;if(ce==="class"&&(ue=".%s"),ce==="data"&&(ue="[data-%s]"),ce!=null&&ce.startsWith("data-")&&!ce.includes("%s")&&(ue=`[${ce}="%s"]`),ue.startsWith("."))T.classList.remove(...q.map(Ce=>ue.substring(1).replace("%s",Ce))),T.classList.add(ue.substring(1).replace("%s",oe));else{const Ce=ue.replace("%s",oe).match(/\[([^\]]+)\]/);if(Ce){const[ye,Me]=Ce[1].split("=");Me||q.forEach(Ze=>{T.removeAttribute(ye.replace(oe,Ze))}),T.setAttribute(ye,Me?Me.replace(/"|'/g,""):"")}else T.setAttribute(ue,oe)}}},[oe,re,T,q]),R.useEffect(()=>{let ce;if(E&&W.current&&P){const ue=P.createElement("style");ue.appendChild(P.createTextNode(CN)),P.head.appendChild(ue),window.getComputedStyle(P.body),ce=setTimeout(()=>{P.head.removeChild(ue)},1)}return()=>{clearTimeout(ce)}},[oe,E,P]),R.useEffect(()=>(W.current=!0,()=>{W.current=!1}),[]);const Te=R.useMemo(()=>({allColorSchemes:q,colorScheme:oe,darkColorScheme:xe,lightColorScheme:de,mode:Q,setColorScheme:pe,setMode:process.env.NODE_ENV==="production"?Z:ce=>{le.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
`)),Z(ce)},systemMode:ie}),[q,oe,xe,de,Q,pe,Z,ie,le.colorSchemeSelector]);let Se=!0;(k||B.cssVariables===!1||U&&(H==null?void 0:H.cssVarPrefix)===A)&&(Se=!1);const fe=I.jsxs(R.Fragment,{children:[I.jsx(zl,{themeId:D?t:void 0,theme:le,children:v}),Se&&I.jsx(Og,{styles:((ae=le.generateStyleSheets)==null?void 0:ae.call(le))||[]})]});return U?fe:I.jsx(u.Provider,{value:Te,children:fe})}process.env.NODE_ENV!=="production"&&(h.propTypes={children:o.node,colorSchemeNode:o.any,colorSchemeStorageKey:o.string,defaultMode:o.string,disableNestedContext:o.bool,disableStyleSheetGeneration:o.bool,disableTransitionOnChange:o.bool,documentNode:o.any,forceThemeRerender:o.bool,modeStorageKey:o.string,noSsr:o.bool,storageManager:o.func,storageWindow:o.any,theme:o.object});const g=typeof s=="string"?s:s.light,m=typeof s=="string"?s:s.dark;return{CssVarsProvider:h,useColorScheme:d,getInitColorSchemeScript:b=>xN({colorSchemeStorageKey:i,defaultLightColorScheme:g,defaultDarkColorScheme:m,modeStorageKey:r,...b})}}function _N(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const a1=(e,t,n,r=[])=>{let i=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i=="object"&&(i[a]=n):i&&typeof i=="object"&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])})},kN=(e,t,n)=>{function r(i,a=[],s=[]){Object.entries(i).forEach(([l,c])=>{(!n||n&&!n([...a,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,l],Array.isArray(c)?[...s,l]:s):t([...a,l],c,s))})}r(e)},DN=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function th(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},s={};return kN(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=DN(l,c);Object.assign(i,{[d]:f}),a1(a,l,`var(${d})`,u),a1(s,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:i,vars:a,varsWithDefaults:s}}function $N(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:f}=th(c,t);let p=f;const h={},{[l]:g,...m}=a;if(Object.entries(m||{}).forEach(([x,w])=>{const{vars:O,css:E,varsWithDefaults:C}=th(w,t);p=Rn(p,C),h[x]={css:E,vars:O}}),g){const{css:x,vars:w,varsWithDefaults:O}=th(g,t);p=Rn(p,O),h[l]={css:x,vars:w}}function y(x,w){var E,C;let O=i;if(i==="class"&&(O=".%s"),i==="data"&&(O="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(O=`[${i}="%s"]`),x){if(O==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${((C=(E=a[x])==null?void 0:E.palette)==null?void 0:C.mode)||x})`]:{":root":w}};if(O)return e.defaultColorScheme===x?`:root, ${O.replace("%s",String(x))}`:O.replace("%s",String(x))}return":root"}return{vars:p,generateThemeVars:()=>{let x={...u};return Object.entries(h).forEach(([,{vars:w}])=>{x=Rn(x,w)}),x},generateStyleSheets:()=>{var S,P;const x=[],w=e.defaultColorScheme||"light";function O(T,_){Object.keys(_).length&&x.push(typeof T=="string"?{[T]:{..._}}:T)}O(n(void 0,{...d}),d);const{[w]:E,...C}=h;if(E){const{css:T}=E,_=(P=(S=a[w])==null?void 0:S.palette)==null?void 0:P.mode,k=!r&&_?{colorScheme:_,...T}:{...T};O(n(w,{...k}),k)}return Object.entries(C).forEach(([T,{css:_}])=>{var M,j;const k=(j=(M=a[T])==null?void 0:M.palette)==null?void 0:j.mode,$=!r&&k?{colorScheme:k,..._}:{..._};O(n(T,{...$}),$)}),x}}}function RN(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Ee(e,t,n=void 0){const r={};for(const i in e){const a=e[i];let s="",l=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(s+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(s+=" "+n[u]))}r[i]=s}return r}const MN=bs(),IN=Eg("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ve(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),NN=e=>hf({props:e,name:"MuiContainer",defaultTheme:MN}),AN=(e,t)=>{const n=c=>Pe(t,c),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,l={root:["root",s&&`maxWidth${ve(String(s))}`,i&&"fixed",a&&"disableGutters"]};return Ee(l,n,r)};function jN(e={}){const{createStyledComponent:t=IN,useThemeProps:n=NN,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:l})=>l.fixed&&Object.keys(s.breakpoints.values).reduce((c,u)=>{const d=u,f=s.breakpoints.values[d];return f!==0&&(c[s.breakpoints.up(d)]={maxWidth:`${f}${s.breakpoints.unit}`}),c},{}),({theme:s,ownerState:l})=>({...l.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[s.breakpoints.up(l.maxWidth)]:{maxWidth:`${s.breakpoints.values[l.maxWidth]}${s.breakpoints.unit}`}}})),a=R.forwardRef(function(l,c){const u=n(l),{className:d,component:f="div",disableGutters:p=!1,fixed:h=!1,maxWidth:g="lg",classes:m,...y}=u,b={...u,component:f,disableGutters:p,fixed:h,maxWidth:g},v=AN(b,r);return I.jsx(i,{as:f,ownerState:b,className:we(v.root,d),ref:c,...y})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),a}function Ni(e,t){var n,r,i;return R.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:i.muiName))!==-1}const LN=(e,t)=>e.filter(n=>t.includes(n)),vs=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((i,a)=>{n((s,l)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,l):s[e.up(e.keys[a])]=l)},i)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:LN(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((l,c)=>{r===a?Object.assign(l,c):l[e.up(a)]=c},s)}}):(typeof t=="number"||typeof t=="string")&&n((i,a)=>{Object.assign(i,a)},t)};function cd(e){return`--Grid-${e}Spacing`}function yf(e){return`--Grid-parent-${e}Spacing`}const s1="--Grid-columns",Va="--Grid-parent-columns",FN=({theme:e,ownerState:t})=>{const n={};return vs(e.breakpoints,t.size,(r,i)=>{let a={};i==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / var(${Va}) - (var(${Va}) - ${i}) * (var(${yf("column")}) / var(${Va})))`}),r(n,a)}),n},VN=({theme:e,ownerState:t})=>{const n={};return vs(e.breakpoints,t.offset,(r,i)=>{let a={};i==="auto"&&(a={marginLeft:"auto"}),typeof i=="number"&&(a={marginLeft:i===0?"0px":`calc(100% * ${i} / var(${Va}) + var(${yf("column")}) * ${i} / var(${Va}))`}),r(n,a)}),n},BN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[s1]:12};return vs(e.breakpoints,t.columns,(r,i)=>{const a=i??12;r(n,{[s1]:a,"> *":{[Va]:a}})}),n},zN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return vs(e.breakpoints,t.rowSpacing,(r,i)=>{var s;const a=typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i);r(n,{[cd("row")]:a,"> *":{[yf("row")]:a}})}),n},WN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return vs(e.breakpoints,t.columnSpacing,(r,i)=>{var s;const a=typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i);r(n,{[cd("column")]:a,"> *":{[yf("column")]:a}})}),n},qN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return vs(e.breakpoints,t.direction,(r,i)=>{r(n,{flexDirection:i})}),n},UN=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${cd("row")}) var(${cd("column")})`}}),HN=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},YN=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([i,a])=>{n(a)&&r.push(`spacing-${i}-${String(a)}`)}),r}return[]},GN=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],KN=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,l1=[];function XN(e,t){const n=[];e.item!==void 0&&(delete e.item,n.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(r=>{e[r]!==void 0&&(n.push(r),delete e[r])}),process.env.NODE_ENV!=="production"&&n.forEach(r=>{l1.includes(r)||(l1.push(r),console.warn(`MUI Grid: ${KN(r)}
`))})}const ZN=bs(),QN=Eg("div",{name:"MuiGrid",slot:"Root"});function JN(e){return hf({props:e,name:"MuiGrid",defaultTheme:ZN})}function eA(e={}){const{createStyledComponent:t=QN,useThemeProps:n=JN,useTheme:r=gc,componentName:i="MuiGrid"}=e,a=(u,d)=>{const{container:f,direction:p,spacing:h,wrap:g,size:m}=u,y={root:["root",f&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...GN(p),...HN(m),...f?YN(h,d.breakpoints.keys[0]):[]]};return Ee(y,b=>Pe(i,b),{})};function s(u,d,f=()=>!0){const p={};return u===null||(Array.isArray(u)?u.forEach((h,g)=>{h!==null&&f(h)&&d.keys[g]&&(p[d.keys[g]]=h)}):typeof u=="object"?Object.keys(u).forEach(h=>{const g=u[h];g!=null&&f(g)&&(p[h]=g)}):p[d.keys[0]]=u),p}const l=t(BN,WN,zN,FN,qN,UN,VN),c=R.forwardRef(function(d,f){const p=r(),h=n(d),g=pf(h);XN(g,p.breakpoints);const{className:m,children:y,columns:b=12,container:v=!1,component:x="div",direction:w="row",wrap:O="wrap",size:E={},offset:C={},spacing:S=0,rowSpacing:P=S,columnSpacing:T=S,unstable_level:_=0,...k}=g,$=s(E,p.breakpoints,D=>D!==!1),M=s(C,p.breakpoints),j=d.columns??(_?void 0:b),W=d.spacing??(_?void 0:S),H=d.rowSpacing??d.spacing??(_?void 0:P),X=d.columnSpacing??d.spacing??(_?void 0:T),U={...g,level:_,columns:j,container:v,direction:w,wrap:O,spacing:W,rowSpacing:H,columnSpacing:X,size:$,offset:M},L=a(U,p);return I.jsx(l,{ref:f,as:x,ownerState:U,className:we(L.root,m),...k,children:R.Children.map(y,D=>{var B;return R.isValidElement(D)&&Ni(D,["Grid"])&&v&&D.props.container?R.cloneElement(D,{unstable_level:((B=D.props)==null?void 0:B.unstable_level)??_+1}):D})})});return process.env.NODE_ENV!=="production"&&(c.propTypes={children:o.node,className:o.string,columns:o.oneOfType([o.arrayOf(o.number),o.number,o.object]),columnSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),component:o.elementType,container:o.bool,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),offset:o.oneOfType([o.string,o.number,o.arrayOf(o.oneOfType([o.string,o.number])),o.object]),rowSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),size:o.oneOfType([o.string,o.bool,o.number,o.arrayOf(o.oneOfType([o.string,o.bool,o.number])),o.object]),spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),wrap:o.oneOf(["nowrap","wrap-reverse","wrap"])}),c.muiName="Grid",c}const tA=bs(),nA=Eg("div",{name:"MuiStack",slot:"Root"});function rA(e){return hf({props:e,name:"MuiStack",defaultTheme:tA})}function oA(e,t){const n=R.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a<n.length-1&&r.push(R.cloneElement(t,{key:`separator-${a}`})),r),[])}const iA=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],aA=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...ro({theme:t},Qp({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=af(t),i=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=Qp({values:e.direction,base:i}),s=Qp({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const p=u>0?a[d[u-1]]:"column";a[c]=p}}),n=Rn(n,ro({theme:t},s,(c,u)=>e.useFlexGap?{gap:Bi(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${iA(u?a[u]:e.direction)}`]:Bi(r,c)}}))}return n=tI(t.breakpoints,n),n};function sA(e={}){const{createStyledComponent:t=nA,useThemeProps:n=rA,componentName:r="MuiStack"}=e,i=()=>Ee({root:["root"]},c=>Pe(r,c),{}),a=t(aA),s=R.forwardRef(function(c,u){const d=n(c),f=pf(d),{component:p="div",direction:h="column",spacing:g=0,divider:m,children:y,className:b,useFlexGap:v=!1,...x}=f,w={direction:h,spacing:g,useFlexGap:v},O=i();return I.jsx(a,{as:p,ownerState:w,ref:u,className:we(O.root,b),...x,children:m?oA(y,m):y})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}const Vr="$$material",Wl={black:"#000",white:"#fff"},lA={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"},ua={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},da={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ks={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},fa={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},pa={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ha={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function PS(){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:Wl.white,default:Wl.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 cA=PS();function _S(){return{text:{primary:Wl.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:Wl.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 c1=_S();function u1(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wi(e.main,i):t==="dark"&&(e.dark=zi(e.main,a)))}function uA(e="light"){return e==="dark"?{main:fa[200],light:fa[50],dark:fa[400]}:{main:fa[700],light:fa[400],dark:fa[800]}}function dA(e="light"){return e==="dark"?{main:ua[200],light:ua[50],dark:ua[400]}:{main:ua[500],light:ua[300],dark:ua[700]}}function fA(e="light"){return e==="dark"?{main:da[500],light:da[300],dark:da[700]}:{main:da[700],light:da[400],dark:da[800]}}function pA(e="light"){return e==="dark"?{main:pa[400],light:pa[300],dark:pa[700]}:{main:pa[700],light:pa[500],dark:pa[900]}}function hA(e="light"){return e==="dark"?{main:ha[400],light:ha[300],dark:ha[700]}:{main:ha[800],light:ha[500],dark:ha[900]}}function mA(e="light"){return e==="dark"?{main:Ks[400],light:Ks[300],dark:Ks[700]}:{main:"#ed6c02",light:Ks[500],dark:Ks[900]}}function $g(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,a=e.primary||uA(t),s=e.secondary||dA(t),l=e.error||fA(t),c=e.info||pA(t),u=e.success||hA(t),d=e.warning||mA(t);function f(m){const y=J0(m,c1.text.primary)>=n?c1.text.primary:cA.text.primary;if(process.env.NODE_ENV!=="production"){const b=J0(m,y);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${y} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
`))}return y}const p=({color:m,name:y,mainShade:b=500,lightShade:v=300,darkShade:x=700})=>{if(m={...m},!m.main&&m[b]&&(m.main=m[b]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
The color object needs to have a \`main\` property or a \`${b}\` property.`:To(11,y?` (${y})`:"",b));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
\`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
Did you intend to use one of the following approaches?
import { green } from "@mui/material/colors";
const theme1 = createTheme({ palette: {
primary: green,
} });
const theme2 = createTheme({ palette: {
primary: { main: green[500] },
} });`:To(12,y?` (${y})`:"",JSON.stringify(m.main)));return u1(m,"light",v,r),u1(m,"dark",x,r),m.contrastText||(m.contrastText=f(m.main)),m};let h;return t==="light"?h=PS():t==="dark"&&(h=_S()),process.env.NODE_ENV!=="production"&&(h||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Rn({common:{...Wl},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:lA,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},i)}function gA(e){const t={};return Object.entries(e).forEach(r=>{const[i,a]=r;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function yA(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function bA(e){return Math.round(e*1e5)/1e5}const d1={textTransform:"uppercase"},f1='"Roboto", "Helvetica", "Arial", sans-serif';function kS(e,t){const{fontFamily:n=f1,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,h=d||(y=>`${y/c*p}rem`),g=(y,b,v,x,w)=>({fontFamily:n,fontWeight:y,fontSize:h(b),lineHeight:v,...n===f1?{letterSpacing:`${bA(x/b)}em`}:{},...w,...u}),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,d1),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,d1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rn({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...m},f,{clone:!1})}const vA=.2,wA=.14,xA=.12;function an(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${vA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xA})`].join(",")}const OA=["none",an(0,2,1,-1,0,1,1,0,0,1,3,0),an(0,3,1,-2,0,2,2,0,0,1,5,0),an(0,3,3,-2,0,3,4,0,0,1,8,0),an(0,2,4,-1,0,4,5,0,0,1,10,0),an(0,3,5,-1,0,5,8,0,0,1,14,0),an(0,3,5,-1,0,6,10,0,0,1,18,0),an(0,4,5,-2,0,7,10,1,0,2,16,1),an(0,5,5,-3,0,8,10,1,0,3,14,2),an(0,5,6,-3,0,9,12,1,0,3,16,2),an(0,6,6,-3,0,10,14,1,0,4,18,3),an(0,6,7,-4,0,11,15,1,0,4,20,3),an(0,7,8,-4,0,12,17,2,0,5,22,4),an(0,7,8,-4,0,13,19,2,0,5,24,4),an(0,7,9,-4,0,14,21,2,0,5,26,4),an(0,8,9,-5,0,15,22,2,0,6,28,5),an(0,8,10,-5,0,16,24,2,0,6,30,5),an(0,8,11,-5,0,17,26,2,0,6,32,5),an(0,9,11,-5,0,18,28,2,0,7,34,6),an(0,9,12,-6,0,19,29,2,0,7,36,6),an(0,10,13,-6,0,20,31,3,0,8,38,7),an(0,10,13,-6,0,21,33,3,0,8,40,7),an(0,10,14,-6,0,22,35,3,0,8,42,7),an(0,11,14,-7,0,23,36,3,0,9,44,8),an(0,11,15,-7,0,24,38,3,0,9,46,8)],TA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},DS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function p1(e){return`${Math.round(e)}ms`}function SA(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function EA(e){const t={...TA,...e.easing},n={...DS,...e.duration};return{getAutoHeightDuration:SA,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=a;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!d(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof s=="string"?s:p1(s)} ${l} ${typeof c=="string"?c:p1(c)}`).join(",")},...e,easing:t,duration:n}}const CA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function PA(e){return ho(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function $S(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let a=0;a<i.length;a++){const[s,l]=i[a];!PA(l)||s.startsWith("unstable_")?delete r[s]:ho(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
const theme = ${JSON.stringify(t,null,2)};
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});
export default theme;`}function um(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:s={},typography:l={},shape:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":To(20));const d=$g(a),f=bs(e);let p=Rn(f,{mixins:yA(f.breakpoints,r),palette:d,shadows:OA.slice(),typography:kS(d,l),transitions:EA(s),zIndex:{...CA}});if(p=Rn(p,u),p=t.reduce((h,g)=>Rn(h,g),p),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(m,y)=>{let b;for(b in m){const v=m[b];if(h.includes(b)&&Object.keys(v).length>0){if(process.env.NODE_ENV!=="production"){const x=Pe("",b);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:v}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
`))}m[b]={}}}};Object.keys(p.components).forEach(m=>{const y=p.components[m].styleOverrides;y&&m.startsWith("Mui")&&g(y,m)})}return p.unstable_sxConfig={...mc,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(g){return ai({sx:g,theme:this})},p.toRuntimeSource=$S,p}function dm(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 _A=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=dm(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function RS(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function MS(e){return e==="dark"?_A:[]}function kA(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,a=$g(t);return{palette:a,opacity:{...RS(a.mode),...n},overlays:r||MS(a.mode),...i}}function DA(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const $A=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],RA=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return $A(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function MA(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Oe(e,t,n){!e[t]&&n&&(e[t]=n)}function pl(e){return typeof e!="string"||!e.startsWith("hsl")?e:xS(e)}function Do(e,t){`${t}Channel`in e||(e[`${t}Channel`]=fl(pl(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().
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 IA(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const co=e=>{try{return e()}catch{}},NA=(e="mui")=>_N(e);function nh(e,t,n,r){if(!t)return;t=t===!0?{}:t;const i=r==="dark"?"dark":"light";if(!n){e[r]=kA({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...s}=um({...n,palette:{mode:i,...t==null?void 0:t.palette}});return e[r]={...t,palette:a,opacity:{...RS(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||MS(i)},s}function AA(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:s=DA,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!=="light"?"light":d),p=NA(a),{[f]:h,light:g,dark:m,...y}=n,b={...y};let v=h;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(v=!0),!v)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:To(21,f));const x=nh(b,v,u,f);g&&!b.light&&nh(b,g,void 0,"light"),m&&!b.dark&&nh(b,m,void 0,"dark");let w={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:c,getCssVar:p,colorSchemes:b,font:{...gA(x.typography),...x.font},spacing:IA(u.spacing)};Object.keys(w.colorSchemes).forEach(P=>{const T=w.colorSchemes[P].palette,_=k=>{const $=k.split("-"),M=$[1],j=$[2];return p(k,T[M][j])};if(T.mode==="light"&&(Oe(T.common,"background","#fff"),Oe(T.common,"onBackground","#000")),T.mode==="dark"&&(Oe(T.common,"background","#000"),Oe(T.common,"onBackground","#fff")),MA(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){Oe(T.Alert,"errorColor",Zt(T.error.light,.6)),Oe(T.Alert,"infoColor",Zt(T.info.light,.6)),Oe(T.Alert,"successColor",Zt(T.success.light,.6)),Oe(T.Alert,"warningColor",Zt(T.warning.light,.6)),Oe(T.Alert,"errorFilledBg",_("palette-error-main")),Oe(T.Alert,"infoFilledBg",_("palette-info-main")),Oe(T.Alert,"successFilledBg",_("palette-success-main")),Oe(T.Alert,"warningFilledBg",_("palette-warning-main")),Oe(T.Alert,"errorFilledColor",co(()=>T.getContrastText(T.error.main))),Oe(T.Alert,"infoFilledColor",co(()=>T.getContrastText(T.info.main))),Oe(T.Alert,"successFilledColor",co(()=>T.getContrastText(T.success.main))),Oe(T.Alert,"warningFilledColor",co(()=>T.getContrastText(T.warning.main))),Oe(T.Alert,"errorStandardBg",Qt(T.error.light,.9)),Oe(T.Alert,"infoStandardBg",Qt(T.info.light,.9)),Oe(T.Alert,"successStandardBg",Qt(T.success.light,.9)),Oe(T.Alert,"warningStandardBg",Qt(T.warning.light,.9)),Oe(T.Alert,"errorIconColor",_("palette-error-main")),Oe(T.Alert,"infoIconColor",_("palette-info-main")),Oe(T.Alert,"successIconColor",_("palette-success-main")),Oe(T.Alert,"warningIconColor",_("palette-warning-main")),Oe(T.AppBar,"defaultBg",_("palette-grey-100")),Oe(T.Avatar,"defaultBg",_("palette-grey-400")),Oe(T.Button,"inheritContainedBg",_("palette-grey-300")),Oe(T.Button,"inheritContainedHoverBg",_("palette-grey-A100")),Oe(T.Chip,"defaultBorder",_("palette-grey-400")),Oe(T.Chip,"defaultAvatarColor",_("palette-grey-700")),Oe(T.Chip,"defaultIconColor",_("palette-grey-700")),Oe(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Oe(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Oe(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Oe(T.LinearProgress,"primaryBg",Qt(T.primary.main,.62)),Oe(T.LinearProgress,"secondaryBg",Qt(T.secondary.main,.62)),Oe(T.LinearProgress,"errorBg",Qt(T.error.main,.62)),Oe(T.LinearProgress,"infoBg",Qt(T.info.main,.62)),Oe(T.LinearProgress,"successBg",Qt(T.success.main,.62)),Oe(T.LinearProgress,"warningBg",Qt(T.warning.main,.62)),Oe(T.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.11)`),Oe(T.Slider,"primaryTrack",Qt(T.primary.main,.62)),Oe(T.Slider,"secondaryTrack",Qt(T.secondary.main,.62)),Oe(T.Slider,"errorTrack",Qt(T.error.main,.62)),Oe(T.Slider,"infoTrack",Qt(T.info.main,.62)),Oe(T.Slider,"successTrack",Qt(T.success.main,.62)),Oe(T.Slider,"warningTrack",Qt(T.warning.main,.62));const k=uu(T.background.default,.8);Oe(T.SnackbarContent,"bg",k),Oe(T.SnackbarContent,"color",co(()=>T.getContrastText(k))),Oe(T.SpeedDialAction,"fabHoverBg",uu(T.background.paper,.15)),Oe(T.StepConnector,"border",_("palette-grey-400")),Oe(T.StepContent,"border",_("palette-grey-400")),Oe(T.Switch,"defaultColor",_("palette-common-white")),Oe(T.Switch,"defaultDisabledColor",_("palette-grey-100")),Oe(T.Switch,"primaryDisabledColor",Qt(T.primary.main,.62)),Oe(T.Switch,"secondaryDisabledColor",Qt(T.secondary.main,.62)),Oe(T.Switch,"errorDisabledColor",Qt(T.error.main,.62)),Oe(T.Switch,"infoDisabledColor",Qt(T.info.main,.62)),Oe(T.Switch,"successDisabledColor",Qt(T.success.main,.62)),Oe(T.Switch,"warningDisabledColor",Qt(T.warning.main,.62)),Oe(T.TableCell,"border",Qt(cu(T.divider,1),.88)),Oe(T.Tooltip,"bg",cu(T.grey[700],.92))}if(T.mode==="dark"){Oe(T.Alert,"errorColor",Qt(T.error.light,.6)),Oe(T.Alert,"infoColor",Qt(T.info.light,.6)),Oe(T.Alert,"successColor",Qt(T.success.light,.6)),Oe(T.Alert,"warningColor",Qt(T.warning.light,.6)),Oe(T.Alert,"errorFilledBg",_("palette-error-dark")),Oe(T.Alert,"infoFilledBg",_("palette-info-dark")),Oe(T.Alert,"successFilledBg",_("palette-success-dark")),Oe(T.Alert,"warningFilledBg",_("palette-warning-dark")),Oe(T.Alert,"errorFilledColor",co(()=>T.getContrastText(T.error.dark))),Oe(T.Alert,"infoFilledColor",co(()=>T.getContrastText(T.info.dark))),Oe(T.Alert,"successFilledColor",co(()=>T.getContrastText(T.success.dark))),Oe(T.Alert,"warningFilledColor",co(()=>T.getContrastText(T.warning.dark))),Oe(T.Alert,"errorStandardBg",Zt(T.error.light,.9)),Oe(T.Alert,"infoStandardBg",Zt(T.info.light,.9)),Oe(T.Alert,"successStandardBg",Zt(T.success.light,.9)),Oe(T.Alert,"warningStandardBg",Zt(T.warning.light,.9)),Oe(T.Alert,"errorIconColor",_("palette-error-main")),Oe(T.Alert,"infoIconColor",_("palette-info-main")),Oe(T.Alert,"successIconColor",_("palette-success-main")),Oe(T.Alert,"warningIconColor",_("palette-warning-main")),Oe(T.AppBar,"defaultBg",_("palette-grey-900")),Oe(T.AppBar,"darkBg",_("palette-background-paper")),Oe(T.AppBar,"darkColor",_("palette-text-primary")),Oe(T.Avatar,"defaultBg",_("palette-grey-600")),Oe(T.Button,"inheritContainedBg",_("palette-grey-800")),Oe(T.Button,"inheritContainedHoverBg",_("palette-grey-700")),Oe(T.Chip,"defaultBorder",_("palette-grey-700")),Oe(T.Chip,"defaultAvatarColor",_("palette-grey-300")),Oe(T.Chip,"defaultIconColor",_("palette-grey-300")),Oe(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Oe(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Oe(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Oe(T.LinearProgress,"primaryBg",Zt(T.primary.main,.5)),Oe(T.LinearProgress,"secondaryBg",Zt(T.secondary.main,.5)),Oe(T.LinearProgress,"errorBg",Zt(T.error.main,.5)),Oe(T.LinearProgress,"infoBg",Zt(T.info.main,.5)),Oe(T.LinearProgress,"successBg",Zt(T.success.main,.5)),Oe(T.LinearProgress,"warningBg",Zt(T.warning.main,.5)),Oe(T.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.13)`),Oe(T.Slider,"primaryTrack",Zt(T.primary.main,.5)),Oe(T.Slider,"secondaryTrack",Zt(T.secondary.main,.5)),Oe(T.Slider,"errorTrack",Zt(T.error.main,.5)),Oe(T.Slider,"infoTrack",Zt(T.info.main,.5)),Oe(T.Slider,"successTrack",Zt(T.success.main,.5)),Oe(T.Slider,"warningTrack",Zt(T.warning.main,.5));const k=uu(T.background.default,.98);Oe(T.SnackbarContent,"bg",k),Oe(T.SnackbarContent,"color",co(()=>T.getContrastText(k))),Oe(T.SpeedDialAction,"fabHoverBg",uu(T.background.paper,.15)),Oe(T.StepConnector,"border",_("palette-grey-600")),Oe(T.StepContent,"border",_("palette-grey-600")),Oe(T.Switch,"defaultColor",_("palette-grey-300")),Oe(T.Switch,"defaultDisabledColor",_("palette-grey-600")),Oe(T.Switch,"primaryDisabledColor",Zt(T.primary.main,.55)),Oe(T.Switch,"secondaryDisabledColor",Zt(T.secondary.main,.55)),Oe(T.Switch,"errorDisabledColor",Zt(T.error.main,.55)),Oe(T.Switch,"infoDisabledColor",Zt(T.info.main,.55)),Oe(T.Switch,"successDisabledColor",Zt(T.success.main,.55)),Oe(T.Switch,"warningDisabledColor",Zt(T.warning.main,.55)),Oe(T.TableCell,"border",Zt(cu(T.divider,1),.68)),Oe(T.Tooltip,"bg",cu(T.grey[700],.92))}Do(T.background,"default"),Do(T.background,"paper"),Do(T.common,"background"),Do(T.common,"onBackground"),Do(T,"divider"),Object.keys(T).forEach(k=>{const $=T[k];k!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&Oe(T[k],"mainChannel",fl(pl($.main))),$.light&&Oe(T[k],"lightChannel",fl(pl($.light))),$.dark&&Oe(T[k],"darkChannel",fl(pl($.dark))),$.contrastText&&Oe(T[k],"contrastTextChannel",fl(pl($.contrastText))),k==="text"&&(Do(T[k],"primary"),Do(T[k],"secondary")),k==="action"&&($.active&&Do(T[k],"active"),$.selected&&Do(T[k],"selected")))})}),w=t.reduce((P,T)=>Rn(P,T),w);const O={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:RA(w)},{vars:E,generateThemeVars:C,generateStyleSheets:S}=$N(w,O);return w.vars=E,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([P,T])=>{w[P]=T}),w.generateThemeVars=C,w.generateStyleSheets=S,w.generateSpacing=function(){return uS(u.spacing,af(this))},w.getColorSchemeSelector=RN(l),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...mc,...u==null?void 0:u.unstable_sxConfig},w.unstable_sx=function(T){return ai({sx:T,theme:this})},w.toRuntimeSource=$S,w}function h1(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:$g({...n===!0?{}:n.palette,mode:t})})}function bf(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...s}=e,l=a||"light",c=i==null?void 0:i[l],u={...i,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return um(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=um({...e,palette:d},...t);return f.defaultColorScheme=l,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},h1(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},h1(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),AA({...s,colorSchemes:u,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const vf=bf();function ao(){const e=gc(vf);return process.env.NODE_ENV!=="production"&&R.useDebugValue(e),e[Vr]||e}function ft({props:e,name:t}){return hf({props:e,name:t,defaultTheme:vf,themeId:Vr})}function wf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mn=e=>wf(e)&&e!=="classes",ne=gS({themeId:Vr,defaultTheme:vf,rootShouldForwardProp:Mn});function jA({theme:e,...t}){const n=Vr in e?e[Vr]:void 0;return I.jsx(zl,{...t,themeId:n?Vr:void 0,theme:n||e})}const du={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(o.string,o.string,o.string,o.string,o.string,o.oneOf(["dark","light","system"]),o.string,o.string);const{CssVarsProvider:LA}=PN({themeId:Vr,theme:()=>bf({cssVariables:!0}),colorSchemeStorageKey:du.colorSchemeStorageKey,modeStorageKey:du.modeStorageKey,defaultColorScheme:{light:du.defaultLightColorScheme,dark:du.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:kS(e.palette,e.typography)};return t.unstable_sx=function(r){return ai({sx:r,theme:this})},t}}),FA=LA;function VA({theme:e,...t}){const n=R.useMemo(()=>{if(typeof e=="function")return e;const r=Vr in e?e[Vr]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?I.jsx(jA,{theme:n,...t}):I.jsx(FA,{theme:e,...t})}const BA=ke("MuiBox",["root"]),zA=bf(),at=GI({themeId:Vr,defaultTheme:zA,defaultClassName:BA.root,generateClassName:dS.generate});process.env.NODE_ENV!=="production"&&(at.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const IS=V.createContext({dragDropManager:void 0});function $r(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var m1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),g1=function(){return Math.random().toString(36).substring(7).split("").join(".")},y1={INIT:"@@redux/INIT"+g1(),REPLACE:"@@redux/REPLACE"+g1()};function WA(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function qA(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(YA(e))return"date";if(HA(e))return"error";var n=UA(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function UA(e){return typeof e.constructor=="function"?e.constructor.name:null}function HA(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function YA(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ma(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=qA(e)),t}function NS(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?$r(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?$r(1):"Expected the enhancer to be a function. Instead, received: '"+ma(n)+"'");return n(NS)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?$r(2):"Expected the root reducer to be a function. Instead, received: '"+ma(e)+"'");var i=e,a=t,s=[],l=s,c=!1;function u(){l===s&&(l=s.slice())}function d(){if(c)throw new Error(process.env.NODE_ENV==="production"?$r(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?$r(4):"Expected the listener to be a function. Instead, received: '"+ma(m)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?$r(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;return u(),l.push(m),function(){if(y){if(c)throw new Error(process.env.NODE_ENV==="production"?$r(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,u();var v=l.indexOf(m);l.splice(v,1),s=null}}}function p(m){if(!WA(m))throw new Error(process.env.NODE_ENV==="production"?$r(7):"Actions must be plain objects. Instead, the actual type was: '"+ma(m)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?$r(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?$r(9):"Reducers may not dispatch actions.");try{c=!0,a=i(a,m)}finally{c=!1}for(var y=s=l,b=0;b<y.length;b++){var v=y[b];v()}return m}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?$r(10):"Expected the nextReducer to be a function. Instead, received: '"+ma(m));i=m,p({type:y1.REPLACE})}function g(){var m,y=f;return m={subscribe:function(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?$r(11):"Expected the observer to be an object. Instead, received: '"+ma(v)+"'");function x(){v.next&&v.next(d())}x();var w=y(x);return{unsubscribe:w}}},m[m1]=function(){return this},m}return p({type:y1.INIT}),r={dispatch:p,subscribe:f,getState:d,replaceReducer:h},r[m1]=g,r}function dt(e,t,...n){if(GA()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(t.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function GA(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function KA(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function XA(e,t){return e.filter(n=>n!==t)}function AS(e){return typeof e=="object"}function ZA(e,t){const n=new Map,r=a=>{n.set(a,n.has(a)?n.get(a)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((a,s)=>{a===1&&i.push(s)}),i}function QA(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Rg="dnd-core/INIT_COORDS",xf="dnd-core/BEGIN_DRAG",Mg="dnd-core/PUBLISH_DRAG_SOURCE",Of="dnd-core/HOVER",Tf="dnd-core/DROP",Sf="dnd-core/END_DRAG";function b1(e,t){return{type:Rg,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const JA={type:Rg,payload:{clientOffset:null,sourceClientOffset:null}};function ej(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:a,getSourceClientOffset:s}=r,l=e.getMonitor(),c=e.getRegistry();e.dispatch(b1(a)),tj(n,l,c);const u=oj(n,l);if(u==null){e.dispatch(JA);return}let d=null;if(a){if(!s)throw new Error("getSourceClientOffset must be defined");nj(s),d=s(u)}e.dispatch(b1(a,d));const p=c.getSource(u).beginDrag(l,u);if(p==null)return;rj(p),c.pinSource(u);const h=c.getSourceType(u);return{type:xf,payload:{itemType:h,item:p,sourceId:u,clientOffset:a||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function tj(e,t,n){dt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){dt(n.getSource(r),"Expected sourceIds to be registered.")})}function nj(e){dt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function rj(e){dt(AS(e),"Item must be an object.")}function oj(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ij(e,i,n[i])})}return e}function sj(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();lj(r),dj(r).forEach((s,l)=>{const c=cj(s,l,i,r),u={type:Tf,payload:{dropResult:aj({},n,c)}};e.dispatch(u)})}}function lj(e){dt(e.isDragging(),"Cannot call drop while not dragging."),dt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function cj(e,t,n,r){const i=n.getTarget(e);let a=i?i.drop(r,e):void 0;return uj(a),typeof a>"u"&&(a=t===0?{}:r.getDropResult()),a}function uj(e){dt(typeof e>"u"||AS(e),"Drop result must either be an object or undefined.")}function dj(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function fj(e){return function(){const n=e.getMonitor(),r=e.getRegistry();pj(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Sf}}}function pj(e){dt(e.isDragging(),"Cannot call endDrag while not dragging.")}function fm(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function hj(e){return function(n,{clientOffset:r}={}){mj(n);const i=n.slice(0),a=e.getMonitor(),s=e.getRegistry(),l=a.getItemType();return yj(i,s,l),gj(i,a,s),bj(i,a,s),{type:Of,payload:{targetIds:i,clientOffset:r||null}}}}function mj(e){dt(Array.isArray(e),"Expected targetIds to be an array.")}function gj(e,t,n){dt(t.isDragging(),"Cannot call hover while not dragging."),dt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];dt(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const a=n.getTarget(i);dt(a,"Expected targetIds to be registered.")}}function yj(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],a=t.getTargetType(i);fm(a,n)||e.splice(r,1)}}function bj(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function vj(e){return function(){if(e.getMonitor().isDragging())return{type:Mg}}}function wj(e){return{beginDrag:ej(e),publishDragSource:vj(e),hover:hj(e),drop:sj(e),endDrag:fj(e)}}class xj{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(a){return(...s)=>{const l=a.apply(t,s);typeof l<"u"&&n(l)}}const i=wj(this);return Object.keys(i).reduce((a,s)=>{const l=i[s];return a[s]=r(l),a},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function Oj(e,t){return{x:e.x+t.x,y:e.y+t.y}}function jS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Tj(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:jS(Oj(t,r),n)}function Sj(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:jS(t,n)}const Sl=[],Ig=[];Sl.__IS_NONE__=!0;Ig.__IS_ALL__=!0;function Ej(e,t){return e===Sl?!1:e===Ig||typeof t>"u"?!0:QA(t,e).length>0}class Cj{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;dt(typeof t=="function","listener must be a function."),dt(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const a=()=>{const s=this.store.getState(),l=s.stateId;try{l===i||l===i+1&&!Ej(s.dirtyHandlerIds,r)||t()}finally{i=l}};return this.store.subscribe(a)}subscribeToOffsetChange(t){dt(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return dt(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(dt(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return fm(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(dt(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),a=this.getItemType();if(a&&!fm(i,a))return!1;const s=this.getTargetIds();if(!s.length)return!1;const l=s.indexOf(t);return r?l===s.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return Tj(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return Sj(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const v1=typeof global<"u"?global:self,LS=v1.MutationObserver||v1.WebKitMutationObserver;function FS(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function Pj(e){let t=1;const n=new LS(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const _j=typeof LS=="function"?Pj:FS;class kj{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=_j(this.flush),this.requestErrorThrow=FS(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Dj{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class $j{create(t){const n=this.freeTasks,r=n.length?n.pop():new Dj(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const VS=new kj,Rj=new $j(VS.registerPendingError);function Mj(e){VS.enqueueTask(Rj.create(e))}const Ng="dnd-core/ADD_SOURCE",Ag="dnd-core/ADD_TARGET",jg="dnd-core/REMOVE_SOURCE",Ef="dnd-core/REMOVE_TARGET";function Ij(e){return{type:Ng,payload:{sourceId:e}}}function Nj(e){return{type:Ag,payload:{targetId:e}}}function Aj(e){return{type:jg,payload:{sourceId:e}}}function jj(e){return{type:Ef,payload:{targetId:e}}}function Lj(e){dt(typeof e.canDrag=="function","Expected canDrag to be a function."),dt(typeof e.beginDrag=="function","Expected beginDrag to be a function."),dt(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Fj(e){dt(typeof e.canDrop=="function","Expected canDrop to be a function."),dt(typeof e.hover=="function","Expected hover to be a function."),dt(typeof e.drop=="function","Expected beginDrag to be a function.")}function pm(e,t){if(t&&Array.isArray(e)){e.forEach(n=>pm(n,!1));return}dt(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Lr;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Lr||(Lr={}));let Vj=0;function Bj(){return Vj++}function zj(e){const t=Bj().toString();switch(e){case Lr.SOURCE:return`S${t}`;case Lr.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function w1(e){switch(e[0]){case"S":return Lr.SOURCE;case"T":return Lr.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function x1(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,a]}=n.next();if(a===t)return!0;r=!!i}while(!r);return!1}class Wj{addSource(t,n){pm(t),Lj(n);const r=this.addHandler(Lr.SOURCE,t,n);return this.store.dispatch(Ij(r)),r}addTarget(t,n){pm(t,!0),Fj(n);const r=this.addHandler(Lr.TARGET,t,n);return this.store.dispatch(Nj(r)),r}containsHandler(t){return x1(this.dragSources,t)||x1(this.dropTargets,t)}getSource(t,n=!1){return dt(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return dt(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return dt(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return dt(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return w1(t)===Lr.SOURCE}isTargetId(t){return w1(t)===Lr.TARGET}removeSource(t){dt(this.getSource(t),"Expected an existing source."),this.store.dispatch(Aj(t)),Mj(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){dt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(jj(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);dt(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){dt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=zj(t);return this.types.set(i,n),t===Lr.SOURCE?this.dragSources.set(i,r):t===Lr.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const qj=(e,t)=>e===t;function Uj(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Hj(e,t,n=qj){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Yj(e=Sl,t){switch(t.type){case Of:break;case Ng:case Ag:case Ef:case jg:return Sl;case xf:case Mg:case Sf:case Tf:default:return Ig}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=ZA(n,r);if(!(i.length>0||!Hj(n,r)))return Sl;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function Gj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Gj(e,i,n[i])})}return e}const O1={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Xj(e=O1,t){const{payload:n}=t;switch(t.type){case Rg:case xf:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Of:return Uj(e.clientOffset,n.clientOffset)?e:Kj({},e,{clientOffset:n.clientOffset});case Sf:case Tf:return O1;default:return e}}function Zj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Zj(e,i,n[i])})}return e}const Qj={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Jj(e=Qj,t){const{payload:n}=t;switch(t.type){case xf:return ga({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Mg:return ga({},e,{isSourcePublic:!0});case Of:return ga({},e,{targetIds:n.targetIds});case Ef:return e.targetIds.indexOf(n.targetId)===-1?e:ga({},e,{targetIds:XA(e.targetIds,n.targetId)});case Tf:return ga({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Sf:return ga({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function e2(e=0,t){switch(t.type){case Ng:case Ag:return e+1;case jg:case Ef:return e-1;default:return e}}function t2(e=0){return e+1}function n2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){n2(e,i,n[i])})}return e}function o2(e={},t){return{dirtyHandlerIds:Yj(e.dirtyHandlerIds,{type:t.type,payload:r2({},t.payload,{prevTargetIds:KA(e,"dragOperation.targetIds",[])})}),dragOffset:Xj(e.dragOffset,t),refCount:e2(e.refCount,t),dragOperation:Jj(e.dragOperation,t),stateId:t2(e.stateId)}}function i2(e,t=void 0,n={},r=!1){const i=a2(r),a=new Cj(i,new Wj(i)),s=new xj(i,a),l=e(s,t,n);return s.receiveBackend(l),s}function a2(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return NS(o2,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function s2(e,t){if(e==null)return{};var n=l2(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function l2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let T1=0;const Wu=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var c2=V.memo(function(t){var{children:n}=t,r=s2(t,["children"]);const[i,a]=u2(r);return V.useEffect(()=>{if(a){const s=BS();return++T1,()=>{--T1===0&&(s[Wu]=null)}}},[]),I.jsx(IS.Provider,{value:i,children:n})});function u2(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=d2(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function d2(e,t=BS(),n,r){const i=t;return i[Wu]||(i[Wu]={dragDropManager:i2(e,t,n,r)}),i[Wu]}function BS(){return typeof global<"u"?global:window}var Lg=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var s=a[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const f2=kt(Lg),qi=typeof window<"u"?V.useLayoutEffect:V.useEffect;function p2(e,t,n){const[r,i]=V.useState(()=>t(e)),a=V.useCallback(()=>{const s=t(e);f2(r,s)||(i(s),n&&n())},[r,e,n]);return qi(a),[r,a]}function h2(e,t,n){const[r,i]=p2(e,t,n);return qi(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function zS(e,t,n){return h2(t,e||(()=>({})),()=>n.reconnect())}function WS(e,t){const n=[];return typeof e!="function"&&n.push(e),V.useMemo(()=>typeof e=="function"?e():e,n)}function m2(e){return V.useMemo(()=>e.hooks.dragSource(),[e])}function g2(e){return V.useMemo(()=>e.hooks.dragPreview(),[e])}let rh=!1,oh=!1;class y2{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){dt(!rh,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return rh=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{rh=!1}}isDragging(){if(!this.sourceId)return!1;dt(!oh,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return oh=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{oh=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let ih=!1;class b2{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;dt(!ih,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return ih=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{ih=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function v2(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function w2(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function hm(e,t,n,r){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<a.length;c++){const u=a[c];if(!l(u))return!1;const d=e[u],f=t[u];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function mm(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function x2(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function O2(e){return(t=null,n=null)=>{if(!V.isValidElement(t)){const a=t;return e(a,n),a}const r=t;return x2(r),T2(r,n?a=>e(a,n):e)}}function qS(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=O2(r);t[n]=()=>i}}),t}function S1(e,t){typeof e=="function"?e(t):e.current=t}function T2(e,t){const n=e.ref;return dt(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?V.cloneElement(e,{ref:r=>{S1(n,r),S1(t,r)}}):V.cloneElement(e,{ref:t})}class S2{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!hm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!hm(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=qS({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,mm(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,mm(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class E2{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!hm(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=qS({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,mm(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function ws(){const{dragDropManager:e}=V.useContext(IS);return dt(e!=null,"Expected drag drop context"),e}function C2(e,t){const n=ws(),r=V.useMemo(()=>new S2(n.getBackend()),[n]);return qi(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),qi(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function P2(){const e=ws();return V.useMemo(()=>new y2(e),[e])}class _2{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:a}=r;return a?a(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function k2(e,t,n){const r=V.useMemo(()=>new _2(e,t,n),[t,n]);return V.useEffect(()=>{r.spec=e},[e]),r}function D2(e){return V.useMemo(()=>{const t=e.type;return dt(t!=null,"spec.type must be defined"),t},[e])}function $2(e,t,n){const r=ws(),i=k2(e,t,n),a=D2(e);qi(function(){if(a!=null){const[l,c]=w2(a,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,t,n,i,a])}function R2(e,t){const n=WS(e);dt(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=P2(),i=C2(n.options,n.previewOptions);return $2(n,r,i),[zS(n.collect,r,i),m2(i),g2(i)]}function M2(e){return V.useMemo(()=>e.hooks.dropTarget(),[e])}function I2(e){const t=ws(),n=V.useMemo(()=>new E2(t.getBackend()),[t]);return qi(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function N2(){const e=ws();return V.useMemo(()=>new b2(e),[e])}function A2(e){const{accept:t}=e;return V.useMemo(()=>(dt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class j2{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function L2(e,t){const n=V.useMemo(()=>new j2(e,t),[t]);return V.useEffect(()=>{n.spec=e},[e]),n}function F2(e,t,n){const r=ws(),i=L2(e,t),a=A2(e);qi(function(){const[l,c]=v2(a,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,t,i,n,a.map(s=>s.toString()).join("|")])}function US(e,t){const n=WS(e),r=N2(),i=I2(n.options);return F2(n,r,i),[zS(n.collect,r,i),M2(i)]}function HS(e){let t=null;return()=>(t==null&&(t=e()),t)}function V2(e,t){return e.filter(n=>n!==t)}function B2(e,t){const n=new Set,r=a=>n.add(a);e.forEach(r),t.forEach(r);const i=[];return n.forEach(a=>i.push(a)),i}class z2{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=B2(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=V2(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class W2{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const YS="__NATIVE_FILE__",GS="__NATIVE_URL__",KS="__NATIVE_TEXT__",XS="__NATIVE_HTML__",E1=Object.freeze(Object.defineProperty({__proto__:null,FILE:YS,HTML:XS,TEXT:KS,URL:GS},Symbol.toStringTag,{value:"Module"}));function ah(e,t,n){const r=t.reduce((i,a)=>i||e.getData(a),"");return r??n}const gm={[YS]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[XS]:{exposeProperties:{html:(e,t)=>ah(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[GS]:{exposeProperties:{urls:(e,t)=>ah(e,t,"").split(`
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[KS]:{exposeProperties:{text:(e,t)=>ah(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function q2(e,t){const n=gm[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new W2(n);return r.loadDataTransfer(t),r}function sh(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(gm).filter(n=>{const r=gm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const U2=HS(()=>/firefox/i.test(navigator.userAgent)),ZS=HS(()=>!!window.safari);class C1{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:a,c3s:s}=this;let l=n.length-1;if(t===n[l])return r[l];let c=0,u=s.length-1,d;for(;c<=u;){d=Math.floor(.5*(c+u));const h=n[d];if(h<t)c=d+1;else if(h>t)u=d-1;else return r[d]}l=Math.max(0,u);const f=t-n[l],p=f*f;return r[l]+i[l]*f+a[l]*p+s[l]*f*p}constructor(t,n){const{length:r}=t,i=[];for(let h=0;h<r;h++)i.push(h);i.sort((h,g)=>t[h]<t[g]?-1:1);const a=[],s=[];let l,c;for(let h=0;h<r-1;h++)l=t[h+1]-t[h],c=n[h+1]-n[h],a.push(l),s.push(c/l);const u=[s[0]];for(let h=0;h<a.length-1;h++){const g=s[h],m=s[h+1];if(g*m<=0)u.push(0);else{l=a[h];const y=a[h+1],b=l+y;u.push(3*b/((b+y)/g+(b+l)/m))}}u.push(s[s.length-1]);const d=[],f=[];let p;for(let h=0;h<u.length-1;h++){p=s[h];const g=u[h],m=1/a[h],y=g+u[h+1]-p-p;d.push((p-g-y)*m),f.push(y*m*m)}this.xs=t,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const H2=1;function QS(e){const t=e.nodeType===H2?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function fu(e){return{x:e.clientX,y:e.clientY}}function Y2(e){var t;return e.nodeName==="IMG"&&(U2()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function G2(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return ZS()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function K2(e,t,n,r,i){const a=Y2(t),l=QS(a?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:f,anchorY:p}=r,{dragPreviewWidth:h,dragPreviewHeight:g}=G2(a,t,u,d),m=()=>{let E=new C1([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(p);return ZS()&&a&&(E+=(window.devicePixelRatio-1)*g),E},y=()=>new C1([0,.5,1],[c.x,c.x/u*h,c.x+h-u]).interpolate(f),{offsetX:b,offsetY:v}=i,x=b===0||b,w=v===0||v;return{x:x?b:y(),y:w?v:m()}}class X2{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}}function Z2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Z2(e,i,n[i])})}return e}class Q2{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=s=>this.handleDragStart(s,t),a=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",a),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=s=>this.handleDragEnter(s,t),i=s=>this.handleDragOver(s,t),a=s=>this.handleDrop(s,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",a),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",a)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return P1({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return P1({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(E1).some(n=>E1[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=q2(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const a=this.sourceNodes.get(i);return a&&QS(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const s=fu(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=sh(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const d=this.monitor.getSourceId(),f=this.sourceNodes.get(d),p=this.sourcePreviewNodes.get(d)||f;if(p){const{anchorX:h,anchorY:g,offsetX:m,offsetY:y}=this.getCurrentSourcePreviewNodeOptions(),x=K2(f,p,s,{anchorX:h,anchorY:g},{offsetX:m,offsetY:y});l.setDragImage(p,x.x,x.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:l}=i,c=sh(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,a.length>0&&this.actions.hover(a,{clientOffset:fu(i)}),a.some(l=>this.monitor.canDropOnTarget(l))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=fu(i),this.scheduleHover(a),(a||[]).some(l=>this.monitor.canDropOnTarget(l))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;i.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}else sh(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:fu(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const a=i.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(i.preventDefault(),a.dragDrop()))},this.options=new X2(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new z2(this.isNodeInDocument)}}const J2=function(t,n,r){return new Q2(t,n,r)};var ym={exports:{}},lh={};/**
* @license React
* use-sync-external-store-with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _1;function eL(){if(_1)return lh;_1=1;var e=V;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return lh.useSyncExternalStoreWithSelector=function(c,u,d,f,p){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function y(O){if(!b){if(b=!0,v=O,O=f(O),p!==void 0&&g.hasValue){var E=g.value;if(p(E,O))return x=E}return x=O}if(E=x,n(v,O))return E;var C=f(O);return p!==void 0&&p(E,C)?(v=O,E):(v=O,x=C)}var b=!1,v,x,w=d===void 0?null:d;return[function(){return y(u())},w===null?void 0:function(){return y(w())}]},[u,d,f,p]);var m=r(c,h[0],h[1]);return a(function(){g.hasValue=!0,g.value=m},[m]),l(m),m},lh}var ch={};/**
* @license React
* use-sync-external-store-with-selector.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var k1;function tL(){return k1||(k1=1,process.env.NODE_ENV!=="production"&&function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=V,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;ch.useSyncExternalStoreWithSelector=function(c,u,d,f,p){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function y(O){if(!b){if(b=!0,v=O,O=f(O),p!==void 0&&g.hasValue){var E=g.value;if(p(E,O))return x=E}return x=O}if(E=x,n(v,O))return E;var C=f(O);return p!==void 0&&p(E,C)?(v=O,E):(v=O,x=C)}var b=!1,v,x,w=d===void 0?null:d;return[function(){return y(u())},w===null?void 0:function(){return y(w())}]},[u,d,f,p]);var m=r(c,h[0],h[1]);return a(function(){g.hasValue=!0,g.value=m},[m]),l(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ch}process.env.NODE_ENV==="production"?ym.exports=eL():ym.exports=tL();var nL=ym.exports;function rL(e){e()}function oL(){let e=null,t=null;return{clear(){e=null,t=null},notify(){rL(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var D1={notify(){},get:()=>[]};function iL(e,t){let n,r=D1,i=0,a=!1;function s(m){d();const y=r.subscribe(m);let b=!1;return()=>{b||(b=!0,y(),f())}}function l(){r.notify()}function c(){g.onStateChange&&g.onStateChange()}function u(){return a}function d(){i++,n||(n=e.subscribe(c),r=oL())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=D1)}function p(){a||(a=!0,d())}function h(){a&&(a=!1,f())}const g={addNestedSub:s,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:u,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return g}var aL=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sL=aL(),lL=()=>typeof navigator<"u"&&navigator.product==="ReactNative",cL=lL(),uL=()=>sL||cL?R.useLayoutEffect:R.useEffect,dL=uL(),uh=Symbol.for("react-redux-context"),dh=typeof globalThis<"u"?globalThis:{};function fL(){if(!R.createContext)return{};const e=dh[uh]??(dh[uh]=new Map);let t=e.get(R.createContext);return t||(t=R.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(R.createContext,t)),t}var li=fL();function pL(e){const{children:t,context:n,serverState:r,store:i}=e,a=R.useMemo(()=>{const c=iL(i),u={store:i,subscription:c,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return u;{const{identityFunctionCheck:d="once",stabilityCheck:f="once"}=e;return Object.assign(u,{stabilityCheck:f,identityFunctionCheck:d})}},[i,r]),s=R.useMemo(()=>i.getState(),[i]);dL(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=n||li;return R.createElement(l.Provider,{value:a},t)}var hL=pL;function Fg(e=li){return function(){const n=R.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var JS=Fg();function eE(e=li){const t=e===li?JS:Fg(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var mL=eE();function gL(e=li){const t=e===li?mL:eE(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var tE=gL(),yL=(e,t)=>e===t;function bL(e=li){const t=e===li?JS:Fg(e),n=(r,i={})=>{const{equalityFn:a=yL}=typeof i=="function"?{equalityFn:i}:i;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as an equality function to useSelector")}const s=t(),{store:l,subscription:c,getServerState:u}=s,d=R.useRef(!0),f=R.useCallback({[r.name](h){const g=r(h);if(process.env.NODE_ENV!=="production"){const{devModeChecks:m={}}=typeof i=="function"?{}:i,{identityFunctionCheck:y,stabilityCheck:b}=s,{identityFunctionCheck:v,stabilityCheck:x}={stabilityCheck:b,identityFunctionCheck:y,...m};if(x==="always"||x==="once"&&d.current){const w=r(h);if(!a(g,w)){let O;try{throw new Error}catch(E){({stack:O}=E)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:h,selected:g,selected2:w,stack:O})}}if((v==="always"||v==="once"&&d.current)&&g===h){let w;try{throw new Error}catch(O){({stack:w}=O)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:w})}d.current&&(d.current=!1)}return g}}[r.name],[r]),p=nL.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,u||l.getState,f,a);return R.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var Ga=bL();function An(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var vL=typeof Symbol=="function"&&Symbol.observable||"@@observable",$1=vL,fh=()=>Math.random().toString(36).substring(7).split("").join("."),wL={INIT:`@@redux/INIT${fh()}`,REPLACE:`@@redux/REPLACE${fh()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fh()}`},Ai=wL;function yc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function xL(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(SL(e))return"date";if(TL(e))return"error";const n=OL(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function OL(e){return typeof e.constructor=="function"?e.constructor.name:null}function TL(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function SL(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ei(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=xL(e)),t}function nE(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?An(2):`Expected the root reducer to be a function. Instead, received: '${ei(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?An(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?An(1):`Expected the enhancer to be a function. Instead, received: '${ei(n)}'`);return n(nE)(e,t)}let r=e,i=t,a=new Map,s=a,l=0,c=!1;function u(){s===a&&(s=new Map,a.forEach((y,b)=>{s.set(b,y)}))}function d(){if(c)throw new Error(process.env.NODE_ENV==="production"?An(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?An(4):`Expected the listener to be a function. Instead, received: '${ei(y)}'`);if(c)throw new Error(process.env.NODE_ENV==="production"?An(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let b=!0;u();const v=l++;return s.set(v,y),function(){if(b){if(c)throw new Error(process.env.NODE_ENV==="production"?An(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,u(),s.delete(v),a=null}}}function p(y){if(!yc(y))throw new Error(process.env.NODE_ENV==="production"?An(7):`Actions must be plain objects. Instead, the actual type was: '${ei(y)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof y.type>"u")throw new Error(process.env.NODE_ENV==="production"?An(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof y.type!="string")throw new Error(process.env.NODE_ENV==="production"?An(17):`Action "type" property must be a string. Instead, the actual type was: '${ei(y.type)}'. Value was: '${y.type}' (stringified)`);if(c)throw new Error(process.env.NODE_ENV==="production"?An(9):"Reducers may not dispatch actions.");try{c=!0,i=r(i,y)}finally{c=!1}return(a=s).forEach(v=>{v()}),y}function h(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?An(10):`Expected the nextReducer to be a function. Instead, received: '${ei(y)}`);r=y,p({type:Ai.REPLACE})}function g(){const y=f;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?An(11):`Expected the observer to be an object. Instead, received: '${ei(b)}'`);function v(){const w=b;w.next&&w.next(d())}return v(),{unsubscribe:y(v)}},[$1](){return this}}}return p({type:Ai.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:h,[$1]:g}}function R1(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function EL(e,t,n,r){const i=Object.keys(t),a=n&&n.type===Ai.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!yc(e))return`The ${a} has unexpected type of "${ei(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const s=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!r[l]);if(s.forEach(l=>{r[l]=!0}),!(n&&n.type===Ai.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function CL(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ai.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?An(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Ai.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?An(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ai.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function PL(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const l=t[s];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&R1(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{CL(n)}catch(s){a=s}return function(l={},c){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=EL(l,n,c,i);f&&R1(f)}let u=!1;const d={};for(let f=0;f<r.length;f++){const p=r[f],h=n[p],g=l[p],m=h(g,c);if(typeof m>"u"){const y=c&&c.type;throw new Error(process.env.NODE_ENV==="production"?An(14):`When called with an action of type ${y?`"${String(y)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[p]=m,u=u||m!==g}return u=u||r.length!==Object.keys(l).length,u?d:l}}function ud(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function _L(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?An(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:i.getState,dispatch:(c,...u)=>a(c,...u)},l=e.map(c=>c(s));return a=ud(...l)(i.dispatch),{...i,dispatch:a}}}function rE(e){return yc(e)&&"type"in e&&typeof e.type=="string"}var oE=Symbol.for("immer-nothing"),M1=Symbol.for("immer-draftable"),xr=Symbol.for("immer-state"),kL=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function tr(e,...t){if(process.env.NODE_ENV!=="production"){const n=kL[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ka=Object.getPrototypeOf;function Ui(e){return!!e&&!!e[xr]}function Fo(e){var t;return e?iE(e)||Array.isArray(e)||!!e[M1]||!!((t=e.constructor)!=null&&t[M1])||Pf(e)||_f(e):!1}var DL=Object.prototype.constructor.toString();function iE(e){if(!e||typeof e!="object")return!1;const t=Ka(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===DL}function dd(e,t){Cf(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Cf(e){const t=e[xr];return t?t.type_:Array.isArray(e)?1:Pf(e)?2:_f(e)?3:0}function bm(e,t){return Cf(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function aE(e,t,n){const r=Cf(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function $L(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pf(e){return e instanceof Map}function _f(e){return e instanceof Set}function Si(e){return e.copy_||e.base_}function vm(e,t){if(Pf(e))return new Map(e);if(_f(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=iE(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[xr];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],l=r[s];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[s]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[s]})}return Object.create(Ka(e),r)}else{const r=Ka(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Vg(e,t=!1){return kf(e)||Ui(e)||!Fo(e)||(Cf(e)>1&&(e.set=e.add=e.clear=e.delete=RL),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Vg(r,!0))),e}function RL(){tr(2)}function kf(e){return Object.isFrozen(e)}var ML={};function Hi(e){const t=ML[e];return t||tr(0,e),t}var ql;function sE(){return ql}function IL(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function I1(e,t){t&&(Hi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function wm(e){xm(e),e.drafts_.forEach(NL),e.drafts_=null}function xm(e){e===ql&&(ql=e.parent_)}function N1(e){return ql=IL(ql,e)}function NL(e){const t=e[xr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function A1(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[xr].modified_&&(wm(t),tr(4)),Fo(e)&&(e=fd(t,e),t.parent_||pd(t,e)),t.patches_&&Hi("Patches").generateReplacementPatches_(n[xr].base_,e,t.patches_,t.inversePatches_)):e=fd(t,n,[]),wm(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==oE?e:void 0}function fd(e,t,n){if(kf(t))return t;const r=t[xr];if(!r)return dd(t,(i,a)=>j1(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return pd(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),dd(a,(l,c)=>j1(e,r,i,l,c,n,s)),pd(e,i,!1),n&&e.patches_&&Hi("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function j1(e,t,n,r,i,a,s){if(process.env.NODE_ENV!=="production"&&i===n&&tr(5),Ui(i)){const l=a&&t&&t.type_!==3&&!bm(t.assigned_,r)?a.concat(r):void 0,c=fd(e,i,l);if(aE(n,r,c),Ui(c))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Fo(i)&&!kf(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;fd(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&pd(e,i)}}function pd(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Vg(t,n)}function AL(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:sE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Bg;n&&(i=[r],a=Ul);const{revoke:s,proxy:l}=Proxy.revocable(i,a);return r.draft_=l,r.revoke_=s,l}var Bg={get(e,t){if(t===xr)return e;const n=Si(e);if(!bm(n,t))return jL(e,n,t);const r=n[t];return e.finalized_||!Fo(r)?r:r===ph(e.base_,t)?(hh(e),e.copy_[t]=Tm(r,e)):r},has(e,t){return t in Si(e)},ownKeys(e){return Reflect.ownKeys(Si(e))},set(e,t,n){const r=lE(Si(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=ph(Si(e),t),a=i==null?void 0:i[xr];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if($L(n,i)&&(n!==void 0||bm(e.base_,t)))return!0;hh(e),Om(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ph(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,hh(e),Om(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Si(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){tr(11)},getPrototypeOf(e){return Ka(e.base_)},setPrototypeOf(){tr(12)}},Ul={};dd(Bg,(e,t)=>{Ul[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ul.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&tr(13),Ul.set.call(this,e,t,void 0)};Ul.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&tr(14),Bg.set.call(this,e[0],t,n,e[0])};function ph(e,t){const n=e[xr];return(n?Si(n):e)[t]}function jL(e,t,n){var i;const r=lE(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function lE(e,t){if(!(t in e))return;let n=Ka(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ka(n)}}function Om(e){e.modified_||(e.modified_=!0,e.parent_&&Om(e.parent_))}function hh(e){e.copy_||(e.copy_=vm(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var LL=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(c=a,...u){return s.produce(c,d=>n.call(this,d,...u))}}typeof n!="function"&&tr(6),r!==void 0&&typeof r!="function"&&tr(7);let i;if(Fo(t)){const a=N1(this),s=Tm(t,void 0);let l=!0;try{i=n(s),l=!1}finally{l?wm(a):xm(a)}return I1(a,r),A1(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===oE&&(i=void 0),this.autoFreeze_&&Vg(i,!0),r){const a=[],s=[];Hi("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else tr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,c=>t(c,...l));let r,i;return[this.produce(t,n,(s,l)=>{r=s,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Fo(e)||tr(8),Ui(e)&&(e=FL(e));const t=N1(this),n=Tm(e,void 0);return n[xr].isManual_=!0,xm(t),n}finishDraft(e,t){const n=e&&e[xr];(!n||!n.isManual_)&&tr(9);const{scope_:r}=n;return I1(r,t),A1(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Hi("Patches").applyPatches_;return Ui(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Tm(e,t){const n=Pf(e)?Hi("MapSet").proxyMap_(e,t):_f(e)?Hi("MapSet").proxySet_(e,t):AL(e,t);return(t?t.scope_:sE()).drafts_.push(n),n}function FL(e){return Ui(e)||tr(10,e),cE(e)}function cE(e){if(!Fo(e)||kf(e))return e;const t=e[xr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=vm(e,t.scope_.immer_.useStrictShallowCopy_)}else n=vm(e,!0);return dd(n,(r,i)=>{aE(n,r,cE(i))}),t&&(t.finalized_=!1),n}var Or=new LL,uE=Or.produce;Or.produceWithPatches.bind(Or);Or.setAutoFreeze.bind(Or);Or.setUseStrictShallowCopy.bind(Or);Or.applyPatches.bind(Or);Or.createDraft.bind(Or);Or.finishDraft.bind(Or);function dE(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var VL=dE(),BL=dE,zL=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ud:ud.apply(null,arguments)},WL=e=>e&&typeof e.match=="function";function L1(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?tn(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>rE(r)&&r.type===e,n}function qL(e){return typeof e=="function"&&"type"in e&&WL(e)}function UL(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function HL(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=qL}=e;return()=>n=>r=>(t(r)&&console.warn(UL(r.type)),n(r))}function fE(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const a=Date.now();n+=a-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
It is disabled in production builds, so you don't need to worry about that.`)}}}var pE=class hl extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,hl.prototype)}static get[Symbol.species](){return hl}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new hl(...t[0].concat(this)):new hl(...t.concat(this))}};function F1(e){return Fo(e)?uE(e,()=>{}):e}function pu(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function YL(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function GL(e,t,n){const r=hE(e,t,n);return{detectMutations(){return mE(e,t,r,n)}}}function hE(e,t=[],n,r="",i=new Set){const a={value:n};if(!e(n)&&!i.has(n)){i.add(n),a.children={};for(const s in n){const l=r?r+"."+s:s;t.length&&t.indexOf(l)!==-1||(a.children[s]=hE(e,t,n[s],l))}}return a}function mE(e,t=[],n,r,i=!1,a=""){const s=n?n.value:void 0,l=s===r;if(i&&!l&&!Number.isNaN(r))return{wasMutated:!0,path:a};if(e(s)||e(r))return{wasMutated:!1};const c={};for(let d in n.children)c[d]=!0;for(let d in r)c[d]=!0;const u=t.length>0;for(let d in c){const f=a?a+"."+d:d;if(u&&t.some(g=>g instanceof RegExp?g.test(f):f===g))continue;const p=mE(e,t,n.children[d],r[d],l,f);if(p.wasMutated)return p}return{wasMutated:!1}}function KL(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(l,c,u,d){return JSON.stringify(l,n(c,d),u)},n=function(l,c){let u=[],d=[];return c||(c=function(f,p){return u[0]===p?"[Circular ~]":"[Circular ~."+d.slice(0,u.indexOf(p)).join(".")+"]"}),function(f,p){if(u.length>0){var h=u.indexOf(this);~h?u.splice(h+1):u.push(this),~h?d.splice(h,1/0,f):d.push(f),~u.indexOf(p)&&(p=c.call(this,f,p))}else u.push(p);return l==null?p:l.call(this,f,p)}},{isImmutable:r=YL,ignoredPaths:i,warnAfter:a=32}=e;const s=GL.bind(null,r,i);return({getState:l})=>{let c=l(),u=s(c),d;return f=>p=>{const h=fE(a,"ImmutableStateInvariantMiddleware");h.measureTime(()=>{if(c=l(),d=u.detectMutations(),u=s(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?tn(19):`A state mutation was detected between dispatches, in the path '${d.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=f(p);return h.measureTime(()=>{if(c=l(),d=u.detectMutations(),u=s(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?tn(20):`A state mutation was detected inside a dispatch, in the path: ${d.path||""}. Take a look at the reducer(s) handling the action ${t(p)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),h.warnIfExceeded(),g}}}}function gE(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||yc(e)}function Sm(e,t="",n=gE,r,i=[],a){let s;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a!=null&&a.has(e))return!1;const l=r!=null?r(e):Object.entries(e),c=i.length>0;for(const[u,d]of l){const f=t?t+"."+u:u;if(!(c&&i.some(h=>h instanceof RegExp?h.test(f):f===h))){if(!n(d))return{keyPath:f,value:d};if(typeof d=="object"&&(s=Sm(d,f,n,r,i,a),s))return s}}return a&&yE(e)&&a.add(e),!1}function yE(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!yE(t))return!1;return!0}function XL(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=gE,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:s=32,ignoreState:l=!1,ignoreActions:c=!1,disableCache:u=!1}=e,d=!u&&WeakSet?new WeakSet:void 0;return f=>p=>h=>{if(!rE(h))return p(h);const g=p(h),m=fE(s,"SerializableStateInvariantMiddleware");return!c&&!(r.length&&r.indexOf(h.type)!==-1)&&m.measureTime(()=>{const y=Sm(h,"",t,n,i,d);if(y){const{keyPath:b,value:v}=y;console.error(`A non-serializable value was detected in an action, in the path: \`${b}\`. Value:`,v,`
Take a look at the logic that dispatched this action: `,h,`
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(m.measureTime(()=>{const y=f.getState(),b=Sm(y,"",t,n,a,d);if(b){const{keyPath:v,value:x}=b;console.error(`A non-serializable value was detected in the state, in the path: \`${v}\`. Value:`,x,`
Take a look at the reducer(s) handling this action type: ${h.type}.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),g}}}function hu(e){return typeof e=="boolean"}var ZL=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new pE;if(n&&(hu(n)?s.push(VL):s.push(BL(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};hu(r)||(l=r),s.unshift(KL(l))}if(i){let l={};hu(i)||(l=i),s.push(XL(l))}if(a){let l={};hu(a)||(l=a),s.unshift(HL(l))}}return s},QL="RTK_autoBatch",V1=e=>t=>{setTimeout(t,e)},JL=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:V1(10):e.type==="callback"?e.queueNotification:V1(e.timeout),u=()=>{s=!1,a&&(a=!1,l.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),p=r.subscribe(f);return l.add(d),()=>{p(),l.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[QL]),a=!i,a&&(s||(s=!0,c(u))),r.dispatch(d)}finally{i=!0}}})},eF=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new pE(e);return r&&i.push(JL(typeof r=="object"?r:void 0)),i};function tF(e){const t=ZL(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(yc(n))c=PL(n);else throw new Error(process.env.NODE_ENV==="production"?tn(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?tn(2):"`middleware` field must be a callback");let u;if(typeof r=="function"){if(u=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?tn(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?tn(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let m=new Set;u.forEach(y=>{if(m.has(y))throw new Error(process.env.NODE_ENV==="production"?tn(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(y)})}let d=ud;i&&(d=zL({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=_L(...u),p=eF(f);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?tn(5):"`enhancers` field must be a callback");let h=typeof l=="function"?l(p):p();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?tn(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?tn(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!h.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=d(...h);return nE(c,s,g)}function bE(e){const t={},n=[];let r;const i={addCase(a,s){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?tn(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?tn(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?tn(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?tn(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=s,i},addMatcher(a,s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?tn(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?tn(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[t,n,r]}function nF(e){return typeof e=="function"}function rF(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?tn(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=bE(t),a;if(nF(e))a=()=>F1(e());else{const l=F1(e);a=()=>l}function s(l=a(),c){let u=[n[c.type],...r.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(Ui(d)){const h=f(d,c);return h===void 0?d:h}else{if(Fo(d))return uE(d,p=>f(p,c));{const p=f(d,c);if(p===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return d},l)}return s.getInitialState=a,s}var oF=Symbol.for("rtk-slice-createasyncthunk");function iF(e,t){return`${e}/${t}`}function aF({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[oF];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(process.env.NODE_ENV==="production"?tn(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof i.reducers=="function"?i.reducers(cF()):i.reducers)||{},c=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(w,O){const E=typeof w=="string"?w:w.type;if(!E)throw new Error(process.env.NODE_ENV==="production"?tn(12):"`context.addCase` cannot be called with an empty action type");if(E in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?tn(13):"`context.addCase` cannot be called with two reducers for the same action type: "+E);return u.sliceCaseReducersByType[E]=O,d},addMatcher(w,O){return u.sliceMatchers.push({matcher:w,reducer:O}),d},exposeAction(w,O){return u.actionCreators[w]=O,d},exposeCaseReducer(w,O){return u.sliceCaseReducersByName[w]=O,d}};c.forEach(w=>{const O=l[w],E={reducerName:w,type:iF(a,w),createNotation:typeof i.reducers=="function"};dF(O)?pF(E,O,d,t):uF(E,O,d)});function f(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?tn(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[w={},O=[],E=void 0]=typeof i.extraReducers=="function"?bE(i.extraReducers):[i.extraReducers],C={...w,...u.sliceCaseReducersByType};return rF(i.initialState,S=>{for(let P in C)S.addCase(P,C[P]);for(let P of u.sliceMatchers)S.addMatcher(P.matcher,P.reducer);for(let P of O)S.addMatcher(P.matcher,P.reducer);E&&S.addDefaultCase(E)})}const p=w=>w,h=new Map,g=new WeakMap;let m;function y(w,O){return m||(m=f()),m(w,O)}function b(){return m||(m=f()),m.getInitialState()}function v(w,O=!1){function E(S){let P=S[w];if(typeof P>"u"){if(O)P=pu(g,E,b);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?tn(15):"selectSlice returned undefined for an uninjected slice reducer")}return P}function C(S=p){const P=pu(h,O,()=>new WeakMap);return pu(P,S,()=>{const T={};for(const[_,k]of Object.entries(i.selectors??{}))T[_]=sF(k,S,()=>pu(g,S,b),O);return T})}return{reducerPath:w,getSelectors:C,get selectors(){return C(E)},selectSlice:E}}const x={name:a,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:b,...v(s),injectInto(w,{reducerPath:O,...E}={}){const C=O??s;return w.inject({reducerPath:C,reducer:y},E),{...x,...v(C,!0)}}};return x}}function sF(e,t,n,r){function i(a,...s){let l=t(a);if(typeof l>"u"){if(r)l=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?tn(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...s)}return i.unwrapped=e,i}var lF=aF();function cF(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function uF({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!fF(r))throw new Error(process.env.NODE_ENV==="production"?tn(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?L1(e,s):L1(e))}function dF(e){return e._reducerDefinitionType==="asyncThunk"}function fF(e){return e._reducerDefinitionType==="reducerWithPrepare"}function pF({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?tn(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:s,pending:l,rejected:c,settled:u,options:d}=n,f=i(e,a,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),l&&r.addCase(f.pending,l),c&&r.addCase(f.rejected,c),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||mu,pending:l||mu,rejected:c||mu,settled:u||mu})}function mu(){}function tn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const B1={schema:{type:"object",properties:{},required:[]},uischema:{type:"VerticalLayout",elements:[]}},vE=lF({name:"formBuilder",initialState:B1,reducers:{resetState:()=>B1,setSchema:(e,t)=>{e.schema=t.payload},setUischema:(e,t)=>{e.uischema=t.payload},addField(e,t){var n;if((n=e.schema.properties)!=null&&n[t.payload.fieldKey]){console.warn(`Duplicate fieldKey "${t.payload.fieldKey}" detected. Skipping addField.`);return}e.schema.properties={...e.schema.properties,[t.payload.fieldKey]:t.payload.fieldSchema},t.payload.fieldSchema.title!=="Content"&&t.payload.fieldSchema.title!=="Horizontal Layout"&&(e.schema.required=[...e.schema.required||[],t.payload.fieldKey]),e.uischema.elements=[...e.uischema.elements||[],t.payload.uiControl]},updateField(e,t){e.schema.properties||(e.schema.properties={}),e.schema.properties={...e.schema.properties,[t.payload.fieldKey]:t.payload.fieldSchema},t.payload.required?e.schema.required=Array.from(new Set([...e.schema.required||[],t.payload.fieldKey])):e.schema.required=(e.schema.required||[]).filter(n=>n!==t.payload.fieldKey)},addGroup(e,t){e.uischema.elements=[...e.uischema.elements||[],{type:"Group",label:t.payload.label,elements:[],_key:t.payload.groupKey}]},updateGroupLabel(e,t){if(!e.uischema.elements)return;const n=e.uischema.elements.find(r=>r.type==="Group"&&r._key===t.payload.groupKey);n&&n.type==="Group"&&(n.label=t.payload.label)},addFieldToGroup(e,t){e.schema.properties={...e.schema.properties,[t.payload.fieldKey]:t.payload.fieldSchema},t.payload.fieldSchema.title!=="Content"&&t.payload.fieldSchema.title!=="Horizontal Layout"&&(e.schema.required=[...e.schema.required||[],t.payload.fieldKey]);const n=e.uischema.elements.find(r=>r.type==="Group"&&r._key===t.payload.groupKey);n&&n.type==="Group"&&Array.isArray(n.elements)&&n.elements.push(t.payload.uiControl)},updateLabelText(e,t){if(!e.uischema.elements)return;const n=e.uischema.elements.find(r=>r.type==="Label"&&r._key===t.payload.fieldKey);n&&(n.text=t.payload.text)},updateGroupLayout(e,t){if(!e.uischema.elements)return;const n=e.uischema.elements.find(r=>r.type==="Group"&&r._key===t.payload.groupKey);n&&n.type==="Group"&&(n.elements=t.payload.elements)},addFieldToHorizontalLayout(e,t){e.schema.properties={...e.schema.properties,[t.payload.fieldKey]:t.payload.fieldSchema},t.payload.fieldSchema.title!=="Content"&&t.payload.fieldSchema.title!=="Horizontal Layout"&&(e.schema.required=[...e.schema.required||[],t.payload.fieldKey]);const n=e.uischema.elements.find(r=>r.type==="HorizontalLayout"&&r._key===t.payload.layoutKey);n&&n.type==="HorizontalLayout"&&Array.isArray(n.elements)&&n.elements.push(t.payload.uiControl)},deleteField(e,t){var i;const{fieldKey:n}=t.payload;(i=e.schema.properties)!=null&&i[n]&&delete e.schema.properties[n],e.schema.required=(e.schema.required||[]).filter(a=>a!==n);const r=a=>a.filter(s=>{var l;return s.type==="Control"&&((l=s.scope)!=null&&l.endsWith(`/${n}`))||s._key===n?!1:((s.type==="Group"||s.type==="HorizontalLayout")&&Array.isArray(s.elements)&&(s.elements=r(s.elements)),!0)});e.uischema.elements=r(e.uischema.elements)}}}),{resetState:hF,setSchema:mF,setUischema:gF,addField:Ei,updateField:ml,addGroup:mh,updateGroupLabel:yF,addFieldToGroup:gh,updateLabelText:bF,updateGroupLayout:z1,addFieldToHorizontalLayout:vF,deleteField:wF}=vE.actions,wE=vE.reducer,xE=tF({reducer:{formBuilder:wE}});function Em(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function OE(e){return I.jsx(Sg,{...e,defaultTheme:vf,themeId:Vr})}process.env.NODE_ENV!=="production"&&(OE.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function xF(e){return function(n){return I.jsx(OE,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function OF(){return pf}const Le=vN;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Fe(e){return mN(e)}function TF(e){return Pe("MuiSvgIcon",e)}ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const SF=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ve(t)}`,`fontSize${ve(n)}`]};return Ee(i,TF,r)},EF=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ve(n.color)}`],t[`fontSize${ve(n.fontSize)}`]]}})(Le(({theme:e})=>{var t,n,r,i,a,s,l,c,u,d,f,p,h,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,m])=>m&&m.main).map(([m])=>{var y,b;return{props:{color:m},style:{color:(b=(y=(e.vars??e).palette)==null?void 0:y[m])==null?void 0:b.main}}}),{props:{color:"action"},style:{color:(p=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(g=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Hl=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24",...h}=r,g=R.isValidElement(i)&&i.type==="svg",m={...r,color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:g},y={};d||(y.viewBox=p);const b=SF(m);return I.jsxs(EF,{as:l,className:we(b.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...h,...g&&i.props,ownerState:m,children:[g?i.props.children:i,f?I.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Hl.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});Hl.muiName="SvgIcon";function ct(e,t){function n(r,i){return I.jsx(Hl,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Hl.muiName,R.memo(R.forwardRef(n))}function Df(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function On(e){return e&&e.ownerDocument||document}function oo(e){return On(e).defaultView||window}function CF(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return i=>(a,s,l,c,u,...d)=>{const f=u||s,p=n==null?void 0:n[f];if(p){const h=p(a,s,l,c,u,...d);if(h)return h}return typeof a[s]<"u"&&!a[i]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${i}\` prop.`):null}}function Cm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function TE(e,t,n,r,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 Yn(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=R.useRef(t!==void 0),[s,l]=R.useState(n),c=a?t:s;if(process.env.NODE_ENV!=="production"){R.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${i} state of ${r} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
`))},[i,r,t]);const{current:d}=R.useRef(n);R.useEffect(()=>{!a&&!Object.is(d,n)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
`))},[JSON.stringify(n)])}const u=R.useCallback(d=>{a||l(d)},[]);return[c,u]}function Ie(e){const t=R.useRef(e);return Kt(()=>{t.current=e}),R.useRef((...n)=>(0,t.current)(...n)).current}function xt(...e){const t=R.useRef(void 0),n=R.useCallback(r=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{i.forEach(a=>a==null?void 0:a())}},e);return R.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function PF(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function SE(e,t){if(!e)return t;function n(s,l){const c={};return Object.keys(l).forEach(u=>{PF(u,l[u])&&typeof s[u]=="function"&&(c[u]=(...d)=>{s[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,u=we(s==null?void 0:s.className,l==null?void 0:l.className,c==null?void 0:c.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,i=n(e,r),a=we(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...i,...!!a&&{className:a},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Zn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Ge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pm(e,t){return Pm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Pm(e,t)}function zg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pm(e,t)}function _F(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function kF(e,t){e.classList?e.classList.add(t):_F(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function W1(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function DF(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=W1(e.className,t):e.setAttribute("class",W1(e.className&&e.className.baseVal||"",t))}const q1={disabled:!1};var $F=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null,RF=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})]):null;const hd=V.createContext(null);var EE=function(t){return t.scrollTop},gl="unmounted",Ci="exited",Pi="entering",Ea="entered",_m="exiting",Cr=function(e){zg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?l?(c=Ci,a.appearStatus=Pi):c=Ea:r.unmountOnExit||r.mountOnEnter?c=gl:c=Ci,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===gl?{status:Ci}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Pi&&s!==Ea&&(a=Pi):(s===Pi||s===Ea)&&(a=_m)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,l;return a=s=l=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:l}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Pi){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Da.findDOMNode(this);s&&EE(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ci&&this.setState({status:gl})},n.performEnter=function(i){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[Da.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!i&&!s||q1.disabled){this.safeSetState({status:Ea},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Pi},function(){a.props.onEntering(u,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Ea},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Da.findDOMNode(this);if(!a||q1.disabled){this.safeSetState({status:Ci},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:_m},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ci},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Da.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===gl)return null;var a=this.props,s=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 l=Ge(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(hd.Provider,{value:null},typeof s=="function"?s(i,l):V.cloneElement(V.Children.only(s),l))},t}(V.Component);Cr.contextType=hd;Cr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,a){var s=e[t];return o.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,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 n=$F;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function ya(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ya,onEntering:ya,onEntered:ya,onExit:ya,onExiting:ya,onExited:ya};Cr.UNMOUNTED=gl;Cr.EXITED=Ci;Cr.ENTERING=Pi;Cr.ENTERED=Ea;Cr.EXITING=_m;var MF=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return kF(t,r)})},yh=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return DF(t,r)})},Wg=function(e){zg(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,c){var u=r.resolveArguments(l,c),d=u[0],f=u[1];r.removeClasses(d,"exit"),r.addClass(d,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var u=r.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";r.addClass(d,p,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var u=r.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";r.removeClasses(d,p),r.addClass(d,p,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var c=r.resolveArguments(l),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",f=u?""+d+l:c[l],p=u?f+"-active":c[l+"Active"],h=u?f+"-done":c[l+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:h}},r}var n=t.prototype;return n.addClass=function(i,a,s){var l=this.getClassNames(a)[s+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;a==="appear"&&s==="done"&&u&&(l+=" "+u),s==="active"&&i&&EE(i),l&&(this.appliedClasses[a][s]=l,MF(i,l))},n.removeClasses=function(i,a){var s=this.appliedClasses[a],l=s.base,c=s.active,u=s.done;this.appliedClasses[a]={},l&&yh(i,l),c&&yh(i,c),u&&yh(i,u)},n.render=function(){var i=this.props;i.classNames;var a=Ge(i,["classNames"]);return V.createElement(Cr,ee({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(V.Component);Wg.defaultProps={classNames:""};Wg.propTypes=process.env.NODE_ENV!=="production"?ee({},Cr.propTypes,{classNames:RF,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}):{};function IF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qg(e,t){var n=function(a){return t&&V.isValidElement(a)?t(a):a},r=Object.create(null);return e&&V.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function NF(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var s,l={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var u=r[c][s];l[r[c][s]]=n(u)}l[c]=n(c)}for(s=0;s<i.length;s++)l[i[s]]=n(i[s]);return l}function Ii(e,t,n){return n[t]!=null?n[t]:e.props[t]}function AF(e,t){return qg(e.children,function(n){return V.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ii(n,"appear",e),enter:Ii(n,"enter",e),exit:Ii(n,"exit",e)})})}function jF(e,t,n){var r=qg(e.children),i=NF(t,r);return Object.keys(i).forEach(function(a){var s=i[a];if(V.isValidElement(s)){var l=a in t,c=a in r,u=t[a],d=V.isValidElement(u)&&!u.props.in;c&&(!l||d)?i[a]=V.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ii(s,"exit",e),enter:Ii(s,"enter",e)}):!c&&l&&!d?i[a]=V.cloneElement(s,{in:!1}):c&&l&&V.isValidElement(u)&&(i[a]=V.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Ii(s,"exit",e),enter:Ii(s,"enter",e)}))}}),i}var LF=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},FF={component:"div",childFactory:function(t){return t}},bc=function(e){zg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=a.handleExited.bind(IF(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var s=a.children,l=a.handleExited,c=a.firstRender;return{children:c?AF(i,l):jF(i,s,l),firstRender:!1}},n.handleExited=function(i,a){var s=qg(this.props.children);i.key in s||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var c=ee({},l.children);return delete c[i.key],{children:c}}))},n.render=function(){var i=this.props,a=i.component,s=i.childFactory,l=Ge(i,["component","childFactory"]),c=this.state.contextValue,u=LF(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?V.createElement(hd.Provider,{value:c},u):V.createElement(hd.Provider,{value:c},V.createElement(a,l,u))},t}(V.Component);bc.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{};bc.defaultProps=FF;const U1={};function CE(e,t){const n=R.useRef(U1);return n.current===U1&&(n.current=e(t)),n}const VF=[];function BF(e){R.useEffect(e,VF)}class $f{constructor(){Be(this,"currentId",null);Be(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Be(this,"disposeEffect",()=>this.clear)}static create(){return new $f}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function br(){const e=CE($f.create).current;return BF(e.disposeEffect),e}function zF(e){const{prototype:t={}}=e;return!!t.isReactComponent}function WF(e,t,n,r,i){const a=e[t],s=i||t;if(a==null||typeof window>"u")return null;let l;return typeof a=="function"&&!zF(a)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const vc=Zn(o.elementType,WF),PE=e=>e.scrollTop;function Xa(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function qF(e){return Pe("MuiCollapse",e)}ke("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const UF=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ee(r,qF,n)},HF=ne("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Le(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),YF=ne("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),GF=ne("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),md=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:f,onEntered:p,onEntering:h,onExit:g,onExited:m,onExiting:y,orientation:b="vertical",style:v,timeout:x=DS.standard,TransitionComponent:w=Cr,...O}=r,E={...r,orientation:b,collapsedSize:l},C=UF(E),S=ao(),P=br(),T=R.useRef(null),_=R.useRef(),k=typeof l=="number"?`${l}px`:l,$=b==="horizontal",M=$?"width":"height",j=R.useRef(null),W=xt(n,j),H=N=>q=>{if(N){const Y=j.current;q===void 0?N(Y):N(Y,q)}},X=()=>T.current?T.current[$?"clientWidth":"clientHeight"]:0,U=H((N,q)=>{T.current&&$&&(T.current.style.position="absolute"),N.style[M]=k,f&&f(N,q)}),L=H((N,q)=>{const Y=X();T.current&&$&&(T.current.style.position="");const{duration:G,easing:K}=Xa({style:v,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const J=S.transitions.getAutoHeightDuration(Y);N.style.transitionDuration=`${J}ms`,_.current=J}else N.style.transitionDuration=typeof G=="string"?G:`${G}ms`;N.style[M]=`${Y}px`,N.style.transitionTimingFunction=K,h&&h(N,q)}),D=H((N,q)=>{N.style[M]="auto",p&&p(N,q)}),B=H(N=>{N.style[M]=`${X()}px`,g&&g(N)}),z=H(m),F=H(N=>{const q=X(),{duration:Y,easing:G}=Xa({style:v,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const K=S.transitions.getAutoHeightDuration(q);N.style.transitionDuration=`${K}ms`,_.current=K}else N.style.transitionDuration=typeof Y=="string"?Y:`${Y}ms`;N.style[M]=k,N.style.transitionTimingFunction=G,y&&y(N)}),A=N=>{x==="auto"&&P.start(_.current||0,N),i&&i(j.current,N)};return I.jsx(w,{in:d,onEnter:U,onEntered:D,onEntering:L,onExit:B,onExited:z,onExiting:F,addEndListener:A,nodeRef:j,timeout:x==="auto"?null:x,...O,children:(N,{ownerState:q,...Y})=>I.jsx(HF,{as:c,className:we(C.root,s,{entered:C.entered,exited:!d&&k==="0px"&&C.hidden}[N]),style:{[$?"minWidth":"minHeight"]:k,...v},ref:W,ownerState:{...E,state:N},...Y,children:I.jsx(YF,{ownerState:{...E,state:N},className:C.wrapper,ref:T,children:I.jsx(GF,{ownerState:{...E,state:N},className:C.wrapperInner,children:a})})})})});process.env.NODE_ENV!=="production"&&(md.propTypes={addEndListener:o.func,children:o.node,classes:o.object,className:o.string,collapsedSize:o.oneOfType([o.number,o.string]),component:vc,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,orientation:o.oneOf(["horizontal","vertical"]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});md&&(md.muiSupportAuto=!0);function KF(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 _E(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const a=KF(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${a}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function kE(e,t,n,r){return e[t]===void 0?null:_E(e,t,n,r)}function km(){return null}kE.isRequired=_E;km.isRequired=km;const wc=process.env.NODE_ENV==="production"?km:kE;function XF(e){return Pe("MuiPaper",e)}ke("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 ZF=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ee(a,XF,i)},QF=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Le(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),so=R.forwardRef(function(t,n){var h;const r=Fe({props:t,name:"MuiPaper"}),i=ao(),{className:a,component:s="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=r,f={...r,component:s,elevation:l,square:c,variant:u},p=ZF(f);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
`)),I.jsx(QF,{as:s,ownerState:f,className:we(p.root,a),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":(h=i.vars.overlays)==null?void 0:h[l]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Je("#fff",dm(l))}, ${Je("#fff",dm(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(so.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:Zn(wc,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});const Ug=R.createContext({});process.env.NODE_ENV!=="production"&&(Ug.displayName="AccordionContext");function JF(e){return typeof e=="string"}function DE(e,t,n){return e===void 0||JF(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function So(e,t,n){return typeof e=="function"?e(t,n):e}function El(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function H1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function $E(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const h=we(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},m={...n,...i,...r};return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const s=El({...i,...r}),l=H1(r),c=H1(i),u=t(s),d=we(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},p={...u,...n,...c,...l};return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function Ue(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0},...p}=a,h=d[e]||r,g=So(f[e],i),{props:{component:m,...y},internalRef:b}=$E({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g}),v=xt(b,g==null?void 0:g.ref,t.ref),x=e==="root"?m||u:m,w=DE(h,{...e==="root"&&!u&&!d[e]&&s,...e!=="root"&&!d[e]&&s,...y,...x&&!l&&{as:x},...x&&l&&{component:x},ref:v},i);return[h,w]}function eV(e){return Pe("MuiAccordion",e)}const gu=ke("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),tV=e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:a}=e;return Ee({root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!a&&"gutters"],heading:["heading"],region:["region"]},eV,t)},nV=ne(so,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gu.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(Le(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${gu.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${gu.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),Le(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${gu.expanded}`]:{margin:"16px 0"}}}]}))),rV=ne("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),RE=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:s=!1,disabled:l=!1,disableGutters:c=!1,expanded:u,onChange:d,square:f=!1,slots:p={},slotProps:h={},TransitionComponent:g,TransitionProps:m,...y}=r,[b,v]=Yn({controlled:u,default:s,name:"Accordion",state:"expanded"}),x=R.useCallback(X=>{v(!b),d&&d(X,!b)},[b,d,v]),[w,...O]=R.Children.toArray(i),E=R.useMemo(()=>({expanded:b,disabled:l,disableGutters:c,toggle:x}),[b,l,c,x]),C={...r,square:f,disabled:l,disableGutters:c,expanded:b},S=tV(C),P={transition:g,...p},T={transition:m,...h},_={slots:P,slotProps:T},[k,$]=Ue("root",{elementType:nV,externalForwardedProps:{..._,...y},className:we(S.root,a),shouldForwardComponentProp:!0,ownerState:C,ref:n,additionalProps:{square:f}}),[M,j]=Ue("heading",{elementType:rV,externalForwardedProps:_,className:S.heading,ownerState:C}),[W,H]=Ue("transition",{elementType:md,externalForwardedProps:_,ownerState:C});return I.jsxs(k,{...$,children:[I.jsx(M,{...j,children:I.jsx(Ug.Provider,{value:E,children:w})}),I.jsx(W,{in:b,timeout:"auto",...H,children:I.jsx("div",{"aria-labelledby":w.props.id,id:w.props["aria-controls"],role:"region",className:S.region,children:O})})]})});process.env.NODE_ENV!=="production"&&(RE.propTypes={children:Zn(o.node.isRequired,e=>{const t=R.Children.toArray(e.children)[0];return Lo.isFragment(t)?new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead."):R.isValidElement(t)?null:new Error("MUI: Expected the first child of Accordion to be a valid element.")}),classes:o.object,className:o.string,defaultExpanded:o.bool,disabled:o.bool,disableGutters:o.bool,expanded:o.bool,onChange:o.func,slotProps:o.shape({heading:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({heading:o.elementType,root:o.elementType,transition:o.elementType}),square:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,TransitionProps:o.object});function oV(e){return Pe("MuiAccordionDetails",e)}ke("MuiAccordionDetails",["root"]);const iV=e=>{const{classes:t}=e;return Ee({root:["root"]},oV,t)},aV=ne("div",{name:"MuiAccordionDetails",slot:"Root"})(Le(({theme:e})=>({padding:e.spacing(1,2,2)}))),ME=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAccordionDetails"}),{className:i,...a}=r,s=r,l=iV(s);return I.jsx(aV,{className:we(l.root,i),ref:n,ownerState:s,...a})});process.env.NODE_ENV!=="production"&&(ME.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Rt=o.oneOfType([o.func,o.object]);function Za(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
`))}return!1}class gd{constructor(){Be(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new gd}static use(){const t=CE(gd.create).current,[n,r]=R.useState(!1);return t.shouldMount=n,t.setShouldMount=r,R.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=lV(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function sV(){return gd.use()}function lV(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function IE(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=R.useState(!1),p=we(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},g=we(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&f(!0),R.useEffect(()=>{if(!l&&c!=null){const m=setTimeout(c,u);return()=>{clearTimeout(m)}}},[c,l,u]),I.jsx("span",{className:p,style:h,children:I.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(IE.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 Ar=ke("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Dm=550,cV=80,uV=pc`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`,dV=pc`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`,fV=pc`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`,pV=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hV=ne(IE,{name:"MuiTouchRipple",slot:"Ripple"})`
opacity: 0;
position: absolute;
&.${Ar.rippleVisible} {
opacity: 0.3;
transform: scale(1);
animation-name: ${uV};
animation-duration: ${Dm}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
&.${Ar.ripplePulsate} {
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
}
& .${Ar.child} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${Ar.childLeaving} {
opacity: 0;
animation-name: ${dV};
animation-duration: ${Dm}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
& .${Ar.childPulsate} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${fV};
animation-duration: 2500ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`,NE=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s,...l}=r,[c,u]=R.useState([]),d=R.useRef(0),f=R.useRef(null);R.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=R.useRef(!1),h=br(),g=R.useRef(null),m=R.useRef(null),y=R.useCallback(w=>{const{pulsate:O,rippleX:E,rippleY:C,rippleSize:S,cb:P}=w;u(T=>[...T,I.jsx(hV,{classes:{ripple:we(a.ripple,Ar.ripple),rippleVisible:we(a.rippleVisible,Ar.rippleVisible),ripplePulsate:we(a.ripplePulsate,Ar.ripplePulsate),child:we(a.child,Ar.child),childLeaving:we(a.childLeaving,Ar.childLeaving),childPulsate:we(a.childPulsate,Ar.childPulsate)},timeout:Dm,pulsate:O,rippleX:E,rippleY:C,rippleSize:S},d.current)]),d.current+=1,f.current=P},[a]),b=R.useCallback((w={},O={},E=()=>{})=>{const{pulsate:C=!1,center:S=i||O.pulsate,fakeElement:P=!1}=O;if((w==null?void 0:w.type)==="mousedown"&&p.current){p.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(p.current=!0);const T=P?null:m.current,_=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,$,M;if(S||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)k=Math.round(_.width/2),$=Math.round(_.height/2);else{const{clientX:j,clientY:W}=w.touches&&w.touches.length>0?w.touches[0]:w;k=Math.round(j-_.left),$=Math.round(W-_.top)}if(S)M=Math.sqrt((2*_.width**2+_.height**2)/3),M%2===0&&(M+=1);else{const j=Math.max(Math.abs((T?T.clientWidth:0)-k),k)*2+2,W=Math.max(Math.abs((T?T.clientHeight:0)-$),$)*2+2;M=Math.sqrt(j**2+W**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{y({pulsate:C,rippleX:k,rippleY:$,rippleSize:M,cb:E})},h.start(cV,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:C,rippleX:k,rippleY:$,rippleSize:M,cb:E})},[i,y,h]),v=R.useCallback(()=>{b({},{pulsate:!0})},[b]),x=R.useCallback((w,O)=>{if(h.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,h.start(0,()=>{x(w,O)});return}g.current=null,u(E=>E.length>0?E.slice(1):E),f.current=O},[h]);return R.useImperativeHandle(n,()=>({pulsate:v,start:b,stop:x}),[v,b,x]),I.jsx(pV,{className:we(Ar.root,a.root,s),ref:m,...l,children:I.jsx(bc,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(NE.propTypes={center:o.bool,classes:o.object,className:o.string});function mV(e){return Pe("MuiButtonBase",e)}const gV=ke("MuiButtonBase",["root","disabled","focusVisible"]),yV=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=Ee({root:["root",t&&"disabled",n&&"focusVisible"]},mV,i);return n&&r&&(s.root+=` ${r}`),s},bV=ne("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"},[`&.${gV.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Tr=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:g="a",onBlur:m,onClick:y,onContextMenu:b,onDragLeave:v,onFocus:x,onFocusVisible:w,onKeyDown:O,onKeyUp:E,onMouseDown:C,onMouseLeave:S,onMouseUp:P,onTouchEnd:T,onTouchMove:_,onTouchStart:k,tabIndex:$=0,TouchRippleProps:M,touchRippleRef:j,type:W,...H}=r,X=R.useRef(null),U=sV(),L=xt(U.ref,j),[D,B]=R.useState(!1);u&&D&&B(!1),R.useImperativeHandle(i,()=>({focusVisible:()=>{B(!0),X.current.focus()}}),[]);const z=U.shouldMount&&!d&&!u;R.useEffect(()=>{D&&p&&!d&&U.pulsate()},[d,p,D,U]);const F=$o(U,"start",C,f),A=$o(U,"stop",b,f),N=$o(U,"stop",v,f),q=$o(U,"stop",P,f),Y=$o(U,"stop",re=>{D&&re.preventDefault(),S&&S(re)},f),G=$o(U,"start",k,f),K=$o(U,"stop",T,f),J=$o(U,"stop",_,f),Z=$o(U,"stop",re=>{Za(re.target)||B(!1),m&&m(re)},!1),ie=Ie(re=>{X.current||(X.current=re.currentTarget),Za(re.target)&&(B(!0),w&&w(re)),x&&x(re)}),de=()=>{const re=X.current;return c&&c!=="button"&&!(re.tagName==="A"&&re.href)},xe=Ie(re=>{p&&!re.repeat&&D&&re.key===" "&&U.stop(re,()=>{U.start(re)}),re.target===re.currentTarget&&de()&&re.key===" "&&re.preventDefault(),O&&O(re),re.target===re.currentTarget&&de()&&re.key==="Enter"&&!u&&(re.preventDefault(),y&&y(re))}),he=Ie(re=>{p&&re.key===" "&&D&&!re.defaultPrevented&&U.stop(re,()=>{U.pulsate(re)}),E&&E(re),y&&re.target===re.currentTarget&&de()&&re.key===" "&&!re.defaultPrevented&&y(re)});let pe=c;pe==="button"&&(H.href||H.to)&&(pe=g);const Q={};pe==="button"?(Q.type=W===void 0?"button":W,Q.disabled=u):(!H.href&&!H.to&&(Q.role="button"),u&&(Q["aria-disabled"]=u));const oe=xt(n,X),te={...r,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:$,focusVisible:D},le=yV(te);return I.jsxs(bV,{as:pe,className:we(le.root,l),ownerState:te,onBlur:Z,onClick:y,onContextMenu:A,onFocus:ie,onKeyDown:xe,onKeyUp:he,onMouseDown:F,onMouseLeave:Y,onMouseUp:q,onDragLeave:N,onTouchEnd:K,onTouchMove:J,onTouchStart:G,ref:oe,tabIndex:u?-1:$,type:W,...Q,...H,children:[s,z?I.jsx(NE,{ref:L,center:a,...M}):null]})});function $o(e,t,n,r=!1){return Ie(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Tr.propTypes={action:Rt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:vc,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function vV(e){return Pe("MuiAccordionSummary",e)}const $a=ke("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),wV=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:i}=e;return Ee({root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},vV,t)},xV=ne(Tr,{name:"MuiAccordionSummary",slot:"Root"})(Le(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${$a.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$a.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${$a.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${$a.expanded}`]:{minHeight:64}}}]}})),OV=ne("span",{name:"MuiAccordionSummary",slot:"Content"})(Le(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${$a.expanded}`]:{margin:"20px 0"}}}]}))),TV=ne("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(Le(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${$a.expanded}`]:{transform:"rotate(180deg)"}}))),AE=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:s,focusVisibleClassName:l,onClick:c,slots:u,slotProps:d,...f}=r,{disabled:p=!1,disableGutters:h,expanded:g,toggle:m}=R.useContext(Ug),y=T=>{m&&m(T),c&&c(T)},b={...r,expanded:g,disabled:p,disableGutters:h},v=wV(b),x={slots:u,slotProps:d},[w,O]=Ue("root",{ref:n,shouldForwardComponentProp:!0,className:we(v.root,a),elementType:xV,externalForwardedProps:{...x,...f},ownerState:b,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:p,"aria-expanded":g,focusVisibleClassName:we(v.focusVisible,l)},getSlotProps:T=>({...T,onClick:_=>{var k;(k=T.onClick)==null||k.call(T,_),y(_)}})}),[E,C]=Ue("content",{className:v.content,elementType:OV,externalForwardedProps:x,ownerState:b}),[S,P]=Ue("expandIconWrapper",{className:v.expandIconWrapper,elementType:TV,externalForwardedProps:x,ownerState:b});return I.jsxs(w,{...O,children:[I.jsx(E,{...C,children:i}),s&&I.jsx(S,{...P,children:s})]})});process.env.NODE_ENV!=="production"&&(AE.propTypes={children:o.node,classes:o.object,className:o.string,expandIcon:o.node,focusVisibleClassName:o.string,onClick:o.func,slotProps:o.shape({content:o.oneOfType([o.func,o.object]),expandIconWrapper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({content:o.elementType,expandIconWrapper:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function SV(e){return typeof e.main=="string"}function EV(e,t=[]){if(!SV(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function dn(e=[]){return([,t])=>t&&EV(t,e)}function CV(e){return Pe("MuiCircularProgress",e)}ke("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ko=44,$m=pc`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`,Rm=pc`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: -126px;
}
`,PV=typeof $m!="string"?wg`
animation: ${$m} 1.4s linear infinite;
`:null,_V=typeof Rm!="string"?wg`
animation: ${Rm} 1.4s ease-in-out infinite;
`:null,kV=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${ve(r)}`],svg:["svg"],circle:["circle",`circle${ve(n)}`,i&&"circleDisableShrink"]};return Ee(a,CV,t)},DV=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ve(n.color)}`]]}})(Le(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:PV||{animation:`${$m} 1.4s linear infinite`}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),$V=ne("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),RV=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ve(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Le(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:_V||{animation:`${Rm} 1.4s ease-in-out infinite`}}]}))),Hg=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate",...p}=r,h={...r,color:a,disableShrink:s,size:l,thickness:u,value:d,variant:f},g=kV(h),m={},y={},b={};if(f==="determinate"){const v=2*Math.PI*((Ko-u)/2);m.strokeDasharray=v.toFixed(3),b["aria-valuenow"]=Math.round(d),m.strokeDashoffset=`${((100-d)/100*v).toFixed(3)}px`,y.transform="rotate(-90deg)"}return I.jsx(DV,{className:we(g.root,i),style:{width:l,height:l,...y,...c},ownerState:h,ref:n,role:"progressbar",...b,...p,children:I.jsx($V,{className:g.svg,ownerState:h,viewBox:`${Ko/2} ${Ko/2} ${Ko} ${Ko}`,children:I.jsx(RV,{className:g.circle,style:m,ownerState:h,cx:Ko,cy:Ko,r:(Ko-u)/2,fill:"none",strokeWidth:u})})})});process.env.NODE_ENV!=="production"&&(Hg.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:Zn(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),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 MV(e){return Pe("MuiIconButton",e)}const Y1=ke("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),IV=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${ve(r)}`,i&&`edge${ve(i)}`,`size${ve(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ee(l,MV,t)},NV=ne(Tr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ve(n.color)}`],n.edge&&t[`edge${ve(n.edge)}`],t[`size${ve(n.size)}`]]}})(Le(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Le(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Y1.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Y1.loading}`]:{color:"transparent"}}))),AV=ne("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"}}]})),Gt=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:f,loading:p=null,loadingIndicator:h,...g}=r,m=dr(f),y=h??I.jsx(Hg,{"aria-labelledby":m,color:"inherit",size:16}),b={...r,edge:i,color:l,disabled:c,disableFocusRipple:u,loading:p,loadingIndicator:y,size:d},v=IV(b);return I.jsxs(NV,{id:p?m:f,className:we(v.root,s),centerRipple:!0,focusRipple:!u,disabled:c||p,ref:n,...g,ownerState:b,children:[typeof p=="boolean"&&I.jsx("span",{className:v.loadingWrapper,style:{display:"contents"},children:I.jsx(AV,{className:v.loadingIndicator,ownerState:b,children:p&&y})}),a]})});process.env.NODE_ENV!=="production"&&(Gt.propTypes={children:Zn(o.node,e=>R.Children.toArray(e.children).some(n=>R.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
`)):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 jV=ct(I.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 LV(e){return Pe("MuiTypography",e)}const yd=ke("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),FV={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},VV=OF(),BV=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${ve(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Ee(l,LV,s)},zV=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ve(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Le(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(dn()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ve(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),G1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},et=R.forwardRef(function(t,n){const{color:r,...i}=Fe({props:t,name:"MuiTypography"}),a=!FV[r],s=VV({...i,...a&&{color:r}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:g=G1,...m}=s,y={...s,align:l,color:r,className:c,component:u,gutterBottom:d,noWrap:f,paragraph:p,variant:h,variantMapping:g},b=u||(p?"p":g[h]||G1[h])||"span",v=BV(y);return I.jsx(zV,{as:b,ref:n,className:we(v.root,c),...m,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...m.style}})});process.env.NODE_ENV!=="production"&&(et.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function WV(e){return Pe("MuiAppBar",e)}ke("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const qV=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ve(t)}`,`position${ve(n)}`]};return Ee(i,WV,r)},K1=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,UV=ne(so,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ve(n.position)}`],t[`color${ve(n.color)}`]]}})(Le(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(dn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?K1(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?K1(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),jE=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:l="fixed",...c}=r,u={...r,color:a,position:l,enableColorOnDark:s},d=qV(u);return I.jsx(UV,{square:!0,component:"header",ownerState:u,elevation:4,className:we(d.root,i,l==="fixed"&&"mui-fixed"),ref:n,...c})});process.env.NODE_ENV!=="production"&&(jE.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),o.string]),enableColorOnDark:o.bool,position:o.oneOf(["absolute","fixed","relative","static","sticky"]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Yg=e=>{const t=R.useRef({});return R.useEffect(()=>{t.current=e}),t.current};function X1(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function HV(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:c,getOptionLabel:u})=>{let d=s?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=X1(d));const f=d?l.filter(p=>{let h=(a||u)(p);return n&&(h=h.toLowerCase()),t&&(h=X1(h)),i==="start"?h.startsWith(d):h.includes(d)}):l;return typeof r=="number"?f.slice(0,r):f}}const YV=HV(),Z1=5,GV=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},KV=[];function Q1(e,t,n,r){if(t||e==null||r)return"";const i=n(e);return typeof i=="string"?i:""}function XV(e){const{unstable_isActiveElementInListbox:t=GV,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?KV:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:m=!1,filterOptions:y=YV,filterSelectedOptions:b=!1,freeSolo:v=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:O=me=>me.label??me,groupBy:E,handleHomeEndKeys:C=!e.freeSolo,id:S,includeInputInList:P=!1,inputValue:T,isOptionEqualToValue:_=(me,be)=>me===be,multiple:k=!1,onChange:$,onClose:M,onHighlightChange:j,onInputChange:W,onOpen:H,open:X,openOnFocus:U=!1,options:L,readOnly:D=!1,renderValue:B,selectOnFocus:z=!e.freeSolo,value:F}=e,A=dr(S);let N=O;N=me=>{const be=O(me);if(typeof be!="string"){if(process.env.NODE_ENV!=="production"){const Re=be===void 0?"undefined":`${typeof be} (${be})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${Re} instead of a string for ${JSON.stringify(me)}.`)}return String(be)}return be};const q=R.useRef(!1),Y=R.useRef(!0),G=R.useRef(null),K=R.useRef(null),[J,Z]=R.useState(null),[ie,de]=R.useState(-1),xe=i?0:-1,he=R.useRef(xe),pe=R.useRef(Q1(d??F,k,N)).current,[Q,oe]=Yn({controlled:F,default:d,name:u}),[te,le]=Yn({controlled:T,default:pe,name:u,state:"inputValue"}),[re,Te]=R.useState(!1),Se=R.useCallback((me,be,Re)=>{if(!(k?Q.length<be.length:be!==null)&&!l)return;const qe=Q1(be,k,N,B);te!==qe&&(le(qe),W&&W(me,qe,Re))},[N,te,k,W,le,l,Q,B]),[fe,ge]=Yn({controlled:X,default:!1,name:u,state:"open"}),[_e,$e]=R.useState(!0),ae=!k&&Q!=null&&te===N(Q),ce=fe&&!D,ue=ce?y(L.filter(me=>!(b&&(k?Q:[Q]).some(be=>be!==null&&_(me,be)))),{inputValue:ae&&_e?"":te,getOptionLabel:N}):[],Ce=Yg({filteredOptions:ue,value:Q,inputValue:te});R.useEffect(()=>{const me=Q!==Ce.value;re&&!me||v&&!me||Se(null,Q,"reset")},[Q,Se,re,Ce.value,v]);const ye=fe&&ue.length>0&&!D,Me=Ie(me=>{if(me===-1)G.current.focus();else{const be=B?"data-item-index":"data-tag-index";J.querySelector(`[${be}="${me}"]`).focus()}});R.useEffect(()=>{k&&ie>Q.length-1&&(de(-1),Me(-1))},[Q,k,ie,Me]);function Ze(me,be){if(!K.current||me<0||me>=ue.length)return-1;let Re=me;for(;;){const Xe=K.current.querySelector(`[data-option-index="${Re}"]`),qe=g?!1:!Xe||Xe.disabled||Xe.getAttribute("aria-disabled")==="true";if(Xe&&Xe.hasAttribute("tabindex")&&!qe)return Re;if(be==="next"?Re=(Re+1)%ue.length:Re=(Re-1+ue.length)%ue.length,Re===me)return-1}}const bt=Ie(({event:me,index:be,reason:Re})=>{if(he.current=be,be===-1?G.current.removeAttribute("aria-activedescendant"):G.current.setAttribute("aria-activedescendant",`${A}-option-${be}`),j&&["mouse","keyboard","touch"].includes(Re)&&j(me,be===-1?null:ue[be],Re),!K.current)return;const Xe=K.current.querySelector(`[role="option"].${n}-focused`);Xe&&(Xe.classList.remove(`${n}-focused`),Xe.classList.remove(`${n}-focusVisible`));let qe=K.current;if(K.current.getAttribute("role")!=="listbox"&&(qe=K.current.parentElement.querySelector('[role="listbox"]')),!qe)return;if(be===-1){qe.scrollTop=0;return}const _t=K.current.querySelector(`[data-option-index="${be}"]`);if(_t&&(_t.classList.add(`${n}-focused`),Re==="keyboard"&&_t.classList.add(`${n}-focusVisible`),qe.scrollHeight>qe.clientHeight&&Re!=="mouse"&&Re!=="touch")){const Ut=_t,Lt=qe.clientHeight+qe.scrollTop,ko=Ut.offsetTop+Ut.offsetHeight;ko>Lt?qe.scrollTop=ko-qe.clientHeight:Ut.offsetTop-Ut.offsetHeight*(E?1.3:0)<qe.scrollTop&&(qe.scrollTop=Ut.offsetTop-Ut.offsetHeight*(E?1.3:0))}}),Ke=Ie(({event:me,diff:be,direction:Re="next",reason:Xe})=>{if(!ce)return;const _t=Ze((()=>{const Ut=ue.length-1;if(be==="reset")return xe;if(be==="start")return 0;if(be==="end")return Ut;const Lt=he.current+be;return Lt<0?Lt===-1&&P?-1:m&&he.current!==-1||Math.abs(be)>1?0:Ut:Lt>Ut?Lt===Ut+1&&P?-1:m||Math.abs(be)>1?Ut:0:Lt})(),Re);if(bt({index:_t,reason:Xe,event:me}),r&&be!=="reset")if(_t===-1)G.current.value=te;else{const Ut=N(ue[_t]);G.current.value=Ut,Ut.toLowerCase().indexOf(te.toLowerCase())===0&&te.length>0&&G.current.setSelectionRange(te.length,Ut.length)}}),Ne=()=>{const me=(be,Re)=>{const Xe=be?N(be):"",qe=Re?N(Re):"";return Xe===qe};if(he.current!==-1&&Ce.filteredOptions&&Ce.filteredOptions.length!==ue.length&&Ce.inputValue===te&&(k?Q.length===Ce.value.length&&Ce.value.every((be,Re)=>N(Q[Re])===N(be)):me(Ce.value,Q))){const be=Ce.filteredOptions[he.current];if(be)return ue.findIndex(Re=>N(Re)===N(be))}return-1},We=R.useCallback(()=>{if(!ce)return;const me=Ne();if(me!==-1){he.current=me;return}const be=k?Q[0]:Q;if(ue.length===0||be==null){Ke({diff:"reset"});return}if(K.current){if(be!=null){const Re=ue[he.current];if(k&&Re&&Q.findIndex(qe=>_(Re,qe))!==-1)return;const Xe=ue.findIndex(qe=>_(qe,be));Xe===-1?Ke({diff:"reset"}):bt({index:Xe});return}if(he.current>=ue.length-1){bt({index:ue.length-1});return}bt({index:he.current})}},[ue.length,k?!1:Q,b,Ke,bt,ce,te,k]),rt=Ie(me=>{Cm(K,me),me&&We()});process.env.NODE_ENV!=="production"&&R.useEffect(()=>{(!G.current||G.current.nodeName!=="INPUT")&&(G.current&&G.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(`
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${G.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(`
`)))},[u]),R.useEffect(()=>{We()},[We]);const Tt=me=>{fe||(ge(!0),$e(!0),H&&H(me))},nt=(me,be)=>{fe&&(ge(!1),M&&M(me,be))},Et=(me,be,Re,Xe)=>{if(k){if(Q.length===be.length&&Q.every((qe,_t)=>qe===be[_t]))return}else if(Q===be)return;$&&$(me,be,Re,Xe),oe(be)},$n=R.useRef(!1),cn=(me,be,Re="selectOption",Xe="options")=>{let qe=Re,_t=be;if(k){if(_t=Array.isArray(Q)?Q.slice():[],process.env.NODE_ENV!=="production"){const Lt=_t.filter(ko=>_(be,ko));Lt.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 ${Lt.length} matches.`].join(`
`))}const Ut=_t.findIndex(Lt=>_(be,Lt));Ut===-1?_t.push(be):Xe!=="freeSolo"&&(_t.splice(Ut,1),qe="removeOption")}Se(me,_t,qe),Et(me,_t,qe,{option:be}),!p&&(!me||!me.ctrlKey&&!me.metaKey)&&nt(me,qe),(s===!0||s==="touch"&&$n.current||s==="mouse"&&!$n.current)&&G.current.blur()};function yn(me,be){if(me===-1)return-1;let Re=me;for(;;){if(be==="next"&&Re===Q.length||be==="previous"&&Re===-1)return-1;const Xe=B?"data-item-index":"data-tag-index",qe=J.querySelector(`[${Xe}="${Re}"]`);if(!qe||!qe.hasAttribute("tabindex")||qe.disabled||qe.getAttribute("aria-disabled")==="true")Re+=be==="next"?1:-1;else return Re}}const Ve=(me,be)=>{if(!k)return;te===""&&nt(me,"toggleInput");let Re=ie;ie===-1?te===""&&be==="previous"&&(Re=Q.length-1):(Re+=be==="next"?1:-1,Re<0&&(Re=0),Re===Q.length&&(Re=-1)),Re=yn(Re,be),de(Re),Me(Re)},Ct=me=>{q.current=!0,le(""),W&&W(me,"","clear"),Et(me,k?[]:null,"clear")},je=me=>be=>{if(me.onKeyDown&&me.onKeyDown(be),!be.defaultMuiPrevented&&(ie!==-1&&!["ArrowLeft","ArrowRight"].includes(be.key)&&(de(-1),Me(-1)),be.which!==229))switch(be.key){case"Home":ce&&C&&(be.preventDefault(),Ke({diff:"start",direction:"next",reason:"keyboard",event:be}));break;case"End":ce&&C&&(be.preventDefault(),Ke({diff:"end",direction:"previous",reason:"keyboard",event:be}));break;case"PageUp":be.preventDefault(),Ke({diff:-Z1,direction:"previous",reason:"keyboard",event:be}),Tt(be);break;case"PageDown":be.preventDefault(),Ke({diff:Z1,direction:"next",reason:"keyboard",event:be}),Tt(be);break;case"ArrowDown":be.preventDefault(),Ke({diff:1,direction:"next",reason:"keyboard",event:be}),Tt(be);break;case"ArrowUp":be.preventDefault(),Ke({diff:-1,direction:"previous",reason:"keyboard",event:be}),Tt(be);break;case"ArrowLeft":!k&&B?Me(0):Ve(be,"previous");break;case"ArrowRight":!k&&B?Me(-1):Ve(be,"next");break;case"Enter":if(he.current!==-1&&ce){const Re=ue[he.current],Xe=x?x(Re):!1;if(be.preventDefault(),Xe)return;cn(be,Re,"selectOption"),r&&G.current.setSelectionRange(G.current.value.length,G.current.value.length)}else v&&te!==""&&ae===!1&&(k&&be.preventDefault(),cn(be,te,"createOption","freeSolo"));break;case"Escape":ce?(be.preventDefault(),be.stopPropagation(),nt(be,"escape")):c&&(te!==""||k&&Q.length>0||B)&&(be.preventDefault(),be.stopPropagation(),Ct(be));break;case"Backspace":if(k&&!D&&te===""&&Q.length>0){const Re=ie===-1?Q.length-1:ie,Xe=Q.slice();Xe.splice(Re,1),Et(be,Xe,"removeOption",{option:Q[Re]})}!k&&B&&!D&&(oe(null),Me(-1));break;case"Delete":if(k&&!D&&te===""&&Q.length>0&&ie!==-1){const Re=ie,Xe=Q.slice();Xe.splice(Re,1),Et(be,Xe,"removeOption",{option:Q[Re]})}!k&&B&&!D&&(oe(null),Me(-1));break}},He=me=>{Te(!0),U&&!q.current&&Tt(me)},ot=me=>{if(t(K)){G.current.focus();return}Te(!1),Y.current=!0,q.current=!1,a&&he.current!==-1&&ce?cn(me,ue[he.current],"blur"):a&&v&&te!==""?cn(me,te,"blur","freeSolo"):l&&Se(me,Q,"blur"),nt(me,"blur")},mt=me=>{const be=me.target.value;te!==be&&(le(be),$e(!1),W&&W(me,be,"input")),be===""?!f&&!k&&Et(me,null,"clear"):Tt(me)},It=me=>{const be=Number(me.currentTarget.getAttribute("data-option-index"));he.current!==be&&bt({event:me,index:be,reason:"mouse"})},Wn=me=>{bt({event:me,index:Number(me.currentTarget.getAttribute("data-option-index")),reason:"touch"}),$n.current=!0},hr=me=>{const be=Number(me.currentTarget.getAttribute("data-option-index"));cn(me,ue[be],"selectOption"),$n.current=!1},Dr=me=>be=>{const Re=Q.slice();Re.splice(me,1),Et(be,Re,"removeOption",{option:Q[me]})},se=me=>{Et(me,null,"removeOption",{option:Q})},De=me=>{fe?nt(me,"toggleInput"):Tt(me)},Ae=me=>{me.currentTarget.contains(me.target)&&me.target.getAttribute("id")!==A&&me.preventDefault()},Ye=me=>{me.currentTarget.contains(me.target)&&(G.current.focus(),z&&Y.current&&G.current.selectionEnd-G.current.selectionStart===0&&G.current.select(),Y.current=!1)},vt=me=>{!h&&(te===""||!fe)&&De(me)};let Dt=v&&te.length>0;Dt=Dt||(k?Q.length>0:Q!==null);let wt=ue;if(E){const me=new Map;let be=!1;wt=ue.reduce((Re,Xe,qe)=>{const _t=E(Xe);return Re.length>0&&Re[Re.length-1].group===_t?Re[Re.length-1].options.push(Xe):(process.env.NODE_ENV!=="production"&&(me.get(_t)&&!be&&(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`."),be=!0),me.set(_t,!0)),Re.push({key:qe,index:qe,group:_t,options:[Xe]})),Re},[])}return h&&re&&ot(),{getRootProps:(me={})=>({...me,onKeyDown:je(me),onMouseDown:Ae,onClick:Ye}),getInputLabelProps:()=>({id:`${A}-label`,htmlFor:A}),getInputProps:()=>({id:A,value:te,onBlur:ot,onFocus:He,onChange:mt,onMouseDown:vt,"aria-activedescendant":ce?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ye?`${A}-listbox`:void 0,"aria-expanded":ye,autoComplete:"off",ref:G,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ct}),getItemProps:({index:me=0}={})=>({...k&&{key:me},...B?{"data-item-index":me}:{"data-tag-index":me},tabIndex:-1,...!D&&{onDelete:k?Dr(me):se}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:De}),getTagProps:({index:me})=>({key:me,"data-tag-index":me,tabIndex:-1,...!D&&{onDelete:Dr(me)}}),getListboxProps:()=>({role:"listbox",id:`${A}-listbox`,"aria-labelledby":`${A}-label`,ref:rt,onMouseDown:me=>{me.preventDefault()}}),getOptionProps:({index:me,option:be})=>{const Re=(k?Q:[Q]).some(qe=>qe!=null&&_(be,qe)),Xe=x?x(be):!1;return{key:(w==null?void 0:w(be))??N(be),tabIndex:-1,role:"option",id:`${A}-option-${me}`,onMouseMove:It,onClick:hr,onTouchStart:Wn,"data-option-index":me,"aria-disabled":Xe,"aria-selected":Re}},id:A,inputValue:te,value:Q,dirty:Dt,expanded:ce&&J,popupOpen:ce,focused:re||ie!==-1,anchorEl:J,setAnchorEl:Z,focusedItem:ie,focusedTag:ie,groupedOptions:wt}}function Vo(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],s=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var or="top",Wr="bottom",qr="right",ir="left",Gg="auto",xc=[or,Wr,qr,ir],Qa="start",Yl="end",ZV="clippingParents",LE="viewport",Xs="popper",QV="reference",J1=xc.reduce(function(e,t){return e.concat([t+"-"+Qa,t+"-"+Yl])},[]),FE=[].concat(xc,[Gg]).reduce(function(e,t){return e.concat([t,t+"-"+Qa,t+"-"+Yl])},[]),JV="beforeRead",e5="read",t5="afterRead",n5="beforeMain",r5="main",o5="afterMain",i5="beforeWrite",a5="write",s5="afterWrite",l5=[JV,e5,t5,n5,r5,o5,i5,a5,s5];function Eo(e){return e?(e.nodeName||"").toLowerCase():null}function Sr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yi(e){var t=Sr(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=Sr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kg(e){if(typeof ShadowRoot>"u")return!1;var t=Sr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function c5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Br(a)||!Eo(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var l=i[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function u5(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!Br(i)||!Eo(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const d5={name:"applyStyles",enabled:!0,phase:"write",fn:c5,effect:u5,requires:["computeStyles"]};function Oo(e){return e.split("-")[0]}var ji=Math.max,bd=Math.min,Ja=Math.round;function Mm(){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 VE(){return!/^((?!chrome|android).)*safari/i.test(Mm())}function es(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Br(e)&&(i=e.offsetWidth>0&&Ja(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ja(r.height)/e.offsetHeight||1);var s=Yi(e)?Sr(e):window,l=s.visualViewport,c=!VE()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/a,f=r.width/i,p=r.height/a;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Xg(e){var t=es(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function BE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Kg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Bo(e){return Sr(e).getComputedStyle(e)}function f5(e){return["table","td","th"].indexOf(Eo(e))>=0}function fi(e){return((Yi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rf(e){return Eo(e)==="html"?e:e.assignedSlot||e.parentNode||(Kg(e)?e.host:null)||fi(e)}function ew(e){return!Br(e)||Bo(e).position==="fixed"?null:e.offsetParent}function p5(e){var t=/firefox/i.test(Mm()),n=/Trident/i.test(Mm());if(n&&Br(e)){var r=Bo(e);if(r.position==="fixed")return null}var i=Rf(e);for(Kg(i)&&(i=i.host);Br(i)&&["html","body"].indexOf(Eo(i))<0;){var a=Bo(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 Oc(e){for(var t=Sr(e),n=ew(e);n&&f5(n)&&Bo(n).position==="static";)n=ew(n);return n&&(Eo(n)==="html"||Eo(n)==="body"&&Bo(n).position==="static")?t:n||p5(e)||t}function Zg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Cl(e,t,n){return ji(e,bd(t,n))}function h5(e,t,n){var r=Cl(e,t,n);return r>n?n:r}function zE(){return{top:0,right:0,bottom:0,left:0}}function WE(e){return Object.assign({},zE(),e)}function qE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var m5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,WE(typeof t!="number"?t:qE(t,xc))};function g5(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Oo(n.placement),c=Zg(l),u=[ir,qr].indexOf(l)>=0,d=u?"height":"width";if(!(!a||!s)){var f=m5(i.padding,n),p=Xg(a),h=c==="y"?or:ir,g=c==="y"?Wr:qr,m=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],y=s[c]-n.rects.reference[c],b=Oc(a),v=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,x=m/2-y/2,w=f[h],O=v-p[d]-f[g],E=v/2-p[d]/2+x,C=Cl(w,E,O),S=c;n.modifiersData[r]=(t={},t[S]=C,t.centerOffset=C-E,t)}}function y5(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||BE(t.elements.popper,i)&&(t.elements.arrow=i))}const b5={name:"arrow",enabled:!0,phase:"main",fn:g5,effect:y5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ts(e){return e.split("-")[1]}var v5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function w5(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ja(n*i)/i||0,y:Ja(r*i)/i||0}}function tw(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,h=p===void 0?0:p,g=s.y,m=g===void 0?0:g,y=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=y.x,m=y.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),x=ir,w=or,O=window;if(u){var E=Oc(n),C="clientHeight",S="clientWidth";if(E===Sr(n)&&(E=fi(n),Bo(E).position!=="static"&&l==="absolute"&&(C="scrollHeight",S="scrollWidth")),E=E,i===or||(i===ir||i===qr)&&a===Yl){w=Wr;var P=f&&E===O&&O.visualViewport?O.visualViewport.height:E[C];m-=P-r.height,m*=c?1:-1}if(i===ir||(i===or||i===Wr)&&a===Yl){x=qr;var T=f&&E===O&&O.visualViewport?O.visualViewport.width:E[S];h-=T-r.width,h*=c?1:-1}}var _=Object.assign({position:l},u&&v5),k=d===!0?w5({x:h,y:m},Sr(n)):{x:h,y:m};if(h=k.x,m=k.y,c){var $;return Object.assign({},_,($={},$[w]=v?"0":"",$[x]=b?"0":"",$.transform=(O.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",$))}return Object.assign({},_,(t={},t[w]=v?m+"px":"",t[x]=b?h+"px":"",t.transform="",t))}function x5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Oo(t.placement),variation:ts(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,tw(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,tw(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 O5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x5,data:{}};var yu={passive:!0};function T5(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,c=Sr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",n.update,yu)}),l&&c.addEventListener("resize",n.update,yu),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",n.update,yu)}),l&&c.removeEventListener("resize",n.update,yu)}}const S5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:T5,data:{}};var E5={left:"right",right:"left",bottom:"top",top:"bottom"};function qu(e){return e.replace(/left|right|bottom|top/g,function(t){return E5[t]})}var C5={start:"end",end:"start"};function nw(e){return e.replace(/start|end/g,function(t){return C5[t]})}function Qg(e){var t=Sr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Jg(e){return es(fi(e)).left+Qg(e).scrollLeft}function P5(e,t){var n=Sr(e),r=fi(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;var u=VE();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l+Jg(e),y:c}}function _5(e){var t,n=fi(e),r=Qg(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=ji(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=ji(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Jg(e),c=-r.scrollTop;return Bo(i||n).direction==="rtl"&&(l+=ji(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function ey(e){var t=Bo(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function UE(e){return["html","body","#document"].indexOf(Eo(e))>=0?e.ownerDocument.body:Br(e)&&ey(e)?e:UE(Rf(e))}function Pl(e,t){var n;t===void 0&&(t=[]);var r=UE(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Sr(r),s=i?[a].concat(a.visualViewport||[],ey(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Pl(Rf(s)))}function Im(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function k5(e,t){var n=es(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function rw(e,t,n){return t===LE?Im(P5(e,n)):Yi(t)?k5(t,n):Im(_5(fi(e)))}function D5(e){var t=Pl(Rf(e)),n=["absolute","fixed"].indexOf(Bo(e).position)>=0,r=n&&Br(e)?Oc(e):e;return Yi(r)?t.filter(function(i){return Yi(i)&&BE(i,r)&&Eo(i)!=="body"}):[]}function $5(e,t,n,r){var i=t==="clippingParents"?D5(e):[].concat(t),a=[].concat(i,[n]),s=a[0],l=a.reduce(function(c,u){var d=rw(e,u,r);return c.top=ji(d.top,c.top),c.right=bd(d.right,c.right),c.bottom=bd(d.bottom,c.bottom),c.left=ji(d.left,c.left),c},rw(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function HE(e){var t=e.reference,n=e.element,r=e.placement,i=r?Oo(r):null,a=r?ts(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case or:c={x:s,y:t.y-n.height};break;case Wr:c={x:s,y:t.y+t.height};break;case qr:c={x:t.x+t.width,y:l};break;case ir:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?Zg(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Qa:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Yl:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Gl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,c=l===void 0?ZV:l,u=n.rootBoundary,d=u===void 0?LE:u,f=n.elementContext,p=f===void 0?Xs:f,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,y=m===void 0?0:m,b=WE(typeof y!="number"?y:qE(y,xc)),v=p===Xs?QV:Xs,x=e.rects.popper,w=e.elements[g?v:p],O=$5(Yi(w)?w:w.contextElement||fi(e.elements.popper),c,d,s),E=es(e.elements.reference),C=HE({reference:E,element:x,placement:i}),S=Im(Object.assign({},x,C)),P=p===Xs?S:E,T={top:O.top-P.top+b.top,bottom:P.bottom-O.bottom+b.bottom,left:O.left-P.left+b.left,right:P.right-O.right+b.right},_=e.modifiersData.offset;if(p===Xs&&_){var k=_[i];Object.keys(T).forEach(function($){var M=[qr,Wr].indexOf($)>=0?1:-1,j=[or,Wr].indexOf($)>=0?"y":"x";T[$]+=k[j]*M})}return T}function R5(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?FE:c,d=ts(r),f=d?l?J1:J1.filter(function(g){return ts(g)===d}):xc,p=f.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=f);var h=p.reduce(function(g,m){return g[m]=Gl(e,{placement:m,boundary:i,rootBoundary:a,padding:s})[Oo(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function M5(e){if(Oo(e)===Gg)return[];var t=qu(e);return[nw(e),t,nw(t)]}function I5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,m=n.allowedAutoPlacements,y=t.options.placement,b=Oo(y),v=b===y,x=c||(v||!g?[qu(y)]:M5(y)),w=[y].concat(x).reduce(function(F,A){return F.concat(Oo(A)===Gg?R5(t,{placement:A,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:m}):A)},[]),O=t.rects.reference,E=t.rects.popper,C=new Map,S=!0,P=w[0],T=0;T<w.length;T++){var _=w[T],k=Oo(_),$=ts(_)===Qa,M=[or,Wr].indexOf(k)>=0,j=M?"width":"height",W=Gl(t,{placement:_,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),H=M?$?qr:ir:$?Wr:or;O[j]>E[j]&&(H=qu(H));var X=qu(H),U=[];if(a&&U.push(W[k]<=0),l&&U.push(W[H]<=0,W[X]<=0),U.every(function(F){return F})){P=_,S=!1;break}C.set(_,U)}if(S)for(var L=g?3:1,D=function(A){var N=w.find(function(q){var Y=C.get(q);if(Y)return Y.slice(0,A).every(function(G){return G})});if(N)return P=N,"break"},B=L;B>0;B--){var z=D(B);if(z==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}const N5={name:"flip",enabled:!0,phase:"main",fn:I5,requiresIfExists:["offset"],data:{_skip:!1}};function ow(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function iw(e){return[or,qr,Wr,ir].some(function(t){return e[t]>=0})}function A5(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Gl(t,{elementContext:"reference"}),l=Gl(t,{altBoundary:!0}),c=ow(s,r),u=ow(l,i,a),d=iw(c),f=iw(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const j5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:A5};function L5(e,t,n){var r=Oo(e),i=[ir,or].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*i,[ir,qr].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function F5(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=FE.reduce(function(d,f){return d[f]=L5(f,t.rects,a),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const V5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:F5};function B5(e){var t=e.state,n=e.name;t.modifiersData[n]=HE({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const z5={name:"popperOffsets",enabled:!0,phase:"read",fn:B5,data:{}};function W5(e){return e==="x"?"y":"x"}function q5(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,m=g===void 0?0:g,y=Gl(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=Oo(t.placement),v=ts(t.placement),x=!v,w=Zg(b),O=W5(w),E=t.modifiersData.popperOffsets,C=t.rects.reference,S=t.rects.popper,P=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,T=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(E){if(a){var $,M=w==="y"?or:ir,j=w==="y"?Wr:qr,W=w==="y"?"height":"width",H=E[w],X=H+y[M],U=H-y[j],L=h?-S[W]/2:0,D=v===Qa?C[W]:S[W],B=v===Qa?-S[W]:-C[W],z=t.elements.arrow,F=h&&z?Xg(z):{width:0,height:0},A=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zE(),N=A[M],q=A[j],Y=Cl(0,C[W],F[W]),G=x?C[W]/2-L-Y-N-T.mainAxis:D-Y-N-T.mainAxis,K=x?-C[W]/2+L+Y+q+T.mainAxis:B+Y+q+T.mainAxis,J=t.elements.arrow&&Oc(t.elements.arrow),Z=J?w==="y"?J.clientTop||0:J.clientLeft||0:0,ie=($=_==null?void 0:_[w])!=null?$:0,de=H+G-ie-Z,xe=H+K-ie,he=Cl(h?bd(X,de):X,H,h?ji(U,xe):U);E[w]=he,k[w]=he-H}if(l){var pe,Q=w==="x"?or:ir,oe=w==="x"?Wr:qr,te=E[O],le=O==="y"?"height":"width",re=te+y[Q],Te=te-y[oe],Se=[or,ir].indexOf(b)!==-1,fe=(pe=_==null?void 0:_[O])!=null?pe:0,ge=Se?re:te-C[le]-S[le]-fe+T.altAxis,_e=Se?te+C[le]+S[le]-fe-T.altAxis:Te,$e=h&&Se?h5(ge,te,_e):Cl(h?ge:re,te,h?_e:Te);E[O]=$e,k[O]=$e-te}t.modifiersData[r]=k}}const U5={name:"preventOverflow",enabled:!0,phase:"main",fn:q5,requiresIfExists:["offset"]};function H5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Y5(e){return e===Sr(e)||!Br(e)?Qg(e):H5(e)}function G5(e){var t=e.getBoundingClientRect(),n=Ja(t.width)/e.offsetWidth||1,r=Ja(t.height)/e.offsetHeight||1;return n!==1||r!==1}function K5(e,t,n){n===void 0&&(n=!1);var r=Br(t),i=Br(t)&&G5(t),a=fi(t),s=es(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Eo(t)!=="body"||ey(a))&&(l=Y5(t)),Br(t)?(c=es(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Jg(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function X5(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function Z5(e){var t=X5(e);return l5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Q5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function J5(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var aw={placement:"bottom",modifiers:[],strategy:"absolute"};function sw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function eB(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?aw:i;return function(l,c,u){u===void 0&&(u=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},aw,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var v=typeof b=="function"?b(d.options):b;m(),d.options=Object.assign({},a,d.options,v),d.scrollParents={reference:Yi(l)?Pl(l):l.contextElement?Pl(l.contextElement):[],popper:Pl(c)};var x=Z5(J5([].concat(r,d.options.modifiers)));return d.orderedModifiers=x.filter(function(w){return w.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,v=b.reference,x=b.popper;if(sw(v,x)){d.rects={reference:K5(v,Oc(x),d.options.strategy==="fixed"),popper:Xg(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(T){return d.modifiersData[T.name]=Object.assign({},T.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var O=d.orderedModifiers[w],E=O.fn,C=O.options,S=C===void 0?{}:C,P=O.name;typeof E=="function"&&(d=E({state:d,options:S,name:P,instance:h})||d)}}}},update:Q5(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){m(),p=!0}};if(!sw(l,c))return h;h.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var b=y.name,v=y.options,x=v===void 0?{}:v,w=y.effect;if(typeof w=="function"){var O=w({state:d,name:b,instance:h,options:x}),E=function(){};f.push(O||E)}})}function m(){f.forEach(function(y){return y()}),f=[]}return h}}var tB=[S5,z5,O5,d5,V5,N5,U5,b5,j5],nB=eB({defaultModifiers:tB});function st(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:So(n,r),{props:l,internalRef:c}=$E({...a,externalSlotProps:s}),u=xt(c,s==null?void 0:s.ref,(f=e.additionalProps)==null?void 0:f.ref);return DE(t,{...l,ref:u},r)}function xs(e){var t;return parseInt(R.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function rB(e){return typeof e=="function"?e():e}const Kl=R.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,l]=R.useState(null),c=xt(R.isValidElement(r)?xs(r):null,n);if(Kt(()=>{a||l(rB(i)||document.body)},[i,a]),Kt(()=>{if(s&&!a)return Cm(n,s),()=>{Cm(n,null)}},[n,s,a]),a){if(R.isValidElement(r)){const u={ref:c};return R.cloneElement(r,u)}return r}return s&&MR.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(Kl.propTypes={children:o.node,container:o.oneOfType([Vo,o.func]),disablePortal:o.bool});process.env.NODE_ENV!=="production"&&(Kl.propTypes=gf(Kl.propTypes));function oB(e){return Pe("MuiPopper",e)}ke("MuiPopper",["root"]);function iB(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 vd(e){return typeof e=="function"?e():e}function Mf(e){return e.nodeType!==void 0}function aB(e){return!Mf(e)}const sB=e=>{const{classes:t}=e;return Ee({root:["root"]},oB,t)},lB={},cB=R.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:g,ownerState:m,...y}=t,b=R.useRef(null),v=xt(b,n),x=R.useRef(null),w=xt(x,f),O=R.useRef(w);Kt(()=>{O.current=w},[w]),R.useImperativeHandle(f,()=>x.current,[]);const E=iB(u,a),[C,S]=R.useState(E),[P,T]=R.useState(vd(r));R.useEffect(()=>{x.current&&x.current.forceUpdate()}),R.useEffect(()=>{r&&T(vd(r))},[r]),Kt(()=>{if(!P||!c)return;const j=X=>{S(X.placement)};if(process.env.NODE_ENV!=="production"&&P&&Mf(P)&&P.nodeType===1){const X=P.getBoundingClientRect();process.env.NODE_ENV!=="test"&&X.top===0&&X.left===0&&X.right===0&&X.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(`
`))}let W=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{j(X)}}];l!=null&&(W=W.concat(l)),d&&d.modifiers!=null&&(W=W.concat(d.modifiers));const H=nB(P,b.current,{placement:E,...d,modifiers:W});return O.current(H),()=>{H.destroy(),O.current(null)}},[P,s,l,c,d,E]);const _={placement:C};g!==null&&(_.TransitionProps=g);const k=sB(t),$=h.root??"div",M=st({elementType:$,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:k.root});return I.jsx($,{...M,children:typeof i=="function"?i(_):i})}),YE=R.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=lB,popperRef:h,style:g,transition:m=!1,slotProps:y={},slots:b={},...v}=t,[x,w]=R.useState(!0),O=()=>{w(!1)},E=()=>{w(!0)};if(!c&&!d&&(!m||x))return null;let C;if(a)C=a;else if(r){const T=vd(r);C=T&&Mf(T)?On(T).body:On(null).body}const S=!d&&c&&(!m||x)?"none":void 0,P=m?{in:d,onEnter:O,onExited:E}:void 0;return I.jsx(Kl,{disablePortal:l,container:C,children:I.jsx(cB,{anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:m?!x:d,placement:f,popperOptions:p,popperRef:h,slotProps:y,slots:b,...v,style:{position:"fixed",top:0,left:0,display:S,...g},TransitionProps:P,children:i})})});process.env.NODE_ENV!=="production"&&(YE.propTypes={anchorEl:Zn(o.oneOfType([Vo,o.object,o.func]),e=>{if(e.open){const t=vd(e.anchorEl);if(t&&Mf(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}else if(!t||typeof t.getBoundingClientRect!="function"||aB(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(`
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Vo,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:Rt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const uB=ne(YE,{name:"MuiPopper",slot:"Root"})({}),Os=R.forwardRef(function(t,n){const r=Gn(),i=Fe({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:y,transition:b,slots:v,slotProps:x,...w}=i,O=(v==null?void 0:v.root)??(l==null?void 0:l.Root),E={anchorEl:a,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:m,popperRef:y,transition:b,...w};return I.jsx(uB,{as:s,direction:r?"rtl":"ltr",slots:{root:O},slotProps:x??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(Os.propTypes={anchorEl:o.oneOfType([Vo,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([Vo,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:Rt,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 dB(e){return Pe("MuiListSubheader",e)}ke("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const fB=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${ve(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return Ee(s,dB,t)},pB=ne("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ve(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Le(({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}}]}))),wd=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:u=!1,...d}=r,f={...r,color:a,component:s,disableGutters:l,disableSticky:c,inset:u},p=fB(f);return I.jsx(pB,{as:s,className:we(p.root,i),ref:n,ownerState:f,...d})});wd&&(wd.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(wd.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOf(["default","inherit","primary"]),component:o.elementType,disableGutters:o.bool,disableSticky:o.bool,inset:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const hB=ct(I.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 mB(e){return Pe("MuiChip",e)}const St=ke("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"]),gB=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${ve(r)}`,`color${ve(i)}`,l&&"clickable",l&&`clickableColor${ve(i)}`,s&&"deletable",s&&`deletableColor${ve(i)}`,`${c}${ve(i)}`],label:["label",`label${ve(r)}`],avatar:["avatar",`avatar${ve(r)}`,`avatarColor${ve(i)}`],icon:["icon",`icon${ve(r)}`,`iconColor${ve(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ve(r)}`,`deleteIconColor${ve(i)}`,`deleteIcon${ve(c)}Color${ve(i)}`]};return Ee(u,mB,t)},yB=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:l,variant:c}=n;return[{[`& .${St.avatar}`]:t.avatar},{[`& .${St.avatar}`]:t[`avatar${ve(l)}`]},{[`& .${St.avatar}`]:t[`avatarColor${ve(r)}`]},{[`& .${St.icon}`]:t.icon},{[`& .${St.icon}`]:t[`icon${ve(l)}`]},{[`& .${St.icon}`]:t[`iconColor${ve(i)}`]},{[`& .${St.deleteIcon}`]:t.deleteIcon},{[`& .${St.deleteIcon}`]:t[`deleteIcon${ve(l)}`]},{[`& .${St.deleteIcon}`]:t[`deleteIconColor${ve(r)}`]},{[`& .${St.deleteIcon}`]:t[`deleteIcon${ve(c)}Color${ve(r)}`]},t.root,t[`size${ve(l)}`],t[`color${ve(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${ve(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ve(r)}`],t[c],t[`${c}${ve(r)}`]]}})(Le(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${St.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${St.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${St.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${St.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${St.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${St.icon}`]:{marginLeft:5,marginRight:-6},[`& .${St.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Je(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Je(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${St.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${St.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(dn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${St.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Je(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${St.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${St.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${St.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(dn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${St.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${St.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(dn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${St.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${St.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${St.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${St.avatar}`]:{marginLeft:4},[`& .${St.avatarSmall}`]:{marginLeft:2},[`& .${St.icon}`]:{marginLeft:4},[`& .${St.iconSmall}`]:{marginLeft:2},[`& .${St.deleteIcon}`]:{marginRight:5},[`& .${St.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(dn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Je(e.palette[n].main,.7)}`,[`&.${St.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${St.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Je(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${St.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Je(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),bB=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ve(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function lw(e){return e.key==="Backspace"||e.key==="Delete"}const ty=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:h,onDelete:g,onKeyDown:m,onKeyUp:y,size:b="medium",variant:v="filled",tabIndex:x,skipFocusWhenDisabled:w=!1,slots:O={},slotProps:E={},...C}=r,S=R.useRef(null),P=xt(S,n),T=N=>{N.stopPropagation(),g&&g(N)},_=N=>{N.currentTarget===N.target&&lw(N)&&N.preventDefault(),m&&m(N)},k=N=>{N.currentTarget===N.target&&g&&lw(N)&&g(N),y&&y(N)},$=s!==!1&&h?!0:s,M=$||g?Tr:c||"div",j={...r,component:M,disabled:d,size:b,color:l,iconColor:R.isValidElement(f)&&f.props.color||l,onDelete:!!g,clickable:$,variant:v},W=gB(j),H=M===Tr?{component:c||"div",focusVisibleClassName:W.focusVisible,...g&&{disableRipple:!0}}:{};let X=null;g&&(X=u&&R.isValidElement(u)?R.cloneElement(u,{className:we(u.props.className,W.deleteIcon),onClick:T}):I.jsx(hB,{className:W.deleteIcon,onClick:T}));let U=null;i&&R.isValidElement(i)&&(U=R.cloneElement(i,{className:we(W.avatar,i.props.className)}));let L=null;f&&R.isValidElement(f)&&(L=R.cloneElement(f,{className:we(W.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&U&&L&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const D={slots:O,slotProps:E},[B,z]=Ue("root",{elementType:yB,externalForwardedProps:{...D,...C},ownerState:j,shouldForwardComponentProp:!0,ref:P,className:we(W.root,a),additionalProps:{disabled:$&&d?!0:void 0,tabIndex:w&&d?-1:x,...H},getSlotProps:N=>({...N,onClick:q=>{var Y;(Y=N.onClick)==null||Y.call(N,q),h==null||h(q)},onKeyDown:q=>{var Y;(Y=N.onKeyDown)==null||Y.call(N,q),_==null||_(q)},onKeyUp:q=>{var Y;(Y=N.onKeyUp)==null||Y.call(N,q),k==null||k(q)}})}),[F,A]=Ue("label",{elementType:bB,externalForwardedProps:D,ownerState:j,className:W.label});return I.jsxs(B,{as:M,...z,children:[U||L,I.jsx(F,{...A,children:p}),X]})});process.env.NODE_ENV!=="production"&&(ty.propTypes={avatar:o.element,children:TE,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])});function bu(e){return parseInt(e,10)||0}const vB={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function wB(e){for(const t in e)return!1;return!0}function cw(e){return wB(e)||e.outerHeightStyle===0&&!e.overflowing}const GE=R.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:l,...c}=t,{current:u}=R.useRef(l!=null),d=R.useRef(null),f=xt(n,d),p=R.useRef(null),h=R.useRef(null),g=R.useCallback(()=>{const x=d.current,w=h.current;if(!x||!w)return;const E=oo(x).getComputedStyle(x);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=E.width,w.value=x.value||t.placeholder||"x",w.value.slice(-1)===`
`&&(w.value+=" ");const C=E.boxSizing,S=bu(E.paddingBottom)+bu(E.paddingTop),P=bu(E.borderBottomWidth)+bu(E.borderTopWidth),T=w.scrollHeight;w.value="x";const _=w.scrollHeight;let k=T;a&&(k=Math.max(Number(a)*_,k)),i&&(k=Math.min(Number(i)*_,k)),k=Math.max(k,_);const $=k+(C==="border-box"?S+P:0),M=Math.abs(k-T)<=1;return{outerHeightStyle:$,overflowing:M}},[i,a,t.placeholder]),m=Ie(()=>{const x=d.current,w=g();if(!x||!w||cw(w))return!1;const O=w.outerHeightStyle;return p.current!=null&&p.current!==O}),y=R.useCallback(()=>{const x=d.current,w=g();if(!x||!w||cw(w))return;const O=w.outerHeightStyle;p.current!==O&&(p.current=O,x.style.height=`${O}px`),x.style.overflow=w.overflowing?"hidden":""},[g]),b=R.useRef(-1);Kt(()=>{const x=Df(y),w=d==null?void 0:d.current;if(!w)return;const O=oo(w);O.addEventListener("resize",x);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{m()&&(E.unobserve(w),cancelAnimationFrame(b.current),y(),b.current=requestAnimationFrame(()=>{E.observe(w)}))}),E.observe(w)),()=>{x.clear(),cancelAnimationFrame(b.current),O.removeEventListener("resize",x),E&&E.disconnect()}},[g,y,m]),Kt(()=>{y()});const v=x=>{u||y();const w=x.target,O=w.value.length,E=w.value.endsWith(`
`),C=w.selectionStart===O;E&&C&&w.setSelectionRange(O,O),r&&r(x)};return I.jsxs(R.Fragment,{children:[I.jsx("textarea",{value:l,onChange:v,ref:f,rows:a,style:s,...c}),I.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...vB.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(GE.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 Mo(e){return typeof e=="string"}function pi({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const Tc=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(Tc.displayName="FormControlContext");function Pr(){return R.useContext(Tc)}function uw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function xd(e,t=!1){return e&&(uw(e.value)&&e.value!==""||t&&uw(e.defaultValue)&&e.defaultValue!=="")}function xB(e){return e.startAdornment}function OB(e){return Pe("MuiInputBase",e)}const mr=ke("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var dw;const If=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ve(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Nf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},TB=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:h,type:g}=e,m={root:["root",`color${ve(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",p&&p!=="medium"&&`size${ve(p)}`,d&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Ee(m,OB,t)},Af=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:If})(Le(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${mr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),jf=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Nf})(Le(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${mr.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${mr.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"}}]}})),fw=xF({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Lf=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,color:c,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:h,endAdornment:g,error:m,fullWidth:y=!1,id:b,inputComponent:v="input",inputProps:x={},inputRef:w,margin:O,maxRows:E,minRows:C,multiline:S=!1,name:P,onBlur:T,onChange:_,onClick:k,onFocus:$,onKeyDown:M,onKeyUp:j,placeholder:W,readOnly:H,renderSuffix:X,rows:U,size:L,slotProps:D={},slots:B={},startAdornment:z,type:F="text",value:A,...N}=r,q=x.value!=null?x.value:A,{current:Y}=R.useRef(q!=null),G=R.useRef(),K=R.useCallback(ue=>{process.env.NODE_ENV!=="production"&&ue&&ue.nodeName!=="INPUT"&&!ue.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(`
`))},[]),J=xt(G,w,x.ref,K),[Z,ie]=R.useState(!1),de=Pr();process.env.NODE_ENV!=="production"&&R.useEffect(()=>{if(de)return de.registerEffect()},[de]);const xe=pi({props:r,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=de?de.focused:Z,R.useEffect(()=>{!de&&p&&Z&&(ie(!1),T&&T())},[de,p,Z,T]);const he=de&&de.onFilled,pe=de&&de.onEmpty,Q=R.useCallback(ue=>{xd(ue)?he&&he():pe&&pe()},[he,pe]);Kt(()=>{Y&&Q({value:q})},[q,Q,Y]);const oe=ue=>{$&&$(ue),x.onFocus&&x.onFocus(ue),de&&de.onFocus?de.onFocus(ue):ie(!0)},te=ue=>{T&&T(ue),x.onBlur&&x.onBlur(ue),de&&de.onBlur?de.onBlur(ue):ie(!1)},le=(ue,...Ce)=>{if(!Y){const ye=ue.target||G.current;if(ye==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.":To(1));Q({value:ye.value})}x.onChange&&x.onChange(ue,...Ce),_&&_(ue,...Ce)};R.useEffect(()=>{Q(G.current)},[]);const re=ue=>{G.current&&ue.currentTarget===ue.target&&G.current.focus(),k&&k(ue)};let Te=v,Se=x;S&&Te==="input"&&(U?(process.env.NODE_ENV!=="production"&&(C||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Se={type:void 0,minRows:U,maxRows:U,...Se}):Se={type:void 0,maxRows:E,minRows:C,...Se},Te=GE);const fe=ue=>{Q(ue.animationName==="mui-auto-fill-cancel"?G.current:{value:"x"})};R.useEffect(()=>{de&&de.setAdornedStart(!!z)},[de,z]);const ge={...r,color:xe.color||"primary",disabled:xe.disabled,endAdornment:g,error:xe.error,focused:xe.focused,formControl:de,fullWidth:y,hiddenLabel:xe.hiddenLabel,multiline:S,size:xe.size,startAdornment:z,type:F},_e=TB(ge),$e=B.root||u.Root||Af,ae=D.root||d.root||{},ce=B.input||u.Input||jf;return Se={...Se,...D.input??d.input},I.jsxs(R.Fragment,{children:[!h&&typeof fw=="function"&&(dw||(dw=I.jsx(fw,{}))),I.jsxs($e,{...ae,ref:n,onClick:re,...N,...!Mo($e)&&{ownerState:{...ge,...ae.ownerState}},className:we(_e.root,ae.className,l,H&&"MuiInputBase-readOnly"),children:[z,I.jsx(Tc.Provider,{value:null,children:I.jsx(ce,{"aria-invalid":xe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:xe.disabled,id:b,onAnimationStart:fe,name:P,placeholder:W,readOnly:H,required:xe.required,rows:U,value:q,onKeyDown:M,onKeyUp:j,type:F,...Se,...!Mo(ce)&&{as:Te,ownerState:{...ge,...Se.ownerState}},ref:J,className:we(_e.input,Se.className,H&&"MuiInputBase-readOnly"),onBlur:te,onChange:le,onFocus:oe})}),g,X?X({...xe,startAdornment:z}):null]})]})});process.env.NODE_ENV!=="production"&&(Lf.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:vc,inputProps:o.object,inputRef:Rt,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 SB(e){return Pe("MuiInput",e)}const ti={...mr,...ke("MuiInput",["root","underline","input"])};function EB(e){return Pe("MuiOutlinedInput",e)}const Ir={...mr,...ke("MuiOutlinedInput",["root","notchedOutline","input"])};function CB(e){return Pe("MuiFilledInput",e)}const gr={...mr,...ke("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},KE=ct(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function PB(e){return Pe("MuiAutocomplete",e)}const gt=ke("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 pw,hw;const _B=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:u,size:d}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ve(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ee(f,PB,t)},kB=ne("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:l}=n;return[{[`& .${gt.tag}`]:t.tag},{[`& .${gt.tag}`]:t[`tagSize${ve(l)}`]},{[`& .${gt.inputRoot}`]:t.inputRoot},{[`& .${gt.input}`]:t.input},{[`& .${gt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${gt.focused} .${gt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${gt.clearIndicator}`]:{visibility:"visible"}},[`& .${gt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${gt.inputRoot}`]:{[`.${gt.hasPopupIcon}&, .${gt.hasClearIcon}&`]:{paddingRight:30},[`.${gt.hasPopupIcon}.${gt.hasClearIcon}&`]:{paddingRight:56},[`& .${gt.input}`]:{width:0,minWidth:30}},[`& .${ti.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ti.root}.${mr.sizeSmall}`]:{[`& .${ti.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ir.root}`]:{padding:9,[`.${gt.hasPopupIcon}&, .${gt.hasClearIcon}&`]:{paddingRight:39},[`.${gt.hasPopupIcon}.${gt.hasClearIcon}&`]:{paddingRight:65},[`& .${gt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${gt.endAdornment}`]:{right:9}},[`& .${Ir.root}.${mr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${gt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${gr.root}`]:{paddingTop:19,paddingLeft:8,[`.${gt.hasPopupIcon}&, .${gt.hasClearIcon}&`]:{paddingRight:39},[`.${gt.hasPopupIcon}.${gt.hasClearIcon}&`]:{paddingRight:65},[`& .${gr.input}`]:{padding:"7px 4px"},[`& .${gt.endAdornment}`]:{right:9}},[`& .${gr.root}.${mr.sizeSmall}`]:{paddingBottom:1,[`& .${gr.input}`]:{padding:"2.5px 4px"}},[`& .${mr.hiddenLabel}`]:{paddingTop:8},[`& .${gr.root}.${mr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${gt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${gr.root}.${mr.hiddenLabel}.${mr.sizeSmall}`]:{[`& .${gt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${gt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${gt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${gt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${gt.inputRoot}`]:{flexWrap:"wrap"}}}]}),DB=ne("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),$B=ne(Gt,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),RB=ne(Gt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),MB=ne(Os,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Le(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),IB=ne(so,{name:"MuiAutocomplete",slot:"Paper"})(Le(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),NB=ne("div",{name:"MuiAutocomplete",slot:"Loading"})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),AB=ne("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),jB=ne("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Le(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${gt.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"},[`&.${gt.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"},[`&.${gt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),LB=ne(wd,{name:"MuiAutocomplete",slot:"GroupLabel"})(Le(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),FB=ne("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${gt.option}`]:{paddingLeft:24}}),XE=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:c,className:u,clearIcon:d=pw||(pw=I.jsx(jV,{fontSize:"small"})),clearOnBlur:f=!r.freeSolo,clearOnEscape:p=!1,clearText:h="Clear",closeText:g="Close",componentsProps:m,defaultValue:y=r.multiple?[]:null,disableClearable:b=!1,disableCloseOnSelect:v=!1,disabled:x=!1,disabledItemsFocusable:w=!1,disableListWrap:O=!1,disablePortal:E=!1,filterOptions:C,filterSelectedOptions:S=!1,forcePopupIcon:P="auto",freeSolo:T=!1,fullWidth:_=!1,getLimitTagsText:k=Mt=>`+${Mt}`,getOptionDisabled:$,getOptionKey:M,getOptionLabel:j,isOptionEqualToValue:W,groupBy:H,handleHomeEndKeys:X=!r.freeSolo,id:U,includeInputInList:L=!1,inputValue:D,limitTags:B=-1,ListboxComponent:z,ListboxProps:F,loading:A=!1,loadingText:N="Loading…",multiple:q=!1,noOptionsText:Y="No options",onChange:G,onClose:K,onHighlightChange:J,onInputChange:Z,onOpen:ie,open:de,openOnFocus:xe=!1,openText:he="Open",options:pe,PaperComponent:Q,PopperComponent:oe,popupIcon:te=hw||(hw=I.jsx(KE,{})),readOnly:le=!1,renderGroup:re,renderInput:Te,renderOption:Se,renderTags:fe,renderValue:ge,selectOnFocus:_e=!r.freeSolo,size:$e="medium",slots:ae={},slotProps:ce={},value:ue,...Ce}=r,{getRootProps:ye,getInputProps:Me,getInputLabelProps:Ze,getPopupIndicatorProps:bt,getClearProps:Ke,getItemProps:Ne,getListboxProps:We,getOptionProps:rt,value:Tt,dirty:nt,expanded:Et,id:$n,popupOpen:cn,focused:yn,focusedItem:Ve,anchorEl:Ct,setAnchorEl:je,inputValue:He,groupedOptions:ot}=XV({...r,componentName:"Autocomplete"}),mt=!b&&!x&&nt&&!le,It=(!T||P===!0)&&P!==!1,{onMouseDown:Wn}=Me(),{ref:hr,...Dr}=We(),De=j||(Mt=>Mt.label??Mt),Ae={...r,disablePortal:E,expanded:Et,focused:yn,fullWidth:_,getOptionLabel:De,hasClearIcon:mt,hasPopupIcon:It,inputFocused:Ve===-1,popupOpen:cn,size:$e},Ye=_B(Ae),vt={slots:{paper:Q,popper:oe,...ae},slotProps:{chip:c,listbox:F,...m,...ce}},[Dt,wt]=Ue("listbox",{elementType:jB,externalForwardedProps:vt,ownerState:Ae,className:Ye.listbox,additionalProps:Dr,ref:hr}),[me,be]=Ue("paper",{elementType:so,externalForwardedProps:vt,ownerState:Ae,className:Ye.paper}),[Re,Xe]=Ue("popper",{elementType:Os,externalForwardedProps:vt,ownerState:Ae,className:Ye.popper,additionalProps:{disablePortal:E,style:{width:Ct?Ct.clientWidth:null},role:"presentation",anchorEl:Ct,open:cn}});let qe;const _t=Mt=>({className:Ye.tag,disabled:x,...Ne(Mt)});if(q?Tt.length>0&&(fe?qe=fe(Tt,_t,Ae):ge?qe=ge(Tt,_t,Ae):qe=Tt.map((Mt,Yo)=>{const{key:Go,...Us}=_t({index:Yo});return I.jsx(ty,{label:De(Mt),size:$e,...Us,...vt.slotProps.chip},Go)})):ge&&Tt!=null&&(qe=ge(Tt,_t,Ae)),B>-1&&Array.isArray(qe)){const Mt=qe.length-B;!yn&&Mt>0&&(qe=qe.splice(0,B),qe.push(I.jsx("span",{className:Ye.tag,children:k(Mt)},qe.length)))}const Lt=re||(Mt=>I.jsxs("li",{children:[I.jsx(LB,{className:Ye.groupLabel,ownerState:Ae,component:"div",children:Mt.group}),I.jsx(FB,{className:Ye.groupUl,ownerState:Ae,children:Mt.children})]},Mt.key)),qp=Se||((Mt,Yo)=>{const{key:Go,...Us}=Mt;return I.jsx("li",{...Us,children:De(Yo)},Go)}),ou=(Mt,Yo)=>{const Go=rt({option:Mt,index:Yo});return qp({...Go,className:Ye.option},Mt,{selected:Go["aria-selected"],index:Yo,inputValue:He},Ae)},iu=vt.slotProps.clearIndicator,au=vt.slotProps.popupIndicator;return I.jsxs(R.Fragment,{children:[I.jsx(kB,{ref:n,className:we(Ye.root,u),ownerState:Ae,...ye(Ce),children:Te({id:$n,disabled:x,fullWidth:!0,size:$e==="small"?"small":void 0,InputLabelProps:Ze(),InputProps:{ref:je,className:Ye.inputRoot,startAdornment:qe,onMouseDown:Mt=>{Mt.target===Mt.currentTarget&&Wn(Mt)},...(mt||It)&&{endAdornment:I.jsxs(DB,{className:Ye.endAdornment,ownerState:Ae,children:[mt?I.jsx($B,{...Ke(),"aria-label":h,title:h,ownerState:Ae,...iu,className:we(Ye.clearIndicator,iu==null?void 0:iu.className),children:d}):null,It?I.jsx(RB,{...bt(),disabled:x,"aria-label":cn?g:he,title:cn?g:he,ownerState:Ae,...au,className:we(Ye.popupIndicator,au==null?void 0:au.className),children:te}):null]})}},inputProps:{className:Ye.input,disabled:x,readOnly:le,...Me()}})}),Ct?I.jsx(MB,{as:Re,...Xe,children:I.jsxs(IB,{as:me,...be,children:[A&&ot.length===0?I.jsx(NB,{className:Ye.loading,ownerState:Ae,children:N}):null,ot.length===0&&!T&&!A?I.jsx(AB,{className:Ye.noOptions,ownerState:Ae,role:"presentation",onMouseDown:Mt=>{Mt.preventDefault()},children:Y}):null,ot.length>0?I.jsx(Dt,{as:z,...wt,children:ot.map((Mt,Yo)=>H?Lt({key:Mt.key,group:Mt.group,children:Mt.options.map((Go,Us)=>ou(Go,Mt.index+Us))}):ou(Mt,Yo))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(XE.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:Zn(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(`
`)):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:wc,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:Zn(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(`
`)):null)});const VB=ct(I.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function BB(e){return Pe("MuiAvatar",e)}ke("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const zB=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ee({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},BB,t)},WB=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Le(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),qB=ne("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),UB=ne(VB,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function HB({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=R.useState(!1);return R.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&a("loaded")},l.onerror=()=>{s&&a("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const ny=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:f,src:p,srcSet:h,variant:g="circular",...m}=r;let y=null;const b={...r,component:l,variant:g},v=HB({...d,...typeof u.img=="function"?u.img(b):u.img,src:p,srcSet:h}),x=p||h,w=x&&v!=="error";b.colorDefault=!w,delete b.ownerState;const O=zB(b),[E,C]=Ue("root",{ref:n,className:we(O.root,s),elementType:WB,externalForwardedProps:{slots:c,slotProps:u,component:l,...m},ownerState:b}),[S,P]=Ue("img",{className:O.img,elementType:qB,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:i,src:p,srcSet:h,sizes:f},ownerState:b}),[T,_]=Ue("fallback",{className:O.fallback,elementType:UB,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:b});return w?y=I.jsx(S,{...P}):a||a===0?y=a:x&&i?y=i[0]:y=I.jsx(T,{..._}),I.jsx(E,{...C,children:y})});process.env.NODE_ENV!=="production"&&(ny.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function YB(e){const{prototype:t={}}=e;return!!t.isReactComponent}function ZE(e,t,n,r,i){const a=e[t],s=i||t;if(a==null||typeof window>"u")return null;let l;const c=a.type;return typeof c=="function"&&!YB(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ts=Zn(o.element,ZE);Ts.isRequired=Zn(o.element.isRequired,ZE);const GB={entering:{opacity:1},entered:{opacity:1}},ci=R.forwardRef(function(t,n){const r=ao(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:g,onExiting:m,style:y,timeout:b=i,TransitionComponent:v=Cr,...x}=t,w=R.useRef(null),O=xt(w,xs(l),n),E=M=>j=>{if(M){const W=w.current;j===void 0?M(W):M(W,j)}},C=E(p),S=E((M,j)=>{PE(M);const W=Xa({style:y,timeout:b,easing:c},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",W),M.style.transition=r.transitions.create("opacity",W),d&&d(M,j)}),P=E(f),T=E(m),_=E(M=>{const j=Xa({style:y,timeout:b,easing:c},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",j),M.style.transition=r.transitions.create("opacity",j),h&&h(M)}),k=E(g),$=M=>{a&&a(w.current,M)};return I.jsx(v,{appear:s,in:u,nodeRef:w,onEnter:S,onEntered:P,onEntering:C,onExit:_,onExited:k,onExiting:T,addEndListener:$,timeout:b,...x,children:(M,{ownerState:j,...W})=>R.cloneElement(l,{style:{opacity:0,visibility:M==="exited"&&!u?"hidden":void 0,...GB[M],...y,...l.props.style},ref:O,...W})})});process.env.NODE_ENV!=="production"&&(ci.propTypes={addEndListener:o.func,appear:o.bool,children:Ts.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 KB(e){return Pe("MuiBackdrop",e)}ke("MuiBackdrop",["root","invisible"]);const XB=e=>{const{classes:t,invisible:n}=e;return Ee({root:["root",n&&"invisible"]},KB,t)},ZB=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ry=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:f={},slots:p={},TransitionComponent:h,transitionDuration:g,...m}=r,y={...r,component:s,invisible:l},b=XB(y),v={transition:h,root:u.Root,...p},x={...d,...f},w={component:s,slots:v,slotProps:x},[O,E]=Ue("root",{elementType:ZB,externalForwardedProps:w,className:we(b.root,a),ownerState:y}),[C,S]=Ue("transition",{elementType:ci,externalForwardedProps:w,ownerState:y});return I.jsx(C,{in:c,timeout:g,...m,...S,children:I.jsx(O,{"aria-hidden":!0,...E,classes:b,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(ry.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 QB(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=Yg({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!i&&(s=!0);const{badgeContent:l,max:c=r}=s?a:e,u=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:s,max:c,displayValue:u}}function JB(e){return Pe("MuiBadge",e)}const Xo=ke("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),bh=10,vh=4,e4=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:s={}}=e,l={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${ve(n.vertical)}${ve(n.horizontal)}`,`anchorOrigin${ve(n.vertical)}${ve(n.horizontal)}${ve(i)}`,`overlap${ve(i)}`,t!=="default"&&`color${ve(t)}`]};return Ee(l,JB,s)},t4=ne("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),n4=ne("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ve(n.anchorOrigin.vertical)}${ve(n.anchorOrigin.horizontal)}${ve(n.overlap)}`],n.color!=="default"&&t[`color${ve(n.color)}`],n.invisible&&t.invisible]}})(Le(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:bh*2,lineHeight:1,padding:"0 6px",height:bh*2,borderRadius:bh,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(dn(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:vh,height:vh*2,minWidth:vh*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Xo.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Xo.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Xo.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Xo.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Xo.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Xo.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Xo.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Xo.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function mw(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const QE=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiBadge"}),{anchorOrigin:i,className:a,classes:s,component:l,components:c={},componentsProps:u={},children:d,overlap:f="rectangular",color:p="default",invisible:h=!1,max:g=99,badgeContent:m,slots:y,slotProps:b,showZero:v=!1,variant:x="standard",...w}=r,{badgeContent:O,invisible:E,max:C,displayValue:S}=QB({max:g,invisible:h,badgeContent:m,showZero:v}),P=Yg({anchorOrigin:mw(i),color:p,overlap:f,variant:x,badgeContent:m}),T=E||O==null&&x!=="dot",{color:_=p,overlap:k=f,anchorOrigin:$,variant:M=x}=T?P:r,j=mw($),W=M!=="dot"?S:void 0,H={...r,badgeContent:O,invisible:T,max:C,displayValue:W,showZero:v,anchorOrigin:j,color:_,overlap:k,variant:M},X=e4(H),U={slots:{root:(y==null?void 0:y.root)??c.Root,badge:(y==null?void 0:y.badge)??c.Badge},slotProps:{root:(b==null?void 0:b.root)??u.root,badge:(b==null?void 0:b.badge)??u.badge}},[L,D]=Ue("root",{elementType:t4,externalForwardedProps:{...U,...w},ownerState:H,className:we(X.root,a),ref:n,additionalProps:{as:l}}),[B,z]=Ue("badge",{elementType:n4,externalForwardedProps:U,ownerState:H,className:X.badge});return I.jsxs(L,{...D,children:[d,I.jsx(B,{...z,children:W})]})});process.env.NODE_ENV!=="production"&&(QE.propTypes={anchorOrigin:o.shape({horizontal:o.oneOf(["left","right"]),vertical:o.oneOf(["bottom","top"])}),badgeContent:o.node,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,components:o.shape({Badge:o.elementType,Root:o.elementType}),componentsProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),invisible:o.bool,max:o.number,overlap:o.oneOf(["circular","rectangular"]),showZero:o.bool,slotProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({badge:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dot","standard"]),o.string])});function r4(e){return Pe("MuiButton",e)}const wi=ke("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"]),JE=R.createContext({});process.env.NODE_ENV!=="production"&&(JE.displayName="ButtonGroupContext");const eC=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(eC.displayName="ButtonGroupButtonContext");const o4=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:s,loadingPosition:l,classes:c}=e,u={root:["root",s&&"loading",a,`${a}${ve(t)}`,`size${ve(i)}`,`${a}Size${ve(i)}`,`color${ve(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${ve(l)}`],startIcon:["icon","startIcon",`iconSize${ve(i)}`],endIcon:["icon","endIcon",`iconSize${ve(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Ee(u,r4,c);return{...c,...d}},tC=[{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}}}],i4=ne(Tr,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ve(n.color)}`],t[`size${ve(n.size)}`],t[`${n.variant}Size${ve(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Le(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${wi.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]},[`&.${wi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${wi.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)",[`&.${wi.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(dn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Je(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${wi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wi.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}),[`&.${wi.loading}`]:{color:"transparent"}}}]}})),a4=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ve(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...tC]})),s4=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ve(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...tC]})),l4=ne("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}}]})),gw=ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Sn=R.forwardRef(function(t,n){const r=R.useContext(JE),i=R.useContext(eC),a=Bl(r,t),s=Fe({props:a,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:g,focusVisibleClassName:m,fullWidth:y=!1,id:b,loading:v=null,loadingIndicator:x,loadingPosition:w="center",size:O="medium",startIcon:E,type:C,variant:S="text",...P}=s,T=dr(b),_=x??I.jsx(Hg,{"aria-labelledby":T,color:"inherit",size:16}),k={...s,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:v,loadingIndicator:_,loadingPosition:w,size:O,type:C,variant:S},$=o4(k),M=(E||v&&w==="start")&&I.jsx(a4,{className:$.startIcon,ownerState:k,children:E||I.jsx(gw,{className:$.loadingIconPlaceholder,ownerState:k})}),j=(g||v&&w==="end")&&I.jsx(s4,{className:$.endIcon,ownerState:k,children:g||I.jsx(gw,{className:$.loadingIconPlaceholder,ownerState:k})}),W=i||"",H=typeof v=="boolean"?I.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:v&&I.jsx(l4,{className:$.loadingIndicator,ownerState:k,children:_})}):null;return I.jsxs(i4,{ownerState:k,className:we(r.className,$.root,d,W),component:u,disabled:f||v,focusRipple:!h,focusVisibleClassName:we($.focusVisible,m),ref:n,type:C,id:v?T:b,...P,classes:$,children:[M,w!=="end"&&H,l,w==="end"&&H,j]})});process.env.NODE_ENV!=="production"&&(Sn.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 c4(e){return Pe("MuiCard",e)}ke("MuiCard",["root"]);const u4=e=>{const{classes:t}=e;return Ee({root:["root"]},c4,t)},d4=ne(so,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),nC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...s}=r,l={...r,raised:a},c=u4(l);return I.jsx(d4,{className:we(c.root,i),elevation:a?8:void 0,ref:n,ownerState:l,...s})});process.env.NODE_ENV!=="production"&&(nC.propTypes={children:o.node,classes:o.object,className:o.string,raised:Zn(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function f4(e){return Pe("MuiCardContent",e)}ke("MuiCardContent",["root"]);const p4=e=>{const{classes:t}=e;return Ee({root:["root"]},f4,t)},h4=ne("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),rC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCardContent"}),{className:i,component:a="div",...s}=r,l={...r,component:a},c=p4(l);return I.jsx(h4,{as:a,className:we(c.root,i),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(rC.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function m4(e){return Pe("MuiCardHeader",e)}const Od=ke("MuiCardHeader",["root","avatar","action","content","title","subheader"]),g4=e=>{const{classes:t}=e;return Ee({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},m4,t)},y4=ne("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Od.title}`]:t.title},{[`& .${Od.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),b4=ne("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),v4=ne("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),w4=ne("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${yd.root}:where(& .${Od.title})`]:{display:"block"},[`.${yd.root}:where(& .${Od.subheader})`]:{display:"block"}}),oC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCardHeader"}),{action:i,avatar:a,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:f,slots:p={},slotProps:h={},...g}=r,m={...r,component:s,disableTypography:l},y=g4(m),b={slots:p,slotProps:{title:f,subheader:u,...h}};let v=d;const[x,w]=Ue("title",{className:y.title,elementType:et,externalForwardedProps:b,ownerState:m,additionalProps:{variant:a?"body2":"h5",component:"span"}});v!=null&&v.type!==et&&!l&&(v=I.jsx(x,{...w,children:v}));let O=c;const[E,C]=Ue("subheader",{className:y.subheader,elementType:et,externalForwardedProps:b,ownerState:m,additionalProps:{variant:a?"body2":"body1",color:"textSecondary",component:"span"}});O!=null&&O.type!==et&&!l&&(O=I.jsx(E,{...C,children:O}));const[S,P]=Ue("root",{ref:n,className:y.root,elementType:y4,externalForwardedProps:{...b,...g,component:s},ownerState:m}),[T,_]=Ue("avatar",{className:y.avatar,elementType:b4,externalForwardedProps:b,ownerState:m}),[k,$]=Ue("content",{className:y.content,elementType:w4,externalForwardedProps:b,ownerState:m}),[M,j]=Ue("action",{className:y.action,elementType:v4,externalForwardedProps:b,ownerState:m});return I.jsxs(S,{...P,children:[a&&I.jsx(T,{..._,children:a}),I.jsxs(k,{...$,children:[v,O]}),i&&I.jsx(M,{...j,children:i})]})});process.env.NODE_ENV!=="production"&&(oC.propTypes={action:o.node,avatar:o.node,children:o.node,classes:o.object,component:o.elementType,disableTypography:o.bool,slotProps:o.shape({action:o.oneOfType([o.func,o.object]),avatar:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),subheader:o.oneOfType([o.func,o.object]),title:o.oneOfType([o.func,o.object])}),slots:o.shape({action:o.elementType,avatar:o.elementType,content:o.elementType,root:o.elementType,subheader:o.elementType,title:o.elementType}),subheader:o.node,subheaderTypographyProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,titleTypographyProps:o.object});function x4(e){return Pe("PrivateSwitchBase",e)}ke("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const O4=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${ve(i)}`],input:["input"]};return Ee(a,x4,t)},T4=ne(Tr,{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}}]}),S4=ne("input",{name:"MuiSwitchBase",shouldForwardProp:Mn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ff=R.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:p,inputRef:h,name:g,onBlur:m,onChange:y,onFocus:b,readOnly:v,required:x=!1,tabIndex:w,type:O,value:E,slots:C={},slotProps:S={},...P}=t,[T,_]=Yn({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),k=Pr(),$=A=>{b&&b(A),k&&k.onFocus&&k.onFocus(A)},M=A=>{m&&m(A),k&&k.onBlur&&k.onBlur(A)},j=A=>{if(A.nativeEvent.defaultPrevented)return;const N=A.target.checked;_(N),y&&y(A,N)};let W=l;k&&typeof W>"u"&&(W=k.disabled);const H=O==="checkbox"||O==="radio",X={...t,checked:T,disabled:W,disableFocusRipple:c,edge:u},U=O4(X),L={slots:C,slotProps:{input:p,...S}},[D,B]=Ue("root",{ref:n,elementType:T4,className:U.root,shouldForwardComponentProp:!0,externalForwardedProps:{...L,component:"span",...P},getSlotProps:A=>({...A,onFocus:N=>{var q;(q=A.onFocus)==null||q.call(A,N),$(N)},onBlur:N=>{var q;(q=A.onBlur)==null||q.call(A,N),M(N)}}),ownerState:X,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:W,role:void 0,tabIndex:null}}),[z,F]=Ue("input",{ref:h,elementType:S4,className:U.input,externalForwardedProps:L,getSlotProps:A=>({...A,onChange:N=>{var q;(q=A.onChange)==null||q.call(A,N),j(N)}}),ownerState:X,additionalProps:{autoFocus:r,checked:i,defaultChecked:s,disabled:W,id:H?f:void 0,name:g,readOnly:v,required:x,tabIndex:w,type:O,...O==="checkbox"&&E===void 0?{}:{value:E}}});return I.jsxs(D,{...B,children:[I.jsx(z,{...F}),T?a:d]})});process.env.NODE_ENV!=="production"&&(Ff.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:Rt,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 E4=ct(I.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"),C4=ct(I.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"),P4=ct(I.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 _4(e){return Pe("MuiCheckbox",e)}const wh=ke("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),k4=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${ve(r)}`,`size${ve(i)}`]},s=Ee(a,_4,t);return{...t,...s}},D4=ne(Ff,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ve(n.size)}`],n.color!=="default"&&t[`color${ve(n.color)}`]]}})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{[`&.${wh.checked}, &.${wh.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${wh.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),$4=I.jsx(C4,{}),R4=I.jsx(E4,{}),M4=I.jsx(P4,{}),oy=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=$4,color:a="primary",icon:s=R4,indeterminate:l=!1,indeterminateIcon:c=M4,inputProps:u,size:d="medium",disableRipple:f=!1,className:p,slots:h={},slotProps:g={},...m}=r,y=l?c:s,b=l?c:i,v={...r,disableRipple:f,color:a,indeterminate:l,size:d},x=k4(v),w=g.input??u,[O,E]=Ue("root",{ref:n,elementType:D4,className:we(x.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...m},ownerState:v,additionalProps:{type:"checkbox",icon:R.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:R.cloneElement(b,{fontSize:b.props.fontSize??d}),disableRipple:f,slots:h,slotProps:{input:SE(typeof w=="function"?w(v):w,{"data-indeterminate":l})}}});return I.jsx(O,{...E,classes:x})});process.env.NODE_ENV!=="production"&&(oy.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});const iC=jN({createStyledComponent:ne("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ve(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Fe({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(iC.propTypes={children:o.node,classes:o.object,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function aC(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function I4(e){const t=On(e);return t.body===e?oo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _l(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yw(e){return parseInt(oo(e).getComputedStyle(e).paddingRight,10)||0}function N4(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function bw(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),c=!N4(s);l&&c&&_l(s,i)})}function xh(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function A4(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(I4(r)){const s=aC(oo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${yw(r)+s}px`;const l=On(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${yw(c)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=On(r).body;else{const s=r.parentElement,l=oo(r);a=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.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()=>{n.forEach(({value:a,el:s,property:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function j4(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class L4{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&_l(t.modalRef,!1);const i=j4(n);bw(n,t.mount,t.modalRef,i,!0);const a=xh(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=xh(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=A4(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=xh(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&_l(t.modalRef,n),bw(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&_l(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const F4=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function V4(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 B4(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function z4(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||B4(e))}function W4(e){const t=[],n=[];return Array.from(e.querySelectorAll(F4)).forEach((r,i)=>{const a=V4(r);a===-1||!z4(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function q4(){return!0}function Xl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=W4,isEnabled:s=q4,open:l}=e,c=R.useRef(!1),u=R.useRef(null),d=R.useRef(null),f=R.useRef(null),p=R.useRef(null),h=R.useRef(!1),g=R.useRef(null),m=xt(xs(t),g),y=R.useRef(null);R.useEffect(()=>{!l||!g.current||(h.current=!n)},[n,l]),R.useEffect(()=>{if(!l||!g.current)return;const x=On(g.current);return g.current.contains(x.activeElement)||(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(`
`)),g.current.setAttribute("tabIndex","-1")),h.current&&g.current.focus()),()=>{i||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),R.useEffect(()=>{if(!l||!g.current)return;const x=On(g.current),w=C=>{y.current=C,!(r||!s()||C.key!=="Tab")&&x.activeElement===g.current&&C.shiftKey&&(c.current=!0,d.current&&d.current.focus())},O=()=>{var P,T;const C=g.current;if(C===null)return;if(!x.hasFocus()||!s()||c.current){c.current=!1;return}if(C.contains(x.activeElement)||r&&x.activeElement!==u.current&&x.activeElement!==d.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let S=[];if((x.activeElement===u.current||x.activeElement===d.current)&&(S=a(g.current)),S.length>0){const _=!!((P=y.current)!=null&&P.shiftKey&&((T=y.current)==null?void 0:T.key)==="Tab"),k=S[0],$=S[S.length-1];typeof k!="string"&&typeof $!="string"&&(_?$.focus():k.focus())}else C.focus()};x.addEventListener("focusin",O),x.addEventListener("keydown",w,!0);const E=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(E),x.removeEventListener("focusin",O),x.removeEventListener("keydown",w,!0)}},[n,r,i,s,l,a]);const b=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,p.current=x.target;const w=t.props.onFocus;w&&w(x)},v=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return I.jsxs(R.Fragment,{children:[I.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:m,onFocus:b}),I.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Xl.propTypes={children:Ts,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired});process.env.NODE_ENV!=="production"&&(Xl.propTypes=gf(Xl.propTypes));function U4(e){return typeof e=="function"?e():e}function H4(e){return e?e.props.hasOwnProperty("in"):!1}const vw=()=>{},vu=new L4;function Y4(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=R.useRef({}),p=R.useRef(null),h=R.useRef(null),g=xt(h,d),[m,y]=R.useState(!u),b=H4(l);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const x=()=>On(p.current),w=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),O=()=>{vu.mount(w(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=Ie(()=>{const j=U4(t)||x().body;vu.add(w(),j),h.current&&O()}),C=()=>vu.isTopModal(w()),S=Ie(j=>{p.current=j,j&&(u&&C()?O():h.current&&_l(h.current,v))}),P=R.useCallback(()=>{vu.remove(w(),v)},[v]);R.useEffect(()=>()=>{P()},[P]),R.useEffect(()=>{u?E():(!b||!i)&&P()},[u,P,b,i,E]);const T=j=>W=>{var H;(H=j.onKeyDown)==null||H.call(j,W),!(W.key!=="Escape"||W.which===229||!C())&&(n||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},_=j=>W=>{var H;(H=j.onClick)==null||H.call(j,W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(j={})=>{const W=El(e);delete W.onTransitionEnter,delete W.onTransitionExited;const H={...W,...j};return{role:"presentation",...H,onKeyDown:T(H),ref:g}},getBackdropProps:(j={})=>{const W=j;return{"aria-hidden":!0,...W,onClick:_(W),open:u}},getTransitionProps:()=>{const j=()=>{y(!1),a&&a()},W=()=>{y(!0),s&&s(),i&&P()};return{onEnter:Em(j,(l==null?void 0:l.props.onEnter)??vw),onExited:Em(W,(l==null?void 0:l.props.onExited)??vw)}},rootRef:g,portalRef:S,isTopModal:C,exited:m,hasTransition:b}}function G4(e){return Pe("MuiModal",e)}ke("MuiModal",["root","hidden","backdrop"]);const K4=e=>{const{open:t,exited:n,classes:r}=e;return Ee({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},G4,r)},X4=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Le(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Z4=ne(ry,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),iy=R.forwardRef(function(t,n){const r=Fe({name:"MuiModal",props:t}),{BackdropComponent:i=Z4,BackdropProps:a,classes:s,className:l,closeAfterTransition:c=!1,children:u,container:d,component:f,components:p={},componentsProps:h={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:y=!1,disablePortal:b=!1,disableRestoreFocus:v=!1,disableScrollLock:x=!1,hideBackdrop:w=!1,keepMounted:O=!1,onClose:E,onTransitionEnter:C,onTransitionExited:S,open:P,slotProps:T={},slots:_={},theme:k,...$}=r,M={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:y,disablePortal:b,disableRestoreFocus:v,disableScrollLock:x,hideBackdrop:w,keepMounted:O},{getRootProps:j,getBackdropProps:W,getTransitionProps:H,portalRef:X,isTopModal:U,exited:L,hasTransition:D}=Y4({...M,rootRef:n}),B={...M,exited:L},z=K4(B),F={};if(u.props.tabIndex===void 0&&(F.tabIndex="-1"),D){const{onEnter:K,onExited:J}=H();F.onEnter=K,F.onExited=J}const A={slots:{root:p.Root,backdrop:p.Backdrop,..._},slotProps:{...h,...T}},[N,q]=Ue("root",{ref:n,elementType:X4,externalForwardedProps:{...A,...$,component:f},getSlotProps:j,ownerState:B,className:we(l,z==null?void 0:z.root,!B.open&&B.exited&&(z==null?void 0:z.hidden))}),[Y,G]=Ue("backdrop",{ref:a==null?void 0:a.ref,elementType:i,externalForwardedProps:A,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:K=>W({...K,onClick:J=>{K!=null&&K.onClick&&K.onClick(J)}}),className:we(a==null?void 0:a.className,z==null?void 0:z.backdrop),ownerState:B});return!O&&!P&&(!D||L)?null:I.jsx(Kl,{ref:X,container:d,disablePortal:b,children:I.jsxs(N,{...q,children:[!w&&i?I.jsx(Y,{...G}):null,I.jsx(Xl,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:v,isEnabled:U,open:P,children:R.cloneElement(u,F)})]})})});process.env.NODE_ENV!=="production"&&(iy.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Ts.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([Vo,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 Q4(e){return Pe("MuiDialog",e)}const kl=ke("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ay=R.createContext({});process.env.NODE_ENV!=="production"&&(ay.displayName="DialogContext");const J4=ne(ry,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),e3=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${ve(n)}`],paper:["paper",`paperScroll${ve(n)}`,`paperWidth${ve(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Ee(s,Q4,t)},t3=ne(iy,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),n3=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ve(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),r3=ne(so,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ve(n.scroll)}`],t[`paperWidth${ve(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Le(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${kl.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${kl.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${kl.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Vf=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialog"}),i=ao(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:f,className:p,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:m=!1,maxWidth:y="sm",onClick:b,onClose:v,open:x,PaperComponent:w=so,PaperProps:O={},scroll:E="paper",slots:C={},slotProps:S={},TransitionComponent:P=ci,transitionDuration:T=a,TransitionProps:_,...k}=r,$={...r,disableEscapeKeyDown:h,fullScreen:g,fullWidth:m,maxWidth:y,scroll:E},M=e3($),j=R.useRef(),W=ie=>{j.current=ie.target===ie.currentTarget},H=ie=>{b&&b(ie),j.current&&(j.current=null,v&&v(ie,"backdropClick"))},X=dr(l),U=R.useMemo(()=>({titleId:X}),[X]),L={transition:P,...C},D={transition:_,paper:O,backdrop:d,...S},B={slots:L,slotProps:D},[z,F]=Ue("root",{elementType:t3,shouldForwardComponentProp:!0,externalForwardedProps:B,ownerState:$,className:we(M.root,p),ref:n}),[A,N]=Ue("backdrop",{elementType:J4,shouldForwardComponentProp:!0,externalForwardedProps:B,ownerState:$}),[q,Y]=Ue("paper",{elementType:r3,shouldForwardComponentProp:!0,externalForwardedProps:B,ownerState:$,className:we(M.paper,O.className)}),[G,K]=Ue("container",{elementType:n3,externalForwardedProps:B,ownerState:$,className:M.container}),[J,Z]=Ue("transition",{elementType:ci,externalForwardedProps:B,ownerState:$,additionalProps:{appear:!0,in:x,timeout:T,role:"presentation"}});return I.jsx(z,{closeAfterTransition:!0,slots:{backdrop:A},slotProps:{backdrop:{transitionDuration:T,as:u,...N}},disableEscapeKeyDown:h,onClose:v,open:x,onClick:H,...F,...k,children:I.jsx(J,{...Z,children:I.jsx(G,{onMouseDown:W,...K,children:I.jsx(q,{as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":X,"aria-modal":c,...Y,children:I.jsx(ay.Provider,{value:U,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Vf.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function o3(e){return Pe("MuiDialogActions",e)}ke("MuiDialogActions",["root","spacing"]);const i3=e=>{const{classes:t,disableSpacing:n}=e;return Ee({root:["root",!n&&"spacing"]},o3,t)},a3=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Bf=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,l={...r,disableSpacing:a},c=i3(l);return I.jsx(a3,{className:we(c.root,i),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Bf.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function s3(e){return Pe("MuiDialogContent",e)}ke("MuiDialogContent",["root","dividers"]);function l3(e){return Pe("MuiDialogTitle",e)}const c3=ke("MuiDialogTitle",["root"]),u3=e=>{const{classes:t,dividers:n}=e;return Ee({root:["root",n&&"dividers"]},s3,t)},d3=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Le(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${c3.root} + &`]:{paddingTop:0}}}]}))),zf=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,l={...r,dividers:a},c=u3(l);return I.jsx(d3,{className:we(c.root,i),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(zf.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function f3(e){return Pe("MuiDialogContentText",e)}ke("MuiDialogContentText",["root"]);const p3=e=>{const{classes:t}=e,r=Ee({root:["root"]},f3,t);return{...t,...r}},h3=ne(et,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),sy=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,l=p3(s);return I.jsx(h3,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:we(l.root,a),...r,classes:l})});process.env.NODE_ENV!=="production"&&(sy.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const m3=e=>{const{classes:t}=e;return Ee({root:["root"]},l3,t)},g3=ne(et,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),ly=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,l=r,c=m3(l),{titleId:u=a}=R.useContext(ay);return I.jsx(g3,{component:"h2",className:we(c.root,i),ownerState:l,ref:n,variant:"h6",id:a??u,...s})});process.env.NODE_ENV!=="production"&&(ly.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function y3(e){return Pe("MuiDivider",e)}const ww=ke("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),b3=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:l,variant:c}=e;return Ee({root:["root",t&&"absolute",c,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},y3,r)},v3=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Le(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Je(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),w3=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Le(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ns=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,orientation:l="horizontal",component:c=a||l==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:f=c!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth",...g}=r,m={...r,absolute:i,component:c,flexItem:u,light:d,orientation:l,role:f,textAlign:p,variant:h},y=b3(m);return I.jsx(v3,{as:c,className:we(y.root,s),role:f,ref:n,ownerState:m,"aria-orientation":f==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:a?I.jsx(w3,{className:y.wrapper,ownerState:m,children:a}):null})});ns&&(ns.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(ns.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});const x3=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${ve(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},u=Ee(c,CB,t);return{...t,...u}},O3=ne(Af,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...If(e,t),!n.disableUnderline&&t.underline]}})(Le(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",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:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${gr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${gr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.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"},[`&.${gr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${gr.disabled}, .${gr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${gr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dn()).map(([s])=>{var l;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[s])==null?void 0:l.main}`}}}}),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),T3=ne(jf,{name:"MuiFilledInput",slot:"Input",overridesResolver:Nf})(Le(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Sc=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:p={},type:h="text",...g}=r,m={...r,disableUnderline:i,fullWidth:l,inputComponent:u,multiline:d,type:h},y=x3(r),b={root:{ownerState:m},input:{ownerState:m}},v=f??s?Rn(b,f??s):b,x=p.root??a.Root??O3,w=p.input??a.Input??T3;return I.jsx(Lf,{slots:{root:x,input:w},slotProps:v,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:h,...g,classes:y})});process.env.NODE_ENV!=="production"&&(Sc.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:Rt,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});Sc.muiName="Input";function S3(e){return Pe("MuiFormControl",e)}ke("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const E3=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ve(n)}`,r&&"fullWidth"]};return Ee(i,S3,t)},C3=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ve(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),hi=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:h="none",required:g=!1,size:m="medium",variant:y="outlined",...b}=r,v={...r,color:s,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:h,required:g,size:m,variant:y},x=E3(v),[w,O]=R.useState(()=>{let W=!1;return i&&R.Children.forEach(i,H=>{if(!Ni(H,["Input","Select"]))return;const X=Ni(H,["Select"])?H.props.input:H;X&&xB(X.props)&&(W=!0)}),W}),[E,C]=R.useState(()=>{let W=!1;return i&&R.Children.forEach(i,H=>{Ni(H,["Input","Select"])&&(xd(H.props,!0)||xd(H.props.inputProps,!0))&&(W=!0)}),W}),[S,P]=R.useState(!1);c&&S&&P(!1);const T=d!==void 0&&!c?d:S;let _;const k=R.useRef(!1);process.env.NODE_ENV!=="production"&&(_=()=>(k.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
`)),k.current=!0,()=>{k.current=!1}));const $=R.useCallback(()=>{C(!0)},[]),M=R.useCallback(()=>{C(!1)},[]),j=R.useMemo(()=>({adornedStart:w,setAdornedStart:O,color:s,disabled:c,error:u,filled:E,focused:T,fullWidth:f,hiddenLabel:p,size:m,onBlur:()=>{P(!1)},onFocus:()=>{P(!0)},onEmpty:M,onFilled:$,registerEffect:_,required:g,variant:y}),[w,s,c,u,E,T,f,p,_,M,$,g,m,y]);return I.jsx(Tc.Provider,{value:j,children:I.jsx(C3,{as:l,ownerState:v,className:we(x.root,a),ref:n,...b,children:i})})});process.env.NODE_ENV!=="production"&&(hi.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 P3(e){return Pe("MuiFormControlLabel",e)}const yl=ke("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_3=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${ve(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ee(s,P3,t)},k3=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yl.label}`]:t.label},t.root,t[`labelPlacement${ve(n.labelPlacement)}`]]}})(Le(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${yl.disabled}`]:{cursor:"default"},[`& .${yl.label}`]:{[`&.${yl.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}}]}))),D3=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Le(({theme:e})=>({[`&.${yl.error}`]:{color:(e.vars||e).palette.error.main}}))),Ec=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,inputRef:d,label:f,labelPlacement:p="end",name:h,onChange:g,required:m,slots:y={},slotProps:b={},value:v,...x}=r,w=Pr(),O=c??l.props.disabled??(w==null?void 0:w.disabled),E=m??l.props.required,C={disabled:O,required:E};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof r[j]<"u"&&(C[j]=r[j])});const S=pi({props:r,muiFormControl:w,states:["error"]}),P={...r,disabled:O,labelPlacement:p,required:E,error:S.error},T=_3(P),_={slots:y,slotProps:{...s,...b}},[k,$]=Ue("typography",{elementType:et,externalForwardedProps:_,ownerState:P});let M=f;return M!=null&&M.type!==et&&!u&&(M=I.jsx(k,{component:"span",...$,className:we(T.label,$==null?void 0:$.className),children:M})),I.jsxs(k3,{className:we(T.root,a),ownerState:P,ref:n,...x,children:[R.cloneElement(l,C),E?I.jsxs("div",{children:[M,I.jsxs(D3,{ownerState:P,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):M]})});process.env.NODE_ENV!=="production"&&(Ec.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:Rt,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 $3(e){return Pe("MuiFormGroup",e)}ke("MuiFormGroup",["root","row","error"]);const R3=e=>{const{classes:t,row:n,error:r}=e;return Ee({root:["root",n&&"row",r&&"error"]},$3,t)},M3=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),cy=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...s}=r,l=Pr(),c=pi({props:r,muiFormControl:l,states:["error"]}),u={...r,row:a,error:c.error},d=R3(u);return I.jsx(M3,{className:we(d.root,i),ownerState:u,ref:n,...s})});process.env.NODE_ENV!=="production"&&(cy.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 I3(e){return Pe("MuiFormHelperText",e)}const xw=ke("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ow;const N3=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:l,required:c}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${ve(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return Ee(u,I3,t)},A3=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ve(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${xw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${xw.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}}]}))),sn=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p",disabled:l,error:c,filled:u,focused:d,margin:f,required:p,variant:h,...g}=r,m=Pr(),y=pi({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),b={...r,component:s,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete b.ownerState;const v=N3(b);return I.jsx(A3,{as:s,className:we(v.root,a),ref:n,...g,ownerState:b,children:i===" "?Ow||(Ow=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(sn.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 j3(e){return Pe("MuiFormLabel",e)}const Dl=ke("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),L3=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:l}=e,c={root:["root",`color${ve(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return Ee(c,j3,t)},F3=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{[`&.${Dl.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Dl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dl.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),V3=ne("span",{name:"MuiFormLabel",slot:"Asterisk"})(Le(({theme:e})=>({[`&.${Dl.error}`]:{color:(e.vars||e).palette.error.main}}))),Cc=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:s,component:l="label",disabled:c,error:u,filled:d,focused:f,required:p,...h}=r,g=Pr(),m=pi({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:m.color||"primary",component:l,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},b=L3(y);return I.jsxs(F3,{as:l,ownerState:y,className:we(b.root,a),ref:n,...h,children:[i,m.required&&I.jsxs(V3,{ownerState:y,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Cc.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])});const Pt=eA({createStyledComponent:ne("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Fe({props:e,name:"MuiGrid"}),useTheme:ao});process.env.NODE_ENV!=="production"&&(Pt.propTypes={children:o.node,columns:o.oneOfType([o.arrayOf(o.number),o.number,o.object]),columnSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),container:o.bool,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),offset:o.oneOfType([o.string,o.number,o.arrayOf(o.oneOfType([o.string,o.number])),o.object]),rowSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),size:o.oneOfType([o.string,o.bool,o.number,o.arrayOf(o.oneOfType([o.string,o.bool,o.number])),o.object]),spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),unstable_level:o.number,wrap:o.oneOf(["nowrap","wrap-reverse","wrap"])});if(process.env.NODE_ENV!=="production"){const e=Pt,t=CF("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function Nm(e){return`scale(${e}, ${e**2})`}const B3={entering:{opacity:1,transform:Nm(1)},entered:{opacity:1,transform:"none"}},Oh=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rs=R.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:h,style:g,timeout:m="auto",TransitionComponent:y=Cr,...b}=t,v=br(),x=R.useRef(),w=ao(),O=R.useRef(null),E=xt(O,xs(a),n),C=j=>W=>{if(j){const H=O.current;W===void 0?j(H):j(H,W)}},S=C(d),P=C((j,W)=>{PE(j);const{duration:H,delay:X,easing:U}=Xa({style:g,timeout:m,easing:s},{mode:"enter"});let L;m==="auto"?(L=w.transitions.getAutoHeightDuration(j.clientHeight),x.current=L):L=H,j.style.transition=[w.transitions.create("opacity",{duration:L,delay:X}),w.transitions.create("transform",{duration:Oh?L:L*.666,delay:X,easing:U})].join(","),c&&c(j,W)}),T=C(u),_=C(h),k=C(j=>{const{duration:W,delay:H,easing:X}=Xa({style:g,timeout:m,easing:s},{mode:"exit"});let U;m==="auto"?(U=w.transitions.getAutoHeightDuration(j.clientHeight),x.current=U):U=W,j.style.transition=[w.transitions.create("opacity",{duration:U,delay:H}),w.transitions.create("transform",{duration:Oh?U:U*.666,delay:Oh?H:H||U*.333,easing:X})].join(","),j.style.opacity=0,j.style.transform=Nm(.75),f&&f(j)}),$=C(p),M=j=>{m==="auto"&&v.start(x.current||0,j),r&&r(O.current,j)};return I.jsx(y,{appear:i,in:l,nodeRef:O,onEnter:P,onEntered:T,onEntering:S,onExit:k,onExited:$,onExiting:_,addEndListener:M,timeout:m==="auto"?null:m,...b,children:(j,{ownerState:W,...H})=>R.cloneElement(a,{style:{opacity:0,transform:Nm(.75),visibility:j==="exited"&&!l?"hidden":void 0,...B3[j],...g,...a.props.style},ref:E,...H})})});process.env.NODE_ENV!=="production"&&(rs.propTypes={addEndListener:o.func,appear:o.bool,children:Ts.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})])});rs&&(rs.muiSupportAuto=!0);const z3=e=>{const{classes:t,disableUnderline:n}=e,i=Ee({root:["root",!n&&"underline"],input:["input"]},SB,t);return{...t,...i}},W3=ne(Af,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...If(e,t),!n.disableUnderline&&t.underline]}})(Le(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ti.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ti.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ti.disabled}, .${ti.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ti.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),q3=ne(jf,{name:"MuiInput",slot:"Input",overridesResolver:Nf})({}),Pc=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:p="text",...h}=r,g=z3(r),y={root:{ownerState:{disableUnderline:i}}},b=d??s?Rn(d??s,y):y,v=f.root??a.Root??W3,x=f.input??a.Input??q3;return I.jsx(Lf,{slots:{root:v,input:x},slotProps:b,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:p,...h,classes:g})});process.env.NODE_ENV!=="production"&&(Pc.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:Rt,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});Pc.muiName="Input";function U3(e){return Pe("MuiInputAdornment",e)}const Tw=ke("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Sw;const H3=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ve(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Y3=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,l={root:["root",n&&"disablePointerEvents",i&&`position${ve(i)}`,s,r&&"hiddenLabel",a&&`size${ve(a)}`]};return Ee(l,U3,t)},G3=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:H3})(Le(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Tw.positionStart}&:not(.${Tw.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),uy=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=r,p=Pr()||{};let h=d;d&&p.variant&&process.env.NODE_ENV!=="production"&&d===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!h&&(h=p.variant);const g={...r,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:l,position:u,variant:h},m=Y3(g);return I.jsx(Tc.Provider,{value:null,children:I.jsx(G3,{as:s,ownerState:g,className:we(m.root,a),ref:n,...f,children:typeof i=="string"&&!c?I.jsx(et,{color:"textSecondary",children:i}):I.jsxs(R.Fragment,{children:[u==="start"?Sw||(Sw=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,i]})})})});process.env.NODE_ENV!=="production"&&(uy.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disablePointerEvents:o.bool,disableTypography:o.bool,position:o.oneOf(["end","start"]).isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function K3(e){return Pe("MuiInputLabel",e)}ke("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const X3=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:l}=e,c={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="medium"&&`size${ve(r)}`,s],asterisk:[l&&"asterisk"]},u=Ee(c,K3,t);return{...t,...u}},Z3=ne(Cc,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Dl.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Le(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),_c=R.forwardRef(function(t,n){const r=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:s,variant:l,className:c,...u}=r,d=Pr();let f=s;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const p=pi({props:r,muiFormControl:d,states:["size","variant","required","focused"]}),h={...r,disableAnimation:i,formControl:d,shrink:f,size:p.size,variant:p.variant,required:p.required,focused:p.focused},g=X3(h);return I.jsx(Z3,{"data-shrink":f,ref:n,className:we(g.root,c),...u,ownerState:h,classes:g})});process.env.NODE_ENV!=="production"&&(_c.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"])});const zr=R.createContext({});process.env.NODE_ENV!=="production"&&(zr.displayName="ListContext");function Q3(e){return Pe("MuiList",e)}ke("MuiList",["root","padding","dense","subheader"]);const J3=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ee({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Q3,t)},ez=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Wf=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=r,f=R.useMemo(()=>({dense:l}),[l]),p={...r,component:s,dense:l,disablePadding:c},h=J3(p);return I.jsx(zr.Provider,{value:f,children:I.jsxs(ez,{as:s,className:we(h.root,a),ref:n,ownerState:p,...d,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(Wf.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 tz(e){return Pe("MuiListItem",e)}ke("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function nz(e){return Pe("MuiListItemButton",e)}const Ca=ke("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),rz=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},oz=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:l}=e,u=Ee({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},nz,n);return{...n,...u}},iz=ne(Tr,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:rz})(Le(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ca.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ca.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ca.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ca.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ca.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),sC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:l,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:p=!1,className:h,...g}=r,m=R.useContext(zr),y=R.useMemo(()=>({dense:c||m.dense||!1,alignItems:i,disableGutters:u}),[i,m.dense,c,u]),b=R.useRef(null);Kt(()=>{a&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[a]);const v={...r,alignItems:i,dense:y.dense,disableGutters:u,divider:d,selected:p},x=oz(v),w=xt(b,n);return I.jsx(zr.Provider,{value:y,children:I.jsx(iz,{ref:w,href:g.href||g.to,component:(g.href||g.to)&&s==="div"?"button":s,focusVisibleClassName:we(x.focusVisible,f),ownerState:v,className:we(x.root,h),...g,classes:x,children:l})})});process.env.NODE_ENV!=="production"&&(sC.propTypes={alignItems:o.oneOf(["center","flex-start"]),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,href:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function az(e){return Pe("MuiListItemSecondaryAction",e)}ke("MuiListItemSecondaryAction",["root","disableGutters"]);const sz=e=>{const{disableGutters:t,classes:n}=e;return Ee({root:["root",t&&"disableGutters"]},az,n)},lz=ne("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),qf=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=R.useContext(zr),l={...r,disableGutters:s.disableGutters},c=sz(l);return I.jsx(lz,{className:we(c.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(qf.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});qf.muiName="ListItemSecondaryAction";const cz=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},uz=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:l}=e;return Ee({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},tz,n)},dz=ne("div",{name:"MuiListItem",slot:"Root",overridesResolver:cz})(Le(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Ca.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),fz=ne("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),lC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...p}={},dense:h=!1,disableGutters:g=!1,disablePadding:m=!1,divider:y=!1,secondaryAction:b,slotProps:v={},slots:x={},...w}=r,O=R.useContext(zr),E=R.useMemo(()=>({dense:h||O.dense||!1,alignItems:i,disableGutters:g}),[i,O.dense,h,g]),C=R.useRef(null),S=R.Children.toArray(a),P=S.length&&Ni(S[S.length-1],["ListItemSecondaryAction"]),T={...r,alignItems:i,dense:E.dense,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:P},_=uz(T),k=xt(C,n),$=x.root||c.Root||dz,M=v.root||u.root||{},j={className:we(_.root,M.className,s),...w};let W=l||"li";return P?(W=!j.component&&!l?"div":W,d==="li"&&(W==="li"?W="div":j.component==="li"&&(j.component="div")),I.jsx(zr.Provider,{value:E,children:I.jsxs(fz,{as:d,className:we(_.container,f),ref:k,ownerState:T,...p,children:[I.jsx($,{...M,...!Mo($)&&{as:W,ownerState:{...T,...M.ownerState}},...j,children:S}),S.pop()]})})):I.jsx(zr.Provider,{value:E,children:I.jsxs($,{...M,as:W,ref:k,...!Mo($)&&{ownerState:{...T,...M.ownerState}},...j,children:[S,b&&I.jsx(qf,{children:b})]})})});process.env.NODE_ENV!=="production"&&(lC.propTypes={alignItems:o.oneOf(["center","flex-start"]),children:Zn(o.node,e=>{const t=R.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const i=t[r];if(Ni(i,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),ContainerComponent:vc,ContainerProps:o.object,dense:o.bool,disableGutters:o.bool,disablePadding:o.bool,divider:o.bool,secondaryAction:o.node,slotProps:o.shape({root: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])});function pz(e){return Pe("MuiListItemAvatar",e)}ke("MuiListItemAvatar",["root","alignItemsFlexStart"]);const hz=e=>{const{alignItems:t,classes:n}=e;return Ee({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},pz,n)},mz=ne("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),cC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemAvatar"}),{className:i,...a}=r,s=R.useContext(zr),l={...r,alignItems:s.alignItems},c=hz(l);return I.jsx(mz,{className:we(c.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(cC.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Ew=ke("MuiListItemIcon",["root","alignItemsFlexStart"]);function gz(e){return Pe("MuiListItemText",e)}const Ra=ke("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yz=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Ee({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},gz,t)},bz=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ra.primary}`]:t.primary},{[`& .${Ra.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${yd.root}:where(& .${Ra.primary})`]:{display:"block"},[`.${yd.root}:where(& .${Ra.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),dy=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f,slots:p={},slotProps:h={},...g}=r,{dense:m}=R.useContext(zr);let y=c??i,b=d;const v={...r,disableTypography:s,inset:l,primary:!!y,secondary:!!b,dense:m},x=yz(v),w={slots:p,slotProps:{primary:u,secondary:f,...h}},[O,E]=Ue("root",{className:we(x.root,a),elementType:bz,externalForwardedProps:{...w,...g},ownerState:v,ref:n}),[C,S]=Ue("primary",{className:x.primary,elementType:et,externalForwardedProps:w,ownerState:v}),[P,T]=Ue("secondary",{className:x.secondary,elementType:et,externalForwardedProps:w,ownerState:v});return y!=null&&y.type!==et&&!s&&(y=I.jsx(C,{variant:m?"body2":"body1",component:S!=null&&S.variant?void 0:"span",...S,children:y})),b!=null&&b.type!==et&&!s&&(b=I.jsx(P,{variant:"body2",color:"textSecondary",...T,children:b})),I.jsxs(O,{...E,children:[y,b]})});process.env.NODE_ENV!=="production"&&(dy.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Th(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Cw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uC(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Zs(e,t,n,r,i,a){let s=!1,l=i(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!uC(l,a)||c)l=i(e,l,n);else return l.focus(),!0}return!1}const Uf=R.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu",...p}=t,h=R.useRef(null),g=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kt(()=>{i&&h.current.focus()},[i]),R.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const O=!h.current.style.width;if(x.clientHeight<h.current.clientHeight&&O){const E=`${aC(oo(x))}px`;h.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const m=x=>{const w=h.current,O=x.key;if(x.ctrlKey||x.metaKey||x.altKey){d&&d(x);return}const C=On(w).activeElement;if(O==="ArrowDown")x.preventDefault(),Zs(w,C,u,c,Th);else if(O==="ArrowUp")x.preventDefault(),Zs(w,C,u,c,Cw);else if(O==="Home")x.preventDefault(),Zs(w,null,u,c,Th);else if(O==="End")x.preventDefault(),Zs(w,null,u,c,Cw);else if(O.length===1){const S=g.current,P=O.toLowerCase(),T=performance.now();S.keys.length>0&&(T-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&P!==S.keys[0]&&(S.repeating=!1)),S.lastTime=T,S.keys.push(P);const _=C&&!S.repeating&&uC(C,S);S.previousKeyMatched&&(_||Zs(w,C,!1,c,Th,S))?x.preventDefault():S.previousKeyMatched=!1}d&&d(x)},y=xt(h,n);let b=-1;R.Children.forEach(s,(x,w)=>{if(!R.isValidElement(x)){b===w&&(b+=1,b>=s.length&&(b=-1));return}process.env.NODE_ENV!=="production"&&Lo.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),x.props.disabled||(f==="selectedMenu"&&x.props.selected||b===-1)&&(b=w),b===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(b+=1,b>=s.length&&(b=-1))});const v=R.Children.map(s,(x,w)=>{if(w===b){const O={};return a&&(O.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(O.tabIndex=0),R.cloneElement(x,O)}return x});return I.jsx(Wf,{role:"menu",ref:y,className:l,onKeyDown:m,tabIndex:i?0:-1,...p,children:v})});process.env.NODE_ENV!=="production"&&(Uf.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 vz(e){return Pe("MuiPopover",e)}ke("MuiPopover",["root","paper"]);function Pw(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function _w(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function kw(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function bl(e){return typeof e=="function"?e():e}const wz=e=>{const{classes:t}=e;return Ee({root:["root"],paper:["paper"]},vz,t)},xz=ne(iy,{name:"MuiPopover",slot:"Root"})({}),dC=ne(so,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:f,elevation:p=8,marginThreshold:h=16,open:g,PaperProps:m={},slots:y={},slotProps:b={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:w="auto",TransitionProps:O={},disableScrollLock:E=!1,...C}=r,S=R.useRef(),P={...r,anchorOrigin:s,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:v,TransitionComponent:x,transitionDuration:w,TransitionProps:O},T=wz(P),_=R.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const K=bl(a),J=K&&K.nodeType===1?K:On(S.current).body,Z=J.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ie=J.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ie.top===0&&ie.left===0&&ie.right===0&&ie.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(`
`))}return{top:Z.top+Pw(Z,s.vertical),left:Z.left+_w(Z,s.horizontal)}},[a,s.horizontal,s.vertical,l,c]),k=R.useCallback(K=>({vertical:Pw(K,v.vertical),horizontal:_w(K,v.horizontal)}),[v.horizontal,v.vertical]),$=R.useCallback(K=>{const J={width:K.offsetWidth,height:K.offsetHeight},Z=k(J);if(c==="none")return{top:null,left:null,transformOrigin:kw(Z)};const ie=_();let de=ie.top-Z.vertical,xe=ie.left-Z.horizontal;const he=de+J.height,pe=xe+J.width,Q=oo(bl(a)),oe=Q.innerHeight-h,te=Q.innerWidth-h;if(h!==null&&de<h){const le=de-h;de-=le,Z.vertical+=le}else if(h!==null&&he>oe){const le=he-oe;de-=le,Z.vertical+=le}if(process.env.NODE_ENV!=="production"&&J.height>oe&&J.height&&oe&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${J.height-oe}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
`)),h!==null&&xe<h){const le=xe-h;xe-=le,Z.horizontal+=le}else if(pe>te){const le=pe-te;xe-=le,Z.horizontal+=le}return{top:`${Math.round(de)}px`,left:`${Math.round(xe)}px`,transformOrigin:kw(Z)}},[a,c,_,k,h]),[M,j]=R.useState(g),W=R.useCallback(()=>{const K=S.current;if(!K)return;const J=$(K);J.top!==null&&K.style.setProperty("top",J.top),J.left!==null&&(K.style.left=J.left),K.style.transformOrigin=J.transformOrigin,j(!0)},[$]);R.useEffect(()=>(E&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[a,E,W]);const H=()=>{W()},X=()=>{j(!1)};R.useEffect(()=>{g&&W()}),R.useImperativeHandle(i,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),R.useEffect(()=>{if(!g)return;const K=Df(()=>{W()}),J=oo(bl(a));return J.addEventListener("resize",K),()=>{K.clear(),J.removeEventListener("resize",K)}},[a,g,W]);let U=w;const L={slots:{transition:x,...y},slotProps:{transition:O,paper:m,...b}},[D,B]=Ue("transition",{elementType:rs,externalForwardedProps:L,ownerState:P,getSlotProps:K=>({...K,onEntering:(J,Z)=>{var ie;(ie=K.onEntering)==null||ie.call(K,J,Z),H()},onExited:J=>{var Z;(Z=K.onExited)==null||Z.call(K,J),X()}}),additionalProps:{appear:!0,in:g}});w==="auto"&&!D.muiSupportAuto&&(U=void 0);const z=f||(a?On(bl(a)).body:void 0),[F,{slots:A,slotProps:N,...q}]=Ue("root",{ref:n,elementType:xz,externalForwardedProps:{...L,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:SE(typeof b.backdrop=="function"?b.backdrop(P):b.backdrop,{invisible:!0})},container:z,open:g},ownerState:P,className:we(T.root,d)}),[Y,G]=Ue("paper",{ref:S,className:T.paper,elementType:dC,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:M?void 0:{opacity:0}},ownerState:P});return I.jsx(F,{...q,...!Mo(F)&&{slots:A,slotProps:N,disableScrollLock:E},children:I.jsx(D,{...B,timeout:U,children:I.jsx(Y,{...G,children:u})})})});process.env.NODE_ENV!=="production"&&(fC.propTypes={action:Rt,anchorEl:Zn(o.oneOfType([Vo,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=bl(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}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(`
`))}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([Vo,o.func]),disableScrollLock:o.bool,elevation:wc,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:vc}),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 Oz(e){return Pe("MuiMenu",e)}ke("MuiMenu",["root","paper","list"]);const Tz={vertical:"top",horizontal:"right"},Sz={vertical:"top",horizontal:"left"},Ez=e=>{const{classes:t}=e;return Ee({root:["root"],paper:["paper"],list:["list"]},Oz,t)},Cz=ne(fC,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Pz=ne(dC,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_z=ne(Uf,{name:"MuiMenu",slot:"List"})({outline:0}),pC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:f={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:g,...m}={},variant:y="selectedMenu",slots:b={},slotProps:v={},...x}=r,w=Gn(),O={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:m,variant:y},E=Ez(O),C=i&&!l&&d,S=R.useRef(null),P=(U,L)=>{S.current&&S.current.adjustStyleForScrollbar(U,{direction:w?"rtl":"ltr"}),g&&g(U,L)},T=U=>{U.key==="Tab"&&(U.preventDefault(),u&&u(U,"tabKeyDown"))};let _=-1;R.Children.map(a,(U,L)=>{R.isValidElement(U)&&(process.env.NODE_ENV!=="production"&&Lo.isFragment(U)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),U.props.disabled||(y==="selectedMenu"&&U.props.selected||_===-1)&&(_=L))});const k={slots:b,slotProps:{list:c,transition:m,paper:f,...v}},$=st({elementType:b.root,externalSlotProps:v.root,ownerState:O,className:[E.root,s]}),[M,j]=Ue("paper",{className:E.paper,elementType:Pz,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:O}),[W,H]=Ue("list",{className:we(E.list,c.className),elementType:_z,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:U=>({...U,onKeyDown:L=>{var D;T(L),(D=U.onKeyDown)==null||D.call(U,L)}}),ownerState:O}),X=typeof k.slotProps.transition=="function"?k.slotProps.transition(O):k.slotProps.transition;return I.jsx(Cz,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Tz:Sz,slots:{root:b.root,paper:M,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:$,paper:j,backdrop:typeof v.backdrop=="function"?v.backdrop(O):v.backdrop,transition:{...X,onEntering:(...U)=>{var L;P(...U),(L=X==null?void 0:X.onEntering)==null||L.call(X,...U)}}},open:d,ref:n,transitionDuration:h,ownerState:O,...x,classes:p,children:I.jsx(W,{actions:S,autoFocus:i&&(_===-1||l),autoFocusItem:C,variant:y,...H,children:a})})});process.env.NODE_ENV!=="production"&&(pC.propTypes={anchorEl:o.oneOfType([Vo,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 kz(e){return Pe("MuiMenuItem",e)}const Qs=ke("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Dz=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},$z=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,c=Ee({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},kz,s);return{...s,...c}},Rz=ne(Tr,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Dz})(Le(({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"}},[`&.${Qs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ww.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ww.inset}`]:{marginLeft:52},[`& .${Ra.root}`]:{marginTop:0,marginBottom:0},[`& .${Ra.inset}`]:{paddingLeft:36},[`& .${Ew.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,[`& .${Ew.root} svg`]:{fontSize:"1.25rem"}}}]}))),os=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:p,...h}=r,g=R.useContext(zr),m=R.useMemo(()=>({dense:s||g.dense||!1,disableGutters:c}),[g.dense,s,c]),y=R.useRef(null);Kt(()=>{i&&(y.current?y.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 b={...r,dense:m.dense,divider:l,disableGutters:c},v=$z(r),x=xt(y,n);let w;return r.disabled||(w=f!==void 0?f:-1),I.jsx(zr.Provider,{value:m,children:I.jsx(Rz,{ref:x,role:d,tabIndex:w,component:a,focusVisibleClassName:we(v.focusVisible,u),className:we(v.root,p),...h,ownerState:b,classes:v})})});process.env.NODE_ENV!=="production"&&(os.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 Mz(e){return Pe("MuiNativeSelect",e)}const fy=ke("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Iz=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,l={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ve(n)}`,a&&"iconOpen",r&&"disabled"]};return Ee(l,Mz,t)},hC=ne("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${fy.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}}}]})),Nz=ne(hC,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${fy.multiple}`]:t.multiple}]}})({}),mC=ne("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${fy.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}}]})),Az=ne(mC,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ve(n.variant)}`],n.open&&t.iconOpen]}})({}),gC=R.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:l,variant:c="standard",...u}=t,d={...t,disabled:i,variant:c,error:a},f=Iz(d);return I.jsxs(R.Fragment,{children:[I.jsx(Nz,{ownerState:d,className:we(f.select,r),disabled:i,ref:l||n,...u}),t.multiple?null:I.jsx(Az,{as:s,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(gC.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Rt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var Dw;const jz=ne("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Mn})({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%"}),Lz=ne("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Mn})(Le(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function yC(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,l=i!=null&&i!=="",c={...e,notched:a,withLabel:l};return I.jsx(jz,{"aria-hidden":!0,className:r,ownerState:c,...s,children:I.jsx(Lz,{ownerState:c,children:l?I.jsx("span",{children:i}):Dw||(Dw=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(yC.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const Fz=e=>{const{classes:t}=e,r=Ee({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},EB,t);return{...t,...r}},Vz=ne(Af,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:If})(Le(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ir.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(dn()).map(([n])=>({props:{color:n},style:{[`&.${Ir.focused} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ir.error} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ir.disabled} .${Ir.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Bz=ne(yC,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Le(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),zz=ne(jf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Nf})(Le(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),kc=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:f={},type:p="text",...h}=r,g=Fz(r),m=Pr(),y=pi({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:m,fullWidth:a,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:p},v=d.root??i.Root??Vz,x=d.input??i.Input??zz,[w,O]=Ue("notchedOutline",{elementType:Bz,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:d,slotProps:f},additionalProps:{label:l!=null&&l!==""&&y.required?I.jsxs(R.Fragment,{children:[l," ","*"]}):l}});return I.jsx(Lf,{slots:{root:v,input:x},slotProps:f,renderSuffix:E=>I.jsx(w,{...O,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:p,...h,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(kc.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:Rt,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});kc.muiName="Input";const Wz=ct(I.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"),qz=ct(I.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"),Uz=ne("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Mn})({position:"relative",display:"flex"}),Hz=ne(Wz,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Yz=ne(qz,{name:"MuiRadioButtonIcon"})(Le(({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 py(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return I.jsxs(Uz,{className:n.root,ownerState:i,children:[I.jsx(Hz,{fontSize:r,className:n.background,ownerState:i}),I.jsx(Yz,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(py.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const hy=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(hy.displayName="RadioGroupContext");function Gz(){return R.useContext(hy)}function Kz(e){return Pe("MuiRadio",e)}const $w=ke("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Xz=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ve(n)}`,r!=="medium"&&`size${ve(r)}`]};return{...t,...Ee(i,Kz,t)}},Zz=ne(Ff,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ve(n.size)}`],t[`color${ve(n.color)}`]]}})(Le(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${$w.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${$w.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function Qz(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Jz=I.jsx(py,{checked:!0}),eW=I.jsx(py,{}),bC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=Jz,color:s="primary",icon:l=eW,name:c,onChange:u,size:d="medium",className:f,disabled:p,disableRipple:h=!1,slots:g={},slotProps:m={},inputProps:y,...b}=r,v=Pr();let x=p;v&&typeof x>"u"&&(x=v.disabled),x??(x=!1);const w={...r,disabled:x,disableRipple:h,color:s,size:d},O=Xz(w),E=Gz();let C=i;const S=Em(u,E&&E.onChange);let P=c;E&&(typeof C>"u"&&(C=Qz(E.value,r.value)),typeof P>"u"&&(P=E.name));const T=m.input??y,[_,k]=Ue("root",{ref:n,elementType:Zz,className:we(O.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:m,...b},getSlotProps:$=>({...$,onChange:(M,...j)=>{var W;(W=$.onChange)==null||W.call($,M,...j),S(M,...j)}}),ownerState:w,additionalProps:{type:"radio",icon:R.cloneElement(l,{fontSize:l.props.fontSize??d}),checkedIcon:R.cloneElement(a,{fontSize:a.props.fontSize??d}),disabled:x,name:P,checked:C,slots:g,slotProps:{input:typeof T=="function"?T(w):T}}});return I.jsx(_,{...k,classes:O})});process.env.NODE_ENV!=="production"&&(bC.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:Rt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function tW(e){return Pe("MuiRadioGroup",e)}ke("MuiRadioGroup",["root","row","error"]);const nW=e=>{const{classes:t,row:n,error:r}=e;return Ee({root:["root",n&&"row",r&&"error"]},tW,t)},vC=R.forwardRef(function(t,n){const{actions:r,children:i,className:a,defaultValue:s,name:l,onChange:c,value:u,...d}=t,f=R.useRef(null),p=nW(t),[h,g]=Yn({controlled:u,default:s,name:"RadioGroup"});R.useImperativeHandle(r,()=>({focus:()=>{let v=f.current.querySelector("input:not(:disabled):checked");v||(v=f.current.querySelector("input:not(:disabled)")),v&&v.focus()}}),[]);const m=xt(n,f),y=dr(l),b=R.useMemo(()=>({name:y,onChange(v){g(v.target.value),c&&c(v,v.target.value)},value:h}),[y,c,g,h]);return I.jsx(hy.Provider,{value:b,children:I.jsx(cy,{role:"radiogroup",ref:m,className:we(p.root,a),...d,children:i})})});process.env.NODE_ENV!=="production"&&(vC.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const wC={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function xC(e){return Pe("MuiSelect",e)}const Js=ke("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Rw;const rW=ne(hC,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Js.select}`]:t.select},{[`&.${Js.select}`]:t[n.variant]},{[`&.${Js.error}`]:t.error},{[`&.${Js.multiple}`]:t.multiple}]}})({[`&.${Js.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),oW=ne(mC,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ve(n.variant)}`],n.open&&t.iconOpen]}})({}),iW=ne("input",{shouldForwardProp:e=>wf(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Mw(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function aW(e){return e==null||typeof e=="string"&&!e.trim()}const sW=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,l={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ve(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ee(l,xC,t)},OC=R.forwardRef(function(t,n){var bt,Ke;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:p,error:h=!1,IconComponent:g,inputRef:m,labelId:y,MenuProps:b={},multiple:v,name:x,onBlur:w,onChange:O,onClose:E,onFocus:C,onOpen:S,open:P,readOnly:T,renderValue:_,required:k,SelectDisplayProps:$={},tabIndex:M,type:j,value:W,variant:H="standard",...X}=t,[U,L]=Yn({controlled:W,default:d,name:"Select"}),[D,B]=Yn({controlled:P,default:u,name:"Select"}),z=R.useRef(null),F=R.useRef(null),[A,N]=R.useState(null),{current:q}=R.useRef(P!=null),[Y,G]=R.useState(),K=xt(n,m),J=R.useCallback(Ne=>{F.current=Ne,Ne&&N(Ne)},[]),Z=A==null?void 0:A.parentNode;R.useImperativeHandle(K,()=>({focus:()=>{F.current.focus()},node:z.current,value:U}),[U]),R.useEffect(()=>{u&&D&&A&&!q&&(G(s?null:Z.clientWidth),F.current.focus())},[A,s]),R.useEffect(()=>{a&&F.current.focus()},[a]),R.useEffect(()=>{if(!y)return;const Ne=On(F.current).getElementById(y);if(Ne){const We=()=>{getSelection().isCollapsed&&F.current.focus()};return Ne.addEventListener("click",We),()=>{Ne.removeEventListener("click",We)}}},[y]);const ie=(Ne,We)=>{Ne?S&&S(We):E&&E(We),q||(G(s?null:Z.clientWidth),B(Ne))},de=Ne=>{Ne.button===0&&(Ne.preventDefault(),F.current.focus(),ie(!0,Ne))},xe=Ne=>{ie(!1,Ne)},he=R.Children.toArray(l),pe=Ne=>{const We=he.find(rt=>rt.props.value===Ne.target.value);We!==void 0&&(L(We.props.value),O&&O(Ne,We))},Q=Ne=>We=>{let rt;if(We.currentTarget.hasAttribute("tabindex")){if(v){rt=Array.isArray(U)?U.slice():[];const Tt=U.indexOf(Ne.props.value);Tt===-1?rt.push(Ne.props.value):rt.splice(Tt,1)}else rt=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(We),U!==rt&&(L(rt),O)){const Tt=We.nativeEvent||We,nt=new Tt.constructor(Tt.type,Tt);Object.defineProperty(nt,"target",{writable:!0,value:{value:rt,name:x}}),O(nt,Ne)}v||ie(!1,We)}},oe=Ne=>{T||[" ","ArrowUp","ArrowDown","Enter"].includes(Ne.key)&&(Ne.preventDefault(),ie(!0,Ne))},te=A!==null&&D,le=Ne=>{!te&&w&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:U,name:x}}),w(Ne))};delete X["aria-invalid"];let re,Te;const Se=[];let fe=!1,ge=!1;(xd({value:U})||p)&&(_?re=_(U):fe=!0);const _e=he.map(Ne=>{if(!R.isValidElement(Ne))return null;process.env.NODE_ENV!=="production"&&Lo.isFragment(Ne)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`));let We;if(v){if(!Array.isArray(U))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":To(2));We=U.some(rt=>Mw(rt,Ne.props.value)),We&&fe&&Se.push(Ne.props.children)}else We=Mw(U,Ne.props.value),We&&fe&&(Te=Ne.props.children);return We&&(ge=!0),R.cloneElement(Ne,{"aria-selected":We?"true":"false",onClick:Q(Ne),onKeyUp:rt=>{rt.key===" "&&rt.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(rt)},role:"option",selected:We,value:void 0,"data-value":Ne.props.value})});process.env.NODE_ENV!=="production"&&R.useEffect(()=>{if(!ge&&!v&&U!==""){const Ne=he.map(We=>We.props.value);console.warn([`MUI: You have provided an out-of-range value \`${U}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Ne.filter(We=>We!=null).map(We=>`\`${We}\``).join(", ")||'""'}.`].join(`
`))}},[ge,he,v,x,U]),fe&&(v?Se.length===0?re=null:re=Se.reduce((Ne,We,rt)=>(Ne.push(We),rt<Se.length-1&&Ne.push(", "),Ne),[]):re=Te);let $e=Y;!s&&q&&A&&($e=Z.clientWidth);let ae;typeof M<"u"?ae=M:ae=f?null:0;const ce=$.id||(x?`mui-component-select-${x}`:void 0),ue={...t,variant:H,value:U,open:te,error:h},Ce=sW(ue),ye={...b.PaperProps,...(bt=b.slotProps)==null?void 0:bt.paper},Me={...b.MenuListProps,...(Ke=b.slotProps)==null?void 0:Ke.list},Ze=dr();return I.jsxs(R.Fragment,{children:[I.jsx(rW,{as:"div",ref:J,tabIndex:ae,role:"combobox","aria-controls":te?Ze:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":te?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[y,ce].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":k?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:oe,onMouseDown:f||T?null:de,onBlur:le,onFocus:C,...$,ownerState:ue,className:we($.className,Ce.select,c),id:ce,children:aW(re)?Rw||(Rw=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):re}),I.jsx(iW,{"aria-invalid":h,value:Array.isArray(U)?U.join(","):U,name:x,ref:z,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:f,className:Ce.nativeInput,autoFocus:a,required:k,...X,ownerState:ue}),I.jsx(oW,{as:g,className:Ce.icon,ownerState:ue}),I.jsx(pC,{id:`menu-${x||""}`,anchorEl:Z,open:te,onClose:xe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:Ze,...Me},paper:{...ye,style:{minWidth:$e,...ye!=null?ye.style:null}}},children:_e})]})});process.env.NODE_ENV!=="production"&&(OC.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:Rt,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 lW=e=>{const{classes:t}=e,r=Ee({root:["root"]},xC,t);return{...t,...r}},my={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Mn(e)&&e!=="variant"},cW=ne(Pc,my)(""),uW=ne(kc,my)(""),dW=ne(Sc,my)(""),Dc=R.forwardRef(function(t,n){const r=Fe({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=KE,id:f,input:p,inputProps:h,label:g,labelId:m,MenuProps:y,multiple:b=!1,native:v=!1,onClose:x,onOpen:w,open:O,renderValue:E,SelectDisplayProps:C,variant:S="outlined",...P}=r,T=v?gC:OC,_=Pr(),k=pi({props:r,muiFormControl:_,states:["variant","error"]}),$=k.variant||S,M={...r,variant:$,classes:s},j=lW(M),{root:W,...H}=j,X=p||{standard:I.jsx(cW,{ownerState:M}),outlined:I.jsx(uW,{label:g,ownerState:M}),filled:I.jsx(dW,{ownerState:M})}[$],U=xt(n,xs(X));return I.jsx(R.Fragment,{children:R.cloneElement(X,{inputComponent:T,inputProps:{children:a,error:k.error,IconComponent:d,variant:$,type:void 0,multiple:b,...v?{id:f}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:m,MenuProps:y,onClose:x,onOpen:w,open:O,renderValue:E,SelectDisplayProps:{id:f,...C}},...h,classes:h?Rn(H,h.classes):H,...p?p.props.inputProps:{}},...(b&&v||u)&&$==="outlined"?{notched:!0}:{},ref:U,className:we(X.props.className,l,j.root),...!p&&{variant:$},...P})})});process.env.NODE_ENV!=="production"&&(Dc.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"])});Dc.muiName="Select";function fW(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const pW=2;function ba(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function TC(e,t){return e-t}function Iw(e,t){const{index:n}=e.reduce((r,i,a)=>{const s=Math.abs(t-i);return r===null||s<r.distance||s===r.distance?{distance:s,index:a}:r},null)??{};return n}function wu(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Td(e,t,n){return(e-t)*100/(n-t)}function hW(e,t,n){return(n-t)*e+t}function mW(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function gW(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(mW(t)))}function Nw({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(TC)}function xu({sliderRef:e,activeIndex:t,setActive:n}){var i,a,s;const r=On(e.current);(!((i=e.current)!=null&&i.contains(r.activeElement))||Number((a=r==null?void 0:r.activeElement)==null?void 0:a.getAttribute("data-index"))!==t)&&((s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Ou(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?fW(e,t):!1}const yW={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},bW=e=>e;let Tu;function Aw(){return Tu===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Tu=CSS.supports("touch-action","none"):Tu=!0),Tu}function vW(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:h,scale:g=bW,step:m=1,shiftStep:y=10,tabIndex:b,value:v}=e,x=R.useRef(void 0),[w,O]=R.useState(-1),[E,C]=R.useState(-1),[S,P]=R.useState(!1),T=R.useRef(0),_=R.useRef(null),[k,$]=Yn({controlled:v,default:n??c,name:"Slider"}),M=d&&((fe,ge,_e)=>{const $e=fe.nativeEvent||fe,ae=new $e.constructor($e.type,$e);Object.defineProperty(ae,"target",{writable:!0,value:{value:ge,name:u}}),_.current=ge,d(ae,ge,_e)}),j=Array.isArray(k);let W=j?k.slice().sort(TC):[k];W=W.map(fe=>fe==null?c:Sa(fe,c,l));const H=s===!0&&m!==null?[...Array(Math.floor((l-c)/m)+1)].map((fe,ge)=>({value:c+m*ge})):s||[],X=H.map(fe=>fe.value),[U,L]=R.useState(-1),D=R.useRef(null),B=xt(h,D),z=fe=>ge=>{var $e;const _e=Number(ge.currentTarget.getAttribute("data-index"));Za(ge.target)&&L(_e),C(_e),($e=fe==null?void 0:fe.onFocus)==null||$e.call(fe,ge)},F=fe=>ge=>{var _e;Za(ge.target)||L(-1),C(-1),(_e=fe==null?void 0:fe.onBlur)==null||_e.call(fe,ge)},A=(fe,ge)=>{const _e=Number(fe.currentTarget.getAttribute("data-index")),$e=W[_e],ae=X.indexOf($e);let ce=ge;if(H&&m==null){const ue=X[X.length-1];ce>=ue?ce=ue:ce<=X[0]?ce=X[0]:ce=ce<$e?X[ae-1]:X[ae+1]}if(ce=Sa(ce,c,l),j){i&&(ce=Sa(ce,W[_e-1]||-1/0,W[_e+1]||1/0));const ue=ce;ce=Nw({values:W,newValue:ce,index:_e});let Ce=_e;i||(Ce=ce.indexOf(ue)),xu({sliderRef:D,activeIndex:Ce})}$(ce),L(_e),M&&!Ou(ce,k)&&M(fe,ce,_e),f&&f(fe,_.current??ce)},N=fe=>ge=>{var _e;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ge.key)){ge.preventDefault();const $e=Number(ge.currentTarget.getAttribute("data-index")),ae=W[$e];let ce=null;if(m!=null){const ue=ge.shiftKey?y:m;switch(ge.key){case"ArrowUp":ce=ba(ae,ue,1,c,l);break;case"ArrowRight":ce=ba(ae,ue,a?-1:1,c,l);break;case"ArrowDown":ce=ba(ae,ue,-1,c,l);break;case"ArrowLeft":ce=ba(ae,ue,a?1:-1,c,l);break;case"PageUp":ce=ba(ae,y,1,c,l);break;case"PageDown":ce=ba(ae,y,-1,c,l);break;case"Home":ce=c;break;case"End":ce=l;break}}else if(H){const ue=X[X.length-1],Ce=X.indexOf(ae),ye=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Me=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ye.includes(ge.key)?Ce===0?ce=X[0]:ce=X[Ce-1]:Me.includes(ge.key)&&(Ce===X.length-1?ce=ue:ce=X[Ce+1])}ce!=null&&A(ge,ce)}(_e=fe==null?void 0:fe.onKeyDown)==null||_e.call(fe,ge)};Kt(()=>{var fe;r&&D.current.contains(document.activeElement)&&((fe=document.activeElement)==null||fe.blur())},[r]),r&&w!==-1&&O(-1),r&&U!==-1&&L(-1);const q=fe=>ge=>{var _e;(_e=fe.onChange)==null||_e.call(fe,ge),A(ge,ge.target.valueAsNumber)},Y=R.useRef(void 0);let G=p;a&&p==="horizontal"&&(G+="-reverse");const K=({finger:fe,move:ge=!1})=>{const{current:_e}=D,{width:$e,height:ae,bottom:ce,left:ue}=_e.getBoundingClientRect();let Ce;G.startsWith("vertical")?Ce=(ce-fe.y)/ae:Ce=(fe.x-ue)/$e,G.includes("-reverse")&&(Ce=1-Ce);let ye;if(ye=hW(Ce,c,l),m)ye=gW(ye,m,c);else{const Ze=Iw(X,ye);ye=X[Ze]}ye=Sa(ye,c,l);let Me=0;if(j){ge?Me=Y.current:Me=Iw(W,ye),i&&(ye=Sa(ye,W[Me-1]||-1/0,W[Me+1]||1/0));const Ze=ye;ye=Nw({values:W,newValue:ye,index:Me}),i&&ge||(Me=ye.indexOf(Ze),Y.current=Me)}return{newValue:ye,activeIndex:Me}},J=Ie(fe=>{const ge=wu(fe,x);if(!ge)return;if(T.current+=1,fe.type==="mousemove"&&fe.buttons===0){Z(fe);return}const{newValue:_e,activeIndex:$e}=K({finger:ge,move:!0});xu({sliderRef:D,activeIndex:$e,setActive:O}),$(_e),!S&&T.current>pW&&P(!0),M&&!Ou(_e,k)&&M(fe,_e,$e)}),Z=Ie(fe=>{const ge=wu(fe,x);if(P(!1),!ge)return;const{newValue:_e}=K({finger:ge,move:!0});O(-1),fe.type==="touchend"&&C(-1),f&&f(fe,_.current??_e),x.current=void 0,de()}),ie=Ie(fe=>{if(r)return;Aw()||fe.preventDefault();const ge=fe.changedTouches[0];ge!=null&&(x.current=ge.identifier);const _e=wu(fe,x);if(_e!==!1){const{newValue:ae,activeIndex:ce}=K({finger:_e});xu({sliderRef:D,activeIndex:ce,setActive:O}),$(ae),M&&!Ou(ae,k)&&M(fe,ae,ce)}T.current=0;const $e=On(D.current);$e.addEventListener("touchmove",J,{passive:!0}),$e.addEventListener("touchend",Z,{passive:!0})}),de=R.useCallback(()=>{const fe=On(D.current);fe.removeEventListener("mousemove",J),fe.removeEventListener("mouseup",Z),fe.removeEventListener("touchmove",J),fe.removeEventListener("touchend",Z)},[Z,J]);R.useEffect(()=>{const{current:fe}=D;return fe.addEventListener("touchstart",ie,{passive:Aw()}),()=>{fe.removeEventListener("touchstart",ie),de()}},[de,ie]),R.useEffect(()=>{r&&de()},[r,de]);const xe=fe=>ge=>{var ae;if((ae=fe.onMouseDown)==null||ae.call(fe,ge),r||ge.defaultPrevented||ge.button!==0)return;ge.preventDefault();const _e=wu(ge,x);if(_e!==!1){const{newValue:ce,activeIndex:ue}=K({finger:_e});xu({sliderRef:D,activeIndex:ue,setActive:O}),$(ce),M&&!Ou(ce,k)&&M(ge,ce,ue)}T.current=0;const $e=On(D.current);$e.addEventListener("mousemove",J,{passive:!0}),$e.addEventListener("mouseup",Z)},he=Td(j?W[0]:c,c,l),pe=Td(W[W.length-1],c,l)-he,Q=(fe={})=>{const ge=El(fe),_e={onMouseDown:xe(ge||{})},$e={...ge,..._e};return{...fe,ref:B,...$e}},oe=fe=>ge=>{var $e;($e=fe.onMouseOver)==null||$e.call(fe,ge);const _e=Number(ge.currentTarget.getAttribute("data-index"));C(_e)},te=fe=>ge=>{var _e;(_e=fe.onMouseLeave)==null||_e.call(fe,ge),C(-1)},le=(fe={})=>{const ge=El(fe),_e={onMouseOver:oe(ge||{}),onMouseLeave:te(ge||{})};return{...fe,...ge,..._e}},re=fe=>({pointerEvents:w!==-1&&w!==fe?"none":void 0});let Te;return p==="vertical"&&(Te=a?"vertical-rl":"vertical-lr"),{active:w,axis:G,axisProps:yW,dragging:S,focusedThumbIndex:U,getHiddenInputProps:(fe={})=>{const ge=El(fe),_e={onChange:q(ge||{}),onFocus:z(ge||{}),onBlur:F(ge||{}),onKeyDown:N(ge||{})},$e={...ge,..._e};return{tabIndex:b,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":g(l),"aria-valuemin":g(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...fe,...$e,style:{...wC,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Te}}},getRootProps:Q,getThumbProps:le,marks:H,open:E,range:j,rootRef:B,trackLeap:pe,trackOffset:he,values:W,getThumbStyle:re}}const wW=e=>!e||!Mo(e);function xW(e){return Pe("MuiSlider",e)}const Fr=ke("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),OW=e=>{const{open:t}=e;return{offset:we(t&&Fr.valueLabelOpen),circle:Fr.valueLabelCircle,label:Fr.valueLabelLabel}};function SC(e){const{children:t,className:n,value:r}=e,i=OW(e);return t?R.cloneElement(t,{className:t.props.className},I.jsxs(R.Fragment,{children:[t.props.children,I.jsx("span",{className:we(i.offset,n),"aria-hidden":!0,children:I.jsx("span",{className:i.circle,children:I.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(SC.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function jw(e){return e}const TW=ne("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ve(n.color)}`],n.size!=="medium"&&t[`size${ve(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Le(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Fr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Fr.dragging}`]:{[`& .${Fr.thumb}, & .${Fr.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),SW=ne("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),EW=ne("span",{name:"MuiSlider",slot:"Track"})(Le(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:Wi(e.palette[t].main,.62),borderColor:Wi(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:zi(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:zi(e.palette[t].main,.5)})}}}))]}))),CW=ne("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ve(n.color)}`],n.size!=="medium"&&t[`thumbSize${ve(n.size)}`]]}})(Le(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Fr.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Fr.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Je(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Fr.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Je(e.palette[t].main,.16)}`}}}}))]}))),EC=ne(SC,{name:"MuiSlider",slot:"ValueLabel"})(Le(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Fr.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Fr.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(EC.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const PW=ne("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>wf(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Le(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),_W=ne("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>wf(e)&&e!=="markLabelActive"})(Le(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),kW=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${ve(l)}`,c&&`size${ve(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${ve(c)}`,l&&`thumbColor${ve(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ee(u,xW,s)},DW=({children:e})=>e,CC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSlider"}),i=Gn(),{"aria-label":a,"aria-valuetext":s,"aria-labelledby":l,component:c="span",components:u={},componentsProps:d={},color:f="primary",classes:p,className:h,disableSwap:g=!1,disabled:m=!1,getAriaLabel:y,getAriaValueText:b,marks:v=!1,max:x=100,min:w=0,name:O,onChange:E,onChangeCommitted:C,orientation:S="horizontal",shiftStep:P=10,size:T="medium",step:_=1,scale:k=jw,slotProps:$,slots:M,tabIndex:j,track:W="normal",value:H,valueLabelDisplay:X="off",valueLabelFormat:U=jw,...L}=r,D={...r,isRtl:i,max:x,min:w,classes:p,disabled:m,disableSwap:g,orientation:S,marks:v,color:f,size:T,step:_,shiftStep:P,scale:k,track:W,valueLabelDisplay:X,valueLabelFormat:U},{axisProps:B,getRootProps:z,getHiddenInputProps:F,getThumbProps:A,open:N,active:q,axis:Y,focusedThumbIndex:G,range:K,dragging:J,marks:Z,values:ie,trackOffset:de,trackLeap:xe,getThumbStyle:he}=vW({...D,rootRef:n});D.marked=Z.length>0&&Z.some(nt=>nt.label),D.dragging=J,D.focusedThumbIndex=G;const pe=kW(D),Q=(M==null?void 0:M.root)??u.Root??TW,oe=(M==null?void 0:M.rail)??u.Rail??SW,te=(M==null?void 0:M.track)??u.Track??EW,le=(M==null?void 0:M.thumb)??u.Thumb??CW,re=(M==null?void 0:M.valueLabel)??u.ValueLabel??EC,Te=(M==null?void 0:M.mark)??u.Mark??PW,Se=(M==null?void 0:M.markLabel)??u.MarkLabel??_W,fe=(M==null?void 0:M.input)??u.Input??"input",ge=($==null?void 0:$.root)??d.root,_e=($==null?void 0:$.rail)??d.rail,$e=($==null?void 0:$.track)??d.track,ae=($==null?void 0:$.thumb)??d.thumb,ce=($==null?void 0:$.valueLabel)??d.valueLabel,ue=($==null?void 0:$.mark)??d.mark,Ce=($==null?void 0:$.markLabel)??d.markLabel,ye=($==null?void 0:$.input)??d.input,Me=st({elementType:Q,getSlotProps:z,externalSlotProps:ge,externalForwardedProps:L,additionalProps:{...wW(Q)&&{as:c}},ownerState:{...D,...ge==null?void 0:ge.ownerState},className:[pe.root,h]}),Ze=st({elementType:oe,externalSlotProps:_e,ownerState:D,className:pe.rail}),bt=st({elementType:te,externalSlotProps:$e,additionalProps:{style:{...B[Y].offset(de),...B[Y].leap(xe)}},ownerState:{...D,...$e==null?void 0:$e.ownerState},className:pe.track}),Ke=st({elementType:le,getSlotProps:A,externalSlotProps:ae,ownerState:{...D,...ae==null?void 0:ae.ownerState},className:pe.thumb}),Ne=st({elementType:re,externalSlotProps:ce,ownerState:{...D,...ce==null?void 0:ce.ownerState},className:pe.valueLabel}),We=st({elementType:Te,externalSlotProps:ue,ownerState:D,className:pe.mark}),rt=st({elementType:Se,externalSlotProps:Ce,ownerState:D,className:pe.markLabel}),Tt=st({elementType:fe,getSlotProps:F,externalSlotProps:ye,ownerState:D});return I.jsxs(Q,{...Me,children:[I.jsx(oe,{...Ze}),I.jsx(te,{...bt}),Z.filter(nt=>nt.value>=w&&nt.value<=x).map((nt,Et)=>{const $n=Td(nt.value,w,x),cn=B[Y].offset($n);let yn;return W===!1?yn=ie.includes(nt.value):yn=W==="normal"&&(K?nt.value>=ie[0]&&nt.value<=ie[ie.length-1]:nt.value<=ie[0])||W==="inverted"&&(K?nt.value<=ie[0]||nt.value>=ie[ie.length-1]:nt.value>=ie[0]),I.jsxs(R.Fragment,{children:[I.jsx(Te,{"data-index":Et,...We,...!Mo(Te)&&{markActive:yn},style:{...cn,...We.style},className:we(We.className,yn&&pe.markActive)}),nt.label!=null?I.jsx(Se,{"aria-hidden":!0,"data-index":Et,...rt,...!Mo(Se)&&{markLabelActive:yn},style:{...cn,...rt.style},className:we(pe.markLabel,rt.className,yn&&pe.markLabelActive),children:nt.label}):null]},Et)}),ie.map((nt,Et)=>{const $n=Td(nt,w,x),cn=B[Y].offset($n),yn=X==="off"?DW:re;return I.jsx(yn,{...!Mo(yn)&&{valueLabelFormat:U,valueLabelDisplay:X,value:typeof U=="function"?U(k(nt),Et):U,index:Et,open:N===Et||q===Et||X==="on",disabled:m},...Ne,children:I.jsx(le,{"data-index":Et,...Ke,className:we(pe.thumb,Ke.className,q===Et&&pe.active,G===Et&&pe.focusVisible),style:{...cn,...he(Et),...Ke.style},children:I.jsx(fe,{"data-index":Et,"aria-label":y?y(Et):a,"aria-valuenow":k(nt),"aria-labelledby":l,"aria-valuetext":b?b(k(nt),Et):s,value:ie[Et],...Tt})})},Et)})]})});process.env.NODE_ENV!=="production"&&(CC.propTypes={"aria-label":Zn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":Zn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function $W(e){return Pe("MuiTooltip",e)}const hn=ke("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function RW(e){return Math.round(e*1e5)/1e5}const MW=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ve(a.split("-")[0])}`],arrow:["arrow"]};return Ee(s,$W,t)},IW=ne(Os,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Le(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${hn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${hn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${hn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${hn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${hn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${hn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${hn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${hn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),NW=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ve(n.placement.split("-")[0])}`]]}})(Le(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Je(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${hn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${hn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${hn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${RW(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${hn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${hn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${hn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${hn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${hn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${hn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${hn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),AW=ne("span",{name:"MuiTooltip",slot:"Arrow"})(Le(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Je(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Su=!1;const Lw=new $f;let el={x:0,y:0};function Eu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ar=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:s,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:y=700,followCursor:b=!1,id:v,leaveDelay:x=0,leaveTouchDelay:w=1500,onClose:O,onOpen:E,open:C,placement:S="bottom",PopperComponent:P,PopperProps:T={},slotProps:_={},slots:k={},title:$,TransitionComponent:M,TransitionProps:j,...W}=r,H=R.isValidElement(a)?a:I.jsx("span",{children:a}),X=ao(),U=Gn(),[L,D]=R.useState(),[B,z]=R.useState(null),F=R.useRef(!1),A=p||b,N=br(),q=br(),Y=br(),G=br(),[K,J]=Yn({controlled:C,default:!1,name:"Tooltip",state:"open"});let Z=K;if(process.env.NODE_ENV!=="production"){const{current:Ve}=R.useRef(C!==void 0);R.useEffect(()=>{L&&L.disabled&&!Ve&&$!==""&&L.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
`))},[$,L,Ve])}const ie=dr(v),de=R.useRef(),xe=Ie(()=>{de.current!==void 0&&(document.body.style.WebkitUserSelect=de.current,de.current=void 0),G.clear()});R.useEffect(()=>xe,[xe]);const he=Ve=>{Lw.clear(),Su=!0,J(!0),E&&!Z&&E(Ve)},pe=Ie(Ve=>{Lw.start(800+x,()=>{Su=!1}),J(!1),O&&Z&&O(Ve),N.start(X.transitions.duration.shortest,()=>{F.current=!1})}),Q=Ve=>{F.current&&Ve.type!=="touchstart"||(L&&L.removeAttribute("title"),q.clear(),Y.clear(),g||Su&&m?q.start(Su?m:g,()=>{he(Ve)}):he(Ve))},oe=Ve=>{q.clear(),Y.start(x,()=>{pe(Ve)})},[,te]=R.useState(!1),le=Ve=>{Za(Ve.target)||(te(!1),oe(Ve))},re=Ve=>{L||D(Ve.currentTarget),Za(Ve.target)&&(te(!0),Q(Ve))},Te=Ve=>{F.current=!0;const Ct=H.props;Ct.onTouchStart&&Ct.onTouchStart(Ve)},Se=Ve=>{Te(Ve),Y.clear(),N.clear(),xe(),de.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(y,()=>{document.body.style.WebkitUserSelect=de.current,Q(Ve)})},fe=Ve=>{H.props.onTouchEnd&&H.props.onTouchEnd(Ve),xe(),Y.start(w,()=>{pe(Ve)})};R.useEffect(()=>{if(!Z)return;function Ve(Ct){Ct.key==="Escape"&&pe(Ct)}return document.addEventListener("keydown",Ve),()=>{document.removeEventListener("keydown",Ve)}},[pe,Z]);const ge=xt(xs(H),D,n);!$&&$!==0&&(Z=!1);const _e=R.useRef(),$e=Ve=>{const Ct=H.props;Ct.onMouseMove&&Ct.onMouseMove(Ve),el={x:Ve.clientX,y:Ve.clientY},_e.current&&_e.current.update()},ae={},ce=typeof $=="string";u?(ae.title=!Z&&ce&&!f?$:null,ae["aria-describedby"]=Z?ie:null):(ae["aria-label"]=ce?$:null,ae["aria-labelledby"]=Z&&!ce?ie:null);const ue={...ae,...W,...H.props,className:we(W.className,H.props.className),onTouchStart:Te,ref:ge,...b?{onMouseMove:$e}:{}};process.env.NODE_ENV!=="production"&&(ue["data-mui-internal-clone-element"]=!0,R.useEffect(()=>{L&&!L.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
`))},[L]));const Ce={};h||(ue.onTouchStart=Se,ue.onTouchEnd=fe),f||(ue.onMouseOver=Eu(Q,ue.onMouseOver),ue.onMouseLeave=Eu(oe,ue.onMouseLeave),A||(Ce.onMouseOver=Q,Ce.onMouseLeave=oe)),d||(ue.onFocus=Eu(re,ue.onFocus),ue.onBlur=Eu(le,ue.onBlur),A||(Ce.onFocus=re,Ce.onBlur=le)),process.env.NODE_ENV!=="production"&&H.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${H.props.title}\` or the Tooltip component.`].join(`
`));const ye={...r,isRtl:U,arrow:i,disableInteractive:A,placement:S,PopperComponentProp:P,touch:F.current},Me=typeof _.popper=="function"?_.popper(ye):_.popper,Ze=R.useMemo(()=>{var Ct,je;let Ve=[{name:"arrow",enabled:!!B,options:{element:B,padding:4}}];return(Ct=T.popperOptions)!=null&&Ct.modifiers&&(Ve=Ve.concat(T.popperOptions.modifiers)),(je=Me==null?void 0:Me.popperOptions)!=null&&je.modifiers&&(Ve=Ve.concat(Me.popperOptions.modifiers)),{...T.popperOptions,...Me==null?void 0:Me.popperOptions,modifiers:Ve}},[B,T.popperOptions,Me==null?void 0:Me.popperOptions]),bt=MW(ye),Ke=typeof _.transition=="function"?_.transition(ye):_.transition,Ne={slots:{popper:l.Popper,transition:l.Transition??M,tooltip:l.Tooltip,arrow:l.Arrow,...k},slotProps:{arrow:_.arrow??c.arrow,popper:{...T,...Me??c.popper},tooltip:_.tooltip??c.tooltip,transition:{...j,...Ke??c.transition}}},[We,rt]=Ue("popper",{elementType:IW,externalForwardedProps:Ne,ownerState:ye,className:we(bt.popper,T==null?void 0:T.className)}),[Tt,nt]=Ue("transition",{elementType:rs,externalForwardedProps:Ne,ownerState:ye}),[Et,$n]=Ue("tooltip",{elementType:NW,className:bt.tooltip,externalForwardedProps:Ne,ownerState:ye}),[cn,yn]=Ue("arrow",{elementType:AW,className:bt.arrow,externalForwardedProps:Ne,ownerState:ye,ref:z});return I.jsxs(R.Fragment,{children:[R.cloneElement(H,ue),I.jsx(We,{as:P??Os,placement:S,anchorEl:b?{getBoundingClientRect:()=>({top:el.y,left:el.x,right:el.x,bottom:el.y,width:0,height:0})}:L,popperRef:_e,open:L?Z:!1,id:ie,transition:!0,...Ce,...rt,popperOptions:Ze,children:({TransitionProps:Ve})=>I.jsx(Tt,{timeout:X.transitions.duration.shorter,...Ve,...nt,children:I.jsxs(Et,{...$n,children:[$,i?I.jsx(cn,{...yn}):null]})})})]})});process.env.NODE_ENV!=="production"&&(ar.propTypes={arrow:o.bool,children:Ts.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});const gy=sA({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Fe({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(gy.propTypes={children:o.node,component:o.elementType,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),useFlexGap:o.bool});const Ss=R.createContext({});process.env.NODE_ENV!=="production"&&(Ss.displayName="StepperContext");const $c=R.createContext({});process.env.NODE_ENV!=="production"&&($c.displayName="StepContext");function jW(e){return Pe("MuiStep",e)}ke("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const LW=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:i}=e;return Ee({root:["root",n,r&&"alternativeLabel",i&&"completed"]},jW,t)},FW=ne("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),PC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiStep"}),{active:i,children:a,className:s,component:l="div",completed:c,disabled:u,expanded:d=!1,index:f,last:p,...h}=r,{activeStep:g,connector:m,alternativeLabel:y,orientation:b,nonLinear:v}=R.useContext(Ss);let[x=!1,w=!1,O=!1]=[i,c,u];g===f?x=i!==void 0?i:!0:!v&&g>f?w=c!==void 0?c:!0:!v&&g<f&&(O=u!==void 0?u:!0);const E=R.useMemo(()=>({index:f,last:p,expanded:d,icon:f+1,active:x,completed:w,disabled:O}),[f,p,d,x,w,O]),C={...r,active:x,orientation:b,alternativeLabel:y,completed:w,disabled:O,expanded:d,component:l},S=LW(C),P=I.jsxs(FW,{as:l,className:we(S.root,s),ref:n,ownerState:C,...h,children:[m&&y&&f!==0?m:null,a]});return I.jsx($c.Provider,{value:E,children:m&&!y&&f!==0?I.jsxs(R.Fragment,{children:[m,P]}):P})});process.env.NODE_ENV!=="production"&&(PC.propTypes={active:o.bool,children:o.node,classes:o.object,className:o.string,completed:o.bool,component:o.elementType,disabled:o.bool,expanded:o.bool,index:wc,last:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const VW=ct(I.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),BW=ct(I.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function zW(e){return Pe("MuiStepIcon",e)}const Sh=ke("MuiStepIcon",["root","active","completed","error","text"]);var Fw;const WW=e=>{const{classes:t,active:n,completed:r,error:i}=e;return Ee({root:["root",n&&"active",r&&"completed",i&&"error"],text:["text"]},zW,t)},Eh=ne(Hl,{name:"MuiStepIcon",slot:"Root"})(Le(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Sh.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Sh.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Sh.error}`]:{color:(e.vars||e).palette.error.main}}))),qW=ne("text",{name:"MuiStepIcon",slot:"Text"})(Le(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),_C=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiStepIcon"}),{active:i=!1,className:a,completed:s=!1,error:l=!1,icon:c,...u}=r,d={...r,active:i,completed:s,error:l},f=WW(d);if(typeof c=="number"||typeof c=="string"){const p=we(a,f.root);return l?I.jsx(Eh,{as:BW,className:p,ref:n,ownerState:d,...u}):s?I.jsx(Eh,{as:VW,className:p,ref:n,ownerState:d,...u}):I.jsxs(Eh,{className:p,ref:n,ownerState:d,...u,children:[Fw||(Fw=I.jsx("circle",{cx:"12",cy:"12",r:"12"})),I.jsx(qW,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:c})]})}return c});process.env.NODE_ENV!=="production"&&(_C.propTypes={active:o.bool,classes:o.object,className:o.string,completed:o.bool,error:o.bool,icon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function UW(e){return Pe("MuiStepLabel",e)}const ni=ke("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),HW=e=>{const{classes:t,orientation:n,active:r,completed:i,error:a,disabled:s,alternativeLabel:l}=e;return Ee({root:["root",n,a&&"error",s&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",i&&"completed",a&&"error",s&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",i&&"completed",a&&"error",s&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]},UW,t)},YW=ne("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${ni.alternativeLabel}`]:{flexDirection:"column"},[`&.${ni.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),GW=ne("span",{name:"MuiStepLabel",slot:"Label"})(Le(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${ni.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${ni.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${ni.alternativeLabel}`]:{marginTop:16},[`&.${ni.error}`]:{color:(e.vars||e).palette.error.main}}))),KW=ne("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${ni.alternativeLabel}`]:{paddingRight:0}}),XW=ne("span",{name:"MuiStepLabel",slot:"LabelContainer"})(Le(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${ni.alternativeLabel}`]:{textAlign:"center"}}))),yy=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiStepLabel"}),{children:i,className:a,componentsProps:s={},error:l=!1,icon:c,optional:u,slots:d={},slotProps:f={},StepIconComponent:p,StepIconProps:h,...g}=r,{alternativeLabel:m,orientation:y}=R.useContext(Ss),{active:b,disabled:v,completed:x,icon:w}=R.useContext($c),O=c||w;let E=p;O&&!E&&(E=_C);const C={...r,active:b,alternativeLabel:m,completed:x,disabled:v,error:l,orientation:y},S=HW(C),P={slots:d,slotProps:{stepIcon:h,...s,...f}},[T,_]=Ue("root",{elementType:YW,externalForwardedProps:{...P,...g},ownerState:C,ref:n,className:we(S.root,a)}),[k,$]=Ue("label",{elementType:GW,externalForwardedProps:P,ownerState:C}),[M,j]=Ue("stepIcon",{elementType:E,externalForwardedProps:P,ownerState:C});return I.jsxs(T,{..._,children:[O||M?I.jsx(KW,{className:S.iconContainer,ownerState:C,children:I.jsx(M,{completed:x,active:b,error:l,icon:O,...j})}):null,I.jsxs(XW,{className:S.labelContainer,ownerState:C,children:[i?I.jsx(k,{...$,className:we(S.label,$==null?void 0:$.className),children:i}):null,u]})]})});process.env.NODE_ENV!=="production"&&(yy.propTypes={children:o.node,classes:o.object,className:o.string,componentsProps:o.shape({label:o.object}),error:o.bool,icon:o.node,optional:o.node,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),stepIcon:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType,stepIcon:o.elementType}),StepIconComponent:o.elementType,StepIconProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});yy.muiName="StepLabel";function ZW(e){return Pe("MuiStepButton",e)}const Vw=ke("MuiStepButton",["root","horizontal","vertical","touchRipple"]),QW=e=>{const{classes:t,orientation:n}=e;return Ee({root:["root",n],touchRipple:["touchRipple"]},ZW,t)},JW=ne(Tr,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vw.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box",[`& .${Vw.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"},variants:[{props:{orientation:"vertical"},style:{justifyContent:"flex-start",padding:"8px",margin:"-8px"}}]}),kC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiStepButton"}),{children:i,className:a,icon:s,optional:l,...c}=r,{disabled:u,active:d}=R.useContext($c),{orientation:f}=R.useContext(Ss),p={...r,orientation:f},h=QW(p),g={icon:s,optional:l},m=Ni(i,["StepLabel"])?R.cloneElement(i,g):I.jsx(yy,{...g,children:i});return I.jsx(JW,{focusRipple:!0,disabled:u,TouchRippleProps:{className:h.touchRipple},className:we(h.root,a),ref:n,ownerState:p,"aria-current":d?"step":void 0,...c,children:m})});process.env.NODE_ENV!=="production"&&(kC.propTypes={children:o.node,classes:o.object,className:o.string,icon:o.node,optional:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function eq(e){return Pe("MuiStepConnector",e)}ke("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const tq=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:i,completed:a,disabled:s}=e,l={root:["root",n,r&&"alternativeLabel",i&&"active",a&&"completed",s&&"disabled"],line:["line",`line${ve(n)}`]};return Ee(l,eq,t)},nq=ne("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),rq=ne("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${ve(n.orientation)}`]]}})(Le(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),DC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiStepConnector"}),{className:i,...a}=r,{alternativeLabel:s,orientation:l="horizontal"}=R.useContext(Ss),{active:c,disabled:u,completed:d}=R.useContext($c),f={...r,alternativeLabel:s,orientation:l,active:c,completed:d,disabled:u},p=tq(f);return I.jsx(nq,{className:we(p.root,i),ref:n,ownerState:f,...a,children:I.jsx(rq,{className:p.line,ownerState:f})})});process.env.NODE_ENV!=="production"&&(DC.propTypes={classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function oq(e){return Pe("MuiStepper",e)}ke("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const iq=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:i}=e;return Ee({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},oq,i)},aq=ne("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),sq=I.jsx(DC,{}),$C=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiStepper"}),{activeStep:i=0,alternativeLabel:a=!1,children:s,className:l,component:c="div",connector:u=sq,nonLinear:d=!1,orientation:f="horizontal",...p}=r,h={...r,nonLinear:d,alternativeLabel:a,orientation:f,component:c},g=iq(h),m=R.Children.toArray(s).filter(Boolean),y=m.map((v,x)=>R.cloneElement(v,{index:x,last:x+1===m.length,...v.props})),b=R.useMemo(()=>({activeStep:i,alternativeLabel:a,connector:u,nonLinear:d,orientation:f}),[i,a,u,d,f]);return I.jsx(Ss.Provider,{value:b,children:I.jsx(aq,{as:c,ownerState:h,className:we(g.root,l),ref:n,...p,children:y})})});process.env.NODE_ENV!=="production"&&($C.propTypes={activeStep:wc,alternativeLabel:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,connector:o.element,nonLinear:o.bool,orientation:o.oneOf(["horizontal","vertical"]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function lq(e){return Pe("MuiSwitch",e)}const Kn=ke("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),cq=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,l={root:["root",n&&`edge${ve(n)}`,`size${ve(r)}`],switchBase:["switchBase",`color${ve(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ee(l,lq,t);return{...t,...c}},uq=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ve(n.edge)}`],t[`size${ve(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Kn.thumb}`]:{width:16,height:16},[`& .${Kn.switchBase}`]:{padding:4,[`&.${Kn.checked}`]:{transform:"translateX(16px)"}}}}]}),dq=ne(Ff,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Kn.input}`]:t.input},n.color!=="default"&&t[`color${ve(n.color)}`]]}})(Le(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Kn.checked}`]:{transform:"translateX(20px)"},[`&.${Kn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Kn.checked} + .${Kn.track}`]:{opacity:.5},[`&.${Kn.disabled} + .${Kn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Kn.input}`]:{left:"-100%",width:"300%"}})),Le(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(dn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Kn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Wi(e.palette[t].main,.62):zi(e.palette[t].main,.55)}`}},[`&.${Kn.checked} + .${Kn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),fq=ne("span",{name:"MuiSwitch",slot:"Track"})(Le(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),pq=ne("span",{name:"MuiSwitch",slot:"Thumb"})(Le(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),RC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:l="medium",sx:c,slots:u={},slotProps:d={},...f}=r,p={...r,color:a,edge:s,size:l},h=cq(p),g={slots:u,slotProps:d},[m,y]=Ue("root",{className:we(h.root,i),elementType:uq,externalForwardedProps:g,ownerState:p,additionalProps:{sx:c}}),[b,v]=Ue("thumb",{className:h.thumb,elementType:pq,externalForwardedProps:g,ownerState:p}),x=I.jsx(b,{...v}),[w,O]=Ue("track",{className:h.track,elementType:fq,externalForwardedProps:g,ownerState:p});return I.jsxs(m,{...y,children:[I.jsx(dq,{type:"checkbox",icon:x,checkedIcon:x,ref:n,ownerState:p,...f,classes:{...h,root:h.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(p):d.switchBase},...d.input&&{input:typeof d.input=="function"?d.input(p):d.input}}}),I.jsx(w,{...O})]})});process.env.NODE_ENV!=="production"&&(RC.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Rt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function hq(e){return Pe("MuiTab",e)}const Rr=ke("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),mq=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:s,selected:l,disabled:c}=e,u={root:["root",a&&s&&"labelIcon",`textColor${ve(n)}`,r&&"fullWidth",i&&"wrapped",l&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return Ee(u,hq,t)},gq=ne(Tr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ve(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Rr.iconWrapper}`]:t.iconWrapper},{[`& .${Rr.icon}`]:t.icon}]}})(Le(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Rr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Rr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Rr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Rr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Rr.selected}`]:{opacity:1},[`&.${Rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Rr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Rr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Rr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Rr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),is=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:l,icon:c,iconPosition:u="top",indicator:d,label:f,onChange:p,onClick:h,onFocus:g,selected:m,selectionFollowsFocus:y,textColor:b="inherit",value:v,wrapped:x=!1,...w}=r,O={...r,disabled:a,disableFocusRipple:s,selected:m,icon:!!c,iconPosition:u,label:!!f,fullWidth:l,textColor:b,wrapped:x},E=mq(O),C=c&&f&&R.isValidElement(c)?R.cloneElement(c,{className:we(E.icon,c.props.className)}):c,S=T=>{!m&&p&&p(T,v),h&&h(T)},P=T=>{y&&!m&&p&&p(T,v),g&&g(T)};return I.jsxs(gq,{focusRipple:!s,className:we(E.root,i),ref:n,role:"tab","aria-selected":m,disabled:a,onClick:S,onFocus:P,ownerState:O,tabIndex:m?0:-1,...w,children:[u==="top"||u==="start"?I.jsxs(R.Fragment,{children:[C,f]}):I.jsxs(R.Fragment,{children:[f,C]}),d]})});process.env.NODE_ENV!=="production"&&(is.propTypes={children:TE,classes:o.object,className:o.string,disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,icon:o.oneOfType([o.element,o.string]),iconPosition:o.oneOf(["bottom","end","start","top"]),label:o.node,onChange:o.func,onClick:o.func,onFocus:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any,wrapped:o.bool});const by=R.createContext();process.env.NODE_ENV!=="production"&&(by.displayName="TableContext");function yq(e){return Pe("MuiTable",e)}ke("MuiTable",["root","stickyHeader"]);const bq=e=>{const{classes:t,stickyHeader:n}=e;return Ee({root:["root",n&&"stickyHeader"]},yq,t)},vq=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Le(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Bw="table",MC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTable"}),{className:i,component:a=Bw,padding:s="normal",size:l="medium",stickyHeader:c=!1,...u}=r,d={...r,component:a,padding:s,size:l,stickyHeader:c},f=bq(d),p=R.useMemo(()=>({padding:s,size:l,stickyHeader:c}),[s,l,c]);return I.jsx(by.Provider,{value:p,children:I.jsx(vq,{as:a,role:a===Bw?null:"table",ref:n,className:we(f.root,i),ownerState:d,...u})})});process.env.NODE_ENV!=="production"&&(MC.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),stickyHeader:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Rc=R.createContext();process.env.NODE_ENV!=="production"&&(Rc.displayName="Tablelvl2Context");function wq(e){return Pe("MuiTableBody",e)}ke("MuiTableBody",["root"]);const xq=e=>{const{classes:t}=e;return Ee({root:["root"]},wq,t)},Oq=ne("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Tq={variant:"body"},zw="tbody",IC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableBody"}),{className:i,component:a=zw,...s}=r,l={...r,component:a},c=xq(l);return I.jsx(Rc.Provider,{value:Tq,children:I.jsx(Oq,{className:we(c.root,i),as:a,ref:n,role:a===zw?null:"rowgroup",ownerState:l,...s})})});process.env.NODE_ENV!=="production"&&(IC.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Sq(e){return Pe("MuiTableCell",e)}const Eq=ke("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Cq=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ve(r)}`,i!=="normal"&&`padding${ve(i)}`,`size${ve(a)}`]};return Ee(l,Sq,t)},Pq=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ve(n.size)}`],n.padding!=="normal"&&t[`padding${ve(n.padding)}`],n.align!=="inherit"&&t[`align${ve(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Le(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
${e.palette.mode==="light"?Wi(Je(e.palette.divider,1),.88):zi(Je(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Eq.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Hf=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:l,scope:c,size:u,sortDirection:d,variant:f,...p}=r,h=R.useContext(by),g=R.useContext(Rc),m=g&&g.variant==="head";let y;s?y=s:y=m?"th":"td";let b=c;y==="td"?b=void 0:!b&&m&&(b="col");const v=f||g&&g.variant,x={...r,align:i,component:y,padding:l||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:v==="head"&&h&&h.stickyHeader,variant:v},w=Cq(x);let O=null;return d&&(O=d==="asc"?"ascending":"descending"),I.jsx(Pq,{as:y,ref:n,className:we(w.root,a),"aria-sort":O,scope:b,ownerState:x,...p})});process.env.NODE_ENV!=="production"&&(Hf.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function _q(e){return Pe("MuiTableHead",e)}ke("MuiTableHead",["root"]);const kq=e=>{const{classes:t}=e;return Ee({root:["root"]},_q,t)},Dq=ne("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),$q={variant:"head"},Ww="thead",NC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableHead"}),{className:i,component:a=Ww,...s}=r,l={...r,component:a},c=kq(l);return I.jsx(Rc.Provider,{value:$q,children:I.jsx(Dq,{as:a,className:we(c.root,i),ref:n,role:a===Ww?null:"rowgroup",ownerState:l,...s})})});process.env.NODE_ENV!=="production"&&(NC.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Rq(e){return Pe("MuiToolbar",e)}ke("MuiToolbar",["root","gutters","regular","dense"]);const Mq=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ee({root:["root",!n&&"gutters",r]},Rq,t)},Iq=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Le(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),AC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:l="regular",...c}=r,u={...r,component:a,disableGutters:s,variant:l},d=Mq(u);return I.jsx(Iq,{as:a,className:we(d.root,i),ref:n,ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(AC.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dense","regular"]),o.string])});const Nq=ct(I.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Aq=ct(I.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function jq(e){return Pe("MuiTableRow",e)}const qw=ke("MuiTableRow",["root","selected","hover","head","footer"]),Lq=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Ee({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},jq,t)},Fq=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Le(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${qw.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${qw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Je(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Uw="tr",Mc=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTableRow"}),{className:i,component:a=Uw,hover:s=!1,selected:l=!1,...c}=r,u=R.useContext(Rc),d={...r,component:a,hover:s,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},f=Lq(d);return I.jsx(Fq,{as:a,ref:n,className:we(f.root,i),role:a===Uw?null:"row",ownerState:d,...c})});process.env.NODE_ENV!=="production"&&(Mc.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,hover:o.bool,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Vq(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Bq(e,t,n,r={},i=()=>{}){const{ease:a=Vq,duration:s=300}=r;let l=null;const c=t[e];let u=!1;const d=()=>{u=!0},f=p=>{if(u){i(new Error("Animation cancelled"));return}l===null&&(l=p);const h=Math.min(1,(p-l)/s);if(t[e]=a(h)*(n-c)+c,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return c===n?(i(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const zq={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function jC(e){const{onChange:t,...n}=e,r=R.useRef(),i=R.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Kt(()=>{const s=Df(()=>{const c=r.current;a(),c!==r.current&&t(r.current)}),l=oo(i.current);return l.addEventListener("resize",s),()=>{s.clear(),l.removeEventListener("resize",s)}},[t]),R.useEffect(()=>{a(),t(r.current)},[t]),I.jsx("div",{style:zq,...n,ref:i})}process.env.NODE_ENV!=="production"&&(jC.propTypes={onChange:o.func.isRequired});function Wq(e){return Pe("MuiTabScrollButton",e)}const qq=ke("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Uq=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ee({root:["root",n,r&&"disabled"]},Wq,t)},Hq=ne(Tr,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${qq.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),LC=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l,orientation:c,disabled:u,...d}=r,f=Gn(),p={isRtl:f,...r},h=Uq(p),g=a.StartScrollButtonIcon??Nq,m=a.EndScrollButtonIcon??Aq,y=st({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),b=st({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return I.jsx(Hq,{component:"div",className:we(h.root,i),ref:n,role:null,ownerState:p,tabIndex:null,...d,style:{...d.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:l==="left"?I.jsx(g,{...y}):I.jsx(m,{...b})})});process.env.NODE_ENV!=="production"&&(LC.propTypes={children:o.node,classes:o.object,className:o.string,direction:o.oneOf(["left","right"]).isRequired,disabled:o.bool,orientation:o.oneOf(["horizontal","vertical"]).isRequired,slotProps:o.shape({endScrollButtonIcon:o.oneOfType([o.func,o.object]),startScrollButtonIcon:o.oneOfType([o.func,o.object])}),slots:o.shape({EndScrollButtonIcon:o.elementType,StartScrollButtonIcon:o.elementType}),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Yq(e){return Pe("MuiTabs",e)}const Uu=ke("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Hw=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Yw=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Cu=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},Gq=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:s,scrollButtonsHideMobile:l,classes:c}=e;return Ee({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Yq,c)},Kq=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Uu.scrollButtons}`]:t.scrollButtons},{[`& .${Uu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Le(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Uu.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Xq=ne("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Zq=ne("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Qq=ne("span",{name:"MuiTabs",slot:"Indicator"})(Le(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Jq=ne(jC)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Gw={};let Kw=!1;const Ic=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTabs"}),i=ao(),a=Gn(),{"aria-label":s,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:f,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:b,scrollButtons:v="auto",selectionFollowsFocus:x,slots:w={},slotProps:O={},TabIndicatorProps:E={},TabScrollButtonProps:C={},textColor:S="primary",value:P,variant:T="standard",visibleScrollbar:_=!1,...k}=r,$=T==="scrollable",M=y==="vertical",j=M?"scrollTop":"scrollLeft",W=M?"top":"left",H=M?"bottom":"right",X=M?"clientHeight":"clientWidth",U=M?"height":"width",L={...r,component:p,allowScrollButtonsMobile:h,indicatorColor:g,orientation:y,vertical:M,scrollButtons:v,textColor:S,variant:T,visibleScrollbar:_,fixed:!$,hideScrollbar:$&&!_,scrollableX:$&&!M,scrollableY:$&&M,centered:u&&!$,scrollButtonsHideMobile:!h},D=Gq(L),B=st({elementType:w.StartScrollButtonIcon,externalSlotProps:O.startScrollButtonIcon,ownerState:L}),z=st({elementType:w.EndScrollButtonIcon,externalSlotProps:O.endScrollButtonIcon,ownerState:L});process.env.NODE_ENV!=="production"&&u&&$&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[F,A]=R.useState(!1),[N,q]=R.useState(Gw),[Y,G]=R.useState(!1),[K,J]=R.useState(!1),[Z,ie]=R.useState(!1),[de,xe]=R.useState({overflow:"hidden",scrollbarWidth:0}),he=new Map,pe=R.useRef(null),Q=R.useRef(null),oe={slots:w,slotProps:{indicator:E,scrollButton:C,...O}},te=()=>{const je=pe.current;let He;if(je){const mt=je.getBoundingClientRect();He={clientWidth:je.clientWidth,scrollLeft:je.scrollLeft,scrollTop:je.scrollTop,scrollWidth:je.scrollWidth,top:mt.top,bottom:mt.bottom,left:mt.left,right:mt.right}}let ot;if(je&&P!==!1){const mt=Q.current.children;if(mt.length>0){const It=mt[he.get(P)];process.env.NODE_ENV!=="production"&&(It||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${P}".`,he.keys?`You can provide one of the following values: ${Array.from(he.keys()).join(", ")}.`:null].join(`
`))),ot=It?It.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!Kw&&ot&&ot.width===0&&ot.height===0&&He.clientWidth!==0&&(He=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${P}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
`)),Kw=!0)}}return{tabsMeta:He,tabMeta:ot}},le=Ie(()=>{const{tabsMeta:je,tabMeta:He}=te();let ot=0,mt;M?(mt="top",He&&je&&(ot=He.top-je.top+je.scrollTop)):(mt=a?"right":"left",He&&je&&(ot=(a?-1:1)*(He[mt]-je[mt]+je.scrollLeft)));const It={[mt]:ot,[U]:He?He[U]:0};if(typeof N[mt]!="number"||typeof N[U]!="number")q(It);else{const Wn=Math.abs(N[mt]-It[mt]),hr=Math.abs(N[U]-It[U]);(Wn>=1||hr>=1)&&q(It)}}),re=(je,{animation:He=!0}={})=>{He?Bq(j,pe.current,je,{duration:i.transitions.duration.standard}):pe.current[j]=je},Te=je=>{let He=pe.current[j];M?He+=je:He+=je*(a?-1:1),re(He)},Se=()=>{const je=pe.current[X];let He=0;const ot=Array.from(Q.current.children);for(let mt=0;mt<ot.length;mt+=1){const It=ot[mt];if(He+It[X]>je){mt===0&&(He=je);break}He+=It[X]}return He},fe=()=>{Te(-1*Se())},ge=()=>{Te(Se())},[_e,{onChange:$e,...ae}]=Ue("scrollbar",{className:we(D.scrollableX,D.hideScrollbar),elementType:Jq,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:L}),ce=R.useCallback(je=>{$e==null||$e(je),xe({overflow:null,scrollbarWidth:je})},[$e]),[ue,Ce]=Ue("scrollButtons",{className:we(D.scrollButtons,C.className),elementType:LC,externalForwardedProps:oe,ownerState:L,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:B,endScrollButtonIcon:z}}}),ye=()=>{const je={};je.scrollbarSizeListener=$?I.jsx(_e,{...ae,onChange:ce}):null;const ot=$&&(v==="auto"&&(Y||K)||v===!0);return je.scrollButtonStart=ot?I.jsx(ue,{direction:a?"right":"left",onClick:fe,disabled:!Y,...Ce}):null,je.scrollButtonEnd=ot?I.jsx(ue,{direction:a?"left":"right",onClick:ge,disabled:!K,...Ce}):null,je},Me=Ie(je=>{const{tabsMeta:He,tabMeta:ot}=te();if(!(!ot||!He)){if(ot[W]<He[W]){const mt=He[j]+(ot[W]-He[W]);re(mt,{animation:je})}else if(ot[H]>He[H]){const mt=He[j]+(ot[H]-He[H]);re(mt,{animation:je})}}}),Ze=Ie(()=>{$&&v!==!1&&ie(!Z)});R.useEffect(()=>{const je=Df(()=>{pe.current&&le()});let He;const ot=Wn=>{Wn.forEach(hr=>{hr.removedNodes.forEach(Dr=>{He==null||He.unobserve(Dr)}),hr.addedNodes.forEach(Dr=>{He==null||He.observe(Dr)})}),je(),Ze()},mt=oo(pe.current);mt.addEventListener("resize",je);let It;return typeof ResizeObserver<"u"&&(He=new ResizeObserver(je),Array.from(Q.current.children).forEach(Wn=>{He.observe(Wn)})),typeof MutationObserver<"u"&&(It=new MutationObserver(ot),It.observe(Q.current,{childList:!0})),()=>{je.clear(),mt.removeEventListener("resize",je),It==null||It.disconnect(),He==null||He.disconnect()}},[le,Ze]),R.useEffect(()=>{const je=Array.from(Q.current.children),He=je.length;if(typeof IntersectionObserver<"u"&&He>0&&$&&v!==!1){const ot=je[0],mt=je[He-1],It={root:pe.current,threshold:.99},Wn=De=>{G(!De[0].isIntersecting)},hr=new IntersectionObserver(Wn,It);hr.observe(ot);const Dr=De=>{J(!De[0].isIntersecting)},se=new IntersectionObserver(Dr,It);return se.observe(mt),()=>{hr.disconnect(),se.disconnect()}}},[$,v,Z,d==null?void 0:d.length]),R.useEffect(()=>{A(!0)},[]),R.useEffect(()=>{le()}),R.useEffect(()=>{Me(Gw!==N)},[Me,N]),R.useImperativeHandle(c,()=>({updateIndicator:le,updateScrollButtons:Ze}),[le,Ze]);const[bt,Ke]=Ue("indicator",{className:we(D.indicator,E.className),elementType:Qq,externalForwardedProps:oe,ownerState:L,additionalProps:{style:N}}),Ne=I.jsx(bt,{...Ke});let We=0;const rt=R.Children.map(d,je=>{if(!R.isValidElement(je))return null;process.env.NODE_ENV!=="production"&&Lo.isFragment(je)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`));const He=je.props.value===void 0?We:je.props.value;he.set(He,We);const ot=He===P;return We+=1,R.cloneElement(je,{fullWidth:T==="fullWidth",indicator:ot&&!F&&Ne,selected:ot,selectionFollowsFocus:x,onChange:m,textColor:S,value:He,...We===1&&P===!1&&!je.props.tabIndex?{tabIndex:0}:{}})}),Tt=je=>{if(je.altKey||je.shiftKey||je.ctrlKey||je.metaKey)return;const He=Q.current,ot=On(He).activeElement;if(ot.getAttribute("role")!=="tab")return;let It=y==="horizontal"?"ArrowLeft":"ArrowUp",Wn=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(It="ArrowRight",Wn="ArrowLeft"),je.key){case It:je.preventDefault(),Cu(He,ot,Yw);break;case Wn:je.preventDefault(),Cu(He,ot,Hw);break;case"Home":je.preventDefault(),Cu(He,null,Hw);break;case"End":je.preventDefault(),Cu(He,null,Yw);break}},nt=ye(),[Et,$n]=Ue("root",{ref:n,className:we(D.root,f),elementType:Kq,externalForwardedProps:{...oe,...k,component:p},ownerState:L}),[cn,yn]=Ue("scroller",{ref:pe,className:D.scroller,elementType:Xq,externalForwardedProps:oe,ownerState:L,additionalProps:{style:{overflow:de.overflow,[M?`margin${a?"Left":"Right"}`:"marginBottom"]:_?void 0:-de.scrollbarWidth}}}),[Ve,Ct]=Ue("list",{ref:Q,className:we(D.list,D.flexContainer),elementType:Zq,externalForwardedProps:oe,ownerState:L,getSlotProps:je=>({...je,onKeyDown:He=>{var ot;Tt(He),(ot=je.onKeyDown)==null||ot.call(je,He)}})});return I.jsxs(Et,{...$n,children:[nt.scrollButtonStart,nt.scrollbarSizeListener,I.jsxs(cn,{...yn,children:[I.jsx(Ve,{"aria-label":s,"aria-labelledby":l,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...Ct,children:rt}),F&&Ne]}),nt.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(Ic.propTypes={action:Rt,allowScrollButtonsMobile:o.bool,"aria-label":o.string,"aria-labelledby":o.string,centered:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,indicatorColor:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),onChange:o.func,orientation:o.oneOf(["horizontal","vertical"]),ScrollButtonComponent:o.elementType,scrollButtons:o.oneOf(["auto",!1,!0]),selectionFollowsFocus:o.bool,slotProps:o.shape({endScrollButtonIcon:o.oneOfType([o.func,o.object]),indicator:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),scrollbar:o.oneOfType([o.func,o.object]),scrollButtons:o.oneOfType([o.func,o.object]),scroller:o.oneOfType([o.func,o.object]),startScrollButtonIcon:o.oneOfType([o.func,o.object])}),slots:o.shape({endScrollButtonIcon:o.elementType,EndScrollButtonIcon:o.elementType,indicator:o.elementType,list:o.elementType,root:o.elementType,scrollbar:o.elementType,scrollButtons:o.elementType,scroller:o.elementType,startScrollButtonIcon:o.elementType,StartScrollButtonIcon:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TabIndicatorProps:o.object,TabScrollButtonProps:o.object,textColor:o.oneOf(["inherit","primary","secondary"]),value:o.any,variant:o.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:o.bool});function eU(e){return Pe("MuiTextField",e)}ke("MuiTextField",["root"]);const tU={standard:Pc,filled:Sc,outlined:kc},nU=e=>{const{classes:t}=e;return Ee({root:["root"]},eU,t)},rU=ne(hi,{name:"MuiTextField",slot:"Root"})({}),Li=R.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:y,inputProps:b,InputProps:v,inputRef:x,label:w,maxRows:O,minRows:E,multiline:C=!1,name:S,onBlur:P,onChange:T,onFocus:_,placeholder:k,required:$=!1,rows:M,select:j=!1,SelectProps:W,slots:H={},slotProps:X={},type:U,value:L,variant:D="outlined",...B}=r,z={...r,autoFocus:a,color:c,disabled:d,error:f,fullWidth:h,multiline:C,required:$,select:j,variant:D},F=nU(z);process.env.NODE_ENV!=="production"&&j&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const A=dr(m),N=g&&A?`${A}-helper-text`:void 0,q=w&&A?`${A}-label`:void 0,Y=tU[D],G={slots:H,slotProps:{input:v,inputLabel:y,htmlInput:b,formHelperText:p,select:W,...X}},K={},J=G.slotProps.inputLabel;D==="outlined"&&(J&&typeof J.shrink<"u"&&(K.notched=J.shrink),K.label=w),j&&((!W||!W.native)&&(K.id=void 0),K["aria-describedby"]=void 0);const[Z,ie]=Ue("root",{elementType:rU,shouldForwardComponentProp:!0,externalForwardedProps:{...G,...B},ownerState:z,className:we(F.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:$,color:c,variant:D}}),[de,xe]=Ue("input",{elementType:Y,externalForwardedProps:G,additionalProps:K,ownerState:z}),[he,pe]=Ue("inputLabel",{elementType:_c,externalForwardedProps:G,ownerState:z}),[Q,oe]=Ue("htmlInput",{elementType:"input",externalForwardedProps:G,ownerState:z}),[te,le]=Ue("formHelperText",{elementType:sn,externalForwardedProps:G,ownerState:z}),[re,Te]=Ue("select",{elementType:Dc,externalForwardedProps:G,ownerState:z}),Se=I.jsx(de,{"aria-describedby":N,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:C,name:S,rows:M,maxRows:O,minRows:E,type:U,value:L,id:A,inputRef:x,onBlur:P,onChange:T,onFocus:_,placeholder:k,inputProps:oe,slots:{input:H.htmlInput?Q:void 0},...xe});return I.jsxs(Z,{...ie,children:[w!=null&&w!==""&&I.jsx(he,{htmlFor:A,id:q,...pe,children:w}),j?I.jsx(re,{"aria-describedby":N,id:A,labelId:q,value:L,input:Se,...Te,children:s}):Se,g&&I.jsx(te,{id:N,...le,children:g})]})});process.env.NODE_ENV!=="production"&&(Li.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:Rt,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 Yf=wS({themeId:Vr});var oU=typeof kn=="object"&&kn&&kn.Object===Object&&kn,FC=oU,iU=FC,aU=typeof self=="object"&&self&&self.Object===Object&&self,sU=iU||aU||Function("return this")(),Qn=sU,lU=Qn,cU=lU.Symbol,Es=cU,Xw=Es,VC=Object.prototype,uU=VC.hasOwnProperty,dU=VC.toString,tl=Xw?Xw.toStringTag:void 0;function fU(e){var t=uU.call(e,tl),n=e[tl];try{e[tl]=void 0;var r=!0}catch{}var i=dU.call(e);return r&&(t?e[tl]=n:delete e[tl]),i}var pU=fU,hU=Object.prototype,mU=hU.toString;function gU(e){return mU.call(e)}var yU=gU,Zw=Es,bU=pU,vU=yU,wU="[object Null]",xU="[object Undefined]",Qw=Zw?Zw.toStringTag:void 0;function OU(e){return e==null?e===void 0?xU:wU:Qw&&Qw in Object(e)?bU(e):vU(e)}var mi=OU;function TU(e){return e!=null&&typeof e=="object"}var _r=TU,SU=mi,EU=_r,CU="[object Symbol]";function PU(e){return typeof e=="symbol"||EU(e)&&SU(e)==CU}var Cs=PU,_U=Cs;function kU(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(s!=null&&(l===void 0?s===s&&!_U(s):n(s,l)))var l=s,c=a}return c}var DU=kU;function $U(e,t){return e>t}var RU=$U;function MU(){this.__data__=[],this.size=0}var IU=MU;function NU(e,t){return e===t||e!==e&&t!==t}var Nc=NU,AU=Nc;function jU(e,t){for(var n=e.length;n--;)if(AU(e[n][0],t))return n;return-1}var Gf=jU,LU=Gf,FU=Array.prototype,VU=FU.splice;function BU(e){var t=this.__data__,n=LU(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():VU.call(t,n,1),--this.size,!0}var zU=BU,WU=Gf;function qU(e){var t=this.__data__,n=WU(t,e);return n<0?void 0:t[n][1]}var UU=qU,HU=Gf;function YU(e){return HU(this.__data__,e)>-1}var GU=YU,KU=Gf;function XU(e,t){var n=this.__data__,r=KU(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var ZU=XU,QU=IU,JU=zU,e6=UU,t6=GU,n6=ZU;function Ps(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ps.prototype.clear=QU;Ps.prototype.delete=JU;Ps.prototype.get=e6;Ps.prototype.has=t6;Ps.prototype.set=n6;var Kf=Ps,r6=Kf;function o6(){this.__data__=new r6,this.size=0}var i6=o6;function a6(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var s6=a6;function l6(e){return this.__data__.get(e)}var c6=l6;function u6(e){return this.__data__.has(e)}var d6=u6;function f6(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kr=f6,p6=mi,h6=kr,m6="[object AsyncFunction]",g6="[object Function]",y6="[object GeneratorFunction]",b6="[object Proxy]";function v6(e){if(!h6(e))return!1;var t=p6(e);return t==g6||t==y6||t==m6||t==b6}var Ac=v6;const w6=kt(Ac);var x6=Qn,O6=x6["__core-js_shared__"],T6=O6,Ch=T6,Jw=function(){var e=/[^.]+$/.exec(Ch&&Ch.keys&&Ch.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function S6(e){return!!Jw&&Jw in e}var E6=S6,C6=Function.prototype,P6=C6.toString;function _6(e){if(e!=null){try{return P6.call(e)}catch{}try{return e+""}catch{}}return""}var BC=_6,k6=Ac,D6=E6,$6=kr,R6=BC,M6=/[\\^$.*+?()[\]{}|]/g,I6=/^\[object .+?Constructor\]$/,N6=Function.prototype,A6=Object.prototype,j6=N6.toString,L6=A6.hasOwnProperty,F6=RegExp("^"+j6.call(L6).replace(M6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function V6(e){if(!$6(e)||D6(e))return!1;var t=k6(e)?F6:I6;return t.test(R6(e))}var B6=V6;function z6(e,t){return e==null?void 0:e[t]}var W6=z6,q6=B6,U6=W6;function H6(e,t){var n=U6(e,t);return q6(n)?n:void 0}var ta=H6,Y6=ta,G6=Qn,K6=Y6(G6,"Map"),vy=K6,X6=ta,Z6=X6(Object,"create"),Xf=Z6,ex=Xf;function Q6(){this.__data__=ex?ex(null):{},this.size=0}var J6=Q6;function eH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tH=eH,nH=Xf,rH="__lodash_hash_undefined__",oH=Object.prototype,iH=oH.hasOwnProperty;function aH(e){var t=this.__data__;if(nH){var n=t[e];return n===rH?void 0:n}return iH.call(t,e)?t[e]:void 0}var sH=aH,lH=Xf,cH=Object.prototype,uH=cH.hasOwnProperty;function dH(e){var t=this.__data__;return lH?t[e]!==void 0:uH.call(t,e)}var fH=dH,pH=Xf,hH="__lodash_hash_undefined__";function mH(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pH&&t===void 0?hH:t,this}var gH=mH,yH=J6,bH=tH,vH=sH,wH=fH,xH=gH;function _s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_s.prototype.clear=yH;_s.prototype.delete=bH;_s.prototype.get=vH;_s.prototype.has=wH;_s.prototype.set=xH;var OH=_s,tx=OH,TH=Kf,SH=vy;function EH(){this.size=0,this.__data__={hash:new tx,map:new(SH||TH),string:new tx}}var CH=EH;function PH(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _H=PH,kH=_H;function DH(e,t){var n=e.__data__;return kH(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Zf=DH,$H=Zf;function RH(e){var t=$H(this,e).delete(e);return this.size-=t?1:0,t}var MH=RH,IH=Zf;function NH(e){return IH(this,e).get(e)}var AH=NH,jH=Zf;function LH(e){return jH(this,e).has(e)}var FH=LH,VH=Zf;function BH(e,t){var n=VH(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var zH=BH,WH=CH,qH=MH,UH=AH,HH=FH,YH=zH;function ks(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ks.prototype.clear=WH;ks.prototype.delete=qH;ks.prototype.get=UH;ks.prototype.has=HH;ks.prototype.set=YH;var wy=ks,GH=Kf,KH=vy,XH=wy,ZH=200;function QH(e,t){var n=this.__data__;if(n instanceof GH){var r=n.__data__;if(!KH||r.length<ZH-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new XH(r)}return n.set(e,t),this.size=n.size,this}var JH=QH,e9=Kf,t9=i6,n9=s6,r9=c6,o9=d6,i9=JH;function Ds(e){var t=this.__data__=new e9(e);this.size=t.size}Ds.prototype.clear=t9;Ds.prototype.delete=n9;Ds.prototype.get=r9;Ds.prototype.has=o9;Ds.prototype.set=i9;var Qf=Ds,a9="__lodash_hash_undefined__";function s9(e){return this.__data__.set(e,a9),this}var l9=s9;function c9(e){return this.__data__.has(e)}var u9=c9,d9=wy,f9=l9,p9=u9;function Sd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new d9;++t<n;)this.add(e[t])}Sd.prototype.add=Sd.prototype.push=f9;Sd.prototype.has=p9;var zC=Sd;function h9(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var m9=h9;function g9(e,t){return e.has(t)}var WC=g9,y9=zC,b9=m9,v9=WC,w9=1,x9=2;function O9(e,t,n,r,i,a){var s=n&w9,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=n&x9?new y9:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(r)var y=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(y!==void 0){if(y)continue;p=!1;break}if(h){if(!b9(t,function(b,v){if(!v9(h,v)&&(g===b||i(g,b,n,r,a)))return h.push(v)})){p=!1;break}}else if(!(g===m||i(g,m,n,r,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var qC=O9,T9=Qn,S9=T9.Uint8Array,UC=S9;function E9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var HC=E9;function C9(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var xy=C9,nx=Es,rx=UC,P9=Nc,_9=qC,k9=HC,D9=xy,$9=1,R9=2,M9="[object Boolean]",I9="[object Date]",N9="[object Error]",A9="[object Map]",j9="[object Number]",L9="[object RegExp]",F9="[object Set]",V9="[object String]",B9="[object Symbol]",z9="[object ArrayBuffer]",W9="[object DataView]",ox=nx?nx.prototype:void 0,Ph=ox?ox.valueOf:void 0;function q9(e,t,n,r,i,a,s){switch(n){case W9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z9:return!(e.byteLength!=t.byteLength||!a(new rx(e),new rx(t)));case M9:case I9:case j9:return P9(+e,+t);case N9:return e.name==t.name&&e.message==t.message;case L9:case V9:return e==t+"";case A9:var l=k9;case F9:var c=r&$9;if(l||(l=D9),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=R9,s.set(e,t);var d=_9(l(e),l(t),r,i,a,s);return s.delete(e),d;case B9:if(Ph)return Ph.call(e)==Ph.call(t)}return!1}var U9=q9;function H9(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Oy=H9,Y9=Array.isArray,Cn=Y9;const YC=kt(Cn);var G9=Oy,K9=Cn;function X9(e,t,n){var r=t(e);return K9(e)?r:G9(r,n(e))}var GC=X9;function Z9(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}var KC=Z9;function Q9(){return[]}var XC=Q9,J9=KC,e8=XC,t8=Object.prototype,n8=t8.propertyIsEnumerable,ix=Object.getOwnPropertySymbols,r8=ix?function(e){return e==null?[]:(e=Object(e),J9(ix(e),function(t){return n8.call(e,t)}))}:e8,Ty=r8;function o8(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var i8=o8,a8=mi,s8=_r,l8="[object Arguments]";function c8(e){return s8(e)&&a8(e)==l8}var u8=c8,ax=u8,d8=_r,ZC=Object.prototype,f8=ZC.hasOwnProperty,p8=ZC.propertyIsEnumerable,h8=ax(function(){return arguments}())?ax:function(e){return d8(e)&&f8.call(e,"callee")&&!p8.call(e,"callee")},jc=h8,Ed={exports:{}};function m8(){return!1}var g8=m8;Ed.exports;(function(e,t){var n=Qn,r=g8,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,l=s?n.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||r;e.exports=u})(Ed,Ed.exports);var Lc=Ed.exports,y8=9007199254740991,b8=/^(?:0|[1-9]\d*)$/;function v8(e,t){var n=typeof e;return t=t??y8,!!t&&(n=="number"||n!="symbol"&&b8.test(e))&&e>-1&&e%1==0&&e<t}var Fc=v8,w8=9007199254740991;function x8(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=w8}var Sy=x8,O8=mi,T8=Sy,S8=_r,E8="[object Arguments]",C8="[object Array]",P8="[object Boolean]",_8="[object Date]",k8="[object Error]",D8="[object Function]",$8="[object Map]",R8="[object Number]",M8="[object Object]",I8="[object RegExp]",N8="[object Set]",A8="[object String]",j8="[object WeakMap]",L8="[object ArrayBuffer]",F8="[object DataView]",V8="[object Float32Array]",B8="[object Float64Array]",z8="[object Int8Array]",W8="[object Int16Array]",q8="[object Int32Array]",U8="[object Uint8Array]",H8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",G8="[object Uint32Array]",nn={};nn[V8]=nn[B8]=nn[z8]=nn[W8]=nn[q8]=nn[U8]=nn[H8]=nn[Y8]=nn[G8]=!0;nn[E8]=nn[C8]=nn[L8]=nn[P8]=nn[F8]=nn[_8]=nn[k8]=nn[D8]=nn[$8]=nn[R8]=nn[M8]=nn[I8]=nn[N8]=nn[A8]=nn[j8]=!1;function K8(e){return S8(e)&&T8(e.length)&&!!nn[O8(e)]}var X8=K8;function Z8(e){return function(t){return e(t)}}var Ey=Z8,Cd={exports:{}};Cd.exports;(function(e,t){var n=FC,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(Cd,Cd.exports);var Cy=Cd.exports,Q8=X8,J8=Ey,sx=Cy,lx=sx&&sx.isTypedArray,e7=lx?J8(lx):Q8,Jf=e7,t7=i8,n7=jc,r7=Cn,o7=Lc,i7=Fc,a7=Jf,s7=Object.prototype,l7=s7.hasOwnProperty;function c7(e,t){var n=r7(e),r=!n&&n7(e),i=!n&&!r&&o7(e),a=!n&&!r&&!i&&a7(e),s=n||r||i||a,l=s?t7(e.length,String):[],c=l.length;for(var u in e)(t||l7.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||i7(u,c)))&&l.push(u);return l}var QC=c7,u7=Object.prototype;function d7(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||u7;return e===n}var ep=d7;function f7(e,t){return function(n){return e(t(n))}}var JC=f7,p7=JC,h7=p7(Object.keys,Object),m7=h7,g7=ep,y7=m7,b7=Object.prototype,v7=b7.hasOwnProperty;function w7(e){if(!g7(e))return y7(e);var t=[];for(var n in Object(e))v7.call(e,n)&&n!="constructor"&&t.push(n);return t}var Py=w7,x7=Ac,O7=Sy;function T7(e){return e!=null&&O7(e.length)&&!x7(e)}var qo=T7,S7=QC,E7=Py,C7=qo;function P7(e){return C7(e)?S7(e):E7(e)}var Uo=P7;const _7=kt(Uo);var k7=GC,D7=Ty,$7=Uo;function R7(e){return k7(e,$7,D7)}var eP=R7,cx=eP,M7=1,I7=Object.prototype,N7=I7.hasOwnProperty;function A7(e,t,n,r,i,a){var s=n&M7,l=cx(e),c=l.length,u=cx(t),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in t:N7.call(t,p)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);for(var y=s;++f<c;){p=l[f];var b=e[p],v=t[p];if(r)var x=s?r(v,b,p,t,e,a):r(b,v,p,e,t,a);if(!(x===void 0?b===v||i(b,v,n,r,a):x)){m=!1;break}y||(y=p=="constructor")}if(m&&!y){var w=e.constructor,O=t.constructor;w!=O&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof O=="function"&&O instanceof O)&&(m=!1)}return a.delete(e),a.delete(t),m}var j7=A7,L7=ta,F7=Qn,V7=L7(F7,"DataView"),B7=V7,z7=ta,W7=Qn,q7=z7(W7,"Promise"),U7=q7,H7=ta,Y7=Qn,G7=H7(Y7,"Set"),tP=G7,K7=ta,X7=Qn,Z7=K7(X7,"WeakMap"),nP=Z7,Am=B7,jm=vy,Lm=U7,Fm=tP,Vm=nP,rP=mi,$s=BC,ux="[object Map]",Q7="[object Object]",dx="[object Promise]",fx="[object Set]",px="[object WeakMap]",hx="[object DataView]",J7=$s(Am),eY=$s(jm),tY=$s(Lm),nY=$s(Fm),rY=$s(Vm),_i=rP;(Am&&_i(new Am(new ArrayBuffer(1)))!=hx||jm&&_i(new jm)!=ux||Lm&&_i(Lm.resolve())!=dx||Fm&&_i(new Fm)!=fx||Vm&&_i(new Vm)!=px)&&(_i=function(e){var t=rP(e),n=t==Q7?e.constructor:void 0,r=n?$s(n):"";if(r)switch(r){case J7:return hx;case eY:return ux;case tY:return dx;case nY:return fx;case rY:return px}return t});var na=_i,_h=Qf,oY=qC,iY=U9,aY=j7,mx=na,gx=Cn,yx=Lc,sY=Jf,lY=1,bx="[object Arguments]",vx="[object Array]",Pu="[object Object]",cY=Object.prototype,wx=cY.hasOwnProperty;function uY(e,t,n,r,i,a){var s=gx(e),l=gx(t),c=s?vx:mx(e),u=l?vx:mx(t);c=c==bx?Pu:c,u=u==bx?Pu:u;var d=c==Pu,f=u==Pu,p=c==u;if(p&&yx(e)){if(!yx(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new _h),s||sY(e)?oY(e,t,n,r,i,a):iY(e,t,c,n,r,i,a);if(!(n&lY)){var h=d&&wx.call(e,"__wrapped__"),g=f&&wx.call(t,"__wrapped__");if(h||g){var m=h?e.value():e,y=g?t.value():t;return a||(a=new _h),i(m,y,n,r,a)}}return p?(a||(a=new _h),aY(e,t,n,r,i,a)):!1}var dY=uY,fY=dY,xx=_r;function oP(e,t,n,r,i){return e===t?!0:e==null||t==null||!xx(e)&&!xx(t)?e!==e&&t!==t:fY(e,t,n,r,oP,i)}var _y=oP,pY=Qf,hY=_y,mY=1,gY=2;function yY(e,t,n,r){var i=n.length,a=i,s=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var f=new pY;if(r)var p=r(u,d,c,e,t,f);if(!(p===void 0?hY(d,u,mY|gY,r,f):p))return!1}}return!0}var bY=yY,vY=kr;function wY(e){return e===e&&!vY(e)}var iP=wY,xY=iP,OY=Uo;function TY(e){for(var t=OY(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,xY(i)]}return t}var SY=TY;function EY(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var aP=EY,CY=bY,PY=SY,_Y=aP;function kY(e){var t=PY(e);return t.length==1&&t[0][2]?_Y(t[0][0],t[0][1]):function(n){return n===e||CY(n,e,t)}}var DY=kY,$Y=Cn,RY=Cs,MY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IY=/^\w*$/;function NY(e,t){if($Y(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||RY(e)?!0:IY.test(e)||!MY.test(e)||t!=null&&e in Object(t)}var ky=NY,sP=wy,AY="Expected a function";function Dy(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(AY);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Dy.Cache||sP),n}Dy.Cache=sP;var jY=Dy,LY=jY,FY=500;function VY(e){var t=LY(e,function(r){return n.size===FY&&n.clear(),r}),n=t.cache;return t}var BY=VY,zY=BY,WY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qY=/\\(\\)?/g,UY=zY(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(WY,function(n,r,i,a){t.push(i?a.replace(qY,"$1"):r||n)}),t}),lP=UY;function HY(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Rs=HY,Ox=Es,YY=Rs,GY=Cn,KY=Cs,Tx=Ox?Ox.prototype:void 0,Sx=Tx?Tx.toString:void 0;function cP(e){if(typeof e=="string")return e;if(GY(e))return YY(e,cP)+"";if(KY(e))return Sx?Sx.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var XY=cP,ZY=XY;function QY(e){return e==null?"":ZY(e)}var Vc=QY,JY=Cn,eG=ky,tG=lP,nG=Vc;function rG(e,t){return JY(e)?e:eG(e,t)?[e]:tG(nG(e))}var Bc=rG,oG=Cs;function iG(e){if(typeof e=="string"||oG(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ra=iG,aG=Bc,sG=ra;function lG(e,t){t=aG(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[sG(t[n++])];return n&&n==r?e:void 0}var $y=lG,cG=$y;function uG(e,t,n){var r=e==null?void 0:cG(e,t);return r===void 0?n:r}var uP=uG;const Dn=kt(uP);function dG(e,t){return e!=null&&t in Object(e)}var fG=dG,pG=Bc,hG=jc,mG=Cn,gG=Fc,yG=Sy,bG=ra;function vG(e,t,n){t=pG(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var s=bG(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&yG(i)&&gG(s,i)&&(mG(e)||hG(e)))}var dP=vG,wG=fG,xG=dP;function OG(e,t){return e!=null&&xG(e,t,wG)}var TG=OG,SG=_y,EG=uP,CG=TG,PG=ky,_G=iP,kG=aP,DG=ra,$G=1,RG=2;function MG(e,t){return PG(e)&&_G(t)?kG(DG(e),t):function(n){var r=EG(n,e);return r===void 0&&r===t?CG(n,e):SG(t,r,$G|RG)}}var IG=MG;function NG(e){return e}var tp=NG;function AG(e){return function(t){return t==null?void 0:t[e]}}var jG=AG,LG=$y;function FG(e){return function(t){return LG(t,e)}}var VG=FG,BG=jG,zG=VG,WG=ky,qG=ra;function UG(e){return WG(e)?BG(qG(e)):zG(e)}var HG=UG,YG=DY,GG=IG,KG=tp,XG=Cn,ZG=HG;function QG(e){return typeof e=="function"?e:e==null?KG:typeof e=="object"?XG(e)?GG(e[0],e[1]):YG(e):ZG(e)}var oa=QG,JG=DU,eK=RU,tK=oa;function nK(e,t){return e&&e.length?JG(e,tK(t),eK):void 0}var rK=nK;const Ry=kt(rK);var oK=Py,iK=na,aK=jc,sK=Cn,lK=qo,cK=Lc,uK=ep,dK=Jf,fK="[object Map]",pK="[object Set]",hK=Object.prototype,mK=hK.hasOwnProperty;function gK(e){if(e==null)return!0;if(lK(e)&&(sK(e)||typeof e=="string"||typeof e.splice=="function"||cK(e)||dK(e)||aK(e)))return!e.length;var t=iK(e);if(t==fK||t==pK)return!e.size;if(uK(e))return!oK(e).length;for(var n in e)if(mK.call(e,n))return!1;return!0}var yK=gK;const ut=kt(yK);function bK(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var fP=bK;function vK(e){return function(t){return e==null?void 0:e[t]}}var wK=vK,xK=wK,OK={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},TK=xK(OK),SK=TK,EK=SK,CK=Vc,PK=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_K="\\u0300-\\u036f",kK="\\ufe20-\\ufe2f",DK="\\u20d0-\\u20ff",$K=_K+kK+DK,RK="["+$K+"]",MK=RegExp(RK,"g");function IK(e){return e=CK(e),e&&e.replace(PK,EK).replace(MK,"")}var NK=IK,AK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function jK(e){return e.match(AK)||[]}var LK=jK,FK=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function VK(e){return FK.test(e)}var BK=VK,pP="\\ud800-\\udfff",zK="\\u0300-\\u036f",WK="\\ufe20-\\ufe2f",qK="\\u20d0-\\u20ff",UK=zK+WK+qK,hP="\\u2700-\\u27bf",mP="a-z\\xdf-\\xf6\\xf8-\\xff",HK="\\xac\\xb1\\xd7\\xf7",YK="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",GK="\\u2000-\\u206f",KK=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gP="A-Z\\xc0-\\xd6\\xd8-\\xde",XK="\\ufe0e\\ufe0f",yP=HK+YK+GK+KK,bP="['’]",Ex="["+yP+"]",ZK="["+UK+"]",vP="\\d+",QK="["+hP+"]",wP="["+mP+"]",xP="[^"+pP+yP+vP+hP+mP+gP+"]",JK="\\ud83c[\\udffb-\\udfff]",eX="(?:"+ZK+"|"+JK+")",tX="[^"+pP+"]",OP="(?:\\ud83c[\\udde6-\\uddff]){2}",TP="[\\ud800-\\udbff][\\udc00-\\udfff]",Pa="["+gP+"]",nX="\\u200d",Cx="(?:"+wP+"|"+xP+")",rX="(?:"+Pa+"|"+xP+")",Px="(?:"+bP+"(?:d|ll|m|re|s|t|ve))?",_x="(?:"+bP+"(?:D|LL|M|RE|S|T|VE))?",SP=eX+"?",EP="["+XK+"]?",oX="(?:"+nX+"(?:"+[tX,OP,TP].join("|")+")"+EP+SP+")*",iX="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",aX="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sX=EP+SP+oX,lX="(?:"+[QK,OP,TP].join("|")+")"+sX,cX=RegExp([Pa+"?"+wP+"+"+Px+"(?="+[Ex,Pa,"$"].join("|")+")",rX+"+"+_x+"(?="+[Ex,Pa+Cx,"$"].join("|")+")",Pa+"?"+Cx+"+"+Px,Pa+"+"+_x,aX,iX,vP,lX].join("|"),"g");function uX(e){return e.match(cX)||[]}var dX=uX,fX=LK,pX=BK,hX=Vc,mX=dX;function gX(e,t,n){return e=hX(e),t=n?void 0:t,t===void 0?pX(e)?mX(e):fX(e):e.match(t)||[]}var yX=gX,bX=fP,vX=NK,wX=yX,xX="['’]",OX=RegExp(xX,"g");function TX(e){return function(t){return bX(wX(vX(t).replace(OX,"")),e,"")}}var SX=TX;function EX(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var CP=EX,CX=CP;function PX(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:CX(e,t,n)}var _X=PX,kX="\\ud800-\\udfff",DX="\\u0300-\\u036f",$X="\\ufe20-\\ufe2f",RX="\\u20d0-\\u20ff",MX=DX+$X+RX,IX="\\ufe0e\\ufe0f",NX="\\u200d",AX=RegExp("["+NX+kX+MX+IX+"]");function jX(e){return AX.test(e)}var PP=jX;function LX(e){return e.split("")}var FX=LX,_P="\\ud800-\\udfff",VX="\\u0300-\\u036f",BX="\\ufe20-\\ufe2f",zX="\\u20d0-\\u20ff",WX=VX+BX+zX,qX="\\ufe0e\\ufe0f",UX="["+_P+"]",Bm="["+WX+"]",zm="\\ud83c[\\udffb-\\udfff]",HX="(?:"+Bm+"|"+zm+")",kP="[^"+_P+"]",DP="(?:\\ud83c[\\udde6-\\uddff]){2}",$P="[\\ud800-\\udbff][\\udc00-\\udfff]",YX="\\u200d",RP=HX+"?",MP="["+qX+"]?",GX="(?:"+YX+"(?:"+[kP,DP,$P].join("|")+")"+MP+RP+")*",KX=MP+RP+GX,XX="(?:"+[kP+Bm+"?",Bm,DP,$P,UX].join("|")+")",ZX=RegExp(zm+"(?="+zm+")|"+XX+KX,"g");function QX(e){return e.match(ZX)||[]}var JX=QX,eZ=FX,tZ=PP,nZ=JX;function rZ(e){return tZ(e)?nZ(e):eZ(e)}var oZ=rZ,iZ=_X,aZ=PP,sZ=oZ,lZ=Vc;function cZ(e){return function(t){t=lZ(t);var n=aZ(t)?sZ(t):void 0,r=n?n[0]:t.charAt(0),i=n?iZ(n,1).join(""):t.slice(1);return r[e]()+i}}var uZ=cZ,dZ=uZ,fZ=dZ("toUpperCase"),pZ=fZ,hZ=SX,mZ=pZ,gZ=hZ(function(e,t,n){return e+(n?" ":"")+mZ(t)}),yZ=gZ;const My=kt(yZ);var bZ=Math.ceil,vZ=Math.max;function wZ(e,t,n,r){for(var i=-1,a=vZ(bZ((t-e)/(n||1)),0),s=Array(a);a--;)s[r?a:++i]=e,e+=n;return s}var xZ=wZ,OZ=Nc,TZ=qo,SZ=Fc,EZ=kr;function CZ(e,t,n){if(!EZ(n))return!1;var r=typeof t;return(r=="number"?TZ(n)&&SZ(t,n.length):r=="string"&&t in n)?OZ(n[t],e):!1}var IP=CZ,PZ=/\s/;function _Z(e){for(var t=e.length;t--&&PZ.test(e.charAt(t)););return t}var kZ=_Z,DZ=kZ,$Z=/^\s+/;function RZ(e){return e&&e.slice(0,DZ(e)+1).replace($Z,"")}var MZ=RZ,IZ=MZ,kx=kr,NZ=Cs,Dx=NaN,AZ=/^[-+]0x[0-9a-f]+$/i,jZ=/^0b[01]+$/i,LZ=/^0o[0-7]+$/i,FZ=parseInt;function VZ(e){if(typeof e=="number")return e;if(NZ(e))return Dx;if(kx(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=kx(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IZ(e);var n=jZ.test(e);return n||LZ.test(e)?FZ(e.slice(2),n?2:8):AZ.test(e)?Dx:+e}var NP=VZ,BZ=NP,$x=1/0,zZ=17976931348623157e292;function WZ(e){if(!e)return e===0?e:0;if(e=BZ(e),e===$x||e===-$x){var t=e<0?-1:1;return t*zZ}return e===e?e:0}var AP=WZ,qZ=xZ,UZ=IP,kh=AP;function HZ(e){return function(t,n,r){return r&&typeof r!="number"&&UZ(t,n,r)&&(n=r=void 0),t=kh(t),n===void 0?(n=t,t=0):n=kh(n),r=r===void 0?t<n?1:-1:kh(r),qZ(t,n,r,e)}}var YZ=HZ,GZ=YZ,KZ=GZ(),XZ=KZ;const np=kt(XZ);var ZZ=Object.prototype,QZ=ZZ.hasOwnProperty;function JZ(e,t){return e!=null&&QZ.call(e,t)}var eQ=JZ,tQ=eQ,nQ=dP;function rQ(e,t){return e!=null&&nQ(e,t,tQ)}var oQ=rQ;const jP=kt(oQ);var iQ=oa,aQ=qo,sQ=Uo;function lQ(e){return function(t,n,r){var i=Object(t);if(!aQ(t)){var a=iQ(n);t=sQ(t),n=function(l){return a(i[l],l,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:void 0}}var cQ=lQ;function uQ(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var LP=uQ,dQ=AP;function fQ(e){var t=dQ(e),n=t%1;return t===t?n?t-n:t:0}var rp=fQ,pQ=LP,hQ=oa,mQ=rp,gQ=Math.max;function yQ(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:mQ(n);return i<0&&(i=gQ(r+i,0)),pQ(e,hQ(t),i)}var bQ=yQ,vQ=cQ,wQ=bQ,xQ=vQ(wQ),OQ=xQ;const FP=kt(OQ);function TQ(e){return e!==e}var SQ=TQ;function EQ(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var CQ=EQ,PQ=LP,_Q=SQ,kQ=CQ;function DQ(e,t,n){return t===t?kQ(e,t,n):PQ(e,_Q,n)}var VP=DQ,$Q=mi,RQ=Cn,MQ=_r,IQ="[object String]";function NQ(e){return typeof e=="string"||!RQ(e)&&MQ(e)&&$Q(e)==IQ}var AQ=NQ,jQ=Rs;function LQ(e,t){return jQ(t,function(n){return e[n]})}var FQ=LQ,VQ=FQ,BQ=Uo;function zQ(e){return e==null?[]:VQ(e,BQ(e))}var WQ=zQ,qQ=VP,UQ=qo,HQ=AQ,YQ=rp,GQ=WQ,KQ=Math.max;function XQ(e,t,n,r){e=UQ(e)?e:GQ(e),n=n&&!r?YQ(n):0;var i=e.length;return n<0&&(n=KQ(i+n,0)),HQ(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qQ(e,t,n)>-1}var ZQ=XQ;const BP=kt(ZQ);var Wm={exports:{}},zP={},no={},as={},zc={},yt={},Zl={};(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 n extends t{constructor(v){if(super(),!e.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(v){super(),this._items=typeof v=="string"?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return v===""||v==='""'}get str(){var v;return(v=this._str)!==null&&v!==void 0?v:this._str=this._items.reduce((x,w)=>`${x}${w}`,"")}get names(){var v;return(v=this._names)!==null&&v!==void 0?v:this._names=this._items.reduce((x,w)=>(w instanceof n&&(x[w.str]=(x[w.str]||0)+1),x),{})}}e._Code=r,e.nil=new r("");function i(b,...v){const x=[b[0]];let w=0;for(;w<v.length;)l(x,v[w]),x.push(b[++w]);return new r(x)}e._=i;const a=new r("+");function s(b,...v){const x=[h(b[0])];let w=0;for(;w<v.length;)x.push(a),l(x,v[w]),x.push(a,h(b[++w]));return c(x),new r(x)}e.str=s;function l(b,v){v instanceof r?b.push(...v._items):v instanceof n?b.push(v):b.push(f(v))}e.addCodeArg=l;function c(b){let v=1;for(;v<b.length-1;){if(b[v]===a){const x=u(b[v-1],b[v+1]);if(x!==void 0){b.splice(v-1,3,x);continue}b[v++]="+"}v++}}function u(b,v){if(v==='""')return b;if(b==='""')return v;if(typeof b=="string")return v instanceof n||b[b.length-1]!=='"'?void 0:typeof v!="string"?`${b.slice(0,-1)}${v}"`:v[0]==='"'?b.slice(0,-1)+v.slice(1):void 0;if(typeof v=="string"&&v[0]==='"'&&!(b instanceof n))return`"${b}${v.slice(1)}`}function d(b,v){return v.emptyStr()?b:b.emptyStr()?v:s`${b}${v}`}e.strConcat=d;function f(b){return typeof b=="number"||typeof b=="boolean"||b===null?b:h(Array.isArray(b)?b.join(","):b)}function p(b){return new r(h(b))}e.stringify=p;function h(b){return JSON.stringify(b).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function g(b){return typeof b=="string"&&e.IDENTIFIER.test(b)?new r(`.${b}`):i`[${b}]`}e.getProperty=g;function m(b){if(typeof b=="string"&&e.IDENTIFIER.test(b))return new r(`${b}`);throw new Error(`CodeGen: invalid export name: ${b}, use explicit $id name mapping`)}e.getEsmExportName=m;function y(b){return new r(b.toString())}e.regexpCode=y})(Zl);var qm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Zl;class n extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var r;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),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,f;if(!((f=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||f===void 0)&&f.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:f}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(d)}[${f}]`}}e.ValueScopeName=a;const s=(0,t._)`\n`;class l extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s:t.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,d){var f;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const p=this.toName(u),{prefix:h}=p,g=(f=d.key)!==null&&f!==void 0?f:d.ref;let m=this._values[h];if(m){const v=m.get(g);if(v)return v}else m=this._values[h]=new Map;m.set(g,p);const y=this._scope[h]||(this._scope[h]=[]),b=y.length;return y[b]=d.ref,p.setValue(d,{property:h,itemIndex:b}),p}getValue(u,d){const f=this._values[u];if(f)return f.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${u}${f.scopePath}`})}scopeCode(u=this._values,d,f){return this._reduceValues(u,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},d,f)}_reduceValues(u,d,f={},p){let h=t.nil;for(const g in u){const m=u[g];if(!m)continue;const y=f[g]=f[g]||new Map;m.forEach(b=>{if(y.has(b))return;y.set(b,r.Started);let v=d(b);if(v){const x=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${x} ${b} = ${v};${this.opts._n}`}else if(v=p==null?void 0:p(b))h=(0,t._)`${h}${v}${this.opts._n}`;else throw new n(b);y.set(b,r.Completed)})}return h}}e.ValueScope=l})(qm);(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=Zl,n=qm;var r=Zl;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=qm;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(F,A){return this}}class s extends a{constructor(F,A,N){super(),this.varKind=F,this.name=A,this.rhs=N}render({es5:F,_n:A}){const N=F?n.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${q};`+A}optimizeNames(F,A){if(F[this.name.str])return this.rhs&&(this.rhs=M(this.rhs,F,A)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class l extends a{constructor(F,A,N){super(),this.lhs=F,this.rhs=A,this.sideEffects=N}render({_n:F}){return`${this.lhs} = ${this.rhs};`+F}optimizeNames(F,A){if(!(this.lhs instanceof t.Name&&!F[this.lhs.str]&&!this.sideEffects))return this.rhs=M(this.rhs,F,A),this}get names(){const F=this.lhs instanceof t.Name?{}:{...this.lhs.names};return $(F,this.rhs)}}class c extends l{constructor(F,A,N,q){super(F,N,q),this.op=A}render({_n:F}){return`${this.lhs} ${this.op}= ${this.rhs};`+F}}class u extends a{constructor(F){super(),this.label=F,this.names={}}render({_n:F}){return`${this.label}:`+F}}class d extends a{constructor(F){super(),this.label=F,this.names={}}render({_n:F}){return`break${this.label?` ${this.label}`:""};`+F}}class f extends a{constructor(F){super(),this.error=F}render({_n:F}){return`throw ${this.error};`+F}get names(){return this.error.names}}class p extends a{constructor(F){super(),this.code=F}render({_n:F}){return`${this.code};`+F}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(F,A){return this.code=M(this.code,F,A),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends a{constructor(F=[]){super(),this.nodes=F}render(F){return this.nodes.reduce((A,N)=>A+N.render(F),"")}optimizeNodes(){const{nodes:F}=this;let A=F.length;for(;A--;){const N=F[A].optimizeNodes();Array.isArray(N)?F.splice(A,1,...N):N?F[A]=N:F.splice(A,1)}return F.length>0?this:void 0}optimizeNames(F,A){const{nodes:N}=this;let q=N.length;for(;q--;){const Y=N[q];Y.optimizeNames(F,A)||(j(F,Y.names),N.splice(q,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((F,A)=>k(F,A.names),{})}}class g extends h{render(F){return"{"+F._n+super.render(F)+"}"+F._n}}class m extends h{}class y extends g{}y.kind="else";class b extends g{constructor(F,A){super(A),this.condition=F}render(F){let A=`if(${this.condition})`+super.render(F);return this.else&&(A+="else "+this.else.render(F)),A}optimizeNodes(){super.optimizeNodes();const F=this.condition;if(F===!0)return this.nodes;let A=this.else;if(A){const N=A.optimizeNodes();A=this.else=Array.isArray(N)?new y(N):N}if(A)return F===!1?A instanceof b?A:A.nodes:this.nodes.length?this:new b(W(F),A instanceof b?[A]:A.nodes);if(!(F===!1||!this.nodes.length))return this}optimizeNames(F,A){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(F,A),!!(super.optimizeNames(F,A)||this.else))return this.condition=M(this.condition,F,A),this}get names(){const F=super.names;return $(F,this.condition),this.else&&k(F,this.else.names),F}}b.kind="if";class v extends g{}v.kind="for";class x extends v{constructor(F){super(),this.iteration=F}render(F){return`for(${this.iteration})`+super.render(F)}optimizeNames(F,A){if(super.optimizeNames(F,A))return this.iteration=M(this.iteration,F,A),this}get names(){return k(super.names,this.iteration.names)}}class w extends v{constructor(F,A,N,q){super(),this.varKind=F,this.name=A,this.from=N,this.to=q}render(F){const A=F.es5?n.varKinds.var:this.varKind,{name:N,from:q,to:Y}=this;return`for(${A} ${N}=${q}; ${N}<${Y}; ${N}++)`+super.render(F)}get names(){const F=$(super.names,this.from);return $(F,this.to)}}class O extends v{constructor(F,A,N,q){super(),this.loop=F,this.varKind=A,this.name=N,this.iterable=q}render(F){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(F)}optimizeNames(F,A){if(super.optimizeNames(F,A))return this.iterable=M(this.iterable,F,A),this}get names(){return k(super.names,this.iterable.names)}}class E extends g{constructor(F,A,N){super(),this.name=F,this.args=A,this.async=N}render(F){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(F)}}E.kind="func";class C extends h{render(F){return"return "+super.render(F)}}C.kind="return";class S extends g{render(F){let A="try"+super.render(F);return this.catch&&(A+=this.catch.render(F)),this.finally&&(A+=this.finally.render(F)),A}optimizeNodes(){var F,A;return super.optimizeNodes(),(F=this.catch)===null||F===void 0||F.optimizeNodes(),(A=this.finally)===null||A===void 0||A.optimizeNodes(),this}optimizeNames(F,A){var N,q;return super.optimizeNames(F,A),(N=this.catch)===null||N===void 0||N.optimizeNames(F,A),(q=this.finally)===null||q===void 0||q.optimizeNames(F,A),this}get names(){const F=super.names;return this.catch&&k(F,this.catch.names),this.finally&&k(F,this.finally.names),F}}class P extends g{constructor(F){super(),this.error=F}render(F){return`catch(${this.error})`+super.render(F)}}P.kind="catch";class T extends g{render(F){return"finally"+super.render(F)}}T.kind="finally";class _{constructor(F,A={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...A,_n:A.lines?`
`:""},this._extScope=F,this._scope=new n.Scope({parent:F}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(F){return this._scope.name(F)}scopeName(F){return this._extScope.name(F)}scopeValue(F,A){const N=this._extScope.value(F,A);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(F,A){return this._extScope.getValue(F,A)}scopeRefs(F){return this._extScope.scopeRefs(F,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(F,A,N,q){const Y=this._scope.toName(A);return N!==void 0&&q&&(this._constants[Y.str]=N),this._leafNode(new s(F,Y,N)),Y}const(F,A,N){return this._def(n.varKinds.const,F,A,N)}let(F,A,N){return this._def(n.varKinds.let,F,A,N)}var(F,A,N){return this._def(n.varKinds.var,F,A,N)}assign(F,A,N){return this._leafNode(new l(F,A,N))}add(F,A){return this._leafNode(new c(F,e.operators.ADD,A))}code(F){return typeof F=="function"?F():F!==t.nil&&this._leafNode(new p(F)),this}object(...F){const A=["{"];for(const[N,q]of F)A.length>1&&A.push(","),A.push(N),(N!==q||this.opts.es5)&&(A.push(":"),(0,t.addCodeArg)(A,q));return A.push("}"),new t._Code(A)}if(F,A,N){if(this._blockNode(new b(F)),A&&N)this.code(A).else().code(N).endIf();else if(A)this.code(A).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(F){return this._elseNode(new b(F))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(b,y)}_for(F,A){return this._blockNode(F),A&&this.code(A).endFor(),this}for(F,A){return this._for(new x(F),A)}forRange(F,A,N,q,Y=this.opts.es5?n.varKinds.var:n.varKinds.let){const G=this._scope.toName(F);return this._for(new w(Y,G,A,N),()=>q(G))}forOf(F,A,N,q=n.varKinds.const){const Y=this._scope.toName(F);if(this.opts.es5){const G=A instanceof t.Name?A:this.var("_arr",A);return this.forRange("_i",0,(0,t._)`${G}.length`,K=>{this.var(Y,(0,t._)`${G}[${K}]`),N(Y)})}return this._for(new O("of",q,Y,A),()=>N(Y))}forIn(F,A,N,q=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(F,(0,t._)`Object.keys(${A})`,N);const Y=this._scope.toName(F);return this._for(new O("in",q,Y,A),()=>N(Y))}endFor(){return this._endBlockNode(v)}label(F){return this._leafNode(new u(F))}break(F){return this._leafNode(new d(F))}return(F){const A=new C;if(this._blockNode(A),this.code(F),A.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(F,A,N){if(!A&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new S;if(this._blockNode(q),this.code(F),A){const Y=this.name("e");this._currNode=q.catch=new P(Y),A(Y)}return N&&(this._currNode=q.finally=new T,this.code(N)),this._endBlockNode(P,T)}throw(F){return this._leafNode(new f(F))}block(F,A){return this._blockStarts.push(this._nodes.length),F&&this.code(F).endBlock(A),this}endBlock(F){const A=this._blockStarts.pop();if(A===void 0)throw new Error("CodeGen: not in self-balancing block");const N=this._nodes.length-A;if(N<0||F!==void 0&&N!==F)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${F} expected`);return this._nodes.length=A,this}func(F,A=t.nil,N,q){return this._blockNode(new E(F,A,N)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode(E)}optimize(F=1){for(;F-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(F){return this._currNode.nodes.push(F),this}_blockNode(F){this._currNode.nodes.push(F),this._nodes.push(F)}_endBlockNode(F,A){const N=this._currNode;if(N instanceof F||A&&N instanceof A)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${A?`${F.kind}/${A.kind}`:F.kind}"`)}_elseNode(F){const A=this._currNode;if(!(A instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=A.else=F,this}get _root(){return this._nodes[0]}get _currNode(){const F=this._nodes;return F[F.length-1]}set _currNode(F){const A=this._nodes;A[A.length-1]=F}}e.CodeGen=_;function k(z,F){for(const A in F)z[A]=(z[A]||0)+(F[A]||0);return z}function $(z,F){return F instanceof t._CodeOrName?k(z,F.names):z}function M(z,F,A){if(z instanceof t.Name)return N(z);if(!q(z))return z;return new t._Code(z._items.reduce((Y,G)=>(G instanceof t.Name&&(G=N(G)),G instanceof t._Code?Y.push(...G._items):Y.push(G),Y),[]));function N(Y){const G=A[Y.str];return G===void 0||F[Y.str]!==1?Y:(delete F[Y.str],G)}function q(Y){return Y instanceof t._Code&&Y._items.some(G=>G instanceof t.Name&&F[G.str]===1&&A[G.str]!==void 0)}}function j(z,F){for(const A in F)z[A]=(z[A]||0)-(F[A]||0)}function W(z){return typeof z=="boolean"||typeof z=="number"||z===null?!z:(0,t._)`!${B(z)}`}e.not=W;const H=D(e.operators.AND);function X(...z){return z.reduce(H)}e.and=X;const U=D(e.operators.OR);function L(...z){return z.reduce(U)}e.or=L;function D(z){return(F,A)=>F===t.nil?A:A===t.nil?F:(0,t._)`${B(F)} ${z} ${B(A)}`}function B(z){return z instanceof t.Name?z:(0,t._)`(${z})`}})(yt);var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.checkStrictMode=ze.getErrorPath=ze.Type=ze.useFunc=ze.setEvaluated=ze.evaluatedPropsToName=ze.mergeEvaluated=ze.eachItem=ze.unescapeJsonPointer=ze.escapeJsonPointer=ze.escapeFragment=ze.unescapeFragment=ze.schemaRefOrVal=ze.schemaHasRulesButRef=ze.schemaHasRules=ze.checkUnknownRules=ze.alwaysValidSchema=ze.toHash=void 0;const Jt=yt,QQ=Zl;function JQ(e){const t={};for(const n of e)t[n]=!0;return t}ze.toHash=JQ;function eJ(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(WP(e,t),!qP(t,e.self.RULES.all))}ze.alwaysValidSchema=eJ;function WP(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema||typeof t=="boolean")return;const i=r.RULES.keywords;for(const a in t)i[a]||YP(e,`unknown keyword: "${a}"`)}ze.checkUnknownRules=WP;function qP(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(t[n])return!0;return!1}ze.schemaHasRules=qP;function tJ(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(n!=="$ref"&&t.all[n])return!0;return!1}ze.schemaHasRulesButRef=tJ;function nJ({topSchemaRef:e,schemaPath:t},n,r,i){if(!i){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,Jt._)`${n}`}return(0,Jt._)`${e}${t}${(0,Jt.getProperty)(r)}`}ze.schemaRefOrVal=nJ;function rJ(e){return UP(decodeURIComponent(e))}ze.unescapeFragment=rJ;function oJ(e){return encodeURIComponent(Iy(e))}ze.escapeFragment=oJ;function Iy(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ze.escapeJsonPointer=Iy;function UP(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ze.unescapeJsonPointer=UP;function iJ(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}ze.eachItem=iJ;function Rx({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:r}){return(i,a,s,l)=>{const c=s===void 0?a:s instanceof Jt.Name?(a instanceof Jt.Name?e(i,a,s):t(i,a,s),s):a instanceof Jt.Name?(t(i,s,a),a):n(a,s);return l===Jt.Name&&!(c instanceof Jt.Name)?r(i,c):c}}ze.mergeEvaluated={props:Rx({mergeNames:(e,t,n)=>e.if((0,Jt._)`${n} !== true && ${t} !== undefined`,()=>{e.if((0,Jt._)`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,(0,Jt._)`${n} || {}`).code((0,Jt._)`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if((0,Jt._)`${n} !== true`,()=>{t===!0?e.assign(n,!0):(e.assign(n,(0,Jt._)`${n} || {}`),Ny(e,n,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:HP}),items:Rx({mergeNames:(e,t,n)=>e.if((0,Jt._)`${n} !== true && ${t} !== undefined`,()=>e.assign(n,(0,Jt._)`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if((0,Jt._)`${n} !== true`,()=>e.assign(n,t===!0?!0:(0,Jt._)`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function HP(e,t){if(t===!0)return e.var("props",!0);const n=e.var("props",(0,Jt._)`{}`);return t!==void 0&&Ny(e,n,t),n}ze.evaluatedPropsToName=HP;function Ny(e,t,n){Object.keys(n).forEach(r=>e.assign((0,Jt._)`${t}${(0,Jt.getProperty)(r)}`,!0))}ze.setEvaluated=Ny;const Mx={};function aJ(e,t){return e.scopeValue("func",{ref:t,code:Mx[t.code]||(Mx[t.code]=new QQ._Code(t.code))})}ze.useFunc=aJ;var Um;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Um||(ze.Type=Um={}));function sJ(e,t,n){if(e instanceof Jt.Name){const r=t===Um.Num;return n?r?(0,Jt._)`"[" + ${e} + "]"`:(0,Jt._)`"['" + ${e} + "']"`:r?(0,Jt._)`"/" + ${e}`:(0,Jt._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,Jt.getProperty)(e).toString():"/"+Iy(e)}ze.getErrorPath=sJ;function YP(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw new Error(t);e.self.logger.warn(t)}}ze.checkStrictMode=YP;var Po={};Object.defineProperty(Po,"__esModule",{value:!0});const qn=yt,lJ={data:new qn.Name("data"),valCxt:new qn.Name("valCxt"),instancePath:new qn.Name("instancePath"),parentData:new qn.Name("parentData"),parentDataProperty:new qn.Name("parentDataProperty"),rootData:new qn.Name("rootData"),dynamicAnchors:new qn.Name("dynamicAnchors"),vErrors:new qn.Name("vErrors"),errors:new qn.Name("errors"),this:new qn.Name("this"),self:new qn.Name("self"),scope:new qn.Name("scope"),json:new qn.Name("json"),jsonPos:new qn.Name("jsonPos"),jsonLen:new qn.Name("jsonLen"),jsonPart:new qn.Name("jsonPart")};Po.default=lJ;(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=yt,n=ze,r=Po;e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:b})=>b?(0,t.str)`"${y}" keyword must be ${b} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function i(y,b=e.keywordError,v,x){const{it:w}=y,{gen:O,compositeRule:E,allErrors:C}=w,S=f(y,b,v);x??(E||C)?c(O,S):u(w,(0,t._)`[${S}]`)}e.reportError=i;function a(y,b=e.keywordError,v){const{it:x}=y,{gen:w,compositeRule:O,allErrors:E}=x,C=f(y,b,v);c(w,C),O||E||u(x,r.default.vErrors)}e.reportExtraError=a;function s(y,b){y.assign(r.default.errors,b),y.if((0,t._)`${r.default.vErrors} !== null`,()=>y.if(b,()=>y.assign((0,t._)`${r.default.vErrors}.length`,b),()=>y.assign(r.default.vErrors,null)))}e.resetErrorsCount=s;function l({gen:y,keyword:b,schemaValue:v,data:x,errsCount:w,it:O}){if(w===void 0)throw new Error("ajv implementation error");const E=y.name("err");y.forRange("i",w,r.default.errors,C=>{y.const(E,(0,t._)`${r.default.vErrors}[${C}]`),y.if((0,t._)`${E}.instancePath === undefined`,()=>y.assign((0,t._)`${E}.instancePath`,(0,t.strConcat)(r.default.instancePath,O.errorPath))),y.assign((0,t._)`${E}.schemaPath`,(0,t.str)`${O.errSchemaPath}/${b}`),O.opts.verbose&&(y.assign((0,t._)`${E}.schema`,v),y.assign((0,t._)`${E}.data`,x))})}e.extendErrors=l;function c(y,b){const v=y.const("err",b);y.if((0,t._)`${r.default.vErrors} === null`,()=>y.assign(r.default.vErrors,(0,t._)`[${v}]`),(0,t._)`${r.default.vErrors}.push(${v})`),y.code((0,t._)`${r.default.errors}++`)}function u(y,b){const{gen:v,validateName:x,schemaEnv:w}=y;w.$async?v.throw((0,t._)`new ${y.ValidationError}(${b})`):(v.assign((0,t._)`${x}.errors`,b),v.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 f(y,b,v){const{createErrors:x}=y.it;return x===!1?(0,t._)`{}`:p(y,b,v)}function p(y,b,v={}){const{gen:x,it:w}=y,O=[h(w,v),g(y,v)];return m(y,b,O),x.object(...O)}function h({errorPath:y},{instancePath:b}){const v=b?(0,t.str)`${y}${(0,n.getErrorPath)(b,n.Type.Str)}`:y;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,v)]}function g({keyword:y,it:{errSchemaPath:b}},{schemaPath:v,parentSchema:x}){let w=x?b:(0,t.str)`${b}/${y}`;return v&&(w=(0,t.str)`${w}${(0,n.getErrorPath)(v,n.Type.Str)}`),[d.schemaPath,w]}function m(y,{params:b,message:v},x){const{keyword:w,data:O,schemaValue:E,it:C}=y,{opts:S,propertyName:P,topSchemaRef:T,schemaPath:_}=C;x.push([d.keyword,w],[d.params,typeof b=="function"?b(y):b||(0,t._)`{}`]),S.messages&&x.push([d.message,typeof v=="function"?v(y):v]),S.verbose&&x.push([d.schema,E],[d.parentSchema,(0,t._)`${T}${_}`],[r.default.data,O]),P&&x.push([d.propertyName,P])}})(zc);Object.defineProperty(as,"__esModule",{value:!0});as.boolOrEmptySchema=as.topBoolOrEmptySchema=void 0;const cJ=zc,uJ=yt,dJ=Po,fJ={message:"boolean schema is false"};function pJ(e){const{gen:t,schema:n,validateName:r}=e;n===!1?GP(e,!1):typeof n=="object"&&n.$async===!0?t.return(dJ.default.data):(t.assign((0,uJ._)`${r}.errors`,null),t.return(!0))}as.topBoolOrEmptySchema=pJ;function hJ(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),GP(e)):n.var(t,!0)}as.boolOrEmptySchema=hJ;function GP(e,t){const{gen:n,data:r}=e,i={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,cJ.reportError)(i,fJ,void 0,t)}var _n={},Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.getRules=Gi.isJSONType=void 0;const mJ=["string","number","integer","boolean","null","object","array"],gJ=new Set(mJ);function yJ(e){return typeof e=="string"&&gJ.has(e)}Gi.isJSONType=yJ;function bJ(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Gi.getRules=bJ;var Io={};Object.defineProperty(Io,"__esModule",{value:!0});Io.shouldUseRule=Io.shouldUseGroup=Io.schemaHasRulesForType=void 0;function vJ({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&KP(e,r)}Io.schemaHasRulesForType=vJ;function KP(e,t){return t.rules.some(n=>XP(e,n))}Io.shouldUseGroup=KP;function XP(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Io.shouldUseRule=XP;Object.defineProperty(_n,"__esModule",{value:!0});_n.reportTypeError=_n.checkDataTypes=_n.checkDataType=_n.coerceAndCheckDataType=_n.getJSONTypes=_n.getSchemaTypes=_n.DataType=void 0;const wJ=Gi,xJ=Io,OJ=zc,ht=yt,ZP=ze;var Ba;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ba||(_n.DataType=Ba={}));function TJ(e){const t=QP(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}_n.getSchemaTypes=TJ;function QP(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(wJ.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}_n.getJSONTypes=QP;function SJ(e,t){const{gen:n,data:r,opts:i}=e,a=EJ(t,i.coerceTypes),s=t.length>0&&!(a.length===0&&t.length===1&&(0,xJ.schemaHasRulesForType)(e,t[0]));if(s){const l=Ay(t,r,i.strictNumbers,Ba.Wrong);n.if(l,()=>{a.length?CJ(e,t,a):jy(e)})}return s}_n.coerceAndCheckDataType=SJ;const JP=new Set(["string","number","integer","boolean","null"]);function EJ(e,t){return t?e.filter(n=>JP.has(n)||t==="array"&&n==="array"):[]}function CJ(e,t,n){const{gen:r,data:i,opts:a}=e,s=r.let("dataType",(0,ht._)`typeof ${i}`),l=r.let("coerced",(0,ht._)`undefined`);a.coerceTypes==="array"&&r.if((0,ht._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,(0,ht._)`${i}[0]`).assign(s,(0,ht._)`typeof ${i}`).if(Ay(t,i,a.strictNumbers),()=>r.assign(l,i))),r.if((0,ht._)`${l} !== undefined`);for(const u of n)(JP.has(u)||u==="array"&&a.coerceTypes==="array")&&c(u);r.else(),jy(e),r.endIf(),r.if((0,ht._)`${l} !== undefined`,()=>{r.assign(i,l),PJ(e,l)});function c(u){switch(u){case"string":r.elseIf((0,ht._)`${s} == "number" || ${s} == "boolean"`).assign(l,(0,ht._)`"" + ${i}`).elseIf((0,ht._)`${i} === null`).assign(l,(0,ht._)`""`);return;case"number":r.elseIf((0,ht._)`${s} == "boolean" || ${i} === null
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(l,(0,ht._)`+${i}`);return;case"integer":r.elseIf((0,ht._)`${s} === "boolean" || ${i} === null
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(l,(0,ht._)`+${i}`);return;case"boolean":r.elseIf((0,ht._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(l,!1).elseIf((0,ht._)`${i} === "true" || ${i} === 1`).assign(l,!0);return;case"null":r.elseIf((0,ht._)`${i} === "" || ${i} === 0 || ${i} === false`),r.assign(l,null);return;case"array":r.elseIf((0,ht._)`${s} === "string" || ${s} === "number"
|| ${s} === "boolean" || ${i} === null`).assign(l,(0,ht._)`[${i}]`)}}}function PJ({gen:e,parentData:t,parentDataProperty:n},r){e.if((0,ht._)`${t} !== undefined`,()=>e.assign((0,ht._)`${t}[${n}]`,r))}function Hm(e,t,n,r=Ba.Correct){const i=r===Ba.Correct?ht.operators.EQ:ht.operators.NEQ;let a;switch(e){case"null":return(0,ht._)`${t} ${i} null`;case"array":a=(0,ht._)`Array.isArray(${t})`;break;case"object":a=(0,ht._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=s((0,ht._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=s();break;default:return(0,ht._)`typeof ${t} ${i} ${e}`}return r===Ba.Correct?a:(0,ht.not)(a);function s(l=ht.nil){return(0,ht.and)((0,ht._)`typeof ${t} == "number"`,l,n?(0,ht._)`isFinite(${t})`:ht.nil)}}_n.checkDataType=Hm;function Ay(e,t,n,r){if(e.length===1)return Hm(e[0],t,n,r);let i;const a=(0,ZP.toHash)(e);if(a.array&&a.object){const s=(0,ht._)`typeof ${t} != "object"`;i=a.null?s:(0,ht._)`!${t} || ${s}`,delete a.null,delete a.array,delete a.object}else i=ht.nil;a.number&&delete a.integer;for(const s in a)i=(0,ht.and)(i,Hm(s,t,n,r));return i}_n.checkDataTypes=Ay;const _J={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ht._)`{type: ${e}}`:(0,ht._)`{type: ${t}}`};function jy(e){const t=kJ(e);(0,OJ.reportError)(t,_J)}_n.reportTypeError=jy;function kJ(e){const{gen:t,data:n,schema:r}=e,i=(0,ZP.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}var op={};Object.defineProperty(op,"__esModule",{value:!0});op.assignDefaults=void 0;const va=yt,DJ=ze;function $J(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const i in n)Ix(e,i,n[i].default);else t==="array"&&Array.isArray(r)&&r.forEach((i,a)=>Ix(e,a,i.default))}op.assignDefaults=$J;function Ix(e,t,n){const{gen:r,compositeRule:i,data:a,opts:s}=e;if(n===void 0)return;const l=(0,va._)`${a}${(0,va.getProperty)(t)}`;if(i){(0,DJ.checkStrictMode)(e,`default is ignored for: ${l}`);return}let c=(0,va._)`${l} === undefined`;s.useDefaults==="empty"&&(c=(0,va._)`${c} || ${l} === null || ${l} === ""`),r.if(c,(0,va._)`${l} = ${(0,va.stringify)(n)}`)}var vo={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.validateUnion=Ot.validateArray=Ot.usePattern=Ot.callValidateCode=Ot.schemaProperties=Ot.allSchemaProperties=Ot.noPropertyInData=Ot.propertyInData=Ot.isOwnProperty=Ot.hasPropFunc=Ot.reportMissingProp=Ot.checkMissingProp=Ot.checkReportMissingProp=void 0;const rn=yt,Ly=ze,Zo=Po,RJ=ze;function MJ(e,t){const{gen:n,data:r,it:i}=e;n.if(Vy(n,r,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,rn._)`${t}`},!0),e.error()})}Ot.checkReportMissingProp=MJ;function IJ({gen:e,data:t,it:{opts:n}},r,i){return(0,rn.or)(...r.map(a=>(0,rn.and)(Vy(e,t,a,n.ownProperties),(0,rn._)`${i} = ${a}`)))}Ot.checkMissingProp=IJ;function NJ(e,t){e.setParams({missingProperty:t},!0),e.error()}Ot.reportMissingProp=NJ;function e_(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,rn._)`Object.prototype.hasOwnProperty`})}Ot.hasPropFunc=e_;function Fy(e,t,n){return(0,rn._)`${e_(e)}.call(${t}, ${n})`}Ot.isOwnProperty=Fy;function AJ(e,t,n,r){const i=(0,rn._)`${t}${(0,rn.getProperty)(n)} !== undefined`;return r?(0,rn._)`${i} && ${Fy(e,t,n)}`:i}Ot.propertyInData=AJ;function Vy(e,t,n,r){const i=(0,rn._)`${t}${(0,rn.getProperty)(n)} === undefined`;return r?(0,rn.or)(i,(0,rn.not)(Fy(e,t,n))):i}Ot.noPropertyInData=Vy;function t_(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ot.allSchemaProperties=t_;function jJ(e,t){return t_(t).filter(n=>!(0,Ly.alwaysValidSchema)(e,t[n]))}Ot.schemaProperties=jJ;function LJ({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:i,errorPath:a},it:s},l,c,u){const d=u?(0,rn._)`${e}, ${t}, ${r}${i}`:t,f=[[Zo.default.instancePath,(0,rn.strConcat)(Zo.default.instancePath,a)],[Zo.default.parentData,s.parentData],[Zo.default.parentDataProperty,s.parentDataProperty],[Zo.default.rootData,Zo.default.rootData]];s.opts.dynamicRef&&f.push([Zo.default.dynamicAnchors,Zo.default.dynamicAnchors]);const p=(0,rn._)`${d}, ${n.object(...f)}`;return c!==rn.nil?(0,rn._)`${l}.call(${c}, ${p})`:(0,rn._)`${l}(${p})`}Ot.callValidateCode=LJ;const FJ=(0,rn._)`new RegExp`;function VJ({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:i}=t.code,a=i(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,rn._)`${i.code==="new RegExp"?FJ:(0,RJ.useFunc)(e,i)}(${n}, ${r})`})}Ot.usePattern=VJ;function BJ(e){const{gen:t,data:n,keyword:r,it:i}=e,a=t.name("valid");if(i.allErrors){const l=t.let("valid",!0);return s(()=>t.assign(l,!1)),l}return t.var(a,!0),s(()=>t.break()),a;function s(l){const c=t.const("len",(0,rn._)`${n}.length`);t.forRange("i",0,c,u=>{e.subschema({keyword:r,dataProp:u,dataPropType:Ly.Type.Num},a),t.if((0,rn.not)(a),l)})}}Ot.validateArray=BJ;function zJ(e){const{gen:t,schema:n,keyword:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(c=>(0,Ly.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block(()=>n.forEach((c,u)=>{const d=e.subschema({keyword:r,schemaProp:u,compositeRule:!0},l);t.assign(s,(0,rn._)`${s} || ${l}`),e.mergeValidEvaluated(d,l)||t.if((0,rn.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Ot.validateUnion=zJ;Object.defineProperty(vo,"__esModule",{value:!0});vo.validateKeywordUsage=vo.validSchemaType=vo.funcKeywordCode=vo.macroKeywordCode=void 0;const Xn=yt,Di=Po,WJ=Ot,qJ=zc;function UJ(e,t){const{gen:n,keyword:r,schema:i,parentSchema:a,it:s}=e,l=t.macro.call(s.self,i,a,s),c=n_(n,r,l);s.opts.validateSchema!==!1&&s.self.validateSchema(l,!0);const u=n.name("valid");e.subschema({schema:l,schemaPath:Xn.nil,errSchemaPath:`${s.errSchemaPath}/${r}`,topSchemaRef:c,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}vo.macroKeywordCode=UJ;function HJ(e,t){var n;const{gen:r,keyword:i,schema:a,parentSchema:s,$data:l,it:c}=e;GJ(c,t);const u=!l&&t.compile?t.compile.call(c.self,a,s,c):t.validate,d=n_(r,i,u),f=r.let("valid");e.block$data(f,p),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function p(){if(t.errors===!1)m(),t.modifying&&Nx(e),y(()=>e.error());else{const b=t.async?h():g();t.modifying&&Nx(e),y(()=>YJ(e,b))}}function h(){const b=r.let("ruleErrs",null);return r.try(()=>m((0,Xn._)`await `),v=>r.assign(f,!1).if((0,Xn._)`${v} instanceof ${c.ValidationError}`,()=>r.assign(b,(0,Xn._)`${v}.errors`),()=>r.throw(v))),b}function g(){const b=(0,Xn._)`${d}.errors`;return r.assign(b,null),m(Xn.nil),b}function m(b=t.async?(0,Xn._)`await `:Xn.nil){const v=c.opts.passContext?Di.default.this:Di.default.self,x=!("compile"in t&&!l||t.schema===!1);r.assign(f,(0,Xn._)`${b}${(0,WJ.callValidateCode)(e,d,v,x)}`,t.modifying)}function y(b){var v;r.if((0,Xn.not)((v=t.valid)!==null&&v!==void 0?v:f),b)}}vo.funcKeywordCode=HJ;function Nx(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,Xn._)`${r.parentData}[${r.parentDataProperty}]`))}function YJ(e,t){const{gen:n}=e;n.if((0,Xn._)`Array.isArray(${t})`,()=>{n.assign(Di.default.vErrors,(0,Xn._)`${Di.default.vErrors} === null ? ${t} : ${Di.default.vErrors}.concat(${t})`).assign(Di.default.errors,(0,Xn._)`${Di.default.vErrors}.length`),(0,qJ.extendErrors)(e)},()=>e.error())}function GJ({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function n_(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,Xn.stringify)(n)})}function KJ(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}vo.validSchemaType=KJ;function XJ({schema:e,opts:t,self:n,errSchemaPath:r},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw new Error("ajv implementation error");const s=i.dependencies;if(s!=null&&s.some(l=>!Object.prototype.hasOwnProperty.call(e,l)))throw new Error(`parent schema must have dependencies of ${a}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[a])){const c=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(c);else throw new Error(c)}}vo.validateKeywordUsage=XJ;var ii={};Object.defineProperty(ii,"__esModule",{value:!0});ii.extendSubschemaMode=ii.extendSubschemaData=ii.getSubschema=void 0;const mo=yt,r_=ze;function ZJ(e,{keyword:t,schemaProp:n,schema:r,schemaPath:i,errSchemaPath:a,topSchemaRef:s}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const l=e.schema[t];return n===void 0?{schema:l,schemaPath:(0,mo._)`${e.schemaPath}${(0,mo.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:l[n],schemaPath:(0,mo._)`${e.schemaPath}${(0,mo.getProperty)(t)}${(0,mo.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,r_.escapeFragment)(n)}`}}if(r!==void 0){if(i===void 0||a===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:i,topSchemaRef:s,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}ii.getSubschema=ZJ;function QJ(e,t,{dataProp:n,dataPropType:r,data:i,dataTypes:a,propertyName:s}){if(i!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(n!==void 0){const{errorPath:u,dataPathArr:d,opts:f}=t,p=l.let("data",(0,mo._)`${t.data}${(0,mo.getProperty)(n)}`,!0);c(p),e.errorPath=(0,mo.str)`${u}${(0,r_.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,mo._)`${n}`,e.dataPathArr=[...d,e.parentDataProperty]}if(i!==void 0){const u=i instanceof mo.Name?i:l.let("data",i,!0);c(u),s!==void 0&&(e.propertyName=s)}a&&(e.dataTypes=a);function c(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}}ii.extendSubschemaData=QJ;function JJ(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:a}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}ii.extendSubschemaMode=JJ;var Fn={},o_={exports:{}},ri=o_.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};Hu(t,r,i,e,"",e)};ri.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ri.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ri.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ri.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 Hu(e,t,n,r,i,a,s,l,c,u){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,i,a,s,l,c,u);for(var d in r){var f=r[d];if(Array.isArray(f)){if(d in ri.arrayKeywords)for(var p=0;p<f.length;p++)Hu(e,t,n,f[p],i+"/"+d+"/"+p,a,i,d,r,p)}else if(d in ri.propsKeywords){if(f&&typeof f=="object")for(var h in f)Hu(e,t,n,f[h],i+"/"+d+"/"+eee(h),a,i,d,r,h)}else(d in ri.keywords||e.allKeys&&!(d in ri.skipKeywords))&&Hu(e,t,n,f,i+"/"+d,a,i,d,r)}n(r,i,a,s,l,c,u)}}function eee(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var tee=o_.exports;Object.defineProperty(Fn,"__esModule",{value:!0});Fn.getSchemaRefs=Fn.resolveUrl=Fn.normalizeId=Fn._getFullPath=Fn.getFullPath=Fn.inlineRef=void 0;const nee=ze,ree=Lg,oee=tee,iee=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function aee(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Ym(e):t?i_(e)<=t:!1}Fn.inlineRef=aee;const see=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ym(e){for(const t in e){if(see.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(Ym)||typeof n=="object"&&Ym(n))return!0}return!1}function i_(e){let t=0;for(const n in e){if(n==="$ref")return 1/0;if(t++,!iee.has(n)&&(typeof e[n]=="object"&&(0,nee.eachItem)(e[n],r=>t+=i_(r)),t===1/0))return 1/0}return t}function a_(e,t="",n){n!==!1&&(t=za(t));const r=e.parse(t);return s_(e,r)}Fn.getFullPath=a_;function s_(e,t){return e.serialize(t).split("#")[0]+"#"}Fn._getFullPath=s_;const lee=/#\/?$/;function za(e){return e?e.replace(lee,""):""}Fn.normalizeId=za;function cee(e,t,n){return n=za(n),e.resolve(t,n)}Fn.resolveUrl=cee;const uee=/^[a-z_][-a-z0-9._]*$/i;function dee(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,i=za(e[n]||t),a={"":i},s=a_(r,i,!1),l={},c=new Set;return oee(e,{allKeys:!0},(f,p,h,g)=>{if(g===void 0)return;const m=s+p;let y=a[g];typeof f[n]=="string"&&(y=b.call(this,f[n])),v.call(this,f.$anchor),v.call(this,f.$dynamicAnchor),a[p]=y;function b(x){const w=this.opts.uriResolver.resolve;if(x=za(y?w(y,x):x),c.has(x))throw d(x);c.add(x);let O=this.refs[x];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?u(f,O.schema,x):x!==za(m)&&(x[0]==="#"?(u(f,l[x],x),l[x]=f):this.refs[x]=m),x}function v(x){if(typeof x=="string"){if(!uee.test(x))throw new Error(`invalid anchor "${x}"`);b.call(this,`#${x}`)}}}),l;function u(f,p,h){if(p!==void 0&&!ree(f,p))throw d(h)}function d(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Fn.getSchemaRefs=dee;Object.defineProperty(no,"__esModule",{value:!0});no.getData=no.KeywordCxt=no.validateFunctionCode=void 0;const l_=as,Ax=_n,By=Io,Pd=_n,fee=op,$l=vo,Dh=ii,Qe=yt,it=Po,pee=Fn,No=ze,nl=zc;function hee(e){if(d_(e)&&(f_(e),u_(e))){yee(e);return}c_(e,()=>(0,l_.topBoolOrEmptySchema)(e))}no.validateFunctionCode=hee;function c_({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},a){i.code.es5?e.func(t,(0,Qe._)`${it.default.data}, ${it.default.valCxt}`,r.$async,()=>{e.code((0,Qe._)`"use strict"; ${jx(n,i)}`),gee(e,i),e.code(a)}):e.func(t,(0,Qe._)`${it.default.data}, ${mee(i)}`,r.$async,()=>e.code(jx(n,i)).code(a))}function mee(e){return(0,Qe._)`{${it.default.instancePath}="", ${it.default.parentData}, ${it.default.parentDataProperty}, ${it.default.rootData}=${it.default.data}${e.dynamicRef?(0,Qe._)`, ${it.default.dynamicAnchors}={}`:Qe.nil}}={}`}function gee(e,t){e.if(it.default.valCxt,()=>{e.var(it.default.instancePath,(0,Qe._)`${it.default.valCxt}.${it.default.instancePath}`),e.var(it.default.parentData,(0,Qe._)`${it.default.valCxt}.${it.default.parentData}`),e.var(it.default.parentDataProperty,(0,Qe._)`${it.default.valCxt}.${it.default.parentDataProperty}`),e.var(it.default.rootData,(0,Qe._)`${it.default.valCxt}.${it.default.rootData}`),t.dynamicRef&&e.var(it.default.dynamicAnchors,(0,Qe._)`${it.default.valCxt}.${it.default.dynamicAnchors}`)},()=>{e.var(it.default.instancePath,(0,Qe._)`""`),e.var(it.default.parentData,(0,Qe._)`undefined`),e.var(it.default.parentDataProperty,(0,Qe._)`undefined`),e.var(it.default.rootData,it.default.data),t.dynamicRef&&e.var(it.default.dynamicAnchors,(0,Qe._)`{}`)})}function yee(e){const{schema:t,opts:n,gen:r}=e;c_(e,()=>{n.$comment&&t.$comment&&h_(e),Oee(e),r.let(it.default.vErrors,null),r.let(it.default.errors,0),n.unevaluated&&bee(e),p_(e),Eee(e)})}function bee(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,Qe._)`${n}.evaluated`),t.if((0,Qe._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Qe._)`${e.evaluated}.props`,(0,Qe._)`undefined`)),t.if((0,Qe._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Qe._)`${e.evaluated}.items`,(0,Qe._)`undefined`))}function jx(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,Qe._)`/*# sourceURL=${n} */`:Qe.nil}function vee(e,t){if(d_(e)&&(f_(e),u_(e))){wee(e,t);return}(0,l_.boolOrEmptySchema)(e,t)}function u_({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function d_(e){return typeof e.schema!="boolean"}function wee(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&h_(e),Tee(e),See(e);const a=r.const("_errs",it.default.errors);p_(e,a),r.var(t,(0,Qe._)`${a} === ${it.default.errors}`)}function f_(e){(0,No.checkUnknownRules)(e),xee(e)}function p_(e,t){if(e.opts.jtd)return Lx(e,[],!1,t);const n=(0,Ax.getSchemaTypes)(e.schema),r=(0,Ax.coerceAndCheckDataType)(e,n);Lx(e,n,!r,t)}function xee(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,No.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Oee(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,No.checkStrictMode)(e,"default is ignored in the schema root")}function Tee(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,pee.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function See(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function h_({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const a=n.$comment;if(i.$comment===!0)e.code((0,Qe._)`${it.default.self}.logger.log(${a})`);else if(typeof i.$comment=="function"){const s=(0,Qe.str)`${r}/$comment`,l=e.scopeValue("root",{ref:t.root});e.code((0,Qe._)`${it.default.self}.opts.$comment(${a}, ${s}, ${l}.schema)`)}}function Eee(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:a}=e;n.$async?t.if((0,Qe._)`${it.default.errors} === 0`,()=>t.return(it.default.data),()=>t.throw((0,Qe._)`new ${i}(${it.default.vErrors})`)):(t.assign((0,Qe._)`${r}.errors`,it.default.vErrors),a.unevaluated&&Cee(e),t.return((0,Qe._)`${it.default.errors} === 0`))}function Cee({gen:e,evaluated:t,props:n,items:r}){n instanceof Qe.Name&&e.assign((0,Qe._)`${t}.props`,n),r instanceof Qe.Name&&e.assign((0,Qe._)`${t}.items`,r)}function Lx(e,t,n,r){const{gen:i,schema:a,data:s,allErrors:l,opts:c,self:u}=e,{RULES:d}=u;if(a.$ref&&(c.ignoreKeywordsWithRef||!(0,No.schemaHasRulesButRef)(a,d))){i.block(()=>y_(e,"$ref",d.all.$ref.definition));return}c.jtd||Pee(e,t),i.block(()=>{for(const p of d.rules)f(p);f(d.post)});function f(p){(0,By.shouldUseGroup)(a,p)&&(p.type?(i.if((0,Pd.checkDataType)(p.type,s,c.strictNumbers)),Fx(e,p),t.length===1&&t[0]===p.type&&n&&(i.else(),(0,Pd.reportTypeError)(e)),i.endIf()):Fx(e,p),l||i.if((0,Qe._)`${it.default.errors} === ${r||0}`))}}function Fx(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,fee.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,By.shouldUseRule)(r,a)&&y_(e,a.keyword,a.definition,t.type)})}function Pee(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(_ee(e,t),e.opts.allowUnionTypes||kee(e,t),Dee(e,e.dataTypes))}function _ee(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{m_(e.dataTypes,n)||zy(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Ree(e,t)}}function kee(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&zy(e,"use allowUnionTypes to allow union type keyword")}function Dee(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if(typeof i=="object"&&(0,By.shouldUseRule)(e.schema,i)){const{type:a}=i.definition;a.length&&!a.some(s=>$ee(t,s))&&zy(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function $ee(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function m_(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Ree(e,t){const n=[];for(const r of e.dataTypes)m_(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function zy(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,No.checkStrictMode)(e,t,e.opts.strictTypes)}class g_{constructor(t,n,r){if((0,$l.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,No.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",b_(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,$l.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",it.default.errors))}result(t,n,r){this.failResult((0,Qe.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,Qe.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,Qe._)`${n} !== undefined && (${(0,Qe.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?nl.reportExtraError:nl.reportError)(this,this.def.error,n)}$dataError(){(0,nl.reportError)(this,this.def.$dataError||nl.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,nl.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=Qe.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=Qe.nil,n=Qe.nil){if(!this.$data)return;const{gen:r,schemaCode:i,schemaType:a,def:s}=this;r.if((0,Qe.or)((0,Qe._)`${i} === undefined`,n)),t!==Qe.nil&&r.assign(t,!0),(a.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==Qe.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:i,it:a}=this;return(0,Qe.or)(s(),l());function s(){if(r.length){if(!(n instanceof Qe.Name))throw new Error("ajv implementation error");const c=Array.isArray(r)?r:[r];return(0,Qe._)`${(0,Pd.checkDataTypes)(c,n,a.opts.strictNumbers,Pd.DataType.Wrong)}`}return Qe.nil}function l(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Qe._)`!${c}(${n})`}return Qe.nil}}subschema(t,n){const r=(0,Dh.getSubschema)(this.it,t);(0,Dh.extendSubschemaData)(r,this.it,t),(0,Dh.extendSubschemaMode)(r,t);const i={...this.it,...r,items:void 0,props:void 0};return vee(i,n),i}mergeEvaluated(t,n){const{it:r,gen:i}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=No.mergeEvaluated.props(i,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=No.mergeEvaluated.items(i,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:i}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return i.if(n,()=>this.mergeEvaluated(t,Qe.Name)),!0}}no.KeywordCxt=g_;function y_(e,t,n,r){const i=new g_(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,$l.funcKeywordCode)(i,n):"macro"in n?(0,$l.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,$l.funcKeywordCode)(i,n)}const Mee=/^\/(?:[^~]|~0|~1)*$/,Iee=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function b_(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,a;if(e==="")return it.default.rootData;if(e[0]==="/"){if(!Mee.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,a=it.default.rootData}else{const u=Iee.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);const d=+u[1];if(i=u[2],i==="#"){if(d>=t)throw new Error(c("property/index",d));return r[t-d]}if(d>t)throw new Error(c("data",d));if(a=n[t-d],!i)return a}let s=a;const l=i.split("/");for(const u of l)u&&(a=(0,Qe._)`${a}${(0,Qe.getProperty)((0,No.unescapeJsonPointer)(u))}`,s=(0,Qe._)`${s} && ${a}`);return s;function c(u,d){return`Cannot access ${u} ${d} levels up, current level is ${t}`}}no.getData=b_;var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});class Nee extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}Wc.default=Nee;var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0});const $h=Fn;class Aee extends Error{constructor(t,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,$h.resolveUrl)(t,n,r),this.missingSchema=(0,$h.normalizeId)((0,$h.getFullPath)(t,this.missingRef))}}Ms.default=Aee;var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.resolveSchema=nr.getCompilingSchema=nr.resolveRef=nr.compileSchema=nr.SchemaEnv=void 0;const Gr=yt,jee=Wc,xi=Po,Jr=Fn,Vx=ze,Lee=no;class ip{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Jr.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}nr.SchemaEnv=ip;function Wy(e){const t=v_.call(this,e);if(t)return t;const n=(0,Jr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:i}=this.opts.code,{ownProperties:a}=this.opts,s=new Gr.CodeGen(this.scope,{es5:r,lines:i,ownProperties:a});let l;e.$async&&(l=s.scopeValue("Error",{ref:jee.default,code:(0,Gr._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const u={gen:s,allErrors:this.opts.allErrors,data:xi.default.data,parentData:xi.default.parentData,parentDataProperty:xi.default.parentDataProperty,dataNames:[xi.default.data],dataPathArr:[Gr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Gr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:l,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Gr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Gr._)`""`,opts:this.opts,self:this};let d;try{this._compilations.add(e),(0,Lee.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);const f=s.toString();d=`${s.scopeRefs(xi.default.scope)}return ${f}`,this.opts.code.process&&(d=this.opts.code.process(d,e));const h=new Function(`${xi.default.self}`,`${xi.default.scope}`,d)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:s._values}),this.opts.unevaluated){const{props:g,items:m}=u;h.evaluated={props:g instanceof Gr.Name?void 0:g,items:m instanceof Gr.Name?void 0:m,dynamicProps:g instanceof Gr.Name,dynamicItems:m instanceof Gr.Name},h.source&&(h.source.evaluated=(0,Gr.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,d&&this.logger.error("Error compiling schema, function code:",d),f}finally{this._compilations.delete(e)}}nr.compileSchema=Wy;function Fee(e,t,n){var r;n=(0,Jr.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let a=zee.call(this,e,n);if(a===void 0){const s=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:l}=this.opts;s&&(a=new ip({schema:s,schemaId:l,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=Vee.call(this,a)}nr.resolveRef=Fee;function Vee(e){return(0,Jr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Wy.call(this,e)}function v_(e){for(const t of this._compilations)if(Bee(t,e))return t}nr.getCompilingSchema=v_;function Bee(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function zee(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||ap.call(this,e,t)}function ap(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Jr._getFullPath)(this.opts.uriResolver,n);let i=(0,Jr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return Rh.call(this,n,e);const a=(0,Jr.normalizeId)(r),s=this.refs[a]||this.schemas[a];if(typeof s=="string"){const l=ap.call(this,e,s);return typeof(l==null?void 0:l.schema)!="object"?void 0:Rh.call(this,n,l)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||Wy.call(this,s),a===(0,Jr.normalizeId)(t)){const{schema:l}=s,{schemaId:c}=this.opts,u=l[c];return u&&(i=(0,Jr.resolveUrl)(this.opts.uriResolver,i,u)),new ip({schema:l,schemaId:c,root:e,baseId:i})}return Rh.call(this,n,s)}}nr.resolveSchema=ap;const Wee=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Rh(e,{baseId:t,schema:n,root:r}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const l of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const c=n[(0,Vx.unescapeFragment)(l)];if(c===void 0)return;n=c;const u=typeof n=="object"&&n[this.opts.schemaId];!Wee.has(l)&&u&&(t=(0,Jr.resolveUrl)(this.opts.uriResolver,t,u))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,Vx.schemaHasRulesButRef)(n,this.RULES)){const l=(0,Jr.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=ap.call(this,r,l)}const{schemaId:s}=this.opts;if(a=a||new ip({schema:n,schemaId:s,root:r,baseId:t}),a.schema!==a.root.schema)return a}const qee="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Uee="Meta-schema for $data reference (JSON AnySchema extension proposal)",Hee="object",Yee=["$data"],Gee={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Kee=!1,Xee={$id:qee,description:Uee,type:Hee,required:Yee,properties:Gee,additionalProperties:Kee};var qy={},sp={exports:{}};const Zee={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var Qee={HEX:Zee};const{HEX:Jee}=Qee,ete=/^(?:(?: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 w_(e){if(O_(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(ete)||[],[n]=t;return n?{host:nte(n,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function Bx(e,t=!1){let n="",r=!0;for(const i of e){if(Jee[i]===void 0)return;i!=="0"&&r===!0&&(r=!1),r||(n+=i)}return t&&n.length===0&&(n="0"),n}function tte(e){let t=0;const n={error:!1,address:"",zone:""},r=[],i=[];let a=!1,s=!1,l=!1;function c(){if(i.length){if(a===!1){const u=Bx(i);if(u!==void 0)r.push(u);else return n.error=!0,!1}i.length=0}return!0}for(let u=0;u<e.length;u++){const d=e[u];if(!(d==="["||d==="]"))if(d===":"){if(s===!0&&(l=!0),!c())break;if(t++,r.push(":"),t>7){n.error=!0;break}u-1>=0&&e[u-1]===":"&&(s=!0);continue}else if(d==="%"){if(!c())break;a=!0}else{i.push(d);continue}}return i.length&&(a?n.zone=i.join(""):l?r.push(i.join("")):r.push(Bx(i))),n.address=r.join(""),n}function x_(e){if(O_(e,":")<2)return{host:e,isIPV6:!1};const t=tte(e);if(t.error)return{host:e,isIPV6:!1};{let n=t.address,r=t.address;return t.zone&&(n+="%"+t.zone,r+="%25"+t.zone),{host:n,escapedHost:r,isIPV6:!0}}}function nte(e,t){let n="",r=!0;const i=e.length;for(let a=0;a<i;a++){const s=e[a];s==="0"&&r?(a+1<=i&&e[a+1]===t||a+1===i)&&(n+=s,r=!1):(s===t?r=!0:r=!1,n+=s)}return n}function O_(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}const zx=/^\.\.?\//u,Wx=/^\/\.(?:\/|$)/u,qx=/^\/\.\.(?:\/|$)/u,rte=/^\/?(?:.|\n)*?(?=\/|$)/u;function ote(e){const t=[];for(;e.length;)if(e.match(zx))e=e.replace(zx,"");else if(e.match(Wx))e=e.replace(Wx,"/");else if(e.match(qx))e=e.replace(qx,"/"),t.pop();else if(e==="."||e==="..")e="";else{const n=e.match(rte);if(n){const r=n[0];e=e.slice(r.length),t.push(r)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function ite(e,t){const n=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=n(e.scheme)),e.userinfo!==void 0&&(e.userinfo=n(e.userinfo)),e.host!==void 0&&(e.host=n(e.host)),e.path!==void 0&&(e.path=n(e.path)),e.query!==void 0&&(e.query=n(e.query)),e.fragment!==void 0&&(e.fragment=n(e.fragment)),e}function ate(e){const t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let n=unescape(e.host);const r=w_(n);if(r.isIPV4)n=r.host;else{const i=x_(r.host);i.isIPV6===!0?n=`[${i.escapedHost}]`:n=e.host}t.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}var ste={recomposeAuthority:ate,normalizeComponentEncoding:ite,removeDotSegments:ote,normalizeIPv4:w_,normalizeIPv6:x_};const lte=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,cte=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function T_(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function S_(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function E_(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function ute(e){return e.secure=T_(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function dte(e){if((e.port===(T_(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function fte(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(cte);if(n){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const i=`${r}:${t.nid||e.nid}`,a=Uy[i];e.path=void 0,a&&(e=a.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function pte(e,t){const n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),i=`${n}:${t.nid||r}`,a=Uy[i];a&&(e=a.serialize(e,t));const s=e,l=e.nss;return s.path=`${r||t.nid}:${l}`,t.skipEscape=!0,s}function hte(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,!t.tolerant&&(!n.uuid||!lte.test(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function mte(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const C_={scheme:"http",domainHost:!0,parse:S_,serialize:E_},gte={scheme:"https",domainHost:C_.domainHost,parse:S_,serialize:E_},Yu={scheme:"ws",domainHost:!0,parse:ute,serialize:dte},yte={scheme:"wss",domainHost:Yu.domainHost,parse:Yu.parse,serialize:Yu.serialize},bte={scheme:"urn",parse:fte,serialize:pte,skipNormalize:!0},vte={scheme:"urn:uuid",parse:hte,serialize:mte,skipNormalize:!0},Uy={http:C_,https:gte,ws:Yu,wss:yte,urn:bte,"urn:uuid":vte};var wte=Uy;const{normalizeIPv6:xte,normalizeIPv4:Ote,removeDotSegments:vl,recomposeAuthority:Tte,normalizeComponentEncoding:_u}=ste,Hy=wte;function Ste(e,t){return typeof e=="string"?e=wo(zo(e,t),t):typeof e=="object"&&(e=zo(wo(e,t),t)),e}function Ete(e,t,n){const r=Object.assign({scheme:"null"},n),i=P_(zo(e,r),zo(t,r),r,!0);return wo(i,{...r,skipEscape:!0})}function P_(e,t,n,r){const i={};return r||(e=zo(wo(e,n),n),t=zo(wo(t,n),n)),n=n||{},!n.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=vl(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=vl(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=vl(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=vl(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function Cte(e,t,n){return typeof e=="string"?(e=unescape(e),e=wo(_u(zo(e,n),!0),{...n,skipEscape:!0})):typeof e=="object"&&(e=wo(_u(e,!0),{...n,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=wo(_u(zo(t,n),!0),{...n,skipEscape:!0})):typeof t=="object"&&(t=wo(_u(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function wo(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},r=Object.assign({},t),i=[],a=Hy[(r.scheme||n.scheme||"").toLowerCase()];a&&a.serialize&&a.serialize(n,r),n.path!==void 0&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),r.reference!=="suffix"&&n.scheme&&i.push(n.scheme,":");const s=Tte(n);if(s!==void 0&&(r.reference!=="suffix"&&i.push("//"),i.push(s),n.path&&n.path.charAt(0)!=="/"&&i.push("/")),n.path!==void 0){let l=n.path;!r.absolutePath&&(!a||!a.absolutePath)&&(l=vl(l)),s===void 0&&(l=l.replace(/^\/\//u,"/%2F")),i.push(l)}return n.query!==void 0&&i.push("?",n.query),n.fragment!==void 0&&i.push("#",n.fragment),i.join("")}const Pte=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function _te(e){let t=0;for(let n=0,r=e.length;n<r;++n)if(t=e.charCodeAt(n),t>126||Pte[t])return!0;return!1}const kte=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function zo(e,t){const n=Object.assign({},t),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1;let a=!1;n.reference==="suffix"&&(e=(n.scheme?n.scheme+":":"")+"//"+e);const s=e.match(kte);if(s){if(r.scheme=s[1],r.userinfo=s[3],r.host=s[4],r.port=parseInt(s[5],10),r.path=s[6]||"",r.query=s[7],r.fragment=s[8],isNaN(r.port)&&(r.port=s[5]),r.host){const c=Ote(r.host);if(c.isIPV4===!1){const u=xte(c.host);r.host=u.host.toLowerCase(),a=u.isIPV6}else r.host=c.host,a=!0}r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&r.query===void 0&&!r.path?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==r.reference&&(r.error=r.error||"URI is not a "+n.reference+" reference.");const l=Hy[(n.scheme||r.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!l||!l.unicodeSupport)&&r.host&&(n.domainHost||l&&l.domainHost)&&a===!1&&_te(r.host))try{r.host=URL.domainToASCII(r.host.toLowerCase())}catch(c){r.error=r.error||"Host's domain name can not be converted to ASCII: "+c}(!l||l&&!l.skipNormalize)&&(i&&r.scheme!==void 0&&(r.scheme=unescape(r.scheme)),i&&r.host!==void 0&&(r.host=unescape(r.host)),r.path&&(r.path=escape(unescape(r.path))),r.fragment&&(r.fragment=encodeURI(decodeURIComponent(r.fragment)))),l&&l.parse&&l.parse(r,n)}else r.error=r.error||"URI can not be parsed.";return r}const Yy={SCHEMES:Hy,normalize:Ste,resolve:Ete,resolveComponents:P_,equal:Cte,serialize:wo,parse:zo};sp.exports=Yy;sp.exports.default=Yy;sp.exports.fastUri=Yy;var Dte=sp.exports;Object.defineProperty(qy,"__esModule",{value:!0});const __=Dte;__.code='require("ajv/dist/runtime/uri").default';qy.default=__;(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=no;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=yt;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=Wc,i=Ms,a=Gi,s=nr,l=yt,c=Fn,u=_n,d=ze,f=Xee,p=qy,h=(L,D)=>new RegExp(L,D);h.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={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."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},v=200;function x(L){var D,B,z,F,A,N,q,Y,G,K,J,Z,ie,de,xe,he,pe,Q,oe,te,le,re,Te,Se,fe;const ge=L.strict,_e=(D=L.code)===null||D===void 0?void 0:D.optimize,$e=_e===!0||_e===void 0?1:_e||0,ae=(z=(B=L.code)===null||B===void 0?void 0:B.regExp)!==null&&z!==void 0?z:h,ce=(F=L.uriResolver)!==null&&F!==void 0?F:p.default;return{strictSchema:(N=(A=L.strictSchema)!==null&&A!==void 0?A:ge)!==null&&N!==void 0?N:!0,strictNumbers:(Y=(q=L.strictNumbers)!==null&&q!==void 0?q:ge)!==null&&Y!==void 0?Y:!0,strictTypes:(K=(G=L.strictTypes)!==null&&G!==void 0?G:ge)!==null&&K!==void 0?K:"log",strictTuples:(Z=(J=L.strictTuples)!==null&&J!==void 0?J:ge)!==null&&Z!==void 0?Z:"log",strictRequired:(de=(ie=L.strictRequired)!==null&&ie!==void 0?ie:ge)!==null&&de!==void 0?de:!1,code:L.code?{...L.code,optimize:$e,regExp:ae}:{optimize:$e,regExp:ae},loopRequired:(xe=L.loopRequired)!==null&&xe!==void 0?xe:v,loopEnum:(he=L.loopEnum)!==null&&he!==void 0?he:v,meta:(pe=L.meta)!==null&&pe!==void 0?pe:!0,messages:(Q=L.messages)!==null&&Q!==void 0?Q:!0,inlineRefs:(oe=L.inlineRefs)!==null&&oe!==void 0?oe:!0,schemaId:(te=L.schemaId)!==null&&te!==void 0?te:"$id",addUsedSchema:(le=L.addUsedSchema)!==null&&le!==void 0?le:!0,validateSchema:(re=L.validateSchema)!==null&&re!==void 0?re:!0,validateFormats:(Te=L.validateFormats)!==null&&Te!==void 0?Te:!0,unicodeRegExp:(Se=L.unicodeRegExp)!==null&&Se!==void 0?Se:!0,int32range:(fe=L.int32range)!==null&&fe!==void 0?fe:!0,uriResolver:ce}}class w{constructor(D={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...x(D)};const{es5:B,lines:z}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:m,es5:B,lines:z}),this.logger=k(D.logger);const F=D.validateFormats;D.validateFormats=!1,this.RULES=(0,a.getRules)(),O.call(this,y,D,"NOT SUPPORTED"),O.call(this,b,D,"DEPRECATED","warn"),this._metaOpts=T.call(this),D.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&P.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),C.call(this),D.validateFormats=F}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:B,schemaId:z}=this.opts;let F=f;z==="id"&&(F={...f},F.id=F.$id,delete F.$id),B&&D&&this.addMetaSchema(F,F[z],!1)}defaultMeta(){const{meta:D,schemaId:B}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[B]||D:void 0}validate(D,B){let z;if(typeof D=="string"){if(z=this.getSchema(D),!z)throw new Error(`no schema with key or ref "${D}"`)}else z=this.compile(D);const F=z(B);return"$async"in z||(this.errors=z.errors),F}compile(D,B){const z=this._addSchema(D,B);return z.validate||this._compileSchemaEnv(z)}compileAsync(D,B){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return F.call(this,D,B);async function F(K,J){await A.call(this,K.$schema);const Z=this._addSchema(K,J);return Z.validate||N.call(this,Z)}async function A(K){K&&!this.getSchema(K)&&await F.call(this,{$ref:K},!0)}async function N(K){try{return this._compileSchemaEnv(K)}catch(J){if(!(J instanceof i.default))throw J;return q.call(this,J),await Y.call(this,J.missingSchema),N.call(this,K)}}function q({missingSchema:K,missingRef:J}){if(this.refs[K])throw new Error(`AnySchema ${K} is loaded but ${J} cannot be resolved`)}async function Y(K){const J=await G.call(this,K);this.refs[K]||await A.call(this,J.$schema),this.refs[K]||this.addSchema(J,K,B)}async function G(K){const J=this._loading[K];if(J)return J;try{return await(this._loading[K]=z(K))}finally{delete this._loading[K]}}}addSchema(D,B,z,F=this.opts.validateSchema){if(Array.isArray(D)){for(const N of D)this.addSchema(N,void 0,z,F);return this}let A;if(typeof D=="object"){const{schemaId:N}=this.opts;if(A=D[N],A!==void 0&&typeof A!="string")throw new Error(`schema ${N} must be string`)}return B=(0,c.normalizeId)(B||A),this._checkUnique(B),this.schemas[B]=this._addSchema(D,z,B,F,!0),this}addMetaSchema(D,B,z=this.opts.validateSchema){return this.addSchema(D,B,!0,z),this}validateSchema(D,B){if(typeof D=="boolean")return!0;let z;if(z=D.$schema,z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const F=this.validate(z,D);if(!F&&B){const A="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(A);else throw new Error(A)}return F}getSchema(D){let B;for(;typeof(B=E.call(this,D))=="string";)D=B;if(B===void 0){const{schemaId:z}=this.opts,F=new s.SchemaEnv({schema:{},schemaId:z});if(B=s.resolveSchema.call(this,F,D),!B)return;this.refs[D]=B}return B.validate||this._compileSchemaEnv(B)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const B=E.call(this,D);return typeof B=="object"&&this._cache.delete(B.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const B=D;this._cache.delete(B);let z=D[this.opts.schemaId];return z&&(z=(0,c.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(D){for(const B of D)this.addKeyword(B);return this}addKeyword(D,B){let z;if(typeof D=="string")z=D,typeof B=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),B.keyword=z);else if(typeof D=="object"&&B===void 0){if(B=D,z=B.keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(M.call(this,z,B),!B)return(0,d.eachItem)(z,A=>j.call(this,A)),this;H.call(this,B);const F={...B,type:(0,u.getJSONTypes)(B.type),schemaType:(0,u.getJSONTypes)(B.schemaType)};return(0,d.eachItem)(z,F.type.length===0?A=>j.call(this,A,F):A=>F.type.forEach(N=>j.call(this,A,F,N))),this}getKeyword(D){const B=this.RULES.all[D];return typeof B=="object"?B.definition:!!B}removeKeyword(D){const{RULES:B}=this;delete B.keywords[D],delete B.all[D];for(const z of B.rules){const F=z.rules.findIndex(A=>A.keyword===D);F>=0&&z.rules.splice(F,1)}return this}addFormat(D,B){return typeof B=="string"&&(B=new RegExp(B)),this.formats[D]=B,this}errorsText(D=this.errors,{separator:B=", ",dataVar:z="data"}={}){return!D||D.length===0?"No errors":D.map(F=>`${z}${F.instancePath} ${F.message}`).reduce((F,A)=>F+B+A)}$dataMetaSchema(D,B){const z=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const F of B){const A=F.split("/").slice(1);let N=D;for(const q of A)N=N[q];for(const q in z){const Y=z[q];if(typeof Y!="object")continue;const{$data:G}=Y.definition,K=N[q];G&&K&&(N[q]=U(K))}}return D}_removeAllSchemas(D,B){for(const z in D){const F=D[z];(!B||B.test(z))&&(typeof F=="string"?delete D[z]:F&&!F.meta&&(this._cache.delete(F.schema),delete D[z]))}}_addSchema(D,B,z,F=this.opts.validateSchema,A=this.opts.addUsedSchema){let N;const{schemaId:q}=this.opts;if(typeof D=="object")N=D[q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let Y=this._cache.get(D);if(Y!==void 0)return Y;z=(0,c.normalizeId)(N||z);const G=c.getSchemaRefs.call(this,D,z);return Y=new s.SchemaEnv({schema:D,schemaId:q,meta:B,baseId:z,localRefs:G}),this._cache.set(Y.schema,Y),A&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=Y),F&&this.validateSchema(D,!0),Y}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):s.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const B=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,D)}finally{this.opts=B}}}w.ValidationError=r.default,w.MissingRefError=i.default,e.default=w;function O(L,D,B,z="error"){for(const F in L){const A=F;A in D&&this.logger[z](`${B}: option ${F}. ${L[A]}`)}}function E(L){return L=(0,c.normalizeId)(L),this.schemas[L]||this.refs[L]}function C(){const L=this.opts.schemas;if(L)if(Array.isArray(L))this.addSchema(L);else for(const D in L)this.addSchema(L[D],D)}function S(){for(const L in this.opts.formats){const D=this.opts.formats[L];D&&this.addFormat(L,D)}}function P(L){if(Array.isArray(L)){this.addVocabulary(L);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in L){const B=L[D];B.keyword||(B.keyword=D),this.addKeyword(B)}}function T(){const L={...this.opts};for(const D of g)delete L[D];return L}const _={log(){},warn(){},error(){}};function k(L){if(L===!1)return _;if(L===void 0)return console;if(L.log&&L.warn&&L.error)return L;throw new Error("logger must implement log, warn and error methods")}const $=/^[a-z_$][a-z0-9_$:-]*$/i;function M(L,D){const{RULES:B}=this;if((0,d.eachItem)(L,z=>{if(B.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!$.test(z))throw new Error(`Keyword ${z} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function j(L,D,B){var z;const F=D==null?void 0:D.post;if(B&&F)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:A}=this;let N=F?A.post:A.rules.find(({type:Y})=>Y===B);if(N||(N={type:B,rules:[]},A.rules.push(N)),A.keywords[L]=!0,!D)return;const q={keyword:L,definition:{...D,type:(0,u.getJSONTypes)(D.type),schemaType:(0,u.getJSONTypes)(D.schemaType)}};D.before?W.call(this,N,q,D.before):N.rules.push(q),A.all[L]=q,(z=D.implements)===null||z===void 0||z.forEach(Y=>this.addKeyword(Y))}function W(L,D,B){const z=L.rules.findIndex(F=>F.keyword===B);z>=0?L.rules.splice(z,0,D):(L.rules.push(D),this.logger.warn(`rule ${B} is not defined`))}function H(L){let{metaSchema:D}=L;D!==void 0&&(L.$data&&this.opts.$data&&(D=U(D)),L.validateSchema=this.compile(D,!0))}const X={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function U(L){return{anyOf:[L,X]}}})(zP);var Gy={},Ky={},Xy={};Object.defineProperty(Xy,"__esModule",{value:!0});const $te={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Xy.default=$te;var Ki={};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.callRef=Ki.getValidate=void 0;const Rte=Ms,Ux=Ot,Jn=yt,wa=Po,Hx=nr,ku=ze,Mte={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:i,schemaEnv:a,validateName:s,opts:l,self:c}=r,{root:u}=a;if((n==="#"||n==="#/")&&i===u.baseId)return f();const d=Hx.resolveRef.call(c,u,i,n);if(d===void 0)throw new Rte.default(r.opts.uriResolver,i,n);if(d instanceof Hx.SchemaEnv)return p(d);return h(d);function f(){if(a===u)return Gu(e,s,a,a.$async);const g=t.scopeValue("root",{ref:u});return Gu(e,(0,Jn._)`${g}.validate`,u,u.$async)}function p(g){const m=k_(e,g);Gu(e,m,g,g.$async)}function h(g){const m=t.scopeValue("schema",l.code.source===!0?{ref:g,code:(0,Jn.stringify)(g)}:{ref:g}),y=t.name("valid"),b=e.subschema({schema:g,dataTypes:[],schemaPath:Jn.nil,topSchemaRef:m,errSchemaPath:n},y);e.mergeEvaluated(b),e.ok(y)}}};function k_(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,Jn._)`${n.scopeValue("wrapper",{ref:t})}.validate`}Ki.getValidate=k_;function Gu(e,t,n,r){const{gen:i,it:a}=e,{allErrors:s,schemaEnv:l,opts:c}=a,u=c.passContext?wa.default.this:Jn.nil;r?d():f();function d(){if(!l.$async)throw new Error("async schema referenced by sync schema");const g=i.let("valid");i.try(()=>{i.code((0,Jn._)`await ${(0,Ux.callValidateCode)(e,t,u)}`),h(t),s||i.assign(g,!0)},m=>{i.if((0,Jn._)`!(${m} instanceof ${a.ValidationError})`,()=>i.throw(m)),p(m),s||i.assign(g,!1)}),e.ok(g)}function f(){e.result((0,Ux.callValidateCode)(e,t,u),()=>h(t),()=>p(t))}function p(g){const m=(0,Jn._)`${g}.errors`;i.assign(wa.default.vErrors,(0,Jn._)`${wa.default.vErrors} === null ? ${m} : ${wa.default.vErrors}.concat(${m})`),i.assign(wa.default.errors,(0,Jn._)`${wa.default.vErrors}.length`)}function h(g){var m;if(!a.opts.unevaluated)return;const y=(m=n==null?void 0:n.validate)===null||m===void 0?void 0:m.evaluated;if(a.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(a.props=ku.mergeEvaluated.props(i,y.props,a.props));else{const b=i.var("props",(0,Jn._)`${g}.evaluated.props`);a.props=ku.mergeEvaluated.props(i,b,a.props,Jn.Name)}if(a.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(a.items=ku.mergeEvaluated.items(i,y.items,a.items));else{const b=i.var("items",(0,Jn._)`${g}.evaluated.items`);a.items=ku.mergeEvaluated.items(i,b,a.items,Jn.Name)}}}Ki.callRef=Gu;Ki.default=Mte;Object.defineProperty(Ky,"__esModule",{value:!0});const Ite=Xy,Nte=Ki,Ate=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Ite.default,Nte.default];Ky.default=Ate;var Zy={},Qy={};Object.defineProperty(Qy,"__esModule",{value:!0});const _d=yt,Qo=_d.operators,kd={maximum:{okStr:"<=",ok:Qo.LTE,fail:Qo.GT},minimum:{okStr:">=",ok:Qo.GTE,fail:Qo.LT},exclusiveMaximum:{okStr:"<",ok:Qo.LT,fail:Qo.GTE},exclusiveMinimum:{okStr:">",ok:Qo.GT,fail:Qo.LTE}},jte={message:({keyword:e,schemaCode:t})=>(0,_d.str)`must be ${kd[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,_d._)`{comparison: ${kd[e].okStr}, limit: ${t}}`},Lte={keyword:Object.keys(kd),type:"number",schemaType:"number",$data:!0,error:jte,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,_d._)`${n} ${kd[t].fail} ${r} || isNaN(${n})`)}};Qy.default=Lte;var Jy={};Object.defineProperty(Jy,"__esModule",{value:!0});const Rl=yt,Fte={message:({schemaCode:e})=>(0,Rl.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Rl._)`{multipleOf: ${e}}`},Vte={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Fte,code(e){const{gen:t,data:n,schemaCode:r,it:i}=e,a=i.opts.multipleOfPrecision,s=t.let("res"),l=a?(0,Rl._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:(0,Rl._)`${s} !== parseInt(${s})`;e.fail$data((0,Rl._)`(${r} === 0 || (${s} = ${n}/${r}, ${l}))`)}};Jy.default=Vte;var eb={},tb={};Object.defineProperty(tb,"__esModule",{value:!0});function D_(e){const t=e.length;let n=0,r=0,i;for(;r<t;)n++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<t&&(i=e.charCodeAt(r),(i&64512)===56320&&r++);return n}tb.default=D_;D_.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(eb,"__esModule",{value:!0});const $i=yt,Bte=ze,zte=tb,Wte={message({keyword:e,schemaCode:t}){const n=e==="maxLength"?"more":"fewer";return(0,$i.str)`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>(0,$i._)`{limit: ${e}}`},qte={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Wte,code(e){const{keyword:t,data:n,schemaCode:r,it:i}=e,a=t==="maxLength"?$i.operators.GT:$i.operators.LT,s=i.opts.unicode===!1?(0,$i._)`${n}.length`:(0,$i._)`${(0,Bte.useFunc)(e.gen,zte.default)}(${n})`;e.fail$data((0,$i._)`${s} ${a} ${r}`)}};eb.default=qte;var nb={};Object.defineProperty(nb,"__esModule",{value:!0});const Ute=Ot,Dd=yt,Hte={message:({schemaCode:e})=>(0,Dd.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Dd._)`{pattern: ${e}}`},Yte={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Hte,code(e){const{data:t,$data:n,schema:r,schemaCode:i,it:a}=e,s=a.opts.unicodeRegExp?"u":"",l=n?(0,Dd._)`(new RegExp(${i}, ${s}))`:(0,Ute.usePattern)(e,r);e.fail$data((0,Dd._)`!${l}.test(${t})`)}};nb.default=Yte;var rb={};Object.defineProperty(rb,"__esModule",{value:!0});const Ml=yt,Gte={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Ml.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Ml._)`{limit: ${e}}`},Kte={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Gte,code(e){const{keyword:t,data:n,schemaCode:r}=e,i=t==="maxProperties"?Ml.operators.GT:Ml.operators.LT;e.fail$data((0,Ml._)`Object.keys(${n}).length ${i} ${r}`)}};rb.default=Kte;var ob={};Object.defineProperty(ob,"__esModule",{value:!0});const rl=Ot,Il=yt,Xte=ze,Zte={message:({params:{missingProperty:e}})=>(0,Il.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Il._)`{missingProperty: ${e}}`},Qte={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Zte,code(e){const{gen:t,schema:n,schemaCode:r,data:i,$data:a,it:s}=e,{opts:l}=s;if(!a&&n.length===0)return;const c=n.length>=l.loopRequired;if(s.allErrors?u():d(),l.strictRequired){const h=e.parentSchema.properties,{definedProperties:g}=e.it;for(const m of n)if((h==null?void 0:h[m])===void 0&&!g.has(m)){const y=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${m}" is not defined at "${y}" (strictRequired)`;(0,Xte.checkStrictMode)(s,b,s.opts.strictRequired)}}function u(){if(c||a)e.block$data(Il.nil,f);else for(const h of n)(0,rl.checkReportMissingProp)(e,h)}function d(){const h=t.let("missing");if(c||a){const g=t.let("valid",!0);e.block$data(g,()=>p(h,g)),e.ok(g)}else t.if((0,rl.checkMissingProp)(e,n,h)),(0,rl.reportMissingProp)(e,h),t.else()}function f(){t.forOf("prop",r,h=>{e.setParams({missingProperty:h}),t.if((0,rl.noPropertyInData)(t,i,h,l.ownProperties),()=>e.error())})}function p(h,g){e.setParams({missingProperty:h}),t.forOf(h,r,()=>{t.assign(g,(0,rl.propertyInData)(t,i,h,l.ownProperties)),t.if((0,Il.not)(g),()=>{e.error(),t.break()})},Il.nil)}}};ob.default=Qte;var ib={};Object.defineProperty(ib,"__esModule",{value:!0});const Nl=yt,Jte={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Nl.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Nl._)`{limit: ${e}}`},ene={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Jte,code(e){const{keyword:t,data:n,schemaCode:r}=e,i=t==="maxItems"?Nl.operators.GT:Nl.operators.LT;e.fail$data((0,Nl._)`${n}.length ${i} ${r}`)}};ib.default=ene;var ab={},qc={};Object.defineProperty(qc,"__esModule",{value:!0});const $_=Lg;$_.code='require("ajv/dist/runtime/equal").default';qc.default=$_;Object.defineProperty(ab,"__esModule",{value:!0});const Mh=_n,Nn=yt,tne=ze,nne=qc,rne={message:({params:{i:e,j:t}})=>(0,Nn.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Nn._)`{i: ${e}, j: ${t}}`},one={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:rne,code(e){const{gen:t,data:n,$data:r,schema:i,parentSchema:a,schemaCode:s,it:l}=e;if(!r&&!i)return;const c=t.let("valid"),u=a.items?(0,Mh.getSchemaTypes)(a.items):[];e.block$data(c,d,(0,Nn._)`${s} === false`),e.ok(c);function d(){const g=t.let("i",(0,Nn._)`${n}.length`),m=t.let("j");e.setParams({i:g,j:m}),t.assign(c,!0),t.if((0,Nn._)`${g} > 1`,()=>(f()?p:h)(g,m))}function f(){return u.length>0&&!u.some(g=>g==="object"||g==="array")}function p(g,m){const y=t.name("item"),b=(0,Mh.checkDataTypes)(u,y,l.opts.strictNumbers,Mh.DataType.Wrong),v=t.const("indices",(0,Nn._)`{}`);t.for((0,Nn._)`;${g}--;`,()=>{t.let(y,(0,Nn._)`${n}[${g}]`),t.if(b,(0,Nn._)`continue`),u.length>1&&t.if((0,Nn._)`typeof ${y} == "string"`,(0,Nn._)`${y} += "_"`),t.if((0,Nn._)`typeof ${v}[${y}] == "number"`,()=>{t.assign(m,(0,Nn._)`${v}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,Nn._)`${v}[${y}] = ${g}`)})}function h(g,m){const y=(0,tne.useFunc)(t,nne.default),b=t.name("outer");t.label(b).for((0,Nn._)`;${g}--;`,()=>t.for((0,Nn._)`${m} = ${g}; ${m}--;`,()=>t.if((0,Nn._)`${y}(${n}[${g}], ${n}[${m}])`,()=>{e.error(),t.assign(c,!1).break(b)})))}}};ab.default=one;var sb={};Object.defineProperty(sb,"__esModule",{value:!0});const Gm=yt,ine=ze,ane=qc,sne={message:"must be equal to constant",params:({schemaCode:e})=>(0,Gm._)`{allowedValue: ${e}}`},lne={keyword:"const",$data:!0,error:sne,code(e){const{gen:t,data:n,$data:r,schemaCode:i,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,Gm._)`!${(0,ine.useFunc)(t,ane.default)}(${n}, ${i})`):e.fail((0,Gm._)`${a} !== ${n}`)}};sb.default=lne;var lb={};Object.defineProperty(lb,"__esModule",{value:!0});const wl=yt,cne=ze,une=qc,dne={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,wl._)`{allowedValues: ${e}}`},fne={keyword:"enum",schemaType:"array",$data:!0,error:dne,code(e){const{gen:t,data:n,$data:r,schema:i,schemaCode:a,it:s}=e;if(!r&&i.length===0)throw new Error("enum must have non-empty array");const l=i.length>=s.opts.loopEnum;let c;const u=()=>c??(c=(0,cne.useFunc)(t,une.default));let d;if(l||r)d=t.let("valid"),e.block$data(d,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const h=t.const("vSchema",a);d=(0,wl.or)(...i.map((g,m)=>p(h,m)))}e.pass(d);function f(){t.assign(d,!1),t.forOf("v",a,h=>t.if((0,wl._)`${u()}(${n}, ${h})`,()=>t.assign(d,!0).break()))}function p(h,g){const m=i[g];return typeof m=="object"&&m!==null?(0,wl._)`${u()}(${n}, ${h}[${g}])`:(0,wl._)`${n} === ${m}`}}};lb.default=fne;Object.defineProperty(Zy,"__esModule",{value:!0});const pne=Qy,hne=Jy,mne=eb,gne=nb,yne=rb,bne=ob,vne=ib,wne=ab,xne=sb,One=lb,Tne=[pne.default,hne.default,mne.default,gne.default,yne.default,bne.default,vne.default,wne.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},xne.default,One.default];Zy.default=Tne;var cb={},Is={};Object.defineProperty(Is,"__esModule",{value:!0});Is.validateAdditionalItems=void 0;const Ri=yt,Km=ze,Sne={message:({params:{len:e}})=>(0,Ri.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ri._)`{limit: ${e}}`},Ene={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Sne,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,Km.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}R_(e,r)}};function R_(e,t){const{gen:n,schema:r,data:i,keyword:a,it:s}=e;s.items=!0;const l=n.const("len",(0,Ri._)`${i}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Ri._)`${l} <= ${t.length}`);else if(typeof r=="object"&&!(0,Km.alwaysValidSchema)(s,r)){const u=n.var("valid",(0,Ri._)`${l} <= ${t.length}`);n.if((0,Ri.not)(u),()=>c(u)),e.ok(u)}function c(u){n.forRange("i",t.length,l,d=>{e.subschema({keyword:a,dataProp:d,dataPropType:Km.Type.Num},u),s.allErrors||n.if((0,Ri.not)(u),()=>n.break())})}}Is.validateAdditionalItems=R_;Is.default=Ene;var ub={},Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.validateTuple=void 0;const Yx=yt,Ku=ze,Cne=Ot,Pne={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return M_(e,"additionalItems",t);n.items=!0,!(0,Ku.alwaysValidSchema)(n,t)&&e.ok((0,Cne.validateArray)(e))}};function M_(e,t,n=e.schema){const{gen:r,parentSchema:i,data:a,keyword:s,it:l}=e;d(i),l.opts.unevaluated&&n.length&&l.items!==!0&&(l.items=Ku.mergeEvaluated.items(r,n.length,l.items));const c=r.name("valid"),u=r.const("len",(0,Yx._)`${a}.length`);n.forEach((f,p)=>{(0,Ku.alwaysValidSchema)(l,f)||(r.if((0,Yx._)`${u} > ${p}`,()=>e.subschema({keyword:s,schemaProp:p,dataProp:p},c)),e.ok(c))});function d(f){const{opts:p,errSchemaPath:h}=l,g=n.length,m=g===f.minItems&&(g===f.maxItems||f[t]===!1);if(p.strictTuples&&!m){const y=`"${s}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Ku.checkStrictMode)(l,y,p.strictTuples)}}}Ns.validateTuple=M_;Ns.default=Pne;Object.defineProperty(ub,"__esModule",{value:!0});const _ne=Ns,kne={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,_ne.validateTuple)(e,"items")};ub.default=kne;var db={};Object.defineProperty(db,"__esModule",{value:!0});const Gx=yt,Dne=ze,$ne=Ot,Rne=Is,Mne={message:({params:{len:e}})=>(0,Gx.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Gx._)`{limit: ${e}}`},Ine={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Mne,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:i}=n;r.items=!0,!(0,Dne.alwaysValidSchema)(r,t)&&(i?(0,Rne.validateAdditionalItems)(e,i):e.ok((0,$ne.validateArray)(e)))}};db.default=Ine;var fb={};Object.defineProperty(fb,"__esModule",{value:!0});const Nr=yt,Du=ze,Nne={message:({params:{min:e,max:t}})=>t===void 0?(0,Nr.str)`must contain at least ${e} valid item(s)`:(0,Nr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Nr._)`{minContains: ${e}}`:(0,Nr._)`{minContains: ${e}, maxContains: ${t}}`},Ane={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Nne,code(e){const{gen:t,schema:n,parentSchema:r,data:i,it:a}=e;let s,l;const{minContains:c,maxContains:u}=r;a.opts.next?(s=c===void 0?1:c,l=u):s=1;const d=t.const("len",(0,Nr._)`${i}.length`);if(e.setParams({min:s,max:l}),l===void 0&&s===0){(0,Du.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&s>l){(0,Du.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Du.alwaysValidSchema)(a,n)){let m=(0,Nr._)`${d} >= ${s}`;l!==void 0&&(m=(0,Nr._)`${m} && ${d} <= ${l}`),e.pass(m);return}a.items=!0;const f=t.name("valid");l===void 0&&s===1?h(f,()=>t.if(f,()=>t.break())):s===0?(t.let(f,!0),l!==void 0&&t.if((0,Nr._)`${i}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,()=>e.reset());function p(){const m=t.name("_valid"),y=t.let("count",0);h(m,()=>t.if(m,()=>g(y)))}function h(m,y){t.forRange("i",0,d,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:Du.Type.Num,compositeRule:!0},m),y()})}function g(m){t.code((0,Nr._)`${m}++`),l===void 0?t.if((0,Nr._)`${m} >= ${s}`,()=>t.assign(f,!0).break()):(t.if((0,Nr._)`${m} > ${l}`,()=>t.assign(f,!1).break()),s===1?t.assign(f,!0):t.if((0,Nr._)`${m} >= ${s}`,()=>t.assign(f,!0)))}}};fb.default=Ane;var I_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=yt,n=ze,r=Ot;e.error={message:({params:{property:c,depsCount:u,deps:d}})=>{const f=u===1?"property":"properties";return(0,t.str)`must have ${f} ${d} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:d,missingProperty:f}})=>(0,t._)`{property: ${c},
missingProperty: ${f},
depsCount: ${u},
deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,d]=a(c);s(c,u),l(c,d)}};function a({schema:c}){const u={},d={};for(const f in c){if(f==="__proto__")continue;const p=Array.isArray(c[f])?u:d;p[f]=c[f]}return[u,d]}function s(c,u=c.schema){const{gen:d,data:f,it:p}=c;if(Object.keys(u).length===0)return;const h=d.let("missing");for(const g in u){const m=u[g];if(m.length===0)continue;const y=(0,r.propertyInData)(d,f,g,p.opts.ownProperties);c.setParams({property:g,depsCount:m.length,deps:m.join(", ")}),p.allErrors?d.if(y,()=>{for(const b of m)(0,r.checkReportMissingProp)(c,b)}):(d.if((0,t._)`${y} && (${(0,r.checkMissingProp)(c,m,h)})`),(0,r.reportMissingProp)(c,h),d.else())}}e.validatePropertyDeps=s;function l(c,u=c.schema){const{gen:d,data:f,keyword:p,it:h}=c,g=d.name("valid");for(const m in u)(0,n.alwaysValidSchema)(h,u[m])||(d.if((0,r.propertyInData)(d,f,m,h.opts.ownProperties),()=>{const y=c.subschema({keyword:p,schemaProp:m},g);c.mergeValidEvaluated(y,g)},()=>d.var(g,!0)),c.ok(g))}e.validateSchemaDeps=l,e.default=i})(I_);var pb={};Object.defineProperty(pb,"__esModule",{value:!0});const N_=yt,jne=ze,Lne={message:"property name must be valid",params:({params:e})=>(0,N_._)`{propertyName: ${e.propertyName}}`},Fne={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Lne,code(e){const{gen:t,schema:n,data:r,it:i}=e;if((0,jne.alwaysValidSchema)(i,n))return;const a=t.name("valid");t.forIn("key",r,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},a),t.if((0,N_.not)(a),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(a)}};pb.default=Fne;var lp={};Object.defineProperty(lp,"__esModule",{value:!0});const $u=Ot,Xr=yt,Vne=Po,Ru=ze,Bne={message:"must NOT have additional properties",params:({params:e})=>(0,Xr._)`{additionalProperty: ${e.additionalProperty}}`},zne={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Bne,code(e){const{gen:t,schema:n,parentSchema:r,data:i,errsCount:a,it:s}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:l,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,Ru.alwaysValidSchema)(s,n))return;const u=(0,$u.allSchemaProperties)(r.properties),d=(0,$u.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Xr._)`${a} === ${Vne.default.errors}`);function f(){t.forIn("key",i,y=>{!u.length&&!d.length?g(y):t.if(p(y),()=>g(y))})}function p(y){let b;if(u.length>8){const v=(0,Ru.schemaRefOrVal)(s,r.properties,"properties");b=(0,$u.isOwnProperty)(t,v,y)}else u.length?b=(0,Xr.or)(...u.map(v=>(0,Xr._)`${y} === ${v}`)):b=Xr.nil;return d.length&&(b=(0,Xr.or)(b,...d.map(v=>(0,Xr._)`${(0,$u.usePattern)(e,v)}.test(${y})`))),(0,Xr.not)(b)}function h(y){t.code((0,Xr._)`delete ${i}[${y}]`)}function g(y){if(c.removeAdditional==="all"||c.removeAdditional&&n===!1){h(y);return}if(n===!1){e.setParams({additionalProperty:y}),e.error(),l||t.break();return}if(typeof n=="object"&&!(0,Ru.alwaysValidSchema)(s,n)){const b=t.name("valid");c.removeAdditional==="failing"?(m(y,b,!1),t.if((0,Xr.not)(b),()=>{e.reset(),h(y)})):(m(y,b),l||t.if((0,Xr.not)(b),()=>t.break()))}}function m(y,b,v){const x={keyword:"additionalProperties",dataProp:y,dataPropType:Ru.Type.Str};v===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,b)}}};lp.default=zne;var hb={};Object.defineProperty(hb,"__esModule",{value:!0});const Wne=no,Kx=Ot,Ih=ze,Xx=lp,qne={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:i,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&Xx.default.code(new Wne.KeywordCxt(a,Xx.default,"additionalProperties"));const s=(0,Kx.allSchemaProperties)(n);for(const f of s)a.definedProperties.add(f);a.opts.unevaluated&&s.length&&a.props!==!0&&(a.props=Ih.mergeEvaluated.props(t,(0,Ih.toHash)(s),a.props));const l=s.filter(f=>!(0,Ih.alwaysValidSchema)(a,n[f]));if(l.length===0)return;const c=t.name("valid");for(const f of l)u(f)?d(f):(t.if((0,Kx.propertyInData)(t,i,f,a.opts.ownProperties)),d(f),a.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function u(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function d(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};hb.default=qne;var mb={};Object.defineProperty(mb,"__esModule",{value:!0});const Zx=Ot,Mu=yt,Qx=ze,Jx=ze,Une={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:i,it:a}=e,{opts:s}=a,l=(0,Zx.allSchemaProperties)(n),c=l.filter(m=>(0,Qx.alwaysValidSchema)(a,n[m]));if(l.length===0||c.length===l.length&&(!a.opts.unevaluated||a.props===!0))return;const u=s.strictSchema&&!s.allowMatchingProperties&&i.properties,d=t.name("valid");a.props!==!0&&!(a.props instanceof Mu.Name)&&(a.props=(0,Jx.evaluatedPropsToName)(t,a.props));const{props:f}=a;p();function p(){for(const m of l)u&&h(m),a.allErrors?g(m):(t.var(d,!0),g(m),t.if(d))}function h(m){for(const y in u)new RegExp(m).test(y)&&(0,Qx.checkStrictMode)(a,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){t.forIn("key",r,y=>{t.if((0,Mu._)`${(0,Zx.usePattern)(e,m)}.test(${y})`,()=>{const b=c.includes(m);b||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:Jx.Type.Str},d),a.opts.unevaluated&&f!==!0?t.assign((0,Mu._)`${f}[${y}]`,!0):!b&&!a.allErrors&&t.if((0,Mu.not)(d),()=>t.break())})})}}};mb.default=Une;var gb={};Object.defineProperty(gb,"__esModule",{value:!0});const Hne=ze,Yne={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,Hne.alwaysValidSchema)(r,n)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};gb.default=Yne;var yb={};Object.defineProperty(yb,"__esModule",{value:!0});const Gne=Ot,Kne={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Gne.validateUnion,error:{message:"must match a schema in anyOf"}};yb.default=Kne;var bb={};Object.defineProperty(bb,"__esModule",{value:!0});const Xu=yt,Xne=ze,Zne={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Xu._)`{passingSchemas: ${e.passing}}`},Qne={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Zne,code(e){const{gen:t,schema:n,parentSchema:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(i.opts.discriminator&&r.discriminator)return;const a=n,s=t.let("valid",!1),l=t.let("passing",null),c=t.name("_valid");e.setParams({passing:l}),t.block(u),e.result(s,()=>e.reset(),()=>e.error(!0));function u(){a.forEach((d,f)=>{let p;(0,Xne.alwaysValidSchema)(i,d)?t.var(c,!0):p=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,Xu._)`${c} && ${s}`).assign(s,!1).assign(l,(0,Xu._)`[${l}, ${f}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(l,f),p&&e.mergeEvaluated(p,Xu.Name)})})}}};bb.default=Qne;var vb={};Object.defineProperty(vb,"__esModule",{value:!0});const Jne=ze,ere={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=t.name("valid");n.forEach((a,s)=>{if((0,Jne.alwaysValidSchema)(r,a))return;const l=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(l)})}};vb.default=ere;var wb={};Object.defineProperty(wb,"__esModule",{value:!0});const $d=yt,A_=ze,tre={message:({params:e})=>(0,$d.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,$d._)`{failingKeyword: ${e.ifClause}}`},nre={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:tre,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,A_.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const i=eO(r,"then"),a=eO(r,"else");if(!i&&!a)return;const s=t.let("valid",!0),l=t.name("_valid");if(c(),e.reset(),i&&a){const d=t.let("ifClause");e.setParams({ifClause:d}),t.if(l,u("then",d),u("else",d))}else i?t.if(l,u("then")):t.if((0,$d.not)(l),u("else"));e.pass(s,()=>e.error(!0));function c(){const d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(d)}function u(d,f){return()=>{const p=e.subschema({keyword:d},l);t.assign(s,l),e.mergeValidEvaluated(p,s),f?t.assign(f,(0,$d._)`${d}`):e.setParams({ifClause:d})}}}};function eO(e,t){const n=e.schema[t];return n!==void 0&&!(0,A_.alwaysValidSchema)(e,n)}wb.default=nre;var xb={};Object.defineProperty(xb,"__esModule",{value:!0});const rre=ze,ore={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,rre.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};xb.default=ore;Object.defineProperty(cb,"__esModule",{value:!0});const ire=Is,are=ub,sre=Ns,lre=db,cre=fb,ure=I_,dre=pb,fre=lp,pre=hb,hre=mb,mre=gb,gre=yb,yre=bb,bre=vb,vre=wb,wre=xb;function xre(e=!1){const t=[mre.default,gre.default,yre.default,bre.default,vre.default,wre.default,dre.default,fre.default,ure.default,pre.default,hre.default];return e?t.push(are.default,lre.default):t.push(ire.default,sre.default),t.push(cre.default),t}cb.default=xre;var Ob={},Tb={};Object.defineProperty(Tb,"__esModule",{value:!0});const bn=yt,Ore={message:({schemaCode:e})=>(0,bn.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,bn._)`{format: ${e}}`},Tre={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Ore,code(e,t){const{gen:n,data:r,$data:i,schema:a,schemaCode:s,it:l}=e,{opts:c,errSchemaPath:u,schemaEnv:d,self:f}=l;if(!c.validateFormats)return;i?p():h();function p(){const g=n.scopeValue("formats",{ref:f.formats,code:c.code.formats}),m=n.const("fDef",(0,bn._)`${g}[${s}]`),y=n.let("fType"),b=n.let("format");n.if((0,bn._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>n.assign(y,(0,bn._)`${m}.type || "string"`).assign(b,(0,bn._)`${m}.validate`),()=>n.assign(y,(0,bn._)`"string"`).assign(b,m)),e.fail$data((0,bn.or)(v(),x()));function v(){return c.strictSchema===!1?bn.nil:(0,bn._)`${s} && !${b}`}function x(){const w=d.$async?(0,bn._)`(${m}.async ? await ${b}(${r}) : ${b}(${r}))`:(0,bn._)`${b}(${r})`,O=(0,bn._)`(typeof ${b} == "function" ? ${w} : ${b}.test(${r}))`;return(0,bn._)`${b} && ${b} !== true && ${y} === ${t} && !${O}`}}function h(){const g=f.formats[a];if(!g){v();return}if(g===!0)return;const[m,y,b]=x(g);m===t&&e.pass(w());function v(){if(c.strictSchema===!1){f.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${a}" ignored in schema at path "${u}"`}}function x(O){const E=O instanceof RegExp?(0,bn.regexpCode)(O):c.code.formats?(0,bn._)`${c.code.formats}${(0,bn.getProperty)(a)}`:void 0,C=n.scopeValue("formats",{key:a,ref:O,code:E});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,bn._)`${C}.validate`]:["string",O,C]}function w(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!d.$async)throw new Error("async format in sync schema");return(0,bn._)`await ${b}(${r})`}return typeof y=="function"?(0,bn._)`${b}(${r})`:(0,bn._)`${b}.test(${r})`}}}};Tb.default=Tre;Object.defineProperty(Ob,"__esModule",{value:!0});const Sre=Tb,Ere=[Sre.default];Ob.default=Ere;var ss={};Object.defineProperty(ss,"__esModule",{value:!0});ss.contentVocabulary=ss.metadataVocabulary=void 0;ss.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ss.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(Gy,"__esModule",{value:!0});const Cre=Ky,Pre=Zy,_re=cb,kre=Ob,tO=ss,Dre=[Cre.default,Pre.default,(0,_re.default)(),kre.default,tO.metadataVocabulary,tO.contentVocabulary];Gy.default=Dre;var Sb={},cp={};Object.defineProperty(cp,"__esModule",{value:!0});cp.DiscrError=void 0;var nO;(function(e){e.Tag="tag",e.Mapping="mapping"})(nO||(cp.DiscrError=nO={}));Object.defineProperty(Sb,"__esModule",{value:!0});const _a=yt,Xm=cp,rO=nr,$re=Ms,Rre=ze,Mre={message:({params:{discrError:e,tagName:t}})=>e===Xm.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,_a._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},Ire={keyword:"discriminator",type:"object",schemaType:"object",error:Mre,code(e){const{gen:t,data:n,schema:r,parentSchema:i,it:a}=e,{oneOf:s}=i;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=r.propertyName;if(typeof l!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),u=t.const("tag",(0,_a._)`${n}${(0,_a.getProperty)(l)}`);t.if((0,_a._)`typeof ${u} == "string"`,()=>d(),()=>e.error(!1,{discrError:Xm.DiscrError.Tag,tag:u,tagName:l})),e.ok(c);function d(){const h=p();t.if(!1);for(const g in h)t.elseIf((0,_a._)`${u} === ${g}`),t.assign(c,f(h[g]));t.else(),e.error(!1,{discrError:Xm.DiscrError.Mapping,tag:u,tagName:l}),t.endIf()}function f(h){const g=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(m,_a.Name),g}function p(){var h;const g={},m=b(i);let y=!0;for(let w=0;w<s.length;w++){let O=s[w];if(O!=null&&O.$ref&&!(0,Rre.schemaHasRulesButRef)(O,a.self.RULES)){const C=O.$ref;if(O=rO.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,C),O instanceof rO.SchemaEnv&&(O=O.schema),O===void 0)throw new $re.default(a.opts.uriResolver,a.baseId,C)}const E=(h=O==null?void 0:O.properties)===null||h===void 0?void 0:h[l];if(typeof E!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);y=y&&(m||b(O)),v(E,w)}if(!y)throw new Error(`discriminator: "${l}" must be required`);return g;function b({required:w}){return Array.isArray(w)&&w.includes(l)}function v(w,O){if(w.const)x(w.const,O);else if(w.enum)for(const E of w.enum)x(E,O);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function x(w,O){if(typeof w!="string"||w in g)throw new Error(`discriminator: "${l}" values must be unique strings`);g[w]=O}}}};Sb.default=Ire;const Nre="http://json-schema.org/draft-07/schema#",Are="http://json-schema.org/draft-07/schema#",jre="Core schema meta-schema",Lre={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:[]}},Fre=["object","boolean"],Vre={$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:"#"}},Bre={$schema:Nre,$id:Are,title:jre,definitions:Lre,type:Fre,properties:Vre,default:!0};(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 n=zP,r=Gy,i=Sb,a=Bre,s=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends n.default{_addVocabularies(){super._addVocabularies(),r.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,s):a;this.addMetaSchema(g,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=no;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=yt;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 f=Wc;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=Ms;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Wm,Wm.exports);var j_=Wm.exports;const zre=kt(j_);var Zm={exports:{}},L_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(P,T){return{validate:P,compare:T}}e.fullFormats={date:t(a,s),time:t(c,u),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"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|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\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:S,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:b,int32:{type:"number",validate:w},int64:{type:"number",validate:O},float:{type:"number",validate:E},double:{type:"number",validate:E},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),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]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),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 n(P){return P%4===0&&(P%100!==0||P%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(P){const T=r.exec(P);if(!T)return!1;const _=+T[1],k=+T[2],$=+T[3];return k>=1&&k<=12&&$>=1&&$<=(k===2&&n(_)?29:i[k])}function s(P,T){if(P&&T)return P>T?1:P<T?-1:0}const l=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(P,T){const _=l.exec(P);if(!_)return!1;const k=+_[1],$=+_[2],M=+_[3],j=_[5];return(k<=23&&$<=59&&M<=59||k===23&&$===59&&M===60)&&(!T||j!=="")}function u(P,T){if(!(P&&T))return;const _=l.exec(P),k=l.exec(T);if(_&&k)return P=_[1]+_[2]+_[3]+(_[4]||""),T=k[1]+k[2]+k[3]+(k[4]||""),P>T?1:P<T?-1:0}const d=/t|\s/i;function f(P){const T=P.split(d);return T.length===2&&a(T[0])&&c(T[1],!0)}function p(P,T){if(!(P&&T))return;const[_,k]=P.split(d),[$,M]=T.split(d),j=s(_,$);if(j!==void 0)return j||u(k,M)}const h=/\/|:/,g=/^(?:[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 m(P){return h.test(P)&&g.test(P)}const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(P){return y.lastIndex=0,y.test(P)}const v=-2147483648,x=2**31-1;function w(P){return Number.isInteger(P)&&P<=x&&P>=v}function O(P){return Number.isInteger(P)}function E(){return!0}const C=/[^\\]\\Z/;function S(P){if(C.test(P))return!1;try{return new RegExp(P),!0}catch{return!1}}})(L_);var F_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=j_,n=yt,r=n.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:l,schemaCode:c})=>n.str`should be ${i[l].okStr} ${c}`,params:({keyword:l,schemaCode:c})=>n._`{comparison: ${i[l].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:a,code(l){const{gen:c,data:u,schemaCode:d,keyword:f,it:p}=l,{opts:h,self:g}=p;if(!h.validateFormats)return;const m=new t.KeywordCxt(p,g.RULES.all.format.definition,"format");m.$data?y():b();function y(){const x=c.scopeValue("formats",{ref:g.formats,code:h.code.formats}),w=c.const("fmt",n._`${x}[${m.schemaCode}]`);l.fail$data(n.or(n._`typeof ${w} != "object"`,n._`${w} instanceof RegExp`,n._`typeof ${w}.compare != "function"`,v(w)))}function b(){const x=m.schema,w=g.formats[x];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${f}": format "${x}" does not define "compare" function`);const O=c.scopeValue("formats",{key:x,ref:w,code:h.code.formats?n._`${h.code.formats}${n.getProperty(x)}`:void 0});l.fail$data(v(O))}function v(x){return n._`${x}.compare(${u}, ${d}) ${i[f].fail} 0`}},dependencies:["format"]};const s=l=>(l.addKeyword(e.formatLimitDefinition),l);e.default=s})(F_);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=L_,r=F_,i=yt,a=new i.Name("fullFormats"),s=new i.Name("fastFormats"),l=(u,d={keywords:!0})=>{if(Array.isArray(d))return c(u,d,n.fullFormats,a),u;const[f,p]=d.mode==="fast"?[n.fastFormats,s]:[n.fullFormats,a],h=d.formats||n.formatNames;return c(u,h,f,p),d.keywords&&r.default(u),u};l.get=(u,d="full")=>{const p=(d==="fast"?n.fastFormats:n.fullFormats)[u];if(!p)throw new Error(`Unknown format "${u}"`);return p};function c(u,d,f,p){var h,g;(h=(g=u.opts.code).formats)!==null&&h!==void 0||(g.formats=i._`require("ajv-formats/dist/formats").${p}`);for(const m of d)u.addFormat(m,f[m])}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l})(Zm,Zm.exports);var Wre=Zm.exports;const qre=kt(Wre);function Ure(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),l=s.length;l--;){var c=s[e?l:++i];if(n(a[c],c,a)===!1)break}return t}}var Hre=Ure,Yre=Hre,Gre=Yre(),V_=Gre,Kre=V_,Xre=Uo;function Zre(e,t){return e&&Kre(e,t,Xre)}var Qre=Zre,Jre=qo;function eoe(e,t){return function(n,r){if(n==null)return n;if(!Jre(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&r(s[a],a,s)!==!1;);return n}}var toe=eoe,noe=Qre,roe=toe,ooe=roe(noe),Eb=ooe,ioe=Eb;function aoe(e,t){var n=[];return ioe(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var soe=aoe,loe=KC,coe=soe,uoe=oa,doe=Cn;function foe(e,t){var n=doe(e)?loe:coe;return n(e,uoe(t))}var poe=foe;const oO=kt(poe);var hoe=_y;function moe(e,t){return hoe(e,t)}var B_=moe;const Cb=kt(B_);var goe=ta,yoe=function(){try{var e=goe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),z_=yoe,iO=z_;function boe(e,t,n){t=="__proto__"&&iO?iO(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Pb=boe,voe=Pb,woe=Nc;function xoe(e,t,n){(n!==void 0&&!woe(e[t],n)||n===void 0&&!(t in e))&&voe(e,t,n)}var W_=xoe,Rd={exports:{}};Rd.exports;(function(e,t){var n=Qn,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a?n.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var f=u.length,p=l?l(f):new u.constructor(f);return u.copy(p),p}e.exports=c})(Rd,Rd.exports);var q_=Rd.exports,aO=UC;function Ooe(e){var t=new e.constructor(e.byteLength);return new aO(t).set(new aO(e)),t}var _b=Ooe,Toe=_b;function Soe(e,t){var n=t?Toe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var U_=Soe;function Eoe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Uc=Eoe,Coe=kr,sO=Object.create,Poe=function(){function e(){}return function(t){if(!Coe(t))return{};if(sO)return sO(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),up=Poe,_oe=JC,koe=_oe(Object.getPrototypeOf,Object),kb=koe,Doe=up,$oe=kb,Roe=ep;function Moe(e){return typeof e.constructor=="function"&&!Roe(e)?Doe($oe(e)):{}}var H_=Moe,Ioe=qo,Noe=_r;function Aoe(e){return Noe(e)&&Ioe(e)}var Y_=Aoe,joe=mi,Loe=kb,Foe=_r,Voe="[object Object]",Boe=Function.prototype,zoe=Object.prototype,G_=Boe.toString,Woe=zoe.hasOwnProperty,qoe=G_.call(Object);function Uoe(e){if(!Foe(e)||joe(e)!=Voe)return!1;var t=Loe(e);if(t===null)return!0;var n=Woe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&G_.call(n)==qoe}var Db=Uoe;function Hoe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var K_=Hoe,Yoe=Pb,Goe=Nc,Koe=Object.prototype,Xoe=Koe.hasOwnProperty;function Zoe(e,t,n){var r=e[t];(!(Xoe.call(e,t)&&Goe(r,n))||n===void 0&&!(t in e))&&Yoe(e,t,n)}var $b=Zoe,Qoe=$b,Joe=Pb;function eie(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),i?Joe(n,l,c):Qoe(n,l,c)}return n}var As=eie;function tie(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var nie=tie,rie=kr,oie=ep,iie=nie,aie=Object.prototype,sie=aie.hasOwnProperty;function lie(e){if(!rie(e))return iie(e);var t=oie(e),n=[];for(var r in e)r=="constructor"&&(t||!sie.call(e,r))||n.push(r);return n}var cie=lie,uie=QC,die=cie,fie=qo;function pie(e){return fie(e)?uie(e,!0):die(e)}var Hc=pie,hie=As,mie=Hc;function gie(e){return hie(e,mie(e))}var yie=gie,lO=W_,bie=q_,vie=U_,wie=Uc,xie=H_,cO=jc,uO=Cn,Oie=Y_,Tie=Lc,Sie=Ac,Eie=kr,Cie=Db,Pie=Jf,dO=K_,_ie=yie;function kie(e,t,n,r,i,a,s){var l=dO(e,n),c=dO(t,n),u=s.get(c);if(u){lO(e,n,u);return}var d=a?a(l,c,n+"",e,t,s):void 0,f=d===void 0;if(f){var p=uO(c),h=!p&&Tie(c),g=!p&&!h&&Pie(c);d=c,p||h||g?uO(l)?d=l:Oie(l)?d=wie(l):h?(f=!1,d=bie(c,!0)):g?(f=!1,d=vie(c,!0)):d=[]:Cie(c)||cO(c)?(d=l,cO(l)?d=_ie(l):(!Eie(l)||Sie(l))&&(d=xie(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),lO(e,n,d)}var Die=kie,$ie=Qf,Rie=W_,Mie=V_,Iie=Die,Nie=kr,Aie=Hc,jie=K_;function X_(e,t,n,r,i){e!==t&&Mie(t,function(a,s){if(i||(i=new $ie),Nie(a))Iie(e,t,s,n,X_,r,i);else{var l=r?r(jie(e,s),a,s+"",e,t,i):void 0;l===void 0&&(l=a),Rie(e,s,l)}},Aie)}var Lie=X_;function Fie(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Rb=Fie,Vie=Rb,fO=Math.max;function Bie(e,t,n){return t=fO(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=fO(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(s),Vie(e,this,l)}}var Z_=Bie;function zie(e){return function(){return e}}var Wie=zie,qie=Wie,pO=z_,Uie=tp,Hie=pO?function(e,t){return pO(e,"toString",{configurable:!0,enumerable:!1,value:qie(t),writable:!0})}:Uie,Yie=Hie,Gie=800,Kie=16,Xie=Date.now;function Zie(e){var t=0,n=0;return function(){var r=Xie(),i=Kie-(r-n);if(n=r,i>0){if(++t>=Gie)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Q_=Zie,Qie=Yie,Jie=Q_,eae=Jie(Qie),Mb=eae,tae=tp,nae=Z_,rae=Mb;function oae(e,t){return rae(nae(e,t,tae),e+"")}var J_=oae,iae=J_,aae=IP;function sae(e){return iae(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&aae(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}var lae=sae,cae=Lie,uae=lae,dae=uae(function(e,t,n){cae(e,t,n)}),fae=dae;const $t=kt(fae);function pae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Ib=pae,hae=As,mae=Uo;function gae(e,t){return e&&hae(t,mae(t),e)}var ek=gae,yae=As,bae=Hc;function vae(e,t){return e&&yae(t,bae(t),e)}var wae=vae,xae=As,Oae=Ty;function Tae(e,t){return xae(e,Oae(e),t)}var Sae=Tae,Eae=Oy,Cae=kb,Pae=Ty,_ae=XC,kae=Object.getOwnPropertySymbols,Dae=kae?function(e){for(var t=[];e;)Eae(t,Pae(e)),e=Cae(e);return t}:_ae,tk=Dae,$ae=As,Rae=tk;function Mae(e,t){return $ae(e,Rae(e),t)}var Iae=Mae,Nae=GC,Aae=tk,jae=Hc;function Lae(e){return Nae(e,jae,Aae)}var nk=Lae,Fae=Object.prototype,Vae=Fae.hasOwnProperty;function Bae(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Vae.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var zae=Bae,Wae=_b;function qae(e,t){var n=t?Wae(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Uae=qae,Hae=/\w*$/;function Yae(e){var t=new e.constructor(e.source,Hae.exec(e));return t.lastIndex=e.lastIndex,t}var Gae=Yae,hO=Es,mO=hO?hO.prototype:void 0,gO=mO?mO.valueOf:void 0;function Kae(e){return gO?Object(gO.call(e)):{}}var Xae=Kae,Zae=_b,Qae=Uae,Jae=Gae,ese=Xae,tse=U_,nse="[object Boolean]",rse="[object Date]",ose="[object Map]",ise="[object Number]",ase="[object RegExp]",sse="[object Set]",lse="[object String]",cse="[object Symbol]",use="[object ArrayBuffer]",dse="[object DataView]",fse="[object Float32Array]",pse="[object Float64Array]",hse="[object Int8Array]",mse="[object Int16Array]",gse="[object Int32Array]",yse="[object Uint8Array]",bse="[object Uint8ClampedArray]",vse="[object Uint16Array]",wse="[object Uint32Array]";function xse(e,t,n){var r=e.constructor;switch(t){case use:return Zae(e);case nse:case rse:return new r(+e);case dse:return Qae(e,n);case fse:case pse:case hse:case mse:case gse:case yse:case bse:case vse:case wse:return tse(e,n);case ose:return new r;case ise:case lse:return new r(e);case ase:return Jae(e);case sse:return new r;case cse:return ese(e)}}var Ose=xse,Tse=na,Sse=_r,Ese="[object Map]";function Cse(e){return Sse(e)&&Tse(e)==Ese}var Pse=Cse,_se=Pse,kse=Ey,yO=Cy,bO=yO&&yO.isMap,Dse=bO?kse(bO):_se,$se=Dse,Rse=na,Mse=_r,Ise="[object Set]";function Nse(e){return Mse(e)&&Rse(e)==Ise}var Ase=Nse,jse=Ase,Lse=Ey,vO=Cy,wO=vO&&vO.isSet,Fse=wO?Lse(wO):jse,Vse=Fse,Bse=Qf,zse=Ib,Wse=$b,qse=ek,Use=wae,Hse=q_,Yse=Uc,Gse=Sae,Kse=Iae,Xse=eP,Zse=nk,Qse=na,Jse=zae,ele=Ose,tle=H_,nle=Cn,rle=Lc,ole=$se,ile=kr,ale=Vse,sle=Uo,lle=Hc,cle=1,ule=2,dle=4,rk="[object Arguments]",fle="[object Array]",ple="[object Boolean]",hle="[object Date]",mle="[object Error]",ok="[object Function]",gle="[object GeneratorFunction]",yle="[object Map]",ble="[object Number]",ik="[object Object]",vle="[object RegExp]",wle="[object Set]",xle="[object String]",Ole="[object Symbol]",Tle="[object WeakMap]",Sle="[object ArrayBuffer]",Ele="[object DataView]",Cle="[object Float32Array]",Ple="[object Float64Array]",_le="[object Int8Array]",kle="[object Int16Array]",Dle="[object Int32Array]",$le="[object Uint8Array]",Rle="[object Uint8ClampedArray]",Mle="[object Uint16Array]",Ile="[object Uint32Array]",en={};en[rk]=en[fle]=en[Sle]=en[Ele]=en[ple]=en[hle]=en[Cle]=en[Ple]=en[_le]=en[kle]=en[Dle]=en[yle]=en[ble]=en[ik]=en[vle]=en[wle]=en[xle]=en[Ole]=en[$le]=en[Rle]=en[Mle]=en[Ile]=!0;en[mle]=en[ok]=en[Tle]=!1;function Zu(e,t,n,r,i,a){var s,l=t&cle,c=t&ule,u=t&dle;if(n&&(s=i?n(e,r,i,a):n(e)),s!==void 0)return s;if(!ile(e))return e;var d=nle(e);if(d){if(s=Jse(e),!l)return Yse(e,s)}else{var f=Qse(e),p=f==ok||f==gle;if(rle(e))return Hse(e,l);if(f==ik||f==rk||p&&!i){if(s=c||p?{}:tle(e),!l)return c?Kse(e,Use(s,e)):Gse(e,qse(s,e))}else{if(!en[f])return i?e:{};s=ele(e,f,l)}}a||(a=new Bse);var h=a.get(e);if(h)return h;a.set(e,s),ale(e)?e.forEach(function(y){s.add(Zu(y,t,n,y,e,a))}):ole(e)&&e.forEach(function(y,b){s.set(b,Zu(y,t,n,b,e,a))});var g=u?c?Zse:Xse:c?lle:sle,m=d?void 0:g(e);return zse(m||e,function(y,b){m&&(b=y,y=e[b]),Wse(s,b,Zu(y,t,n,b,e,a))}),s}var dp=Zu,Nle=dp,Ale=1,jle=4;function Lle(e){return Nle(e,Ale|jle)}var Fle=Lle;const Al=kt(Fle);var ak={};(function(e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var i in n){var a=n[i];t.call(r,a)?r[a].push(i):r[a]=[i]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})(ak);var Nh,xO;function Nb(){return xO||(xO=1,Nh={}),Nh}var Pn=ak,Vle=Nb(),OO=Array.prototype.push;function Ble(e,t){return t==2?function(n,r){return e.apply(void 0,arguments)}:function(n){return e.apply(void 0,arguments)}}function Ah(e,t){return t==2?function(n,r){return e(n,r)}:function(n){return e(n)}}function TO(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function zle(e){return function(t){return e({},t)}}function Wle(e,t){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var a=i[t],s=i.slice(0,t);return a&&OO.apply(s,a),t!=r&&OO.apply(s,i.slice(t+1)),e.apply(this,s)}}function jh(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}function Qm(e,t,n,r){var i=typeof t=="function",a=t===Object(t);if(a&&(r=n,n=t,t=void 0),n==null)throw new TypeError;r||(r={});var s={cap:"cap"in r?r.cap:!0,curry:"curry"in r?r.curry:!0,fixed:"fixed"in r?r.fixed:!0,immutable:"immutable"in r?r.immutable:!0,rearg:"rearg"in r?r.rearg:!0},l=i?n:Vle,c="curry"in r&&r.curry,u="fixed"in r&&r.fixed,d="rearg"in r&&r.rearg,f=i?n.runInContext():void 0,p=i?n:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},h=p.ary,g=p.assign,m=p.clone,y=p.curry,b=p.forEach,v=p.isArray,x=p.isError,w=p.isFunction,O=p.isWeakMap,E=p.keys,C=p.rearg,S=p.toInteger,P=p.toPath,T=E(Pn.aryMethod),_={castArray:function(A){return function(){var N=arguments[0];return v(N)?A(TO(N)):A.apply(void 0,arguments)}},iteratee:function(A){return function(){var N=arguments[0],q=arguments[1],Y=A(N,q),G=Y.length;return s.cap&&typeof q=="number"?(q=q>2?q-2:1,G&&G<=q?Y:Ah(Y,q)):Y}},mixin:function(A){return function(N){var q=this;if(!w(q))return A(q,Object(N));var Y=[];return b(E(N),function(G){w(N[G])&&Y.push([G,q.prototype[G]])}),A(q,Object(N)),b(Y,function(G){var K=G[1];w(K)?q.prototype[G[0]]=K:delete q.prototype[G[0]]}),q}},nthArg:function(A){return function(N){var q=N<0?1:S(N)+1;return y(A(N),q)}},rearg:function(A){return function(N,q){var Y=q?q.length:0;return y(A(N,q),Y)}},runInContext:function(A){return function(N){return Qm(e,A(N),r)}}};function k(A,N){if(s.cap){var q=Pn.iterateeRearg[A];if(q)return L(N,q);var Y=!i&&Pn.iterateeAry[A];if(Y)return U(N,Y)}return N}function $(A,N,q){return c||s.curry&&q>1?y(N,q):N}function M(A,N,q){if(s.fixed&&(u||!Pn.skipFixed[A])){var Y=Pn.methodSpread[A],G=Y&&Y.start;return G===void 0?h(N,q):Wle(N,G)}return N}function j(A,N,q){return s.rearg&&q>1&&(d||!Pn.skipRearg[A])?C(N,Pn.methodRearg[A]||Pn.aryRearg[q]):N}function W(A,N){N=P(N);for(var q=-1,Y=N.length,G=Y-1,K=m(Object(A)),J=K;J!=null&&++q<Y;){var Z=N[q],ie=J[Z];ie!=null&&!(w(ie)||x(ie)||O(ie))&&(J[Z]=m(q==G?ie:Object(ie))),J=J[Z]}return K}function H(A){return z.runInContext.convert(A)(void 0)}function X(A,N){var q=Pn.aliasToReal[A]||A,Y=Pn.remap[q]||q,G=r;return function(K){var J=i?f:p,Z=i?f[Y]:N,ie=g(g({},G),K);return Qm(J,q,Z,ie)}}function U(A,N){return D(A,function(q){return typeof q=="function"?Ah(q,N):q})}function L(A,N){return D(A,function(q){var Y=N.length;return Ble(C(Ah(q,Y),N),Y)})}function D(A,N){return function(){var q=arguments.length;if(!q)return A();for(var Y=Array(q);q--;)Y[q]=arguments[q];var G=s.rearg?0:q-1;return Y[G]=N(Y[G]),A.apply(void 0,Y)}}function B(A,N,q){var Y,G=Pn.aliasToReal[A]||A,K=N,J=_[G];return J?K=J(N):s.immutable&&(Pn.mutate.array[G]?K=jh(N,TO):Pn.mutate.object[G]?K=jh(N,zle(N)):Pn.mutate.set[G]&&(K=jh(N,W))),b(T,function(Z){return b(Pn.aryMethod[Z],function(ie){if(G==ie){var de=Pn.methodSpread[G],xe=de&&de.afterRearg;return Y=xe?M(G,j(G,K,Z),Z):j(G,M(G,K,Z),Z),Y=k(G,Y),Y=$(G,Y,Z),!1}}),!Y}),Y||(Y=K),Y==N&&(Y=c?y(Y,1):function(){return N.apply(this,arguments)}),Y.convert=X(G,N),Y.placeholder=N.placeholder=q,Y}if(!a)return B(t,n,l);var z=n,F=[];return b(T,function(A){b(Pn.aryMethod[A],function(N){var q=z[Pn.remap[N]||N];q&&F.push([N,B(N,q,z)])})}),b(E(z),function(A){var N=z[A];if(typeof N=="function"){for(var q=F.length;q--;)if(F[q][0]==A)return;N.convert=X(A,N),F.push([A,N])}}),b(F,function(A){z[A[0]]=A[1]}),z.convert=H,z.placeholder=z,b(E(z),function(A){b(Pn.realToAlias[A]||[],function(N){z[N]=z[A]})}),z}var qle=Qm,SO=nP,Ule=SO&&new SO,sk=Ule,Hle=tp,EO=sk,Yle=EO?function(e,t){return EO.set(e,t),e}:Hle,lk=Yle,Gle=up,Kle=kr;function Xle(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Gle(e.prototype),r=e.apply(n,t);return Kle(r)?r:n}}var fp=Xle,Zle=fp,Qle=Qn,Jle=1;function ece(e,t,n){var r=t&Jle,i=Zle(e);function a(){var s=this&&this!==Qle&&this instanceof a?i:e;return s.apply(r?n:this,arguments)}return a}var tce=ece,nce=Math.max;function rce(e,t,n,r){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=nce(a-s,0),d=Array(c+u),f=!r;++l<c;)d[l]=t[l];for(;++i<s;)(f||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}var ck=rce,oce=Math.max;function ice(e,t,n,r){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=oce(a-l,0),f=Array(d+u),p=!r;++i<d;)f[i]=e[i];for(var h=i;++c<u;)f[h+c]=t[c];for(;++s<l;)(p||i<a)&&(f[h+n[s]]=e[i++]);return f}var uk=ice;function ace(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var sce=ace;function lce(){}var Ab=lce,cce=up,uce=Ab,dce=4294967295;function Md(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=dce,this.__views__=[]}Md.prototype=cce(uce.prototype);Md.prototype.constructor=Md;var jb=Md;function fce(){}var dk=fce,CO=sk,pce=dk,hce=CO?function(e){return CO.get(e)}:pce,fk=hce,mce={},gce=mce,PO=gce,yce=Object.prototype,bce=yce.hasOwnProperty;function vce(e){for(var t=e.name+"",n=PO[t],r=bce.call(PO,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}var wce=vce,xce=up,Oce=Ab;function Id(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Id.prototype=xce(Oce.prototype);Id.prototype.constructor=Id;var pk=Id,Tce=jb,Sce=pk,Ece=Uc;function Cce(e){if(e instanceof Tce)return e.clone();var t=new Sce(e.__wrapped__,e.__chain__);return t.__actions__=Ece(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Pce=Cce,_ce=jb,_O=pk,kce=Ab,Dce=Cn,$ce=_r,Rce=Pce,Mce=Object.prototype,Ice=Mce.hasOwnProperty;function Nd(e){if($ce(e)&&!Dce(e)&&!(e instanceof _ce)){if(e instanceof _O)return e;if(Ice.call(e,"__wrapped__"))return Rce(e)}return new _O(e)}Nd.prototype=kce.prototype;Nd.prototype.constructor=Nd;var Nce=Nd,Ace=jb,jce=fk,Lce=wce,Fce=Nce;function Vce(e){var t=Lce(e),n=Fce[t];if(typeof n!="function"||!(t in Ace.prototype))return!1;if(e===n)return!0;var r=jce(n);return!!r&&e===r[0]}var Bce=Vce,zce=lk,Wce=Q_,qce=Wce(zce),hk=qce,Uce=/\{\n\/\* \[wrapped with (.+)\] \*/,Hce=/,? & /;function Yce(e){var t=e.match(Uce);return t?t[1].split(Hce):[]}var Gce=Yce,Kce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Xce(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Kce,`{
/* [wrapped with `+t+`] */
`)}var Zce=Xce,Qce=VP;function Jce(e,t){var n=e==null?0:e.length;return!!n&&Qce(e,t,0)>-1}var mk=Jce,eue=Ib,tue=mk,nue=1,rue=2,oue=8,iue=16,aue=32,sue=64,lue=128,cue=256,uue=512,due=[["ary",lue],["bind",nue],["bindKey",rue],["curry",oue],["curryRight",iue],["flip",uue],["partial",aue],["partialRight",sue],["rearg",cue]];function fue(e,t){return eue(due,function(n){var r="_."+n[0];t&n[1]&&!tue(e,r)&&e.push(r)}),e.sort()}var pue=fue,hue=Gce,mue=Zce,gue=Mb,yue=pue;function bue(e,t,n){var r=t+"";return gue(e,mue(r,yue(hue(r),n)))}var gk=bue,vue=Bce,wue=hk,xue=gk,Oue=4,Tue=8,kO=32,DO=64;function Sue(e,t,n,r,i,a,s,l,c,u){var d=t&Tue,f=d?s:void 0,p=d?void 0:s,h=d?a:void 0,g=d?void 0:a;t|=d?kO:DO,t&=~(d?DO:kO),t&Oue||(t&=-4);var m=[e,t,i,h,f,g,p,l,c,u],y=n.apply(void 0,m);return vue(e)&&wue(y,m),y.placeholder=r,xue(y,e,t)}var yk=Sue;function Eue(e){var t=e;return t.placeholder}var bk=Eue,Cue=Uc,Pue=Fc,_ue=Math.min;function kue(e,t){for(var n=e.length,r=_ue(t.length,n),i=Cue(e);r--;){var a=t[r];e[r]=Pue(a,n)?i[a]:void 0}return e}var Due=kue,$O="__lodash_placeholder__";function $ue(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];(s===t||s===$O)&&(e[n]=$O,a[i++]=n)}return a}var Lb=$ue,Rue=ck,Mue=uk,Iue=sce,RO=fp,Nue=yk,Aue=bk,jue=Due,Lue=Lb,Fue=Qn,Vue=1,Bue=2,zue=8,Wue=16,que=128,Uue=512;function vk(e,t,n,r,i,a,s,l,c,u){var d=t&que,f=t&Vue,p=t&Bue,h=t&(zue|Wue),g=t&Uue,m=p?void 0:RO(e);function y(){for(var b=arguments.length,v=Array(b),x=b;x--;)v[x]=arguments[x];if(h)var w=Aue(y),O=Iue(v,w);if(r&&(v=Rue(v,r,i,h)),a&&(v=Mue(v,a,s,h)),b-=O,h&&b<u){var E=Lue(v,w);return Nue(e,t,vk,y.placeholder,n,v,E,l,c,u-b)}var C=f?n:this,S=p?C[e]:e;return b=v.length,l?v=jue(v,l):g&&b>1&&v.reverse(),d&&c<b&&(v.length=c),this&&this!==Fue&&this instanceof y&&(S=m||RO(S)),S.apply(C,v)}return y}var wk=vk,Hue=Rb,Yue=fp,Gue=wk,Kue=yk,Xue=bk,Zue=Lb,Que=Qn;function Jue(e,t,n){var r=Yue(e);function i(){for(var a=arguments.length,s=Array(a),l=a,c=Xue(i);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:Zue(s,c);if(a-=u.length,a<n)return Kue(e,t,Gue,i.placeholder,void 0,s,u,void 0,void 0,n-a);var d=this&&this!==Que&&this instanceof i?r:e;return Hue(d,this,s)}return i}var ede=Jue,tde=Rb,nde=fp,rde=Qn,ode=1;function ide(e,t,n,r){var i=t&ode,a=nde(e);function s(){for(var l=-1,c=arguments.length,u=-1,d=r.length,f=Array(d+c),p=this&&this!==rde&&this instanceof s?a:e;++u<d;)f[u]=r[u];for(;c--;)f[u++]=arguments[++l];return tde(p,i?n:this,f)}return s}var ade=ide,sde=ck,lde=uk,MO=Lb,IO="__lodash_placeholder__",Lh=1,cde=2,ude=4,NO=8,ol=128,AO=256,dde=Math.min;function fde(e,t){var n=e[1],r=t[1],i=n|r,a=i<(Lh|cde|ol),s=r==ol&&n==NO||r==ol&&n==AO&&e[7].length<=t[8]||r==(ol|AO)&&t[7].length<=t[8]&&n==NO;if(!(a||s))return e;r&Lh&&(e[2]=t[2],i|=n&Lh?0:ude);var l=t[3];if(l){var c=e[3];e[3]=c?sde(c,l,t[4]):l,e[4]=c?MO(e[3],IO):t[4]}return l=t[5],l&&(c=e[5],e[5]=c?lde(c,l,t[6]):l,e[6]=c?MO(e[5],IO):t[6]),l=t[7],l&&(e[7]=l),r&ol&&(e[8]=e[8]==null?t[8]:dde(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var pde=fde,hde=lk,mde=tce,gde=ede,yde=wk,bde=ade,vde=fk,wde=pde,xde=hk,Ode=gk,jO=rp,Tde="Expected a function",LO=1,Sde=2,FO=8,VO=16,BO=32,Ede=64,zO=Math.max;function Cde(e,t,n,r,i,a,s,l){var c=t&Sde;if(!c&&typeof e!="function")throw new TypeError(Tde);var u=r?r.length:0;if(u||(t&=-97,r=i=void 0),s=s===void 0?s:zO(jO(s),0),l=l===void 0?l:jO(l),u-=i?i.length:0,t&Ede){var d=r,f=i;r=i=void 0}var p=c?void 0:vde(e),h=[e,t,n,r,i,d,f,a,s,l];if(p&&wde(h,p),e=h[0],t=h[1],n=h[2],r=h[3],i=h[4],l=h[9]=h[9]===void 0?c?0:e.length:zO(h[9]-u,0),!l&&t&(FO|VO)&&(t&=-25),!t||t==LO)var g=mde(e,t,n);else t==FO||t==VO?g=gde(e,t,l):(t==BO||t==(LO|BO))&&!i.length?g=bde(e,t,n,r):g=yde.apply(void 0,h);var m=p?hde:xde;return Ode(m(g,h),e,t)}var Fb=Cde,Pde=Fb,_de=128;function kde(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,Pde(e,_de,void 0,void 0,void 0,void 0,t)}var Dde=kde,$de=dp,Rde=4;function Mde(e){return $de(e,Rde)}var Ide=Mde,Nde=Fb,Ade=8;function Vb(e,t,n){t=n?void 0:t;var r=Nde(e,Ade,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Vb.placeholder,r}Vb.placeholder={};var jde=Vb,Lde=mi,Fde=_r,Vde=Db,Bde="[object DOMException]",zde="[object Error]";function Wde(e){if(!Fde(e))return!1;var t=Lde(e);return t==zde||t==Bde||typeof e.message=="string"&&typeof e.name=="string"&&!Vde(e)}var qde=Wde,Ude=na,Hde=_r,Yde="[object WeakMap]";function Gde(e){return Hde(e)&&Ude(e)==Yde}var Kde=Gde,Xde=dp,Zde=oa,Qde=1;function Jde(e){return Zde(typeof e=="function"?e:Xde(e,Qde))}var efe=Jde,WO=Es,tfe=jc,nfe=Cn,qO=WO?WO.isConcatSpreadable:void 0;function rfe(e){return nfe(e)||tfe(e)||!!(qO&&e&&e[qO])}var ofe=rfe,ife=Oy,afe=ofe;function xk(e,t,n,r,i){var a=-1,s=e.length;for(n||(n=afe),i||(i=[]);++a<s;){var l=e[a];t>0&&n(l)?t>1?xk(l,t-1,n,r,i):ife(i,l):r||(i[i.length]=l)}return i}var Ok=xk,sfe=Ok;function lfe(e){var t=e==null?0:e.length;return t?sfe(e,1):[]}var cfe=lfe,ufe=cfe,dfe=Z_,ffe=Mb;function pfe(e){return ffe(dfe(e,void 0,ufe),e+"")}var Tk=pfe,hfe=Fb,mfe=Tk,gfe=256,yfe=mfe(function(e,t){return hfe(e,gfe,void 0,void 0,void 0,t)}),bfe=yfe,vfe=Rs,wfe=Uc,xfe=Cn,Ofe=Cs,Tfe=lP,Sfe=ra,Efe=Vc;function Cfe(e){return xfe(e)?vfe(e,Sfe):Ofe(e)?[e]:wfe(Tfe(Efe(e)))}var Pfe=Cfe,_fe={ary:Dde,assign:ek,clone:Ide,curry:jde,forEach:Ib,isArray:Cn,isError:qde,isFunction:Ac,isWeakMap:Kde,iteratee:efe,keys:Py,rearg:bfe,toInteger:rp,toPath:Pfe},kfe=qle,Dfe=_fe;function $fe(e,t,n){return kfe(Dfe,e,t,n)}var Sk=$fe,Fh,UO;function Rfe(){if(UO)return Fh;UO=1;var e=$b,t=Bc,n=Fc,r=kr,i=ra;function a(s,l,c,u){if(!r(s))return s;l=t(l,s);for(var d=-1,f=l.length,p=f-1,h=s;h!=null&&++d<f;){var g=i(l[d]),m=c;if(g==="__proto__"||g==="constructor"||g==="prototype")return s;if(d!=p){var y=h[g];m=u?u(y,g,h):void 0,m===void 0&&(m=r(y)?y:n(l[d+1])?[]:{})}e(h,g,m),h=h[g]}return s}return Fh=a,Fh}var Vh,HO;function Mfe(){if(HO)return Vh;HO=1;var e=Rfe();function t(n,r,i){return n==null?n:e(n,r,i)}return Vh=t,Vh}var Ife=Sk,Ek=Ife("set",Mfe());Ek.placeholder=Nb();var Nfe=Ek;const Afe=kt(Nfe);function jfe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Lfe=jfe,Ffe=$y,Vfe=CP;function Bfe(e,t){return t.length<2?e:Ffe(e,Vfe(t,0,-1))}var zfe=Bfe,Wfe=Bc,qfe=Lfe,Ufe=zfe,Hfe=ra;function Yfe(e,t){return t=Wfe(t,e),e=Ufe(e,t),e==null||delete e[Hfe(qfe(t))]}var Ck=Yfe,Bh,YO;function Gfe(){if(YO)return Bh;YO=1;var e=Ck;function t(n,r){return n==null?!0:e(n,r)}return Bh=t,Bh}var Kfe=Sk,Pk=Kfe("unset",Gfe());Pk.placeholder=Nb();var Xfe=Pk;const Zfe=kt(Xfe);function Qfe(e,t,n,r,i){return i(e,function(a,s,l){n=r?(r=!1,a):t(n,a,s,l)}),n}var Jfe=Qfe,epe=fP,tpe=Eb,npe=oa,rpe=Jfe,ope=Cn;function ipe(e,t,n){var r=ope(e)?epe:rpe,i=arguments.length<3;return r(e,npe(t),n,i,tpe)}var ape=ipe;const GO=kt(ape);var spe=Rs;function lpe(e,t){return spe(t,function(n){return[n,e[n]]})}var cpe=lpe;function upe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var dpe=upe,fpe=cpe,ppe=na,hpe=HC,mpe=dpe,gpe="[object Map]",ype="[object Set]";function bpe(e){return function(t){var n=ppe(t);return n==gpe?hpe(t):n==ype?mpe(t):fpe(t,e(t))}}var vpe=bpe,wpe=vpe,xpe=Uo,Ope=wpe(xpe),Tpe=Ope;const Spe=kt(Tpe),Qu="additionalProperties",Ju="required",Epe=(e,t)=>{const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:(n[i]=!0,!0)})};class Cpe{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),i={type:"object",properties:r,additionalProperties:this.findOption(r)(Qu)},a=this.findOption(r)(Ju);return a.length>0&&(i.required=a),i},this.properties=n=>{const r={};return Object.keys(n).reduce((i,a)=>(i[a]=this.property(n[a]),i),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),i=Epe(r,a=>JSON.stringify(a));return i.length===1?{type:"array",items:i[0]}:{type:"array",items:{oneOf:i}}}else return{type:"array",items:{}}}}}const _k=(e,t={})=>{const n=i=>a=>{switch(a){case Qu:return Object.prototype.hasOwnProperty.call(t,Qu)?t[Qu]:!0;case Ju:return Object.prototype.hasOwnProperty.call(t,Ju)?t[Ju](i):Object.keys(i);default:return}};return new Cpe(n).schemaObject(e)},Bb=new Set,kk=(e,t)=>t<=1?e:e+t.toString(),Ppe=(e,t)=>{const n=kk(e,t);return!Bb.has(n)},Jm=e=>{e===void 0&&(e="undefined");let t=0;for(;!Ppe(e,t);)t++;const n=kk(e,t);return Bb.add(n),n},eg=e=>Bb.delete(e),js=(e,t)=>{let n=e;return!ut(e)&&!ut(t)&&!t.startsWith("[")&&(n=e+"."),ut(n)?t:ut(t)?n:`${n}${t}`},Dk=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(Yc),a=r[0]==="#"||r[0]===""?2:1;return np(a,r.length,2).map(s=>r[s])},Ad=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),Yc=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),$k=e=>`/properties/${e.split(".").map(t=>Ad(t)).join("/properties/")}`,zh=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=Yc(n.substr(n.lastIndexOf("/")+1));return My(r)}return""},_pe=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Iu(zh(e,t),n);if(typeof n=="string")return Iu(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:zh(e,t),i=typeof n.show=="boolean"?n.show:!0;return Iu(r,i)}return Iu(zh(e,t),!0)},Iu=(e,t)=>({text:e,show:t}),ed=(e,t)=>ut(t)?e:t.split(".").reduce((r,i)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,i)))return r[i]},e),kpe=e=>e==="#"||e===void 0||e==="",lr=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(Yc);return td(e,r,n)},td=(e,t,n)=>{if(typeof(e==null?void 0:e.$ref)=="string"&&(e=lr(n,e.$ref,n)),!t||t.length===0)return e;if(ut(e))return;const[r,...i]=t;if(kpe(r))return td(e,i,n);const a=Dn(e,r),s=td(a,i,n);if(s)return s;if(r==="properties"||r==="items"){let l;const c=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const u of c)if(l=td(u,[r,...i],n),l)break;return l}};var Co;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(Co||(Co={}));const tg=(e,t)=>{var n;if(Mpe(e)){if(Ik(e)&&e.scope.endsWith($k(t)))return e;if((n=e.options)!=null&&n.detail)return tg(e.options.detail,t)}if(zb(e))for(const r of e.elements){const i=tg(r,t);if(i!==void 0)return i}},Rk=(e,t)=>{if(!Ik(e))return t??"";const n=Dk(e.scope);return ut(n)?t??"":js(t,n.join("."))},Mk=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",Dpe=e=>e.type==="Group",zb=e=>e.elements!==void 0,$pe=e=>!!e&&typeof e=="object",Ik=e=>$pe(e)&&typeof e.scope=="string",Rpe=e=>!!e&&typeof e=="object",Mpe=e=>e.type==="Control",Ipe=e=>e.type==="OR",Npe=e=>e.type==="AND",Ape=e=>e.type==="LEAF",jpe=e=>jP(e,"schema"),Lpe=e=>jP(e,"validate")&&typeof e.validate=="function",Wh=(e,t)=>Rk(e,t),ng=(e,t,n,r,i)=>{if(Npe(n))return n.conditions.reduce((a,s)=>a&&ng(e,t,s,r,i),!0);if(Ipe(n))return n.conditions.reduce((a,s)=>a||ng(e,t,s,r,i),!1);if(Ape(n))return ed(e,Wh(n,r))===n.expectedValue;if(jpe(n)){const a=ed(e,Wh(n,r));return n.failWhenUndefined&&a===void 0?!1:i.validate(n.schema,a)}else if(Lpe(n)){const s={data:ed(e,Wh(n,r)),fullData:e,path:r,uischemaElement:t};return n.validate(s)}else return!0},Nk=(e,t,n,r)=>{const i=e.rule.condition;return ng(t,e,i,n,r)},Fpe=(e,t,n=void 0,r)=>{const i=Nk(e,t,n,r);switch(e.rule.effect){case Co.HIDE:return!i;case Co.SHOW:return i;default:return!0}},Vpe=(e,t,n=void 0,r)=>{const i=Nk(e,t,n,r);switch(e.rule.effect){case Co.DISABLE:return!i;case Co.ENABLE:return i;default:return!0}},Wb=e=>!!(e.rule&&(e.rule.effect===Co.SHOW||e.rule.effect===Co.HIDE)),Bpe=e=>!!(e.rule&&(e.rule.effect===Co.ENABLE||e.rule.effect===Co.DISABLE)),Ls=(e,t,n=void 0,r)=>e.rule?Fpe(e,t,n,r):!0,zpe=(e,t,n=void 0,r)=>e.rule?Vpe(e,t,n,r):!0,Wpe=e=>{if(e&&typeof e=="object"&&"properties"in e&&e.properties)return FP(Object.keys(e.properties),t=>{const n=e.properties[t];return n&&typeof n=="object"&&"type"in n&&(n.type==="string"||n.type==="number"||n.type==="integer")})},Ql=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),Ak=e=>!!e&&typeof e=="object"&&(Object.prototype.hasOwnProperty.call(e,"enum")||Object.prototype.hasOwnProperty.call(e,"const")),qpe=(e,t)=>{const n=e.toISOString();return t==="date-time"?n:t==="date"?n.split("T")[0]:t==="time"?n.split("T")[1].split(".")[0]:n},Ln=(e,t)=>BP(Fi(e),t),Fi=e=>{if(ut(e))return[];if(!ut(e.type)&&typeof e.type=="string")return[e.type];if(YC(e.type))return e.type;if(!ut(e.properties)||!ut(e.additionalProperties))return["object"];if(!ut(e.items))return["array"];if(!ut(e.enum)){const t=new Set;return e.enum.forEach(n=>{typeof n=="string"?t.add("string"):Fi(n).forEach(r=>t.add(r))}),Array.from(t)}if(!ut(e.allOf)){const t=FP(e.allOf,n=>Fi(n).length!==0);if(t)return Fi(t)}return[]},cr={schema:lr,data:ed},Upe=e=>Dk(e.scope).join("."),qb={compose:js,fromScoped:Upe},Hpe=e=>{const t=new zre({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return qre(t),t},Ro=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Ype="YYYY-MM-DD",Gpe="HH:mm:ss",Kpe="YYYY-MM-DDTHH:mm:ss.sssZ",Xpe=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},rg=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Xpe(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=Yc(t),t},Zpe=(e,t,n)=>r=>{const i=oO(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>rg(a));return oO(r,a=>{if(Jpe.indexOf(a.keyword)!==-1&&!Ql(a.parentSchema))return!1;const s=rg(a);let l=n(s);const c=a.parentSchema;return l&&!Qpe(c)&&!Ql(c)&&i.findIndex(u=>e.startsWith(u))!==-1&&(l=l&&Cb(c,t)),l})},Qpe=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Jpe=["additionalProperties","allOf","anyOf","oneOf"],jk=e=>e==null?"":e.join(`
`),Lk=e=>({type:e,elements:[]}),nd=e=>({type:"Control",scope:e}),ehe=(e,t)=>{if(!ut(e)&&!zb(e)){const n=Lk(t);return n.elements.push(e),n}return e},the=(e,t)=>{if(!ut(t)){const n=My(t);if(Dpe(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},nhe=e=>!ut(e)&&(!ut(e.oneOf)||!ut(e.anyOf)||!ut(e.allOf)),og=(e,t,n,r,i,a)=>{if(!ut(e)&&e.$ref!==void 0)return og(lr(a,e.$ref,a),t,n,r,i,a);if(nhe(e)){const l=nd(n);return t.push(l),l}const s=Fi(e);if(s.length===0)return null;if(s.length>1){const l=nd(n);return t.push(l),l}if(n==="#"&&s[0]==="object"){const l=Lk(i);if(t.push(l),e.properties&&_7(e.properties).length>1&&the(l,r),!ut(e.properties)){const c=n+"/properties";Object.keys(e.properties).map(u=>{let d=e.properties[u];const f=`${c}/${Ad(u)}`;d.$ref!==void 0&&(d=lr(a,d.$ref,a)),og(d,l.elements,f,u,i,a)})}return l}switch(s[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{const l=nd(n);return t.push(l),l}default:throw new Error("Unknown type: "+JSON.stringify(e))}},Fk=(e,t="VerticalLayout",n="#",r=e)=>ehe(og(e,[],n,"",t,r),t),Xi={jsonSchema:_k,uiSchema:Fk,controlElement:nd},Ub="jsonforms/INIT",Hb="jsonforms/UPDATE_CORE",Yb="jsonforms/SET_AJV",Gb="jsonforms/UPDATE",Kb="jsonforms/UPDATE_ERRORS",rhe="jsonforms/VALIDATE",Vk="jsonforms/ADD_RENDERER",Bk="jsonforms/REMOVE_RENDERER",zk="jsonforms/ADD_CELL",Wk="jsonforms/REMOVE_CELL",Xb="jsonforms/SET_CONFIG",qk="jsonforms/ADD_UI_SCHEMA",Uk="jsonforms/REMOVE_UI_SCHEMA",Zb="jsonforms/SET_SCHEMA",Qb="jsonforms/SET_UISCHEMA",Jb="jsonforms/SET_VALIDATION_MODE",ev="jsonforms/SET_LOCALE",tv="jsonforms/SET_TRANSLATOR",nv="jsonforms/UPDATE_I18N",Hk="jsonforms/ADD_DEFAULT_DATA",Yk="jsonforms/REMOVE_DEFAULT_DATA",ohe=e=>{if(!("type"in e)||typeof e.type!="string")return!1;switch(e.type){case"ADD":return"values"in e&&Array.isArray(e.values)&&e.values.length>0;case"REMOVE":return"indices"in e&&Array.isArray(e.indices)&&e.indices.length>0&&e.indices.every(t=>typeof t=="number");case"MOVE":return"moves"in e&&Array.isArray(e.moves)&&e.moves.length>0&&e.moves.every(t=>typeof t=="object"&&t!==null&&"from"in t&&"to"in t&&typeof t.from=="number"&&typeof t.to=="number");default:return!1}},ihe=(e,t=_k(e),n,r)=>({type:Ub,data:e,schema:t,uischema:typeof n=="object"?n:Fk(t),options:r}),ahe=(e,t,n,r)=>({type:Hb,data:e,schema:t,uischema:n,options:r}),she=(e,t)=>({type:Hk,schemaPath:e,data:t}),lhe=e=>({type:Yk,schemaPath:e}),che=e=>({type:Yb,ajv:e}),eo=(e,t,n)=>({type:Gb,path:e,updater:t,context:n}),uhe=e=>({type:Kb,errors:e}),dhe=(e,t)=>({type:Vk,tester:e,renderer:t}),fhe=(e,t)=>({type:zk,tester:e,cell:t}),phe=(e,t)=>({type:Wk,tester:e,cell:t}),hhe=(e,t)=>({type:Bk,tester:e,renderer:t}),mhe=e=>({type:Xb,config:e}),ghe=e=>({type:Jb,validationMode:e}),yhe=(e,t)=>({type:qk,tester:e,uischema:t}),bhe=e=>({type:Uk,tester:e}),vhe=e=>({type:ev,locale:e}),whe=e=>({type:Zb,schema:e}),xhe=(e,t)=>({type:tv,translator:e,errorTranslator:t}),Ohe=(e,t,n)=>({type:nv,locale:e,translator:t,errorTranslator:n}),The=e=>({type:Qb,uischema:e});var xa=Object.freeze({__proto__:null,INIT:Ub,UPDATE_CORE:Hb,SET_AJV:Yb,UPDATE_DATA:Gb,UPDATE_ERRORS:Kb,VALIDATE:rhe,ADD_RENDERER:Vk,REMOVE_RENDERER:Bk,ADD_CELL:zk,REMOVE_CELL:Wk,SET_CONFIG:Xb,ADD_UI_SCHEMA:qk,REMOVE_UI_SCHEMA:Uk,SET_SCHEMA:Zb,SET_UISCHEMA:Qb,SET_VALIDATION_MODE:Jb,SET_LOCALE:ev,SET_TRANSLATOR:tv,UPDATE_I18N:nv,ADD_DEFAULT_DATA:Hk,REMOVE_DEFAULT_DATA:Yk,isUpdateArrayContext:ohe,init:ihe,updateCore:ahe,registerDefaultData:she,unregisterDefaultData:lhe,setAjv:che,update:eo,updateErrors:uhe,registerRenderer:dhe,registerCell:fhe,unregisterCell:phe,unregisterRenderer:hhe,setConfig:mhe,setValidationMode:ghe,registerUISchema:yhe,unregisterUISchema:bhe,setLocale:vhe,setSchema:whe,setTranslator:xhe,updateI18n:Ohe,setUISchema:The});const She={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},KO=(e={})=>$t({},She,e),XO=(e=KO(),t)=>{switch(t.type){case Xb:return KO(t.config);default:return e}},Ehe={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},ZO=(e,t)=>t&&Che(t.options)?t.options.validationMode:e.validationMode,Che=e=>e?e.validationMode!==void 0:!1,Phe=e=>e?e.additionalErrors!==void 0:!1,QO=(e,t)=>t&&Phe(t.options)?t.options.additionalErrors:e.additionalErrors,JO=(e,t)=>{if(t){if(_he(t.options))return t.options.ajv;if(t.options!==void 0&&w6(t.options.compile))return t.options}return e.ajv?e.ajv:Hpe()},_he=e=>e?e.ajv!==void 0:!1,qh=(e=Ehe,t)=>{switch(t.type){case Ub:{const n=JO(e,t),r=ZO(e,t),i=r==="NoValidation"?void 0:n.compile(t.schema),a=Ro(i,t.data),s=QO(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:s,errors:a,validator:i,ajv:n,validationMode:r}}case Hb:{const n=JO(e,t),r=ZO(e,t);let i=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(i=r==="NoValidation"?void 0:n.compile(t.schema),a=Ro(i,t.data)):e.data!==t.data&&(a=Ro(i,t.data));const s=QO(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==i||e.validationMode!==r||e.additionalErrors!==s?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:Cb(a,e.errors)?e.errors:a,validator:i,validationMode:r,additionalErrors:s}:e}case Yb:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),i=Ro(r,e.data);return{...e,validator:r,errors:i}}case Zb:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?e.ajv.compile(t.schema):e.validator,i=Ro(r,e.data);return{...e,validator:r,schema:t.schema,errors:i}}case Qb:return{...e,uischema:t.uischema};case Gb:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(Al(e.data)),r=Ro(e.validator,n);return{...e,data:n,errors:r}}else{const n=Dn(e.data,t.path),r=t.updater(Al(n));let i;r!==void 0?i=Afe(t.path,r,e.data===void 0?{}:e.data):i=Zfe(t.path,e.data===void 0?{}:e.data);const a=Ro(e.validator,i);return{...e,data:i,errors:a}}}case Kb:return{...e,errors:t.errors};case Jb:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Ro(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=e.ajv.compile(e.schema),r=Ro(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}};var Hn;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(Hn||(Hn={}));const khe=[{key:Hn.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:Hn.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:Hn.removeTooltip,default:()=>"Delete"},{key:Hn.removeAriaLabel,default:()=>"Delete button"},{key:Hn.upAriaLabel,default:()=>"Move item up"},{key:Hn.up,default:()=>"Up"},{key:Hn.down,default:()=>"Down"},{key:Hn.downAriaLabel,default:()=>"Move item down"},{key:Hn.noDataMessage,default:()=>"No data"},{key:Hn.noSelection,default:()=>"No selection"},{key:Hn.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:Hn.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:Hn.deleteDialogAccept,default:()=>"Yes"},{key:Hn.deleteDialogDecline,default:()=>"No"}];var Ma;(function(e){e.clearDialogTitle="clearDialogTitle",e.clearDialogMessage="clearDialogMessage",e.clearDialogAccept="clearDialogAccept",e.clearDialogDecline="clearDialogDecline"})(Ma||(Ma={}));Ma.clearDialogTitle,Ma.clearDialogMessage,Ma.clearDialogAccept,Ma.clearDialogDecline;const rv=(e,t)=>Mk(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,Dhe=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Ur=(e,t,n)=>rv(e,t)??Dhe(n),jd=(e,t,n,r)=>`${Ur(e,t,n)}.${r}`,$he=(e,t)=>`${e}.${t}`,ov=(e,t)=>t,iv=(e,t,n)=>{var l;const r=jd(e.parentSchema,n,rg(e),`error.${e.keyword}`),i=t(r,void 0,{error:e});if(i!==void 0)return i;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const s=t(e.message,void 0,{error:e});return s!==void 0?s:e.keyword==="required"&&((l=e.message)!=null&&l.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},av=(e,t,n,r,i,a)=>{if(e.length>0&&n){const s=jd(r,i,a,"error.custom"),l=n(s,void 0,{schema:r,uischema:i,path:a,errors:e});if(l!==void 0)return l}return jk(e.map(s=>t(s,n,i)))},sv=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!Mk(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=rv(void 0,e),i=typeof r=="string"?`${r}.label`:n;return t(i,n,{uischema:e})},Rhe=(e,t,n,r)=>{const i={};return t.forEach(a=>{const s=$he(n,a.key);i[a.key]=e(s,a.default(r))}),i},Mhe=e=>e===void 0?ov:e.translate,Ihe=e=>e===void 0?iv:e.translateError,io=()=>e=>Mhe(Dn(e,"jsonforms.i18n")),lv=()=>e=>Ihe(Dn(e,"jsonforms.i18n")),Ia={locale:"en",translate:ov,translateError:iv},eT=(e=Ia,t)=>{switch(t.type){case nv:{const n=t.locale??Ia.locale,r=t.translator??Ia.translate,i=t.errorTranslator??Ia.translateError;return n!==e.locale||r!==e.translate||i!==e.translateError?{...e,locale:n,translate:r,translateError:i}:e}case tv:return{...e,translate:t.translator??ov,translateError:t.errorTranslator??iv};case ev:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Ld=-1,Vi=e=>!ut(e)&&e.scope!==void 0,Yr=e=>(t,n,r)=>{if(ut(t)||!Vi(t)||ut(n))return!1;const i=t.scope;if(ut(i))return!1;let a=n;return Ln(n,"object")&&(a=lr(n,i,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},cv=(e,t)=>(n,r,i)=>{if(ut(n)||!Vi(n))return!1;const a=n.scope;let s=r;return Ln(r,"object")&&(s=lr(r,a,i==null?void 0:i.rootSchema)),s=Dn(s,e),s===void 0?!1:t(s,i==null?void 0:i.rootSchema)},ui=e=>Yr(t=>!ut(t)&&Ln(t,e)),uv=e=>Yr(t=>!ut(t)&&t.format===e&&Ln(t,"string")),Xt=e=>t=>!ut(t)&&t.type===e,lo=(e,t)=>n=>{if(ut(n))return!1;const r=n.options;return!ut(r)&&r[e]===t},qt=(...e)=>(t,n,r)=>e.reduce((i,a)=>i&&a(t,n,r),!0),Fs=(...e)=>(t,n,r)=>e.reduce((i,a)=>i||a(t,n,r),!1),pt=(e,t)=>(n,r,i)=>t(n,r,i)?e:Ld,Nhe=(e,t)=>(n,r,i)=>{const a=t(n,r,i);return a===Ld?Ld:a+e},pp=qt(Xt("Control"),ui("boolean")),Ahe=qt(Xt("Control"),ui("object")),jhe=qt(Xt("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),Lhe=qt(Xt("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),Fhe=qt(Xt("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),dv=qt(Xt("Control"),Yr(e=>Ak(e))),fv=qt(Xt("Control"),Yr(e=>Ql(e))),Gk=qt(Xt("Control"),ui("integer")),Kk=qt(Xt("Control"),ui("number")),Xk=qt(Xt("Control"),ui("string"));qt(Xt("Control"),lo("multi",!0));const pv=qt(Xt("Control"),Fs(uv("date"),lo("format","date"))),hv=qt(Xt("Control"),Fs(uv("time"),lo("format","time"))),Vhe=qt(Xt("Control"),Fs(uv("date-time"),lo("format","date-time"))),Zk=qt(Yr((e,t)=>Ln(e,"array")&&!Array.isArray(lr(e,"items",t))),cv("items",(e,t)=>{const n=e.$ref?lr(t,e.$ref,t):e;return Ln(n,"object")})),Bhe=qt(Xt("Control"),Zk),xl=(e,t,n)=>{if(YC(e))return GO(e,(r,i)=>r||xl(i,t,n),!1);if(t(e))return!0;if(e.$ref){const r=lr(n,e.$ref,n);if(r&&!r.$ref)return xl(r,t,n)}return e.items?xl(e.items,t,n):e.properties?GO(Spe(e.properties),(r,[i,a])=>r||xl(a,t,n),!1):!1},zhe=(e,t,n)=>{if(!Xt("Control")(e,t,n))return!1;const r=e.scope,i=lr(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(i!==void 0&&i.items!==void 0){if(xl(i.items,s=>s===t||s.$ref!==void 0?!1:!!(s.anyOf||s.allOf||s.oneOf&&!Ql(s)||Ln(s,"object")&&(a++,a===2)||Ln(s,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},Whe=qt(Xt("Control"),Yr((e,t)=>Fi(e).length!==0&&!Array.isArray(lr(e,"items",t))),cv("items",(e,t)=>{const n=e.$ref?lr(t,e.$ref,t):e,r=Fi(n);return r.length===1&&BP(["integer","number","boolean","string"],r[0])})),qhe=qt(Xt("Control"),Fs(ui("number"),ui("integer")),Yr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),lo("slider",!0)),Uhe=qt(Xt("Control"),ui("integer"),lo("format",!0)),Hhe=e=>e.type==="Categorization",Yhe=e=>e.type==="Category",Qk=e=>ut(e.elements)?!1:e.elements.map(t=>Hhe(t)?Qk(t):Yhe(t)).reduce((t,n)=>t&&n,!0),Ghe=e=>Qk(e),Jk=e=>(t,n,r)=>{const i=Ry(e,a=>a.tester(t,n,r));if(i!==void 0&&i.tester(t,n,r)!==Ld)return i.uischema},hp=(e,t,n,r,i="VerticalLayout",a,s)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof i=="function"?i():Xi.uiSchema(t,i,void 0,s)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const l=Jk(e)(t,n,r);return l===void 0?typeof i=="function"?i():Xi.uiSchema(t,i,"#",s):l},tT=(e,t,n)=>n(e,t),eD=(e,t,n)=>r=>{const i=r.errors??[],a=r.additionalErrors??[];return Zpe(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...i,...a])},tD=(e,t)=>eD(e,t,n=>n===e),Khe=(e,t)=>eD(e,t,n=>n.startsWith(e+".")),nD=(e,t)=>n=>tD(e,t)(n.jsonforms.core),Xhe=(e,t)=>n=>Khe(e,t)(n.jsonforms.core),Gc=e=>Jhe(Dn(e,"jsonforms.core")),Jl=e=>eme(Dn(e,"jsonforms.core")),Zhe=e=>tme(Dn(e,"jsonforms.core")),Vs=e=>nme(Dn(e,"jsonforms.core")),rD=e=>Dn(e,"jsonforms.renderers"),oD=e=>Dn(e,"jsonforms.cells"),Qhe=e=>Dn(e,"jsonforms.uischemas"),Jhe=e=>Dn(e,"data"),eme=e=>Dn(e,"schema"),tme=e=>Dn(e,"uischema"),nme=e=>Dn(e,"ajv"),Zi=e=>e.jsonforms.config,mv=(e,t,n,r,i,a)=>{var s,l,c;return(s=e==null?void 0:e.jsonforms)!=null&&s.readonly?!1:n&&Bpe(n)?zpe(n,i,t==null?void 0:t.path,Vs(e)):typeof((l=n==null?void 0:n.options)==null?void 0:l.readonly)=="boolean"?!n.options.readonly:typeof((c=n==null?void 0:n.options)==null?void 0:c.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},iD=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const i=[t,r].sort((a,s)=>a-s);e.splice(i[0],2,e[i[1]],e[i[0]])},aD=(e,t)=>{iD(e,t,-1)},sD=(e,t)=>{iD(e,t,1)},rme=(e,t,n)=>{const r=t.split("/"),i=Yc(r[r.length-1]),s=r.slice(0,r.length-2).join("/"),l=cr.schema(e,s,n);return l!==void 0&&l.required!==void 0&&l.required.indexOf(i)!==-1},lD=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,Kc=(e,t)=>e&&!t,Ao=(e,t)=>{const n=cD(e,t);return n===void 0?{}:n},cD=(e,t)=>{const n=typeof e.$ref=="string"?cr.schema(t,e.$ref,t):e;if(n.default!==void 0)return nT(n,t);if(Ln(n,"string"))return n.format==="date-time"||n.format==="date"||n.format==="time"?qpe(new Date,n.format):"";if(Ln(n,"integer")||Ln(n,"number"))return 0;if(Ln(n,"boolean"))return!1;if(Ln(n,"array"))return[];if(Ln(n,"object"))return nT(n,t);if(Ln(n,"null"))return null;const r=["oneOf","anyOf","allOf"];for(const i of r)if(e[i]&&Array.isArray(e[i])){const a=ome(e[i],t);if(a!==void 0)return a}},ome=(e,t)=>{if(e.length>0)for(const n of e){const r=cD(n,t);if(r!==void 0)return r}},nT=(e,t)=>{if(Ln(e,"object")&&e.default===void 0){const n={};for(const r in e.properties){const i=e.properties[r],a=i.$ref?cr.schema(t,i.$ref,t):i;a&&a.default!==void 0&&(n[r]=Al(a.default))}return e.allOf&&Array.isArray(e.allOf)&&e.allOf.forEach(r=>{if(r&&r.properties)for(const i in r.properties){const a=r.properties[i],s=a.$ref?cr.schema(t,a.$ref,t):a;s&&s.default!==void 0&&(n[i]=Al(s.default))}}),n}return Al(e.default)},Er=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,ls=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},mp=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},Bs=(e,t)=>{const{uischema:n}=t,r=Gc(e),i=Rk(n,t.path),a=t.visible===void 0||Wb(n)?Ls(n,r,t.path,Vs(e)):t.visible,s=n,l=t.id,c=Jl(e),u=s.scope!==void 0&&rme(t.schema,s.scope,c),d=cr.schema(t.schema||c,s.scope,c),f=nD(i,d)(e),p=d!==void 0?d.description:"",h=cr.data(r,i),g=_pe(n,d),m=g.show?g.text:"",y=Zi(e),b=mv(e,t,n,d||c,r,y),v=d??c,x=io()(e),w=lv()(e),O=Ur(v,n,i),E=x(jd(v,n,i,"label"),m,{schema:v,uischema:n,path:i,errors:f}),C=x(jd(v,n,i,"description"),p,{schema:v,uischema:n,path:i,errors:f}),S=av(f,w,x,v,n,i);return{data:h,description:C,errors:S,label:E,visible:a,enabled:b,id:l,path:i,required:u,uischema:n,schema:v,config:Zi(e),cells:t.cells||e.jsonforms.cells,rootSchema:c,i18nKeyPrefix:O}},ime=e=>({handleChange(t,n){e(eo(t,()=>n))}}),ame=(e,t)=>{var i;const n=Bs(e,t),r=t.options||((i=n.schema.enum)==null?void 0:i.map(a=>ls(a,io()(e),Ur(n.schema,n.uischema,n.path))))||n.schema.const&&[ls(n.schema.const,io()(e),Ur(n.schema,n.uischema,n.path))];return{...n,options:r}},sme=(e,t)=>{var i;const n=Bs(e,t),r=t.options||((i=n.schema.oneOf)==null?void 0:i.map(a=>mp(a,io()(e),Ur(n.schema,n.uischema,n.path))));return{...n,options:r}},lme=(e,t)=>{var a;const n=Bs(e,t);let r=n.schema.items;r=r&&r.$ref?lr(n.rootSchema,r.$ref,n.rootSchema):r;const i=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(s=>{var l;return mp(s,(l=e.jsonforms.i18n)==null?void 0:l.translate,Ur(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(s=>{var l;return ls(s,(l=e.jsonforms.i18n)==null?void 0:l.translate,Ur(n.schema,n.uischema,n.path))}));return{...n,options:i}},cme=(e,t)=>{const{schema:n,path:r,uischema:i,childLabelProp:a,index:s}=t,l=js(r,`${s}`),c=fD(Gc(e),l,a,n,Jl(e),e.jsonforms.i18n.translate,i);return{...t,childLabel:c}},uD=(e,t)=>{const{...n}=Bs(e,t);return{...n,uischemas:e.jsonforms.uischemas}},ume=e=>({addItem:(t,n)=>()=>{e(eo(t,r=>r==null?[n]:(r.push(n),r),{type:"ADD",values:[n]}))},removeItems:(t,n)=>()=>{e(eo(t,r=>(n.sort((i,a)=>i-a).reverse().forEach(i=>r.splice(i,1)),r),{type:"REMOVE",indices:n}))},moveUp:(t,n)=>()=>{e(eo(t,r=>(aD(r,n),r),{type:"MOVE",moves:[{from:n,to:n-1}]}))},moveDown:(t,n)=>()=>{e(eo(t,r=>(sD(r,n),r),{type:"MOVE",moves:[{from:n,to:n+1}]}))}}),dme=e=>({addItem:(t,n)=>{e(eo(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(eo(t,r=>{const i=r.indexOf(n);return r.splice(i,1),r}))}}),dD={visible:!0,enabled:!0,path:"",direction:"column"},fme=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":dD.direction,pme=(e,t)=>{const n=Gc(e),{uischema:r}=t,i=t.visible===void 0||Wb(r)?Ls(t.uischema,n,t.path,Vs(e)):t.visible,a=cr.data(n,t.path),s=Zi(e),l=mv(e,t,r,void 0,n,s),c=io()(e),u=Rpe(r)?sv(r,c):void 0;return{...dD,renderers:t.renderers||rD(e),cells:t.cells||oD(e),visible:i,enabled:l,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??fme(r),config:s,label:u}},hme=(e,t)=>({renderers:t.renderers||Dn(e.jsonforms,"renderers"),cells:t.cells||Dn(e.jsonforms,"cells"),schema:t.schema||Jl(e),rootSchema:Jl(e),uischema:t.uischema||Zhe(e),path:t.path,enabled:t.enabled,config:Zi(e)}),gv=(e,t,n)=>{var h;const{data:r,schema:i,rootSchema:a,i18nKeyPrefix:s,label:l,...c}=Bs(e,t),u=e.jsonforms.core.ajv,d=["required","additionalProperties","type","enum","const"],f=g=>!g||g.length===0||!g.find(m=>d.indexOf(m.keyword)!==-1);let p;for(let g=0;g<((h=i[n])==null?void 0:h.length);g++)try{let m=i[n][g];m.$ref&&(m=cr.schema(a,m.$ref,a));const y=u.compile(m);if(y(r),f(y.errors)){p=g;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:i,rootSchema:a,...c,i18nKeyPrefix:s,label:l,indexOfFittingSchema:p,uischemas:Qhe(e)}},mme=(e,t)=>gv(e,t,"allOf"),gme=(e,t)=>gv(e,t,"anyOf"),yme=(e,t)=>gv(e,t,"oneOf"),bme=(e,t)=>{const{path:n,schema:r,uischema:i,errors:a,label:s,...l}=uD(e,t),c=cr.schema(r,"items",l.rootSchema),u=io()(e),d=av(Xhe(n,c)(e),lv()(e),u,void 0,void 0,void 0),f=a+(a.length>0&&d.length>0?`
`:"")+d;return{...l,label:s,path:n,uischema:i,schema:c,arraySchema:r,data:l.data?l.data.length:0,errors:f,minItems:r.minItems}},vme=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||Wb(n)?Ls(t.uischema,Gc(e),t.path,Vs(e)):t.visible,i=n.text,a=io()(e),s=rv(void 0,n),l=s?`${s}.text`:i??"";return{text:a(l,i,{uischema:n}),visible:r,config:Zi(e),renderers:t.renderers||rD(e),cells:t.cells||oD(e),uischema:n}},fD=(e,t,n,r,i,a,s)=>{const l=cr.data(e,t);if(n||(n=Wpe(r)),!n)return"";const c=Dn(l,n);if(c===void 0)return"";const u=cr.schema(r,"#"+$k(n),i);let d;if(Ak(u))d=ls(c,a,Ur(u,tg(s,n),t+"."+n));else if(Ql(u)){const p=u.oneOf.find(h=>Cb(h.const,c));p&&(d=mp(p,a,Ur(p,void 0,t+"."+n)))}return d?d.label:c},gp=(e,t)=>{const{id:n,schema:r,path:i,uischema:a,renderers:s,cells:l}=t,c=Gc(e),u=t.visible!==void 0?t.visible:Ls(a,c,void 0,Vs(e)),d=Jl(e),f=Zi(e);let p;e.jsonforms.readonly===!0?p=!1:typeof t.enabled=="boolean"?p=t.enabled:p=mv(e,t,a,r||d,c,f);const h=io()(e),g=lv()(e),m=av(nD(i,r)(e),g,h,r,a,i),y=ut(m);return{data:cr.data(c,i),visible:u,enabled:p,id:n,path:i,errors:m,isValid:y,schema:r,uischema:a,config:Zi(e),rootSchema:d,renderers:s,cells:l}},wme=(e,t)=>{const n=gp(e,t),{renderers:r,cells:i,...a}=t;return{...n,...a,cells:i||e.jsonforms.cells||[]}},xme=(e,t)=>{var i;const n=gp(e,t),r=t.options||((i=n.schema.enum)==null?void 0:i.map(a=>ls(a,io()(e),Ur(n.schema,n.uischema,n.path))))||n.schema.const&&[ls(n.schema.const,io()(e),Ur(n.schema,n.uischema,n.path))];return{...n,options:r}},Ome=(e,t)=>{var i;const n=gp(e,t),r=t.options||((i=n.schema.oneOf)==null?void 0:i.map(a=>mp(a,io()(e),Ur(n.schema,n.uischema,n.path))));return{...n,options:r}},yv=(e,t,n,r,i,a)=>e.map((s,l)=>{const c=s.$ref&&cr.schema(t,s.$ref,t),u=c??s;return{schema:u,uischema:hp(a,u,r.scope,i,void 0,r,t),label:s.title??(c==null?void 0:c.title)??`${n}-${l}`}});var Tme=Qn,Sme=function(){return Tme.Date.now()},Eme=Sme,Cme=kr,Uh=Eme,rT=NP,Pme="Expected a function",_me=Math.max,kme=Math.min;function Dme(e,t,n){var r,i,a,s,l,c,u=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Pme);t=rT(t)||0,Cme(n)&&(d=!!n.leading,f="maxWait"in n,a=f?_me(rT(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function h(E){var C=r,S=i;return r=i=void 0,u=E,s=e.apply(S,C),s}function g(E){return u=E,l=setTimeout(b,t),d?h(E):s}function m(E){var C=E-c,S=E-u,P=t-C;return f?kme(P,a-S):P}function y(E){var C=E-c,S=E-u;return c===void 0||C>=t||C<0||f&&S>=a}function b(){var E=Uh();if(y(E))return v(E);l=setTimeout(b,m(E))}function v(E){return l=void 0,p&&r?h(E):(r=i=void 0,s)}function x(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function w(){return l===void 0?s:v(Uh())}function O(){var E=Uh(),C=y(E);if(r=arguments,i=this,c=E,C){if(l===void 0)return g(c);if(f)return clearTimeout(l),l=setTimeout(b,t),h(c)}return l===void 0&&(l=setTimeout(b,t)),s}return O.cancel=x,O.flush=w,O}var $me=Dme;const pD=kt($me);class Rme extends V.Component{constructor(t){super(t)}}class Mme extends Rme{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class hD extends V.Component{render(){return V.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const Ime={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},mD=V.createContext({core:Ime,renderers:[]}),Nme=(e,t)=>{const n=V.useRef(!0);V.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},Ame=({children:e,initState:t,onChange:n,middleware:r})=>{var O,E,C;const{data:i,schema:a,uischema:s,ajv:l,validationMode:c,additionalErrors:u}=t.core,d=V.useRef(r??tT);d.current=r??tT;const[f,p]=V.useState(()=>d.current(t.core,xa.init(i,a,s,{ajv:l,validationMode:c,additionalErrors:u}),qh));V.useEffect(()=>p(S=>d.current(S,xa.updateCore(i,a,s,{ajv:l,validationMode:c,additionalErrors:u}),qh)),[i,a,s,l,c,u]);const[h,g]=V.useReducer(XO,void 0,()=>XO(void 0,xa.setConfig(t.config)));Nme(()=>{g(xa.setConfig(t.config))},[t.config]);const[m,y]=V.useReducer(eT,void 0,()=>{var S,P,T;return eT(t.i18n,xa.updateI18n((S=t.i18n)==null?void 0:S.locale,(P=t.i18n)==null?void 0:P.translate,(T=t.i18n)==null?void 0:T.translateError))});V.useEffect(()=>{var S,P,T;y(xa.updateI18n((S=t.i18n)==null?void 0:S.locale,(P=t.i18n)==null?void 0:P.translate,(T=t.i18n)==null?void 0:T.translateError))},[(O=t.i18n)==null?void 0:O.locale,(E=t.i18n)==null?void 0:E.translate,(C=t.i18n)==null?void 0:C.translateError]);const b=V.useCallback(S=>{p(P=>d.current(P,S,qh))},[]),v=V.useMemo(()=>({core:f,renderers:t.renderers,cells:t.cells,config:h,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:b}),[f,t.renderers,t.cells,h,t.uischemas,t.readonly,m]),x=V.useRef(n);V.useEffect(()=>{x.current=n},[n]);const w=V.useCallback(pD((...S)=>{var P;return(P=x.current)==null?void 0:P.call(x,...S)},10),[]);return V.useEffect(()=>{w({data:f.data,errors:f.errors})},[f.data,f.errors]),V.createElement(mD.Provider,{value:v},e)},yp=()=>V.useContext(mD),jme=(e,t)=>bme({jsonforms:{...e}},t),Lme=(e,t)=>pme({jsonforms:{...e}},t),Fme=(e,t)=>Bs({jsonforms:{...e}},t),Vme=(e,t)=>{var i;const n=ame({jsonforms:{...e}},t),r=V.useMemo(()=>n.options,[t.options,n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},Bme=(e,t)=>{var i;const n=sme({jsonforms:{...e}},t),r=V.useMemo(()=>n.options,[t.options,n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},zme=(e,t)=>{var i;const n=lme({jsonforms:{...e}},t),r=V.useMemo(()=>n.options,[n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},Wme=(e,t)=>uD({jsonforms:{...e}},t),qme=(e,t)=>({...mme({jsonforms:{...e}},t)}),fr=e=>V.useMemo(()=>ime(e),[e]),Ume=(e,t)=>{const n=gme({jsonforms:{...e}},t),r=fr(e.dispatch);return{...n,...r}},Hme=(e,t)=>{const n=yme({jsonforms:{...e}},t),r=fr(e.dispatch);return{...n,...r}},Yme=(e,t)=>hme({jsonforms:{...e}},t),Gme=e=>({...fr(e),...V.useMemo(()=>ume(e),[e])}),Kme=(e,t)=>cme({jsonforms:{...e}},t),Xme=(e,t)=>gp({jsonforms:{...e}},t),Zme=(e,t)=>{var i;const n=xme({jsonforms:{...e}},t),r=V.useMemo(()=>n.options,[t.options,n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},Qme=(e,t)=>{var i;const n=Ome({jsonforms:{...e}},t),r=V.useMemo(()=>n.options,[t.options,n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},Jme=(e,t)=>wme({jsonforms:{...e}},t),ege=e=>({...fr(e),...V.useMemo(()=>dme(e),[e])}),tge=(e,t)=>vme({jsonforms:{...e}},t),In=e=>function(n){const r=yp();return V.createElement(e,{ctx:r,props:n})},nge=e=>function({ctx:n,props:r}){const i=Yme(n,r);return V.createElement(e,{...r,...i})},rge=e=>function({ctx:n,props:r}){const i=Fme(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...i,...a})},oge=e=>function({ctx:n,props:r}){const i=Lme(n,r);return V.createElement(e,{...r,...i})},ige=e=>function({ctx:n,props:r}){const i=Hme(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...i,...a})},age=e=>function({ctx:n,props:r}){const i=Ume(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...i,...a})},sge=e=>function({ctx:n,props:r}){const i=qme(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...i,...a})},lge=e=>function({ctx:n,props:r}){const i=Wme(n,r);return V.createElement(e,{...r,...i})},cge=e=>function({ctx:n,props:r}){const i=jme(n,r),a=Gme(n.dispatch);return V.createElement(e,{...r,...i,...a})},uge=e=>function({ctx:n,props:r}){const i=Kme(n,r);return V.createElement(e,{...r,...i})},dge=e=>function({ctx:n,props:r}){const i=Xme(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...a,...i})},fge=e=>function({ctx:n,props:r}){const i=Jme(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...a,...i})},pge=e=>function({ctx:n,props:r}){const i=Zme(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...a,...i})},hge=e=>function({ctx:n,props:r}){const i=Vme(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...a,...i})},mge=e=>function({ctx:n,props:r}){const i=Qme(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...a,...i})},gge=e=>function({ctx:n,props:r}){const i=Bme(n,r),a=fr(n.dispatch);return V.createElement(e,{...r,...a,...i})},yge=e=>function({ctx:n,props:r}){const i=zme(n,r),a=ege(n.dispatch);return V.createElement(e,{...r,...a,...i})},bge=e=>function({ctx:n,props:r}){const i=tge(n,r);return V.createElement(e,{...r,...i})},gD=(e,t=!0)=>In(nge(t?V.memo(e):e)),Bn=(e,t=!0)=>In(rge(t?V.memo(e):e)),gi=(e,t=!0)=>In(oge(t?V.memo(e):e)),vge=(e,t=!0)=>In(ige(t?V.memo(e):e)),wge=(e,t=!0)=>In(age(t?V.memo(e):e)),xge=(e,t=!0)=>In(sge(t?V.memo(e):e)),Oge=(e,t=!0)=>In(lge(t?V.memo(e):e)),bv=(e,t=!0)=>In(cge(t?V.memo(e):e)),Tge=(e,t=!0)=>In(uge(t?V.memo(e):e)),yi=(e,t=!0)=>In(dge(t?V.memo(e):e)),Sge=(e,t=!0)=>In(fge(t?V.memo(e):e)),Ege=(e,t=!0)=>In(pge(t?V.memo(e):e)),yD=(e,t=!0)=>In(hge(t?V.memo(e):e)),Cge=(e,t=!0)=>In(mge(t?V.memo(e):e)),bD=(e,t=!0)=>In(gge(t?V.memo(e):e)),Pge=(e,t=!0)=>In(yge(t?V.memo(e):e)),vD=(e,t=!0)=>In(bge(t?V.memo(e):e)),Ho=e=>function(n){var s,l;const r=yp(),i=((s=r.i18n)==null?void 0:s.locale)??Ia.locale,a=((l=r.i18n)==null?void 0:l.translate)??Ia.translate;return V.createElement(e,{...n,locale:i,t:a})},vv=e=>function(n){const r=V.useMemo(()=>Rhe(n.t,khe,n.i18nKeyPrefix,n.label),[n.t,n.i18nKeyPrefix,n.label]);return V.createElement(e,{...n,translations:r})};class wD extends V.Component{constructor(t){super(t),this.state={id:Vi(t.uischema)?Jm(t.uischema.scope):void 0}}componentWillUnmount(){Vi(this.props.uischema)&&eg(this.state.id)}componentDidUpdate(t){t.schema!==this.props.schema&&(eg(this.state.id),this.setState({id:Vi(this.props.uischema)?Jm(this.props.uischema.scope):void 0}))}render(){const{schema:t,rootSchema:n,uischema:r,path:i,enabled:a,renderers:s,cells:l,config:c}=this.props;return V.createElement(_ge,{uischema:r,schema:t,rootSchema:n,path:i,enabled:a,renderers:s,cells:l,id:this.state.id,config:c})}}const _ge=V.memo(function(t){const n=V.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=V.useMemo(()=>Ry(t.renderers,i=>i.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return V.createElement(hD,{type:"renderer"});{const i=r.renderer;return V.createElement(i,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class kge extends wD{constructor(t){super(t)}}const ur=gD(wD);gD(kge);const xD=e=>{const{ajv:t,data:n,schema:r,uischema:i,renderers:a,cells:s,onChange:l,config:c,uischemas:u,readonly:d,validationMode:f,i18n:p,additionalErrors:h,middleware:g}=e,m=V.useMemo(()=>r!==void 0?r:Xi.jsonSchema(n),[r,n]),y=V.useMemo(()=>typeof i=="object"?i:Xi.uiSchema(m,void 0,void 0,m),[i,m]);return V.createElement(Ame,{initState:{core:{ajv:t,data:n,schema:m,uischema:y,validationMode:f,additionalErrors:h},config:c,uischemas:u,renderers:a,cells:s,readonly:d,i18n:p},onChange:l,middleware:g},V.createElement(ur,null))},Dge=({uischema:e,schema:t,rootSchema:n,path:r,cells:i,id:a,enabled:s,renderers:l,config:c})=>{const u=V.useMemo(()=>({rootSchema:n,config:c}),[n,c]),d=V.useMemo(()=>Ry(i,f=>f.tester(e,t,u)),[i,e,t,u]);if(d===void 0||d.tester(e,t,u)===-1)return V.createElement(hD,{type:"cell"});{const f=d.cell;return V.createElement(f,{uischema:e,schema:t,enabled:s,path:r,id:a,renderers:l,cells:i})}},oT=Sge(Dge);var $ge=Db;function Rge(e){return $ge(e)?void 0:e}var Mge=Rge,Ige=Rs,Nge=dp,Age=Ck,jge=Bc,Lge=As,Fge=Mge,Vge=Tk,Bge=nk,zge=1,Wge=2,qge=4,Uge=Vge(function(e,t){var n={};if(e==null)return n;var r=!1;t=Ige(t,function(a){return a=jge(a,e),r||(r=a.length>1),a}),Lge(e,Bge(e),n),r&&(n=Nge(n,zge|Wge|qge,Fge));for(var i=t.length;i--;)Age(n,t[i]);return n}),Hge=Uge;const Yge=kt(Hge);function Gge(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Kge=Gge,Hh=tP,Xge=dk,Zge=xy,Qge=1/0,Jge=Hh&&1/Zge(new Hh([,-0]))[1]==Qge?function(e){return new Hh(e)}:Xge,eye=Jge,tye=zC,nye=mk,rye=Kge,oye=WC,iye=eye,aye=xy,sye=200;function lye(e,t,n){var r=-1,i=nye,a=e.length,s=!0,l=[],c=l;if(n)s=!1,i=rye;else if(a>=sye){var u=t?null:iye(e);if(u)return aye(u);s=!1,i=oye,c=new tye}else c=t?[]:l;e:for(;++r<a;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue e;t&&c.push(f),l.push(d)}else i(c,f,n)||(c!==l&&c.push(f),l.push(d))}return l}var cye=lye,uye=Ok,dye=J_,fye=cye,pye=Y_,hye=dye(function(e){return fye(uye(e,1,pye,!0))}),mye=hye;const gye=kt(mye),bi=ct(I.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),OD=ct(I.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),TD=ct(I.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),SD=ct(I.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),yye=ct(I.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var ED={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(kn,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",l="minute",c="hour",u="day",d="week",f="month",p="quarter",h="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},x=function($,M,j){var W=String($);return!W||W.length>=M?$:""+Array(M+1-W.length).join(j)+$},w={s:x,z:function($){var M=-$.utcOffset(),j=Math.abs(M),W=Math.floor(j/60),H=j%60;return(M<=0?"+":"-")+x(W,2,"0")+":"+x(H,2,"0")},m:function $(M,j){if(M.date()<j.date())return-$(j,M);var W=12*(j.year()-M.year())+(j.month()-M.month()),H=M.clone().add(W,f),X=j-H<0,U=M.clone().add(W+(X?-1:1),f);return+(-(W+(j-H)/(X?H-U:U-H))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:h,w:d,d:u,D:g,h:c,m:l,s,ms:a,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},O="en",E={};E[O]=v;var C=function($){return $ instanceof _},S=function($,M,j){var W;if(!$)return O;if(typeof $=="string")E[$]&&(W=$),M&&(E[$]=M,W=$);else{var H=$.name;E[H]=$,W=H}return!j&&W&&(O=W),W||!j&&O},P=function($,M){if(C($))return $.clone();var j=typeof M=="object"?M:{};return j.date=$,j.args=arguments,new _(j)},T=w;T.l=S,T.i=C,T.w=function($,M){return P($,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var _=function(){function $(j){this.$L=S(j.locale,null,!0),this.parse(j)}var M=$.prototype;return M.parse=function(j){this.$d=function(W){var H=W.date,X=W.utc;if(H===null)return new Date(NaN);if(T.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var U=H.match(y);if(U){var L=U[2]-1||0,D=(U[7]||"0").substring(0,3);return X?new Date(Date.UTC(U[1],L,U[3]||1,U[4]||0,U[5]||0,U[6]||0,D)):new Date(U[1],L,U[3]||1,U[4]||0,U[5]||0,U[6]||0,D)}}return new Date(H)}(j),this.$x=j.x||{},this.init()},M.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},M.$utils=function(){return T},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(j,W){var H=P(j);return this.startOf(W)<=H&&H<=this.endOf(W)},M.isAfter=function(j,W){return P(j)<this.startOf(W)},M.isBefore=function(j,W){return this.endOf(W)<P(j)},M.$g=function(j,W,H){return T.u(j)?this[W]:this.set(H,j)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(j,W){var H=this,X=!!T.u(W)||W,U=T.p(j),L=function(Y,G){var K=T.w(H.$u?Date.UTC(H.$y,G,Y):new Date(H.$y,G,Y),H);return X?K:K.endOf(u)},D=function(Y,G){return T.w(H.toDate()[Y].apply(H.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(G)),H)},B=this.$W,z=this.$M,F=this.$D,A="set"+(this.$u?"UTC":"");switch(U){case h:return X?L(1,0):L(31,11);case f:return X?L(1,z):L(0,z+1);case d:var N=this.$locale().weekStart||0,q=(B<N?B+7:B)-N;return L(X?F-q:F+(6-q),z);case u:case g:return D(A+"Hours",0);case c:return D(A+"Minutes",1);case l:return D(A+"Seconds",2);case s:return D(A+"Milliseconds",3);default:return this.clone()}},M.endOf=function(j){return this.startOf(j,!1)},M.$set=function(j,W){var H,X=T.p(j),U="set"+(this.$u?"UTC":""),L=(H={},H[u]=U+"Date",H[g]=U+"Date",H[f]=U+"Month",H[h]=U+"FullYear",H[c]=U+"Hours",H[l]=U+"Minutes",H[s]=U+"Seconds",H[a]=U+"Milliseconds",H)[X],D=X===u?this.$D+(W-this.$W):W;if(X===f||X===h){var B=this.clone().set(g,1);B.$d[L](D),B.init(),this.$d=B.set(g,Math.min(this.$D,B.daysInMonth())).$d}else L&&this.$d[L](D);return this.init(),this},M.set=function(j,W){return this.clone().$set(j,W)},M.get=function(j){return this[T.p(j)]()},M.add=function(j,W){var H,X=this;j=Number(j);var U=T.p(W),L=function(z){var F=P(X);return T.w(F.date(F.date()+Math.round(z*j)),X)};if(U===f)return this.set(f,this.$M+j);if(U===h)return this.set(h,this.$y+j);if(U===u)return L(1);if(U===d)return L(7);var D=(H={},H[l]=r,H[c]=i,H[s]=n,H)[U]||1,B=this.$d.getTime()+j*D;return T.w(B,this)},M.subtract=function(j,W){return this.add(-1*j,W)},M.format=function(j){var W=this,H=this.$locale();if(!this.isValid())return H.invalidDate||m;var X=j||"YYYY-MM-DDTHH:mm:ssZ",U=T.z(this),L=this.$H,D=this.$m,B=this.$M,z=H.weekdays,F=H.months,A=function(G,K,J,Z){return G&&(G[K]||G(W,X))||J[K].substr(0,Z)},N=function(G){return T.s(L%12||12,G,"0")},q=H.meridiem||function(G,K,J){var Z=G<12?"AM":"PM";return J?Z.toLowerCase():Z},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:B+1,MM:T.s(B+1,2,"0"),MMM:A(H.monthsShort,B,F,3),MMMM:A(F,B),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:A(H.weekdaysMin,this.$W,z,2),ddd:A(H.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(L),HH:T.s(L,2,"0"),h:N(1),hh:N(2),a:q(L,D,!0),A:q(L,D,!1),m:String(D),mm:T.s(D,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:U};return X.replace(b,function(G,K){return K||Y[G]||U.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(j,W,H){var X,U=T.p(W),L=P(j),D=(L.utcOffset()-this.utcOffset())*r,B=this-L,z=T.m(this,L);return z=(X={},X[h]=z/12,X[f]=z,X[p]=z/3,X[d]=(B-D)/6048e5,X[u]=(B-D)/864e5,X[c]=B/i,X[l]=B/r,X[s]=B/n,X)[U]||B,H?z:T.a(z)},M.daysInMonth=function(){return this.endOf(f).$D},M.$locale=function(){return E[this.$L]},M.locale=function(j,W){if(!j)return this.$L;var H=this.clone(),X=S(j,W,!0);return X&&(H.$L=X),H},M.clone=function(){return T.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},$}(),k=_.prototype;return P.prototype=k,[["$ms",a],["$s",s],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",g]].forEach(function($){k[$[1]]=function(M){return this.$g(M,$[0],$[1])}}),P.extend=function($,M){return $.$i||($(M,_,P),$.$i=!0),P},P.locale=S,P.isDayjs=C,P.unix=function($){return P(1e3*$)},P.en=E[O],P.Ls=E,P.p={},P})})(ED);var bye=ED.exports;const vn=kt(bye);var CD={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(kn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,a=/\d\d?/,s=/\d*[^\s\d-_:/()]+/,l={},c=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(y){this[m]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),v=60*b[1]+(+b[2]||0);return v===0?0:b[0]==="+"?-v:v}(m)}],f=function(m){var y=l[m];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(m,y){var b,v=l.meridiem;if(v){for(var x=1;x<=24;x+=1)if(m.indexOf(v(x,0,y))>-1){b=x>12;break}}else b=m===(y?"pm":"PM");return b},h={A:[s,function(m){this.afternoon=p(m,!1)}],a:[s,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[i,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(m){var y=l.ordinal,b=m.match(/\d+/);if(this.day=b[0],y)for(var v=1;v<=31;v+=1)y(v).replace(/\[|\]/g,"")===m&&(this.day=v)}],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(m){var y=f("months"),b=(f("monthsShort")||y.map(function(v){return v.substr(0,3)})).indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(m){var y=f("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(m){var y,b;y=m,b=l&&l.formats;for(var v=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,T,_){var k=_&&_.toUpperCase();return T||b[_]||n[_]||b[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,M,j){return M||j.slice(1)})})).match(r),x=v.length,w=0;w<x;w+=1){var O=v[w],E=h[O],C=E&&E[0],S=E&&E[1];v[w]=S?{regex:C,parser:S}:O.replace(/^\[|\]$/g,"")}return function(P){for(var T={},_=0,k=0;_<x;_+=1){var $=v[_];if(typeof $=="string")k+=$.length;else{var M=$.regex,j=$.parser,W=P.substr(k),H=M.exec(W)[0];j.call(T,H),P=P.replace(H,"")}}return function(X){var U=X.afternoon;if(U!==void 0){var L=X.hours;U?L<12&&(X.hours+=12):L===12&&(X.hours=0),delete X.afternoon}}(T),T}}return function(m,y,b){b.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var v=y.prototype,x=v.parse;v.parse=function(w){var O=w.date,E=w.utc,C=w.args;this.$u=E;var S=C[1];if(typeof S=="string"){var P=C[2]===!0,T=C[3]===!0,_=P||T,k=C[2];T&&(k=C[2]),l=this.$locale(),!P&&k&&(l=b.Ls[k]),this.$d=function(W,H,X){try{if(["x","X"].indexOf(H)>-1)return new Date((H==="X"?1e3:1)*W);var U=g(H)(W),L=U.year,D=U.month,B=U.day,z=U.hours,F=U.minutes,A=U.seconds,N=U.milliseconds,q=U.zone,Y=new Date,G=B||(L||D?1:Y.getDate()),K=L||Y.getFullYear(),J=0;L&&!D||(J=D>0?D-1:Y.getMonth());var Z=z||0,ie=F||0,de=A||0,xe=N||0;return q?new Date(Date.UTC(K,J,G,Z,ie,de,xe+60*q.offset*1e3)):X?new Date(Date.UTC(K,J,G,Z,ie,de,xe)):new Date(K,J,G,Z,ie,de,xe)}catch{return new Date("")}}(O,S,E),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),_&&O!=this.format(S)&&(this.$d=new Date("")),l={}}else if(S instanceof Array)for(var $=S.length,M=1;M<=$;M+=1){C[1]=S[M-1];var j=b.apply(this,C);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}M===$&&(this.$d=new Date(""))}else x.call(this,w)}}})})(CD);var vye=CD.exports;const PD=kt(vye),wye=ct(I.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");var xye=Eb,Oye=qo;function Tye(e,t){var n=-1,r=Oye(e)?Array(e.length):[];return xye(e,function(i,a,s){r[++n]=t(i,a,s)}),r}var Sye=Tye,Eye=Rs,Cye=oa,Pye=Sye,_ye=Cn;function kye(e,t){var n=_ye(e)?Eye:Pye;return n(e,Cye(t))}var Dye=kye;const _D=kt(Dye),$ye=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:ee({},e)}}}}),kD={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Rye=kD;$ye(kD);const Mye=["localeText"],Fd=R.createContext(null);process.env.NODE_ENV!=="production"&&(Fd.displayName="PickerAdapterContext");const ia=function(t){const{localeText:n}=t,r=Ge(t,Mye),{adapter:i,localeText:a}=R.useContext(Fd)??{adapter:void 0,localeText:void 0},s=ft({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=s,h=R.useMemo(()=>ee({},p,a,n),[p,a,n]),g=R.useMemo(()=>{if(!c)return i||null;const b=new c({locale:f,formats:u,instance:d});if(!b.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
`));return b},[c,f,u,d,i]),m=R.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),y=R.useMemo(()=>({utils:g,adapter:g,defaultDates:m,localeText:h}),[m,g,h]);return I.jsx(Fd.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(ia.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(ia.propTypes={adapterLocale:o.any,children:o.node,dateAdapter:o.func,dateFormats:o.shape({dayOfMonth:o.string,dayOfMonthFull:o.string,fullDate:o.string,fullTime12h:o.string,fullTime24h:o.string,hours12h:o.string,hours24h:o.string,keyboardDate:o.string,keyboardDateTime12h:o.string,keyboardDateTime24h:o.string,meridiem:o.string,minutes:o.string,month:o.string,monthShort:o.string,normalDate:o.string,normalDateWithWeekday:o.string,seconds:o.string,shortDate:o.string,weekday:o.string,weekdayShort:o.string,year:o.string}),dateLibInstance:o.any,localeText:o.object});const wv=()=>{const e=R.useContext(Fd);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
`));if(e.adapter===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
`));const t=R.useMemo(()=>ee({},Rye,e.localeText),[e.localeText]);return R.useMemo(()=>ee({},e,{localeText:t}),[e,t])},lt=()=>wv().adapter,zn=()=>wv().localeText,ig=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],ag=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],DD=["minDateTime","maxDateTime"],Iye=[...ig,...ag,...DD],zs=e=>Iye.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),Nye=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],$D=(e,t)=>R.useMemo(()=>{const n=ee({},e),r={},i=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return Nye.forEach(i),t==="date"?ig.forEach(i):t==="time"?ag.forEach(i):t==="date-time"&&(ig.forEach(i),ag.forEach(i),DD.forEach(i)),{forwardedProps:n,internalProps:r}},[e,t]),go=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),xv=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let a;if(e!=null)a=e;else if(i.includes(t))a=t;else if(i.length>0)a=i[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:i,openTo:a}},Vd=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},ec=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:a,adapter:s,timezone:l})=>{const c=Vd(s,s.date(void 0,l),e);n&&s.isBefore(i,c)&&(i=c),t&&s.isAfter(r,c)&&(r=c);let u=e,d=e;for(s.isBefore(e,i)&&(u=i,d=null),s.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&s.isAfter(u,r)&&(u=null),d&&s.isBefore(d,i)&&(d=null),u){if(!a(u))return u;u=s.addDays(u,1)}if(d){if(!a(d))return d;d=s.addDays(d,-1)}}return null},Aye=(e,t)=>e.isValid(t)?t:null,Bd=(e,t,n)=>t==null||!e.isValid(t)?n:t,jye=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Ov=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},Tv=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),to=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},RD=["year","month","day"],cs=e=>RD.includes(e),tc=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return go(n,["year"])?i.year:go(n,["month"])?i.month:go(n,["day"])?i.dayOfMonth:go(n,["month","year"])?`${i.month} ${i.year}`:go(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},Lye=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Sv=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},bp=(e,t)=>{const n=[],r=e.date(void 0,"default"),i=e.startOfWeek(r),a=e.endOfWeek(r);let s=i;for(;e.isBefore(s,a);)n.push(s),s=e.addDays(s,1);return n.map(l=>e.formatByString(l,t))},MD=(e,t,n,r)=>{switch(n){case"month":return Ov(e,e.date(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return bp(e,r);case"meridiem":{const i=e.date(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(a=>e.formatByString(a,r))}default:return[]}},iT="s",Fye=["0","1","2","3","4","5","6","7","8","9"],Vye=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),iT)==="0"?Fye:Array.from({length:10}).map((r,i)=>e.formatByString(e.setSeconds(t,i),iT))},Qi=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let i=0;i<e.length;i+=1){r+=e[i];const a=t.indexOf(r);a>-1&&(n.push(a.toString()),r="")}return n.join("")},Ev=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),aT=(e,t)=>{const n=Qi(e,t);return n!==" "&&!Number.isNaN(Number(n))},Cv=(e,t)=>Number(e).toString().padStart(t,"0"),ID=(e,t,n,r,i)=>{if(process.env.NODE_ENV!=="production"&&i.type!=="day"&&i.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${i.format}" is a digit format with letter in it.'
This type of format is only supported for 'day' sections`].join(`
`));if(i.type==="day"&&i.contentType==="digit-with-letter"){const s=e.setDate(n.longestMonth,t);return e.formatByString(s,i.format)}let a=t.toString();return i.hasLeadingZerosInInput&&(a=Cv(a,i.maxLength)),Ev(a,r)},Pv=(e,t,n)=>{let r=e.value||e.placeholder;const i=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(Qi(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!i&&r.length===1&&(r=`${r}`),t==="input-rtl"&&(r=`${r}`),r},sT=(e,t,n,r)=>{if(process.env.NODE_ENV!=="production"&&Sv(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),r)},Bye=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,ND=(e,t,n,r)=>{if(t!=="digit")return!1;const i=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(i,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(i),r).length>1;case"day":return e.formatByString(e.startOfMonth(i),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),r).length>1;case"hours":return e.formatByString(e.setHours(i,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),r).length>1;default:throw new Error("Invalid section type")}},zye=(e,t,n)=>{const r=t.some(c=>c.type==="day"),i=[],a=[];for(let c=0;c<t.length;c+=1){const u=t[c];r&&u.type==="weekDay"||(i.push(u.format),a.push(Pv(u,"non-input",n)))}const s=i.join(" "),l=a.join(" ");return e.parse(l,s)},Wye=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),qye=(e,t,n)=>{const i=e.map(a=>{const s=Pv(a,n?"input-rtl":"input-ltr",t);return`${a.startSeparator}${s}${a.endSeparator}`}).join("");return n?`${i}`:i},Uye=(e,t,n)=>{const r=e.date(void 0,n),i=e.endOfYear(r),a=e.endOfDay(r),{maxDaysInMonth:s,longestMonth:l}=Ov(e,r).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:Bye(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(i)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):s,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=bp(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(a);return Qi(e.formatByString(e.endOfDay(r),c),t)!==u.toString()?{minimum:1,maximum:Number(Qi(e.formatByString(e.startOfDay(r),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let lT=!1;const cT=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!lT){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const r=e.find(i=>!n.includes(i.type));r&&(console.warn(`MUI X: The field component you are using is not compatible with the "${r.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),lT=!0)}},Hye=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{let i=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(i=Cv(i,t.maxLength));const a=bp(e,t.format),s=a.indexOf(i),c=a.indexOf(t.value)-s;return e.addDays(n,c)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const i=e.getHours(n)<12,a=e.getHours(r);return i&&a>=12?e.addHours(r,-12):!i&&a<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},uT={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},dT=(e,t,n,r,i)=>[...n].sort((a,s)=>uT[a.type]-uT[s.type]).reduce((a,s)=>!i||s.modified?Hye(e,s,t,a):a,r),Yye=()=>navigator.userAgent.toLowerCase().includes("android"),Gye=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let a=0,s=0,l=e.length-1;for(;l>=0;){s=e.findIndex((c,u)=>{var d;return u>=a&&((d=c.endSeparator)==null?void 0:d.includes(" "))&&c.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let c=s;c>=a;c-=1)i[c]=l,r[l]=c,l-=1;a=s+1}return e.forEach((c,u)=>{const d=i[u],f=d===0?null:r[d-1],p=d===e.length-1?null:r[d+1];n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},sg=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},Kye=({adapter:e,format:t})=>{let n=10,r=t,i=e.expandFormat(t);for(;i!==r;)if(r=i,i=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return i},Xye=({adapter:e,expandedFormat:t})=>{const n=[],{start:r,end:i}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let s=null;for(;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n},Zye=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},Qye=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:i,now:a,token:s,startSeparator:l})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=Sv(e,s),u=ND(e,c.contentType,c.type,s),d=n?u:c.contentType==="digit",f=e.isValid(t);let p=f?e.formatByString(t,s):"",h=null;if(d)if(u)h=p===""?e.formatByString(a,s).length:p.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxLength' property on it's adapter`);h=c.maxLength,f&&(p=Ev(Cv(Qi(p,i),h),i))}return ee({},c,{format:s,maxLength:h,value:p,placeholder:Zye(e,r,c,s),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},Jye=e=>{var h;const{adapter:t,expandedFormat:n,escapedParts:r}=e,i=t.date(void 0),a=[];let s="";const l=Object.keys(t.formatTokenMap).sort((g,m)=>m.length-g.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),f=g=>r.find(m=>m.start<=g&&m.end>=g);let p=0;for(;p<n.length;){const g=f(p),m=g!=null,y=(h=c.exec(n.slice(p)))==null?void 0:h[1];if(!m&&y!=null&&u.test(y)){let b=y;for(;b.length>0;){const v=d.exec(b)[1];b=b.slice(v.length),a.push(Qye(ee({},e,{now:i,token:v,startSeparator:s}))),s=""}p+=y.length}else{const b=n[p];m&&(g==null?void 0:g.start)===p||(g==null?void 0:g.end)===p||(a.length===0?s+=b:(a[a.length-1].endSeparator+=b,a[a.length-1].isEndFormatSeparator=!0)),p+=1}}return a.length===0&&s.length>0&&a.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),a},ebe=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const i=a=>{let s=a;return e&&s!==null&&s.includes(" ")&&(s=`${s}`),t==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=i(r.startSeparator),r.endSeparator=i(r.endSeparator),r}),fT=e=>{let t=Kye(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Xye(ee({},e,{expandedFormat:t})),r=Jye(ee({},e,{expandedFormat:t,escapedParts:n}));return ebe(ee({},e,{sections:r}))},vp=R.createContext(null);process.env.NODE_ENV!=="production"&&(vp.displayName="PickerContext");const _o=()=>{const e=R.useContext(vp);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},_v=()=>R.useContext(vp),kv=R.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(kv.displayName="IsValidValueContext");function tbe(){return R.useContext(kv)}const Dv=R.createContext(null);process.env.NODE_ENV!=="production"&&(Dv.displayName="PickerFieldPrivateContext");function AD(){return R.useContext(Dv)}const $v=R.createContext(null);process.env.NODE_ENV!=="production"&&($v.displayName="PickerActionsContext");const Rv=R.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(Rv.displayName="PickerPrivateContext");function jD(e){const{contextValue:t,actionsContextValue:n,privateContextValue:r,fieldPrivateContextValue:i,isValidContextValue:a,localeText:s,children:l}=e;return I.jsx(vp.Provider,{value:t,children:I.jsx($v.Provider,{value:n,children:I.jsx(Rv.Provider,{value:r,children:I.jsx(Dv.Provider,{value:i,children:I.jsx(kv.Provider,{value:a,children:I.jsx(ia,{localeText:s,children:l})})})})})})}const nbe=()=>{const e=R.useContext($v);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
`));return e},LD=()=>wv().defaultDates,aa=e=>{const t=lt(),n=R.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},rbe=ct(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),obe=ct(I.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),ibe=ct(I.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),FD=ct(I.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),abe=ct(I.jsxs(R.Fragment,{children:[I.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),I.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),sbe=ct(I.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),lbe=ct(I.jsxs(R.Fragment,{children:[I.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),I.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),cbe=ct(I.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function ube(e){return Pe("MuiPickersArrowSwitcher",e)}ke("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const on=()=>R.useContext(Rv),dbe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],fbe=["ownerState"],pbe=["ownerState"],hbe=ne("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),mbe=ne("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),pT=ne(Gt,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),gbe=e=>Ee({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},ube,e),Mv=R.forwardRef(function(t,n){const r=Gn(),i=ft({props:t,name:"MuiPickersArrowSwitcher"}),{children:a,className:s,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:f,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:g,onGoToPrevious:m,previousLabel:y,labelId:b,classes:v}=i,x=Ge(i,dbe),{ownerState:w}=on(),O=gbe(v),E={isDisabled:u,isHidden:d,goTo:f,label:p},C={isDisabled:h,isHidden:g,goTo:m,label:y},S=(l==null?void 0:l.previousIconButton)??pT,P=st({elementType:S,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"end",onClick:C.goTo},ownerState:ee({},w,{isButtonHidden:C.isHidden??!1}),className:we(O.button,O.previousIconButton)}),T=(l==null?void 0:l.nextIconButton)??pT,_=st({elementType:T,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:ee({},w,{isButtonHidden:E.isHidden??!1}),className:we(O.button,O.nextIconButton)}),k=(l==null?void 0:l.leftArrowIcon)??obe,$=st({elementType:k,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:O.leftArrowIcon}),M=Ge($,fbe),j=(l==null?void 0:l.rightArrowIcon)??ibe,W=st({elementType:j,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:O.rightArrowIcon}),H=Ge(W,pbe);return I.jsxs(hbe,ee({ref:n,className:we(O.root,s),ownerState:w},x,{children:[I.jsx(S,ee({},P,{children:r?I.jsx(j,ee({},H)):I.jsx(k,ee({},M))})),a?I.jsx(et,{variant:"subtitle1",component:"span",id:b,children:a}):I.jsx(mbe,{className:O.spacer,ownerState:w}),I.jsx(T,ee({},_,{children:r?I.jsx(k,ee({},M)):I.jsx(j,ee({},H))}))]}))});process.env.NODE_ENV!=="production"&&(Mv.displayName="PickersArrowSwitcher");const VD=["hours","minutes","seconds"],ybe=["hours","minutes","seconds","meridiem"],Ji=e=>VD.includes(e),Na=e=>ybe.includes(e),bbe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,nc=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,vbe=(e,t,n,r)=>{const i=nc(r.getHours(e),t,n);return r.setHours(e,i)},hT=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Xc=(e,t)=>(n,r)=>e?t.isAfter(n,r):hT(n,t)>hT(r,t),zd=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return go(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:go(n,["minutes"])?i.minutes:go(n,["seconds"])?i.seconds:go(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:go(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},BD={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function wbe(e){const{steps:t,isViewMatchingStep:n,onStepChange:r}=e;return i=>{if(t==null)return BD;const a=t.findIndex(l=>n(i.view,l)),s=a===-1||a===t.length-1?null:t[a+1];return{hasNextStep:s!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{s!=null&&r(ee({},i,{step:s}))},areViewsInSameStep:(l,c)=>{const u=t.find(f=>n(l,f)),d=t.find(f=>n(c,f));return u===d}}}}let Yh=!1;function Zc({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:a,focusedView:s,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(Yh||(r!=null&&!i.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${i.join('", "')}"]\`.`),Yh=!0),r==null&&n!=null&&!i.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${i.join('", "')}"]\`.`),Yh=!0)));const u=R.useRef(n),d=R.useRef(i),f=R.useRef(i.includes(n)?n:i[0]),[p,h]=Yn({name:"useViews",state:"view",controlled:r,default:f.current}),g=R.useRef(a?p:null),[m,y]=Yn({name:"useViews",state:"focusedView",controlled:s,default:g.current}),b=c?c({setView:h,view:p,defaultView:f.current,views:i}):BD;R.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(P=>!i.includes(P)))&&(h(i.includes(n)?n:i[0]),d.current=i,u.current=n)},[n,h,p,i]);const v=i.indexOf(p),x=i[v-1]??null,w=i[v+1]??null,O=Ie((P,T)=>{y(T?P:_=>P===_?null:_),l==null||l(P,T)}),E=Ie(P=>{O(P,!0),P!==p&&(h(P),t&&t(P))}),C=Ie(()=>{w&&E(w)}),S=Ie((P,T,_)=>{const k=T==="finish",$=_?i.indexOf(_)<i.length-1:!!w;e(P,k&&$?"partial":T,_);let j=null;if(_!=null&&_!==p?j=_:k&&(j=p),j==null)return;const W=i[i.indexOf(j)+1];W==null||!b.areViewsInSameStep(j,W)||E(W)});return ee({},b,{view:p,setView:E,focusedView:m,setFocusedView:O,nextView:w,previousView:x,defaultView:i.includes(n)?n:i[0],goToNextView:C,setValueAndGoToNextView:S})}function xbe(e,{disableFuture:t,maxDate:n,timezone:r}){const i=lt();return R.useMemo(()=>{const a=i.date(void 0,r),s=i.startOfMonth(t&&i.isBefore(a,n)?a:n);return!i.isAfter(s,e)},[t,n,e,i,r])}function Obe(e,{disablePast:t,minDate:n,timezone:r}){const i=lt();return R.useMemo(()=>{const a=i.date(void 0,r),s=i.startOfMonth(t&&i.isAfter(a,n)?a:n);return!i.isBefore(s,e)},[t,n,e,i,r])}function wp(e,t,n,r){const i=lt(),a=R.useMemo(()=>i.isValid(e)?e:null,[i,e]),s=bbe(a,i),l=R.useCallback(c=>{const u=a==null?null:vbe(a,c,!!t,i);n(u,r??"partial")},[t,a,n,r,i]);return{meridiemMode:s,handleMeridiemChange:l}}const rc=36,xp=2,us=320,Tbe=280,ds=336,zD=232,Ol=48,Op=ne("div")({overflow:"hidden",width:us,maxHeight:ds,display:"flex",flexDirection:"column",margin:"0 auto"});function Sbe(e){return Pe("MuiTimeClock",e)}ke("MuiTimeClock",["root","arrowSwitcher"]);const fs=220,jo=36,oc={x:fs/2,y:fs/2},WD={x:oc.x,y:0},Ebe=WD.x-oc.x,Cbe=WD.y-oc.y,Pbe=e=>e*(180/Math.PI),qD=(e,t,n)=>{const r=t-oc.x,i=n-oc.y,a=Math.atan2(Ebe,Cbe)-Math.atan2(r,i);let s=Pbe(a);s=Math.round(s/e)*e,s%=360;const l=Math.floor(s/e)||0,c=r**2+i**2,u=Math.sqrt(c);return{value:l,distance:u}},_be=(e,t,n=1)=>{const r=n*6;let{value:i}=qD(r,e,t);return i=i*n%60,i},kbe=(e,t,n)=>{const{value:r,distance:i}=qD(30,e,t);let a=r||12;return n?a%=12:i<fs/2-jo&&(a+=12,a%=24),a};function Dbe(e){return Pe("MuiClockPointer",e)}ke("MuiClockPointer",["root","thumb"]);const $be=["className","classes","isBetweenTwoClockValues","isInner","type","viewValue"],Rbe=e=>Ee({root:["root"],thumb:["thumb"]},Dbe,e),Mbe=ne("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),Ibe=ne("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${jo/2}px)`,border:`${(jo-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function Nbe(e){const t=ft({props:e,name:"MuiClockPointer"}),{className:n,classes:r,isBetweenTwoClockValues:i,isInner:a,type:s,viewValue:l}=t,c=Ge(t,$be),u=R.useRef(s);R.useEffect(()=>{u.current=s},[s]);const{ownerState:d}=on(),f=ee({},d,{isClockPointerAnimated:u.current!==s,isClockPointerBetweenTwoValues:i}),p=Rbe(r),h=()=>{let m=360/(s==="hours"?12:60)*l;return s==="hours"&&l>12&&(m-=360),{height:Math.round((a?.26:.4)*fs),transform:`rotateZ(${m}deg)`}};return I.jsx(Mbe,ee({style:h(),className:we(p.root,n),ownerState:f},c,{children:I.jsx(Ibe,{ownerState:f,className:p.thumb})}))}function Abe(e){return Pe("MuiClock",e)}ke("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const jbe=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return Ee(n,Abe,e)},Lbe=ne("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Fbe=ne("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Vbe=ne("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),Bbe=ne("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),zbe=ne("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),UD=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:jo,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),Wbe=ne(Gt,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>ee({},UD(e,"am"),{position:"absolute",left:8})),qbe=ne(Gt,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>ee({},UD(e,"pm"),{position:"absolute",right:8})),mT=ne(et,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Ube(e){const t=ft({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:s,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:f,selectedId:p,type:h,viewValue:g,viewRange:[m,y],disabled:b=!1,readOnly:v,className:x,classes:w}=t,O=lt(),E=zn(),{ownerState:C}=on(),S=ee({},C,{isClockDisabled:b,clockMeridiemMode:u}),P=R.useRef(!1),T=jbe(w,S),_=c(g,h),k=!n&&h==="hours"&&(g<1||g>12),$=(A,N)=>{b||v||c(A,h)||f(A,N)},M=(A,N)=>{let{offsetX:q,offsetY:Y}=A;if(q===void 0){const K=A.target.getBoundingClientRect();q=A.changedTouches[0].clientX-K.left,Y=A.changedTouches[0].clientY-K.top}const G=h==="seconds"||h==="minutes"?_be(q,Y,d):kbe(q,Y,!!n);$(G,N)},j=A=>{P.current=!0,M(A,"shallow")},W=A=>{P.current&&(M(A,"finish"),P.current=!1),A.preventDefault()},H=A=>{A.buttons>0&&M(A.nativeEvent,"shallow")},X=A=>{P.current&&(P.current=!1),M(A.nativeEvent,"finish")},U=h==="hours"?!1:g%5!==0,L=h==="minutes"?d:1,D=R.useRef(null);Kt(()=>{i&&D.current.focus()},[i]);const B=A=>Math.max(m,Math.min(y,A)),z=A=>(A+(y+1))%(y+1),F=A=>{if(!P.current)switch(A.key){case"Home":$(m,"partial"),A.preventDefault();break;case"End":$(y,"partial"),A.preventDefault();break;case"ArrowUp":$(z(g+L),"partial"),A.preventDefault();break;case"ArrowDown":$(z(g-L),"partial"),A.preventDefault();break;case"PageUp":$(B(g+5),"partial"),A.preventDefault();break;case"PageDown":$(B(g-5),"partial"),A.preventDefault();break;case"Enter":case" ":$(g,"finish"),A.preventDefault();break}};return I.jsxs(Lbe,{className:we(T.root,x),children:[I.jsxs(Fbe,{className:T.clock,children:[I.jsx(Bbe,{onTouchMove:j,onTouchStart:j,onTouchEnd:W,onMouseUp:X,onMouseMove:H,ownerState:S,className:T.squareMask}),!_&&I.jsxs(R.Fragment,{children:[I.jsx(zbe,{className:T.pin}),s!=null&&I.jsx(Nbe,{type:h,viewValue:g,isInner:k,isBetweenTwoClockValues:U})]}),I.jsx(Vbe,{"aria-activedescendant":p,"aria-label":E.clockLabelText(h,s==null?null:O.format(s,n?"fullTime12h":"fullTime24h")),ref:D,role:"listbox",onKeyDown:F,tabIndex:0,className:T.wrapper,children:a})]}),n&&r&&I.jsxs(R.Fragment,{children:[I.jsx(Wbe,{onClick:v?void 0:()=>l("am"),disabled:b||u===null,ownerState:S,className:T.amButton,title:to(O,"am"),children:I.jsx(mT,{variant:"caption",className:T.meridiemText,children:to(O,"am")})}),I.jsx(qbe,{disabled:b||u===null,onClick:v?void 0:()=>l("pm"),ownerState:S,className:T.pmButton,title:to(O,"pm"),children:I.jsx(mT,{variant:"caption",className:T.meridiemText,children:to(O,"pm")})})]})]})}function Hbe(e){return Pe("MuiClockNumber",e)}const Nu=ke("MuiClockNumber",["root","selected","disabled"]),Ybe=["className","classes","disabled","index","inner","label","selected"],Gbe=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return Ee(n,Hbe,e)},Kbe=ne("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Nu.disabled}`]:t.disabled},{[`&.${Nu.selected}`]:t.selected}]})(({theme:e})=>({height:jo,width:jo,position:"absolute",left:`calc((100% - ${jo}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Nu.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Nu.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:ee({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function HD(e){const t=ft({props:e,name:"MuiClockNumber"}),{className:n,classes:r,disabled:i,index:a,inner:s,label:l,selected:c}=t,u=Ge(t,Ybe),{ownerState:d}=on(),f=ee({},d,{isClockNumberInInnerRing:s,isClockNumberSelected:c,isClockNumberDisabled:i}),p=Gbe(r,f),h=a%12/12*Math.PI*2-Math.PI/2,g=(fs-jo-2)/2*(s?.65:1),m=Math.round(Math.cos(h)*g),y=Math.round(Math.sin(h)*g);return I.jsx(Kbe,ee({className:we(p.root,n),"aria-disabled":i?!0:void 0,"aria-selected":c?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${y+(fs-jo)/2}px`},ownerState:f},u,{children:l}))}const Xbe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,adapter:a})=>{const s=t?a.getHours(t):null,l=[],c=e?1:0,u=e?12:23,d=f=>s===null?!1:e?f===12?s===12||s===0:s===f||s-12===f:s===f;for(let f=c;f<=u;f+=1){let p=f.toString();f===0&&(p="00");const h=!e&&(f===0||f>12);p=a.formatNumber(p);const g=d(f);l.push(I.jsx(HD,{id:g?i:void 0,index:f,inner:h,selected:g,disabled:r(f),label:p,"aria-label":n(p)},f))}return l},gT=({adapter:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([s,l],c)=>{const u=s===t;return I.jsx(HD,{label:l,id:u?i:void 0,index:c+1,inner:!1,disabled:n(s),selected:u,"aria-label":r(l)},s)})},vi=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:i,onChange:a,valueManager:s})=>{const l=lt(),[c,u]=Yn({name:e,state:"value",controlled:n,default:r??s.emptyValue}),d=R.useMemo(()=>s.getTimezone(l,c),[l,s,c]),f=Ie(m=>d==null?m:s.setTimezone(l,d,m)),p=R.useMemo(()=>t||d||(i?l.getTimezone(Array.isArray(i)?i[0]:i):"default"),[t,d,i,l]),h=R.useMemo(()=>s.setTimezone(l,p,c),[s,l,p,c]),g=Ie((m,...y)=>{const b=f(m);u(b),a==null||a(b,...y)});return{value:h,handleValueChange:g,timezone:p}},Qr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Zbe=e=>Math.max(...e.map(t=>Qr[t.type]??1)),il=(e,t,n)=>{if(t===Qr.year)return e.startOfYear(n);if(t===Qr.month)return e.startOfMonth(n);if(t===Qr.day)return e.startOfDay(n);let r=n;return t<Qr.minutes&&(r=e.setMinutes(r,0)),t<Qr.seconds&&(r=e.setSeconds(r,0)),t<Qr.milliseconds&&(r=e.setMilliseconds(r,0)),r},Qbe=({props:e,adapter:t,granularity:n,timezone:r,getTodayDate:i})=>{let a=i?i():il(t,n,Tv(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=il(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=il(t,n,e.maxDate));const s=Xc(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=il(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Vd(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=il(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Vd(t,a,e.maxTime))),a},Jbe=["value","referenceDate"],mn={emptyValue:null,getTodayValue:Tv,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ge(e,Jbe);return r.adapter.isValid(t)?t:n??Qbe(r)},cleanValue:Aye,areValuesEqual:jye,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Iv={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:Wye,getV6InputValueFromSections:qye,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>ee({},t,{value:""}))},Nv=({value:e,referenceDate:t,adapter:n,props:r,timezone:i})=>{const a=R.useMemo(()=>mn.getInitialReferenceValue({value:e,adapter:n,props:r,referenceDate:t,granularity:Qr.day,timezone:i,getTodayDate:()=>Tv(n,i,"date")}),[t,i]);return e??a},eve=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],tve=e=>Ee({root:["root"],arrowSwitcher:["arrowSwitcher"]},Sbe,e),nve=ne(Op,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),rve=ne(Mv,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),ove=["hours","minutes"],Av=R.forwardRef(function(t,n){const r=lt(),i=ft({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:f,referenceDate:p,disableIgnoringDatePartForTimeValidation:h=!1,maxTime:g,minTime:m,disableFuture:y,disablePast:b,minutesStep:v=1,shouldDisableTime:x,showViewSwitcher:w,onChange:O,view:E,views:C=ove,openTo:S,onViewChange:P,focusedView:T,onFocusedViewChange:_,className:k,classes:$,disabled:M,readOnly:j,timezone:W}=i,H=Ge(i,eve),{value:X,handleValueChange:U,timezone:L}=vi({name:"TimeClock",timezone:W,value:d,defaultValue:f,referenceDate:p,onChange:O,valueManager:mn}),D=Nv({value:X,referenceDate:p,adapter:r,props:i,timezone:L}),B=zn(),z=aa(L),F=dr(),{ownerState:A}=on(),{view:N,setView:q,previousView:Y,nextView:G,setValueAndGoToNextView:K}=Zc({view:E,views:C,openTo:S,onViewChange:P,onChange:U,focusedView:T,onFocusedViewChange:_}),{meridiemMode:J,handleMeridiemChange:Z}=wp(D,a,K),ie=R.useCallback((he,pe)=>{const Q=Xc(h,r),oe=pe==="hours"||pe==="minutes"&&C.includes("seconds"),te=({start:re,end:Te})=>!(m&&Q(m,Te)||g&&Q(re,g)||y&&Q(re,z)||b&&Q(z,oe?Te:re)),le=(re,Te=1)=>{if(re%Te!==0)return!1;if(x)switch(pe){case"hours":return!x(r.setHours(D,re),"hours");case"minutes":return!x(r.setMinutes(D,re),"minutes");case"seconds":return!x(r.setSeconds(D,re),"seconds");default:return!1}return!0};switch(pe){case"hours":{const re=nc(he,J,a),Te=r.setHours(D,re);if(r.getHours(Te)!==re)return!0;const Se=r.setSeconds(r.setMinutes(Te,0),0),fe=r.setSeconds(r.setMinutes(Te,59),59);return!te({start:Se,end:fe})||!le(re)}case"minutes":{const re=r.setMinutes(D,he),Te=r.setSeconds(re,0),Se=r.setSeconds(re,59);return!te({start:Te,end:Se})||!le(he,v)}case"seconds":{const re=r.setSeconds(D,he);return!te({start:re,end:re})||!le(he)}default:throw new Error("not supported")}},[a,D,h,g,J,m,v,x,r,y,b,z,C]),de=R.useMemo(()=>{switch(N){case"hours":{const he=(oe,te)=>{const le=nc(oe,J,a);K(r.setHours(D,le),te,"hours")},pe=r.getHours(D);let Q;return a?pe>12?Q=[12,23]:Q=[0,11]:Q=[0,23],{onChange:he,viewValue:pe,children:Xbe({value:X,adapter:r,ampm:a,getClockNumberText:B.hoursClockNumberText,isDisabled:oe=>M||ie(oe,"hours"),selectedId:F}),viewRange:Q}}case"minutes":{const he=r.getMinutes(D);return{viewValue:he,onChange:(Q,oe)=>{K(r.setMinutes(D,Q),oe,"minutes")},children:gT({adapter:r,value:he,getClockNumberText:B.minutesClockNumberText,isDisabled:Q=>M||ie(Q,"minutes"),selectedId:F}),viewRange:[0,59]}}case"seconds":{const he=r.getSeconds(D);return{viewValue:he,onChange:(Q,oe)=>{K(r.setSeconds(D,Q),oe,"seconds")},children:gT({adapter:r,value:he,getClockNumberText:B.secondsClockNumberText,isDisabled:Q=>M||ie(Q,"seconds"),selectedId:F}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[N,r,X,a,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,J,K,D,ie,F,M]),xe=tve($);return I.jsxs(nve,ee({ref:n,className:we(xe.root,k),ownerState:A},H,{children:[I.jsx(Ube,ee({autoFocus:l??!!T,ampmInClock:s&&C.includes("hours"),value:X,type:N,ampm:a,minutesStep:v,isTimeDisabled:ie,meridiemMode:J,handleMeridiemChange:Z,selectedId:F,disabled:M,readOnly:j},de)),w&&I.jsx(rve,{className:xe.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>q(Y),isPreviousDisabled:!Y,previousLabel:B.openPreviousView,onGoToNext:()=>q(G),isNextDisabled:!G,nextLabel:B.openNextView,ownerState:A})]}))});process.env.NODE_ENV!=="production"&&(Av.displayName="TimeClock");process.env.NODE_ENV!=="production"&&(Av.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,focusedView:o.oneOf(["hours","minutes","seconds"]),maxTime:o.object,minTime:o.object,minutesStep:o.number,onChange:o.func,onFocusedViewChange:o.func,onViewChange:o.func,openTo:o.oneOf(["hours","minutes","seconds"]),readOnly:o.bool,referenceDate:o.object,shouldDisableTime:o.func,showViewSwitcher:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["hours","minutes","seconds"]),views:o.arrayOf(o.oneOf(["hours","minutes","seconds"]).isRequired)});function ive(e){return Pe("MuiDigitalClock",e)}const lg=ke("MuiDigitalClock",["root","list","item"]);function ka(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ave=e=>{setTimeout(e,0)},Vn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Vn(t.shadowRoot):t:null},Wd=e=>Array.from(e.children).indexOf(Vn(document)),jv="@media (pointer: fine)";function sve(...e){return e.reduce((t,n)=>(Array.isArray(n)?t.push(...n):n!=null&&t.push(n),t),[])}const lve=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],cve=e=>Ee({root:["root"],list:["list"],item:["item"]},ive,e),uve=ne(Op,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:zD,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),dve=ne(Uf,{name:"MuiDigitalClock",slot:"List"})({padding:0}),fve=ne(os,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Je(e.palette.primary.main,e.palette.action.focusOpacity)}})),Lv=R.forwardRef(function(t,n){const r=lt(),i=R.useRef(null),a=xt(n,i),s=R.useRef(null),l=ft({props:t,name:"MuiDigitalClock"}),{ampm:c=r.is12HourCycleInCurrentLocale(),timeStep:u=30,autoFocus:d,slots:f,slotProps:p,value:h,defaultValue:g,referenceDate:m,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:b,minTime:v,disableFuture:x,disablePast:w,minutesStep:O=1,shouldDisableTime:E,onChange:C,view:S,openTo:P,onViewChange:T,focusedView:_,onFocusedViewChange:k,className:$,classes:M,disabled:j,readOnly:W,views:H=["hours"],skipDisabled:X=!1,timezone:U}=l,L=Ge(l,lve),{value:D,handleValueChange:B,timezone:z}=vi({name:"DigitalClock",timezone:U,value:h,defaultValue:g,referenceDate:m,onChange:C,valueManager:mn}),F=zn(),A=aa(z),{ownerState:N}=on(),q=ee({},N,{hasDigitalClockAlreadyBeenRendered:!!i.current}),Y=cve(M),G=(f==null?void 0:f.digitalClockItem)??fve,K=st({elementType:G,externalSlotProps:p==null?void 0:p.digitalClockItem,ownerState:q,className:Y.item}),J=Nv({value:D,referenceDate:m,adapter:r,props:l,timezone:z}),Z=Ie(oe=>B(oe,"finish","hours")),{setValueAndGoToNextView:ie}=Zc({view:S,views:H,openTo:P,onViewChange:T,onChange:Z,focusedView:_,onFocusedViewChange:k}),de=Ie(oe=>{ie(oe,"finish")});Kt(()=>{if(i.current===null)return;const oe=i.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!oe)return;const te=oe.offsetTop;(d||_)&&oe.focus(),i.current.scrollTop=te-4});const xe=R.useCallback(oe=>{const te=Xc(y,r),le=()=>!(v&&te(v,oe)||b&&te(oe,b)||x&&te(oe,A)||w&&te(A,oe)),re=()=>r.getMinutes(oe)%O!==0?!1:E?!E(oe,"hours"):!0;return!le()||!re()},[y,r,v,b,x,A,w,O,E]),he=R.useMemo(()=>{const oe=[];let le=r.startOfDay(J);for(;r.isSameDay(J,le);)oe.push(le),le=r.addMinutes(le,u);return oe},[J,u,r]),pe=he.findIndex(oe=>r.isEqual(oe,J)),Q=oe=>{switch(oe.key){case"PageUp":{const te=Wd(s.current)-5,le=s.current.children,re=Math.max(0,te),Te=le[re];Te&&Te.focus(),oe.preventDefault();break}case"PageDown":{const te=Wd(s.current)+5,le=s.current.children,re=Math.min(le.length-1,te),Te=le[re];Te&&Te.focus(),oe.preventDefault();break}}};return I.jsx(uve,ee({ref:a,className:we(Y.root,$),ownerState:q},L,{children:I.jsx(dve,{ref:s,role:"listbox","aria-label":F.timePickerToolbarTitle,className:Y.list,onKeyDown:Q,children:he.map((oe,te)=>{const le=xe(oe);if(X&&le)return null;const re=r.isEqual(oe,D),Te=r.format(oe,c?"fullTime12h":"fullTime24h"),fe=pe===te||pe===-1&&te===0?0:-1;return I.jsx(G,ee({onClick:()=>!W&&de(oe),selected:re,disabled:j||le,disableRipple:W,role:"option","aria-disabled":W,"aria-selected":re,tabIndex:fe,itemValue:oe,formattedValue:Te},K,{children:Te}),`${oe.valueOf()}-${Te}`)})})}))});process.env.NODE_ENV!=="production"&&(Lv.displayName="DigitalClock");process.env.NODE_ENV!=="production"&&(Lv.propTypes={ampm:o.bool,autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,focusedView:o.oneOf(["hours"]),maxTime:o.object,minTime:o.object,minutesStep:o.number,onChange:o.func,onFocusedViewChange:o.func,onViewChange:o.func,openTo:o.oneOf(["hours"]),readOnly:o.bool,referenceDate:o.object,shouldDisableTime:o.func,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeStep:o.number,timezone:o.string,value:o.object,view:o.oneOf(["hours"]),views:o.arrayOf(o.oneOf(["hours"]))});function pve(e){return Pe("MuiMultiSectionDigitalClock",e)}const cg=ke("MuiMultiSectionDigitalClock",["root"]);function hve(e){return Pe("MuiMultiSectionDigitalClockSection",e)}const ug=ke("MuiMultiSectionDigitalClockSection",["root","item"]),mve=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],gve=e=>Ee({root:["root"],item:["item"]},hve,e),yve=ne(Uf,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:zD,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),bve=ne(os,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:Ol,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Je(e.palette.primary.main,e.palette.action.focusOpacity)}})),YD=R.forwardRef(function(t,n){const r=R.useRef(null),i=xt(n,r),a=R.useRef(null),s=ft({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,classes:d,disabled:f,readOnly:p,items:h,active:g,slots:m,slotProps:y,skipDisabled:b}=s,v=Ge(s,mve),{ownerState:x}=on(),w=ee({},x,{hasDigitalClockAlreadyBeenRendered:!!r.current}),O=gve(d),E=(m==null?void 0:m.digitalClockSectionItem)??bve;Kt(()=>{if(r.current===null)return;const P=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(g&&l&&P&&P.focus(),!P||a.current===P)return;a.current=P;const T=P.offsetTop;r.current.scrollTop=T-4});const C=h.findIndex(P=>P.isFocused(P.value)),S=P=>{switch(P.key){case"PageUp":{const T=Wd(r.current)-5,_=r.current.children,k=Math.max(0,T),$=_[k];$&&$.focus(),P.preventDefault();break}case"PageDown":{const T=Wd(r.current)+5,_=r.current.children,k=Math.min(_.length-1,T),$=_[k];$&&$.focus(),P.preventDefault();break}}};return I.jsx(yve,ee({ref:i,className:we(O.root,u),ownerState:w,autoFocusItem:l&&g,role:"listbox",onKeyDown:S},v,{children:h.map((P,T)=>{var j;const _=(j=P.isDisabled)==null?void 0:j.call(P,P.value),k=f||_;if(b&&k)return null;const $=P.isSelected(P.value),M=C===T||C===-1&&T===0?0:-1;return I.jsx(E,ee({onClick:()=>!p&&c(P.value),selected:$,disabled:k,disableRipple:p,role:"option","aria-disabled":p||k||void 0,"aria-label":P.ariaLabel,"aria-selected":$,tabIndex:M,className:O.item},y==null?void 0:y.digitalClockSectionItem,{children:P.label}),P.label)})}))});process.env.NODE_ENV!=="production"&&(YD.displayName="MultiSectionDigitalClockSection");const vve=({now:e,value:t,adapter:n,ampm:r,isDisabled:i,resolveAriaLabel:a,timeStep:s,valueOrReferenceDate:l})=>{const c=t?n.getHours(t):null,u=[],d=(h,g)=>{const m=g??c;return m===null?!1:r?h===12?m===12||m===0:m===h||m-12===h:m===h},f=h=>d(h,n.getHours(l)),p=r?11:23;for(let h=0;h<=p;h+=s){let g=n.format(n.setHours(e,h),r?"hours12h":"hours24h");const m=a(parseInt(g,10).toString());g=n.formatNumber(g),u.push({value:h,label:g,isSelected:d,isDisabled:i,isFocused:f,ariaLabel:m})}return u},yT=({value:e,adapter:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:a,hasValue:s=!0})=>{const l=u=>e===null?!1:s&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/r)},(u,d)=>{const f=r*d;return{value:f,label:t.formatNumber(i(f)),isDisabled:n,isSelected:l,isFocused:c,ariaLabel:a(f.toString())}})]},wve=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],xve=e=>Ee({root:["root"]},pve,e),Ove=ne(Op,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),Fv=R.forwardRef(function(t,n){const r=lt(),i=Gn(),a=ft({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeSteps:l,autoFocus:c,slots:u,slotProps:d,value:f,defaultValue:p,referenceDate:h,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:m,minTime:y,disableFuture:b,disablePast:v,minutesStep:x=1,shouldDisableTime:w,onChange:O,view:E,views:C=["hours","minutes"],openTo:S,onViewChange:P,focusedView:T,onFocusedViewChange:_,className:k,classes:$,disabled:M,readOnly:j,skipDisabled:W=!1,timezone:H}=a,X=Ge(a,wve),{value:U,handleValueChange:L,timezone:D}=vi({name:"MultiSectionDigitalClock",timezone:H,value:f,defaultValue:p,referenceDate:h,onChange:O,valueManager:mn}),B=zn(),z=aa(D),F=R.useMemo(()=>ee({hours:1,minutes:5,seconds:5},l),[l]),A=Nv({value:U,referenceDate:h,adapter:r,props:a,timezone:D}),N=Ie((te,le,re)=>L(te,le,re)),q=R.useMemo(()=>!s||!C.includes("hours")||C.includes("meridiem")?C:[...C,"meridiem"],[s,C]),{view:Y,setValueAndGoToNextView:G,focusedView:K}=Zc({view:E,views:q,openTo:S,onViewChange:P,onChange:N,focusedView:T,onFocusedViewChange:_}),J=Ie(te=>{G(te,"finish","meridiem")}),{meridiemMode:Z,handleMeridiemChange:ie}=wp(A,s,J,"finish"),de=R.useCallback((te,le)=>{const re=Xc(g,r),Te=le==="hours"||le==="minutes"&&q.includes("seconds"),Se=({start:ge,end:_e})=>!(y&&re(y,_e)||m&&re(ge,m)||b&&re(ge,z)||v&&re(z,Te?_e:ge)),fe=(ge,_e=1)=>{if(ge%_e!==0)return!1;if(w)switch(le){case"hours":return!w(r.setHours(A,ge),"hours");case"minutes":return!w(r.setMinutes(A,ge),"minutes");case"seconds":return!w(r.setSeconds(A,ge),"seconds");default:return!1}return!0};switch(le){case"hours":{const ge=nc(te,Z,s),_e=r.setHours(A,ge);if(r.getHours(_e)!==ge)return!0;const $e=r.setSeconds(r.setMinutes(_e,0),0),ae=r.setSeconds(r.setMinutes(_e,59),59);return!Se({start:$e,end:ae})||!fe(ge)}case"minutes":{const ge=r.setMinutes(A,te),_e=r.setSeconds(ge,0),$e=r.setSeconds(ge,59);return!Se({start:_e,end:$e})||!fe(te,x)}case"seconds":{const ge=r.setSeconds(A,te);return!Se({start:ge,end:ge})||!fe(te)}default:throw new Error("not supported")}},[s,A,g,m,Z,y,x,w,r,b,v,z,q]),xe=R.useCallback(te=>{switch(te){case"hours":return{onChange:le=>{const re=nc(le,Z,s);G(r.setHours(A,re),"finish","hours")},items:vve({now:z,value:U,ampm:s,adapter:r,isDisabled:le=>de(le,"hours"),timeStep:F.hours,resolveAriaLabel:B.hoursClockNumberText,valueOrReferenceDate:A})};case"minutes":return{onChange:le=>{G(r.setMinutes(A,le),"finish","minutes")},items:yT({value:r.getMinutes(A),adapter:r,isDisabled:le=>de(le,"minutes"),resolveLabel:le=>r.format(r.setMinutes(z,le),"minutes"),timeStep:F.minutes,hasValue:!!U,resolveAriaLabel:B.minutesClockNumberText})};case"seconds":return{onChange:le=>{G(r.setSeconds(A,le),"finish","seconds")},items:yT({value:r.getSeconds(A),adapter:r,isDisabled:le=>de(le,"seconds"),resolveLabel:le=>r.format(r.setSeconds(z,le),"seconds"),timeStep:F.seconds,hasValue:!!U,resolveAriaLabel:B.secondsClockNumberText})};case"meridiem":{const le=to(r,"am"),re=to(r,"pm");return{onChange:ie,items:[{value:"am",label:le,isSelected:()=>!!U&&Z==="am",isFocused:()=>!!A&&Z==="am",ariaLabel:le},{value:"pm",label:re,isSelected:()=>!!U&&Z==="pm",isFocused:()=>!!A&&Z==="pm",ariaLabel:re}]}}default:throw new Error(`Unknown view: ${te} found.`)}},[z,U,s,r,F.hours,F.minutes,F.seconds,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,Z,G,A,de,ie]),he=R.useMemo(()=>{if(!i)return q;const te=q.filter(le=>le!=="meridiem");return te.reverse(),q.includes("meridiem")&&te.push("meridiem"),te},[i,q]),pe=R.useMemo(()=>q.reduce((te,le)=>ee({},te,{[le]:xe(le)}),{}),[q,xe]),{ownerState:Q}=on(),oe=xve($);return I.jsx(Ove,ee({ref:n,className:we(oe.root,k),ownerState:Q,role:"group"},X,{children:he.map(te=>I.jsx(YD,{items:pe[te].items,onChange:pe[te].onChange,active:Y===te,autoFocus:c||K===te,disabled:M,readOnly:j,slots:u,slotProps:d,skipDisabled:W,"aria-label":B.selectViewText(te)},te))}))});process.env.NODE_ENV!=="production"&&(Fv.displayName="MultiSectionDigitalClock");process.env.NODE_ENV!=="production"&&(Fv.propTypes={ampm:o.bool,autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,focusedView:o.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:o.object,minTime:o.object,minutesStep:o.number,onChange:o.func,onFocusedViewChange:o.func,onViewChange:o.func,openTo:o.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:o.bool,referenceDate:o.object,shouldDisableTime:o.func,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["hours","meridiem","minutes","seconds"]),views:o.arrayOf(o.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});function Tve(e){return Pe("MuiPickersDay",e)}const Oi=ke("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function GD(e){const{disabled:t,selected:n,today:r,outsideCurrentMonth:i,day:a,disableMargin:s,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=lt(),{ownerState:d}=on();return R.useMemo(()=>ee({},d,{day:a,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:r??!1,isDayOutsideMonth:i??!1,isDayStartOfWeek:u.isSameDay(a,u.startOfWeek(a)),isDayEndOfWeek:u.isSameDay(a,u.endOfWeek(a)),disableMargin:s??!1,disableHighlightToday:l??!1,showDaysOutsideCurrentMonth:c??!1}),[u,d,a,n,t,r,i,s,l,c])}const Sve=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],Eve=(e,t)=>{const{isDaySelected:n,isDayDisabled:r,isDayCurrent:i,isDayOutsideMonth:a,disableMargin:s,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=a&&!c;return Ee({root:["root",n&&!u&&"selected",r&&"disabled",!s&&"dayWithMargin",!l&&i&&"today",a&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Tve,e)},KD=({theme:e})=>ee({},e.typography.caption,{width:rc,height:rc,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Je(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Oi.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Oi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Oi.disabled}:not(.${Oi.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Oi.disabled}&.${Oi.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${xp}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${Oi.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),XD=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,!n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Cve=ne(Tr,{name:"MuiPickersDay",slot:"Root",overridesResolver:XD})(KD),Pve=ne("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:XD})(({theme:e})=>ee({},KD({theme:e}),{opacity:0,pointerEvents:"none"})),al=()=>{},Vv=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:a,classes:s,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=al,onBlur:f=al,onKeyDown:p=al,onMouseDown:h=al,onMouseEnter:g=al,children:m,day:y,selected:b,disabled:v,today:x,outsideCurrentMonth:w,disableMargin:O,disableHighlightToday:E,showDaysOutsideCurrentMonth:C}=r,S=Ge(r,Sve),P=GD({day:y,selected:b,disabled:v,today:x,outsideCurrentMonth:w,disableMargin:O,disableHighlightToday:E,showDaysOutsideCurrentMonth:C}),T=Eve(s,P),_=lt(),k=R.useRef(null),$=xt(k,n);Kt(()=>{i&&!v&&!l&&!w&&k.current.focus()},[i,v,l,w]);const M=W=>{h(W),w&&W.preventDefault()},j=W=>{v||u(y),w&&W.currentTarget.focus(),c&&c(W)};return w&&!C?I.jsx(Pve,{className:we(T.root,T.hiddenDaySpacingFiller,a),ownerState:P,role:S.role}):I.jsx(Cve,ee({className:we(T.root,a),ref:$,centerRipple:!0,disabled:v,tabIndex:b?0:-1,onKeyDown:W=>p(W,y),onFocus:W=>d(W,y),onBlur:W=>f(W,y),onMouseEnter:W=>g(W,y),onClick:j,onMouseDown:M},S,{ownerState:P,children:m??_.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Vv.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(Vv.propTypes={action:o.oneOfType([o.func,o.shape({current:o.shape({focusVisible:o.func.isRequired})})]),centerRipple:o.bool,classes:o.object,className:o.string,component:o.elementType,day:o.object.isRequired,disabled:o.bool,disableHighlightToday:o.bool,disableMargin:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,isAnimating:o.bool,isFirstVisibleCell:o.bool.isRequired,isLastVisibleCell:o.bool.isRequired,onBlur:o.func,onDaySelect:o.func.isRequired,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onMouseEnter:o.func,outsideCurrentMonth:o.bool.isRequired,selected:o.bool,showDaysOutsideCurrentMonth:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,today:o.bool,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})})])});const ZD=R.memo(Vv);process.env.NODE_ENV!=="production"&&(ZD.displayName="PickersDay");const Oa=e=>e.saveQuery!=null,QD=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:i,setTempAndroidValueStr:a,updateSectionValue:s}})=>{const l=lt(),c=({keyPressed:f,sectionIndex:p},h,g)=>{const m=f.toLowerCase(),y=n.sections[p];if(n.characterQuery!=null&&(!g||g(n.characterQuery.value))&&n.characterQuery.sectionIndex===p){const v=`${n.characterQuery.value}${m}`,x=h(v,y);if(!Oa(x))return i({sectionIndex:p,value:v,sectionType:y.type}),x}const b=h(m,y);return Oa(b)&&!b.saveQuery?(i(null),null):(i({sectionIndex:p,value:m,sectionType:y.type}),Oa(b)?null:b)},u=f=>{const p=(m,y,b)=>{const v=y.filter(x=>x.toLowerCase().startsWith(b));return v.length===0?{saveQuery:!1}:{sectionValue:v[0],shouldGoToNextSection:v.length===1}},h=(m,y,b,v)=>{const x=w=>MD(l,r,y.type,w);if(y.contentType==="letter")return p(y.format,x(y.format),m);if(b&&v!=null&&Sv(l,b).contentType==="letter"){const w=x(b),O=p(b,w,m);return Oa(O)?{saveQuery:!1}:ee({},O,{sectionValue:v(O.sectionValue,w)})}return{saveQuery:!1}};return c(f,(m,y)=>{switch(y.type){case"month":{const b=v=>sT(l,v,l.formats.month,y.format);return h(m,y,l.formats.month,b)}case"weekDay":{const b=(v,x)=>x.indexOf(v).toString();return h(m,y,l.formats.weekday,b)}case"meridiem":return h(m,y);default:return{saveQuery:!1}}})},d=f=>{const p=({queryValue:g,skipIfBelowMinimum:m,section:y})=>{const b=Qi(g,e),v=Number(b),x=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(v>x.maximum)return{saveQuery:!1};if(m&&v<x.minimum)return{saveQuery:!0};const w=v*10>x.maximum||b.length===x.maximum.toString().length;return{sectionValue:ID(l,v,x,e,y),shouldGoToNextSection:w}};return c(f,(g,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return p({queryValue:g,skipIfBelowMinimum:!1,section:m});if(m.type==="month"){ND(l,"digit","month","MM");const y=p({queryValue:g,skipIfBelowMinimum:!0,section:{type:m.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Oa(y))return y;const b=sT(l,y.sectionValue,"MM",m.format);return ee({},y,{sectionValue:b})}if(m.type==="weekDay"){const y=p({queryValue:g,skipIfBelowMinimum:!0,section:m});if(Oa(y))return y;const b=bp(l,m.format)[Number(y.sectionValue)-1];return ee({},y,{sectionValue:b})}return{saveQuery:!1}},g=>aT(g,e))};return Ie(f=>{const p=n.sections[f.sectionIndex],g=aT(f.keyPressed,e)?d(ee({},f,{keyPressed:Ev(f.keyPressed,e)})):u(f);if(g==null){a(null);return}s({section:p,newSectionValue:g.sectionValue,shouldGoToNextSection:g.shouldGoToNextSection})})},Ws=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:i,shouldDisableMonth:a,shouldDisableYear:s,disablePast:l,disableFuture:c,minDate:u,maxDate:d}=e,f=r.date(void 0,n);switch(!0){case!r.isValid(t):return"invalidDate";case!!(i&&i(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(c&&r.isAfterDay(t,f)):return"disableFuture";case!!(l&&r.isBeforeDay(t,f)):return"disablePast";case!!(u&&r.isBeforeDay(t,u)):return"minDate";case!!(d&&r.isAfterDay(t,d)):return"maxDate";default:return null}};Ws.valueManager=mn;const Qc=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:i,maxTime:a,minutesStep:s,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=r,f=e.date(void 0,n),p=Xc(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(i&&p(i,t)):return"minTime";case!!(a&&p(t,a)):return"maxTime";case!!(d&&e.isAfter(t,f)):return"disableFuture";case!!(u&&e.isBefore(t,f)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(s&&e.getMinutes(t)%s!==0):return"minutesStep";default:return null}};Qc.valueManager=mn;const Tp=({adapter:e,value:t,timezone:n,props:r})=>{const i=Ws({adapter:e,value:t,timezone:n,props:r});return i!==null?i:Qc({adapter:e,value:t,timezone:n,props:r})};Tp.valueManager=mn;function JD(e){const{props:t,validator:n,value:r,timezone:i,onError:a}=e,s=lt(),l=R.useRef(n.valueManager.defaultErrorState),c=n({adapter:s,value:r,timezone:i,props:t}),u=n.valueManager.hasError(c);R.useEffect(()=>{a&&!n.valueManager.isSameError(c,l.current)&&a(c,r),l.current=c},[n,a,c,r]);const d=Ie(f=>n({adapter:s,value:f,timezone:i,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const _ve=5e3,e$=e=>{var he;const t=lt(),n=zn(),r=Gn(),{manager:{validator:i,valueType:a,internal_valueManager:s,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:f,onChange:p,format:h,formatDensity:g="dense",selectedSections:m,onSelectedSectionsChange:y,shouldRespectLeadingZeros:b=!1,timezone:v,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:w}}=e,{value:O,handleValueChange:E,timezone:C}=vi({name:"a field component",timezone:v,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:s}),S=R.useRef(O);R.useEffect(()=>{S.current=O},[O]);const{hasValidationError:P}=JD({props:c,validator:i,timezone:C,value:O,onError:c.onError}),T=R.useMemo(()=>w!==void 0?w:P,[P,w]),_=R.useMemo(()=>Vye(t),[t]),k=R.useMemo(()=>Uye(t,_,C),[t,_,C]),$=R.useCallback(pe=>l.getSectionsFromValue(pe,Q=>fT({adapter:t,localeText:n,localizedDigits:_,format:h,date:Q,formatDensity:g,shouldRespectLeadingZeros:b,enableAccessibleFieldDOMStructure:x,isRtl:r})),[l,h,n,_,r,b,t,g,x]),[M,j]=R.useState(()=>{const pe=$(O);cT(pe,a);const Q={sections:pe,lastExternalValue:O,lastSectionsDependencies:{format:h,isRtl:r,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},oe=Zbe(pe),te=s.getInitialReferenceValue({referenceDate:f,value:O,adapter:t,props:c,granularity:oe,timezone:C});return ee({},Q,{referenceValue:te})}),[W,H]=Yn({controlled:m,default:null,name:"useField",state:"selectedSections"}),X=pe=>{H(pe),y==null||y(pe)},U=R.useMemo(()=>sg(W,M.sections),[W,M.sections]),L=U==="all"?0:U,D=R.useMemo(()=>Gye(M.sections,r&&!x),[M.sections,r,x]),B=R.useMemo(()=>M.sections.every(pe=>pe.value===""),[M.sections]),z=pe=>{const Q={validationError:i({adapter:t,value:pe,timezone:C,props:c})};E(pe,Q)},F=(pe,Q)=>{const oe=[...M.sections];return oe[pe]=ee({},oe[pe],{value:Q,modified:!0}),oe},A=R.useRef(null),N=br(),q=pe=>{L!=null&&(A.current={sectionIndex:L,value:pe},N.start(0,()=>{A.current=null}))},Y=()=>{s.areValuesEqual(t,O,s.emptyValue)?j(pe=>ee({},pe,{sections:pe.sections.map(Q=>ee({},Q,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(j(pe=>ee({},pe,{characterQuery:null})),z(s.emptyValue))},G=()=>{if(L==null)return;const pe=M.sections[L];pe.value!==""&&(q(""),l.getDateFromSection(O,pe)===null?j(Q=>ee({},Q,{sections:F(L,""),tempValueStrAndroid:null,characterQuery:null})):(j(Q=>ee({},Q,{characterQuery:null})),z(l.updateDateInValue(O,pe,null))))},K=pe=>{const Q=(te,le)=>{const re=t.parse(te,h);if(!t.isValid(re))return null;const Te=fT({adapter:t,localeText:n,localizedDigits:_,format:h,date:re,formatDensity:g,shouldRespectLeadingZeros:b,enableAccessibleFieldDOMStructure:x,isRtl:r});return dT(t,re,Te,le,!1)},oe=l.parseValueStr(pe,M.referenceValue,Q);z(oe)},J=br(),Z=({section:pe,newSectionValue:Q,shouldGoToNextSection:oe})=>{N.clear(),J.clear();const te=l.getDateFromSection(O,pe);oe&&L<M.sections.length-1&&X(L+1);const le=F(L,Q),re=l.getDateSectionsFromValue(le,pe),Te=zye(t,re,_);if(t.isValid(Te)){const Se=dT(t,Te,re,l.getDateFromSection(M.referenceValue,pe),!0);return te==null&&J.start(0,()=>{S.current===O&&j(fe=>ee({},fe,{sections:l.clearDateSections(M.sections,pe),tempValueStrAndroid:null}))}),z(l.updateDateInValue(O,pe,Se))}return re.every(Se=>Se.value!=="")&&(te==null||t.isValid(te))?(q(Q),z(l.updateDateInValue(O,pe,Te))):te!=null?(q(Q),z(l.updateDateInValue(O,pe,null))):j(Se=>ee({},Se,{sections:le,tempValueStrAndroid:null}))},ie=pe=>j(Q=>ee({},Q,{tempValueStrAndroid:pe})),de=Ie(pe=>{j(Q=>ee({},Q,{characterQuery:pe}))});if(O!==M.lastExternalValue){let pe;A.current!=null&&!t.isValid(l.getDateFromSection(O,M.sections[A.current.sectionIndex]))?pe=F(A.current.sectionIndex,A.current.value):pe=$(O),j(Q=>ee({},Q,{lastExternalValue:O,sections:pe,sectionsDependencies:{format:h,isRtl:r,locale:t.locale},referenceValue:l.updateReferenceValue(t,O,Q.referenceValue),tempValueStrAndroid:null}))}if(r!==M.lastSectionsDependencies.isRtl||h!==M.lastSectionsDependencies.format||t.locale!==M.lastSectionsDependencies.locale){const pe=$(O);cT(pe,a),j(Q=>ee({},Q,{lastSectionsDependencies:{format:h,isRtl:r,locale:t.locale},sections:pe,tempValueStrAndroid:null,characterQuery:null}))}M.characterQuery!=null&&!T&&L==null&&de(null),M.characterQuery!=null&&((he=M.sections[M.characterQuery.sectionIndex])==null?void 0:he.type)!==M.characterQuery.sectionType&&de(null),R.useEffect(()=>{A.current!=null&&(A.current=null)});const xe=br();return R.useEffect(()=>(M.characterQuery!=null&&xe.start(_ve,()=>de(null)),()=>{}),[M.characterQuery,de,xe]),R.useEffect(()=>{M.tempValueStrAndroid!=null&&L!=null&&G()},[M.sections]),{activeSectionIndex:L,areAllSectionsEmpty:B,error:T,localizedDigits:_,parsedSelectedSections:U,sectionOrder:D,sectionsValueBoundaries:k,state:M,timezone:C,value:O,clearValue:Y,clearActiveSection:G,setCharacterQuery:de,setSelectedSections:X,setTempAndroidValueStr:ie,updateSectionValue:Z,updateValueFromValueStr:K,getSectionsFromValue:$}};function t$(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,i=_v(),a=AD(),s=xt(n.unstableFieldRef,r?null:a==null?void 0:a.fieldRef),l=i==null?void 0:i.setValue,c=R.useCallback((d,f)=>l==null?void 0:l(d,{validationError:f.validationError,shouldClose:!1}),[l]),u=R.useMemo(()=>a!=null&&i!=null?ee({value:i.value,onChange:c,timezone:i.timezone,disabled:i.disabled,readOnly:i.readOnly,autoFocus:i.autoFocus&&!i.open,focused:i.open?!0:void 0,format:i.fieldFormat,formatDensity:a.formatDensity,enableAccessibleFieldDOMStructure:a.enableAccessibleFieldDOMStructure,selectedSections:a.selectedSections,onSelectedSectionsChange:a.onSelectedSectionsChange,unstableFieldRef:s},n):n,[i,a,n,c,s]);return t(u)}function Bv(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:i}}=e;if(!n.isReady())return;const a=document.getSelection();if(!a)return;if(r==null){a.rangeCount>0&&n.getRoot().contains(a.getRangeAt(0).startContainer)&&a.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(Vn(document)))return;const s=new window.Range;let l;r==="all"?l=n.getRoot():i.sections[r].type==="empty"?l=n.getSectionContainer(r):l=n.getSectionContent(r),s.selectNodeContents(l),l.focus(),a.removeAllRanges(),a.addRange(s)}function n$(e){const t=lt(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:r,disabled:i,readOnly:a},stateResponse:{state:s,value:l,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:d,localizedDigits:f,timezone:p,sectionOrder:h,clearValue:g,clearActiveSection:m,setSelectedSections:y,updateSectionValue:b}}=e;return Ie(v=>{if(!i)switch(!0){case((v.ctrlKey||v.metaKey)&&String.fromCharCode(v.keyCode)==="A"&&!v.shiftKey&&!v.altKey):{v.preventDefault(),y("all");break}case v.key==="ArrowRight":{if(v.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const x=h.neighbors[u].rightIndex;x!==null&&y(x)}break}case v.key==="ArrowLeft":{if(v.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const x=h.neighbors[u].leftIndex;x!==null&&y(x)}break}case v.key==="Delete":{if(v.preventDefault(),a)break;u==null||u==="all"?g():m();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(v.key):{if(v.preventDefault(),a||c==null)break;u==="all"&&y(c);const x=s.sections[c],w=Dve(t,p,x,v.key,d,f,n.getDateFromSection(l,x),{minutesStep:r});b({section:x,newSectionValue:w,shouldGoToNextSection:!1});break}}})}function kve(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function Dve(e,t,n,r,i,a,s,l){const c=kve(r),u=r==="Home",d=r==="End",f=n.value===""||u||d,p=()=>{const g=i[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),m=v=>ID(e,v,g,a,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let b;if(f){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?b=g.minimum:b=g.maximum}else b=parseInt(Qi(n.value,a),10)+c*y;return b%y!==0&&((c<0||u)&&(b+=y-(y+b)%y),(c>0||d)&&(b-=b%y)),b>g.maximum?m(g.minimum+(b-g.maximum-1)%(g.maximum-g.minimum+1)):b<g.minimum?m(g.maximum-(g.minimum-b-1)%(g.maximum-g.minimum+1)):m(b)},h=()=>{const g=MD(e,t,n.type,n.format);if(g.length===0)return n.value;if(f)return c>0||u?g[0]:g[g.length-1];const b=((g.indexOf(n.value)+c)%g.length+g.length)%g.length;return g[b]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()}function $ve(e){const{manager:t,focused:n,setFocused:r,domGetters:i,stateResponse:a,applyCharacterEditing:s,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:d,clearValue:f,setCharacterQuery:p,setSelectedSections:h,updateValueFromValueStr:g},internalPropsWithDefaults:{disabled:m=!1,readOnly:y=!1}}=e,b=n$({manager:t,internalPropsWithDefaults:l,stateResponse:a}),v=br(),x=Ie(S=>{m||!i.isReady()||(r(!0),c==="all"?v.start(0,()=>{const P=document.getSelection().getRangeAt(0).startOffset;if(P===0){h(u.startIndex);return}let T=0,_=0;for(;_<P&&T<d.sections.length;){const k=d.sections[T];T+=1,_+=`${k.startSeparator}${k.value||k.placeholder}${k.endSeparator}`.length}h(T-1)}):n?i.getRoot().contains(S.target)||h(u.startIndex):(r(!0),h(u.startIndex)))}),w=Ie(S=>{if(!i.isReady()||c!=="all")return;const T=S.target.textContent??"";i.getRoot().innerHTML=d.sections.map(_=>`${_.startSeparator}${_.value||_.placeholder}${_.endSeparator}`).join(""),Bv({focused:n,domGetters:i,stateResponse:a}),T.length===0||T.charCodeAt(0)===10?(f(),h("all")):T.length>1?g(T):(c==="all"&&h(0),s({keyPressed:T,sectionIndex:0}))}),O=Ie(S=>{if(y||c!=="all"){S.preventDefault();return}const P=S.clipboardData.getData("text");S.preventDefault(),p(null),g(P)}),E=Ie(()=>{if(n||m||!i.isReady())return;const S=Vn(document);r(!0),i.getSectionIndexFromDOMElement(S)!=null||h(u.startIndex)}),C=Ie(()=>{setTimeout(()=>{if(!i.isReady())return;const S=Vn(document);!i.getRoot().contains(S)&&(r(!1),h(null))})});return{onKeyDown:b,onBlur:C,onFocus:E,onClick:x,onPaste:O,onInput:w,contentEditable:c==="all",tabIndex:c===0?-1:0}}function Rve(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:r,updateValueFromValueStr:i}}=e,a=Ie(l=>{i(l.target.value)});return{value:R.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(r.sections),[n,r.sections,t]),onChange:a}}function Mve(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,r=R.useCallback(i=>a=>{n||a.isDefaultPrevented()||t(i)},[n,t]);return R.useCallback(i=>({"data-sectionindex":i,onClick:r(i)}),[r])}function Ive(e){const t=lt(),n=zn(),r=dr(),{focused:i,domGetters:a,stateResponse:s,applyCharacterEditing:l,manager:{internal_fieldValueManager:c},stateResponse:{parsedSelectedSections:u,sectionsValueBoundaries:d,state:f,value:p,clearActiveSection:h,setCharacterQuery:g,setSelectedSections:m,updateSectionValue:y,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:v=!1,readOnly:x=!1}}=e,w=u==="all",O=!w&&!v&&!x,E=Ie(k=>{if(!a.isReady())return;const $=f.sections[k];a.getSectionContent(k).innerHTML=$.value||$.placeholder,Bv({focused:i,domGetters:a,stateResponse:s})}),C=Ie(k=>{if(!a.isReady())return;const $=k.target,M=$.textContent??"",j=a.getSectionIndexFromDOMElement($),W=f.sections[j];if(x){E(j);return}if(M.length===0){if(W.value===""){E(j);return}const H=k.nativeEvent.inputType;if(H==="insertParagraph"||H==="insertLineBreak"){E(j);return}E(j),h();return}l({keyPressed:M,sectionIndex:j}),E(j)}),S=Ie(k=>{k.preventDefault()}),P=Ie(k=>{if(k.preventDefault(),x||v||typeof u!="number")return;const $=f.sections[u],M=k.clipboardData.getData("text"),j=/^[a-zA-Z]+$/.test(M),W=/^[0-9]+$/.test(M),H=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(M);$.contentType==="letter"&&j||$.contentType==="digit"&&W||$.contentType==="digit-with-letter"&&H?(g(null),y({section:$,newSectionValue:M,shouldGoToNextSection:!0})):!j&&!W&&(g(null),b(M))}),T=Ie(k=>{k.preventDefault(),k.dataTransfer.dropEffect="none"}),_=R.useCallback(k=>()=>{v||m(k)},[v,m]);return R.useCallback((k,$)=>{const M=d[k.type]({currentDate:c.getDateFromSection(p,k),contentType:k.contentType,format:k.format});return{onInput:C,onPaste:P,onMouseUp:S,onDragOver:T,onFocus:_($),"aria-labelledby":`${r}-${k.type}`,"aria-readonly":x,"aria-valuenow":Ave(k,t),"aria-valuemin":M.minimum,"aria-valuemax":M.maximum,"aria-valuetext":k.value?Nve(k,t):n.empty,"aria-label":n[k.type],"aria-disabled":v,tabIndex:w||$>0?-1:0,contentEditable:!w&&!v&&!x,role:"spinbutton",id:`${r}-${k.type}`,"data-range-position":k.dateName||void 0,spellCheck:O?!1:void 0,autoCapitalize:O?"off":void 0,autoCorrect:O?"off":void 0,children:k.value||k.placeholder,inputMode:k.contentType==="letter"?"text":"numeric"}},[d,r,w,v,x,O,n,t,C,P,S,T,_,c,p])}function Nve(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}}function Ave(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const jve=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:i,internal_useOpenPickerButtonAriaLabel:a}}=e,{internalProps:s,forwardedProps:l}=$D(t,i),c=t$({manager:n,internalProps:s,skipContextFieldRefAssignment:r}),{sectionListRef:u,onBlur:d,onClick:f,onFocus:p,onInput:h,onPaste:g,onKeyDown:m,onClear:y,clearable:b}=l,{disabled:v=!1,readOnly:x=!1,autoFocus:w=!1,focused:O,unstableFieldRef:E}=c,C=R.useRef(null),S=xt(u,C),P=R.useMemo(()=>({isReady:()=>C.current!=null,getRoot:()=>C.current.getRoot(),getSectionContainer:he=>C.current.getSectionContainer(he),getSectionContent:he=>C.current.getSectionContent(he),getSectionIndexFromDOMElement:he=>C.current.getSectionIndexFromDOMElement(he)}),[C]),T=e$({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:_,error:k,parsedSelectedSections:$,sectionOrder:M,state:j,value:W,clearValue:H,setSelectedSections:X}=T,U=QD({stateResponse:T}),L=a(W),[D,B]=R.useState(!1);function z(he=0){if(v||!C.current||bT(C)!=null)return;const pe=sg(he,j.sections);B(!0),C.current.getSectionContent(pe).focus()}const F=$ve({manager:n,internalPropsWithDefaults:c,stateResponse:T,applyCharacterEditing:U,focused:D,setFocused:B,domGetters:P}),A=Rve({manager:n,stateResponse:T}),N=Mve({stateResponse:T,internalPropsWithDefaults:c}),q=Ive({manager:n,stateResponse:T,applyCharacterEditing:U,internalPropsWithDefaults:c,domGetters:P,focused:D}),Y=Ie(he=>{m==null||m(he),F.onKeyDown(he)}),G=Ie(he=>{d==null||d(he),F.onBlur(he)}),K=Ie(he=>{p==null||p(he),F.onFocus(he)}),J=Ie(he=>{he.isDefaultPrevented()||(f==null||f(he),F.onClick(he))}),Z=Ie(he=>{g==null||g(he),F.onPaste(he)}),ie=Ie(he=>{h==null||h(he),F.onInput(he)}),de=Ie((he,...pe)=>{he.preventDefault(),y==null||y(he,...pe),H(),vT(C)?X(M.startIndex):z(0)}),xe=R.useMemo(()=>j.sections.map((he,pe)=>{const Q=q(he,pe);return{container:N(pe),content:q(he,pe),before:{children:he.startSeparator},after:{children:he.endSeparator,"data-range-position":he.isEndFormatSeparator?Q["data-range-position"]:void 0}}}),[j.sections,N,q]);return R.useEffect(()=>{if(C.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
`));w&&!v&&C.current&&C.current.getSectionContent(M.startIndex).focus()},[]),Kt(()=>{if(!(!D||!C.current)){if($==="all")C.current.getRoot().focus();else if(typeof $=="number"){const he=C.current.getSectionContent($);he&&he.focus()}}},[$,D]),Kt(()=>{Bv({focused:D,domGetters:P,stateResponse:T})}),R.useImperativeHandle(E,()=>({getSections:()=>j.sections,getActiveSectionIndex:()=>bT(C),setSelectedSections:he=>{if(v||!C.current)return;const pe=sg(he,j.sections);B((pe==="all"?0:pe)!==null),X(he)},focusField:z,isFieldFocused:()=>vT(C)})),ee({},l,F,{onBlur:G,onClick:J,onFocus:K,onInput:ie,onPaste:Z,onKeyDown:Y,onClear:de},A,{error:k,clearable:!!(b&&!_&&!x&&!v),focused:O??D,sectionListRef:S,enableAccessibleFieldDOMStructure:!0,elements:xe,areAllSectionsEmpty:_,disabled:v,readOnly:x,autoFocus:w,openPickerAriaLabel:L})};function bT(e){const t=Vn(document);return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function vT(e){const t=Vn(document);return!!e.current&&e.current.getRoot().contains(t)}const Aa=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Lve=(e,t,n)=>{let r=0,i=n?1:0;const a=[];for(let s=0;s<e.length;s+=1){const l=e[s],c=Pv(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=Aa(u).length,f=u.length,p=Aa(c),h=i+(p===""?0:c.indexOf(p[0]))+l.startSeparator.length,g=h+p.length;a.push(ee({},l,{start:r,end:r+d,startInInput:h,endInInput:g})),r+=d,i+=f}return a},Fve=e=>{const t=Gn(),n=br(),r=br(),{props:i,manager:a,skipContextFieldRefAssignment:s,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:f,forwardedProps:p}=$D(i,l),h=t$({manager:a,internalProps:f,skipContextFieldRefAssignment:s}),{onFocus:g,onClick:m,onPaste:y,onBlur:b,onKeyDown:v,onClear:x,clearable:w,inputRef:O,placeholder:E}=p,{readOnly:C=!1,disabled:S=!1,autoFocus:P=!1,focused:T,unstableFieldRef:_}=h,k=R.useRef(null),$=xt(O,k),M=e$({manager:a,internalPropsWithDefaults:h,forwardedProps:p}),{activeSectionIndex:j,areAllSectionsEmpty:W,error:H,localizedDigits:X,parsedSelectedSections:U,sectionOrder:L,state:D,value:B,clearValue:z,clearActiveSection:F,setCharacterQuery:A,setSelectedSections:N,setTempAndroidValueStr:q,updateSectionValue:Y,updateValueFromValueStr:G,getSectionsFromValue:K}=M,J=QD({stateResponse:M}),Z=d(B),ie=R.useMemo(()=>Lve(D.sections,X,t),[D.sections,X,t]);function de(){const ae=k.current.selectionStart??0;let ce;ae<=ie[0].startInInput||ae>=ie[ie.length-1].endInInput?ce=1:ce=ie.findIndex(Ce=>Ce.startInInput-Ce.startSeparator.length>ae);const ue=ce===-1?ie.length-1:ce-1;N(ue)}function xe(ae=0){var ce;Vn(document)!==k.current&&((ce=k.current)==null||ce.focus(),N(ae))}const he=Ie(ae=>{g==null||g(ae);const ce=k.current;n.start(0,()=>{!ce||ce!==k.current||j==null&&(ce.value.length&&Number(ce.selectionEnd)-Number(ce.selectionStart)===ce.value.length?N("all"):de())})}),pe=Ie((ae,...ce)=>{ae.isDefaultPrevented()||(m==null||m(ae,...ce),de())}),Q=Ie(ae=>{if(y==null||y(ae),ae.preventDefault(),C||S)return;const ce=ae.clipboardData.getData("text");if(typeof U=="number"){const ue=D.sections[U],Ce=/^[a-zA-Z]+$/.test(ce),ye=/^[0-9]+$/.test(ce),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ce);if(ue.contentType==="letter"&&Ce||ue.contentType==="digit"&&ye||ue.contentType==="digit-with-letter"&&Me){A(null),Y({section:ue,newSectionValue:ce,shouldGoToNextSection:!0});return}if(Ce||ye)return}A(null),G(ce)}),oe=Ie(ae=>{b==null||b(ae),N(null)}),te=Ie(ae=>{if(C)return;const ce=ae.target.value;if(ce===""){z();return}const ue=ae.nativeEvent.data,Ce=ue&&ue.length>1,ye=Ce?ue:ce,Me=Aa(ye);if(U==="all"&&N(j),j==null||Ce){G(Ce?ue:Me);return}let Ze;if(U==="all"&&Me.length===1)Ze=Me;else{const bt=Aa(u.getV6InputValueFromSections(ie,X,t));let Ke=-1,Ne=-1;for(let nt=0;nt<bt.length;nt+=1)Ke===-1&&bt[nt]!==Me[nt]&&(Ke=nt),Ne===-1&&bt[bt.length-nt-1]!==Me[Me.length-nt-1]&&(Ne=nt);const We=ie[j];if(Ke<We.start||bt.length-Ne-1>We.end)return;const Tt=Me.length-bt.length+We.end-Aa(We.endSeparator||"").length;Ze=Me.slice(We.start+Aa(We.startSeparator||"").length,Tt)}if(Ze.length===0){Yye()&&q(ye),F();return}J({keyPressed:Ze,sectionIndex:j})}),le=Ie((ae,...ce)=>{ae.preventDefault(),x==null||x(ae,...ce),z(),wT(k)?N(L.startIndex):xe(0)}),re=n$({manager:a,internalPropsWithDefaults:h,stateResponse:M}),Te=Ie(ae=>{v==null||v(ae),re(ae)}),Se=R.useMemo(()=>E!==void 0?E:u.getV6InputValueFromSections(K(c.emptyValue),X,t),[E,u,K,c.emptyValue,X,t]),fe=R.useMemo(()=>D.tempValueStrAndroid??u.getV6InputValueFromSections(D.sections,X,t),[D.sections,u,D.tempValueStrAndroid,X,t]);R.useEffect(()=>{k.current&&k.current===Vn(document)&&N("all")},[]),Kt(()=>{function ae(){if(!k.current)return;if(U==null){k.current.scrollLeft&&(k.current.scrollLeft=0);return}if(k.current!==Vn(document))return;const ce=k.current.scrollTop;if(U==="all")k.current.select();else{const ue=ie[U],Ce=ue.type==="empty"?ue.startInInput-ue.startSeparator.length:ue.startInInput,ye=ue.type==="empty"?ue.endInInput+ue.endSeparator.length:ue.endInInput;(Ce!==k.current.selectionStart||ye!==k.current.selectionEnd)&&k.current===Vn(document)&&k.current.setSelectionRange(Ce,ye),r.start(0,()=>{k.current&&k.current===Vn(document)&&k.current.selectionStart===k.current.selectionEnd&&(k.current.selectionStart!==Ce||k.current.selectionEnd!==ye)&&ae()})}k.current.scrollTop=ce}ae()});const ge=R.useMemo(()=>j==null||D.sections[j].contentType==="letter"?"text":"numeric",[j,D.sections]),$e=!(k.current&&k.current===Vn(document))&&W;return R.useImperativeHandle(_,()=>({getSections:()=>D.sections,getActiveSectionIndex:()=>{const ae=k.current.selectionStart??0,ce=k.current.selectionEnd??0;if(ae===0&&ce===0)return null;const ue=ae<=ie[0].startInInput?1:ie.findIndex(Ce=>Ce.startInInput-Ce.startSeparator.length>ae);return ue===-1?ie.length-1:ue-1},setSelectedSections:ae=>N(ae),focusField:xe,isFieldFocused:()=>wT(k)})),ee({},p,{error:H,clearable:!!(w&&!W&&!C&&!S),onBlur:oe,onClick:pe,onFocus:he,onPaste:Q,onKeyDown:Te,onClear:le,inputRef:$,enableAccessibleFieldDOMStructure:!1,placeholder:Se,inputMode:ge,autoComplete:"off",value:$e?"":fe,onChange:te,focused:T,disabled:S,readOnly:C,autoFocus:P,openPickerAriaLabel:Z})};function wT(e){return e.current===Vn(document)}const zv=e=>{const t=AD();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?jve:Fve)(e)};function Vve(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return R.useMemo(()=>({valueType:"date",validator:Ws,internal_valueManager:mn,internal_fieldValueManager:Iv,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:zve,internal_useOpenPickerButtonAriaLabel:Bve}),[t])}function Bve(e){const t=lt(),n=zn();return R.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function zve(e){const t=lt(),n=Jc(e);return R.useMemo(()=>ee({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Jc(e){const t=lt(),n=LD();return R.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:Bd(t,e.minDate,n.minDate),maxDate:Bd(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function Wve(e={}){const{enableAccessibleFieldDOMStructure:t=!0,ampm:n}=e;return R.useMemo(()=>({valueType:"time",validator:Qc,internal_valueManager:mn,internal_fieldValueManager:Iv,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:Uve,internal_useOpenPickerButtonAriaLabel:qve(n)}),[n,t])}function qve(e){return function(n){const r=lt(),i=zn();return R.useMemo(()=>{const a=e??r.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",s=r.isValid(n)?r.format(n,a):null;return i.openTimePickerDialogue(s)},[n,i,r])}}function Uve(e){const t=lt(),n=r$(e),r=R.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return R.useMemo(()=>ee({},e,n,{format:e.format??(r?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,r,t])}function r$(e){return R.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}function Hve(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return R.useMemo(()=>({valueType:"date-time",validator:Tp,internal_valueManager:mn,internal_fieldValueManager:Iv,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:Gve,internal_useOpenPickerButtonAriaLabel:Yve}),[t])}function Yve(e){const t=lt(),n=zn();return R.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function Gve(e){const t=lt(),n=o$(e),r=R.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return R.useMemo(()=>ee({},e,n,{format:e.format??(r?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,r,t])}function o$(e){const t=lt(),n=LD();return R.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:Bd(t,e.minDateTime??e.minDate,n.minDate),maxDate:Bd(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}const Kve=e=>{const t=Vve(e);return zv({manager:t,props:e})};function Wv(e){const{ownerState:t}=on(),n=Gn();return R.useMemo(()=>ee({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}function Xve(e){return Pe("MuiPickersTextField",e)}ke("MuiPickersTextField",["root","focused","disabled","error","required"]);function Zve(e){return Pe("MuiPickersInputBase",e)}const Wa=ke("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function Qve(e){return Pe("MuiPickersSectionList",e)}const sl=ke("MuiPickersSectionList",["root","section","sectionContent"]),Jve=["slots","slotProps","elements","sectionListRef","classes"],i$=ne("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),a$=ne("span",{name:"MuiPickersSectionList",slot:"Section"})({}),s$=ne("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),l$=ne("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),e0e=e=>Ee({root:["root"],section:["section"],sectionContent:["sectionContent"]},Qve,e);function c$(e){const{slots:t,slotProps:n,element:r,classes:i}=e,{ownerState:a}=on(),s=(t==null?void 0:t.section)??a$,l=st({elementType:s,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:i.section,ownerState:a}),c=(t==null?void 0:t.sectionContent)??l$,u=st({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:a}),d=(t==null?void 0:t.sectionSeparator)??s$,f=st({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:ee({},a,{separatorPosition:"before"})}),p=st({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:ee({},a,{separatorPosition:"after"})});return I.jsxs(s,ee({},l,{children:[I.jsx(d,ee({},f)),I.jsx(c,ee({},u)),I.jsx(d,ee({},p))]}))}process.env.NODE_ENV!=="production"&&(c$.propTypes={classes:o.object.isRequired,element:o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired}).isRequired,slotProps:o.object,slots:o.object});const qv=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersSectionList"}),{slots:i,slotProps:a,elements:s,sectionListRef:l,classes:c}=r,u=Ge(r,Jve),d=e0e(c),{ownerState:f}=on(),p=R.useRef(null),h=xt(n,p),g=b=>{if(!p.current)throw new Error(`MUI X: Cannot call sectionListRef.${b} before the mount of the component.`);return p.current};R.useImperativeHandle(l,()=>({getRoot(){return g("getRoot")},getSectionContainer(b){return g("getSectionContainer").querySelector(`.${sl.section}[data-sectionindex="${b}"]`)},getSectionContent(b){return g("getSectionContent").querySelector(`.${sl.section}[data-sectionindex="${b}"] .${sl.sectionContent}`)},getSectionIndexFromDOMElement(b){const v=g("getSectionIndexFromDOMElement");if(b==null||!v.contains(b))return null;let x=null;return b.classList.contains(sl.section)?x=b:b.classList.contains(sl.sectionContent)&&(x=b.parentElement),x==null?null:Number(x.dataset.sectionindex)}}));const m=(i==null?void 0:i.root)??i$,y=st({elementType:m,externalSlotProps:a==null?void 0:a.root,externalForwardedProps:u,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:d.root,ownerState:f});return I.jsx(m,ee({},y,{children:y.contentEditable?s.map(({content:b,before:v,after:x})=>`${v.children}${b.children}${x.children}`).join(""):I.jsx(R.Fragment,{children:s.map((b,v)=>I.jsx(c$,{slots:i,slotProps:a,element:b,classes:d},v))})}))});process.env.NODE_ENV!=="production"&&(qv.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(qv.propTypes={classes:o.object,contentEditable:o.bool.isRequired,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object});const Uv=R.createContext(null);process.env.NODE_ENV!=="production"&&(Uv.displayName="PickerTextFieldOwnerStateContext");const Sp=()=>{const e=R.useContext(Uv);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
`));return e},t0e=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],n0e=e=>Math.round(e*1e5)/1e5,Ep=ne("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>ee({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${n0e(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),Hv=ne(i$,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{textAlign:"right /*! @noflip */"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),r0e=ne(a$,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),o0e=ne(l$,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),i0e=ne(s$,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),a0e=ne("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(ee({},wC)),s0e=ne("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),l0e=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldReadOnly:i,hasFieldError:a,inputSize:s,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,f={root:["root",n&&!r&&"focused",r&&"disabled",i&&"readOnly",a&&"error",l&&"fullWidth",`color${ve(c)}`,s==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return Ee(f,Zve,e)};function xT(e,t,n,r){var i;if(e.content.id){const a=(i=t.current)==null?void 0:i.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${r}"]`);if(a)return Array.from(a).reduce((s,l)=>s+l.offsetWidth,0)}return 0}function c0e(e,t){var i,a,s,l,c;let n=0;if(((i=t.current)==null?void 0:i.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=xT(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=xT(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((s=(a=t.current)==null?void 0:a.querySelector('[data-sectionindex="0"]'))==null?void 0:s.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const eu=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersInputBase"}),{elements:i,areAllSectionsEmpty:a,value:s,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:f,slots:p,slotProps:h,contentEditable:g,tabIndex:m,onInput:y,onPaste:b,onKeyDown:v,name:x,readOnly:w,inputProps:O,inputRef:E,sectionListRef:C,onFocus:S,onBlur:P,classes:T,ownerState:_}=r,k=Ge(r,t0e),$=Sp(),M=R.useRef(null),j=R.useRef(null),W=R.useRef([]),H=xt(n,M),X=xt(O==null?void 0:O.ref,E),U=Pr();if(!U)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const L=_??$,D=K=>{var J;(J=U.onFocus)==null||J.call(U,K),S==null||S(K)},B=K=>{D(K)},z=K=>{var J,Z;if(v==null||v(K),K.key==="Enter"&&!K.defaultMuiPrevented){if((J=M.current)!=null&&J.dataset.multiInput)return;const ie=(Z=M.current)==null?void 0:Z.closest("form"),de=ie==null?void 0:ie.querySelector('[type="submit"]');if(!ie||!de)return;K.preventDefault(),ie.requestSubmit(de)}},F=K=>{var J;(J=U.onBlur)==null||J.call(U,K),P==null||P(K)};R.useEffect(()=>{U&&U.setAdornedStart(!!d)},[U,d]),R.useEffect(()=>{U&&(a?U.onEmpty():U.onFilled())},[U,a]);const A=l0e(T,L),N=(p==null?void 0:p.root)||Ep,q=st({elementType:N,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:k,additionalProps:{"aria-invalid":U.error,ref:H},className:A.root,ownerState:L}),Y=(p==null?void 0:p.input)||Hv,G=i.some(K=>K.content["data-range-position"]!==void 0);return R.useEffect(()=>{if(!G||!L.isPickerOpen)return;const{activeBarWidth:K,sectionOffsets:J}=c0e(i,M);W.current=[J[0],J[1]],j.current&&(j.current.style.width=`${K}px`)},[i,G,L.isPickerOpen]),I.jsxs(N,ee({},q,{children:[d,I.jsx(qv,{sectionListRef:C,elements:i,contentEditable:g,tabIndex:m,className:A.sectionsContainer,onFocus:D,onBlur:F,onInput:y,onPaste:b,onKeyDown:z,slots:{root:Y,section:r0e,sectionContent:o0e,sectionSeparator:i0e},slotProps:{root:ee({},h==null?void 0:h.input,{ownerState:L}),sectionContent:{className:Wa.sectionContent},sectionSeparator:({separatorPosition:K})=>({className:K==="before"?Wa.sectionBefore:Wa.sectionAfter})}}),u,f?f(ee({},U)):null,I.jsx(a0e,ee({name:x,className:A.input,value:s,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:U.required,disabled:U.disabled,onFocus:B},O,{ref:X})),G&&I.jsx(s0e,{className:A.activeBar,ref:j,ownerState:{sectionOffsets:W.current}})]}))});process.env.NODE_ENV!=="production"&&(eu.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(eu.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:Rt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});function u0e(e){return Pe("MuiPickersOutlinedInput",e)}const Kr=ee({},Wa,ke("MuiPickersOutlinedInput",["root","notchedOutline","input"])),d0e=["children","className","label","notched","shrink"],f0e=ne("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),OT=ne("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),p0e=ne("legend",{shouldForwardProp:e=>rr(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},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:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function h0e(e){const{className:t,label:n,notched:r}=e,i=Ge(e,d0e),a=Sp();return I.jsx(f0e,ee({"aria-hidden":!0,className:t},i,{ownerState:a,children:I.jsx(p0e,{ownerState:a,notched:r,children:n?I.jsx(OT,{children:n}):I.jsx(OT,{className:"notranslate",children:""})})}))}const m0e=["label","autoFocus","ownerState","classes","notched"],g0e=ne(Ep,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Kr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Kr.focused} .${Kr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Kr.disabled}`]:{[`& .${Kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Kr.error} .${Kr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${Kr.focused}:not(.${Kr.error}) .${Kr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),y0e=ne(Hv,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),b0e=e=>{const n=Ee({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},u0e,e);return ee({},e,n)},Cp=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersOutlinedInput"}),{label:i,classes:a,notched:s}=r,l=Ge(r,m0e),c=Pr(),u=b0e(a);return I.jsx(eu,ee({slots:{root:g0e,input:y0e},renderSuffix:d=>I.jsx(h0e,{shrink:!!(s||d.adornedStart||d.focused||d.filled),notched:!!(s||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:i!=null&&i!==""&&(c!=null&&c.required)?I.jsxs(R.Fragment,{children:[i," ","*"]}):i})},l,{label:i,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(Cp.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Cp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:Rt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,notched:o.bool,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});Cp.muiName="Input";function v0e(e){return Pe("MuiPickersFilledInput",e)}const Ti=ee({},Wa,ke("MuiPickersFilledInput",["root","underline","input"])),w0e=["label","autoFocus","disableUnderline","hiddenLabel","classes"],x0e=ne(Ep,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>rr(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ti.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ti.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[...Object.keys((e.vars??e).palette).filter(s=>(e.vars??e).palette[s].main).map(s=>{var l;return{props:{inputColor:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[s])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},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"},[`&.${Ti.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ti.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ti.disabled}, .${Ti.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ti.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),O0e=ne(Hv,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>rr(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),T0e=(e,t)=>{const{inputHasUnderline:n}=t,i=Ee({root:["root",n&&"underline"],input:["input"]},v0e,e);return ee({},e,i)},Pp=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersFilledInput"}),{label:i,disableUnderline:a=!1,hiddenLabel:s=!1,classes:l}=r,c=Ge(r,w0e),u=Sp(),d=ee({},u,{inputHasUnderline:!a}),f=T0e(l,d);return I.jsx(eu,ee({slots:{root:x0e,input:O0e},slotProps:{root:{disableUnderline:a},input:{hiddenLabel:s}}},c,{label:i,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Pp.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Pp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,disableUnderline:o.bool,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputProps:o.object,inputRef:Rt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});Pp.muiName="Input";function S0e(e){return Pe("MuiPickersFilledInput",e)}const ll=ee({},Wa,ke("MuiPickersInput",["root","underline","input"])),E0e=["label","autoFocus","disableUnderline","ownerState","classes"],C0e=ne(Ep,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>rr(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{inputColor:r,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",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"},[`&.${ll.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ll.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ll.disabled}, .${ll.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ll.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),P0e=(e,t)=>{const{inputHasUnderline:n}=t,i=Ee({root:["root",!n&&"underline"],input:["input"]},S0e,e);return ee({},e,i)},_p=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersInput"}),{label:i,disableUnderline:a=!1,classes:s}=r,l=Ge(r,E0e),c=Sp(),u=ee({},c,{inputHasUnderline:!a}),d=P0e(s,u);return I.jsx(eu,ee({slots:{root:C0e},slotProps:{root:{disableUnderline:a}}},l,{ownerState:u,label:i,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(_p.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(_p.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,disableUnderline:o.bool,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:Rt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});_p.muiName="Input";const _0e=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],k0e={standard:_p,filled:Pp,outlined:Cp},D0e=ne(hi,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),$0e=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:i}=t;return Ee({root:["root",n&&!r&&"focused",r&&"disabled",i&&"required"]},Xve,e)},kp=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersTextField"}),{onFocus:i,onBlur:a,className:s,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:f="outlined",required:p=!1,hiddenLabel:h=!1,InputProps:g,inputProps:m,inputRef:y,sectionListRef:b,elements:v,areAllSectionsEmpty:x,onClick:w,onKeyDown:O,onKeyUp:E,onPaste:C,onInput:S,endAdornment:P,startAdornment:T,tabIndex:_,contentEditable:k,focused:$,value:M,onChange:j,fullWidth:W,id:H,name:X,helperText:U,FormHelperTextProps:L,label:D,InputLabelProps:B,"data-active-range-position":z}=r,F=Ge(r,_0e),A=R.useRef(null),N=xt(n,A),q=dr(H),Y=U&&q?`${q}-helper-text`:void 0,G=D&&q?`${q}-label`:void 0,K=Wv({disabled:r.disabled,required:r.required,readOnly:g==null?void 0:g.readOnly}),J=R.useMemo(()=>ee({},K,{isFieldValueEmpty:x,isFieldFocused:$??!1,hasFieldError:d??!1,inputSize:r.size??"medium",inputColor:c??"primary",isInputInFullWidth:W??!1,hasStartAdornment:!!(T??(g==null?void 0:g.startAdornment)),hasEndAdornment:!!(P??(g==null?void 0:g.endAdornment)),inputHasLabel:!!D}),[K,x,$,d,r.size,c,W,T,P,g==null?void 0:g.startAdornment,g==null?void 0:g.endAdornment,D]),Z=$0e(l,J),ie=k0e[f],de={};return f==="outlined"?(B&&typeof B.shrink<"u"&&(de.notched=B.shrink),de.label=D):f==="filled"&&(de.hiddenLabel=h),I.jsx(Uv.Provider,{value:J,children:I.jsxs(D0e,ee({className:we(Z.root,s),ref:N,focused:$,disabled:u,variant:f,error:d,color:c,fullWidth:W,required:p,ownerState:J},F,{children:[D!=null&&D!==""&&I.jsx(_c,ee({htmlFor:q,id:G},B,{children:D})),I.jsx(ie,ee({elements:v,areAllSectionsEmpty:x,onClick:w,onKeyDown:O,onKeyUp:E,onInput:S,onPaste:C,onFocus:i,onBlur:a,endAdornment:P,startAdornment:T,tabIndex:_,contentEditable:k,value:M,onChange:j,id:q,fullWidth:W,inputProps:m,inputRef:y,sectionListRef:b,label:D,name:X,role:"group","aria-labelledby":G,"aria-describedby":Y,"aria-live":Y?"polite":void 0,"data-active-range-position":z},de,g)),U&&I.jsx(sn,ee({id:Y},L,{children:U}))]}))})});process.env.NODE_ENV!=="production"&&(kp.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(kp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,contentEditable:o.bool.isRequired,disabled:o.bool.isRequired,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,error:o.bool.isRequired,focused:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Rt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onBlur:o.func.isRequired,onChange:o.func.isRequired,onClick:o.func.isRequired,onFocus:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,readOnly:o.bool,required:o.bool,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),size:o.oneOf(["medium","small"]),startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired,variant:o.oneOf(["filled","outlined","standard"])});const R0e=["enableAccessibleFieldDOMStructure"],M0e=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],I0e=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],N0e=["ownerState"],A0e=["ownerState"],j0e=["ownerState"],L0e=["ownerState"],F0e=["InputProps","inputProps"],V0e=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ge(e,R0e);if(t){const{InputProps:y,readOnly:b,onClear:v,clearable:x,clearButtonPosition:w,openPickerButtonPosition:O,openPickerAriaLabel:E}=n,C=Ge(n,M0e);return{clearable:x,onClear:v,clearButtonPosition:w,openPickerButtonPosition:O,openPickerAriaLabel:E,textFieldProps:ee({},C,{InputProps:ee({},y??{},{readOnly:b})})}}const{onPaste:r,onKeyDown:i,inputMode:a,readOnly:s,InputProps:l,inputProps:c,inputRef:u,onClear:d,clearable:f,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:g}=n,m=Ge(n,I0e);return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:g,textFieldProps:ee({},m,{InputProps:ee({},l??{},{readOnly:s}),inputProps:ee({},c??{},{inputMode:a,onPaste:r,onKeyDown:i,ref:u})})}},Dp=R.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Dp.displayName="PickerFieldUIContext");function Yv(e){var U,L;const{slots:t,slotProps:n,fieldResponse:r,defaultOpenPickerIcon:i}=e,a=zn(),s=_v(),l=R.useContext(Dp),{textFieldProps:c,onClear:u,clearable:d,openPickerAriaLabel:f,clearButtonPosition:p="end",openPickerButtonPosition:h="end"}=V0e(r),g=Wv(c),m=Ie(D=>{D.preventDefault(),s==null||s.setOpen(B=>!B)}),y=s?s.triggerStatus:"hidden",b=d?p:null,v=y!=="hidden"?h:null,x=(t==null?void 0:t.textField)??l.slots.textField??(r.enableAccessibleFieldDOMStructure===!1?Li:kp),w=(t==null?void 0:t.inputAdornment)??l.slots.inputAdornment??uy,O=st({elementType:w,externalSlotProps:rd(l.slotProps.inputAdornment,n==null?void 0:n.inputAdornment),additionalProps:{position:"start"},ownerState:ee({},g,{position:"start"})}),E=Ge(O,N0e),C=st({elementType:w,externalSlotProps:n==null?void 0:n.inputAdornment,additionalProps:{position:"end"},ownerState:ee({},g,{position:"end"})}),S=Ge(C,A0e),P=l.slots.openPickerButton??Gt,T=st({elementType:P,externalSlotProps:l.slotProps.openPickerButton,additionalProps:{disabled:y==="disabled",onClick:m,"aria-label":f,edge:c.variant!=="standard"?v:!1},ownerState:g}),_=Ge(T,j0e),k=l.slots.openPickerIcon??i,$=st({elementType:k,externalSlotProps:l.slotProps.openPickerIcon,ownerState:g}),M=(t==null?void 0:t.clearButton)??l.slots.clearButton??Gt,j=st({elementType:M,externalSlotProps:rd(l.slotProps.clearButton,n==null?void 0:n.clearButton),className:"clearButton",additionalProps:{title:a.fieldClearLabel,tabIndex:-1,onClick:u,disabled:r.disabled||r.readOnly,edge:c.variant!=="standard"&&b!==v?b:!1},ownerState:g}),W=Ge(j,L0e),H=(t==null?void 0:t.clearIcon)??l.slots.clearIcon??cbe,X=st({elementType:H,externalSlotProps:rd(l.slotProps.clearIcon,n==null?void 0:n.clearIcon),additionalProps:{fontSize:"small"},ownerState:g});return c.ref=xt(c.ref,s==null?void 0:s.rootRef),c.InputProps||(c.InputProps={}),s&&(c.InputProps.ref=s.triggerRef),!((U=c.InputProps)!=null&&U.startAdornment)&&(b==="start"||v==="start")&&(c.InputProps.startAdornment=I.jsxs(w,ee({},E,{children:[v==="start"&&I.jsx(P,ee({},_,{children:I.jsx(k,ee({},$))})),b==="start"&&I.jsx(M,ee({},W,{children:I.jsx(H,ee({},X))}))]}))),!((L=c.InputProps)!=null&&L.endAdornment)&&(b==="end"||v==="end")&&(c.InputProps.endAdornment=I.jsxs(w,ee({},S,{children:[b==="end"&&I.jsx(M,ee({},W,{children:I.jsx(H,ee({},X))})),v==="end"&&I.jsx(P,ee({},_,{children:I.jsx(k,ee({},$))}))]}))),b!=null&&(c.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(c.sx)?c.sx:[c.sx]]),I.jsx(x,ee({},c))}function rd(e,t){return e?t?n=>ee({},So(t,n),So(e,n)):e:t}function Gv(e){const{ref:t,externalForwardedProps:n,slotProps:r}=e,i=R.useContext(Dp),a=_v(),s=Wv(n),{InputProps:l,inputProps:c}=n,u=Ge(n,F0e),d=st({elementType:kp,externalSlotProps:rd(i.slotProps.textField,r==null?void 0:r.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:a==null?void 0:a.rootSx,label:a==null?void 0:a.label,name:a==null?void 0:a.name,className:a==null?void 0:a.rootClassName,inputRef:i.inputRef},ownerState:s});return d.inputProps=ee({},c,d.inputProps),d.InputProps=ee({},l,d.InputProps),d}function u$(e){const{slots:t={},slotProps:n={},inputRef:r,children:i}=e,a=R.useMemo(()=>({inputRef:r,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[r,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return I.jsx(Dp.Provider,{value:a,children:i})}const B0e=["slots","slotProps"],$p=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDateField"}),{slots:i,slotProps:a}=r,s=Ge(r,B0e),l=Gv({slotProps:a,ref:n,externalForwardedProps:s}),c=Kve(l);return I.jsx(Yv,{slots:i,slotProps:a,fieldResponse:c,defaultOpenPickerIcon:FD})});process.env.NODE_ENV!=="production"&&($p.displayName="DateField");process.env.NODE_ENV!=="production"&&($p.propTypes={autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Rt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxDate:o.object,minDate:o.object,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const z0e=e=>{const t=Wve(e);return zv({manager:t,props:e})},W0e=["slots","slotProps","InputProps","inputProps"],Rp=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTimeField"}),{slots:i,slotProps:a}=r,s=Ge(r,W0e),l=Gv({slotProps:a,ref:n,externalForwardedProps:s}),c=z0e(l);return I.jsx(Yv,{slots:i,slotProps:a,fieldResponse:c,defaultOpenPickerIcon:abe})});process.env.NODE_ENV!=="production"&&(Rp.displayName="TimeField");process.env.NODE_ENV!=="production"&&(Rp.propTypes={ampm:o.bool,autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Rt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableTime:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const q0e=e=>{const t=Hve(e);return zv({manager:t,props:e})},U0e=["slots","slotProps"],Mp=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDateTimeField"}),{slots:i,slotProps:a}=r,s=Ge(r,U0e),l=Gv({slotProps:a,ref:n,externalForwardedProps:s}),c=q0e(l);return I.jsx(Yv,{slots:i,slotProps:a,fieldResponse:c,defaultOpenPickerIcon:FD})});process.env.NODE_ENV!=="production"&&(Mp.displayName="DateTimeField");process.env.NODE_ENV!=="production"&&(Mp.propTypes={ampm:o.bool,autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Rt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const d$=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:l})=>{const c=lt();return R.useCallback(u=>Ws({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s}})!==null,[c,e,t,n,r,i,a,s,l])},H0e=(e,t)=>(n,r)=>{switch(r.type){case"setVisibleDate":return ee({},n,{slideDirection:r.direction,currentMonth:r.month,isMonthSwitchingAnimating:!t.isSameMonth(r.month,n.currentMonth)&&!e&&!r.skipAnimation,focusedDay:r.focusedDay});case"changeMonthTimezone":{const i=r.newTimezone;if(t.getTimezone(n.currentMonth)===i)return n;let a=t.setTimezone(n.currentMonth,i);return t.getMonth(a)!==t.getMonth(n.currentMonth)&&(a=t.setMonth(a,t.getMonth(n.currentMonth))),ee({},n,{currentMonth:a})}case"finishMonthSwitchingAnimation":return ee({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},Y0e=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:i,maxDate:a,minDate:s,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:f,getCurrentMonthFromVisibleDate:p}=e,h=lt(),g=R.useRef(H0e(!!u,h)).current,m=R.useMemo(()=>mn.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:Qr.day}),[n,f]),[y,b]=R.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:h.startOfMonth(m),slideDirection:"left"}),v=d$({shouldDisableDate:d,minDate:s,maxDate:a,disableFuture:r,disablePast:i,timezone:f});R.useEffect(()=>{b({type:"changeMonthTimezone",newTimezone:h.getTimezone(m)})},[m,h]);const x=Ie(({target:O,reason:E})=>{if(E==="cell-interaction"&&y.focusedDay!=null&&h.isSameDay(O,y.focusedDay))return;const C=E==="cell-interaction";let S,P;if(E==="cell-interaction")S=p(O,y.currentMonth),P=O;else if(S=h.isSameMonth(O,y.currentMonth)?y.currentMonth:h.startOfMonth(O),P=O,v(P)){const k=h.startOfMonth(O),$=h.endOfMonth(O);P=ec({adapter:h,date:P,minDate:h.isBefore(s,k)?k:s,maxDate:h.isAfter(a,$)?$:a,disablePast:i,disableFuture:r,isDateDisabled:v,timezone:f})}const T=!h.isSameMonth(y.currentMonth,S),_=!h.isSameYear(y.currentMonth,S);T&&(l==null||l(S)),_&&(c==null||c(h.startOfYear(S))),b({type:"setVisibleDate",month:S,direction:h.isAfterDay(S,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&P!=null&&h.isSameDay(P,y.focusedDay)?y.focusedDay:P,skipAnimation:C})}),w=R.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:m,calendarState:y,setVisibleDate:x,isDateDisabled:v,onMonthSwitchingAnimationEnd:w}},G0e=e=>Pe("MuiPickersFadeTransitionGroup",e);ke("MuiPickersFadeTransitionGroup",["root"]);const K0e=["children"],X0e=e=>Ee({root:["root"]},G0e,e),Z0e=ne(bc,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function f$(e){const t=ft({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:r,transKey:i,classes:a}=t,{children:s}=t,l=Ge(t,K0e),c=X0e(a),u=ao();return r?s:I.jsx(Z0e,{className:we(c.root,n),ownerState:l,children:I.jsx(ci,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:s},i)})}const Q0e=e=>Pe("MuiPickersSlideTransition",e),Mr=ke("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),J0e=["children","className","reduceAnimations","slideDirection","transKey","classes"],e1e=(e,t)=>{const{slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ee(r,Q0e,e)},t1e=ne(bc,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Mr["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Mr["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Mr.slideEnterActive}`]:t.slideEnterActive},{[`.${Mr.slideExit}`]:t.slideExit},{[`.${Mr["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Mr["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Mr["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Mr["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Mr.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Mr.slideExit}`]:{transform:"translate(0%)"},[`& .${Mr["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Mr["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function n1e(e){const t=ft({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,slideDirection:a,transKey:s,classes:l}=t,c=Ge(t,J0e),{ownerState:u}=on(),d=ee({},u,{slideDirection:a}),f=e1e(l,d),p=ao();if(i)return I.jsx("div",{className:we(f.root,r),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return I.jsx(t1e,{className:we(f.root,r),childFactory:g=>R.cloneElement(g,{classNames:h}),role:"presentation",ownerState:d,children:I.jsx(Wg,ee({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),s)})}const r1e=e=>Pe("MuiDayCalendar",e);ke("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const o1e=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],i1e=["ownerState"],a1e=e=>Ee({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},r1e,e),p$=(rc+xp*2)*6,s1e=ne("div",{name:"MuiDayCalendar",slot:"Root"})({}),l1e=ne("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),c1e=ne(et,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),u1e=ne(et,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),d1e=ne(et,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>ee({},e.typography.caption,{width:rc,height:rc,padding:0,margin:`0 ${xp}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),f1e=ne("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:p$}),p1e=ne(n1e,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:p$}),h1e=ne("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),m1e=ne("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${xp}px 0`,display:"flex",justifyContent:"center"});function g1e(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:i,isDateDisabled:a,currentMonthNumber:s,isViewFocused:l}=e,c=Ge(e,o1e);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:g,timezone:m}=t,y=lt(),b=aa(m),v=r!=null&&y.isSameDay(n,r),x=l&&v,w=i.some(M=>y.isSameDay(M,n)),O=y.isSameDay(n,b),E=R.useMemo(()=>u||a(n),[u,a,n]),C=R.useMemo(()=>y.getMonth(n)!==s,[y,n,s]),S=GD({day:n,selected:w,disabled:E,today:O,outsideCurrentMonth:C,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),P=(h==null?void 0:h.day)??ZD,T=st({elementType:P,externalSlotProps:g==null?void 0:g.day,additionalProps:ee({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:ee({},S,{day:n,isDayDisabled:E,isDaySelected:w})}),_=Ge(T,i1e),k=R.useMemo(()=>{const M=y.startOfMonth(y.setMonth(n,s));return p?y.isSameDay(n,y.startOfWeek(M)):y.isSameDay(n,M)},[s,n,p,y]),$=R.useMemo(()=>{const M=y.endOfMonth(y.setMonth(n,s));return p?y.isSameDay(n,y.endOfWeek(M)):y.isSameDay(n,M)},[s,n,p,y]);return I.jsx(P,ee({},_,{day:n,disabled:E,autoFocus:!C&&x,today:O,outsideCurrentMonth:C,isFirstVisibleCell:k,isLastVisibleCell:$,selected:w,tabIndex:v?0:-1,"aria-selected":w,"aria-current":O?"date":void 0}))}function y1e(e){const t=ft({props:e,name:"MuiDayCalendar"}),n=lt(),{onFocusedDayChange:r,className:i,classes:a,currentMonth:s,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:h,renderLoading:g=()=>I.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:y,disablePast:b,disableFuture:v,minDate:x,maxDate:w,shouldDisableDate:O,shouldDisableMonth:E,shouldDisableYear:C,dayOfWeekFormatter:S=J=>n.format(J,"weekdayShort").charAt(0).toUpperCase(),hasFocus:P,onFocusedViewChange:T,gridLabelId:_,displayWeekNumber:k,fixedWeekNumber:$,timezone:M}=t,j=aa(M),W=a1e(a),H=Gn(),X=d$({shouldDisableDate:O,shouldDisableMonth:E,shouldDisableYear:C,minDate:x,maxDate:w,disablePast:b,disableFuture:v,timezone:M}),U=zn(),L=Ie(J=>{p||d(J)}),D=J=>{X(J)||(r(J),T==null||T(!0))},B=Ie((J,Z)=>{switch(J.key){case"ArrowUp":D(n.addDays(Z,-7)),J.preventDefault();break;case"ArrowDown":D(n.addDays(Z,7)),J.preventDefault();break;case"ArrowLeft":{const ie=n.addDays(Z,H?1:-1),de=n.addMonths(Z,H?1:-1),xe=ec({adapter:n,date:ie,minDate:H?ie:n.startOfMonth(de),maxDate:H?n.endOfMonth(de):ie,isDateDisabled:X,timezone:M});D(xe||ie),J.preventDefault();break}case"ArrowRight":{const ie=n.addDays(Z,H?-1:1),de=n.addMonths(Z,H?-1:1),xe=ec({adapter:n,date:ie,minDate:H?n.startOfMonth(de):ie,maxDate:H?ie:n.endOfMonth(de),isDateDisabled:X,timezone:M});D(xe||ie),J.preventDefault();break}case"Home":D(n.startOfWeek(Z)),J.preventDefault();break;case"End":D(n.endOfWeek(Z)),J.preventDefault();break;case"PageUp":D(n.addMonths(Z,1)),J.preventDefault();break;case"PageDown":D(n.addMonths(Z,-1)),J.preventDefault();break}}),z=Ie((J,Z)=>D(Z)),F=Ie((J,Z)=>{c!=null&&n.isSameDay(c,Z)&&(T==null||T(!1))}),A=n.getMonth(s),N=n.getYear(s),q=R.useMemo(()=>l.filter(J=>!!J).map(J=>n.startOfDay(J)),[n,l]),Y=`${N}-${A}`,G=R.useMemo(()=>R.createRef(),[Y]),K=R.useMemo(()=>{const J=n.getWeekArray(s);let Z=n.addMonths(s,1);for(;$&&J.length<$;){const ie=n.getWeekArray(Z),de=n.isSameDay(J[J.length-1][0],ie[0][0]);ie.slice(de?1:0).forEach(xe=>{J.length<$&&J.push(xe)}),Z=n.addMonths(Z,1)}return J},[s,$,n]);return I.jsxs(s1e,{role:"grid","aria-labelledby":_,className:W.root,children:[I.jsxs(l1e,{role:"row",className:W.header,children:[k&&I.jsx(u1e,{variant:"caption",role:"columnheader","aria-label":U.calendarWeekNumberHeaderLabel,className:W.weekNumberLabel,children:U.calendarWeekNumberHeaderText}),Lye(n,j).map((J,Z)=>I.jsx(c1e,{variant:"caption",role:"columnheader","aria-label":n.format(J,"weekday"),className:W.weekDayLabel,children:S(J)},Z.toString()))]}),u?I.jsx(f1e,{className:W.loadingContainer,children:g()}):I.jsx(p1e,ee({transKey:Y,onExited:f,reduceAnimations:h,slideDirection:m,className:we(i,W.slideTransition)},y,{nodeRef:G,children:I.jsx(h1e,{ref:G,role:"rowgroup",className:W.monthContainer,children:K.map((J,Z)=>I.jsxs(m1e,{role:"row",className:W.weekContainer,"aria-rowindex":Z+1,children:[k&&I.jsx(d1e,{className:W.weekNumber,role:"rowheader","aria-label":U.calendarWeekNumberAriaLabelText(n.getWeekNumber(J[0])),children:U.calendarWeekNumberText(n.getWeekNumber(J[0]))}),J.map((ie,de)=>I.jsx(g1e,{parentProps:t,day:ie,selectedDays:q,isViewFocused:P,focusedDay:c,onKeyDown:B,onFocus:z,onBlur:F,onDaySelect:L,isDateDisabled:X,currentMonthNumber:A,"aria-colindex":de+1},ie.toString()))]},`week-${J[0]}`))})}))]})}function h$(e){return Pe("MuiMonthCalendar",e)}const Au=ke("MuiMonthCalendar",["root","button","disabled","selected"]),b1e=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],v1e=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return Ee(n,h$,e)},w1e=ne("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Au.disabled}`]:t.disabled},{[`&.${Au.selected}`]:t.selected}]})(({theme:e})=>ee({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Au.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Au.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),m$=R.memo(function(t){const{autoFocus:n,classes:r,disabled:i,selected:a,value:s,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Ge(t,b1e),g=R.useRef(null),{ownerState:m}=on(),y=ee({},m,{isMonthDisabled:i,isMonthSelected:a}),b=v1e(r,y);Kt(()=>{var w;n&&((w=g.current)==null||w.focus())},[n]);const v=(f==null?void 0:f.monthButton)??w1e,x=st({elementType:v,externalSlotProps:p==null?void 0:p.monthButton,externalForwardedProps:h,additionalProps:{disabled:i,ref:g,type:"button",role:"radio","aria-checked":a,onClick:w=>l(w,s),onKeyDown:w=>c(w,s),onFocus:w=>u(w,s),onBlur:w=>d(w,s)},ownerState:y,className:b.button});return I.jsx(v,ee({},x))});process.env.NODE_ENV!=="production"&&(m$.displayName="MonthCalendarButton");const x1e=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],O1e=e=>Ee({root:["root"]},h$,e);function T1e(e,t){const n=ft({props:e,name:t}),r=Jc(n);return ee({},n,r,{monthsPerRow:n.monthsPerRow??3})}const S1e=ne("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>rr(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:us,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),Kv=R.forwardRef(function(t,n){const r=T1e(t,"MuiMonthCalendar"),{autoFocus:i,className:a,classes:s,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:f,disablePast:p,maxDate:h,minDate:g,onChange:m,shouldDisableMonth:y,readOnly:b,onMonthFocus:v,hasFocus:x,onFocusedViewChange:w,monthsPerRow:O,timezone:E,gridLabelId:C,slots:S,slotProps:P}=r,T=Ge(r,x1e),{value:_,handleValueChange:k,timezone:$}=vi({name:"MonthCalendar",timezone:E,value:l,defaultValue:c,referenceDate:u,onChange:m,valueManager:mn}),M=aa($),j=Gn(),W=lt(),{ownerState:H}=on(),X=R.useMemo(()=>mn.getInitialReferenceValue({value:_,adapter:W,props:r,timezone:$,referenceDate:u,granularity:Qr.month}),[]),U=O1e(s),L=R.useMemo(()=>W.getMonth(M),[W,M]),D=R.useMemo(()=>_!=null?W.getMonth(_):null,[_,W]),[B,z]=R.useState(()=>D||W.getMonth(X)),[F,A]=Yn({name:"MonthCalendar",state:"hasFocus",controlled:x,default:i??!1}),N=Ie(ie=>{A(ie),w&&w(ie)}),q=R.useCallback(ie=>{const de=W.startOfMonth(p&&W.isAfter(M,g)?M:g),xe=W.startOfMonth(f&&W.isBefore(M,h)?M:h),he=W.startOfMonth(ie);return W.isBefore(he,de)||W.isAfter(he,xe)?!0:y?y(he):!1},[f,p,h,g,M,y,W]),Y=Ie((ie,de)=>{if(b)return;const xe=W.setMonth(_??X,de);k(xe)}),G=Ie(ie=>{q(W.setMonth(_??X,ie))||(z(ie),N(!0),v&&v(ie))});R.useEffect(()=>{z(ie=>D!==null&&ie!==D?D:ie)},[D]);const K=Ie((ie,de)=>{switch(ie.key){case"ArrowUp":G((12+de-3)%12),ie.preventDefault();break;case"ArrowDown":G((12+de+3)%12),ie.preventDefault();break;case"ArrowLeft":G((12+de+(j?1:-1))%12),ie.preventDefault();break;case"ArrowRight":G((12+de+(j?-1:1))%12),ie.preventDefault();break}}),J=Ie((ie,de)=>{G(de)}),Z=Ie((ie,de)=>{B===de&&N(!1)});return I.jsx(S1e,ee({ref:n,className:we(U.root,a),ownerState:H,role:"radiogroup","aria-labelledby":C,monthsPerRow:O},T,{children:Ov(W,_??X).map(ie=>{const de=W.getMonth(ie),xe=W.format(ie,"monthShort"),he=W.format(ie,"month"),pe=de===D,Q=d||q(ie);return I.jsx(m$,{selected:pe,value:de,onClick:Y,onKeyDown:K,autoFocus:F&&de===B,disabled:Q,tabIndex:de===B&&!Q?0:-1,onFocus:J,onBlur:Z,"aria-current":L===de?"date":void 0,"aria-label":he,slots:S,slotProps:P,classes:s,children:xe},xe)})}))});process.env.NODE_ENV!=="production"&&(Kv.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(Kv.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,gridLabelId:o.string,hasFocus:o.bool,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),onChange:o.func,onFocusedViewChange:o.func,onMonthFocus:o.func,readOnly:o.bool,referenceDate:o.object,shouldDisableMonth:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object});function g$(e){return Pe("MuiYearCalendar",e)}const ju=ke("MuiYearCalendar",["root","button","disabled","selected"]),E1e=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],C1e=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return Ee(n,g$,e)},P1e=ne("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ju.disabled}`]:t.disabled},{[`&.${ju.selected}`]:t.selected}]})(({theme:e})=>ee({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Je(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Je(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ju.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ju.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),y$=R.memo(function(t){const{autoFocus:n,classes:r,disabled:i,selected:a,value:s,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Ge(t,E1e),g=R.useRef(null),{ownerState:m}=on(),y=ee({},m,{isYearDisabled:i,isYearSelected:a}),b=C1e(r,y);Kt(()=>{var w;n&&((w=g.current)==null||w.focus())},[n]);const v=(f==null?void 0:f.yearButton)??P1e,x=st({elementType:v,externalSlotProps:p==null?void 0:p.yearButton,externalForwardedProps:h,additionalProps:{disabled:i,ref:g,type:"button",role:"radio","aria-checked":a,onClick:w=>l(w,s),onKeyDown:w=>c(w,s),onFocus:w=>u(w,s),onBlur:w=>d(w,s)},ownerState:y,className:b.button});return I.jsx(v,ee({},x))});process.env.NODE_ENV!=="production"&&(y$.displayName="YearCalendarButton");const _1e=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],k1e=e=>Ee({root:["root"]},g$,e);function D1e(e,t){const n=ft({props:e,name:t}),r=Jc(n);return ee({},n,r,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const $1e=ne("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>rr(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:us,maxHeight:Tbe,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),R1e=ne("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),Xv=R.forwardRef(function(t,n){const r=D1e(t,"MuiYearCalendar"),{autoFocus:i,className:a,classes:s,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:f,disablePast:p,maxDate:h,minDate:g,onChange:m,readOnly:y,shouldDisableYear:b,onYearFocus:v,hasFocus:x,onFocusedViewChange:w,yearsOrder:O,yearsPerRow:E,timezone:C,gridLabelId:S,slots:P,slotProps:T}=r,_=Ge(r,_1e),{value:k,handleValueChange:$,timezone:M}=vi({name:"YearCalendar",timezone:C,value:l,defaultValue:c,referenceDate:u,onChange:m,valueManager:mn}),j=aa(M),W=Gn(),H=lt(),{ownerState:X}=on(),U=R.useMemo(()=>mn.getInitialReferenceValue({value:k,adapter:H,props:r,timezone:M,referenceDate:u,granularity:Qr.year}),[]),L=k1e(s),D=R.useMemo(()=>H.getYear(j),[H,j]),B=R.useMemo(()=>k!=null?H.getYear(k):null,[k,H]),[z,F]=R.useState(()=>B||H.getYear(U)),[A,N]=Yn({name:"YearCalendar",state:"hasFocus",controlled:x,default:i??!1}),q=Ie(te=>{N(te),w&&w(te)}),Y=R.useCallback(te=>{if(p&&H.isBeforeYear(te,j)||f&&H.isAfterYear(te,j)||g&&H.isBeforeYear(te,g)||h&&H.isAfterYear(te,h))return!0;if(!b)return!1;const le=H.startOfYear(te);return b(le)},[f,p,h,g,j,b,H]),G=Ie((te,le)=>{if(y)return;const re=H.setYear(k??U,le);$(re)}),K=Ie(te=>{Y(H.setYear(k??U,te))||(F(te),q(!0),v==null||v(te))});R.useEffect(()=>{F(te=>B!==null&&te!==B?B:te)},[B]);const J=O!=="desc"?E*1:E*-1,Z=W&&O==="asc"||!W&&O==="desc"?-1:1,ie=Ie((te,le)=>{switch(te.key){case"ArrowUp":K(le-J),te.preventDefault();break;case"ArrowDown":K(le+J),te.preventDefault();break;case"ArrowLeft":K(le-Z),te.preventDefault();break;case"ArrowRight":K(le+Z),te.preventDefault();break}}),de=Ie((te,le)=>{K(le)}),xe=Ie((te,le)=>{z===le&&q(!1)}),he=R.useRef(null),pe=xt(n,he);R.useEffect(()=>{if(i||he.current===null)return;const te=he.current.querySelector('[tabindex="0"]');if(!te)return;const le=te.offsetHeight,re=te.offsetTop,Te=he.current.clientHeight,Se=he.current.scrollTop,fe=re+le;le>Te||re<Se||(he.current.scrollTop=fe-Te/2-le/2)},[i]);const Q=H.getYearRange([g,h]);O==="desc"&&Q.reverse();let oe=E-Q.length%E;return oe===E&&(oe=0),I.jsxs($1e,ee({ref:pe,className:we(L.root,a),ownerState:X,role:"radiogroup","aria-labelledby":S,yearsPerRow:E},_,{children:[Q.map(te=>{const le=H.getYear(te),re=le===B,Te=d||Y(te);return I.jsx(y$,{selected:re,value:le,onClick:G,onKeyDown:ie,autoFocus:A&&le===z,disabled:Te,tabIndex:le===z&&!Te?0:-1,onFocus:de,onBlur:xe,"aria-current":D===le?"date":void 0,slots:P,slotProps:T,classes:s,children:H.format(te,"year")},H.format(te,"year"))}),Array.from({length:oe},(te,le)=>I.jsx(R1e,{},le))]}))});process.env.NODE_ENV!=="production"&&(Xv.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(Xv.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,gridLabelId:o.string,hasFocus:o.bool,maxDate:o.object,minDate:o.object,onChange:o.func,onFocusedViewChange:o.func,onYearFocus:o.func,readOnly:o.bool,referenceDate:o.object,shouldDisableYear:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});const M1e=e=>Pe("MuiPickersCalendarHeader",e),I1e=ke("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),N1e=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],A1e=["ownerState"],j1e=e=>Ee({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},M1e,e),L1e=ne("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),F1e=ne("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>ee({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),V1e=ne("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),B1e=ne(Gt,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${I1e.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),z1e=ne(rbe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Zv=R.forwardRef(function(t,n){const r=zn(),i=lt(),a=ft({props:t,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onMonthChange:g,onViewChange:m,view:y,reduceAnimations:b,views:v,labelId:x,className:w,classes:O,timezone:E,format:C=`${i.formats.month} ${i.formats.year}`}=a,S=Ge(a,N1e),{ownerState:P}=on(),T=j1e(O),_=(s==null?void 0:s.switchViewButton)??B1e,k=st({elementType:_,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(y)},ownerState:ee({},P,{view:y}),className:T.switchViewButton}),$=(s==null?void 0:s.switchViewIcon)??z1e,M=st({elementType:$,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:P,className:T.switchViewIcon}),j=Ge(M,A1e),W=()=>g(i.addMonths(c,1)),H=()=>g(i.addMonths(c,-1)),X=xbe(c,{disableFuture:d,maxDate:p,timezone:E}),U=Obe(c,{disablePast:f,minDate:h,timezone:E}),L=()=>{if(!(v.length===1||!m||u))if(v.length===2)m(v.find(B=>B!==y)||v[0]);else{const B=v.indexOf(y)!==0?0:1;m(v[B])}};if(v.length===1&&v[0]==="year")return null;const D=i.formatByString(c,C);return I.jsxs(L1e,ee({},S,{ownerState:P,className:we(T.root,w),ref:n,children:[I.jsxs(F1e,{role:"presentation",onClick:L,ownerState:P,"aria-live":"polite",className:T.labelContainer,children:[I.jsx(f$,{reduceAnimations:b,transKey:D,children:I.jsx(V1e,{id:x,ownerState:P,className:T.label,children:D})}),v.length>1&&!u&&I.jsx(_,ee({},k,{children:I.jsx($,ee({},j))}))]}),I.jsx(ci,{in:y==="day",appear:!b,enter:!b,children:I.jsx(Mv,{slots:s,slotProps:l,onGoToPrevious:H,isPreviousDisabled:U,previousLabel:r.previousMonth,onGoToNext:W,isNextDisabled:X,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Zv.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(Zv.propTypes={classes:o.object,className:o.string,currentMonth:o.object.isRequired,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,format:o.string,labelId:o.string,maxDate:o.object.isRequired,minDate:o.object.isRequired,onMonthChange:o.func.isRequired,onViewChange:o.func,reduceAnimations:o.bool.isRequired,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string.isRequired,view:o.oneOf(["day","month","year"]).isRequired,views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired).isRequired});const W1e="@media (prefers-reduced-motion: reduce)",qa=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),TT=qa&&qa[1]?parseInt(qa[1],10):null,ST=qa&&qa[2]?parseInt(qa[2],10):null,q1e=TT&&TT<10||ST&&ST<13||!1;function b$(e){const t=Yf(W1e,{defaultMatches:!1});return e??(t||q1e)}const U1e=e=>Pe("MuiDateCalendar",e);ke("MuiDateCalendar",["root","viewTransitionContainer"]);const H1e=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],Y1e=e=>Ee({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},U1e,e);function G1e(e,t){const n=ft({props:e,name:t}),r=b$(n.reduceAnimations),i=Jc(n);return ee({},n,i,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:r,renderLoading:n.renderLoading??(()=>I.jsx("span",{children:"..."}))})}const K1e=ne(Op,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:ds}),X1e=ne(f$,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),Qv=R.forwardRef(function(t,n){const r=lt(),{ownerState:i}=on(),a=dr(),s=G1e(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:f,disableFuture:p,disablePast:h,onChange:g,onMonthChange:m,reduceAnimations:y,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:x,view:w,views:O,openTo:E,className:C,classes:S,disabled:P,readOnly:T,minDate:_,maxDate:k,disableHighlightToday:$,focusedView:M,onFocusedViewChange:j,showDaysOutsideCurrentMonth:W,fixedWeekNumber:H,dayOfWeekFormatter:X,slots:U,slotProps:L,loading:D,renderLoading:B,displayWeekNumber:z,yearsOrder:F,yearsPerRow:A,monthsPerRow:N,timezone:q}=s,Y=Ge(s,H1e),{value:G,handleValueChange:K,timezone:J}=vi({name:"DateCalendar",timezone:q,value:u,defaultValue:d,referenceDate:f,onChange:g,valueManager:mn}),{view:Z,setView:ie,focusedView:de,setFocusedView:xe,goToNextView:he,setValueAndGoToNextView:pe}=Zc({view:w,views:O,openTo:E,onChange:K,onViewChange:c,autoFocus:l,focusedView:M,onFocusedViewChange:j}),{referenceDate:Q,calendarState:oe,setVisibleDate:te,isDateDisabled:le,onMonthSwitchingAnimationEnd:re}=Y0e({value:G,referenceDate:f,reduceAnimations:y,onMonthChange:m,minDate:_,maxDate:k,shouldDisableDate:b,disablePast:h,disableFuture:p,timezone:J,getCurrentMonthFromVisibleDate:(Ke,Ne)=>r.isSameMonth(Ke,Ne)?Ne:r.startOfMonth(Ke)}),Te=P&&G||_,Se=P&&G||k,fe=`${a}-grid-label`,ge=de!==null,_e=(U==null?void 0:U.calendarHeader)??Zv,$e=st({elementType:_e,externalSlotProps:L==null?void 0:L.calendarHeader,additionalProps:{views:O,view:Z,currentMonth:oe.currentMonth,onViewChange:ie,onMonthChange:Ke=>te({target:Ke,reason:"header-navigation"}),minDate:Te,maxDate:Se,disabled:P,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:J,labelId:fe},ownerState:i}),ae=Ie(Ke=>{const Ne=r.startOfMonth(Ke),We=r.endOfMonth(Ke),rt=le(Ke)?ec({adapter:r,date:Ke,minDate:r.isBefore(_,Ne)?Ne:_,maxDate:r.isAfter(k,We)?We:k,disablePast:h,disableFuture:p,isDateDisabled:le,timezone:J}):Ke;rt?(pe(rt,"finish"),te({target:rt,reason:"cell-interaction"})):(he(),te({target:Ne,reason:"cell-interaction"}))}),ce=Ie(Ke=>{const Ne=r.startOfYear(Ke),We=r.endOfYear(Ke),rt=le(Ke)?ec({adapter:r,date:Ke,minDate:r.isBefore(_,Ne)?Ne:_,maxDate:r.isAfter(k,We)?We:k,disablePast:h,disableFuture:p,isDateDisabled:le,timezone:J}):Ke;rt?(pe(rt,"finish"),te({target:rt,reason:"cell-interaction"})):(he(),te({target:Ne,reason:"cell-interaction"}))}),ue=Ie(Ke=>K(Ke&&Vd(r,Ke,G??Q),"finish",Z));R.useEffect(()=>{r.isValid(G)&&te({target:G,reason:"controlled-value-change"})},[G]);const Ce=Y1e(S),ye={disablePast:h,disableFuture:p,maxDate:k,minDate:_},Me={disableHighlightToday:$,readOnly:T,disabled:P,timezone:J,gridLabelId:fe,slots:U,slotProps:L},Ze=R.useRef(Z);R.useEffect(()=>{Ze.current!==Z&&(de===Ze.current&&xe(Z,!0),Ze.current=Z)},[de,xe,Z]);const bt=R.useMemo(()=>[G],[G]);return I.jsxs(K1e,ee({ref:n,className:we(Ce.root,C),ownerState:i},Y,{children:[I.jsx(_e,ee({},$e,{slots:U,slotProps:L})),I.jsx(X1e,{reduceAnimations:y,className:Ce.viewTransitionContainer,transKey:Z,ownerState:i,children:I.jsxs("div",{children:[Z==="year"&&I.jsx(Xv,ee({},ye,Me,{value:G,onChange:ce,shouldDisableYear:x,hasFocus:ge,onFocusedViewChange:Ke=>xe("year",Ke),yearsOrder:F,yearsPerRow:A,referenceDate:Q})),Z==="month"&&I.jsx(Kv,ee({},ye,Me,{hasFocus:ge,className:C,value:G,onChange:ae,shouldDisableMonth:v,onFocusedViewChange:Ke=>xe("month",Ke),monthsPerRow:N,referenceDate:Q})),Z==="day"&&I.jsx(y1e,ee({},oe,ye,Me,{onMonthSwitchingAnimationEnd:re,hasFocus:ge,onFocusedDayChange:Ke=>te({target:Ke,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:bt,onSelectedDaysChange:ue,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:x,onFocusedViewChange:Ke=>xe("day",Ke),showDaysOutsideCurrentMonth:W,fixedWeekNumber:H,dayOfWeekFormatter:X,displayWeekNumber:z,loading:D,renderLoading:B}))]})})]}))});process.env.NODE_ENV!=="production"&&(Qv.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(Qv.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,fixedWeekNumber:o.number,focusedView:o.oneOf(["day","month","year"]),loading:o.bool,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),onChange:o.func,onFocusedViewChange:o.func,onMonthChange:o.func,onViewChange:o.func,onYearChange:o.func,openTo:o.oneOf(["day","month","year"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});function v$(e){return Pe("MuiPickersToolbar",e)}const Z1e=ke("MuiPickersToolbar",["root","title","content"]);function Ip(){const{ownerState:e}=on(),t=Gn();return R.useMemo(()=>ee({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const Q1e=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],J1e=e=>Ee({root:["root"],title:["title"],content:["content"]},v$,e),ewe=ne("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),twe=ne("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>rr(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Np=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersToolbar"}),{children:i,className:a,classes:s,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=r,f=Ge(r,Q1e),p=Ip(),h=J1e(s);return c?null:I.jsxs(ewe,ee({ref:n,className:we(h.root,a),ownerState:p},f,{children:[I.jsx(et,{color:"text.secondary",variant:"overline",id:u,className:h.title,children:l}),I.jsx(twe,{className:h.content,ownerState:p,landscapeDirection:d,children:i})]}))});process.env.NODE_ENV!=="production"&&(Np.displayName="PickersToolbar");function nwe(e){return Pe("MuiDatePickerToolbar",e)}ke("MuiDatePickerToolbar",["root","title"]);const rwe=["toolbarFormat","toolbarPlaceholder","className","classes"],owe=e=>Ee({root:["root"],title:["title"]},nwe,e),iwe=ne(Np,{name:"MuiDatePickerToolbar",slot:"Root"})({}),awe=ne(et,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Jv=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:i,toolbarPlaceholder:a="––",className:s,classes:l}=r,c=Ge(r,rwe),u=lt(),{value:d,views:f,orientation:p}=_o(),h=zn(),g=Ip(),m=owe(l),y=R.useMemo(()=>{if(!u.isValid(d))return a;const b=tc(u,{format:i,views:f},!0);return u.formatByString(d,b)},[d,i,a,u,f]);return I.jsx(iwe,ee({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:we(m.root,s)},c,{children:I.jsx(awe,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:g,className:m.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Jv.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Jv.propTypes={classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node});function w$(e,t){const n=ft({props:e,name:t}),r=Jc(n),i=R.useMemo(()=>{var a;return((a=n.localeText)==null?void 0:a.toolbarTitle)==null?n.localeText:ee({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return ee({},n,r,{localeText:i},xv({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:ee({toolbar:Jv},n.slots)})}function swe(e){return Pe("MuiPickerPopper",e)}ke("MuiPickerPopper",["root","paper"]);const lwe=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],cwe=e=>Ee({root:["root"],paper:["paper"]},swe,e),uwe=ne(Os,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),dwe=ne(so,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function fwe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function pwe(e,t){const n=R.useRef(!1),r=R.useRef(!1),i=R.useRef(null),a=R.useRef(!1);R.useEffect(()=>{if(!e)return;function c(){a.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),a.current=!1}},[e]);const s=Ie(c=>{if(!a.current)return;const u=r.current;r.current=!1;const d=On(i.current);if(!i.current||"clientX"in c&&fwe(c,d))return;if(n.current){n.current=!1;return}let f;c.composedPath?f=c.composedPath().indexOf(i.current)>-1:f=!d.documentElement.contains(c.target)||i.current.contains(c.target),!f&&!u&&t(c)}),l=()=>{r.current=!0};return R.useEffect(()=>{if(e){const c=On(i.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",s),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",s),c.removeEventListener("touchmove",u)}}},[e,s]),R.useEffect(()=>{if(e){const c=On(i.current);return c.addEventListener("click",s),()=>{c.removeEventListener("click",s),r.current=!1}}},[e,s]),[i,l,l]}const x$=R.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:r,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Ge(e,lwe),d=st({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:r});return I.jsx(n,ee({},u,d,{onClick:f=>{var p;l(f),(p=d.onClick)==null||p.call(d,f)},onTouchStart:f=>{var p;c(f),(p=d.onTouchStart)==null||p.call(d,f)},ownerState:r,children:i}))});process.env.NODE_ENV!=="production"&&(x$.displayName="PickerPopperPaperWrapper");function hwe(e){const t=ft({props:e,name:"MuiPickerPopper"}),{children:n,placement:r="bottom-start",slots:i,slotProps:a,classes:s}=t,{open:l,popupRef:c,reduceAnimations:u}=_o(),{dismissViews:d,getCurrentViewMode:f,onPopperExited:p,triggerElement:h,viewContainerRole:g}=on();R.useEffect(()=>{function H(X){l&&X.key==="Escape"&&d()}return document.addEventListener("keydown",H),()=>{document.removeEventListener("keydown",H)}},[d,l]);const m=R.useRef(null);R.useEffect(()=>{g==="tooltip"||f()==="field"||(l?m.current=Vn(document):m.current&&m.current instanceof HTMLElement&&setTimeout(()=>{m.current instanceof HTMLElement&&m.current.focus()}))},[l,g,f]);const y=cwe(s),{ownerState:b,rootRefObject:v}=on(),x=Ie(()=>{g==="tooltip"?ave(()=>{var H,X;(H=v.current)!=null&&H.contains(Vn(document))||(X=c.current)!=null&&X.contains(Vn(document))||d()}):d()}),[w,O,E]=pwe(l,x),C=R.useRef(null),S=xt(C,c),P=xt(S,w),T=H=>{H.key==="Escape"&&(H.stopPropagation(),d())},_=(i==null?void 0:i.desktopTransition)??u?ci:rs,k=(i==null?void 0:i.desktopTrapFocus)??Xl,$=(i==null?void 0:i.desktopPaper)??dwe,M=(i==null?void 0:i.popper)??uwe,j=st({elementType:M,externalSlotProps:a==null?void 0:a.popper,additionalProps:{transition:!0,role:g??void 0,open:l,placement:r,anchorEl:h,onKeyDown:T},className:y.root,ownerState:b}),W=R.useMemo(()=>ee({},b,{popperPlacement:j.placement}),[b,j.placement]);return I.jsx(M,ee({},j,{children:({TransitionProps:H})=>I.jsx(k,ee({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},a==null?void 0:a.desktopTrapFocus,{children:I.jsx(_,ee({},H,a==null?void 0:a.desktopTransition,{onExited:X=>{var U,L,D;p==null||p(),(L=(U=a==null?void 0:a.desktopTransition)==null?void 0:U.onExited)==null||L.call(U,X),(D=H==null?void 0:H.onExited)==null||D.call(H)},children:I.jsx(x$,{PaperComponent:$,ownerState:W,ref:P,onPaperClick:O,onPaperTouchStart:E,paperClasses:y.paper,paperSlotProps:a==null?void 0:a.desktopPaper,children:n})}))}))}))}function ET(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function mwe(e,t){const[n,r]=R.useState(ET);return Kt(()=>{const i=()=>{r(ET())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),ka(e,["hours","minutes","seconds"])?"portrait":t??n}const CT=new Set;function O$(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
`):e;CT.has(n)||(CT.add(n),t==="error"?console.error(n):console.warn(n))}function gwe(e){const{props:t,valueManager:n,validator:r}=e,{value:i,defaultValue:a,onChange:s,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:f,onOpen:p,onClose:h}=t,{current:g}=R.useRef(a),{current:m}=R.useRef(i!==void 0),{current:y}=R.useRef(f!==void 0),b=lt();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&O$(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),process.env.NODE_ENV!=="production"&&(R.useEffect(()=>{m!==(i!==void 0)&&console.error([`MUI X: A component is changing the ${m?"":"un"}controlled value of a Picker to be ${m?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor 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(`
`))},[i]),R.useEffect(()=>{!m&&g!==a&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled Picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
`))},[JSON.stringify(g)]));const{timezone:v,value:x,handleValueChange:w}=vi({name:"a picker component",timezone:c,value:i,defaultValue:g,referenceDate:l,onChange:s,valueManager:n}),[O,E]=R.useState(()=>({open:!1,lastExternalValue:x,clockShallowValue:void 0,lastCommittedValue:x,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:C}=JD({props:t,validator:r,timezone:v,value:x,onError:t.onError}),S=Ie(k=>{const $=typeof k=="function"?k(O.open):k;y||E(M=>ee({},M,{open:$})),$&&p&&p(),$||h==null||h()}),P=Ie((k,$)=>{const{changeImportance:M="accept",skipPublicationIfPristine:j=!1,validationError:W,shortcut:H,shouldClose:X=M==="accept"}=$??{};let U,L;!j&&!m&&!O.hasBeenModifiedSinceMount?(U=!0,L=M==="accept"):(U=!n.areValuesEqual(b,k,x),L=M==="accept"&&!n.areValuesEqual(b,k,O.lastCommittedValue)),E(z=>ee({},z,{clockShallowValue:U?void 0:z.clockShallowValue,lastCommittedValue:L?k:z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let D=null;const B=()=>(D||(D={validationError:W??C(k)},H&&(D.shortcut=H)),D);U&&w(k,B()),L&&u&&u(k,B()),X&&S(!1)});x!==O.lastExternalValue&&E(k=>ee({},k,{lastExternalValue:x,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const T=Ie((k,$="partial")=>{if($==="shallow"){E(M=>ee({},M,{clockShallowValue:k,hasBeenModifiedSinceMount:!0}));return}P(k,{changeImportance:$==="finish"&&d?"accept":"set"})});R.useEffect(()=>{if(y){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");E(k=>ee({},k,{open:f}))}},[y,f]);const _=R.useMemo(()=>n.cleanValue(b,O.clockShallowValue===void 0?x:O.clockShallowValue),[b,n,O.clockShallowValue,x]);return{timezone:v,state:O,setValue:P,setValueFromView:T,setOpen:S,value:x,viewValue:_}}const ywe=["className","sx"],T$=({ref:e,props:t,valueManager:n,valueType:r,variant:i,validator:a,onPopperExited:s,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:f})=>{const{views:p,view:h,openTo:g,onViewChange:m,viewRenderers:y,reduceAnimations:b,orientation:v,disableOpenPicker:x,closeOnSelect:w,disabled:O,readOnly:E,formatDensity:C,enableAccessibleFieldDOMStructure:S,selectedSections:P,onSelectedSectionsChange:T,format:_,label:k,autoFocus:$,name:M}=t,{className:j,sx:W}=t,H=Ge(t,ywe),X=dr(),U=lt(),L=b$(b),D=mwe(p,v),{current:B}=R.useRef(g??null),[z,F]=R.useState(null),A=R.useRef(null),N=R.useRef(null),q=R.useRef(null),Y=xt(e,q),{timezone:G,state:K,setOpen:J,setValue:Z,setValueFromView:ie,value:de,viewValue:xe}=gwe({props:t,valueManager:n,validator:a}),{view:he,setView:pe,defaultView:Q,focusedView:oe,setFocusedView:te,setValueAndGoToNextView:le,goToNextStep:re,hasNextStep:Te,hasSeveralSteps:Se}=Zc({view:h,views:p,openTo:g,onChange:ie,onViewChange:m,autoFocus:l,getStepNavigation:f}),fe=Ie(()=>Z(n.emptyValue)),ge=Ie(()=>Z(n.getTodayValue(U,G,r))),_e=Ie(()=>Z(de)),$e=Ie(()=>Z(K.lastCommittedValue,{skipPublicationIfPristine:!0})),ae=Ie(()=>{Z(de,{skipPublicationIfPristine:!0})}),{hasUIView:ce,viewModeLookup:ue,timeViewsCount:Ce}=R.useMemo(()=>p.reduce((Ve,Ct)=>{const je=y[Ct]==null?"field":"UI";return Ve.viewModeLookup[Ct]=je,je==="UI"&&(Ve.hasUIView=!0,Ji(Ct)&&(Ve.timeViewsCount+=1)),Ve},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,p]),ye=ue[he],Me=Ie(()=>ye),[Ze,bt]=R.useState(ye==="UI"?he:null);Ze!==he&&ue[he]==="UI"&&bt(he),Kt(()=>{ye==="field"&&K.open&&(J(!1),setTimeout(()=>{var Ve,Ct;(Ve=N==null?void 0:N.current)==null||Ve.setSelectedSections(he),(Ct=N==null?void 0:N.current)==null||Ct.focusField(he)}))},[he]),Kt(()=>{if(!K.open)return;let Ve=he;ye==="field"&&Ze!=null&&(Ve=Ze),Ve!==Q&&ue[Ve]==="UI"&&ue[Q]==="UI"&&(Ve=Q),Ve!==he&&pe(Ve),te(Ve,!0)},[K.open]);const Ke=R.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(U,de,n.emptyValue),isPickerOpen:K.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:D,pickerVariant:i}),[U,n,de,K.open,D,i,t.disabled,t.readOnly]),Ne=R.useMemo(()=>x||!ce?"hidden":O||E?"disabled":"enabled",[x,ce,O,E]),We=Ie(re),rt=R.useMemo(()=>w&&!Se?[]:["cancel","nextOrAccept"],[w,Se]),Tt=R.useMemo(()=>({setValue:Z,setOpen:J,clearValue:fe,setValueToToday:ge,acceptValueChanges:_e,cancelValueChanges:$e,setView:pe,goToNextStep:We}),[Z,J,fe,ge,_e,$e,pe,We]),nt=R.useMemo(()=>ee({},Tt,{value:de,timezone:G,open:K.open,views:p,view:Ze,initialView:B,disabled:O??!1,readOnly:E??!1,autoFocus:$??!1,variant:i,orientation:D,popupRef:A,reduceAnimations:L,triggerRef:F,triggerStatus:Ne,hasNextStep:Te,fieldFormat:_??"",name:M,label:k,rootSx:W,rootRef:Y,rootClassName:j}),[Tt,de,Y,i,D,L,O,E,_,j,M,k,W,Ne,Te,G,K.open,Ze,p,B,$]),Et=R.useMemo(()=>({dismissViews:ae,ownerState:Ke,hasUIView:ce,getCurrentViewMode:Me,rootRefObject:q,labelId:X,triggerElement:z,viewContainerRole:d,defaultActionBarActions:rt,onPopperExited:s}),[ae,Ke,ce,Me,X,z,d,rt,s]),$n=R.useMemo(()=>({formatDensity:C,enableAccessibleFieldDOMStructure:S,selectedSections:P,onSelectedSectionsChange:T,fieldRef:N}),[C,S,P,T,N]);return{providerProps:{localeText:u,contextValue:nt,privateContextValue:Et,actionsContextValue:Tt,fieldPrivateContextValue:$n,isValidContextValue:Ve=>{const Ct=a({adapter:U,value:Ve,timezone:G,props:t});return!n.hasError(Ct)}},renderCurrentView:()=>{if(Ze==null)return null;const Ve=y[Ze];if(Ve==null)return null;const Ct=ee({},H,{views:p,timezone:G,value:xe,onChange:le,view:Ze,onViewChange:pe,showViewSwitcher:Ce>1,timeViewsCount:Ce},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:oe,onFocusedViewChange:te});return c?I.jsx(c,{viewRenderers:y,popperView:Ze,rendererProps:Ct}):Ve(Ct)},ownerState:Ke}};function S$(e){return Pe("MuiPickersLayout",e)}const Zr=ke("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),bwe=["actions"],vwe=ne(Bf,{name:"MuiPickersLayout",slot:"ActionBar"})({});function E$(e){const{actions:t}=e,n=Ge(e,bwe),r=zn(),{clearValue:i,setValueToToday:a,acceptValueChanges:s,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=_o();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return I.jsx(Sn,{onClick:i,children:r.clearButtonLabel},f);case"cancel":return I.jsx(Sn,{onClick:l,children:r.cancelButtonLabel},f);case"accept":return I.jsx(Sn,{onClick:s,children:r.okButtonLabel},f);case"today":return I.jsx(Sn,{onClick:a,children:r.todayButtonLabel},f);case"next":return I.jsx(Sn,{onClick:c,children:r.nextStepButtonLabel},f);case"nextOrAccept":return u?I.jsx(Sn,{onClick:c,children:r.nextStepButtonLabel},f):I.jsx(Sn,{onClick:s,children:r.okButtonLabel},f);default:return null}});return I.jsx(vwe,ee({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(E$.propTypes={actions:o.arrayOf(o.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const C$=R.memo(E$);process.env.NODE_ENV!=="production"&&(C$.displayName="PickersActionBar");const wwe=["items","changeImportance"],xwe=["getValue"],Owe=ne(Wf,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function P$(e){const{items:t,changeImportance:n="accept"}=e,r=Ge(e,wwe),{setValue:i}=nbe(),a=tbe();if(t==null||t.length===0)return null;const s=t.map(l=>{let{getValue:c}=l,u=Ge(l,xwe);const d=c({isValid:a});return ee({},u,{label:u.label,onClick:()=>{i(d,{changeImportance:n,shortcut:u})},disabled:!a(d)})});return I.jsx(Owe,ee({dense:!0,sx:[{maxHeight:ds,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:s.map(l=>I.jsx(lC,{children:I.jsx(ty,ee({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(P$.propTypes={changeImportance:o.oneOf(["accept","set"]),className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,items:o.arrayOf(o.shape({getValue:o.func.isRequired,id:o.string,label:o.string.isRequired})),style:o.object,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Twe=["ownerState"];function Swe(e){return e.view!==null}const Ewe=(e,t)=>{const{pickerOrientation:n}=t;return Ee({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},S$,e)},_$=e=>{const{ownerState:t,defaultActionBarActions:n}=on(),{view:r}=_o(),i=Gn(),{children:a,slots:s,slotProps:l,classes:c}=e,u=R.useMemo(()=>ee({},t,{layoutDirection:i?"rtl":"ltr"}),[t,i]),d=Ewe(c,u),f=(s==null?void 0:s.actionBar)??C$,p=st({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Ge(p,Twe),g=I.jsx(f,ee({},h)),m=s==null?void 0:s.toolbar,y=st({elementType:m,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),b=Swe(y)&&m?I.jsx(m,ee({},y)):null,v=a,x=s==null?void 0:s.tabs,w=r&&x?I.jsx(x,ee({className:d.tabs},l==null?void 0:l.tabs)):null,O=(s==null?void 0:s.shortcuts)??P$,E=st({elementType:O,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),C=r&&O?I.jsx(O,ee({},E)):null;return{toolbar:b,content:v,tabs:w,actionBar:g,shortcuts:C,ownerState:u}},Cwe=(e,t)=>{const{pickerOrientation:n}=t;return Ee({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},S$,e)},k$=ne("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Zr.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape"},style:{[`& .${Zr.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Zr.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{pickerOrientation:"landscape",layoutDirection:"rtl"},style:{[`& .${Zr.toolbar}`]:{gridColumn:3}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Zr.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Zr.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{pickerOrientation:"portrait",layoutDirection:"rtl"},style:{[`& .${Zr.shortcuts}`]:{gridColumn:3}}}]}),D$=ne("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Ap=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersLayout"}),{toolbar:i,content:a,tabs:s,actionBar:l,shortcuts:c,ownerState:u}=_$(r),{orientation:d,variant:f}=_o(),{sx:p,className:h,classes:g}=r,m=Cwe(g,u);return I.jsxs(k$,{ref:n,sx:p,className:we(m.root,h),ownerState:u,children:[d==="landscape"?c:i,d==="landscape"?i:c,I.jsx(D$,{className:m.contentWrapper,ownerState:u,children:f==="desktop"?I.jsxs(R.Fragment,{children:[a,s]}):I.jsxs(R.Fragment,{children:[s,a]})}),l]})});process.env.NODE_ENV!=="production"&&(Ap.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(Ap.propTypes={children:o.node,classes:o.object,className:o.string,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function $$(e){const{steps:t}=e;return wbe({steps:t,isViewMatchingStep:(n,r)=>r.views==null||r.views.includes(n),onStepChange:({step:n,defaultView:r,setView:i,view:a,views:s})=>{const l=n.views==null?r:n.views.find(c=>s.includes(c));l!==a&&i(l)}})}const Pwe=["props","steps"],_we=["ownerState"],e0=e=>{var E;let{props:t,steps:n}=e,r=Ge(e,Pwe);const{slots:i,slotProps:a,label:s,inputRef:l,localeText:c}=t,u=$$({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=T$(ee({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),h=d.privateContextValue.labelId,g=((E=a==null?void 0:a.toolbar)==null?void 0:E.hidden)??!1,m=i.field,y=st({elementType:m,externalSlotProps:a==null?void 0:a.field,additionalProps:ee({},g&&{id:h}),ownerState:p}),b=Ge(y,_we),v=i.layout??Ap;let x=h;g&&(s?x=`${h}-label`:x=void 0);const w=ee({},a,{toolbar:ee({},a==null?void 0:a.toolbar,{titleId:h}),popper:ee({"aria-labelledby":x},a==null?void 0:a.popper)}),O=()=>I.jsx(jD,ee({},d,{children:I.jsxs(u$,{slots:i,slotProps:w,inputRef:l,children:[I.jsx(m,ee({},b)),I.jsx(hwe,{slots:i,slotProps:w,children:I.jsx(v,ee({},w==null?void 0:w.layout,{slots:i,slotProps:w,children:f()}))})]})}));return process.env.NODE_ENV!=="production"&&(O.displayName="renderPicker"),{renderPicker:O}},wr=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:b,reduceAnimations:v,onMonthChange:x,monthsPerRow:w,onYearChange:O,yearsOrder:E,yearsPerRow:C,slots:S,slotProps:P,loading:T,renderLoading:_,disableHighlightToday:k,readOnly:$,disabled:M,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:W,sx:H,autoFocus:X,fixedWeekNumber:U,displayWeekNumber:L,timezone:D})=>I.jsx(Qv,{view:e,onViewChange:t,views:n.filter(cs),focusedView:r&&cs(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:g,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:b,reduceAnimations:v,onMonthChange:x,monthsPerRow:w,onYearChange:O,yearsOrder:E,yearsPerRow:C,slots:S,slotProps:P,loading:T,renderLoading:_,disableHighlightToday:k,readOnly:$,disabled:M,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:W,sx:H,autoFocus:X,fixedWeekNumber:U,displayWeekNumber:L,timezone:D});process.env.NODE_ENV!=="production"&&(wr.displayName="renderDateViewCalendar");const t0=R.forwardRef(function(t,n){var c;const r=lt(),i=w$(t,"MuiDesktopDatePicker"),a=ee({day:wr,month:wr,year:wr},i.viewRenderers),s=ee({},i,{closeOnSelect:i.closeOnSelect??!0,viewRenderers:a,format:tc(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:ee({field:$p},i.slots),slotProps:ee({},i.slotProps,{field:u=>{var d;return ee({},So((d=i.slotProps)==null?void 0:d.field,u),zs(i))},toolbar:ee({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=e0({ref:n,props:s,valueManager:mn,valueType:"date",validator:Ws,steps:null});return l()});process.env.NODE_ENV!=="production"&&(t0.displayName="DesktopDatePicker");t0.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Rt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const kwe=ne(Vf)({[`& .${kl.container}`]:{outline:0},[`& .${kl.paper}`]:{outline:0,minWidth:us}}),Dwe=ne(zf)({"&:first-of-type":{padding:0}});function $we(e){const{children:t,slots:n,slotProps:r}=e,{open:i}=_o(),{dismissViews:a,onPopperExited:s}=on(),l=(n==null?void 0:n.dialog)??kwe,c=(n==null?void 0:n.mobileTransition)??ci;return I.jsx(l,ee({open:i,onClose:()=>{a(),s==null||s()}},r==null?void 0:r.dialog,{TransitionComponent:c,TransitionProps:r==null?void 0:r.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:r==null?void 0:r.mobilePaper,children:I.jsx(Dwe,{children:t})}))}const Rwe=["props","steps"],Mwe=["ownerState"],n0=e=>{var E;let{props:t,steps:n}=e,r=Ge(e,Rwe);const{slots:i,slotProps:a,label:s,inputRef:l,localeText:c}=t,u=$$({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=T$(ee({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),h=d.privateContextValue.labelId,g=((E=a==null?void 0:a.toolbar)==null?void 0:E.hidden)??!1,m=i.field,y=st({elementType:m,externalSlotProps:a==null?void 0:a.field,additionalProps:ee({},g&&{id:h}),ownerState:p}),b=Ge(y,Mwe),v=i.layout??Ap;let x=h;g&&(s?x=`${h}-label`:x=void 0);const w=ee({},a,{toolbar:ee({},a==null?void 0:a.toolbar,{titleId:h}),mobilePaper:ee({"aria-labelledby":x},a==null?void 0:a.mobilePaper)}),O=()=>I.jsx(jD,ee({},d,{children:I.jsxs(u$,{slots:i,slotProps:w,inputRef:l,children:[I.jsx(m,ee({},b)),I.jsx($we,{slots:i,slotProps:w,children:I.jsx(v,ee({},w==null?void 0:w.layout,{slots:i,slotProps:w,children:f()}))})]})}));return process.env.NODE_ENV!=="production"&&(O.displayName="renderPicker"),{renderPicker:O}},r0=R.forwardRef(function(t,n){var c;const r=lt(),i=w$(t,"MuiMobileDatePicker"),a=ee({day:wr,month:wr,year:wr},i.viewRenderers),s=ee({},i,{viewRenderers:a,format:tc(r,i,!1),slots:ee({field:$p},i.slots),slotProps:ee({},i.slotProps,{field:u=>{var d;return ee({},So((d=i.slotProps)==null?void 0:d.field,u),zs(i))},toolbar:ee({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=n0({ref:n,props:s,valueManager:mn,valueType:"date",validator:Ws,steps:null});return l()});process.env.NODE_ENV!=="production"&&(r0.displayName="MobileDatePicker");r0.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Rt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const Iwe=["desktopModeMediaQuery"],jp=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=jv}=r,a=Ge(r,Iwe);return Yf(i,{defaultMatches:!0})?I.jsx(t0,ee({ref:n},a)):I.jsx(r0,ee({ref:n},a))});process.env.NODE_ENV!=="production"&&(jp.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(jp.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,desktopModeMediaQuery:o.string,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Rt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});function Nwe(e){return Pe("MuiPickersToolbarText",e)}const Awe=ke("MuiPickersToolbarText",["root"]),jwe=["className","classes","selected","value"],Lwe=e=>Ee({root:["root"]},Nwe,e),Fwe=ne(et,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),Lp=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersToolbarText"}),{className:i,classes:a,selected:s,value:l}=r,c=Ge(r,jwe),u=Lwe(a);return I.jsx(Fwe,ee({ref:n,className:we(u.root,i),component:"span",ownerState:r},s&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(Lp.displayName="PickersToolbarText");const Vwe=["align","className","classes","selected","typographyClassName","value","variant","width"],Bwe=e=>Ee({root:["root"]},v$,e),zwe=ne(Sn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),er=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:a,classes:s,selected:l,typographyClassName:c,value:u,variant:d,width:f}=r,p=Ge(r,Vwe),h=Bwe(s);return I.jsx(zwe,ee({variant:"text",ref:n,className:we(h.root,a),ownerState:r},f?{sx:{width:f}}:{},p,{children:I.jsx(Lp,{align:i,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(er.displayName="PickersToolbarButton");function Wwe(e){return Pe("MuiTimePickerToolbar",e)}const jl=ke("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),qwe=["ampm","ampmInClock","className","classes"],Uwe=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return Ee({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",r==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Wwe,e)},Hwe=ne(Np,{name:"MuiTimePickerToolbar",slot:"Root"})({}),Ywe=ne(Lp,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Gwe=ne("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${jl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${jl.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),Kwe=ne("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${jl.ampmLabel}`]:t.ampmLabel},{[`&.${jl.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${jl.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function R$(e){const t=ft({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,className:i,classes:a}=t,s=Ge(t,qwe),l=lt(),c=zn(),u=Ip(),d=Uwe(a,u),{value:f,setValue:p,disabled:h,readOnly:g,view:m,setView:y,views:b}=_o(),v=!!(n&&!r&&b.includes("hours")),{meridiemMode:x,handleMeridiemChange:w}=wp(f,n,C=>p(C,{changeImportance:"set"})),O=C=>l.isValid(f)?l.format(f,C):"--",E=I.jsx(Ywe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:d.separator});return I.jsxs(Hwe,ee({landscapeDirection:"row",toolbarTitle:c.timePickerToolbarTitle,ownerState:u,className:we(d.root,i)},s,{children:[I.jsxs(Gwe,{className:d.hourMinuteLabel,ownerState:u,children:[ka(b,"hours")&&I.jsx(er,{tabIndex:-1,variant:"h3",onClick:()=>y("hours"),selected:m==="hours",value:O(n?"hours12h":"hours24h")}),ka(b,["hours","minutes"])&&E,ka(b,"minutes")&&I.jsx(er,{tabIndex:-1,variant:"h3",onClick:()=>y("minutes"),selected:m==="minutes",value:O("minutes")}),ka(b,["minutes","seconds"])&&E,ka(b,"seconds")&&I.jsx(er,{variant:"h3",onClick:()=>y("seconds"),selected:m==="seconds",value:O("seconds")})]}),v&&I.jsxs(Kwe,{className:d.ampmSelection,ownerState:u,children:[I.jsx(er,{disableRipple:!0,variant:"subtitle2",selected:x==="am",typographyClassName:d.ampmLabel,value:to(l,"am"),onClick:g?void 0:()=>w("am"),disabled:h}),I.jsx(er,{disableRipple:!0,variant:"subtitle2",selected:x==="pm",typographyClassName:d.ampmLabel,value:to(l,"pm"),onClick:g?void 0:()=>w("pm"),disabled:h})]})]}))}process.env.NODE_ENV!=="production"&&(R$.propTypes={ampm:o.bool,ampmInClock:o.bool,classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node});function M$(e,t){var l;const n=lt(),r=ft({props:e,name:t}),i=r$(r),a=r.ampm??n.is12HourCycleInCurrentLocale(),s=R.useMemo(()=>{var c;return((c=r.localeText)==null?void 0:c.toolbarTitle)==null?r.localeText:ee({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]);return ee({},r,i,{ampm:a,localeText:s},xv({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:ee({toolbar:R$},r.slots),slotProps:ee({},r.slotProps,{toolbar:ee({ampm:a,ampmInClock:r.ampmInClock},(l=r.slotProps)==null?void 0:l.toolbar)})})}const od=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:y,ampm:b,ampmInClock:v,slots:x,slotProps:w,readOnly:O,disabled:E,sx:C,autoFocus:S,showViewSwitcher:P,disableIgnoringDatePartForTimeValidation:T,timezone:_})=>I.jsx(Av,{view:e,onViewChange:t,focusedView:n&&Ji(n)?n:null,onFocusedViewChange:r,views:i.filter(Ji),value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:y,ampm:b,ampmInClock:v,slots:x,slotProps:w,readOnly:O,disabled:E,sx:C,autoFocus:S,showViewSwitcher:P,disableIgnoringDatePartForTimeValidation:T,timezone:_});process.env.NODE_ENV!=="production"&&(od.displayName="renderTimeViewClock");const Fp=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:y,ampm:b,slots:v,slotProps:x,readOnly:w,disabled:O,sx:E,autoFocus:C,disableIgnoringDatePartForTimeValidation:S,timeSteps:P,skipDisabled:T,timezone:_})=>I.jsx(Lv,{view:e,onViewChange:t,focusedView:n&&Ji(n)?n:null,onFocusedViewChange:r,views:i.filter(Ji),value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:y,ampm:b,slots:v,slotProps:x,readOnly:w,disabled:O,sx:E,autoFocus:C,disableIgnoringDatePartForTimeValidation:S,timeStep:P==null?void 0:P.minutes,skipDisabled:T,timezone:_});process.env.NODE_ENV!=="production"&&(Fp.displayName="renderDigitalClockTimeView");const ea=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:y,ampm:b,slots:v,slotProps:x,readOnly:w,disabled:O,sx:E,autoFocus:C,disableIgnoringDatePartForTimeValidation:S,timeSteps:P,skipDisabled:T,timezone:_})=>I.jsx(Fv,{view:e,onViewChange:t,focusedView:n&&Na(n)?n:null,onFocusedViewChange:r,views:i.filter(Ji),value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minTime:h,maxTime:g,shouldDisableTime:m,minutesStep:y,ampm:b,slots:v,slotProps:x,readOnly:w,disabled:O,sx:E,autoFocus:C,disableIgnoringDatePartForTimeValidation:S,timeSteps:P,skipDisabled:T,timezone:_});process.env.NODE_ENV!=="production"&&(ea.displayName="renderMultiSectionDigitalClockTimeView");const Xwe=["views","format"],I$=(e,t,n)=>{let{views:r,format:i}=t,a=Ge(t,Xwe);if(i)return i;const s=[],l=[];if(r.forEach(d=>{Ji(d)?l.push(d):cs(d)&&s.push(d)}),l.length===0)return tc(e,ee({views:s},a),!1);if(s.length===0)return zd(e,ee({views:l},a));const c=zd(e,ee({views:l},a));return`${tc(e,ee({views:s},a),!1)} ${c}`},Zwe=(e,t,n)=>n?t.filter(r=>!Na(r)||r==="hours"):e?[...t,"meridiem"]:t,Qwe=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function N$({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,a=ee({hours:1,minutes:5,seconds:5},n),s=Qwe(a,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:a,shouldRenderTimeInASingleColumn:s,views:Zwe(t,r,s)}}const o0=R.forwardRef(function(t,n){var m,y;const r=lt(),i=M$(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:a,views:s,timeSteps:l}=N$(i),c=a?Fp:ea,u=ee({hours:c,minutes:c,seconds:c,meridiem:c},i.viewRenderers),d=i.ampmInClock??!0,p=((m=u.hours)==null?void 0:m.name)===ea.name?s:s.filter(b=>b!=="meridiem"),h=ee({},i,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:zd(r,i),views:a?["hours"]:p,slots:ee({field:Rp},i.slots),slotProps:ee({},i.slotProps,{field:b=>{var v;return ee({},So((v=i.slotProps)==null?void 0:v.field,b),zs(i))},toolbar:ee({hidden:!0,ampmInClock:d},(y=i.slotProps)==null?void 0:y.toolbar)})}),{renderPicker:g}=e0({ref:n,props:h,valueManager:mn,valueType:"time",validator:Qc,steps:null});return g()});process.env.NODE_ENV!=="production"&&(o0.displayName="DesktopTimePicker");o0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.any,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Rt,label:o.node,localeText:o.object,maxTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,open:o.bool,openTo:o.oneOf(["hours","meridiem","minutes","seconds"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableTime:o.func,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:o.shape({hours:o.func,meridiem:o.func,minutes:o.func,seconds:o.func}),views:o.arrayOf(o.oneOf(["hours","minutes","seconds"]).isRequired)};const i0=R.forwardRef(function(t,n){var u;const r=lt(),i=M$(t,"MuiMobileTimePicker"),a=ee({hours:od,minutes:od,seconds:od},i.viewRenderers),s=i.ampmInClock??!1,l=ee({},i,{ampmInClock:s,viewRenderers:a,format:zd(r,i),slots:ee({field:Rp},i.slots),slotProps:ee({},i.slotProps,{field:d=>{var f;return ee({},So((f=i.slotProps)==null?void 0:f.field,d),zs(i))},toolbar:ee({hidden:!1,ampmInClock:s},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:c}=n0({ref:n,props:l,valueManager:mn,valueType:"time",validator:Qc,steps:null});return c()});process.env.NODE_ENV!=="production"&&(i0.displayName="MobileTimePicker");i0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.any,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Rt,label:o.node,localeText:o.object,maxTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,open:o.bool,openTo:o.oneOf(["hours","minutes","seconds"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableTime:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["hours","minutes","seconds"]),viewRenderers:o.shape({hours:o.func,minutes:o.func,seconds:o.func}),views:o.arrayOf(o.oneOf(["hours","minutes","seconds"]).isRequired)};const Jwe=["desktopModeMediaQuery"],a0=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=jv}=r,a=Ge(r,Jwe);return Yf(i,{defaultMatches:!0})?I.jsx(o0,ee({ref:n},a)):I.jsx(i0,ee({ref:n},a))});process.env.NODE_ENV!=="production"&&(a0.displayName="TimePicker");process.env.NODE_ENV!=="production"&&(a0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,defaultValue:o.object,desktopModeMediaQuery:o.string,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.any,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Rt,label:o.node,localeText:o.object,maxTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,open:o.bool,openTo:o.oneOf(["hours","meridiem","minutes","seconds"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableTime:o.func,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:o.shape({hours:o.func,meridiem:o.func,minutes:o.func,seconds:o.func}),views:o.arrayOf(o.oneOf(["hours","minutes","seconds"]).isRequired)});function exe(e){return Pe("MuiDateTimePickerTabs",e)}ke("MuiDateTimePickerTabs",["root"]);const txe=e=>cs(e)?"date":"time",nxe=e=>e==="date"?"day":"hours",rxe=e=>Ee({root:["root"]},exe,e),oxe=ne(Ic,{name:"MuiDateTimePickerTabs",slot:"Root"})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Uu.indicator}`]:{bottom:"auto",top:0}}})),s0=function(t){const n=ft({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=I.jsx(sbe,{}),timeIcon:i=I.jsx(lbe,{}),hidden:a=typeof window>"u"||window.innerHeight<667,className:s,classes:l,sx:c}=n,u=zn(),{ownerState:d}=on(),{view:f,setView:p}=_o(),h=rxe(l),g=(m,y)=>{p(nxe(y))};return a?null:I.jsxs(oxe,{ownerState:d,variant:"fullWidth",value:txe(f),onChange:g,className:we(s,h.root),sx:c,children:[I.jsx(is,{value:"date","aria-label":u.dateTableLabel,icon:I.jsx(R.Fragment,{children:r})}),I.jsx(is,{value:"time","aria-label":u.timeTableLabel,icon:I.jsx(R.Fragment,{children:i})})]})};process.env.NODE_ENV!=="production"&&(s0.displayName="DateTimePickerTabs");process.env.NODE_ENV!=="production"&&(s0.propTypes={classes:o.object,className:o.string,dateIcon:o.node,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeIcon:o.node});function ixe(e){return Pe("MuiDateTimePickerToolbar",e)}const Gh=ke("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),axe=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],sxe=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return Ee({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},ixe,e)},lxe=ne(Np,{name:"MuiDateTimePickerToolbar",slot:"Root",shouldForwardProp:e=>rr(e)&&e!=="toolbarVariant"})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${Z1e.content} .${Awe.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",pickerOrientation:"landscape"},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{paddingLeft:24,paddingRight:0}}]})),cxe=ne("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),uxe=ne("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",shouldForwardProp:e=>rr(e)&&e!=="toolbarVariant"})({display:"flex",flexDirection:"row",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({pickerOrientation:e,toolbarVariant:t})=>e==="landscape"&&t!=="desktop",style:{flexDirection:"column"}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:n})=>e==="landscape"&&t!=="desktop"&&n==="rtl",style:{flexDirection:"column-reverse"}}]}),dxe=ne("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",shouldForwardProp:e=>rr(e)&&e!=="toolbarVariant"})({display:"flex",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),PT=ne(Lp,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>rr(e)&&e!=="toolbarVariant"})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),fxe=ne("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Gh.ampmLabel}`]:t.ampmLabel},{[`&.${Gh.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Gh.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),A$=R.createContext(null);process.env.NODE_ENV!=="production"&&(A$.displayName="DateTimePickerToolbarOverrideContext");function j$(e){const t=ft({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,toolbarFormat:i,toolbarPlaceholder:a="––",toolbarTitle:s,className:l,classes:c}=t,u=Ge(t,axe),{value:d,setValue:f,disabled:p,readOnly:h,variant:g,orientation:m,view:y,setView:b,views:v}=_o(),x=zn(),w=Ip(),O=sxe(c,w),E=lt(),C=R.useContext(A$),S=C?C.value:d,P=C?C.setValue:f,T=C?C.view:y,_=C?C.setView:b,{meridiemMode:k,handleMeridiemChange:$}=wp(S,n,L=>P(L,{changeImportance:"set"})),M=C!=null&&C.forceDesktopVariant?"desktop":g,j=M==="desktop",W=!!(n&&!r),H=s??x.dateTimePickerToolbarTitle,X=R.useMemo(()=>E.isValid(S)?i?E.formatByString(S,i):E.format(S,"shortDate"):a,[S,i,a,E]),U=(L,D)=>E.isValid(S)?E.format(S,L):D;return I.jsxs(lxe,ee({className:we(O.root,l),toolbarTitle:H,toolbarVariant:M},u,{ownerState:w,children:[I.jsxs(cxe,{className:O.dateContainer,ownerState:w,children:[v.includes("year")&&I.jsx(er,{tabIndex:-1,variant:"subtitle1",onClick:()=>_("year"),selected:T==="year",value:U("year","–")}),v.includes("day")&&I.jsx(er,{tabIndex:-1,variant:j?"h5":"h4",onClick:()=>_("day"),selected:T==="day",value:X})]}),I.jsxs(uxe,{className:O.timeContainer,ownerState:w,toolbarVariant:M,children:[I.jsxs(dxe,{className:O.timeDigitsContainer,ownerState:w,toolbarVariant:M,children:[v.includes("hours")&&I.jsxs(R.Fragment,{children:[I.jsx(er,{variant:j?"h5":"h3",width:j&&m==="portrait"?Ol:void 0,onClick:()=>_("hours"),selected:T==="hours",value:U(n?"hours12h":"hours24h","--")}),I.jsx(PT,{variant:j?"h5":"h3",value:":",className:O.separator,ownerState:w,toolbarVariant:M}),I.jsx(er,{variant:j?"h5":"h3",width:j&&m==="portrait"?Ol:void 0,onClick:()=>_("minutes"),selected:T==="minutes"||!v.includes("minutes")&&T==="hours",value:U("minutes","--"),disabled:!v.includes("minutes")})]}),v.includes("seconds")&&I.jsxs(R.Fragment,{children:[I.jsx(PT,{variant:j?"h5":"h3",value:":",className:O.separator,ownerState:w,toolbarVariant:M}),I.jsx(er,{variant:j?"h5":"h3",width:j&&m==="portrait"?Ol:void 0,onClick:()=>_("seconds"),selected:T==="seconds",value:U("seconds","--")})]})]}),W&&!j&&I.jsxs(fxe,{className:O.ampmSelection,ownerState:w,children:[I.jsx(er,{variant:"subtitle2",selected:k==="am",typographyClassName:O.ampmLabel,value:to(E,"am"),onClick:h?void 0:()=>$("am"),disabled:p}),I.jsx(er,{variant:"subtitle2",selected:k==="pm",typographyClassName:O.ampmLabel,value:to(E,"pm"),onClick:h?void 0:()=>$("pm"),disabled:p})]}),n&&j&&I.jsx(er,{variant:"h5",onClick:()=>_("meridiem"),selected:T==="meridiem",value:S&&k?to(E,k):"--",width:Ol})]})]}))}process.env.NODE_ENV!=="production"&&(j$.propTypes={ampm:o.bool,ampmInClock:o.bool,classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node,toolbarTitle:o.node});function L$(e,t){var h;const n=lt(),r=ft({props:e,name:t}),i=o$(r),a=r.ampm??n.is12HourCycleInCurrentLocale(),s=R.useMemo(()=>{var g;return((g=r.localeText)==null?void 0:g.toolbarTitle)==null?r.localeText:ee({},r.localeText,{dateTimePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]),{openTo:l,views:c}=xv({views:r.views,openTo:r.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:f,timeSteps:p}=N$({thresholdToRenderTimeInASingleColumn:r.thresholdToRenderTimeInASingleColumn,ampm:a,timeSteps:r.timeSteps,views:c});return ee({},r,i,{timeSteps:p,openTo:l,shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:f,ampm:a,localeText:s,orientation:r.orientation??"portrait",slots:ee({toolbar:j$,tabs:s0},r.slots),slotProps:ee({},r.slotProps,{toolbar:ee({ampm:a},(h=r.slotProps)==null?void 0:h.toolbar)})})}const l0=R.forwardRef(function(t,n){var g;const{toolbar:r,tabs:i,content:a,actionBar:s,shortcuts:l,ownerState:c}=_$(t),{orientation:u}=_o(),{sx:d,className:f,classes:p}=t,h=s&&(((g=s.props.actions)==null?void 0:g.length)??0)>0;return I.jsxs(k$,{ref:n,className:we(Zr.root,p==null?void 0:p.root,f),sx:[{[`& .${Zr.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Zr.actionBar}`]:{gridRow:5}},...Array.isArray(d)?d:[d]],ownerState:c,children:[u==="landscape"?l:r,u==="landscape"?r:l,I.jsxs(D$,{className:we(Zr.contentWrapper,p==null?void 0:p.contentWrapper),ownerState:c,sx:{display:"grid"},children:[a,i,h&&I.jsx(ns,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),s]})});process.env.NODE_ENV!=="production"&&(l0.displayName="DesktopDateTimePickerLayout");process.env.NODE_ENV!=="production"&&(l0.propTypes={children:o.node,classes:o.object,className:o.string,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const pxe=["openTo","focusedView","timeViewsCount"],F$=function(t){var h,g;const{viewRenderers:n,popperView:r,rendererProps:i}=t,{openTo:a,focusedView:s,timeViewsCount:l}=i,c=Ge(i,pxe),u=ee({},c,{autoFocus:!1,focusedView:null,sx:[{[`&.${cg.root}`]:{borderBottom:0},[`&.${cg.root}, .${ug.root}, &.${lg.root}`]:{maxHeight:ds}}]}),d=Na(r),f=d?"day":r,p=d?r:"hours";return I.jsxs(R.Fragment,{children:[(h=n[f])==null?void 0:h.call(n,ee({},i,{view:d?"day":r,focusedView:s&&cs(s)?s:null,views:i.views.filter(cs),sx:[{gridColumn:1},...u.sx]})),l>0&&I.jsxs(R.Fragment,{children:[I.jsx(ns,{orientation:"vertical",sx:{gridColumn:2}}),(g=n[p])==null?void 0:g.call(n,ee({},u,{view:d?r:"hours",focusedView:s&&Na(s)?s:null,openTo:Na(a)?a:"hours",views:i.views.filter(Na),sx:[{gridColumn:3},...u.sx]}))]})]})};process.env.NODE_ENV!=="production"&&(F$.displayName="rendererInterceptor");const c0=R.forwardRef(function(t,n){var p,h,g;const r=lt(),i=L$(t,"MuiDesktopDateTimePicker"),a=i.shouldRenderTimeInASingleColumn?Fp:ea,s=ee({day:wr,month:wr,year:wr,hours:a,minutes:a,seconds:a,meridiem:a},i.viewRenderers),l=i.ampmInClock??!0,u=((p=s.hours)==null?void 0:p.name)===ea.name?i.views:i.views.filter(m=>m!=="meridiem"),d=ee({},i,{viewRenderers:s,format:I$(r,i),views:u,yearsPerRow:i.yearsPerRow??4,ampmInClock:l,slots:ee({field:Mp,layout:l0},i.slots),slotProps:ee({},i.slotProps,{field:m=>{var y;return ee({},So((y=i.slotProps)==null?void 0:y.field,m),zs(i))},toolbar:ee({hidden:!0,ampmInClock:l},(h=i.slotProps)==null?void 0:h.toolbar),tabs:ee({hidden:!0},(g=i.slotProps)==null?void 0:g.tabs)})}),{renderPicker:f}=e0({ref:n,props:d,valueManager:mn,valueType:"date-time",validator:Tp,rendererInterceptor:F$,steps:null});return f()});process.env.NODE_ENV!=="production"&&(c0.displayName="DesktopDateTimePicker");c0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Rt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:o.shape({day:o.func,hours:o.func,meridiem:o.func,minutes:o.func,month:o.func,seconds:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const hxe=[{views:RD},{views:VD}],u0=R.forwardRef(function(t,n){var p,h,g,m,y,b;const r=lt(),i=L$(t,"MuiMobileDateTimePicker"),a=i.shouldRenderTimeInASingleColumn?Fp:ea,s=ee({day:wr,month:wr,year:wr,hours:a,minutes:a,seconds:a,meridiem:a},i.viewRenderers),l=i.ampmInClock??!1,u=((p=s.hours)==null?void 0:p.name)===ea.name?i.views:i.views.filter(v=>v!=="meridiem"),d=ee({},i,{viewRenderers:s,format:I$(r,i),views:u,ampmInClock:l,slots:ee({field:Mp},i.slots),slotProps:ee({},i.slotProps,{field:v=>{var x;return ee({},So((x=i.slotProps)==null?void 0:x.field,v),zs(i))},toolbar:ee({hidden:!1,ampmInClock:l},(h=i.slotProps)==null?void 0:h.toolbar),tabs:ee({hidden:!1},(g=i.slotProps)==null?void 0:g.tabs),layout:ee({},(m=i.slotProps)==null?void 0:m.layout,{sx:sve([{[`& .${cg.root}`]:{width:us},[`& .${ug.root}`]:{flex:1,maxHeight:ds-1,[`.${ug.item}`]:{width:"auto"}},[`& .${lg.root}`]:{width:us,maxHeight:ds,flex:1,[`.${lg.item}`]:{justifyContent:"center"}}}],(b=(y=i.slotProps)==null?void 0:y.layout)==null?void 0:b.sx)})})}),{renderPicker:f}=n0({ref:n,props:d,valueManager:mn,valueType:"date-time",validator:Tp,steps:hxe});return f()});process.env.NODE_ENV!=="production"&&(u0.displayName="MobileDateTimePicker");u0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Rt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:o.shape({day:o.func,hours:o.func,meridiem:o.func,minutes:o.func,month:o.func,seconds:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const mxe=["desktopModeMediaQuery"],d0=R.forwardRef(function(t,n){const r=ft({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=jv}=r,a=Ge(r,mxe);return Yf(i,{defaultMatches:!0})?I.jsx(c0,ee({ref:n},a)):I.jsx(u0,ee({ref:n},a))});process.env.NODE_ENV!=="production"&&(d0.displayName="DateTimePicker");process.env.NODE_ENV!=="production"&&(d0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,desktopModeMediaQuery:o.string,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Rt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:o.shape({day:o.func,hours:o.func,meridiem:o.func,minutes:o.func,month:o.func,seconds:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});var V$={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(kn,function(){var n="week",r="year";return function(i,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(r).add(1,r).date(u),f=s(this).endOf(n);if(d.isBefore(f))return 1}var p=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?s(this).startOf("week").week():Math.ceil(h)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(V$);var gxe=V$.exports;const yxe=kt(gxe);var B$={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(kn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var s=i.prototype,l=s.format;a.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,g,m){var y=m&&m.toUpperCase();return g||p[m]||n[m]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,v,x){return v||x.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(B$);var bxe=B$.exports;const vxe=kt(bxe);var z$={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(kn,function(){return function(n,r,i){r.prototype.isBetween=function(a,s,l,c){var u=i(a),d=i(s),f=(c=c||"()")[0]==="(",p=c[1]===")";return(f?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(d,l):!this.isAfter(d,l))||(f?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(d,l):!this.isBefore(d,l))}}})})(z$);var wxe=z$.exports;const xxe=kt(wxe);var W$={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(kn,function(){return function(n,r,i){var a=r.prototype,s=a.format;i.en.ordinal=function(l){var c=["th","st","nd","rd"],u=l%100;return"["+l+(c[(u-20)%10]||c[u]||c[0])+"]"},a.format=function(l){var c=this,u=this.$locale();if(!this.isValid())return s.bind(this)(l);var d=this.$utils(),f=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),p==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),p==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return p}});return s.bind(this)(f)}}})})(W$);var Oxe=W$.exports;const Txe=kt(Oxe);vn.extend(vxe);vn.extend(yxe);vn.extend(xxe);vn.extend(Txe);const Sxe={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Exe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Kh=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
`),_T=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
`),Cxe=(e,t)=>t?(...n)=>e(...n).locale(t):e;class f0{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=Sxe,this.setLocaleToValue=r=>{const i=this.getCurrentLocaleCode();return i===r.locale()?r:r.locale(i)},this.hasUTCPlugin=()=>typeof vn.utc<"u",this.hasTimezonePlugin=()=>typeof vn.tz<"u",this.isSame=(r,i,a)=>{const s=this.setTimezone(i,this.getTimezone(r));return r.format(a)===s.format(a)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return vn.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=vn.tz.guess();return i!=="UTC"?vn.tz(r,i):vn(r)}return vn(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Kh);return vn.utc(r)},this.createTZDate=(r,i)=>{if(!this.hasUTCPlugin())throw new Error(Kh);if(!this.hasTimezonePlugin())throw new Error(_T);const a=r!==void 0&&!r.endsWith("Z");return vn(r).tz(this.cleanTimezone(i),a)},this.getLocaleFormats=()=>{const r=vn.Ls,i=this.locale||"en";let a=r[i];return a===void 0&&(process.env.NODE_ENV!=="production"&&O$(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),a=r.en),a.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const i=this.getTimezone(r);if(i!=="UTC"){const a=r.tz(this.cleanTimezone(i),!0);if(a.$offset===(r.$offset??0))return r;r.$offset=a.$offset}return r},this.date=(r,i="default")=>{if(r===null)return null;let a;return i==="UTC"?a=this.createUTCDate(r):i==="system"||i==="default"&&!this.hasTimezonePlugin()?a=this.createSystemDate(r):a=this.createTZDate(r,i),this.locale===void 0?a:a.locale(this.locale)},this.getInvalidDate=()=>vn(new Date("Invalid date")),this.getTimezone=r=>{var i;if(this.hasTimezonePlugin()){const a=(i=r.$x)==null?void 0:i.$timezone;if(a)return a}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,i)=>{if(this.getTimezone(r)===i)return r;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(Kh);return r.utc()}if(i==="system")return r.local();if(!this.hasTimezonePlugin()){if(i==="default")return r;throw new Error(_T)}return vn.tz(r,this.cleanTimezone(i))},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.dayjs(r,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const i=this.getLocaleFormats(),a=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(l,c,u)=>c||u.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,l,c)=>{const u=c&&c.toUpperCase();return l||i[c]||a(i[u])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>this.dayjs(r).format(i),this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.toDate().getTime()===i.toDate().getTime(),this.isSameYear=(r,i)=>this.isSame(r,i,"YYYY"),this.isSameMonth=(r,i)=>this.isSame(r,i,"YYYY-MM"),this.isSameDay=(r,i)=>this.isSame(r,i,"YYYY-MM-DD"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r>i,this.isAfterYear=(r,i)=>this.hasUTCPlugin()?!this.isSameYear(r,i)&&r.utc()>i.utc():r.isAfter(i,"year"),this.isAfterDay=(r,i)=>this.hasUTCPlugin()?!this.isSameDay(r,i)&&r.utc()>i.utc():r.isAfter(i,"day"),this.isBefore=(r,i)=>r<i,this.isBeforeYear=(r,i)=>this.hasUTCPlugin()?!this.isSameYear(r,i)&&r.utc()<i.utc():r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>this.hasUTCPlugin()?!this.isSameDay(r,i)&&r.utc()<i.utc():r.isBefore(i,"day"),this.isWithinRange=(r,[i,a])=>r>=i&&r<=a,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"year"):r.add(i,"year")),this.addMonths=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"month"):r.add(i,"month")),this.addWeeks=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"week"):r.add(i,"week")),this.addDays=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"day"):r.add(i,"day")),this.addHours=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"hour"):r.add(i,"hour")),this.addMinutes=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"minute"):r.add(i,"minute")),this.addSeconds=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"second"):r.add(i,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,i)=>this.adjustOffset(r.set("year",i)),this.setMonth=(r,i)=>this.adjustOffset(r.set("month",i)),this.setDate=(r,i)=>this.adjustOffset(r.set("date",i)),this.setHours=(r,i)=>this.adjustOffset(r.set("hour",i)),this.setMinutes=(r,i)=>this.adjustOffset(r.set("minute",i)),this.setSeconds=(r,i)=>this.adjustOffset(r.set("second",i)),this.setMilliseconds=(r,i)=>this.adjustOffset(r.set("millisecond",i)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let s=0,l=i;const c=[];for(;l<a;){const u=Math.floor(s/7);c[u]=c[u]||[],c[u].push(l),l=this.addDays(l,1),s+=1}return c},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,i])=>{const a=this.startOfYear(r),s=this.endOfYear(i),l=[];let c=a;for(;this.isBefore(c,s);)l.push(c),c=this.addYears(c,1);return l},this.dayjs=Cxe(vn,t),this.locale=t,this.formats=ee({},Exe,n),vn.extend(PD)}getDayOfWeek(t){return t.day()+1}}const Pxe=ct(I.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),_xe=({schema:e,rootSchema:t,visible:n,renderers:r,cells:i,path:a,uischemas:s,uischema:l})=>{const c=Jk(s)(e,l.scope,a);if(!n)return null;if(c)return V.createElement(ur,{schema:e,uischema:c,path:a,renderers:r,cells:i});const u=yv(e.allOf,t,"allOf",l,a,s);return V.createElement(V.Fragment,null,u.map((d,f)=>V.createElement(ur,{key:f,schema:d.schema,uischema:d.uischema,path:a,renderers:r,cells:i})))},kxe=pt(3,jhe);var Dxe=xge(_xe);class q$ extends V.Component{render(){const{schema:t,combinatorKeyword:n,path:r,rootSchema:i}=this.props,a=Yge(t,n),s=Xi.uiSchema(a,"VerticalLayout",void 0,i);let l=!1;return s!==null&&zb(s)&&(l=s.elements.length>0),l?V.createElement(ur,{schema:a,path:r,uischema:s}):null}}const U$=({open:e,handleClose:t,confirm:n,cancel:r,id:i})=>V.createElement(Vf,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},V.createElement(ly,{id:"alert-dialog-title"},"Clear form?"),V.createElement(zf,null,V.createElement(sy,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),V.createElement(Bf,null,V.createElement(Sn,{onClick:r,color:"primary"},"No"),V.createElement(Sn,{onClick:n,color:"primary",autoFocus:!0,id:`${i}-confirm-yes`},"Yes"))),$xe=({handleChange:e,schema:t,rootSchema:n,indexOfFittingSchema:r,visible:i,path:a,renderers:s,cells:l,uischema:c,uischemas:u,id:d,data:f})=>{const[p,h]=V.useState(r||0),[g,m]=V.useState(!1),[y,b]=V.useState(0),v=V.useCallback(()=>m(!1),[m]),x=V.useCallback((S,P)=>{ut(f)||typeof f==typeof Ao(C[P].schema,n)?h(P):(b(P),m(!0))},[m,h,f]),w=S=>{e(a,Ao(C[S].schema,n)),h(S)},O=V.useCallback(()=>{w(y),m(!1)},[e,Ao,y]),E="anyOf",C=yv(t.anyOf,n,E,c,a,u);return i?V.createElement(V.Fragment,null,V.createElement(q$,{schema:t,combinatorKeyword:E,path:a,rootSchema:n}),V.createElement(Ic,{value:p,onChange:x},C.map(S=>V.createElement(is,{key:S.label,label:S.label}))),C.map((S,P)=>p===P&&V.createElement(ur,{key:P,schema:S.schema,uischema:S.uischema,path:a,renderers:s,cells:l})),V.createElement(U$,{cancel:v,confirm:O,id:"anyOf-"+d,open:g,handleClose:v})):null},Rxe=pt(3,Lhe);var Mxe=wge($xe);const Ixe=ne(Hf)({borderBottom:"none"}),ic=({children:e,...t})=>V.createElement(Ixe,{...t},e),Nxe=ne(QE)(({theme:e})=>({color:e.palette.error.main})),H$=({errorMessages:e,id:t})=>V.createElement(ar,{id:t,title:e},V.createElement(Nxe,{badgeContent:e.split(`
`).length},V.createElement(yye,{color:"inherit"}))),Axe={paddingLeft:0,paddingRight:0},jxe=V.memo(function({numColumns:t,errors:n,label:r,description:i,path:a,addItem:s,schema:l,enabled:c,translations:u,rootSchema:d,disableAdd:f}){return V.createElement(Mc,null,V.createElement(ic,{colSpan:t},V.createElement(gy,null,V.createElement(Pt,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},V.createElement(Pt,{item:!0},V.createElement(et,{variant:"h6"},r)),V.createElement(Pt,{item:!0},n.length!==0&&V.createElement(Pt,{item:!0},V.createElement(H$,{id:"tooltip-validation",errorMessages:n})))),i&&V.createElement(sn,null,i))),c&&!f?V.createElement(ic,{align:"right",style:Axe},V.createElement(ar,{id:"tooltip-add",title:u.addTooltip,placement:"bottom"},V.createElement(Gt,{"aria-label":u.addAriaLabel,onClick:s(a,Ao(l,d)),size:"large"},V.createElement(SD,null)))):null)}),kT={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},Y$=(e,t,n,r,i)=>{if(t.type==="object")return G$(t).map(a=>{var c,u;const s=qb.compose(n,a),l={propName:a,schema:t,title:((u=(c=t.properties)==null?void 0:c[a])==null?void 0:u.title)??My(a),rowPath:n,cellPath:s,enabled:r,cells:i};return V.createElement(e,{key:s,...l})});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return V.createElement(e,{key:n,...a})}},G$=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],Lxe=({numColumns:e,translations:t})=>V.createElement(Mc,null,V.createElement(ic,{colSpan:e},V.createElement(et,{align:"center"},t.noDataMessage))),Fxe=V.memo(function({title:t}){return V.createElement(Hf,null,t)}),Vxe=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=jk(gye(tD(n,t.schema)(e.core).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},DT=e=>({type:"Control",scope:e,label:!1}),Bxe=V.memo(function({path:t,propName:n,schema:r,rootSchema:i,errors:a,enabled:s,renderers:l,cells:c,isValid:u}){return V.createElement(ic,null,r.properties?V.createElement(oT,{schema:cr.schema(r,`#/properties/${Ad(n)}`,i),uischema:DT(`#/properties/${Ad(n)}`),path:t,enabled:s,renderers:l,cells:c}):V.createElement(oT,{schema:r,uischema:DT("#"),path:t,enabled:s,renderers:l,cells:c}),V.createElement(sn,{error:!u},!u&&a))}),zxe=e=>{const t=yp(),n=Vxe(t,e),r=ut(n.errors);return V.createElement(Bxe,{...n,isValid:r})},Wxe=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:i,moveDownCreator:a,enableUp:s,enableDown:l,showSortButtons:c,enabled:u,cells:d,path:f,translations:p,disableRemove:h})=>{const g=V.useMemo(()=>i(f,n),[i,f,n]),m=V.useMemo(()=>a(f,n),[a,f,n]);return V.createElement(Mc,{key:e,hover:!0},Y$(zxe,t,e,u,d),u?V.createElement(ic,{style:c?kT.fixedCell:kT.fixedCellSmall},V.createElement(Pt,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},c?V.createElement(V.Fragment,null,V.createElement(Pt,{item:!0},V.createElement(ar,{id:"tooltip-up",title:p.up,placement:"bottom",open:s?void 0:!1},V.createElement(Gt,{"aria-label":p.upAriaLabel,onClick:g,disabled:!s,size:"large"},V.createElement(TD,null)))),V.createElement(Pt,{item:!0},V.createElement(ar,{id:"tooltip-down",title:p.down,placement:"bottom",open:l?void 0:!1},V.createElement(Gt,{"aria-label":p.downAriaLabel,onClick:m,disabled:!l,size:"large"},V.createElement(OD,null))))):null,h?null:V.createElement(Pt,{item:!0},V.createElement(ar,{id:"tooltip-remove",title:p.removeTooltip,placement:"bottom"},V.createElement(Gt,{"aria-label":p.removeAriaLabel,onClick:()=>r(e,n),size:"large"},V.createElement(bi,null)))))):null)},qxe=V.memo(Wxe),Uxe=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:i,moveDown:a,uischema:s,config:l,enabled:c,cells:u,translations:d,disableRemove:f})=>{if(e===0)return V.createElement(Lxe,{numColumns:G$(n).length+1,translations:d});const h=$t({},l,s.options);return V.createElement(V.Fragment,null,np(e).map(g=>{const m=qb.compose(t,`${g}`);return V.createElement(qxe,{key:m,childPath:m,rowIndex:g,schema:n,openDeleteDialog:r,moveUpCreator:i,moveDownCreator:a,enableUp:g!==0,enableDown:g!==e-1,showSortButtons:h.showSortButtons||h.showArrayTableSortButtons,enabled:c,cells:u,path:t,translations:d,disableRemove:f})}))};class Hxe extends V.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,description:n,path:r,schema:i,rootSchema:a,uischema:s,errors:l,openDeleteDialog:c,visible:u,enabled:d,cells:f,translations:p,disableAdd:h,disableRemove:g,config:m}=this.props,y=$t({},m,s.options),b=h||y.disableAdd,v=g||y.disableRemove,x=s,w=i.type==="object",O=w?Y$(Fxe,i,r,d,f):void 0;return u?V.createElement(MC,null,V.createElement(NC,null,V.createElement(jxe,{errors:l,label:t,description:n,addItem:this.addItem,numColumns:w?O.length:1,path:r,uischema:x,schema:i,rootSchema:a,enabled:d,translations:p,disableAdd:b}),w&&V.createElement(Mc,null,O,d?V.createElement(Hf,null):null)),V.createElement(IC,null,V.createElement(Uxe,{openDeleteDialog:c,translations:p,...this.props,disableRemove:v}))):null}}const Yxe=V.memo(function({open:t,onClose:n,onConfirm:r,onCancel:i,title:a,message:s,acceptText:l,declineText:c}){return V.createElement(Vf,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},V.createElement(ly,{id:"alert-dialog-confirmdelete-title"},a),V.createElement(zf,null,V.createElement(sy,{id:"alert-dialog-confirmdelete-description"},s)),V.createElement(Bf,null,V.createElement(Sn,{onClick:i,color:"primary"},c),V.createElement(Sn,{onClick:r,color:"primary"},l)))}),Gxe=e=>{const[t,n]=V.useState(!1),[r,i]=V.useState(void 0),[a,s]=V.useState(void 0),{removeItems:l,visible:c,translations:u}=e,d=V.useCallback((g,m)=>{n(!0),i(g),s(m)},[n,i,s]),f=V.useCallback(()=>n(!1),[n]),p=V.useCallback(()=>{const g=r.substring(0,r.lastIndexOf("."));l(g,[a])(),n(!1)},[n,r,a]),h=V.useCallback(()=>n(!1),[n]);return c?V.createElement(V.Fragment,null,V.createElement(Hxe,{...e,openDeleteDialog:d,translations:u}),V.createElement(Yxe,{open:t,onCancel:f,onConfirm:p,onClose:h,acceptText:u.deleteDialogAccept,declineText:u.deleteDialogDecline,title:u.deleteDialogTitle,message:u.deleteDialogMessage})):null},Kxe=pt(3,Fs(Bhe,Whe));var Xxe=bv(Ho(vv(Gxe)));const pr=()=>{const[e,t]=V.useState(!1),n=V.useCallback(()=>t(!0),[]),r=V.useCallback(()=>t(!1),[]);return[e,n,r]},K$=e=>{const{description:t,errors:n,visible:r,required:i,label:a,data:s,className:l,id:c,enabled:u,uischema:d,path:f,handleChange:p,options:h,config:g,getOptionLabel:m,renderOption:y,filterOptions:b,isValid:v}=e,x=$t({},g,d.options),[w,O]=V.useState(s??""),[E,C,S]=pr(),P=h.find($=>$.value===s)??null,T=!Er(r,t,E,x.showUnfocusedDescription),_=T?t:v?null:n,k=T&&!v?n:null;return r?V.createElement(V.Fragment,null,V.createElement(XE,{className:l,id:c,disabled:!u,value:P,onChange:($,M)=>{p(f,M==null?void 0:M.value)},inputValue:w,onInputChange:($,M)=>{O(M)},autoHighlight:!0,autoComplete:!0,fullWidth:!0,options:h,getOptionLabel:m||($=>$==null?void 0:$.label),freeSolo:!1,renderInput:$=>V.createElement(Li,{label:a,type:"text",inputProps:$.inputProps,inputRef:$.InputProps.ref,autoFocus:x.focus,disabled:!u,...$,id:c,required:i&&!x.hideRequiredAsterisk,error:!v,fullWidth:!x.trim,InputLabelProps:s?{shrink:!0}:void 0,onFocus:C,onBlur:S,focused:E}),renderOption:y,filterOptions:b}),V.createElement(sn,{error:!v&&!T},_),V.createElement(sn,{error:!v},k)):null},p0=V.memo(function(t){const{data:n,className:r,id:i,enabled:a,uischema:s,path:l,handleChange:c,config:u,inputProps:d}=t,f=$t({},u,s.options),p=$t({},d,{autoFocus:!!f.focus}),h=!!n;return V.createElement(oy,{checked:h,onChange:(g,m)=>c(l,m),className:r,id:i,disabled:!a,inputProps:p})});vn.extend(PD);const h0=(e,t,n)=>r=>{if(!r)t(e,void 0);else if(r.toString()!=="Invalid Date"){const i=X$(r,n);t(e,i)}},m0=(e,t,n,r,i,a)=>s=>{const l=vn(s.target.value,n),c=X$(l,r);c.toString()==="Invalid Date"?(t(e,void 0),i()):t(e,c),a()},X$=(e,t)=>{let n=e.format(t);const r=t.indexOf("YYYY");if(e.year()<1e3&&r!==-1){const i=n.slice(0,r),a=n.slice(r);e.year()>=100?n=[i,0,a].join(""):e.year()>=10?n=[i,0,0,a].join(""):e.year()>=1&&(n=[i,0,0,0,a].join(""))}return n},g0=(e,t)=>{if(!e)return null;const n=vn(e,t);return n.toString()==="Invalid Date"?null:n},Zxe=(e,t,n,r,i,a)=>e.map((s,l)=>V.createElement(Pt,{item:!0,key:`${n}-${l}`,xs:!0},V.createElement(ur,{uischema:s,schema:t,path:n,enabled:r,renderers:i,cells:a}))),Qxe=({visible:e,elements:t,schema:n,path:r,enabled:i,direction:a,renderers:s,cells:l})=>ut(t)||!e?null:V.createElement(Pt,{container:!0,direction:a,spacing:a==="row"?2:0},Zxe(t,n,r,i,s,l)),tu=V.memo(Qxe),Z$=e=>function(n){const r=yp(),i=Vs({jsonforms:{...r}});return V.createElement(e,{...n,ajv:i})},$T={standard:Pc,filled:Sc,outlined:kc},Q$="outlined";function J$(){const{variant:e=Q$}=ft({props:{},name:"MuiTextField"});return e}function sa(){const e=J$();return $T[e]??$T[Q$]}const Jxe=e=>e.target.value,la=(e,t,n,r,i=Jxe,a=300,s=!1,l=!1)=>{const[c,u]=V.useState(n??t);V.useEffect(()=>{u(n??t)},[n]);const d=V.useCallback(pD(h=>e(r,h),a),[e,r,a]);V.useEffect(()=>{!l&&s&&d.flush()},[l,s,d]);const f=V.useCallback(h=>{const g=i(h);u(g??t),d(g)},[d,i]),p=V.useCallback(()=>{u(t),e(r,void 0)},[t,e,r]);return[c,f,p]},eOe={"enum.none":"None"},tOe=e=>e===""?void 0:parseInt(e,10),nOe=e=>tOe(e.target.value),eR=V.memo(function(t){const[n,r,i]=pr(),{data:a,className:s,id:l,enabled:c,uischema:u,isValid:d,path:f,handleChange:p,config:h,label:g}=t,m=sa(),y={step:"1"},b=$t({},h,u.options),[v,x]=la(p,"",a,f,nOe,void 0,!0,n);return V.createElement(m,{label:g,type:"number",value:v,onFocus:r,onBlur:i,onChange:x,className:s,id:l,disabled:!c,autoFocus:b.focus,inputProps:y,fullWidth:!0,error:!d})}),rOe=e=>e===""?void 0:parseFloat(e),oOe=e=>rOe(e.target.value),tR=V.memo(function(t){const[n,r,i]=pr(),{data:a,className:s,id:l,enabled:c,uischema:u,isValid:d,path:f,handleChange:p,config:h,label:g}=t,m=sa(),y={step:"0.1"},b=$t({},h,u.options),[v,x]=la(p,"",a,f,oOe,void 0,!0,n);return V.createElement(m,{type:"number",label:g,value:v,onChange:x,onFocus:r,onBlur:i,className:s,id:l,disabled:!c,autoFocus:b.focus,inputProps:y,fullWidth:!0,error:!d})}),iOe=V.memo(function(t){const[n,r,i]=pr(),{className:a,id:s,enabled:l,uischema:c,isValid:u,path:d,handleChange:f,schema:p,config:h,label:g}=t,m=sa(),y=p.maxLength,b=$t({},h,c.options);let v;b.restrict?v={maxLength:y}:v={};const x=t.toFormatted(t.data),w=V.useCallback(C=>t.fromFormatted(C.currentTarget.value),[t.fromFormatted]),[O,E]=la(f,"",x,d,w,void 0,!0,n);return V.createElement(m,{type:"text",value:O,onChange:E,onFocus:r,onBlur:i,className:a,id:s,label:g,disabled:!l,autoFocus:b.focus,multiline:b.multi,fullWidth:!b.trim||y===void 0,inputProps:v,error:!u})}),aOe=e=>e.target.value===""?void 0:e.target.value,nR=V.memo(function(t){var j,W,H;const[n,r,i]=pr(),[a,s]=V.useState(!1),{data:l,config:c,className:u,id:d,enabled:f,uischema:p,isValid:h,path:g,handleChange:m,schema:y,muiInputProps:b,label:v,inputComponent:x}=t,w=sa(),O=y.maxLength,E=$t({},c,p.options);let C;E.restrict?C={maxLength:O}:C={},C=$t(C,b),E.trim&&O!==void 0&&(C.size=O);const[S,P,T]=la(m,"",l,g,aOe,void 0,!0,n),_=()=>s(!0),k=()=>s(!1),$=ao(),M={background:((H=(W=(j=$.jsonforms)==null?void 0:j.input)==null?void 0:W.delete)==null?void 0:H.background)||$.palette.background.default,borderRadius:"50%"};return V.createElement(w,{label:v,type:E.format==="password"?"password":"text",value:S,onChange:P,className:u,onBlur:i,onFocus:r,id:d,disabled:!f,autoFocus:E.focus,multiline:E.multi,fullWidth:!E.trim||O===void 0,inputProps:C,error:!h,onPointerEnter:_,onPointerLeave:k,endAdornment:V.createElement(uy,{position:"end",style:{display:!a||!f||l===void 0?"none":"flex",position:"absolute",right:0}},V.createElement(Gt,{"aria-label":"Clear input field",onClick:T,size:"large"},V.createElement(wye,{style:M}))),inputComponent:x})}),sOe=V.memo(function(t){const{data:n,className:r,id:i,enabled:a,uischema:s,isValid:l,path:c,handleChange:u,config:d,label:f}=t,p=sa(),h=$t({},d,s.options),[g,m]=la(u,"",n,c);return V.createElement(p,{type:"time",value:g,onChange:m,className:r,id:i,label:f,disabled:!a,autoFocus:h.focus,fullWidth:!0,error:!l})}),Vp=V.memo(function(t){const{data:n,className:r,id:i,enabled:a,schema:s,uischema:l,isValid:c,path:u,handleChange:d,options:f,config:p,label:h,t:g,multiple:m}=t,y=$t({},p,l.options),b=V.useMemo(()=>g("enum.none",eOe["enum.none"],{schema:s,uischema:l,path:u}),[g,s,l,u]);return V.createElement(Dc,{className:r,id:i,label:h,disabled:!a,autoFocus:y.focus,value:n!==void 0?n:"",onChange:v=>d(u,v.target.value||void 0),fullWidth:!0,multiple:m||!1,error:!c},[V.createElement(os,{value:"",key:"jsonforms.enum.none"},V.createElement("em",null,b))].concat(f.map(v=>V.createElement(os,{value:v.value,key:v.value},v.label))))}),rR=V.memo(function(t){const{data:n,className:r,id:i,enabled:a,uischema:s,path:l,handleChange:c,config:u,inputProps:d}=t,f=$t({},u,s.options),p=$t({},d,{autoFocus:!!f.focus}),h=!!n;return V.createElement(RC,{checked:h,onChange:(g,m)=>c(l,m),className:r,id:i,disabled:!a,inputProps:p})}),lOe=({config:e,id:t,schema:n,visible:r,errors:i,description:a,label:s,required:l,path:c,options:u,data:d,addItem:f,removeItem:p,handleChange:h,...g})=>{const[m,y,b]=pr(),v=i.length===0,x=$t({},e,g.uischema.options),w=!Er(r,a,m,x.showUnfocusedDescription);return r?V.createElement(hi,{component:"fieldset",fullWidth:!x.trim,onFocus:y,onBlur:b},V.createElement(Cc,{error:!v,component:"legend",required:Kc(l,x.hideRequiredAsterisk)},s),V.createElement(cy,{row:!0},u.map((O,E)=>{const C=qb.compose(c,`${E}`),S=d!=null&&d.includes(O.value)?O.value:void 0;return V.createElement(Ec,{id:t+"-label-"+O.value,key:O.value,control:V.createElement(p0,{id:t+"-"+O.value,key:"checkbox-"+O.value,isValid:ut(i),path:C,handleChange:(P,T)=>T?f(c,O.value):p(c,O.value),data:S,errors:i,schema:n,visible:r,...g}),label:O.label})})),V.createElement(sn,{error:!v},v?w?a:null:i)):null},cOe=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),uOe=e=>e.type==="string"&&e.enum!==void 0,dOe=pt(5,qt(Xt("Control"),qt(Yr(e=>Ln(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),cv("items",(e,t)=>{const n=e.$ref?lr(t,e.$ref,t):e;return cOe(n)||uOe(n)}))));var fOe=Pge(lOe);const pOe=({renderers:e,cells:t,uischemas:n,schema:r,label:i,path:a,visible:s,enabled:l,uischema:c,rootSchema:u})=>{const d=V.useMemo(()=>hp(n,r,c.scope,a,()=>ut(a)?Xi.uiSchema(r,"VerticalLayout",void 0,u):{...Xi.uiSchema(r,"Group",void 0,u),label:i},c,u),[n,r,c.scope,a,i,c,u]);return s?V.createElement(ur,{visible:s,enabled:l,schema:r,uischema:d,path:a,renderers:e,cells:t}):null},hOe=pt(2,Ahe);var mOe=Oge(pOe);const gOe=({handleChange:e,schema:t,path:n,renderers:r,cells:i,rootSchema:a,id:s,visible:l,indexOfFittingSchema:c,uischema:u,uischemas:d,data:f})=>{const[p,h]=V.useState(!1),[g,m]=V.useState(c||0),[y,b]=V.useState(0),v=V.useCallback(()=>h(!1),[h]),x=V.useCallback(()=>{h(!1)},[h]),w=V.useMemo(()=>yv(t.oneOf,a,"oneOf",u,n,d),[t,a,u,n,d]),O=S=>{e(n,Ao(w[S].schema,a)),m(S)},E=V.useCallback(()=>{O(y),h(!1)},[e,Ao,y]),C=V.useCallback((S,P)=>{b(P),ut(f)?O(P):h(!0)},[h,m,f]);return l?V.createElement(V.Fragment,null,V.createElement(q$,{schema:t,combinatorKeyword:"oneOf",path:n,rootSchema:a}),V.createElement(Ic,{value:g,onChange:C},w.map(S=>V.createElement(is,{key:S.label,label:S.label}))),w.map((S,P)=>g===P&&V.createElement(ur,{key:P,schema:S.schema,uischema:S.uischema,path:n,renderers:r,cells:i})),V.createElement(U$,{cancel:x,confirm:E,id:"oneOf-"+s,open:p,handleClose:v})):null},yOe=pt(3,Fhe);var bOe=vge(gOe);const vOe=pt(1,Xt("Label")),wOe=({text:e,visible:t})=>t?V.createElement(et,{variant:"h6"},e):null;var xOe=vD(wOe);const oR=V.memo(function({label:t,description:n,errors:r,addItem:i,path:a,enabled:s,createDefault:l,translations:c,disableAdd:u}){return V.createElement(AC,{disableGutters:!0},V.createElement(gy,null,V.createElement(Pt,{container:!0,alignItems:"center",justifyContent:"space-between"},V.createElement(Pt,{item:!0},V.createElement(Pt,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},V.createElement(Pt,{item:!0},V.createElement(et,{variant:"h6"},t)),V.createElement(Pt,{item:!0},r.length!==0&&V.createElement(Pt,{item:!0},V.createElement(H$,{id:"tooltip-validation",errorMessages:r}))))),s&&!u&&V.createElement(Pt,{item:!0},V.createElement(Pt,{container:!0},V.createElement(Pt,{item:!0},V.createElement(ar,{id:"tooltip-add",title:c.addTooltip,placement:"bottom"},V.createElement(Gt,{"aria-label":c.addTooltip,onClick:i(a,l()),size:"large"},V.createElement(SD,null))))))),n&&V.createElement(sn,null,n)))}),OOe=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:i,removeItem:a,path:s,translations:l,disableRemove:c})=>V.createElement(sC,{selected:n,onClick:i(e)},V.createElement(cC,null,V.createElement(ny,{"aria-label":"Index"},e+1)),V.createElement(dy,{primary:t}),r&&!c&&V.createElement(qf,null,V.createElement(ar,{id:"tooltip-remove",title:l.removeTooltip,placement:"bottom"},V.createElement(Gt,{"aria-label":l.removeAriaLabel,onClick:a(s,e),size:"large"},V.createElement(bi,null)))));var TOe=Tge(OOe);const SOe=({uischemas:e,schema:t,uischema:n,path:r,enabled:i,errors:a,visible:s,label:l,required:c,removeItems:u,addItem:d,data:f,renderers:p,cells:h,config:g,rootSchema:m,description:y,disableAdd:b,disableRemove:v,translations:x})=>{const[w,O]=V.useState(void 0),E=V.useCallback(($,M)=>()=>{u($,[M])(),w===M?O(void 0):w>M&&O(w-1)},[u,O]),C=V.useCallback($=>()=>O($),[O]),S=V.useCallback(()=>Ao(t,m),[Ao]),P=V.useMemo(()=>hp(e,t,n.scope,r,void 0,n,m),[e,t,n.scope,r,n,m]),T=$t({},g,n.options),_=b||T.disableAdd,k=v||T.disableRemove;return V.useEffect(()=>{O(void 0)},[t]),s?V.createElement(V.Fragment,null,V.createElement(oR,{translations:x,label:lD(l,c,T.hideRequiredAsterisk),description:y,errors:a,path:r,enabled:i,addItem:d,createDefault:S,disableAdd:_}),V.createElement(Pt,{container:!0,direction:"row",spacing:2},V.createElement(Pt,{item:!0,xs:3},V.createElement(Wf,null,f>0?_D(np(f),$=>V.createElement(TOe,{index:$,path:r,schema:t,enabled:i,handleSelect:C,removeItem:E,selected:w===$,key:$,uischema:P,childLabelProp:T.elementLabelProp,translations:x,disableRemove:k})):V.createElement("p",null,x.noDataMessage))),V.createElement(Pt,{item:!0,xs:!0},w!==void 0?V.createElement(ur,{renderers:p,cells:h,visible:s,schema:t,uischema:P,path:js(r,`${w}`)}):V.createElement(et,{variant:"h6"},x.noSelection)))):null},EOe=pt(4,qt(Xt("ListWithDetail"),Zk));var COe=bv(Ho(vv(SOe)));const qs=e=>{const[t,n,r]=pr(),{id:i,description:a,errors:s,label:l,uischema:c,visible:u,required:d,config:f,input:p}=e,h=J$(),g=s.length===0,m=$t({},f,c.options),y=!Er(u,a,t,m.showUnfocusedDescription),b=y?a:g?null:s,v=y&&!g?s:null,x=p;return u?V.createElement(hi,{fullWidth:!m.trim,onFocus:n,onBlur:r,variant:h,id:i},V.createElement(_c,{htmlFor:i+"-input",error:!g,required:Kc(d,m.hideRequiredAsterisk)},l),V.createElement(x,{...e,id:i+"-input",isValid:g,visible:u}),V.createElement(sn,{error:!g&&!y},b),V.createElement(sn,{error:!g},v)):null},iR=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),aR=e=>e.find(t=>t.type==="string"&&t.enum===void 0),POe=e=>{const[t,n,r]=pr(),{data:i,config:a,className:s,id:l,enabled:c,uischema:u,isValid:d,path:f,handleChange:p,schema:h,label:g}=e,m=sa(),y=iR(h.anyOf),v=aR(h.anyOf).maxLength,x=V.useMemo(()=>$t({},a,u.options),[a,u.options]),w=V.useMemo(()=>{let S={};return x.restrict&&(S={maxLength:v}),x.trim&&v!==void 0&&(S.size=v),S.list=e.id+"datalist",S},[x,e.id]),[O,E]=la(p,"",i,f,void 0,void 0,!0,t),C=V.createElement("datalist",{id:e.id+"datalist"},y.enum.map(S=>V.createElement("option",{value:S,key:S})));return V.createElement(m,{type:"text",value:O,onChange:E,onFocus:n,onBlur:r,className:s,id:l,label:g,disabled:!c,autoFocus:x.focus,fullWidth:!x.trim||v===void 0,inputProps:w,error:!d,endAdornment:C})};class _Oe extends Mme{render(){return V.createElement(qs,{...this.props,input:POe})}}const kOe=e=>{const t=iR(e),n=aR(e),i=e.filter(a=>a!==t||a!==n).find(a=>a.type&&a.type!=="string");return t&&n&&!i},DOe=qt(Xt("Control"),Yr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf")&&kOe(e.anyOf))),$Oe=pt(5,DOe);var ROe=Bn(_Oe);const MOe=({data:e,visible:t,label:n,id:r,enabled:i,uischema:a,schema:s,rootSchema:l,handleChange:c,errors:u,path:d,config:f,description:p})=>{const h=u.length===0,g=$t({},f,a.options),m=!Er(t,p,!1,g.showUnfocusedDescription),y=!m&&!Er(t,p,!0,!0),b=m?p:h?null:u,v=m&&!h?u:null,x=[],w=`${r}-tip`,O=`${r}-help1`,E=`${r}-help2`;y&&x.push(w),b&&x.push(O),v&&x.push(E);const C=x.join(" ");return t?V.createElement(V.Fragment,null,V.createElement(ar,{id:w,title:y?p:""},V.createElement(Ec,{label:n,id:r,control:V.createElement(p0,{id:`${r}-input`,isValid:ut(u),data:e,enabled:i,visible:t,path:d,uischema:a,schema:s,rootSchema:l,handleChange:c,errors:u,config:f,inputProps:{"aria-describedby":C}})})),V.createElement(sn,{id:O,error:!h&&!m},b),V.createElement(sn,{id:E,error:!h},v)):null},IOe=pt(2,pp);var NOe=Bn(MOe);const AOe=({data:e,visible:t,label:n,id:r,enabled:i,uischema:a,schema:s,rootSchema:l,handleChange:c,errors:u,path:d,config:f,description:p})=>{const h=u.length===0,g=$t({},f,a.options),m=!Er(t,p,!1,g.showUnfocusedDescription),y=!m&&!Er(t,p,!0,!0),b=m?p:h?null:u,v=m&&!h?u:null,x=[],w=`${r}-tip`,O=`${r}-help1`,E=`${r}-help2`;y&&x.push(w),b&&x.push(O),v&&x.push(E);const C=x.join(" ");return t?V.createElement(V.Fragment,null,V.createElement(ar,{id:w,title:y?p:""},V.createElement(Ec,{label:n,id:r,control:V.createElement(rR,{id:`${r}-input`,isValid:ut(u),data:e,enabled:i,visible:t,path:d,uischema:a,schema:s,rootSchema:l,handleChange:c,errors:u,config:f,inputProps:{"aria-describedby":C}})})),V.createElement(sn,{id:O,error:!h&&!m},b),V.createElement(sn,{id:E,error:!h},v)):null},jOe=pt(3,qt(pp,lo("toggle",!0)));var LOe=Bn(AOe);const FOe=e=>{const[t,n,r]=pr(),{description:i,id:a,errors:s,label:l,uischema:c,visible:u,enabled:d,required:f,path:p,handleChange:h,data:g,config:m}=e,y=s.length===0,b=$t({},m,c.options),v=!Er(u,i,t,b.showUnfocusedDescription),[x,w]=V.useState(0),[O,E]=V.useState(!1),C=b.dateFormat??"YYYY-MM-DD",S=b.dateSaveFormat??Ype,P=b.views??["year","day"],T=v?i:y?null:s,_=v&&!y?s:null,k=V.useCallback(()=>w(W=>W+1),[]),$=V.useMemo(()=>h0(p,h,S),[p,h,S]),M=V.useMemo(()=>m0(p,h,C,S,k,r),[p,h,C,S,k]),j=g0(g,S);return u?V.createElement(ia,{dateAdapter:f0},V.createElement(jp,{open:O,onOpen:()=>E(!0),onClose:()=>E(!1),key:x,label:l,value:j,onAccept:$,format:C,views:P,disabled:!d,slotProps:{actionBar:({wrapperVariant:W})=>({actions:W==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!b.hideRequiredAsterisk,autoFocus:b.focus,error:!y,fullWidth:!b.trim,inputProps:{type:"text"},InputLabelProps:g?{shrink:!0}:void 0,onFocus:n,onBlur:M}}}),V.createElement(sn,{error:!y&&!v},T),V.createElement(sn,{error:!y},_)):null},VOe=pt(4,pv);var BOe=Bn(FOe);const zOe=e=>{const[t,n,r]=pr(),{id:i,description:a,errors:s,label:l,uischema:c,visible:u,enabled:d,required:f,path:p,handleChange:h,data:g,config:m}=e,y=$t({},m,c.options),b=s.length===0,v=!Er(u,a,t,y.showUnfocusedDescription),x=y.dateTimeFormat??"YYYY-MM-DD HH:mm",w=y.dateTimeSaveFormat??Kpe,[O,E]=V.useState(0),[C,S]=V.useState(!1),P=y.views??["year","day","hours","minutes"],T=v?a:b?null:s,_=v&&!b?s:null,k=V.useCallback(()=>E(W=>W+1),[]),$=V.useMemo(()=>h0(p,h,w),[p,h,w]),M=V.useMemo(()=>m0(p,h,x,w,k,r),[p,h,x,w,k]),j=g0(g,w);return u?V.createElement(ia,{dateAdapter:f0},V.createElement(d0,{open:C,onOpen:()=>S(!0),onClose:()=>S(!1),key:O,label:l,value:j,onAccept:$,format:x,ampm:!!y.ampm,views:P,disabled:!d,slotProps:{actionBar:({wrapperVariant:W})=>({actions:W==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:i+"-input",required:f&&!y.hideRequiredAsterisk,autoFocus:y.focus,error:!b,fullWidth:!y.trim,inputProps:{type:"text"},InputLabelProps:g?{shrink:!0}:void 0,onFocus:n,onBlur:M}}}),V.createElement(sn,{error:!b&&!v},T),V.createElement(sn,{error:!b},_)):null},WOe=pt(2,Vhe);var qOe=Bn(zOe);const UOe=e=>{const{config:t,uischema:n,errors:r}=e,i=$t({},t,n.options),a=r.length===0;return i.autocomplete===!1?V.createElement(qs,{...e,input:Vp}):V.createElement(K$,{...e,isValid:a})},HOe=pt(2,dv);var YOe=yD(Ho(V.memo(UOe)),!1);const GOe=e=>V.createElement(qs,{...e,input:eR}),KOe=pt(2,Gk);var XOe=Bn(GOe);const ZOe=e=>{const[t,n,r]=pr(),{id:i,errors:a,label:s,schema:l,description:c,enabled:u,visible:d,required:f,path:p,handleChange:h,data:g,config:m}=e,y=a.length===0,b=$t({},m,e.uischema.options),[v,x]=la(h,"",g,p,void 0,void 0,!0,t),w=b.format??l.format,O=!Er(d,c,t,b.showUnfocusedDescription);return d?V.createElement(Li,{required:Kc(f,b.hideRequiredAsterisk),id:i+"-input",label:s,type:w,error:!y,disabled:!u,fullWidth:!b.trim,onFocus:n,onBlur:r,helperText:y?O?c:null:a,InputLabelProps:{shrink:!0},value:v,onChange:x}):null},QOe=pt(2,Fs(pv,hv));var JOe=Bn(ZOe);const eTe=e=>V.createElement(qs,{...e,input:tR}),tTe=pt(2,Kk);var nTe=Bn(eTe);const rTe=e=>{const{config:t,uischema:n,errors:r}=e,i=$t({},t,n.options),a=r.length===0;return i.autocomplete===!1?V.createElement(qs,{...e,input:Vp}):V.createElement(K$,{...e,isValid:a})},oTe=pt(5,fv);var iTe=bD(Ho(V.memo(rTe)),!1);const sR=e=>{const[t,n,r]=pr(),{config:i,label:a,required:s,description:l,errors:c,data:u,visible:d,options:f,handleChange:p,path:h,enabled:g}=e,m=c.length===0,y=$t({},i,e.uischema.options),b=!Er(d,l,t,y.showUnfocusedDescription);return d?V.createElement(hi,{component:"fieldset",fullWidth:!y.trim,onFocus:n,onBlur:r},V.createElement(Cc,{error:!m,component:"legend",required:Kc(s,y.hideRequiredAsterisk)},a),V.createElement(vC,{value:e.data??"",row:!0},f.map(v=>V.createElement(Ec,{value:v.value,key:v.label,control:V.createElement(bC,{checked:u===v.value,onChange:()=>p(h,v.value)}),label:v.label,disabled:!g}))),V.createElement(sn,{error:!m},m?b?l:null:c)):null},aTe=e=>V.createElement(sR,{...e}),sTe=pt(20,qt(fv,lo("format","radio")));var lTe=bD(aTe);const cTe=e=>V.createElement(sR,{...e}),uTe=pt(20,qt(dv,lo("format","radio")));var dTe=yD(cTe);const fTe=e=>{const[t,n,r]=pr(),{id:i,data:a,description:s,enabled:l,errors:c,label:u,schema:d,handleChange:f,visible:p,path:h,required:g,config:m}=e,y=c.length===0,b=$t({},m,e.uischema.options),v={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},x={display:"flex"},w={flexGrow:"1"},O={marginTop:"7px"},E=!Er(p,s,t,b.showUnfocusedDescription),C=V.useCallback((S,P)=>f(h,Number(P)),[h,f]);return p?V.createElement(hi,{fullWidth:!b.trim,onFocus:n,onBlur:r,id:i},V.createElement(Cc,{htmlFor:i,error:!y,component:"legend",required:Kc(g,b.hideRequiredAsterisk)},V.createElement(et,{id:i+"-typo",style:v,variant:"caption"},u)),V.createElement("div",{style:x},V.createElement(et,{style:w,variant:"caption",align:"left"},d.minimum),V.createElement(et,{style:w,variant:"caption",align:"right"},d.maximum)),V.createElement(CC,{style:O,min:d.minimum,max:d.maximum,value:Number(a||d.default),onChange:C,id:i+"-input",disabled:!l,step:d.multipleOf||1}),V.createElement(sn,{error:!y},y?E?s:null:c)):null},pTe=pt(4,qhe);var hTe=Bn(fTe);const mTe=e=>V.createElement(qs,{...e,input:nR}),gTe=pt(1,Xk);var lR=Bn(mTe);const yTe=e=>{const[t,n,r]=pr(),{id:i,description:a,errors:s,label:l,uischema:c,visible:u,enabled:d,required:f,path:p,handleChange:h,data:g,config:m}=e,y=$t({},m,c.options),b=s.length===0,[v,x]=V.useState(0),[w,O]=V.useState(!1),E=!Er(u,a,t,y.showUnfocusedDescription),C=y.timeFormat??"HH:mm",S=y.timeSaveFormat??Gpe,P=y.views??["hours","minutes"],T=E?a:b?null:s,_=E&&!b?s:null,k=V.useCallback(()=>x(W=>W+1),[]),$=V.useMemo(()=>h0(p,h,S),[p,h,S]),M=V.useMemo(()=>m0(p,h,C,S,k,r),[p,h,C,S,k]),j=g0(g,S);return u?V.createElement(ia,{dateAdapter:f0},V.createElement(a0,{open:w,onOpen:()=>O(!0),onClose:()=>O(!1),key:v,label:l,value:j,onAccept:$,format:C,ampm:!!y.ampm,views:P,disabled:!d,slotProps:{actionBar:({wrapperVariant:W})=>({actions:W==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:i+"-input",required:f&&!y.hideRequiredAsterisk,autoFocus:y.focus,error:!b,fullWidth:!y.trim,inputProps:{type:"text"},InputLabelProps:g?{shrink:!0}:void 0,onFocus:n,onBlur:M}}}),V.createElement(sn,{error:!b&&!E},T),V.createElement(sn,{error:!b},_)):null},bTe=pt(4,hv);var vTe=Bn(yTe);const Xh={float:"right"},wTe=e=>{const[t]=V.useState(Jm("expand-panel"));V.useEffect(()=>()=>{eg(t)},[t]);const{enabled:n,childLabel:r,childPath:i,index:a,expanded:s,moveDown:l,moveUp:c,enableMoveDown:u,enableMoveUp:d,handleExpansion:f,removeItems:p,path:h,rootSchema:g,schema:m,uischema:y,uischemas:b,renderers:v,cells:x,config:w,translations:O,disableRemove:E}=e,C=V.useMemo(()=>hp(b,m,y.scope,h,void 0,y,g),[b,m,y.scope,h,y,g]),S=$t({},w,y.options),P=S.showSortButtons||S.showArrayLayoutSortButtons;return V.createElement(RE,{"aria-labelledby":t,expanded:s,onChange:f(i)},V.createElement(AE,{expandIcon:V.createElement(Pxe,null)},V.createElement(Pt,{container:!0,alignItems:"center"},V.createElement(Pt,{item:!0,xs:7,md:9},V.createElement(Pt,{container:!0,alignItems:"center"},V.createElement(Pt,{item:!0,xs:2,md:1},V.createElement(ny,{"aria-label":"Index"},a+1)),V.createElement(Pt,{item:!0,xs:10,md:11},V.createElement("span",{id:t},r)))),V.createElement(Pt,{item:!0,xs:5,md:3},V.createElement(Pt,{container:!0,justifyContent:"flex-end"},V.createElement(Pt,{item:!0},V.createElement(Pt,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},P&&n?V.createElement(V.Fragment,null,V.createElement(Pt,{item:!0},V.createElement(ar,{id:"tooltip-up",title:O.up,placement:"bottom",open:d?void 0:!1},V.createElement(Gt,{onClick:c(h,a),style:Xh,disabled:!d,"aria-label":O.upAriaLabel,size:"large"},V.createElement(TD,null)))),V.createElement(Pt,{item:!0},V.createElement(ar,{id:"tooltip-down",title:O.down,placement:"bottom",open:u?void 0:!1},V.createElement(Gt,{onClick:l(h,a),style:Xh,disabled:!u,"aria-label":O.downAriaLabel,size:"large"},V.createElement(OD,null))))):"",n&&!E&&V.createElement(Pt,{item:!0},V.createElement(ar,{id:"tooltip-remove",title:O.removeTooltip,placement:"bottom"},V.createElement(Gt,{onClick:p(h,[a]),style:Xh,"aria-label":O.removeAriaLabel,size:"large"},V.createElement(bi,null)))))))))),V.createElement(ME,null,V.createElement(ur,{enabled:n,schema:m,uischema:C,path:i,key:i,renderers:v,cells:x})))},xTe=V.memo(wTe),OTe=e=>({removeItems:V.useCallback((t,n)=>r=>{r.stopPropagation(),e(eo(t,i=>(n.sort().reverse().forEach(a=>i.splice(a,1)),i),{type:"REMOVE",indices:n}))},[e]),moveUp:V.useCallback((t,n)=>r=>{r.stopPropagation(),e(eo(t,i=>(aD(i,n),i),{type:"MOVE",moves:[{from:n,to:n-1}]}))},[e]),moveDown:V.useCallback((t,n)=>r=>{r.stopPropagation(),e(eo(t,i=>(sD(i,n),i),{type:"MOVE",moves:[{from:n,to:n+1}]}))},[e])}),TTe=e=>function({ctx:n,props:r}){const i=OTe(n.dispatch),{childLabelProp:a,schema:s,uischema:l,rootSchema:c,path:u,index:d,uischemas:f}=r,p=js(u,`${d}`),h=V.useMemo(()=>fD(n.core.data,p,a,s,c,n.i18n.translate,l),[n.core.data,p,a,s,c,n.i18n.translate,l]);return V.createElement(e,{...r,...i,childLabel:h,childPath:p,uischemas:f})},STe=e=>In(TTe(e));var ETe=STe(xTe);const CTe=pt(1,Xt("Group")),PTe={marginBottom:"10px"},_Te=V.memo(function({visible:t,enabled:n,uischema:r,label:i,...a}){const s=r;return t?V.createElement(nC,{style:PTe},!ut(i)&&V.createElement(oC,{title:i}),V.createElement(rC,null,V.createElement(tu,{...a,visible:t,enabled:n,elements:s.elements}))):null}),kTe=({uischema:e,schema:t,path:n,visible:r,enabled:i,renderers:a,cells:s,direction:l,label:c})=>{const u=e;return V.createElement(_Te,{elements:u.elements,schema:t,path:n,direction:l,visible:r,enabled:i,uischema:e,renderers:a,cells:s,label:c})};var DTe=gi(kTe);const $Te=Nhe(1,CTe),RTe=pt(2,Xt("HorizontalLayout")),MTe=({uischema:e,renderers:t,cells:n,schema:r,path:i,enabled:a,visible:s})=>{const c={elements:e.elements,schema:r,path:i,enabled:a,direction:"row",visible:s};return V.createElement(tu,{...c,renderers:t,cells:n})};var ITe=gi(MTe);const NTe=pt(1,Xt("VerticalLayout")),ATe=({uischema:e,schema:t,path:n,enabled:r,visible:i,renderers:a,cells:s})=>{const c={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:i};return V.createElement(tu,{...c,renderers:a,cells:s})};var jTe=gi(ATe);const LTe=qt(Xt("Categorization"),e=>{const t=e;return t.elements&&t.elements.reduce((n,r)=>n&&r.type==="Category",!0)}),FTe=pt(1,LTe),VTe=e=>{const{data:t,path:n,renderers:r,cells:i,schema:a,uischema:s,visible:l,enabled:c,selected:u,onChange:d,ajv:f,t:p}=e,h=s,[g,m]=V.useState(s),[y,b]=V.useState(u??0),v=V.useMemo(()=>h.elements.filter(C=>Ls(C,t,void 0,f)),[h,t,f]);h!==g&&(b(0),m(h));const x=y>=h.elements.length?0:y,w={elements:v[x]?v[x].elements:[],schema:a,path:n,direction:"column",enabled:c,visible:l,renderers:r,cells:i},O=(C,S)=>{d&&d(S,x),b(S)},E=V.useMemo(()=>v.map(C=>sv(C,p)),[v,p]);return l?V.createElement(V.Fragment,null,V.createElement(jE,{position:"static"},V.createElement(Ic,{value:x,onChange:O,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},v.map((C,S)=>V.createElement(is,{key:S,label:E[S]})))),V.createElement("div",{style:{marginTop:"0.5em"}},V.createElement(tu,{...w,key:x}))):null};var BTe=Z$(Ho(gi(VTe)));const zTe=e=>{const[t,n]=V.useState(!1),r=V.useCallback(()=>Ao(e.schema,e.rootSchema),[e.schema]),i=V.useCallback(_=>(k,$)=>{n($?_:!1)},[]),a=_=>t===js(e.path,`${_}`),{enabled:s,data:l,path:c,schema:u,uischema:d,errors:f,addItem:p,renderers:h,cells:g,label:m,required:y,rootSchema:b,config:v,uischemas:x,description:w,disableAdd:O,disableRemove:E,translations:C}=e,S=$t({},v,e.uischema.options),P=O||S.disableAdd,T=E||S.disableRemove;return V.createElement("div",null,V.createElement(oR,{translations:C,label:lD(m,y,S.hideRequiredAsterisk),description:w,errors:f,path:c,enabled:s,addItem:p,createDefault:r,disableAdd:P}),V.createElement("div",null,l>0?_D(np(l),_=>V.createElement(ETe,{enabled:s,index:_,expanded:a(_),schema:u,path:c,handleExpansion:i,uischema:d,renderers:h,cells:g,key:_,rootSchema:b,enableMoveUp:_!=0,enableMoveDown:_<l-1,config:v,childLabelProp:S.elementLabelProp,uischemas:x,translations:C,disableRemove:T})):V.createElement("p",null,C.noDataMessage)))},WTe=V.memo(zTe),qTe=({visible:e,addItem:t,translations:n,...r})=>{const i=V.useCallback((a,s)=>t(a,s),[t]);return e?V.createElement(WTe,{translations:n,visible:e,addItem:i,...r}):null},UTe=pt(4,zhe);var HTe=bv(Ho(vv(qTe)));const YTe=e=>V.createElement(p0,{...e}),GTe=pt(2,pp);var KTe=yi(YTe);const XTe=e=>V.createElement(rR,{...e}),ZTe=pt(3,qt(pp,lo("toggle",!0)));var QTe=yi(XTe);const JTe=e=>{const{data:t,className:n,id:r,enabled:i,uischema:a,path:s,handleChange:l,config:c,label:u}=e,d=sa(),f=$t({},c,a.options);return V.createElement(d,{type:"date",value:t||"",onChange:p=>l(s,p.target.value),className:n,id:r,label:u,disabled:!i,autoFocus:f.focus,fullWidth:!0})},eSe=pt(2,pv);var tSe=yi(JTe);const nSe=e=>V.createElement(Vp,{...e}),rSe=pt(2,dv);var oSe=Ege(Ho(V.memo(nSe)),!1);const iSe=e=>V.createElement(eR,{...e}),aSe=pt(2,Gk);var sSe=yi(iSe);const lSe=e=>V.createElement(tR,{...e}),cSe=pt(2,Kk);var uSe=yi(lSe);const dSe=e=>V.createElement(iOe,{...e}),fSe=pt(4,Uhe);var pSe=yi(dSe);const hSe=e=>V.createElement(Vp,{...e}),mSe=pt(2,fv);var gSe=Cge(Ho(V.memo(hSe)),!1);const ySe=e=>V.createElement(nR,{...e}),bSe=pt(1,Xk);var vSe=yi(ySe);const wSe=e=>V.createElement(sOe,{...e}),xSe=pt(2,hv);var OSe=yi(wSe);const TSe=pt(2,qt(Xt("Categorization"),Ghe,lo("variant","stepper"))),SSe=e=>{const[t,n]=V.useState(0),r=E=>{n(E)},{data:i,path:a,renderers:s,schema:l,uischema:c,visible:u,cells:d,config:f,ajv:p,t:h}=e,g=c,m=$t({},f,c.options),y={textAlign:"right",width:"100%",margin:"1em auto"},b={float:"right"},v={marginRight:"1em"},x=V.useMemo(()=>g.elements.filter(E=>Ls(E,i,void 0,p)),[g,i,p]),w={elements:x[t].elements,schema:l,path:a,direction:"column",visible:u,renderers:s,cells:d},O=V.useMemo(()=>x.map(E=>sv(E,h)),[x,h]);return u?V.createElement(V.Fragment,null,V.createElement($C,{activeStep:t,nonLinear:!0},x.map((E,C)=>V.createElement(PC,{key:O[C]},V.createElement(kC,{onClick:()=>r(C)},O[C])))),V.createElement("div",null,V.createElement(tu,{...w})),m.showNavButtons?V.createElement("div",{style:y},V.createElement(Sn,{style:b,variant:"contained",color:"primary",disabled:t>=x.length-1,onClick:()=>r(t+1)},"Next"),V.createElement(Sn,{style:v,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):V.createElement(V.Fragment,null)):null};var ESe=Z$(Ho(gi(SSe)));const cR=[{tester:Kxe,renderer:Xxe},{tester:IOe,renderer:NOe},{tester:jOe,renderer:LOe},{tester:QOe,renderer:JOe},{tester:HOe,renderer:YOe},{tester:KOe,renderer:XOe},{tester:tTe,renderer:nTe},{tester:gTe,renderer:lR},{tester:WOe,renderer:qOe},{tester:VOe,renderer:BOe},{tester:bTe,renderer:vTe},{tester:pTe,renderer:hTe},{tester:hOe,renderer:mOe},{tester:kxe,renderer:Dxe},{tester:Rxe,renderer:Mxe},{tester:yOe,renderer:bOe},{tester:uTe,renderer:dTe},{tester:sTe,renderer:lTe},{tester:oTe,renderer:iTe},{tester:$Te,renderer:DTe},{tester:RTe,renderer:ITe},{tester:NTe,renderer:jTe},{tester:FTe,renderer:BTe},{tester:TSe,renderer:ESe},{tester:UTe,renderer:HTe},{tester:vOe,renderer:xOe},{tester:EOe,renderer:COe},{tester:$Oe,renderer:ROe},{tester:dOe,renderer:fOe}],uR=[{tester:GTe,cell:KTe},{tester:ZTe,cell:QTe},{tester:eSe,cell:tSe},{tester:rSe,cell:oSe},{tester:aSe,cell:sSe},{tester:cSe,cell:uSe},{tester:fSe,cell:pSe},{tester:mSe,cell:gSe},{tester:bSe,cell:vSe},{tester:xSe,cell:OSe}],dR=6048e5,CSe=864e5,fR=6e4,pR=36e5,PSe=1e3,RT=Symbol.for("constructDateFrom");function ln(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&RT in e?e[RT](t):e instanceof Date?new e.constructor(t):new Date(t)}function tt(e,t){return ln(t||e,e)}function ac(e,t,n){const r=tt(e,n==null?void 0:n.in);return isNaN(t)?ln((n==null?void 0:n.in)||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function hR(e,t,n){return ln(e,+tt(e)+t)}function _Se(e,t,n){return hR(e,t*1e3)}function kSe(e,t,n){const r=tt(e,n==null?void 0:n.in);return r.setTime(r.getTime()+t*fR),r}function DSe(e,t,n){return hR(e,t*pR)}function $Se(e,t,n){return ac(e,t*7,n)}function mR(e,t,n){const r=tt(e,n==null?void 0:n.in);if(isNaN(t))return ln(e,NaN);if(!t)return r;const i=r.getDate(),a=ln(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return i>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function RSe(e,t,n){return mR(e,t*12,n)}function MT(e,t){const n=tt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}let MSe={};function ca(){return MSe}function ISe(e,t){var l,c,u,d;const n=ca(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=tt(e,t==null?void 0:t.in),a=i.getDay(),s=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+s),i.setHours(23,59,59,999),i}function IT(e,t){const n=tt(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}const NSe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ASe=(e,t,n)=>{let r;const i=NSe[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Zh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const jSe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LSe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},FSe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},VSe={date:Zh({formats:jSe,defaultWidth:"full"}),time:Zh({formats:LSe,defaultWidth:"full"}),dateTime:Zh({formats:FSe,defaultWidth:"full"})},BSe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zSe=(e,t,n,r)=>BSe[e];function cl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;i=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const WSe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qSe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},USe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HSe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},YSe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},GSe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},KSe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},XSe={ordinalNumber:KSe,era:cl({values:WSe,defaultWidth:"wide"}),quarter:cl({values:qSe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:cl({values:USe,defaultWidth:"wide"}),day:cl({values:HSe,defaultWidth:"wide"}),dayPeriod:cl({values:YSe,defaultWidth:"wide",formattingValues:GSe,defaultFormattingWidth:"wide"})};function ul(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?QSe(l,f=>f.test(s)):ZSe(l,f=>f.test(s));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(s.length);return{value:u,rest:d}}}function ZSe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function QSe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function JSe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(i.length);return{value:s,rest:l}}}const eEe=/^(\d+)(th|st|nd|rd)?/i,tEe=/\d+/i,nEe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rEe={any:[/^b/i,/^(a|c)/i]},oEe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iEe={any:[/1/i,/2/i,/3/i,/4/i]},aEe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sEe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lEe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cEe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},uEe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},dEe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},fEe={ordinalNumber:JSe({matchPattern:eEe,parsePattern:tEe,valueCallback:e=>parseInt(e,10)}),era:ul({matchPatterns:nEe,defaultMatchWidth:"wide",parsePatterns:rEe,defaultParseWidth:"any"}),quarter:ul({matchPatterns:oEe,defaultMatchWidth:"wide",parsePatterns:iEe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ul({matchPatterns:aEe,defaultMatchWidth:"wide",parsePatterns:sEe,defaultParseWidth:"any"}),day:ul({matchPatterns:lEe,defaultMatchWidth:"wide",parsePatterns:cEe,defaultParseWidth:"any"}),dayPeriod:ul({matchPatterns:uEe,defaultMatchWidth:"any",parsePatterns:dEe,defaultParseWidth:"any"})},y0={code:"en-US",formatDistance:ASe,formatLong:VSe,formatRelative:zSe,localize:XSe,match:fEe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qd(e){const t=tt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function nu(e,...t){const n=ln.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function sc(e,t){const n=tt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function pEe(e,t,n){const[r,i]=nu(n==null?void 0:n.in,e,t),a=sc(r),s=sc(i),l=+a-qd(a),c=+s-qd(s);return Math.round((l-c)/CSe)}function gR(e,t){const n=tt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function hEe(e,t){const n=tt(e,t==null?void 0:t.in);return pEe(n,gR(n))+1}function Wo(e,t){var l,c,u,d;const n=ca(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=tt(e,t==null?void 0:t.in),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function ps(e,t){return Wo(e,{...t,weekStartsOn:1})}function yR(e,t){const n=tt(e,t==null?void 0:t.in),r=n.getFullYear(),i=ln(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=ps(i),s=ln(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=ps(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function mEe(e,t){const n=yR(e,t),r=ln(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ps(r)}function bR(e,t){const n=tt(e,t==null?void 0:t.in),r=+ps(n)-+mEe(n);return Math.round(r/dR)+1}function b0(e,t){var d,f,p,h;const n=tt(e,t==null?void 0:t.in),r=n.getFullYear(),i=ca(),a=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(p=i.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=ln((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const l=Wo(s,t),c=ln((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const u=Wo(c,t);return+n>=+l?r+1:+n>=+u?r:r-1}function gEe(e,t){var l,c,u,d;const n=ca(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,i=b0(e,t),a=ln((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Wo(a,t)}function v0(e,t){const n=tt(e,t==null?void 0:t.in),r=+Wo(n,t)-+gEe(n,t);return Math.round(r/dR)+1}function Wt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Jo={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Wt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Wt(n+1,2)},d(e,t){return Wt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Wt(e.getHours()%12||12,t.length)},H(e,t){return Wt(e.getHours(),t.length)},m(e,t){return Wt(e.getMinutes(),t.length)},s(e,t){return Wt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Wt(i,t.length)}},Ta={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},NT={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Jo.y(e,t)},Y:function(e,t,n,r){const i=b0(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return Wt(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Wt(a,t.length)},R:function(e,t){const n=yR(e);return Wt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Wt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Wt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Wt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Jo.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Wt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=v0(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Wt(i,t.length)},I:function(e,t,n){const r=bR(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Wt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Jo.d(e,t)},D:function(e,t,n){const r=hEe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Wt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Wt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Wt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Wt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ta.noon:r===0?i=Ta.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ta.evening:r>=12?i=Ta.afternoon:r>=4?i=Ta.morning:i=Ta.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Jo.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Jo.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Wt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Wt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Jo.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Jo.s(e,t)},S:function(e,t){return Jo.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return jT(r);case"XXXX":case"XX":return ki(r);case"XXXXX":case"XXX":default:return ki(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return jT(r);case"xxxx":case"xx":return ki(r);case"xxxxx":case"xxx":default:return ki(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+AT(r,":");case"OOOO":default:return"GMT"+ki(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+AT(r,":");case"zzzz":default:return"GMT"+ki(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Wt(r,t.length)},T:function(e,t,n){return Wt(+e,t.length)}};function AT(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Wt(a,2)}function jT(e,t){return e%60===0?(e>0?"-":"+")+Wt(Math.abs(e)/60,2):ki(e,t)}function ki(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Wt(Math.trunc(r/60),2),a=Wt(r%60,2);return n+i+t+a}const LT=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},vR=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yEe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return LT(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",LT(r,t)).replace("{{time}}",vR(i,t))},lc={p:vR,P:yEe},bEe=/^D+$/,vEe=/^Y+$/,wEe=["D","DD","YY","YYYY"];function wR(e){return bEe.test(e)}function xR(e){return vEe.test(e)}function dg(e,t,n){const r=xEe(e,t,n);if(console.warn(r),wEe.includes(e))throw new RangeError(r)}function xEe(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function OEe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ja(e){return!(!OEe(e)&&typeof e!="number"||isNaN(+tt(e)))}const TEe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,SEe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,EEe=/^'([^]*?)'?$/,CEe=/''/g,PEe=/[a-zA-Z]/;function OR(e,t,n){var d,f,p,h,g,m,y,b;const r=ca(),i=(n==null?void 0:n.locale)??r.locale??y0,a=(n==null?void 0:n.firstWeekContainsDate)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(p=r.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((m=(g=n==null?void 0:n.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((b=(y=r.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0,l=tt(e,n==null?void 0:n.in);if(!ja(l))throw new RangeError("Invalid time value");let c=t.match(SEe).map(v=>{const x=v[0];if(x==="p"||x==="P"){const w=lc[x];return w(v,i.formatLong)}return v}).join("").match(TEe).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const x=v[0];if(x==="'")return{isToken:!1,value:_Ee(v)};if(NT[x])return{isToken:!0,value:v};if(x.match(PEe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(c=i.localize.preprocessor(l,c));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return c.map(v=>{if(!v.isToken)return v.value;const x=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&xR(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&wR(x))&&dg(x,t,String(e));const w=NT[x[0]];return w(l,x,i.localize,u)}).join("")}function _Ee(e){const t=e.match(EEe);return t?t[1].replace(CEe,"'"):e}function kEe(e,t){return tt(e,t==null?void 0:t.in).getDate()}function TR(e,t){const n=tt(e,t==null?void 0:t.in),r=n.getFullYear(),i=n.getMonth(),a=ln(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function DEe(e,t){return tt(e,t==null?void 0:t.in).getHours()}function $Ee(e,t){return tt(e,t==null?void 0:t.in).getMinutes()}function REe(e,t){return tt(e,t==null?void 0:t.in).getMonth()}function MEe(e){return tt(e).getSeconds()}function IEe(e){return tt(e).getMilliseconds()}function NEe(e,t){return tt(e,t==null?void 0:t.in).getFullYear()}function Qh(e,t){return+tt(e)>+tt(t)}function Jh(e,t){return+tt(e)<+tt(t)}function AEe(e,t){return+tt(e)==+tt(t)}function jEe(e,t,n){const[r,i]=nu(n==null?void 0:n.in,e,t);return+sc(r)==+sc(i)}function LEe(e,t,n){const[r,i]=nu(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()}function FEe(e,t,n){const[r,i]=nu(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function FT(e,t){const n=tt(e,t==null?void 0:t.in);return n.setMinutes(0,0,0),n}function VEe(e,t,n){const[r,i]=nu(n==null?void 0:n.in,e,t);return+FT(r)==+FT(i)}function BEe(){return Object.assign({},ca())}function zEe(e,t){const n=WEe(t)?new t(0):ln(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function WEe(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}const qEe=10;class SR{constructor(){Be(this,"subPriority",0)}validate(t,n){return!0}}class UEe extends SR{constructor(t,n,r,i,a){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=i,a&&(this.subPriority=a)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class HEe extends SR{constructor(n,r){super();Be(this,"priority",qEe);Be(this,"subPriority",-1);this.context=n||(i=>ln(r,i))}set(n,r){return r.timestampIsSet?n:ln(n,zEe(n,this.context))}}class jt{run(t,n,r,i){const a=this.parse(t,n,r,i);return a?{setter:new UEe(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,n,r){return!0}}class YEe extends jt{constructor(){super(...arguments);Be(this,"priority",140);Be(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const wn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},yo={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function xn(e,t){return e&&{value:t(e.value),rest:e.rest}}function un(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function bo(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*pR+a*fR+s*PSe),rest:t.slice(n[0].length)}}function ER(e){return un(wn.anyDigitsSigned,e)}function gn(e,t){switch(e){case 1:return un(wn.singleDigit,t);case 2:return un(wn.twoDigits,t);case 3:return un(wn.threeDigits,t);case 4:return un(wn.fourDigits,t);default:return un(new RegExp("^\\d{1,"+e+"}"),t)}}function Ud(e,t){switch(e){case 1:return un(wn.singleDigitSigned,t);case 2:return un(wn.twoDigitsSigned,t);case 3:return un(wn.threeDigitsSigned,t);case 4:return un(wn.fourDigitsSigned,t);default:return un(new RegExp("^-?\\d{1,"+e+"}"),t)}}function w0(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function CR(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const a=r+50,s=Math.trunc(a/100)*100,l=e>=a%100;i=e+s-(l?100:0)}return n?i:1-i}function PR(e){return e%400===0||e%4===0&&e%100!==0}class GEe extends jt{constructor(){super(...arguments);Be(this,"priority",130);Be(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,i){const a=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return xn(gn(4,n),a);case"yo":return xn(i.ordinalNumber(n,{unit:"year"}),a);default:return xn(gn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const a=n.getFullYear();if(i.isTwoDigitYear){const l=CR(i.year,a);return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}const s=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class KEe extends jt{constructor(){super(...arguments);Be(this,"priority",130);Be(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,i){const a=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return xn(gn(4,n),a);case"Yo":return xn(i.ordinalNumber(n,{unit:"year"}),a);default:return xn(gn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,a){const s=b0(n,a);if(i.isTwoDigitYear){const c=CR(i.year,s);return n.setFullYear(c,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),Wo(n,a)}const l=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),Wo(n,a)}}class XEe extends jt{constructor(){super(...arguments);Be(this,"priority",130);Be(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Ud(r==="R"?4:r.length,n)}set(n,r,i){const a=ln(n,0);return a.setFullYear(i,0,4),a.setHours(0,0,0,0),ps(a)}}class ZEe extends jt{constructor(){super(...arguments);Be(this,"priority",130);Be(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Ud(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class QEe extends jt{constructor(){super(...arguments);Be(this,"priority",120);Be(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"Q":case"QQ":return gn(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class JEe extends jt{constructor(){super(...arguments);Be(this,"priority",120);Be(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"q":case"qq":return gn(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class eCe extends jt{constructor(){super(...arguments);Be(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Be(this,"priority",110)}parse(n,r,i){const a=s=>s-1;switch(r){case"M":return xn(un(wn.month,n),a);case"MM":return xn(gn(2,n),a);case"Mo":return xn(i.ordinalNumber(n,{unit:"month"}),a);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class tCe extends jt{constructor(){super(...arguments);Be(this,"priority",110);Be(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,i){const a=s=>s-1;switch(r){case"L":return xn(un(wn.month,n),a);case"LL":return xn(gn(2,n),a);case"Lo":return xn(i.ordinalNumber(n,{unit:"month"}),a);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function nCe(e,t,n){const r=tt(e,n==null?void 0:n.in),i=v0(r,n)-t;return r.setDate(r.getDate()-i*7),tt(r,n==null?void 0:n.in)}class rCe extends jt{constructor(){super(...arguments);Be(this,"priority",100);Be(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,i){switch(r){case"w":return un(wn.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return gn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,a){return Wo(nCe(n,i,a),a)}}function oCe(e,t,n){const r=tt(e,n==null?void 0:n.in),i=bR(r,n)-t;return r.setDate(r.getDate()-i*7),r}class iCe extends jt{constructor(){super(...arguments);Be(this,"priority",100);Be(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,i){switch(r){case"I":return un(wn.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return gn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return ps(oCe(n,i))}}const aCe=[31,28,31,30,31,30,31,31,30,31,30,31],sCe=[31,29,31,30,31,30,31,31,30,31,30,31];class lCe extends jt{constructor(){super(...arguments);Be(this,"priority",90);Be(this,"subPriority",1);Be(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"d":return un(wn.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return gn(r.length,n)}}validate(n,r){const i=n.getFullYear(),a=PR(i),s=n.getMonth();return a?r>=1&&r<=sCe[s]:r>=1&&r<=aCe[s]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class cCe extends jt{constructor(){super(...arguments);Be(this,"priority",90);Be(this,"subpriority",1);Be(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,i){switch(r){case"D":case"DD":return un(wn.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return gn(r.length,n)}}validate(n,r){const i=n.getFullYear();return PR(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function x0(e,t,n){var f,p,h,g;const r=ca(),i=(n==null?void 0:n.weekStartsOn)??((p=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,a=tt(e,n==null?void 0:n.in),s=a.getDay(),c=(t%7+7)%7,u=7-i,d=t<0||t>6?t-(s+u)%7:(c+u)%7-(s+u)%7;return ac(a,d,n)}class uCe extends jt{constructor(){super(...arguments);Be(this,"priority",90);Be(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,a){return n=x0(n,i,a),n.setHours(0,0,0,0),n}}class dCe extends jt{constructor(){super(...arguments);Be(this,"priority",90);Be(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,i,a){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return xn(gn(r.length,n),s);case"eo":return xn(i.ordinalNumber(n,{unit:"day"}),s);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,a){return n=x0(n,i,a),n.setHours(0,0,0,0),n}}class fCe extends jt{constructor(){super(...arguments);Be(this,"priority",90);Be(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,i,a){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return xn(gn(r.length,n),s);case"co":return xn(i.ordinalNumber(n,{unit:"day"}),s);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,a){return n=x0(n,i,a),n.setHours(0,0,0,0),n}}function pCe(e,t){const n=tt(e,t==null?void 0:t.in).getDay();return n===0?7:n}function hCe(e,t,n){const r=tt(e,n==null?void 0:n.in),i=pCe(r,n),a=t-i;return ac(r,a,n)}class mCe extends jt{constructor(){super(...arguments);Be(this,"priority",90);Be(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,i){const a=s=>s===0?7:s;switch(r){case"i":case"ii":return gn(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return xn(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return xn(i.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return xn(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return xn(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=hCe(n,i),n.setHours(0,0,0,0),n}}class gCe extends jt{constructor(){super(...arguments);Be(this,"priority",80);Be(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(w0(i),0,0,0),n}}class yCe extends jt{constructor(){super(...arguments);Be(this,"priority",80);Be(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(w0(i),0,0,0),n}}class bCe extends jt{constructor(){super(...arguments);Be(this,"priority",80);Be(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(w0(i),0,0,0),n}}class vCe extends jt{constructor(){super(...arguments);Be(this,"priority",70);Be(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,i){switch(r){case"h":return un(wn.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return gn(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const a=n.getHours()>=12;return a&&i<12?n.setHours(i+12,0,0,0):!a&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class wCe extends jt{constructor(){super(...arguments);Be(this,"priority",70);Be(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,i){switch(r){case"H":return un(wn.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return gn(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}}class xCe extends jt{constructor(){super(...arguments);Be(this,"priority",70);Be(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,i){switch(r){case"K":return un(wn.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return gn(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class OCe extends jt{constructor(){super(...arguments);Be(this,"priority",70);Be(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,i){switch(r){case"k":return un(wn.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return gn(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const a=i<=24?i%24:i;return n.setHours(a,0,0,0),n}}class TCe extends jt{constructor(){super(...arguments);Be(this,"priority",60);Be(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"m":return un(wn.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return gn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}}class SCe extends jt{constructor(){super(...arguments);Be(this,"priority",50);Be(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"s":return un(wn.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return gn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}}class ECe extends jt{constructor(){super(...arguments);Be(this,"priority",30);Be(this,"incompatibleTokens",["t","T"])}parse(n,r){const i=a=>Math.trunc(a*Math.pow(10,-r.length+3));return xn(gn(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}}class CCe extends jt{constructor(){super(...arguments);Be(this,"priority",10);Be(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return bo(yo.basicOptionalMinutes,n);case"XX":return bo(yo.basic,n);case"XXXX":return bo(yo.basicOptionalSeconds,n);case"XXXXX":return bo(yo.extendedOptionalSeconds,n);case"XXX":default:return bo(yo.extended,n)}}set(n,r,i){return r.timestampIsSet?n:ln(n,n.getTime()-qd(n)-i)}}class PCe extends jt{constructor(){super(...arguments);Be(this,"priority",10);Be(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return bo(yo.basicOptionalMinutes,n);case"xx":return bo(yo.basic,n);case"xxxx":return bo(yo.basicOptionalSeconds,n);case"xxxxx":return bo(yo.extendedOptionalSeconds,n);case"xxx":default:return bo(yo.extended,n)}}set(n,r,i){return r.timestampIsSet?n:ln(n,n.getTime()-qd(n)-i)}}class _Ce extends jt{constructor(){super(...arguments);Be(this,"priority",40);Be(this,"incompatibleTokens","*")}parse(n){return ER(n)}set(n,r,i){return[ln(n,i*1e3),{timestampIsSet:!0}]}}class kCe extends jt{constructor(){super(...arguments);Be(this,"priority",20);Be(this,"incompatibleTokens","*")}parse(n){return ER(n)}set(n,r,i){return[ln(n,i),{timestampIsSet:!0}]}}const DCe={G:new YEe,y:new GEe,Y:new KEe,R:new XEe,u:new ZEe,Q:new QEe,q:new JEe,M:new eCe,L:new tCe,w:new rCe,I:new iCe,d:new lCe,D:new cCe,E:new uCe,e:new dCe,c:new fCe,i:new mCe,a:new gCe,b:new yCe,B:new bCe,h:new vCe,H:new wCe,K:new xCe,k:new OCe,m:new TCe,s:new SCe,S:new ECe,X:new CCe,x:new PCe,t:new _Ce,T:new kCe},$Ce=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,MCe=/^'([^]*?)'?$/,ICe=/''/g,NCe=/\S/,ACe=/[a-zA-Z]/;function fg(e,t,n,r){var y,b,v,x,w,O,E,C;const i=()=>ln((r==null?void 0:r.in)||n,NaN),a=BEe(),s=(r==null?void 0:r.locale)??a.locale??y0,l=(r==null?void 0:r.firstWeekContainsDate)??((b=(y=r==null?void 0:r.locale)==null?void 0:y.options)==null?void 0:b.firstWeekContainsDate)??a.firstWeekContainsDate??((x=(v=a.locale)==null?void 0:v.options)==null?void 0:x.firstWeekContainsDate)??1,c=(r==null?void 0:r.weekStartsOn)??((O=(w=r==null?void 0:r.locale)==null?void 0:w.options)==null?void 0:O.weekStartsOn)??a.weekStartsOn??((C=(E=a.locale)==null?void 0:E.options)==null?void 0:C.weekStartsOn)??0;if(!t)return e?i():tt(n,r==null?void 0:r.in);const u={firstWeekContainsDate:l,weekStartsOn:c,locale:s},d=[new HEe(r==null?void 0:r.in,n)],f=t.match(RCe).map(S=>{const P=S[0];if(P in lc){const T=lc[P];return T(S,s.formatLong)}return S}).join("").match($Ce),p=[];for(let S of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&xR(S)&&dg(S,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&wR(S)&&dg(S,t,e);const P=S[0],T=DCe[P];if(T){const{incompatibleTokens:_}=T;if(Array.isArray(_)){const $=p.find(M=>_.includes(M.token)||M.token===P);if($)throw new RangeError(`The format string mustn't contain \`${$.fullToken}\` and \`${S}\` at the same time`)}else if(T.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${S}\` and any other token at the same time`);p.push({token:P,fullToken:S});const k=T.run(e,S,s.match,u);if(!k)return i();d.push(k.setter),e=k.rest}else{if(P.match(ACe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");if(S==="''"?S="'":P==="'"&&(S=jCe(S)),e.indexOf(S)===0)e=e.slice(S.length);else return i()}}if(e.length>0&&NCe.test(e))return i();const h=d.map(S=>S.priority).sort((S,P)=>P-S).filter((S,P,T)=>T.indexOf(S)===P).map(S=>d.filter(P=>P.priority===S).sort((P,T)=>T.subPriority-P.subPriority)).map(S=>S[0]);let g=tt(n,r==null?void 0:r.in);if(isNaN(+g))return i();const m={};for(const S of h){if(!S.validate(g,u))return i();const P=S.set(g,m,u);Array.isArray(P)?(g=P[0],Object.assign(m,P[1])):g=P}return g}function jCe(e){return e.match(MCe)[1].replace(ICe,"'")}function LCe(e,t,n){const r=tt(e,n==null?void 0:n.in);return r.setDate(t),r}function FCe(e,t,n){const r=tt(e,n==null?void 0:n.in);return r.setHours(t),r}function VCe(e,t,n){const r=tt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function BCe(e,t,n){const r=tt(e,n==null?void 0:n.in),i=r.getFullYear(),a=r.getDate(),s=ln(e,0);s.setFullYear(i,t,15),s.setHours(0,0,0,0);const l=TR(s);return r.setMonth(t,Math.min(a,l)),r}function zCe(e,t,n){const r=tt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function WCe(e,t,n){const r=tt(e,n==null?void 0:n.in);return r.setMilliseconds(t),r}function qCe(e,t,n){const r=tt(e,n==null?void 0:n.in);return isNaN(+r)?ln(e,NaN):(r.setFullYear(t),r)}function UCe(e,t){const n=tt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function HCe(e,t){const n=tt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function YCe(e,t,n){const r=+tt(e,n==null?void 0:n.in),[i,a]=[+tt(t.start,n==null?void 0:n.in),+tt(t.end,n==null?void 0:n.in)].sort((s,l)=>s-l);return r>=i&&r<=a}const GCe={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},KCe={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class XCe{constructor(t){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=GCe,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=s=>typeof s>"u"?new Date:s===null?null:new Date(s),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=s=>s,this.toJsDate=s=>s,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=s=>{const l=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return s.match(l).map(c=>{const u=c[0];if(u==="p"||u==="P"){const d=this.longFormatters[u];return d(c,this.locale.formatLong)}return c}).join("")},this.formatNumber=s=>s,this.getDayOfWeek=s=>s.getDay()+1;const{locale:n,formats:r,longFormatters:i,lib:a}=t;this.locale=n,this.formats=ee({},KCe,r),this.longFormatters=i,this.lib=a||"date-fns"}}class ZCe extends XCe{constructor({locale:t,formats:n}={}){if(process.env.NODE_ENV!=="production"){if(typeof ac!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFnsV2` instead."].join(`
`));if(!lc)throw new Error("MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.")}super({locale:t??y0,formats:n,longFormatters:lc}),this.parse=(r,i)=>r===""?null:fg(r,i,new Date,{locale:this.locale}),this.isValid=r=>r==null?!1:ja(r),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>OR(r,i,{locale:this.locale}),this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:AEe(r,i),this.isSameYear=(r,i)=>LEe(r,i),this.isSameMonth=(r,i)=>FEe(r,i),this.isSameDay=(r,i)=>jEe(r,i),this.isSameHour=(r,i)=>VEe(r,i),this.isAfter=(r,i)=>Qh(r,i),this.isAfterYear=(r,i)=>Qh(r,IT(i)),this.isAfterDay=(r,i)=>Qh(r,MT(i)),this.isBefore=(r,i)=>Jh(r,i),this.isBeforeYear=(r,i)=>Jh(r,this.startOfYear(i)),this.isBeforeDay=(r,i)=>Jh(r,this.startOfDay(i)),this.isWithinRange=(r,[i,a])=>YCe(r,{start:i,end:a}),this.startOfYear=r=>gR(r),this.startOfMonth=r=>UCe(r),this.startOfWeek=r=>Wo(r,{locale:this.locale}),this.startOfDay=r=>sc(r),this.endOfYear=r=>IT(r),this.endOfMonth=r=>HCe(r),this.endOfWeek=r=>ISe(r,{locale:this.locale}),this.endOfDay=r=>MT(r),this.addYears=(r,i)=>RSe(r,i),this.addMonths=(r,i)=>mR(r,i),this.addWeeks=(r,i)=>$Se(r,i),this.addDays=(r,i)=>ac(r,i),this.addHours=(r,i)=>DSe(r,i),this.addMinutes=(r,i)=>kSe(r,i),this.addSeconds=(r,i)=>_Se(r,i),this.getYear=r=>NEe(r),this.getMonth=r=>REe(r),this.getDate=r=>kEe(r),this.getHours=r=>DEe(r),this.getMinutes=r=>$Ee(r),this.getSeconds=r=>MEe(r),this.getMilliseconds=r=>IEe(r),this.setYear=(r,i)=>qCe(r,i),this.setMonth=(r,i)=>BCe(r,i),this.setDate=(r,i)=>LCe(r,i),this.setHours=(r,i)=>FCe(r,i),this.setMinutes=(r,i)=>VCe(r,i),this.setSeconds=(r,i)=>zCe(r,i),this.setMilliseconds=(r,i)=>WCe(r,i),this.getDaysInMonth=r=>TR(r),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let s=0,l=i;const c=[];for(;this.isBefore(l,a);){const u=Math.floor(s/7);c[u]=c[u]||[],c[u].push(l),l=this.addDays(l,1),s+=1}return c},this.getWeekNumber=r=>v0(r,{locale:this.locale}),this.getYearRange=([r,i])=>{const a=this.startOfYear(r),s=this.endOfYear(i),l=[];let c=a;for(;this.isBefore(c,s);)l.push(c),c=this.addYears(c,1);return l}}}const QCe=e=>{const{data:t,handleChange:n,path:r,label:i,required:a,errors:s,visible:l,schema:c}=e;if(!l)return null;const u=c&&c.items&&!Array.isArray(c.items)&&Array.isArray(c.items.enum)?c.items.enum:[];return I.jsxs(hi,{fullWidth:!0,required:a,error:!!s,style:{marginTop:8,marginBottom:8},children:[I.jsx(_c,{children:i}),I.jsx(Dc,{label:i,multiple:!0,value:t||[],onChange:d=>n(r,d.target.value),renderValue:d=>d.join(", "),children:u.map(d=>I.jsxs(os,{value:d,children:[I.jsx(oy,{checked:Array.isArray(t)&&t.includes(d)}),I.jsx(dy,{primary:d})]},d))}),s&&I.jsx(sn,{children:s})]})},JCe=Bn(QCe),ePe=pt(10,e=>typeof e.scope=="string"&&/(multiselect|multi_select|multiSelect)/i.test(e.scope)),tPe=e=>{const{uischema:t,schema:n,path:r,enabled:i,visible:a,renderers:s,cells:l}=e;if(!a)return null;const c=t.elements||[];return I.jsx(at,{sx:{width:"100%",mb:2,display:"flex",gap:2,"& > *":{flex:1,minWidth:0}},children:c.map((u,d)=>I.jsx(at,{sx:{flex:1},children:I.jsx(ur,{uischema:u,schema:n,path:r,enabled:i,renderers:s,cells:l})},d))})},nPe=gi(tPe),rPe=({uischema:e})=>I.jsx(et,{variant:"h4",sx:{my:2,textAlign:"left"},children:e.text||"Heading"}),oPe=e=>{var E,C,S;const{data:t,handleChange:n,path:r,label:i,uischema:a,schema:s}=e,l=V.useRef(null),[c,u]=V.useState(t||""),[d,f]=V.useState(!1),p=r||((E=a==null?void 0:a.scope)==null?void 0:E.replace("#/properties/",""))||"";V.useEffect(()=>{u(t||"")},[t]);const h=(C=a==null?void 0:a.scope)==null?void 0:C.split("/").pop(),g=((S=s==null?void 0:s.properties)==null?void 0:S[h])||s,m=(g==null?void 0:g.title)||i||"Image",y=P=>{if(P&&P.type.startsWith("image/")){const T=new FileReader;T.onload=_=>{var $;const k=($=_.target)==null?void 0:$.result;u(k),n&&typeof n=="function"&&n(p,k)},T.onerror=_=>{console.error("Error reading file:",_)},T.readAsDataURL(P)}else console.log("File is not a valid image:",P==null?void 0:P.type)},b=P=>{var _;const T=(_=P.target.files)==null?void 0:_[0];T?(y(T),P.target&&(P.target.value="")):console.log("No file selected")},v=P=>{P.preventDefault(),f(!0)},x=P=>{P.preventDefault(),f(!1)},w=P=>{P.preventDefault(),f(!1);const T=P.dataTransfer.files[0];T&&y(T)},O=()=>{u(""),l.current&&(l.current.value=""),n&&typeof n=="function"&&n(p,"")};return c?I.jsxs("div",{style:{marginBottom:16},children:[I.jsx(et,{variant:"body1",sx:{mb:1,fontWeight:500},children:m}),I.jsxs(at,{sx:{border:"1px solid #ddd",borderRadius:2,p:2,backgroundColor:"#fafafa",position:"relative"},children:[I.jsx("img",{"data-id":"image-preview",src:c,alt:"Preview",style:{maxHeight:200,maxWidth:"100%",display:"block",margin:"0 auto",borderRadius:4,objectFit:"contain"},onError:P=>{console.error("Image failed to load:",P)},onLoad:()=>{console.log("Image loaded successfully")}}),I.jsxs(at,{sx:{display:"flex",gap:1,mt:2,justifyContent:"center"},children:[I.jsx(Sn,{"data-id":"change-image-button",variant:"outlined",size:"small",onClick:()=>{var P;return(P=l.current)==null?void 0:P.click()},children:"Change Image"}),I.jsx(Sn,{"data-id":"remove-image-button",variant:"outlined",size:"small",color:"error",onClick:O,children:"Remove"})]})]}),I.jsx("input",{type:"file",accept:"image/*",ref:l,style:{display:"none"},onChange:b},`file-input-${p}`)]}):I.jsxs("div",{style:{marginBottom:16},children:[I.jsx(et,{variant:"body1",sx:{mb:1,fontWeight:500},children:m}),I.jsxs(at,{"data-id":"image-upload-container",onDragOver:v,onDragLeave:x,onDrop:w,onClick:()=>{var P;return(P=l.current)==null?void 0:P.click()},sx:{border:d?"2px dashed #1976d2":"2px dashed #ccc",borderRadius:2,p:4,textAlign:"center",backgroundColor:d?"#e3f2fd":"#fafafa",cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:"#f0f0f0",borderColor:"#999"}},children:[I.jsx(et,{variant:"body2",color:"textSecondary",sx:{mb:2,fontSize:"14px"},children:"Drag and drop an image here or click the button below and choose an image to upload"}),I.jsx(Sn,{"data-id":"choose-image-button",variant:"contained",onClick:P=>{var T;P.stopPropagation(),(T=l.current)==null||T.click()},sx:{backgroundColor:"#20b2aa","&:hover":{backgroundColor:"#1e9e96"}},children:"Choose Image"})]}),I.jsx("input",{"data-id":"file-input",type:"file",accept:"image/*",ref:l,style:{display:"none"},onChange:b},`file-input-${p}-upload`)]})},iPe=e=>{const{data:t,visible:n}=e;if(!n)return null;const r=t;return r?I.jsx("div",{style:{padding:8},children:I.jsx("div",{dangerouslySetInnerHTML:{__html:r},className:"content-renderer"})}):null},aPe=Bn(iPe),_R=({schema:e,uischema:t,data:n,onChange:r,onSave:i,onErrors:a,enableSubmit:s,setHeight:l})=>{const[c,u]=V.useState(n||{}),[d,f]=V.useState([]),p=m=>{u(m.data||{}),m.errors?(f(m.errors),a==null||a(m.errors)):f([]),r==null||r(m.data||{})};V.useEffect(()=>{u(n||{})},[n]);const h=()=>{i==null||i(c,e,t)},g=[{tester:m=>m.type==="HorizontalLayout"?1e3:-1,renderer:nPe},{tester:pt(1e3,m=>{var w;if(!Vi(m))return!1;const y=m.scope;if(!y)return!1;const b=y.replace("#/properties/",""),v=(w=e==null?void 0:e.properties)==null?void 0:w[b];return!!(v!=null&&v.title)&&v.title==="Content"}),renderer:aPe},{tester:m=>m.type==="Label"?10:-1,renderer:rPe},{tester:(m,y)=>{var b;if(m.type==="Control"&&m.scope){const v=m.scope.split("/").pop(),x=((b=y==null?void 0:y.properties)==null?void 0:b[v])||y;return(x==null?void 0:x.format)==="data-url"?10:-1}return-1},renderer:Bn(oPe)},{tester:ePe,renderer:JCe},{tester:(m,y)=>{var b;if(m.type==="Control"&&m.scope){const v=m.scope.split("/").pop(),x=((b=y==null?void 0:y.properties)==null?void 0:b[v])||y;return(x==null?void 0:x.format)==="date"?1e3:-1}return-1},renderer:Bn(m=>{var W,H,X;const{data:y,handleChange:b,path:v,label:x,uischema:w,schema:O,required:E,errors:C,visible:S}=m;if(!S)return null;const P=v||((W=w==null?void 0:w.scope)==null?void 0:W.replace("#/properties/",""))||"",T=(H=w==null?void 0:w.scope)==null?void 0:H.split("/").pop(),_=((X=O==null?void 0:O.properties)==null?void 0:X[T])||O,k=(_==null?void 0:_.title)||x||"Date",M=(U=>{if(!U)return null;const L=fg(U,"yyyy-MM-dd",new Date);if(ja(L))return L;const D=fg(U,"MM/dd/yyyy",new Date);if(ja(D))return D;const B=new Date(U);return ja(B)?B:null})(y),j=U=>{if(U&&ja(U)){const L=OR(U,"yyyy-MM-dd");b(P,L)}else b(P,"")};return I.jsx(ia,{dateAdapter:ZCe,children:I.jsx("div",{style:{marginBottom:16},children:I.jsx(jp,{label:k+(E?" *":""),value:M,onChange:j,format:"MM/dd/yyyy",slotProps:{textField:{fullWidth:!0,error:!!C,helperText:C&&typeof C=="string"?C:void 0,placeholder:"MM/DD/YYYY",inputProps:{placeholder:"MM/DD/YYYY"}}}})})})})},...cR];return I.jsxs(iC,{style:{marginLeft:0,marginRight:0,paddingLeft:0,paddingRight:0,textAlign:"left",height:l?`calc(${l} - 10vh)`:"90vh",overflowY:"scroll"},id:"form-renderer-container",children:[I.jsx(xD,{schema:e,uischema:t,data:n||{},renderers:g,cells:uR,onChange:p},JSON.stringify(e)+JSON.stringify(t)),s?I.jsx(at,{display:"flex",justifyContent:"flex-end",mt:2,right:32,children:I.jsx(Sn,{"data-id":"submit-button-form-renderer",variant:"contained",onClick:h,style:{fontSize:"14px"},children:I.jsx(et,{fontSize:"14px",children:"Submit"})})}):(e==null?void 0:e.properties)&&Object.keys(e.properties).length!==0&&I.jsx(at,{display:"flex",justifyContent:"flex-end",mt:2,right:32,children:I.jsx(Sn,{"data-id":"submit-button-form-renderer",variant:"contained",onClick:h,disabled:((d==null?void 0:d.length)??0)>0,style:{fontSize:"14px"},children:I.jsx(et,{fontSize:"14px",children:"Submit"})})})]})},sPe=({formData:e,onDataChange:t,onSave:n,schema:r,uischema:i,enableSubmit:a,setHeight:s})=>{const l=Ga(f=>f.formBuilder.schema),c=Ga(f=>f.formBuilder.uischema),u=r&&Object.keys(r).length>0?r:l,d=i&&Object.keys(i).length>0?i:c;return I.jsx("div",{id:"form-preview",children:I.jsx(_R,{schema:u,uischema:d,data:e,onChange:t,onSave:n,enableSubmit:a,setHeight:s})})},Bp="TEXTBOX",hs="DATE_PICKER",ms="RADIO",gs="CHECKBOX",zp="DROPDOWN",Hd="GROUP",Ua="IMAGE",cc="INFORMATION",Yd="ADDRESS",Gd="HEADER",Ha="MULTISELECT",Kd="CONTENT",Xd="HORIZONTAL_LAYOUT",lPe=ct(I.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields"),cPe=ct(I.jsx("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event"),uPe=ct(I.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonChecked"),dPe=ct(I.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"),fPe=ct(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 12-4-4h8z"}),"ArrowDropDownCircle"),pPe=ct(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5M9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8m6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"GroupWork"),hPe=ct(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),mPe=ct(I.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn"),gPe=ct(I.jsx("path",{d:"M5 4v3h5.5v12h3V7H19V4z"}),"Title"),yPe=ct(I.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),bPe=ct(I.jsx("path",{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"}),"Checklist"),vPe=ct(I.jsx("path",{d:"M3 18h12v-2H3zM3 6v2h18V6zm0 7h18v-2H3z"}),"Notes"),wPe=ct(I.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),xPe={TEXTBOX:lPe,DATE_PICKER:cPe,RADIO:uPe,CHECKBOX:dPe,DROPDOWN:fPe,GROUP:pPe,INFORMATION:hPe,ADDRESS:mPe,HEADER:gPe,IMAGE:yPe,MULTISELECT:bPe,CONTENT:vPe,HORIZONTAL_LAYOUT:wPe},OPe=({type:e,label:t,showLabel:n,tooltip:r=""})=>{const[{isDragging:i},a]=R2(()=>({type:e,item:{type:e},collect:c=>({isDragging:c.isDragging()})})),s=xPe[e],l=I.jsxs(so,{ref:a,elevation:2,sx:{opacity:i?.5:1,cursor:"move",padding:1,borderRadius:1,marginBottom:2,backgroundColor:"#fff",display:"flex",alignItems:"center",gap:1,justifyContent:n?"flex-start":"center"},children:[s&&I.jsx(s,{fontSize:"small"}),n&&I.jsx(et,{fontSize:"14px",children:t})]});return r?I.jsx(ar,{title:r,placement:"right",children:l}):l};function kR(e){const t=xE.getState(),n=Object.keys(t.formBuilder.schema.properties||{}),r=e.toLowerCase();let i=1,a=`${r}${i}`;const s=new Set(n);for(;s.has(a);)i++,a=`${r}${i}`;return a}function TPe({setSelectedField:e,onDropComponent:t,shouldHandleDrop:n}){return US(()=>({accept:[Bp,hs,ms,gs,zp,Hd,cc,Yd,Gd,Ua,Ha,Kd,Xd],drop:(r,i)=>{if(n&&!n(i))return;let a="";r.type!==Hd&&r.type!==cc&&r.type!==Gd&&r.type!==Xd&&(a=kR(r.type),e(a)),t(r.type,a)},collect:r=>({isOver:!!r.isOver()})}))}function id(e){switch(e){case Bp:return{type:"string",title:"Text Box",errorMessage:"This is a required field"};case hs:return{type:"string",format:"date",title:"Date Picker"};case ms:return{type:"string",title:"Radio Button",enum:["Option 1","Option 2","Option 3"]};case gs:return{type:"array",title:"Checkboxes",items:{type:"string",enum:["Option A","Option B","Option C"]},uniqueItems:!0};case zp:return{type:"string",title:"Dropdown",enum:["Select A","Select B","Select C"]};case cc:return{type:"object",title:"Information",properties:{firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"},dob:{type:"string",title:"DOB",format:"date"},gender:{type:"string",title:"Gender",enum:["Male","Female","Other"]}}};case Yd:return{type:"object",title:"Address",properties:{line1:{type:"string",title:"Line 1"},line2:{type:"string",title:"Line 2"},city:{type:"string",title:"City"},state:{type:"string",title:"State"},zipcode:{type:"string",title:"Zipcode"}}};case Ua:return{type:"string",title:"Image",format:"data-url"};case Ha:return{type:"array",title:"Multi Select",items:{type:"string",enum:["Option 1","Option 2","Option 3"]},uniqueItems:!0};default:return{type:"string",title:"Unknown Field"}}}const ru=ct(I.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),SPe=e=>{var d,f;const{path:t,onEdit:n,onDelete:r,selectedField:i,uischema:a,schema:s}=e,l=(t==null?void 0:t.split(".").pop())||"",c=i===l;if(!!n){let p=(a==null?void 0:a.label)||((f=(d=s==null?void 0:s.properties)==null?void 0:d[l])==null?void 0:f.title)||l;if(p&&typeof p=="string"&&p.includes("_")){const h=p.split("_");if(h.length>0){const g=h[0];p=g.charAt(0).toUpperCase()+g.slice(1).replace(/([A-Z])/g," $1")}}return p||(p=l||"Field"),I.jsxs(at,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[I.jsxs(et,{sx:{flex:1,fontSize:14},children:[" ",p]}),I.jsxs(at,{sx:{display:"flex",alignItems:"center",gap:1},children:[I.jsx(Gt,{size:"small",onClick:()=>{n&&l&&n(l)},children:I.jsx(ru,{fontSize:"small",sx:{color:c?"#1976d2":"inherit"}})}),I.jsx(Gt,{size:"small",onClick:()=>{r&&l&&r(l)},children:I.jsx(bi,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]})}else return I.jsx(lR,{...e})},Lu=Bn(SPe),EPe=e=>{var d;const{uischema:t,path:n,renderers:r,cells:i,onEditGroup:a,selectedGroupKey:s}=e,l=t._key,c=t.label,u=s===l;return I.jsxs(at,{sx:{border:u?"2px solid #1976d2":"1px solid #ccc",borderRadius:2,mb:2,p:2,bgcolor:u?"#e3f2fd":"#fff",position:"relative",maxWidth:"195px",pl:1,pr:1},children:[I.jsxs(at,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2,children:[I.jsx(et,{fontSize:"14px",fontWeight:600,children:c}),I.jsxs(at,{sx:{display:"flex",alignItems:"center",gap:1},children:[I.jsx(Gt,{size:"small",onClick:f=>{f.stopPropagation(),a&&l&&a(l,c)},title:"Edit group name",children:I.jsx(ru,{fontSize:"small",sx:{color:u?"#1976d2":"inherit"}})}),I.jsx(Gt,{size:"small",onClick:f=>{f.stopPropagation(),e.onDeleteGroup&&l&&e.onDeleteGroup(l)},title:"Delete group",children:I.jsx(bi,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}),I.jsx(at,{sx:{maxWidth:"100%",overflow:"hidden",width:"100%"},children:(d=t.elements)==null?void 0:d.map((f,p)=>I.jsx(ur,{uischema:f,schema:e.schema,path:n,renderers:r,cells:i},p))})]})},CPe=gi(EPe),PPe=e=>{var f;const{data:t,visible:n,path:r,uischema:i}=e;if(!n)return null;const a=r||((f=i==null?void 0:i.scope)==null?void 0:f.replace("#/properties/","")),s=e.onEdit,l=e.onDelete,u=e.selectedField===a;return s?I.jsxs(at,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[I.jsx(et,{sx:{flex:1,fontSize:14},children:"Content"}),I.jsxs(at,{sx:{display:"flex",alignItems:"center",gap:1},children:[I.jsx(Gt,{size:"small",onClick:()=>{s&&a&&s(a)},children:I.jsx(ru,{fontSize:"small",sx:{color:u?"#1976d2":"inherit"}})}),I.jsx(Gt,{size:"small",onClick:()=>{l&&a&&l(a)},children:I.jsx(bi,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}):I.jsx(at,{sx:{display:"flex",alignItems:"center",borderRadius:1,padding:"4px 8px"},children:I.jsx("div",{dangerouslySetInnerHTML:{__html:t||""},style:{flex:1}})})},_Pe=Bn(PPe),kPe=e=>{const{uischema:t,schema:n,path:r,enabled:i,visible:a,renderers:s,cells:l,onEdit:c,onDelete:u,selectedField:d}=e,f=tE();if(!a)return null;const p=t.elements||[],h=t._key,g=d===h,m=!h,[{isOver:y},b]=US(()=>({accept:[Bp,hs,ms,gs,zp,Ua,Ha,Kd],canDrop:()=>!0,drop:(v,x)=>{if(!x.isOver({shallow:!0})||!h)return;const w=kR(v.type),O=id(v.type),E={type:"Control",scope:`#/properties/${w}`,options:v.type===ms?{format:"radio"}:v.type===gs?{format:"checkbox"}:v.type===hs?{format:"MM/DD/YYYY"}:void 0};return f(vF({layoutKey:h,fieldKey:w,fieldSchema:O,uiControl:E})),{handled:!0}},collect:v=>({isOver:!!v.isOver()})}));return m?I.jsx(at,{sx:{display:"flex",gap:4,width:"100%",overflowX:"auto",overflowY:"hidden","&::-webkit-scrollbar":{height:"8px"},"&::-webkit-scrollbar-track":{background:"#f1f1f1",borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:"#c1c1c1",borderRadius:"4px","&:hover":{background:"#a8a8a8"}},"& > *":{flexShrink:0,minWidth:"160px",maxWidth:"160px"}},children:p.map((v,x)=>I.jsx(at,{sx:{flexShrink:0,minWidth:"160px",maxWidth:"160px"},children:I.jsx(ur,{uischema:v,schema:n,path:r,enabled:i,renderers:s,cells:l})},x))}):I.jsxs(at,{sx:{border:g?"2px solid #1976d2":"1px solid #ccc",borderRadius:2,mb:2,p:2,bgcolor:g?"#e3f2fd":"#fff",position:"relative",maxWidth:"195px",overflow:"hidden"},children:[I.jsxs(at,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2,children:[I.jsx(et,{fontWeight:600,fontSize:"14px",mb:2,children:" Horizontal Layout "}),I.jsxs(at,{sx:{display:"flex",alignItems:"center",gap:1},children:[I.jsx(ru,{style:{cursor:"pointer",color:g?"#1976d2":void 0},onClick:()=>{c&&h&&c(h)}}),I.jsx(bi,{sx:{cursor:"pointer",color:"black","&:hover":{color:"red"}},onClick:()=>{u&&h&&u(h)}})]})]}),I.jsx(at,{ref:b,"data-horizontal-layout":"true",sx:{maxWidth:"100%",display:"flex",gap:2,minHeight:p.length===0?100:"auto",border:y?"2px dashed #1976d2":"2px dashed #ccc",borderRadius:2,p:p.length===0?2:1,bgcolor:y?"#e3f2fd":"transparent",alignItems:"center",justifyContent:p.length===0?"center":"flex-start",overflowX:"auto",overflowY:"hidden","&::-webkit-scrollbar":{height:"8px"},"&::-webkit-scrollbar-track":{background:"#f1f1f1",borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:"#c1c1c1",borderRadius:"4px","&:hover":{background:"#a8a8a8"}},"& > *":{flexShrink:0,minWidth:"160px",maxWidth:"160px"}},children:p.length===0?I.jsx(at,{sx:{color:"#666",textAlign:"center"},children:"Drag components here to arrange horizontally"}):p.map((v,x)=>I.jsx(at,{sx:{flexShrink:0,minWidth:"160px",maxWidth:"160px"},children:I.jsx(ur,{uischema:v,schema:n,path:r,enabled:i,renderers:s,cells:l})},x))})]})},DPe=gi(kPe),$Pe=e=>{const{data:t,visible:n,uischema:r,onEdit:i,onDelete:a,selectedField:s}=e;if(!n)return null;const l=(r==null?void 0:r.text)??"Heading",c=r._key||l,u=s===c;return i?I.jsxs(at,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[I.jsx(et,{sx:{flex:1,fontSize:14},children:"Heading"}),I.jsxs(at,{sx:{display:"flex",alignItems:"center",gap:1},children:[I.jsx(Gt,{size:"small",onClick:()=>{i&&c&&i(c)},children:I.jsx(ru,{fontSize:"small",sx:{color:u?"#1976d2":"inherit"}})}),I.jsx(Gt,{size:"small",onClick:()=>{a&&c&&a(c)},children:I.jsx(bi,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}):I.jsx(at,{sx:{display:"flex",alignItems:"center",borderRadius:1,padding:"4px 8px"},children:I.jsx("div",{dangerouslySetInnerHTML:{__html:t||""},style:{flex:1}})})},RPe=vD($Pe);function MPe(e){const{selectedField:t,selectedGroupKey:n,setSelectedField:r,setSelectedGroupKey:i,setFieldLabel:a,setFieldTouched:s,onDeleteField:l,schema:c}=e,u=pt(1e3,f=>{var y;if(!Vi(f))return!1;const p=f.scope;if(!p)return!1;const h=p.replace("#/properties/",""),g=(y=c==null?void 0:c.properties)==null?void 0:y[h];return!!(g!=null&&g.title)&&g.title==="Content"});return[{tester:f=>f.type==="HorizontalLayout"?1e3:-1,renderer:f=>I.jsx(DPe,{...f,onEdit:p=>{var g;r(p),i(null);const h=(g=c.properties)==null?void 0:g[p];a((h==null?void 0:h.title)||"Horizontal Layout"),s(!1)},onDelete:p=>{l(p)},selectedField:t})},{tester:u,renderer:f=>I.jsx(_Pe,{...f,onEdit:p=>{var g;r(p),i(null);const h=(g=c.properties)==null?void 0:g[p];a((h==null?void 0:h.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:f=>{var m;if(f.type!=="Control")return-1;const p=f.scope;if(!p)return-1;const h=p.replace("#/properties/",""),g=(m=c==null?void 0:c.properties)==null?void 0:m[h];return(g==null?void 0:g.format)==="date"?1e3:-1},renderer:f=>I.jsx(Lu,{...f,onEdit:p=>{var g;r(p),i(null);const h=(g=c.properties)==null?void 0:g[p];a((h==null?void 0:h.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:f=>{var m,y;if(f.type!=="Control")return-1;const p=f.scope;if(!p)return-1;const h=p.replace("#/properties/",""),g=(m=c==null?void 0:c.properties)==null?void 0:m[h];return g!=null&&g.enum&&((y=f.options)==null?void 0:y.format)==="radio"?25:-1},renderer:f=>I.jsx(Lu,{...f,onEdit:p=>{var g;r(p),i(null);const h=(g=c.properties)==null?void 0:g[p];a((h==null?void 0:h.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:f=>{var m,y;if(f.type!=="Control")return-1;const p=f.scope;if(!p)return-1;const h=p.replace("#/properties/",""),g=(m=c==null?void 0:c.properties)==null?void 0:m[h];return g!=null&&g.enum&&((y=f.options)==null?void 0:y.format)!=="radio"?23:-1},renderer:f=>I.jsx(Lu,{...f,onEdit:p=>{var g;r(p),i(null);const h=(g=c.properties)==null?void 0:g[p];a((h==null?void 0:h.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:f=>{var m;if(f.type!=="Control")return-1;const p=f.scope;if(!p)return-1;const h=p.replace("#/properties/",""),g=(m=c==null?void 0:c.properties)==null?void 0:m[h];return g!=null&&g.enum?-1:10},renderer:f=>I.jsx(Lu,{...f,onEdit:p=>{var g;r(p),i(null);const h=(g=c.properties)==null?void 0:g[p];a((h==null?void 0:h.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:f=>f.type==="Group"?10:-1,renderer:f=>I.jsx(CPe,{...f,onEditGroup:(p,h)=>{i(p),r(null),a(h),s(!1)},onDeleteGroup:p=>{l(p)},selectedGroupKey:n})},{tester:f=>f.type==="Label"?8:-1,renderer:f=>I.jsx(RPe,{...f,onEdit:p=>{var g;r(p),i(null);const h=(g=c.properties)==null?void 0:g[p];a((h==null?void 0:h.title)||"Heading"),s(!1)},onDelete:l,selectedField:t})},...cR]}var DR={exports:{}};/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/(function(e,t){(function(r,i){e.exports=i()})(typeof self<"u"?self:kn,function(){return function(n){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(a,s,l){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:l})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=109)}([function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(17),s=i(18),l=i(19),c=i(45),u=i(46),d=i(47),f=i(48),p=i(49),h=i(12),g=i(32),m=i(33),y=i(31),b=i(1),v={Scope:b.Scope,create:b.create,find:b.find,query:b.query,register:b.register,Container:a.default,Format:s.default,Leaf:l.default,Embed:f.default,Scroll:c.default,Block:d.default,Inline:u.default,Text:p.default,Attributor:{Attribute:h.default,Class:g.default,Style:m.default,Store:y.default}};r.default=v},function(n,r,i){var a=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var x in v)v.hasOwnProperty(x)&&(b[x]=v[x])};return function(b,v){y(b,v);function x(){this.constructor=b}b.prototype=v===null?Object.create(v):(x.prototype=v.prototype,new x)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=function(y){a(b,y);function b(v){var x=this;return v="[Parchment] "+v,x=y.call(this,v)||this,x.message=v,x.name=x.constructor.name,x}return b}(Error);r.ParchmentError=s;var l={},c={},u={},d={};r.DATA_KEY="__blot";var f;(function(y){y[y.TYPE=3]="TYPE",y[y.LEVEL=12]="LEVEL",y[y.ATTRIBUTE=13]="ATTRIBUTE",y[y.BLOT=14]="BLOT",y[y.INLINE=7]="INLINE",y[y.BLOCK=11]="BLOCK",y[y.BLOCK_BLOT=10]="BLOCK_BLOT",y[y.INLINE_BLOT=6]="INLINE_BLOT",y[y.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",y[y.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",y[y.ANY=15]="ANY"})(f=r.Scope||(r.Scope={}));function p(y,b){var v=g(y);if(v==null)throw new s("Unable to create "+y+" blot");var x=v,w=y instanceof Node||y.nodeType===Node.TEXT_NODE?y:x.create(b);return new x(w,b)}r.create=p;function h(y,b){return b===void 0&&(b=!1),y==null?null:y[r.DATA_KEY]!=null?y[r.DATA_KEY].blot:b?h(y.parentNode,b):null}r.find=h;function g(y,b){b===void 0&&(b=f.ANY);var v;if(typeof y=="string")v=d[y]||l[y];else if(y instanceof Text||y.nodeType===Node.TEXT_NODE)v=d.text;else if(typeof y=="number")y&f.LEVEL&f.BLOCK?v=d.block:y&f.LEVEL&f.INLINE&&(v=d.inline);else if(y instanceof HTMLElement){var x=(y.getAttribute("class")||"").split(/\s+/);for(var w in x)if(v=c[x[w]],v)break;v=v||u[y.tagName]}return v==null?null:b&f.LEVEL&v.scope&&b&f.TYPE&v.scope?v:null}r.query=g;function m(){for(var y=[],b=0;b<arguments.length;b++)y[b]=arguments[b];if(y.length>1)return y.map(function(w){return m(w)});var v=y[0];if(typeof v.blotName!="string"&&typeof v.attrName!="string")throw new s("Invalid definition");if(v.blotName==="abstract")throw new s("Cannot register abstract class");if(d[v.blotName||v.attrName]=v,typeof v.keyName=="string")l[v.keyName]=v;else if(v.className!=null&&(c[v.className]=v),v.tagName!=null){Array.isArray(v.tagName)?v.tagName=v.tagName.map(function(w){return w.toUpperCase()}):v.tagName=v.tagName.toUpperCase();var x=Array.isArray(v.tagName)?v.tagName:[v.tagName];x.forEach(function(w){(u[w]==null||v.className==null)&&(u[w]=v)})}return v}r.register=m},function(n,r,i){var a=i(51),s=i(11),l=i(3),c=i(20),u="\0",d=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};d.prototype.insert=function(f,p){var h={};return f.length===0?this:(h.insert=f,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(h.attributes=p),this.push(h))},d.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},d.prototype.retain=function(f,p){if(f<=0)return this;var h={retain:f};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(h.attributes=p),this.push(h)},d.prototype.push=function(f){var p=this.ops.length,h=this.ops[p-1];if(f=l(!0,{},f),typeof h=="object"){if(typeof f.delete=="number"&&typeof h.delete=="number")return this.ops[p-1]={delete:h.delete+f.delete},this;if(typeof h.delete=="number"&&f.insert!=null&&(p-=1,h=this.ops[p-1],typeof h!="object"))return this.ops.unshift(f),this;if(s(f.attributes,h.attributes)){if(typeof f.insert=="string"&&typeof h.insert=="string")return this.ops[p-1]={insert:h.insert+f.insert},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof h.retain=="number")return this.ops[p-1]={retain:h.retain+f.retain},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this}}return p===this.ops.length?this.ops.push(f):this.ops.splice(p,0,f),this},d.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},d.prototype.filter=function(f){return this.ops.filter(f)},d.prototype.forEach=function(f){this.ops.forEach(f)},d.prototype.map=function(f){return this.ops.map(f)},d.prototype.partition=function(f){var p=[],h=[];return this.forEach(function(g){var m=f(g)?p:h;m.push(g)}),[p,h]},d.prototype.reduce=function(f,p){return this.ops.reduce(f,p)},d.prototype.changeLength=function(){return this.reduce(function(f,p){return p.insert?f+c.length(p):p.delete?f-p.delete:f},0)},d.prototype.length=function(){return this.reduce(function(f,p){return f+c.length(p)},0)},d.prototype.slice=function(f,p){f=f||0,typeof p!="number"&&(p=1/0);for(var h=[],g=c.iterator(this.ops),m=0;m<p&&g.hasNext();){var y;m<f?y=g.next(f-m):(y=g.next(p-m),h.push(y)),m+=c.length(y)}return new d(h)},d.prototype.compose=function(f){var p=c.iterator(this.ops),h=c.iterator(f.ops),g=[],m=h.peek();if(m!=null&&typeof m.retain=="number"&&m.attributes==null){for(var y=m.retain;p.peekType()==="insert"&&p.peekLength()<=y;)y-=p.peekLength(),g.push(p.next());m.retain-y>0&&h.next(m.retain-y)}for(var b=new d(g);p.hasNext()||h.hasNext();)if(h.peekType()==="insert")b.push(h.next());else if(p.peekType()==="delete")b.push(p.next());else{var v=Math.min(p.peekLength(),h.peekLength()),x=p.next(v),w=h.next(v);if(typeof w.retain=="number"){var O={};typeof x.retain=="number"?O.retain=v:O.insert=x.insert;var E=c.attributes.compose(x.attributes,w.attributes,typeof x.retain=="number");if(E&&(O.attributes=E),b.push(O),!h.hasNext()&&s(b.ops[b.ops.length-1],O)){var C=new d(p.rest());return b.concat(C).chop()}}else typeof w.delete=="number"&&typeof x.retain=="number"&&b.push(w)}return b.chop()},d.prototype.concat=function(f){var p=new d(this.ops.slice());return f.ops.length>0&&(p.push(f.ops[0]),p.ops=p.ops.concat(f.ops.slice(1))),p},d.prototype.diff=function(f,p){if(this.ops===f.ops)return new d;var h=[this,f].map(function(v){return v.map(function(x){if(x.insert!=null)return typeof x.insert=="string"?x.insert:u;var w=v===f?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")}),g=new d,m=a(h[0],h[1],p),y=c.iterator(this.ops),b=c.iterator(f.ops);return m.forEach(function(v){for(var x=v[1].length;x>0;){var w=0;switch(v[0]){case a.INSERT:w=Math.min(b.peekLength(),x),g.push(b.next(w));break;case a.DELETE:w=Math.min(x,y.peekLength()),y.next(w),g.delete(w);break;case a.EQUAL:w=Math.min(y.peekLength(),b.peekLength(),x);var O=y.next(w),E=b.next(w);s(O.insert,E.insert)?g.retain(w,c.attributes.diff(O.attributes,E.attributes)):g.push(E).delete(w);break}x-=w}}),g.chop()},d.prototype.eachLine=function(f,p){p=p||`
`;for(var h=c.iterator(this.ops),g=new d,m=0;h.hasNext();){if(h.peekType()!=="insert")return;var y=h.peek(),b=c.length(y)-h.peekLength(),v=typeof y.insert=="string"?y.insert.indexOf(p,b)-b:-1;if(v<0)g.push(h.next());else if(v>0)g.push(h.next(v));else{if(f(g,h.next(1).attributes||{},m)===!1)return;m+=1,g=new d}}g.length()>0&&f(g,{},m)},d.prototype.transform=function(f,p){if(p=!!p,typeof f=="number")return this.transformPosition(f,p);for(var h=c.iterator(this.ops),g=c.iterator(f.ops),m=new d;h.hasNext()||g.hasNext();)if(h.peekType()==="insert"&&(p||g.peekType()!=="insert"))m.retain(c.length(h.next()));else if(g.peekType()==="insert")m.push(g.next());else{var y=Math.min(h.peekLength(),g.peekLength()),b=h.next(y),v=g.next(y);if(b.delete)continue;v.delete?m.push(v):m.retain(y,c.attributes.transform(b.attributes,v.attributes,p))}return m.chop()},d.prototype.transformPosition=function(f,p){p=!!p;for(var h=c.iterator(this.ops),g=0;h.hasNext()&&g<=f;){var m=h.peekLength(),y=h.peekType();if(h.next(),y==="delete"){f-=Math.min(m,f-g);continue}else y==="insert"&&(g<f||!p)&&(f+=m);g+=m}return f},n.exports=d},function(n,r){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(h){return typeof Array.isArray=="function"?Array.isArray(h):a.call(h)==="[object Array]"},u=function(h){if(!h||a.call(h)!=="[object Object]")return!1;var g=i.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&i.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!m)return!1;var y;for(y in h);return typeof y>"u"||i.call(h,y)},d=function(h,g){s&&g.name==="__proto__"?s(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},f=function(h,g){if(g==="__proto__")if(i.call(h,g)){if(l)return l(h,g).value}else return;return h[g]};n.exports=function p(){var h,g,m,y,b,v,x=arguments[0],w=1,O=arguments.length,E=!1;for(typeof x=="boolean"&&(E=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});w<O;++w)if(h=arguments[w],h!=null)for(g in h)m=f(x,g),y=f(h,g),x!==y&&(E&&y&&(u(y)||(b=c(y)))?(b?(b=!1,v=m&&c(m)?m:[]):v=m&&u(m)?m:{},d(x,{name:g,newValue:p(E,v,y)})):typeof y<"u"&&d(x,{name:g,newValue:y}));return x}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var a=function(){function _(k,$){for(var M=0;M<$.length;M++){var j=$[M];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}return function(k,$,M){return $&&_(k.prototype,$),M&&_(k,M),k}}(),s=function _(k,$,M){k===null&&(k=Function.prototype);var j=Object.getOwnPropertyDescriptor(k,$);if(j===void 0){var W=Object.getPrototypeOf(k);return W===null?void 0:_(W,$,M)}else{if("value"in j)return j.value;var H=j.get;return H===void 0?void 0:H.call(M)}},l=i(3),c=x(l),u=i(2),d=x(u),f=i(0),p=x(f),h=i(16),g=x(h),m=i(6),y=x(m),b=i(7),v=x(b);function x(_){return _&&_.__esModule?_:{default:_}}function w(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function O(_,k){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:_}function E(_,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);_.prototype=Object.create(k&&k.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(_,k):_.__proto__=k)}var C=1,S=function(_){E(k,_);function k(){return w(this,k),O(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return a(k,[{key:"attach",value:function(){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"attach",this).call(this),this.attributes=new p.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(M,j){var W=p.default.query(M,p.default.Scope.BLOCK_ATTRIBUTE);W!=null&&this.attributes.attribute(W,j)}},{key:"formatAt",value:function(M,j,W,H){this.format(W,H)}},{key:"insertAt",value:function(M,j,W){if(typeof j=="string"&&j.endsWith(`
`)){var H=p.default.create(P.blotName);this.parent.insertBefore(H,M===0?this:this.next),H.insertAt(0,j.slice(0,-1))}else s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,M,j,W)}}]),k}(p.default.Embed);S.scope=p.default.Scope.BLOCK_BLOT;var P=function(_){E(k,_);function k($){w(this,k);var M=O(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,$));return M.cache={},M}return a(k,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(p.default.Leaf).reduce(function(M,j){return j.length()===0?M:M.insert(j.value(),T(j))},new d.default).insert(`
`,T(this))),this.cache.delta}},{key:"deleteAt",value:function(M,j){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"deleteAt",this).call(this,M,j),this.cache={}}},{key:"formatAt",value:function(M,j,W,H){j<=0||(p.default.query(W,p.default.Scope.BLOCK)?M+j===this.length()&&this.format(W,H):s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"formatAt",this).call(this,M,Math.min(j,this.length()-M-1),W,H),this.cache={})}},{key:"insertAt",value:function(M,j,W){if(W!=null)return s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,M,j,W);if(j.length!==0){var H=j.split(`
`),X=H.shift();X.length>0&&(M<this.length()-1||this.children.tail==null?s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,Math.min(M,this.length()-1),X):this.children.tail.insertAt(this.children.tail.length(),X),this.cache={});var U=this;H.reduce(function(L,D){return U=U.split(L,!0),U.insertAt(0,D),D.length},M+X.length)}}},{key:"insertBefore",value:function(M,j){var W=this.children.head;s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertBefore",this).call(this,M,j),W instanceof g.default&&W.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"length",this).call(this)+C),this.cache.length}},{key:"moveChildren",value:function(M,j){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"moveChildren",this).call(this,M,j),this.cache={}}},{key:"optimize",value:function(M){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,M),this.cache={}}},{key:"path",value:function(M){return s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"path",this).call(this,M,!0)}},{key:"removeChild",value:function(M){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"removeChild",this).call(this,M),this.cache={}}},{key:"split",value:function(M){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(j&&(M===0||M>=this.length()-C)){var W=this.clone();return M===0?(this.parent.insertBefore(W,this),this):(this.parent.insertBefore(W,this.next),W)}else{var H=s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"split",this).call(this,M,j);return this.cache={},H}}}]),k}(p.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[y.default,p.default.Embed,v.default];function T(_){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _==null||(typeof _.formats=="function"&&(k=(0,c.default)(k,_.formats())),_.parent==null||_.parent.blotName=="scroll"||_.parent.statics.scope!==_.statics.scope)?k:T(_.parent,k)}r.bubbleFormats=T,r.BlockEmbed=S,r.default=P},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},s=function(){function U(L,D){var B=[],z=!0,F=!1,A=void 0;try{for(var N=L[Symbol.iterator](),q;!(z=(q=N.next()).done)&&(B.push(q.value),!(D&&B.length===D));z=!0);}catch(Y){F=!0,A=Y}finally{try{!z&&N.return&&N.return()}finally{if(F)throw A}}return B}return function(L,D){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return U(L,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function U(L,D){for(var B=0;B<D.length;B++){var z=D[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(L,z.key,z)}}return function(L,D,B){return D&&U(L.prototype,D),B&&U(L,B),L}}();i(50);var c=i(2),u=T(c),d=i(14),f=T(d),p=i(8),h=T(p),g=i(9),m=T(g),y=i(0),b=T(y),v=i(15),x=T(v),w=i(3),O=T(w),E=i(10),C=T(E),S=i(34),P=T(S);function T(U){return U&&U.__esModule?U:{default:U}}function _(U,L,D){return L in U?Object.defineProperty(U,L,{value:D,enumerable:!0,configurable:!0,writable:!0}):U[L]=D,U}function k(U,L){if(!(U instanceof L))throw new TypeError("Cannot call a class as a function")}var $=(0,C.default)("quill"),M=function(){l(U,null,[{key:"debug",value:function(D){D===!0&&(D="log"),C.default.level(D)}},{key:"find",value:function(D){return D.__quill||b.default.find(D)}},{key:"import",value:function(D){return this.imports[D]==null&&$.error("Cannot import "+D+". Are you sure it was registered?"),this.imports[D]}},{key:"register",value:function(D,B){var z=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof D!="string"){var A=D.attrName||D.blotName;typeof A=="string"?this.register("formats/"+A,D,B):Object.keys(D).forEach(function(N){z.register(N,D[N],B)})}else this.imports[D]!=null&&!F&&$.warn("Overwriting "+D+" with",B),this.imports[D]=B,(D.startsWith("blots/")||D.startsWith("formats/"))&&B.blotName!=="abstract"?b.default.register(B):D.startsWith("modules")&&typeof B.register=="function"&&B.register()}}]);function U(L){var D=this,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(k(this,U),this.options=j(L,B),this.container=this.options.container,this.container==null)return $.error("Invalid Quill container",L);this.options.debug&&U.debug(this.options.debug);var z=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=b.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new x.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(A){A===h.default.events.TEXT_CHANGE&&D.root.classList.toggle("ql-blank",D.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(A,N){var q=D.selection.lastRange,Y=q&&q.length===0?q.index:void 0;W.call(D,function(){return D.editor.update(null,N,Y)},A)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+z+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return l(U,[{key:"addContainer",value:function(D){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof D=="string"){var z=D;D=document.createElement("div"),D.classList.add(z)}return this.container.insertBefore(D,B),D}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(D,B,z){var F=this,A=H(D,B,z),N=s(A,4);return D=N[0],B=N[1],z=N[3],W.call(this,function(){return F.editor.deleteText(D,B)},z,D,-1*B)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(D),this.container.classList.toggle("ql-disabled",!D)}},{key:"focus",value:function(){var D=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=D,this.scrollIntoView()}},{key:"format",value:function(D,B){var z=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return W.call(this,function(){var A=z.getSelection(!0),N=new u.default;if(A==null)return N;if(b.default.query(D,b.default.Scope.BLOCK))N=z.editor.formatLine(A.index,A.length,_({},D,B));else{if(A.length===0)return z.selection.format(D,B),N;N=z.editor.formatText(A.index,A.length,_({},D,B))}return z.setSelection(A,h.default.sources.SILENT),N},F)}},{key:"formatLine",value:function(D,B,z,F,A){var N=this,q=void 0,Y=H(D,B,z,F,A),G=s(Y,4);return D=G[0],B=G[1],q=G[2],A=G[3],W.call(this,function(){return N.editor.formatLine(D,B,q)},A,D,0)}},{key:"formatText",value:function(D,B,z,F,A){var N=this,q=void 0,Y=H(D,B,z,F,A),G=s(Y,4);return D=G[0],B=G[1],q=G[2],A=G[3],W.call(this,function(){return N.editor.formatText(D,B,q)},A,D,0)}},{key:"getBounds",value:function(D){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=void 0;typeof D=="number"?z=this.selection.getBounds(D,B):z=this.selection.getBounds(D.index,D.length);var F=this.container.getBoundingClientRect();return{bottom:z.bottom-F.top,height:z.height,left:z.left-F.left,right:z.right-F.left,top:z.top-F.top,width:z.width}}},{key:"getContents",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,z=H(D,B),F=s(z,2);return D=F[0],B=F[1],this.editor.getContents(D,B)}},{key:"getFormat",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof D=="number"?this.editor.getFormat(D,B):this.editor.getFormat(D.index,D.length)}},{key:"getIndex",value:function(D){return D.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(D){return this.scroll.leaf(D)}},{key:"getLine",value:function(D){return this.scroll.line(D)}},{key:"getLines",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof D!="number"?this.scroll.lines(D.index,D.length):this.scroll.lines(D,B)}},{key:"getModule",value:function(D){return this.theme.modules[D]}},{key:"getSelection",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return D&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-D,z=H(D,B),F=s(z,2);return D=F[0],B=F[1],this.editor.getText(D,B)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(D,B,z){var F=this,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:U.sources.API;return W.call(this,function(){return F.editor.insertEmbed(D,B,z)},A,D)}},{key:"insertText",value:function(D,B,z,F,A){var N=this,q=void 0,Y=H(D,0,z,F,A),G=s(Y,4);return D=G[0],q=G[2],A=G[3],W.call(this,function(){return N.editor.insertText(D,B,q)},A,D,B.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(D,B,z){this.clipboard.dangerouslyPasteHTML(D,B,z)}},{key:"removeFormat",value:function(D,B,z){var F=this,A=H(D,B,z),N=s(A,4);return D=N[0],B=N[1],z=N[3],W.call(this,function(){return F.editor.removeFormat(D,B)},z,D)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(D){var B=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return W.call(this,function(){D=new u.default(D);var F=B.getLength(),A=B.editor.deleteText(0,F),N=B.editor.applyDelta(D),q=N.ops[N.ops.length-1];q!=null&&typeof q.insert=="string"&&q.insert[q.insert.length-1]===`
`&&(B.editor.deleteText(B.getLength()-1,1),N.delete(1));var Y=A.compose(N);return Y},z)}},{key:"setSelection",value:function(D,B,z){if(D==null)this.selection.setRange(null,B||U.sources.API);else{var F=H(D,B,z),A=s(F,4);D=A[0],B=A[1],z=A[3],this.selection.setRange(new v.Range(D,B),z),z!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(D){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,z=new u.default().insert(D);return this.setContents(z,B)}},{key:"update",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,B=this.scroll.update(D);return this.selection.update(D),B}},{key:"updateContents",value:function(D){var B=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return W.call(this,function(){return D=new u.default(D),B.editor.applyDelta(D,z)},z,!0)}}]),U}();M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=h.default.events,M.sources=h.default.sources,M.version="1.3.7",M.imports={delta:u.default,parchment:b.default,"core/module":m.default,"core/theme":P.default};function j(U,L){if(L=(0,O.default)(!0,{container:U,modules:{clipboard:!0,keyboard:!0,history:!0}},L),!L.theme||L.theme===M.DEFAULTS.theme)L.theme=P.default;else if(L.theme=M.import("themes/"+L.theme),L.theme==null)throw new Error("Invalid theme "+L.theme+". Did you register it?");var D=(0,O.default)(!0,{},L.theme.DEFAULTS);[D,L].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(A){F.modules[A]===!0&&(F.modules[A]={})})});var B=Object.keys(D.modules).concat(Object.keys(L.modules)),z=B.reduce(function(F,A){var N=M.import("modules/"+A);return N==null?$.error("Cannot load "+A+" module. Are you sure you registered it?"):F[A]=N.DEFAULTS||{},F},{});return L.modules!=null&&L.modules.toolbar&&L.modules.toolbar.constructor!==Object&&(L.modules.toolbar={container:L.modules.toolbar}),L=(0,O.default)(!0,{},M.DEFAULTS,{modules:z},D,L),["bounds","container","scrollingContainer"].forEach(function(F){typeof L[F]=="string"&&(L[F]=document.querySelector(L[F]))}),L.modules=Object.keys(L.modules).reduce(function(F,A){return L.modules[A]&&(F[A]=L.modules[A]),F},{}),L}function W(U,L,D,B){if(this.options.strict&&!this.isEnabled()&&L===h.default.sources.USER)return new u.default;var z=D==null?null:this.getSelection(),F=this.editor.delta,A=U();if(z!=null&&(D===!0&&(D=z.index),B==null?z=X(z,A,L):B!==0&&(z=X(z,D,B,L)),this.setSelection(z,h.default.sources.SILENT)),A.length()>0){var N,q=[h.default.events.TEXT_CHANGE,A,F,L];if((N=this.emitter).emit.apply(N,[h.default.events.EDITOR_CHANGE].concat(q)),L!==h.default.sources.SILENT){var Y;(Y=this.emitter).emit.apply(Y,q)}}return A}function H(U,L,D,B,z){var F={};return typeof U.index=="number"&&typeof U.length=="number"?typeof L!="number"?(z=B,B=D,D=L,L=U.length,U=U.index):(L=U.length,U=U.index):typeof L!="number"&&(z=B,B=D,D=L,L=0),(typeof D>"u"?"undefined":a(D))==="object"?(F=D,z=B):typeof D=="string"&&(B!=null?F[D]=B:z=D),z=z||h.default.sources.API,[U,L,F,z]}function X(U,L,D,B){if(U==null)return null;var z=void 0,F=void 0;if(L instanceof u.default){var A=[U.index,U.index+U.length].map(function(G){return L.transformPosition(G,B!==h.default.sources.USER)}),N=s(A,2);z=N[0],F=N[1]}else{var q=[U.index,U.index+U.length].map(function(G){return G<L||G===L&&B===h.default.sources.USER?G:D>=0?G+D:Math.max(L,G+D)}),Y=s(q,2);z=Y[0],F=Y[1]}return new v.Range(z,F-z)}r.expandConfig=j,r.overload=H,r.default=M},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function y(b,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,v,x){return v&&y(b.prototype,v),x&&y(b,x),b}}(),s=function y(b,v,x){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,v);if(w===void 0){var O=Object.getPrototypeOf(b);return O===null?void 0:y(O,v,x)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(x)}},l=i(7),c=f(l),u=i(0),d=f(u);function f(y){return y&&y.__esModule?y:{default:y}}function p(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function h(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function g(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var m=function(y){g(b,y);function b(){return p(this,b),h(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"formatAt",value:function(x,w,O,E){if(b.compare(this.statics.blotName,O)<0&&d.default.query(O,d.default.Scope.BLOT)){var C=this.isolate(x,w);E&&C.wrap(O,E)}else s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"formatAt",this).call(this,x,w,O,E)}},{key:"optimize",value:function(x){if(s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,x),this.parent instanceof b&&b.compare(this.statics.blotName,this.parent.statics.blotName)>0){var w=this.parent.isolate(this.offset(),this.length());this.moveChildren(w),w.wrap(this)}}}],[{key:"compare",value:function(x,w){var O=b.order.indexOf(x),E=b.order.indexOf(w);return O>=0||E>=0?O-E:x===w?0:x<w?-1:1}}]),b}(d.default.Inline);m.allowedChildren=[m,d.default.Embed,c.default],m.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),s=l(a);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default.Text);r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function v(x,w){for(var O=0;O<w.length;O++){var E=w[O];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(x,E.key,E)}}return function(x,w,O){return w&&v(x.prototype,w),O&&v(x,O),x}}(),s=function v(x,w,O){x===null&&(x=Function.prototype);var E=Object.getOwnPropertyDescriptor(x,w);if(E===void 0){var C=Object.getPrototypeOf(x);return C===null?void 0:v(C,w,O)}else{if("value"in E)return E.value;var S=E.get;return S===void 0?void 0:S.call(O)}},l=i(54),c=f(l),u=i(10),d=f(u);function f(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function h(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function g(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var m=(0,d.default)("quill:events"),y=["selectionchange","mousedown","mouseup","click"];y.forEach(function(v){document.addEventListener(v,function(){for(var x=arguments.length,w=Array(x),O=0;O<x;O++)w[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(E){if(E.__quill&&E.__quill.emitter){var C;(C=E.__quill.emitter).handleDOM.apply(C,w)}})})});var b=function(v){g(x,v);function x(){p(this,x);var w=h(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));return w.listeners={},w.on("error",m.error),w}return a(x,[{key:"emit",value:function(){m.log.apply(m,arguments),s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var E=arguments.length,C=Array(E>1?E-1:0),S=1;S<E;S++)C[S-1]=arguments[S];(this.listeners[O.type]||[]).forEach(function(P){var T=P.node,_=P.handler;(O.target===T||T.contains(O.target))&&_.apply(void 0,[O].concat(C))})}},{key:"listenDOM",value:function(O,E,C){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:E,handler:C})}}]),x}(c.default);b.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},b.sources={API:"api",SILENT:"silent",USER:"user"},r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});function a(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function l(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,l),this.quill=c,this.options=u};s.DEFAULTS={},r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=["error","warn","log","info"],s="warn";function l(u){if(a.indexOf(u)<=a.indexOf(s)){for(var d,f=arguments.length,p=Array(f>1?f-1:0),h=1;h<f;h++)p[h-1]=arguments[h];(d=console)[u].apply(d,p)}}function c(u){return a.reduce(function(d,f){return d[f]=l.bind(console,f,u),d},{})}l.level=c.level=function(u){s=u},r.default=c},function(n,r,i){var a=Array.prototype.slice,s=i(52),l=i(53),c=n.exports=function(p,h,g){return g||(g={}),p===h?!0:p instanceof Date&&h instanceof Date?p.getTime()===h.getTime():!p||!h||typeof p!="object"&&typeof h!="object"?g.strict?p===h:p==h:f(p,h,g)};function u(p){return p==null}function d(p){return!(!p||typeof p!="object"||typeof p.length!="number"||typeof p.copy!="function"||typeof p.slice!="function"||p.length>0&&typeof p[0]!="number")}function f(p,h,g){var m,y;if(u(p)||u(h)||p.prototype!==h.prototype)return!1;if(l(p))return l(h)?(p=a.call(p),h=a.call(h),c(p,h,g)):!1;if(d(p)){if(!d(h)||p.length!==h.length)return!1;for(m=0;m<p.length;m++)if(p[m]!==h[m])return!1;return!0}try{var b=s(p),v=s(h)}catch{return!1}if(b.length!=v.length)return!1;for(b.sort(),v.sort(),m=b.length-1;m>=0;m--)if(b[m]!=v[m])return!1;for(m=b.length-1;m>=0;m--)if(y=b[m],!c(p[y],h[y],g))return!1;return typeof p==typeof h}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),s=function(){function l(c,u,d){d===void 0&&(d={}),this.attrName=c,this.keyName=u;var f=a.Scope.TYPE&a.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&a.Scope.LEVEL|f:this.scope=a.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return l.keys=function(c){return[].map.call(c.attributes,function(u){return u.name})},l.prototype.add=function(c,u){return this.canAdd(c,u)?(c.setAttribute(this.keyName,u),!0):!1},l.prototype.canAdd=function(c,u){var d=a.query(c,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},l.prototype.remove=function(c){c.removeAttribute(this.keyName)},l.prototype.value=function(c){var u=c.getAttribute(this.keyName);return this.canAdd(c,u)&&u?u:""},l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var a=function(){function S(P,T){var _=[],k=!0,$=!1,M=void 0;try{for(var j=P[Symbol.iterator](),W;!(k=(W=j.next()).done)&&(_.push(W.value),!(T&&_.length===T));k=!0);}catch(H){$=!0,M=H}finally{try{!k&&j.return&&j.return()}finally{if($)throw M}}return _}return function(P,T){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return S(P,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(P,T){for(var _=0;_<T.length;_++){var k=T[_];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(P,k.key,k)}}return function(P,T,_){return T&&S(P.prototype,T),_&&S(P,_),P}}(),l=function S(P,T,_){P===null&&(P=Function.prototype);var k=Object.getOwnPropertyDescriptor(P,T);if(k===void 0){var $=Object.getPrototypeOf(P);return $===null?void 0:S($,T,_)}else{if("value"in k)return k.value;var M=k.get;return M===void 0?void 0:M.call(_)}},c=i(2),u=v(c),d=i(0),f=v(d),p=i(4),h=v(p),g=i(6),m=v(g),y=i(7),b=v(y);function v(S){return S&&S.__esModule?S:{default:S}}function x(S,P){if(!(S instanceof P))throw new TypeError("Cannot call a class as a function")}function w(S,P){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:S}function O(S,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);S.prototype=Object.create(P&&P.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(S,P):S.__proto__=P)}var E=function(S){O(P,S);function P(){return x(this,P),w(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(m.default);E.blotName="code",E.tagName="CODE";var C=function(S){O(P,S);function P(){return x(this,P),w(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return s(P,[{key:"delta",value:function(){var _=this,k=this.domNode.textContent;return k.endsWith(`
`)&&(k=k.slice(0,-1)),k.split(`
`).reduce(function($,M){return $.insert(M).insert(`
`,_.formats())},new u.default)}},{key:"format",value:function(_,k){if(!(_===this.statics.blotName&&k)){var $=this.descendant(b.default,this.length()-1),M=a($,1),j=M[0];j!=null&&j.deleteAt(j.length()-1,1),l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,_,k)}}},{key:"formatAt",value:function(_,k,$,M){if(k!==0&&!(f.default.query($,f.default.Scope.BLOCK)==null||$===this.statics.blotName&&M===this.statics.formats(this.domNode))){var j=this.newlineIndex(_);if(!(j<0||j>=_+k)){var W=this.newlineIndex(_,!0)+1,H=j-W+1,X=this.isolate(W,H),U=X.next;X.format($,M),U instanceof P&&U.formatAt(0,_-W+k-H,$,M)}}}},{key:"insertAt",value:function(_,k,$){if($==null){var M=this.descendant(b.default,_),j=a(M,2),W=j[0],H=j[1];W.insertAt(H,k)}}},{key:"length",value:function(){var _=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?_:_+1}},{key:"newlineIndex",value:function(_){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(k)return this.domNode.textContent.slice(0,_).lastIndexOf(`
`);var $=this.domNode.textContent.slice(_).indexOf(`
`);return $>-1?_+$:-1}},{key:"optimize",value:function(_){this.domNode.textContent.endsWith(`
`)||this.appendChild(f.default.create("text",`
`)),l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,_);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===k.statics.formats(k.domNode)&&(k.optimize(_),k.moveChildren(this),k.remove())}},{key:"replace",value:function(_){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,_),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(k){var $=f.default.find(k);$==null?k.parentNode.removeChild(k):$ instanceof f.default.Embed?$.remove():$.unwrap()})}}],[{key:"create",value:function(_){var k=l(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,_);return k.setAttribute("spellcheck",!1),k}},{key:"formats",value:function(){return!0}}]),P}(h.default);C.blotName="code-block",C.tagName="PRE",C.TAB=" ",r.Code=E,r.default=C},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},s=function(){function U(L,D){var B=[],z=!0,F=!1,A=void 0;try{for(var N=L[Symbol.iterator](),q;!(z=(q=N.next()).done)&&(B.push(q.value),!(D&&B.length===D));z=!0);}catch(Y){F=!0,A=Y}finally{try{!z&&N.return&&N.return()}finally{if(F)throw A}}return B}return function(L,D){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return U(L,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function U(L,D){for(var B=0;B<D.length;B++){var z=D[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(L,z.key,z)}}return function(L,D,B){return D&&U(L.prototype,D),B&&U(L,B),L}}(),c=i(2),u=k(c),d=i(20),f=k(d),p=i(0),h=k(p),g=i(13),m=k(g),y=i(24),b=k(y),v=i(4),x=k(v),w=i(16),O=k(w),E=i(21),C=k(E),S=i(11),P=k(S),T=i(3),_=k(T);function k(U){return U&&U.__esModule?U:{default:U}}function $(U,L,D){return L in U?Object.defineProperty(U,L,{value:D,enumerable:!0,configurable:!0,writable:!0}):U[L]=D,U}function M(U,L){if(!(U instanceof L))throw new TypeError("Cannot call a class as a function")}var j=/^[ -~]*$/,W=function(){function U(L){M(this,U),this.scroll=L,this.delta=this.getDelta()}return l(U,[{key:"applyDelta",value:function(D){var B=this,z=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),D=X(D),D.reduce(function(A,N){var q=N.retain||N.delete||N.insert.length||1,Y=N.attributes||{};if(N.insert!=null){if(typeof N.insert=="string"){var G=N.insert;G.endsWith(`
`)&&z&&(z=!1,G=G.slice(0,-1)),A>=F&&!G.endsWith(`
`)&&(z=!0),B.scroll.insertAt(A,G);var K=B.scroll.line(A),J=s(K,2),Z=J[0],ie=J[1],de=(0,_.default)({},(0,v.bubbleFormats)(Z));if(Z instanceof x.default){var xe=Z.descendant(h.default.Leaf,ie),he=s(xe,1),pe=he[0];de=(0,_.default)(de,(0,v.bubbleFormats)(pe))}Y=f.default.attributes.diff(de,Y)||{}}else if(a(N.insert)==="object"){var Q=Object.keys(N.insert)[0];if(Q==null)return A;B.scroll.insertAt(A,Q,N.insert[Q])}F+=q}return Object.keys(Y).forEach(function(oe){B.scroll.formatAt(A,q,oe,Y[oe])}),A+q},0),D.reduce(function(A,N){return typeof N.delete=="number"?(B.scroll.deleteAt(A,N.delete),A):A+(N.retain||N.insert.length||1)},0),this.scroll.batchEnd(),this.update(D)}},{key:"deleteText",value:function(D,B){return this.scroll.deleteAt(D,B),this.update(new u.default().retain(D).delete(B))}},{key:"formatLine",value:function(D,B){var z=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(A){if(!(z.scroll.whitelist!=null&&!z.scroll.whitelist[A])){var N=z.scroll.lines(D,Math.max(B,1)),q=B;N.forEach(function(Y){var G=Y.length();if(!(Y instanceof m.default))Y.format(A,F[A]);else{var K=D-Y.offset(z.scroll),J=Y.newlineIndex(K+q)-K+1;Y.formatAt(K,J,A,F[A])}q-=G})}}),this.scroll.optimize(),this.update(new u.default().retain(D).retain(B,(0,C.default)(F)))}},{key:"formatText",value:function(D,B){var z=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(A){z.scroll.formatAt(D,B,A,F[A])}),this.update(new u.default().retain(D).retain(B,(0,C.default)(F)))}},{key:"getContents",value:function(D,B){return this.delta.slice(D,D+B)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(D,B){return D.concat(B.delta())},new u.default)}},{key:"getFormat",value:function(D){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=[],F=[];B===0?this.scroll.path(D).forEach(function(N){var q=s(N,1),Y=q[0];Y instanceof x.default?z.push(Y):Y instanceof h.default.Leaf&&F.push(Y)}):(z=this.scroll.lines(D,B),F=this.scroll.descendants(h.default.Leaf,D,B));var A=[z,F].map(function(N){if(N.length===0)return{};for(var q=(0,v.bubbleFormats)(N.shift());Object.keys(q).length>0;){var Y=N.shift();if(Y==null)return q;q=H((0,v.bubbleFormats)(Y),q)}return q});return _.default.apply(_.default,A)}},{key:"getText",value:function(D,B){return this.getContents(D,B).filter(function(z){return typeof z.insert=="string"}).map(function(z){return z.insert}).join("")}},{key:"insertEmbed",value:function(D,B,z){return this.scroll.insertAt(D,B,z),this.update(new u.default().retain(D).insert($({},B,z)))}},{key:"insertText",value:function(D,B){var z=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return B=B.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(D,B),Object.keys(F).forEach(function(A){z.scroll.formatAt(D,B.length,A,F[A])}),this.update(new u.default().retain(D).insert(B,(0,C.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var D=this.scroll.children.head;return D.statics.blotName!==x.default.blotName||D.children.length>1?!1:D.children.head instanceof O.default}},{key:"removeFormat",value:function(D,B){var z=this.getText(D,B),F=this.scroll.line(D+B),A=s(F,2),N=A[0],q=A[1],Y=0,G=new u.default;N!=null&&(N instanceof m.default?Y=N.newlineIndex(q)-q+1:Y=N.length()-q,G=N.delta().slice(q,q+Y-1).insert(`
`));var K=this.getContents(D,B+Y),J=K.diff(new u.default().insert(z).concat(G)),Z=new u.default().retain(D).concat(J);return this.applyDelta(Z)}},{key:"update",value:function(D){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(B.length===1&&B[0].type==="characterData"&&B[0].target.data.match(j)&&h.default.find(B[0].target)){var A=h.default.find(B[0].target),N=(0,v.bubbleFormats)(A),q=A.offset(this.scroll),Y=B[0].oldValue.replace(b.default.CONTENTS,""),G=new u.default().insert(Y),K=new u.default().insert(A.value()),J=new u.default().retain(q).concat(G.diff(K,z));D=J.reduce(function(Z,ie){return ie.insert?Z.insert(ie.insert,N):Z.push(ie)},new u.default),this.delta=F.compose(D)}else this.delta=this.getDelta(),(!D||!(0,P.default)(F.compose(D),this.delta))&&(D=F.diff(this.delta,z));return D}}]),U}();function H(U,L){return Object.keys(L).reduce(function(D,B){return U[B]==null||(L[B]===U[B]?D[B]=L[B]:Array.isArray(L[B])?L[B].indexOf(U[B])<0&&(D[B]=L[B].concat([U[B]])):D[B]=[L[B],U[B]]),D},{})}function X(U){return U.reduce(function(L,D){if(D.insert===1){var B=(0,C.default)(D.attributes);return delete B.image,L.insert({image:D.attributes.image},B)}if(D.attributes!=null&&(D.attributes.list===!0||D.attributes.bullet===!0)&&(D=(0,C.default)(D),D.attributes.list?D.attributes.list="ordered":(D.attributes.list="bullet",delete D.attributes.bullet)),typeof D.insert=="string"){var z=D.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return L.insert(z,D.attributes)}return L.push(D)},new u.default)}r.default=W},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var a=function(){function S(P,T){var _=[],k=!0,$=!1,M=void 0;try{for(var j=P[Symbol.iterator](),W;!(k=(W=j.next()).done)&&(_.push(W.value),!(T&&_.length===T));k=!0);}catch(H){$=!0,M=H}finally{try{!k&&j.return&&j.return()}finally{if($)throw M}}return _}return function(P,T){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return S(P,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(P,T){for(var _=0;_<T.length;_++){var k=T[_];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(P,k.key,k)}}return function(P,T,_){return T&&S(P.prototype,T),_&&S(P,_),P}}(),l=i(0),c=b(l),u=i(21),d=b(u),f=i(11),p=b(f),h=i(8),g=b(h),m=i(10),y=b(m);function b(S){return S&&S.__esModule?S:{default:S}}function v(S){if(Array.isArray(S)){for(var P=0,T=Array(S.length);P<S.length;P++)T[P]=S[P];return T}else return Array.from(S)}function x(S,P){if(!(S instanceof P))throw new TypeError("Cannot call a class as a function")}var w=(0,y.default)("quill:selection"),O=function S(P){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;x(this,S),this.index=P,this.length=T},E=function(){function S(P,T){var _=this;x(this,S),this.emitter=T,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){_.mouseDown||setTimeout(_.update.bind(_,g.default.sources.USER),1)}),this.emitter.on(g.default.events.EDITOR_CHANGE,function(k,$){k===g.default.events.TEXT_CHANGE&&$.length()>0&&_.update(g.default.sources.SILENT)}),this.emitter.on(g.default.events.SCROLL_BEFORE_UPDATE,function(){if(_.hasFocus()){var k=_.getNativeRange();k!=null&&k.start.node!==_.cursor.textNode&&_.emitter.once(g.default.events.SCROLL_UPDATE,function(){try{_.setNativeRange(k.start.node,k.start.offset,k.end.node,k.end.offset)}catch{}})}}),this.emitter.on(g.default.events.SCROLL_OPTIMIZE,function(k,$){if($.range){var M=$.range,j=M.startNode,W=M.startOffset,H=M.endNode,X=M.endOffset;_.setNativeRange(j,W,H,X)}}),this.update(g.default.sources.SILENT)}return s(S,[{key:"handleComposition",value:function(){var T=this;this.root.addEventListener("compositionstart",function(){T.composing=!0}),this.root.addEventListener("compositionend",function(){if(T.composing=!1,T.cursor.parent){var _=T.cursor.restore();if(!_)return;setTimeout(function(){T.setNativeRange(_.startNode,_.startOffset,_.endNode,_.endOffset)},1)}})}},{key:"handleDragging",value:function(){var T=this;this.emitter.listenDOM("mousedown",document.body,function(){T.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){T.mouseDown=!1,T.update(g.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(T,_){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[T])){this.scroll.update();var k=this.getNativeRange();if(!(k==null||!k.native.collapsed||c.default.query(T,c.default.Scope.BLOCK))){if(k.start.node!==this.cursor.textNode){var $=c.default.find(k.start.node,!1);if($==null)return;if($ instanceof c.default.Leaf){var M=$.split(k.start.offset);$.parent.insertBefore(this.cursor,M)}else $.insertBefore(this.cursor,k.start.node);this.cursor.attach()}this.cursor.format(T,_),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(T){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=this.scroll.length();T=Math.min(T,k-1),_=Math.min(T+_,k-1)-T;var $=void 0,M=this.scroll.leaf(T),j=a(M,2),W=j[0],H=j[1];if(W==null)return null;var X=W.position(H,!0),U=a(X,2);$=U[0],H=U[1];var L=document.createRange();if(_>0){L.setStart($,H);var D=this.scroll.leaf(T+_),B=a(D,2);if(W=B[0],H=B[1],W==null)return null;var z=W.position(H,!0),F=a(z,2);return $=F[0],H=F[1],L.setEnd($,H),L.getBoundingClientRect()}else{var A="left",N=void 0;return $ instanceof Text?(H<$.data.length?(L.setStart($,H),L.setEnd($,H+1)):(L.setStart($,H-1),L.setEnd($,H),A="right"),N=L.getBoundingClientRect()):(N=W.domNode.getBoundingClientRect(),H>0&&(A="right")),{bottom:N.top+N.height,height:N.height,left:N[A],right:N[A],top:N.top,width:0}}}},{key:"getNativeRange",value:function(){var T=document.getSelection();if(T==null||T.rangeCount<=0)return null;var _=T.getRangeAt(0);if(_==null)return null;var k=this.normalizeNative(_);return w.info("getNativeRange",k),k}},{key:"getRange",value:function(){var T=this.getNativeRange();if(T==null)return[null,null];var _=this.normalizedToRange(T);return[_,T]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(T){var _=this,k=[[T.start.node,T.start.offset]];T.native.collapsed||k.push([T.end.node,T.end.offset]);var $=k.map(function(W){var H=a(W,2),X=H[0],U=H[1],L=c.default.find(X,!0),D=L.offset(_.scroll);return U===0?D:L instanceof c.default.Container?D+L.length():D+L.index(X,U)}),M=Math.min(Math.max.apply(Math,v($)),this.scroll.length()-1),j=Math.min.apply(Math,[M].concat(v($)));return new O(j,M-j)}},{key:"normalizeNative",value:function(T){if(!C(this.root,T.startContainer)||!T.collapsed&&!C(this.root,T.endContainer))return null;var _={start:{node:T.startContainer,offset:T.startOffset},end:{node:T.endContainer,offset:T.endOffset},native:T};return[_.start,_.end].forEach(function(k){for(var $=k.node,M=k.offset;!($ instanceof Text)&&$.childNodes.length>0;)if($.childNodes.length>M)$=$.childNodes[M],M=0;else if($.childNodes.length===M)$=$.lastChild,M=$ instanceof Text?$.data.length:$.childNodes.length+1;else break;k.node=$,k.offset=M}),_}},{key:"rangeToNative",value:function(T){var _=this,k=T.collapsed?[T.index]:[T.index,T.index+T.length],$=[],M=this.scroll.length();return k.forEach(function(j,W){j=Math.min(M-1,j);var H=void 0,X=_.scroll.leaf(j),U=a(X,2),L=U[0],D=U[1],B=L.position(D,W!==0),z=a(B,2);H=z[0],D=z[1],$.push(H,D)}),$.length<2&&($=$.concat($)),$}},{key:"scrollIntoView",value:function(T){var _=this.lastRange;if(_!=null){var k=this.getBounds(_.index,_.length);if(k!=null){var $=this.scroll.length()-1,M=this.scroll.line(Math.min(_.index,$)),j=a(M,1),W=j[0],H=W;if(_.length>0){var X=this.scroll.line(Math.min(_.index+_.length,$)),U=a(X,1);H=U[0]}if(!(W==null||H==null)){var L=T.getBoundingClientRect();k.top<L.top?T.scrollTop-=L.top-k.top:k.bottom>L.bottom&&(T.scrollTop+=k.bottom-L.bottom)}}}}},{key:"setNativeRange",value:function(T,_){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:T,$=arguments.length>3&&arguments[3]!==void 0?arguments[3]:_,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(w.info("setNativeRange",T,_,k,$),!(T!=null&&(this.root.parentNode==null||T.parentNode==null||k.parentNode==null))){var j=document.getSelection();if(j!=null)if(T!=null){this.hasFocus()||this.root.focus();var W=(this.getNativeRange()||{}).native;if(W==null||M||T!==W.startContainer||_!==W.startOffset||k!==W.endContainer||$!==W.endOffset){T.tagName=="BR"&&(_=[].indexOf.call(T.parentNode.childNodes,T),T=T.parentNode),k.tagName=="BR"&&($=[].indexOf.call(k.parentNode.childNodes,k),k=k.parentNode);var H=document.createRange();H.setStart(T,_),H.setEnd(k,$),j.removeAllRanges(),j.addRange(H)}}else j.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(T){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof _=="string"&&(k=_,_=!1),w.info("setRange",T),T!=null){var $=this.rangeToNative(T);this.setNativeRange.apply(this,v($).concat([_]))}else this.setNativeRange(null);this.update(k)}},{key:"update",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g.default.sources.USER,_=this.lastRange,k=this.getRange(),$=a(k,2),M=$[0],j=$[1];if(this.lastRange=M,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,p.default)(_,this.lastRange)){var W;!this.composing&&j!=null&&j.native.collapsed&&j.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[g.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(_),T];if((W=this.emitter).emit.apply(W,[g.default.events.EDITOR_CHANGE].concat(H)),T!==g.default.sources.SILENT){var X;(X=this.emitter).emit.apply(X,H)}}}}]),S}();function C(S,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),S.contains(P)}r.Range=O,r.default=E},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(m,y){for(var b=0;b<y.length;b++){var v=y[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,b){return y&&g(m.prototype,y),b&&g(m,b),m}}(),s=function g(m,y,b){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,y,b)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(b)}},l=i(0),c=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function f(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function p(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var h=function(g){p(m,g);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"insertInto",value:function(b,v){b.children.length===0?s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertInto",this).call(this,b,v):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),m}(c.default.Embed);h.blotName="break",h.tagName="BR",r.default=h},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var g in h)h.hasOwnProperty(g)&&(p[g]=h[g])};return function(p,h){f(p,h);function g(){this.constructor=p}p.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(44),l=i(30),c=i(1),u=function(f){a(p,f);function p(h){var g=f.call(this,h)||this;return g.build(),g}return p.prototype.appendChild=function(h){this.insertBefore(h)},p.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},p.prototype.build=function(){var h=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(g){try{var m=d(g);h.insertBefore(m,h.children.head||void 0)}catch(y){if(y instanceof c.ParchmentError)return;throw y}})},p.prototype.deleteAt=function(h,g){if(h===0&&g===this.length())return this.remove();this.children.forEachAt(h,g,function(m,y,b){m.deleteAt(y,b)})},p.prototype.descendant=function(h,g){var m=this.children.find(g),y=m[0],b=m[1];return h.blotName==null&&h(y)||h.blotName!=null&&y instanceof h?[y,b]:y instanceof p?y.descendant(h,b):[null,-1]},p.prototype.descendants=function(h,g,m){g===void 0&&(g=0),m===void 0&&(m=Number.MAX_VALUE);var y=[],b=m;return this.children.forEachAt(g,m,function(v,x,w){(h.blotName==null&&h(v)||h.blotName!=null&&v instanceof h)&&y.push(v),v instanceof p&&(y=y.concat(v.descendants(h,x,b))),b-=w}),y},p.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),f.prototype.detach.call(this)},p.prototype.formatAt=function(h,g,m,y){this.children.forEachAt(h,g,function(b,v,x){b.formatAt(v,x,m,y)})},p.prototype.insertAt=function(h,g,m){var y=this.children.find(h),b=y[0],v=y[1];if(b)b.insertAt(v,g,m);else{var x=m==null?c.create("text",g):c.create(g,m);this.appendChild(x)}},p.prototype.insertBefore=function(h,g){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(m){return h instanceof m}))throw new c.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,g)},p.prototype.length=function(){return this.children.reduce(function(h,g){return h+g.length()},0)},p.prototype.moveChildren=function(h,g){this.children.forEach(function(m){h.insertBefore(m,g)})},p.prototype.optimize=function(h){if(f.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var g=c.create(this.statics.defaultChild);this.appendChild(g),g.optimize(h)}else this.remove()},p.prototype.path=function(h,g){g===void 0&&(g=!1);var m=this.children.find(h,g),y=m[0],b=m[1],v=[[this,h]];return y instanceof p?v.concat(y.path(b,g)):(y!=null&&v.push([y,b]),v)},p.prototype.removeChild=function(h){this.children.remove(h)},p.prototype.replace=function(h){h instanceof p&&h.moveChildren(this),f.prototype.replace.call(this,h)},p.prototype.split=function(h,g){if(g===void 0&&(g=!1),!g){if(h===0)return this;if(h===this.length())return this.next}var m=this.clone();return this.parent.insertBefore(m,this.next),this.children.forEachAt(h,this.length(),function(y,b,v){y=y.split(b,g),m.appendChild(y)}),m},p.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},p.prototype.update=function(h,g){var m=this,y=[],b=[];h.forEach(function(v){v.target===m.domNode&&v.type==="childList"&&(y.push.apply(y,v.addedNodes),b.push.apply(b,v.removedNodes))}),b.forEach(function(v){if(!(v.parentNode!=null&&v.tagName!=="IFRAME"&&document.body.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var x=c.find(v);x!=null&&(x.domNode.parentNode==null||x.domNode.parentNode===m.domNode)&&x.detach()}}),y.filter(function(v){return v.parentNode==m.domNode}).sort(function(v,x){return v===x?0:v.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(v){var x=null;v.nextSibling!=null&&(x=c.find(v.nextSibling));var w=d(v);(w.next!=x||w.next==null)&&(w.parent!=null&&w.parent.removeChild(m),m.insertBefore(w,x||void 0))})},p}(l.default);function d(f){var p=c.find(f);if(p==null)try{p=c.create(f)}catch{p=c.create(c.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(g){p.domNode.appendChild(g)}),f.parentNode&&f.parentNode.replaceChild(p.domNode,f),p.attach()}return p}r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var g in h)h.hasOwnProperty(g)&&(p[g]=h[g])};return function(p,h){f(p,h);function g(){this.constructor=p}p.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12),l=i(31),c=i(17),u=i(1),d=function(f){a(p,f);function p(h){var g=f.call(this,h)||this;return g.attributes=new l.default(g.domNode),g}return p.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},p.prototype.format=function(h,g){var m=u.query(h);m instanceof s.default?this.attributes.attribute(m,g):g&&m!=null&&(h!==this.statics.blotName||this.formats()[h]!==g)&&this.replaceWith(h,g)},p.prototype.formats=function(){var h=this.attributes.values(),g=this.statics.formats(this.domNode);return g!=null&&(h[this.statics.blotName]=g),h},p.prototype.replaceWith=function(h,g){var m=f.prototype.replaceWith.call(this,h,g);return this.attributes.copy(m),m},p.prototype.update=function(h,g){var m=this;f.prototype.update.call(this,h,g),h.some(function(y){return y.target===m.domNode&&y.type==="attributes"})&&this.attributes.build()},p.prototype.wrap=function(h,g){var m=f.prototype.wrap.call(this,h,g);return m instanceof p&&m.statics.scope===this.statics.scope&&this.attributes.move(m),m},p}(c.default);r.default=d},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(30),l=i(1),c=function(u){a(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.value=function(f){return!0},d.prototype.index=function(f,p){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(p,1):-1},d.prototype.position=function(f,p){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(h+=1),[this.parent.domNode,h]},d.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},d.scope=l.Scope.INLINE_BLOT,d}(s.default);r.default=c},function(n,r,i){var a=i(11),s=i(3),l={attributes:{compose:function(u,d,f){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var p=s(!0,{},d);f||(p=Object.keys(p).reduce(function(g,m){return p[m]!=null&&(g[m]=p[m]),g},{}));for(var h in u)u[h]!==void 0&&d[h]===void 0&&(p[h]=u[h]);return Object.keys(p).length>0?p:void 0},diff:function(u,d){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var f=Object.keys(u).concat(Object.keys(d)).reduce(function(p,h){return a(u[h],d[h])||(p[h]=d[h]===void 0?null:d[h]),p},{});return Object.keys(f).length>0?f:void 0},transform:function(u,d,f){if(typeof u!="object")return d;if(typeof d=="object"){if(!f)return d;var p=Object.keys(d).reduce(function(h,g){return u[g]===void 0&&(h[g]=d[g]),h},{});return Object.keys(p).length>0?p:void 0}}},iterator:function(u){return new c(u)},length:function(u){return typeof u.delete=="number"?u.delete:typeof u.retain=="number"?u.retain:typeof u.insert=="string"?u.insert.length:1}};function c(u){this.ops=u,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(u){u||(u=1/0);var d=this.ops[this.index];if(d){var f=this.offset,p=l.length(d);if(u>=p-f?(u=p-f,this.index+=1,this.offset=0):this.offset+=u,typeof d.delete=="number")return{delete:u};var h={};return d.attributes&&(h.attributes=d.attributes),typeof d.retain=="number"?h.retain=u:typeof d.insert=="string"?h.insert=d.insert.substr(f,u):h.insert=d.insert,h}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var u=this.offset,d=this.index,f=this.next(),p=this.ops.slice(this.index);return this.offset=u,this.index=d,[f].concat(p)}else return[]},n.exports=l},function(n,r){var i=function(){function a(m,y){return y!=null&&m instanceof y}var s;try{s=Map}catch{s=function(){}}var l;try{l=Set}catch{l=function(){}}var c;try{c=Promise}catch{c=function(){}}function u(m,y,b,v,x){typeof y=="object"&&(b=y.depth,v=y.prototype,x=y.includeNonEnumerable,y=y.circular);var w=[],O=[],E=typeof Buffer<"u";typeof y>"u"&&(y=!0),typeof b>"u"&&(b=1/0);function C(S,P){if(S===null)return null;if(P===0)return S;var T,_;if(typeof S!="object")return S;if(a(S,s))T=new s;else if(a(S,l))T=new l;else if(a(S,c))T=new c(function(L,D){S.then(function(B){L(C(B,P-1))},function(B){D(C(B,P-1))})});else if(u.__isArray(S))T=[];else if(u.__isRegExp(S))T=new RegExp(S.source,g(S)),S.lastIndex&&(T.lastIndex=S.lastIndex);else if(u.__isDate(S))T=new Date(S.getTime());else{if(E&&Buffer.isBuffer(S))return Buffer.allocUnsafe?T=Buffer.allocUnsafe(S.length):T=new Buffer(S.length),S.copy(T),T;a(S,Error)?T=Object.create(S):typeof v>"u"?(_=Object.getPrototypeOf(S),T=Object.create(_)):(T=Object.create(v),_=v)}if(y){var k=w.indexOf(S);if(k!=-1)return O[k];w.push(S),O.push(T)}a(S,s)&&S.forEach(function(L,D){var B=C(D,P-1),z=C(L,P-1);T.set(B,z)}),a(S,l)&&S.forEach(function(L){var D=C(L,P-1);T.add(D)});for(var $ in S){var M;_&&(M=Object.getOwnPropertyDescriptor(_,$)),!(M&&M.set==null)&&(T[$]=C(S[$],P-1))}if(Object.getOwnPropertySymbols)for(var j=Object.getOwnPropertySymbols(S),$=0;$<j.length;$++){var W=j[$],H=Object.getOwnPropertyDescriptor(S,W);H&&!H.enumerable&&!x||(T[W]=C(S[W],P-1),H.enumerable||Object.defineProperty(T,W,{enumerable:!1}))}if(x)for(var X=Object.getOwnPropertyNames(S),$=0;$<X.length;$++){var U=X[$],H=Object.getOwnPropertyDescriptor(S,U);H&&H.enumerable||(T[U]=C(S[U],P-1),Object.defineProperty(T,U,{enumerable:!1}))}return T}return C(m,b)}u.clonePrototype=function(y){if(y===null)return null;var b=function(){};return b.prototype=y,new b};function d(m){return Object.prototype.toString.call(m)}u.__objToStr=d;function f(m){return typeof m=="object"&&d(m)==="[object Date]"}u.__isDate=f;function p(m){return typeof m=="object"&&d(m)==="[object Array]"}u.__isArray=p;function h(m){return typeof m=="object"&&d(m)==="[object RegExp]"}u.__isRegExp=h;function g(m){var y="";return m.global&&(y+="g"),m.ignoreCase&&(y+="i"),m.multiline&&(y+="m"),y}return u.__getRegExpFlags=g,u}();typeof n=="object"&&n.exports&&(n.exports=i)},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function T(_,k){var $=[],M=!0,j=!1,W=void 0;try{for(var H=_[Symbol.iterator](),X;!(M=(X=H.next()).done)&&($.push(X.value),!(k&&$.length===k));M=!0);}catch(U){j=!0,W=U}finally{try{!M&&H.return&&H.return()}finally{if(j)throw W}}return $}return function(_,k){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return T(_,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function T(_,k){for(var $=0;$<k.length;$++){var M=k[$];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(_,M.key,M)}}return function(_,k,$){return k&&T(_.prototype,k),$&&T(_,$),_}}(),l=function T(_,k,$){_===null&&(_=Function.prototype);var M=Object.getOwnPropertyDescriptor(_,k);if(M===void 0){var j=Object.getPrototypeOf(_);return j===null?void 0:T(j,k,$)}else{if("value"in M)return M.value;var W=M.get;return W===void 0?void 0:W.call($)}},c=i(0),u=w(c),d=i(8),f=w(d),p=i(4),h=w(p),g=i(16),m=w(g),y=i(13),b=w(y),v=i(25),x=w(v);function w(T){return T&&T.__esModule?T:{default:T}}function O(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function E(T,_){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:T}function C(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(T,_):T.__proto__=_)}function S(T){return T instanceof h.default||T instanceof p.BlockEmbed}var P=function(T){C(_,T);function _(k,$){O(this,_);var M=E(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,k));return M.emitter=$.emitter,Array.isArray($.whitelist)&&(M.whitelist=$.whitelist.reduce(function(j,W){return j[W]=!0,j},{})),M.domNode.addEventListener("DOMNodeInserted",function(){}),M.optimize(),M.enable(),M}return s(_,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function($,M){var j=this.line($),W=a(j,2),H=W[0],X=W[1],U=this.line($+M),L=a(U,1),D=L[0];if(l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,$,M),D!=null&&H!==D&&X>0){if(H instanceof p.BlockEmbed||D instanceof p.BlockEmbed){this.optimize();return}if(H instanceof b.default){var B=H.newlineIndex(H.length(),!0);if(B>-1&&(H=H.split(B+1),H===D)){this.optimize();return}}else if(D instanceof b.default){var z=D.newlineIndex(0);z>-1&&D.split(z+1)}var F=D.children.head instanceof m.default?null:D.children.head;H.moveChildren(D,F),H.remove()}this.optimize()}},{key:"enable",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",$)}},{key:"formatAt",value:function($,M,j,W){this.whitelist!=null&&!this.whitelist[j]||(l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,$,M,j,W),this.optimize())}},{key:"insertAt",value:function($,M,j){if(!(j!=null&&this.whitelist!=null&&!this.whitelist[M])){if($>=this.length())if(j==null||u.default.query(M,u.default.Scope.BLOCK)==null){var W=u.default.create(this.statics.defaultChild);this.appendChild(W),j==null&&M.endsWith(`
`)&&(M=M.slice(0,-1)),W.insertAt(0,M,j)}else{var H=u.default.create(M,j);this.appendChild(H)}else l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,$,M,j);this.optimize()}}},{key:"insertBefore",value:function($,M){if($.statics.scope===u.default.Scope.INLINE_BLOT){var j=u.default.create(this.statics.defaultChild);j.appendChild($),$=j}l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,$,M)}},{key:"leaf",value:function($){return this.path($).pop()||[null,-1]}},{key:"line",value:function($){return $===this.length()?this.line($-1):this.descendant(S,$)}},{key:"lines",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,j=function W(H,X,U){var L=[],D=U;return H.children.forEachAt(X,U,function(B,z,F){S(B)?L.push(B):B instanceof u.default.Container&&(L=L.concat(W(B,z,D))),D-=F}),L};return j(this,$,M)}},{key:"optimize",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,$,M),$.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,$,M))}},{key:"path",value:function($){return l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,$).slice(1)}},{key:"update",value:function($){if(this.batch!==!0){var M=f.default.sources.USER;typeof $=="string"&&(M=$),Array.isArray($)||($=this.observer.takeRecords()),$.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,M,$),l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"update",this).call(this,$.concat([])),$.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,M,$)}}}]),_}(u.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[h.default,p.BlockEmbed,x.default],r.default=P},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},s=function(){function N(q,Y){var G=[],K=!0,J=!1,Z=void 0;try{for(var ie=q[Symbol.iterator](),de;!(K=(de=ie.next()).done)&&(G.push(de.value),!(Y&&G.length===Y));K=!0);}catch(xe){J=!0,Z=xe}finally{try{!K&&ie.return&&ie.return()}finally{if(J)throw Z}}return G}return function(q,Y){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return N(q,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function N(q,Y){for(var G=0;G<Y.length;G++){var K=Y[G];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(q,K.key,K)}}return function(q,Y,G){return Y&&N(q.prototype,Y),G&&N(q,G),q}}(),c=i(21),u=T(c),d=i(11),f=T(d),p=i(3),h=T(p),g=i(2),m=T(g),y=i(20),b=T(y),v=i(0),x=T(v),w=i(5),O=T(w),E=i(10),C=T(E),S=i(9),P=T(S);function T(N){return N&&N.__esModule?N:{default:N}}function _(N,q,Y){return q in N?Object.defineProperty(N,q,{value:Y,enumerable:!0,configurable:!0,writable:!0}):N[q]=Y,N}function k(N,q){if(!(N instanceof q))throw new TypeError("Cannot call a class as a function")}function $(N,q){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:N}function M(N,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);N.prototype=Object.create(q&&q.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(N,q):N.__proto__=q)}var j=(0,C.default)("quill:keyboard"),W=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=function(N){M(q,N),l(q,null,[{key:"match",value:function(G,K){return K=A(K),["altKey","ctrlKey","metaKey","shiftKey"].some(function(J){return!!K[J]!==G[J]&&K[J]!==null})?!1:K.key===(G.which||G.keyCode)}}]);function q(Y,G){k(this,q);var K=$(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,Y,G));return K.bindings={},Object.keys(K.options.bindings).forEach(function(J){J==="list autofill"&&Y.scroll.whitelist!=null&&!Y.scroll.whitelist.list||K.options.bindings[J]&&K.addBinding(K.options.bindings[J])}),K.addBinding({key:q.keys.ENTER,shiftKey:null},B),K.addBinding({key:q.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(K.addBinding({key:q.keys.BACKSPACE},{collapsed:!0},U),K.addBinding({key:q.keys.DELETE},{collapsed:!0},L)):(K.addBinding({key:q.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},U),K.addBinding({key:q.keys.DELETE},{collapsed:!0,suffix:/^.?$/},L)),K.addBinding({key:q.keys.BACKSPACE},{collapsed:!1},D),K.addBinding({key:q.keys.DELETE},{collapsed:!1},D),K.addBinding({key:q.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},U),K.listen(),K}return l(q,[{key:"addBinding",value:function(G){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=A(G);if(Z==null||Z.key==null)return j.warn("Attempted to add invalid keyboard binding",Z);typeof K=="function"&&(K={handler:K}),typeof J=="function"&&(J={handler:J}),Z=(0,h.default)(Z,K,J),this.bindings[Z.key]=this.bindings[Z.key]||[],this.bindings[Z.key].push(Z)}},{key:"listen",value:function(){var G=this;this.quill.root.addEventListener("keydown",function(K){if(!K.defaultPrevented){var J=K.which||K.keyCode,Z=(G.bindings[J]||[]).filter(function(ce){return q.match(K,ce)});if(Z.length!==0){var ie=G.quill.getSelection();if(!(ie==null||!G.quill.hasFocus())){var de=G.quill.getLine(ie.index),xe=s(de,2),he=xe[0],pe=xe[1],Q=G.quill.getLeaf(ie.index),oe=s(Q,2),te=oe[0],le=oe[1],re=ie.length===0?[te,le]:G.quill.getLeaf(ie.index+ie.length),Te=s(re,2),Se=Te[0],fe=Te[1],ge=te instanceof x.default.Text?te.value().slice(0,le):"",_e=Se instanceof x.default.Text?Se.value().slice(fe):"",$e={collapsed:ie.length===0,empty:ie.length===0&&he.length()<=1,format:G.quill.getFormat(ie),offset:pe,prefix:ge,suffix:_e},ae=Z.some(function(ce){if(ce.collapsed!=null&&ce.collapsed!==$e.collapsed||ce.empty!=null&&ce.empty!==$e.empty||ce.offset!=null&&ce.offset!==$e.offset)return!1;if(Array.isArray(ce.format)){if(ce.format.every(function(ue){return $e.format[ue]==null}))return!1}else if(a(ce.format)==="object"&&!Object.keys(ce.format).every(function(ue){return ce.format[ue]===!0?$e.format[ue]!=null:ce.format[ue]===!1?$e.format[ue]==null:(0,f.default)(ce.format[ue],$e.format[ue])}))return!1;return ce.prefix!=null&&!ce.prefix.test($e.prefix)||ce.suffix!=null&&!ce.suffix.test($e.suffix)?!1:ce.handler.call(G,ie,$e)!==!0});ae&&K.preventDefault()}}}})}}]),q}(P.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(q,Y){if(Y.collapsed&&Y.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(q,Y){if(Y.collapsed&&Y.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(q,Y){Y.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):Y.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":z(!0),"outdent code-block":z(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(q){this.quill.deleteText(q.index-1,1,O.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(q){this.quill.history.cutoff();var Y=new m.default().retain(q.index).delete(q.length).insert(" ");this.quill.updateContents(Y,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(q.index+1,O.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(q,Y){this.quill.format("list",!1,O.default.sources.USER),Y.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(q){var Y=this.quill.getLine(q.index),G=s(Y,2),K=G[0],J=G[1],Z=(0,h.default)({},K.formats(),{list:"checked"}),ie=new m.default().retain(q.index).insert(`
`,Z).retain(K.length()-J-1).retain(1,{list:"unchecked"});this.quill.updateContents(ie,O.default.sources.USER),this.quill.setSelection(q.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(q,Y){var G=this.quill.getLine(q.index),K=s(G,2),J=K[0],Z=K[1],ie=new m.default().retain(q.index).insert(`
`,Y.format).retain(J.length()-Z-1).retain(1,{header:null});this.quill.updateContents(ie,O.default.sources.USER),this.quill.setSelection(q.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(q,Y){var G=Y.prefix.length,K=this.quill.getLine(q.index),J=s(K,2),Z=J[0],ie=J[1];if(ie>G)return!0;var de=void 0;switch(Y.prefix.trim()){case"[]":case"[ ]":de="unchecked";break;case"[x]":de="checked";break;case"-":case"*":de="bullet";break;default:de="ordered"}this.quill.insertText(q.index," ",O.default.sources.USER),this.quill.history.cutoff();var xe=new m.default().retain(q.index-ie).delete(G+1).retain(Z.length()-2-ie).retain(1,{list:de});this.quill.updateContents(xe,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(q.index-G,O.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(q){var Y=this.quill.getLine(q.index),G=s(Y,2),K=G[0],J=G[1],Z=new m.default().retain(q.index+K.length()-J-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Z,O.default.sources.USER)}},"embed left":X(H.keys.LEFT,!1),"embed left shift":X(H.keys.LEFT,!0),"embed right":X(H.keys.RIGHT,!1),"embed right shift":X(H.keys.RIGHT,!0)}};function X(N,q){var Y,G=N===H.keys.LEFT?"prefix":"suffix";return Y={key:N,shiftKey:q,altKey:null},_(Y,G,/^$/),_(Y,"handler",function(J){var Z=J.index;N===H.keys.RIGHT&&(Z+=J.length+1);var ie=this.quill.getLeaf(Z),de=s(ie,1),xe=de[0];return xe instanceof x.default.Embed?(N===H.keys.LEFT?q?this.quill.setSelection(J.index-1,J.length+1,O.default.sources.USER):this.quill.setSelection(J.index-1,O.default.sources.USER):q?this.quill.setSelection(J.index,J.length+1,O.default.sources.USER):this.quill.setSelection(J.index+J.length+1,O.default.sources.USER),!1):!0}),Y}function U(N,q){if(!(N.index===0||this.quill.getLength()<=1)){var Y=this.quill.getLine(N.index),G=s(Y,1),K=G[0],J={};if(q.offset===0){var Z=this.quill.getLine(N.index-1),ie=s(Z,1),de=ie[0];if(de!=null&&de.length()>1){var xe=K.formats(),he=this.quill.getFormat(N.index-1,1);J=b.default.attributes.diff(xe,he)||{}}}var pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(q.prefix)?2:1;this.quill.deleteText(N.index-pe,pe,O.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(N.index-pe,pe,J,O.default.sources.USER),this.quill.focus()}}function L(N,q){var Y=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(q.suffix)?2:1;if(!(N.index>=this.quill.getLength()-Y)){var G={},K=0,J=this.quill.getLine(N.index),Z=s(J,1),ie=Z[0];if(q.offset>=ie.length()-1){var de=this.quill.getLine(N.index+1),xe=s(de,1),he=xe[0];if(he){var pe=ie.formats(),Q=this.quill.getFormat(N.index,1);G=b.default.attributes.diff(pe,Q)||{},K=he.length()}}this.quill.deleteText(N.index,Y,O.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(N.index+K-1,Y,G,O.default.sources.USER)}}function D(N){var q=this.quill.getLines(N),Y={};if(q.length>1){var G=q[0].formats(),K=q[q.length-1].formats();Y=b.default.attributes.diff(K,G)||{}}this.quill.deleteText(N,O.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(N.index,1,Y,O.default.sources.USER),this.quill.setSelection(N.index,O.default.sources.SILENT),this.quill.focus()}function B(N,q){var Y=this;N.length>0&&this.quill.scroll.deleteAt(N.index,N.length);var G=Object.keys(q.format).reduce(function(K,J){return x.default.query(J,x.default.Scope.BLOCK)&&!Array.isArray(q.format[J])&&(K[J]=q.format[J]),K},{});this.quill.insertText(N.index,`
`,G,O.default.sources.USER),this.quill.setSelection(N.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(q.format).forEach(function(K){G[K]==null&&(Array.isArray(q.format[K])||K!=="link"&&Y.quill.format(K,q.format[K],O.default.sources.USER))})}function z(N){return{key:H.keys.TAB,shiftKey:!N,format:{"code-block":!0},handler:function(Y){var G=x.default.query("code-block"),K=Y.index,J=Y.length,Z=this.quill.scroll.descendant(G,K),ie=s(Z,2),de=ie[0],xe=ie[1];if(de!=null){var he=this.quill.getIndex(de),pe=de.newlineIndex(xe,!0)+1,Q=de.newlineIndex(he+xe+J),oe=de.domNode.textContent.slice(pe,Q).split(`
`);xe=0,oe.forEach(function(te,le){N?(de.insertAt(pe+xe,G.TAB),xe+=G.TAB.length,le===0?K+=G.TAB.length:J+=G.TAB.length):te.startsWith(G.TAB)&&(de.deleteAt(pe+xe,G.TAB.length),xe-=G.TAB.length,le===0?K-=G.TAB.length:J-=G.TAB.length),xe+=te.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(K,J,O.default.sources.SILENT)}}}}function F(N){return{key:N[0].toUpperCase(),shortKey:!0,handler:function(Y,G){this.quill.format(N,!G.format[N],O.default.sources.USER)}}}function A(N){if(typeof N=="string"||typeof N=="number")return A({key:N});if((typeof N>"u"?"undefined":a(N))==="object"&&(N=(0,u.default)(N,!1)),typeof N.key=="string")if(H.keys[N.key.toUpperCase()]!=null)N.key=H.keys[N.key.toUpperCase()];else if(N.key.length===1)N.key=N.key.toUpperCase().charCodeAt(0);else return null;return N.shortKey&&(N[W]=N.shortKey,delete N.shortKey),N}r.default=H,r.SHORTKEY=W},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function b(v,x){var w=[],O=!0,E=!1,C=void 0;try{for(var S=v[Symbol.iterator](),P;!(O=(P=S.next()).done)&&(w.push(P.value),!(x&&w.length===x));O=!0);}catch(T){E=!0,C=T}finally{try{!O&&S.return&&S.return()}finally{if(E)throw C}}return w}return function(v,x){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return b(v,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function b(v,x,w){v===null&&(v=Function.prototype);var O=Object.getOwnPropertyDescriptor(v,x);if(O===void 0){var E=Object.getPrototypeOf(v);return E===null?void 0:b(E,x,w)}else{if("value"in O)return O.value;var C=O.get;return C===void 0?void 0:C.call(w)}},l=function(){function b(v,x){for(var w=0;w<x.length;w++){var O=x[w];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(v,O.key,O)}}return function(v,x,w){return x&&b(v.prototype,x),w&&b(v,w),v}}(),c=i(0),u=p(c),d=i(7),f=p(d);function p(b){return b&&b.__esModule?b:{default:b}}function h(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function g(b,v){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:b}function m(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(b,v):b.__proto__=v)}var y=function(b){m(v,b),l(v,null,[{key:"value",value:function(){}}]);function v(x,w){h(this,v);var O=g(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,x));return O.selection=w,O.textNode=document.createTextNode(v.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return l(v,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(w,O){if(this._length!==0)return s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,w,O);for(var E=this,C=0;E!=null&&E.statics.scope!==u.default.Scope.BLOCK_BLOT;)C+=E.offset(E.parent),E=E.parent;E!=null&&(this._length=v.CONTENTS.length,E.optimize(),E.formatAt(C,v.CONTENTS.length,w,O),this._length=0)}},{key:"index",value:function(w,O){return w===this.textNode?0:s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"index",this).call(this,w,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var w=this.textNode,O=this.selection.getNativeRange(),E=void 0,C=void 0,S=void 0;if(O!=null&&O.start.node===w&&O.end.node===w){var P=[w,O.start.offset,O.end.offset];E=P[0],C=P[1],S=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==v.CONTENTS){var T=this.textNode.data.split(v.CONTENTS).join("");this.next instanceof f.default?(E=this.next.domNode,this.next.insertAt(0,T),this.textNode.data=v.CONTENTS):(this.textNode.data=T,this.parent.insertBefore(u.default.create(this.textNode),this),this.textNode=document.createTextNode(v.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),C!=null){var _=[C,S].map(function($){return Math.max(0,Math.min(E.data.length,$-1))}),k=a(_,2);return C=k[0],S=k[1],{startNode:E,startOffset:C,endNode:E,endOffset:S}}}}},{key:"update",value:function(w,O){var E=this;if(w.some(function(S){return S.type==="characterData"&&S.target===E.textNode})){var C=this.restore();C&&(O.range=C)}}},{key:"value",value:function(){return""}}]),v}(u.default.Embed);y.blotName="cursor",y.className="ql-cursor",y.tagName="span",y.CONTENTS="\uFEFF",r.default=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),s=u(a),l=i(4),c=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function f(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function p(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var h=function(g){p(m,g);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(s.default.Container);h.allowedChildren=[c.default,l.BlockEmbed,h],r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var a=function(){function y(b,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,v,x){return v&&y(b.prototype,v),x&&y(b,x),b}}(),s=function y(b,v,x){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,v);if(w===void 0){var O=Object.getPrototypeOf(b);return O===null?void 0:y(O,v,x)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(x)}},l=i(0),c=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function f(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function p(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var h=function(y){p(b,y);function b(){return d(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"value",value:function(x){var w=s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,x);return w.startsWith("rgb(")?(w=w.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+w.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):w}}]),b}(c.default.Attributor.Style),g=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),m=new h("color","color",{scope:c.default.Scope.INLINE});r.ColorAttributor=h,r.ColorClass=g,r.ColorStyle=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var a=function(){function m(y,b){for(var v=0;v<b.length;v++){var x=b[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,b,v){return b&&m(y.prototype,b),v&&m(y,v),y}}(),s=function m(y,b,v){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,b);if(x===void 0){var w=Object.getPrototypeOf(y);return w===null?void 0:m(w,b,v)}else{if("value"in x)return x.value;var O=x.get;return O===void 0?void 0:O.call(v)}},l=i(6),c=u(l);function u(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function f(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function p(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var h=function(m){p(y,m);function y(){return d(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"format",value:function(v,x){if(v!==this.statics.blotName||!x)return s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,v,x);x=this.constructor.sanitize(x),this.domNode.setAttribute("href",x)}}],[{key:"create",value:function(v){var x=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,v);return v=this.sanitize(v),x.setAttribute("href",v),x.setAttribute("rel","noopener noreferrer"),x.setAttribute("target","_blank"),x}},{key:"formats",value:function(v){return v.getAttribute("href")}},{key:"sanitize",value:function(v){return g(v,this.PROTOCOL_WHITELIST)?v:this.SANITIZED_URL}}]),y}(c.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function g(m,y){var b=document.createElement("a");b.href=m;var v=b.href.slice(0,b.href.indexOf(":"));return y.indexOf(v)>-1}r.default=h,r.sanitize=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},s=function(){function y(b,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,v,x){return v&&y(b.prototype,v),x&&y(b,x),b}}(),l=i(23),c=f(l),u=i(107),d=f(u);function f(y){return y&&y.__esModule?y:{default:y}}function p(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}var h=0;function g(y,b){y.setAttribute(b,y.getAttribute(b)!=="true")}var m=function(){function y(b){var v=this;p(this,y),this.select=b,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){v.togglePicker()}),this.label.addEventListener("keydown",function(x){switch(x.keyCode){case c.default.keys.ENTER:v.togglePicker();break;case c.default.keys.ESCAPE:v.escape(),x.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(y,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),g(this.label,"aria-expanded"),g(this.options,"aria-hidden")}},{key:"buildItem",value:function(v){var x=this,w=document.createElement("span");return w.tabIndex="0",w.setAttribute("role","button"),w.classList.add("ql-picker-item"),v.hasAttribute("value")&&w.setAttribute("data-value",v.getAttribute("value")),v.textContent&&w.setAttribute("data-label",v.textContent),w.addEventListener("click",function(){x.selectItem(w,!0)}),w.addEventListener("keydown",function(O){switch(O.keyCode){case c.default.keys.ENTER:x.selectItem(w,!0),O.preventDefault();break;case c.default.keys.ESCAPE:x.escape(),O.preventDefault();break}}),w}},{key:"buildLabel",value:function(){var v=document.createElement("span");return v.classList.add("ql-picker-label"),v.innerHTML=d.default,v.tabIndex="0",v.setAttribute("role","button"),v.setAttribute("aria-expanded","false"),this.container.appendChild(v),v}},{key:"buildOptions",value:function(){var v=this,x=document.createElement("span");x.classList.add("ql-picker-options"),x.setAttribute("aria-hidden","true"),x.tabIndex="-1",x.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",x.id),this.options=x,[].slice.call(this.select.options).forEach(function(w){var O=v.buildItem(w);x.appendChild(O),w.selected===!0&&v.selectItem(O)}),this.container.appendChild(x)}},{key:"buildPicker",value:function(){var v=this;[].slice.call(this.select.attributes).forEach(function(x){v.container.setAttribute(x.name,x.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var v=this;this.close(),setTimeout(function(){return v.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(v){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=this.container.querySelector(".ql-selected");if(v!==w&&(w!=null&&w.classList.remove("ql-selected"),v!=null&&(v.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(v.parentNode.children,v),v.hasAttribute("data-value")?this.label.setAttribute("data-value",v.getAttribute("data-value")):this.label.removeAttribute("data-value"),v.hasAttribute("data-label")?this.label.setAttribute("data-label",v.getAttribute("data-label")):this.label.removeAttribute("data-label"),x))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var O=document.createEvent("Event");O.initEvent("change",!0,!0),this.select.dispatchEvent(O)}this.close()}}},{key:"update",value:function(){var v=void 0;if(this.select.selectedIndex>-1){var x=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];v=this.select.options[this.select.selectedIndex],this.selectItem(x)}else this.selectItem(null);var w=v!=null&&v!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",w)}}]),y}();r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),s=j(a),l=i(5),c=j(l),u=i(4),d=j(u),f=i(16),p=j(f),h=i(25),g=j(h),m=i(24),y=j(m),b=i(35),v=j(b),x=i(6),w=j(x),O=i(22),E=j(O),C=i(7),S=j(C),P=i(55),T=j(P),_=i(42),k=j(_),$=i(23),M=j($);function j(W){return W&&W.__esModule?W:{default:W}}c.default.register({"blots/block":d.default,"blots/block/embed":u.BlockEmbed,"blots/break":p.default,"blots/container":g.default,"blots/cursor":y.default,"blots/embed":v.default,"blots/inline":w.default,"blots/scroll":E.default,"blots/text":S.default,"modules/clipboard":T.default,"modules/history":k.default,"modules/keyboard":M.default}),s.default.register(d.default,p.default,y.default,w.default,E.default,S.default),r.default=c.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),s=function(){function l(c){this.domNode=c,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(l.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),l.create=function(c){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?u=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?u=document.createElement(c):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},l.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},l.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return a.create(c)},l.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},l.prototype.deleteAt=function(c,u){var d=this.isolate(c,u);d.remove()},l.prototype.formatAt=function(c,u,d,f){var p=this.isolate(c,u);if(a.query(d,a.Scope.BLOT)!=null&&f)p.wrap(d,f);else if(a.query(d,a.Scope.ATTRIBUTE)!=null){var h=a.create(this.statics.scope);p.wrap(h),h.format(d,f)}},l.prototype.insertAt=function(c,u,d){var f=d==null?a.create("text",u):a.create(u,d),p=this.split(c);this.parent.insertBefore(f,p)},l.prototype.insertInto=function(c,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var d=null;c.children.insertBefore(this,u),u!=null&&(d=u.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=d)&&c.domNode.insertBefore(this.domNode,d),this.parent=c,this.attach()},l.prototype.isolate=function(c,u){var d=this.split(c);return d.split(u),d},l.prototype.length=function(){return 1},l.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},l.prototype.optimize=function(c){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},l.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},l.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},l.prototype.replaceWith=function(c,u){var d=typeof c=="string"?a.create(c,u):c;return d.replace(this),d},l.prototype.split=function(c,u){return c===0?this:this.next},l.prototype.update=function(c,u){},l.prototype.wrap=function(c,u){var d=typeof c=="string"?a.create(c,u):c;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},l.blotName="abstract",l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(12),s=i(32),l=i(33),c=i(1),u=function(){function d(f){this.attributes={},this.domNode=f,this.build()}return d.prototype.attribute=function(f,p){p?f.add(this.domNode,p)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},d.prototype.build=function(){var f=this;this.attributes={};var p=a.default.keys(this.domNode),h=s.default.keys(this.domNode),g=l.default.keys(this.domNode);p.concat(h).concat(g).forEach(function(m){var y=c.query(m,c.Scope.ATTRIBUTE);y instanceof a.default&&(f.attributes[y.attrName]=y)})},d.prototype.copy=function(f){var p=this;Object.keys(this.attributes).forEach(function(h){var g=p.attributes[h].value(p.domNode);f.format(h,g)})},d.prototype.move=function(f){var p=this;this.copy(f),Object.keys(this.attributes).forEach(function(h){p.attributes[h].remove(p.domNode)}),this.attributes={}},d.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(p,h){return p[h]=f.attributes[h].value(f.domNode),p},{})},d}();r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12);function l(u,d){var f=u.getAttribute("class")||"";return f.split(/\s+/).filter(function(p){return p.indexOf(d+"-")===0})}var c=function(u){a(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(p){return p.split("-").slice(0,-1).join("-")})},d.prototype.add=function(f,p){return this.canAdd(f,p)?(this.remove(f),f.classList.add(this.keyName+"-"+p),!0):!1},d.prototype.remove=function(f){var p=l(f,this.keyName);p.forEach(function(h){f.classList.remove(h)}),f.classList.length===0&&f.removeAttribute("class")},d.prototype.value=function(f){var p=l(f,this.keyName)[0]||"",h=p.slice(this.keyName.length+1);return this.canAdd(f,h)?h:""},d}(s.default);r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12);function l(u){var d=u.split("-"),f=d.slice(1).map(function(p){return p[0].toUpperCase()+p.slice(1)}).join("");return d[0]+f}var c=function(u){a(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(p){var h=p.split(":");return h[0].trim()})},d.prototype.add=function(f,p){return this.canAdd(f,p)?(f.style[l(this.keyName)]=p,!0):!1},d.prototype.remove=function(f){f.style[l(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},d.prototype.value=function(f){var p=f.style[l(this.keyName)];return this.canAdd(f,p)?p:""},d}(s.default);r.default=c},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function c(u,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,d,f){return d&&c(u.prototype,d),f&&c(u,f),u}}();function s(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=function(){function c(u,d){s(this,c),this.quill=u,this.options=d,this.modules={}}return a(c,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(f){d.modules[f]==null&&d.addModule(f)})}},{key:"addModule",value:function(d){var f=this.quill.constructor.import("modules/"+d);return this.modules[d]=new f(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),c}();l.DEFAULTS={modules:{}},l.themes={default:l},r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function b(v,x){for(var w=0;w<x.length;w++){var O=x[w];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(v,O.key,O)}}return function(v,x,w){return x&&b(v.prototype,x),w&&b(v,w),v}}(),s=function b(v,x,w){v===null&&(v=Function.prototype);var O=Object.getOwnPropertyDescriptor(v,x);if(O===void 0){var E=Object.getPrototypeOf(v);return E===null?void 0:b(E,x,w)}else{if("value"in O)return O.value;var C=O.get;return C===void 0?void 0:C.call(w)}},l=i(0),c=f(l),u=i(7),d=f(u);function f(b){return b&&b.__esModule?b:{default:b}}function p(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function h(b,v){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:b}function g(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(b,v):b.__proto__=v)}var m="\uFEFF",y=function(b){g(v,b);function v(x){p(this,v);var w=h(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,x));return w.contentNode=document.createElement("span"),w.contentNode.setAttribute("contenteditable",!1),[].slice.call(w.domNode.childNodes).forEach(function(O){w.contentNode.appendChild(O)}),w.leftGuard=document.createTextNode(m),w.rightGuard=document.createTextNode(m),w.domNode.appendChild(w.leftGuard),w.domNode.appendChild(w.contentNode),w.domNode.appendChild(w.rightGuard),w}return a(v,[{key:"index",value:function(w,O){return w===this.leftGuard?0:w===this.rightGuard?1:s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"index",this).call(this,w,O)}},{key:"restore",value:function(w){var O=void 0,E=void 0,C=w.data.split(m).join("");if(w===this.leftGuard)if(this.prev instanceof d.default){var S=this.prev.length();this.prev.insertAt(S,C),O={startNode:this.prev.domNode,startOffset:S+C.length}}else E=document.createTextNode(C),this.parent.insertBefore(c.default.create(E),this),O={startNode:E,startOffset:C.length};else w===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,C),O={startNode:this.next.domNode,startOffset:C.length}):(E=document.createTextNode(C),this.parent.insertBefore(c.default.create(E),this.next),O={startNode:E,startOffset:C.length}));return w.data=m,O}},{key:"update",value:function(w,O){var E=this;w.forEach(function(C){if(C.type==="characterData"&&(C.target===E.leftGuard||C.target===E.rightGuard)){var S=E.restore(C.target);S&&(O.range=S)}})}}]),v}(c.default.Embed);r.default=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var a=i(0),s=l(a);function l(p){return p&&p.__esModule?p:{default:p}}var c={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},u=new s.default.Attributor.Attribute("align","align",c),d=new s.default.Attributor.Class("align","ql-align",c),f=new s.default.Attributor.Style("align","text-align",c);r.AlignAttribute=u,r.AlignClass=d,r.AlignStyle=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var a=i(0),s=c(a),l=i(26);function c(f){return f&&f.__esModule?f:{default:f}}var u=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),d=new l.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});r.BackgroundClass=u,r.BackgroundStyle=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var a=i(0),s=l(a);function l(p){return p&&p.__esModule?p:{default:p}}var c={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},u=new s.default.Attributor.Attribute("direction","dir",c),d=new s.default.Attributor.Class("direction","ql-direction",c),f=new s.default.Attributor.Style("direction","direction",c);r.DirectionAttribute=u,r.DirectionClass=d,r.DirectionStyle=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var a=function(){function b(v,x){for(var w=0;w<x.length;w++){var O=x[w];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(v,O.key,O)}}return function(v,x,w){return x&&b(v.prototype,x),w&&b(v,w),v}}(),s=function b(v,x,w){v===null&&(v=Function.prototype);var O=Object.getOwnPropertyDescriptor(v,x);if(O===void 0){var E=Object.getPrototypeOf(v);return E===null?void 0:b(E,x,w)}else{if("value"in O)return O.value;var C=O.get;return C===void 0?void 0:C.call(w)}},l=i(0),c=u(l);function u(b){return b&&b.__esModule?b:{default:b}}function d(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function f(b,v){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:b}function p(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(b,v):b.__proto__=v)}var h={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},g=new c.default.Attributor.Class("font","ql-font",h),m=function(b){p(v,b);function v(){return d(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"value",value:function(w){return s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,w).replace(/["']/g,"")}}]),v}(c.default.Attributor.Style),y=new m("font","font-family",h);r.FontStyle=y,r.FontClass=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var a=i(0),s=l(a);function l(d){return d&&d.__esModule?d:{default:d}}var c=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),u=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=c,r.SizeStyle=u},function(n,r,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var a=function(){function x(w,O){for(var E=0;E<O.length;E++){var C=O[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}return function(w,O,E){return O&&x(w.prototype,O),E&&x(w,E),w}}(),s=i(0),l=p(s),c=i(5),u=p(c),d=i(9),f=p(d);function p(x){return x&&x.__esModule?x:{default:x}}function h(x,w){if(!(x instanceof w))throw new TypeError("Cannot call a class as a function")}function g(x,w){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:x}function m(x,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);x.prototype=Object.create(w&&w.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(x,w):x.__proto__=w)}var y=function(x){m(w,x);function w(O,E){h(this,w);var C=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,O,E));return C.lastRecorded=0,C.ignoreChange=!1,C.clear(),C.quill.on(u.default.events.EDITOR_CHANGE,function(S,P,T,_){S!==u.default.events.TEXT_CHANGE||C.ignoreChange||(!C.options.userOnly||_===u.default.sources.USER?C.record(P,T):C.transform(P))}),C.quill.keyboard.addBinding({key:"Z",shortKey:!0},C.undo.bind(C)),C.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},C.redo.bind(C)),/Win/i.test(navigator.platform)&&C.quill.keyboard.addBinding({key:"Y",shortKey:!0},C.redo.bind(C)),C}return a(w,[{key:"change",value:function(E,C){if(this.stack[E].length!==0){var S=this.stack[E].pop();this.stack[C].push(S),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(S[E],u.default.sources.USER),this.ignoreChange=!1;var P=v(S[E]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(E,C){if(E.ops.length!==0){this.stack.redo=[];var S=this.quill.getContents().diff(C),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var T=this.stack.undo.pop();S=S.compose(T.undo),E=T.redo.compose(E)}else this.lastRecorded=P;this.stack.undo.push({redo:E,undo:S}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(E){this.stack.undo.forEach(function(C){C.undo=E.transform(C.undo,!0),C.redo=E.transform(C.redo,!0)}),this.stack.redo.forEach(function(C){C.undo=E.transform(C.undo,!0),C.redo=E.transform(C.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),w}(f.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function b(x){var w=x.ops[x.ops.length-1];return w==null?!1:w.insert!=null?typeof w.insert=="string"&&w.insert.endsWith(`
`):w.attributes!=null?Object.keys(w.attributes).some(function(O){return l.default.query(O,l.default.Scope.BLOCK)!=null}):!1}function v(x){var w=x.reduce(function(E,C){return E+=C.delete||0,E},0),O=x.length()-w;return b(x)&&(O-=1),O}r.default=y,r.getLastChangeIndex=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var a=function(){function B(z,F){for(var A=0;A<F.length;A++){var N=F[A];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(z,N.key,N)}}return function(z,F,A){return F&&B(z.prototype,F),A&&B(z,A),z}}(),s=function B(z,F,A){z===null&&(z=Function.prototype);var N=Object.getOwnPropertyDescriptor(z,F);if(N===void 0){var q=Object.getPrototypeOf(z);return q===null?void 0:B(q,F,A)}else{if("value"in N)return N.value;var Y=N.get;return Y===void 0?void 0:Y.call(A)}},l=i(3),c=P(l),u=i(2),d=P(u),f=i(8),p=P(f),h=i(23),g=P(h),m=i(34),y=P(m),b=i(59),v=P(b),x=i(60),w=P(x),O=i(28),E=P(O),C=i(61),S=P(C);function P(B){return B&&B.__esModule?B:{default:B}}function T(B,z){if(!(B instanceof z))throw new TypeError("Cannot call a class as a function")}function _(B,z){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:B}function k(B,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);B.prototype=Object.create(z&&z.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(B,z):B.__proto__=z)}var $=[!1,"center","right","justify"],M=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],j=[!1,"serif","monospace"],W=["1","2","3",!1],H=["small",!1,"large","huge"],X=function(B){k(z,B);function z(F,A){T(this,z);var N=_(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,F,A)),q=function Y(G){if(!document.body.contains(F.root))return document.body.removeEventListener("click",Y);N.tooltip!=null&&!N.tooltip.root.contains(G.target)&&document.activeElement!==N.tooltip.textbox&&!N.quill.hasFocus()&&N.tooltip.hide(),N.pickers!=null&&N.pickers.forEach(function(K){K.container.contains(G.target)||K.close()})};return F.emitter.listenDOM("click",document.body,q),N}return a(z,[{key:"addModule",value:function(A){var N=s(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"addModule",this).call(this,A);return A==="toolbar"&&this.extendToolbar(N),N}},{key:"buildButtons",value:function(A,N){A.forEach(function(q){var Y=q.getAttribute("class")||"";Y.split(/\s+/).forEach(function(G){if(G.startsWith("ql-")&&(G=G.slice(3),N[G]!=null))if(G==="direction")q.innerHTML=N[G][""]+N[G].rtl;else if(typeof N[G]=="string")q.innerHTML=N[G];else{var K=q.value||"";K!=null&&N[G][K]&&(q.innerHTML=N[G][K])}})})}},{key:"buildPickers",value:function(A,N){var q=this;this.pickers=A.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&D(G,$),new w.default(G,N.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var K=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&D(G,M,K==="background"?"#ffffff":"#000000"),new v.default(G,N[K])}else return G.querySelector("option")==null&&(G.classList.contains("ql-font")?D(G,j):G.classList.contains("ql-header")?D(G,W):G.classList.contains("ql-size")&&D(G,H)),new E.default(G)});var Y=function(){q.pickers.forEach(function(K){K.update()})};this.quill.on(p.default.events.EDITOR_CHANGE,Y)}}]),z}(y.default);X.DEFAULTS=(0,c.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var z=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var A=new FileReader;A.onload=function(N){var q=z.quill.getSelection(!0);z.quill.updateContents(new d.default().retain(q.index).delete(q.length).insert({image:N.target.result}),p.default.sources.USER),z.quill.setSelection(q.index+1,p.default.sources.SILENT),F.value=""},A.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var U=function(B){k(z,B);function z(F,A){T(this,z);var N=_(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,F,A));return N.textbox=N.root.querySelector('input[type="text"]'),N.listen(),N}return a(z,[{key:"listen",value:function(){var A=this;this.textbox.addEventListener("keydown",function(N){g.default.match(N,"enter")?(A.save(),N.preventDefault()):g.default.match(N,"escape")&&(A.cancel(),N.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),N!=null?this.textbox.value=N:A!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+A)||""),this.root.setAttribute("data-mode",A)}},{key:"restoreFocus",value:function(){var A=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=A}},{key:"save",value:function(){var A=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var N=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",A,p.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",A,p.default.sources.USER)),this.quill.root.scrollTop=N;break}case"video":A=L(A);case"formula":{if(!A)break;var q=this.quill.getSelection(!0);if(q!=null){var Y=q.index+q.length;this.quill.insertEmbed(Y,this.root.getAttribute("data-mode"),A,p.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Y+1," ",p.default.sources.USER),this.quill.setSelection(Y+2,p.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),z}(S.default);function L(B){var z=B.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||B.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return z?(z[1]||"https")+"://www.youtube.com/embed/"+z[2]+"?showinfo=0":(z=B.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(z[1]||"https")+"://player.vimeo.com/video/"+z[2]+"/":B}function D(B,z){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;z.forEach(function(A){var N=document.createElement("option");A===F?N.setAttribute("selected","selected"):N.setAttribute("value",A),B.appendChild(N)})}r.BaseTooltip=U,r.default=X},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];this.insertBefore(l[0],null),l.length>1&&this.append.apply(this,l.slice(1))},s.prototype.contains=function(l){for(var c,u=this.iterator();c=u();)if(c===l)return!0;return!1},s.prototype.insertBefore=function(l,c){l&&(l.next=c,c!=null?(l.prev=c.prev,c.prev!=null&&(c.prev.next=l),c.prev=l,c===this.head&&(this.head=l)):this.tail!=null?(this.tail.next=l,l.prev=this.tail,this.tail=l):(l.prev=null,this.head=this.tail=l),this.length+=1)},s.prototype.offset=function(l){for(var c=0,u=this.head;u!=null;){if(u===l)return c;c+=u.length(),u=u.next}return-1},s.prototype.remove=function(l){this.contains(l)&&(l.prev!=null&&(l.prev.next=l.next),l.next!=null&&(l.next.prev=l.prev),l===this.head&&(this.head=l.next),l===this.tail&&(this.tail=l.prev),this.length-=1)},s.prototype.iterator=function(l){return l===void 0&&(l=this.head),function(){var c=l;return l!=null&&(l=l.next),c}},s.prototype.find=function(l,c){c===void 0&&(c=!1);for(var u,d=this.iterator();u=d();){var f=u.length();if(l<f||c&&l===f&&(u.next==null||u.next.length()!==0))return[u,l];l-=f}return[null,0]},s.prototype.forEach=function(l){for(var c,u=this.iterator();c=u();)l(c)},s.prototype.forEachAt=function(l,c,u){if(!(c<=0))for(var d=this.find(l),f=d[0],p=d[1],h,g=l-p,m=this.iterator(f);(h=m())&&g<l+c;){var y=h.length();l>g?u(h,l-g,Math.min(c,g+y-l)):u(h,0,Math.min(y,l+c-g)),g+=y}},s.prototype.map=function(l){return this.reduce(function(c,u){return c.push(l(u)),c},[])},s.prototype.reduce=function(l,c){for(var u,d=this.iterator();u=d();)c=l(c,u);return c},s}();r.default=a},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var g in h)h.hasOwnProperty(g)&&(p[g]=h[g])};return function(p,h){f(p,h);function g(){this.constructor=p}p.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(17),l=i(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,d=function(f){a(p,f);function p(h){var g=f.call(this,h)||this;return g.scroll=g,g.observer=new MutationObserver(function(m){g.update(m)}),g.observer.observe(g.domNode,c),g.attach(),g}return p.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},p.prototype.deleteAt=function(h,g){this.update(),h===0&&g===this.length()?this.children.forEach(function(m){m.remove()}):f.prototype.deleteAt.call(this,h,g)},p.prototype.formatAt=function(h,g,m,y){this.update(),f.prototype.formatAt.call(this,h,g,m,y)},p.prototype.insertAt=function(h,g,m){this.update(),f.prototype.insertAt.call(this,h,g,m)},p.prototype.optimize=function(h,g){var m=this;h===void 0&&(h=[]),g===void 0&&(g={}),f.prototype.optimize.call(this,g);for(var y=[].slice.call(this.observer.takeRecords());y.length>0;)h.push(y.pop());for(var b=function(O,E){E===void 0&&(E=!0),!(O==null||O===m)&&O.domNode.parentNode!=null&&(O.domNode[l.DATA_KEY].mutations==null&&(O.domNode[l.DATA_KEY].mutations=[]),E&&b(O.parent))},v=function(O){O.domNode[l.DATA_KEY]==null||O.domNode[l.DATA_KEY].mutations==null||(O instanceof s.default&&O.children.forEach(v),O.optimize(g))},x=h,w=0;x.length>0;w+=1){if(w>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(x.forEach(function(O){var E=l.find(O.target,!0);E!=null&&(E.domNode===O.target&&(O.type==="childList"?(b(l.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(C){var S=l.find(C,!1);b(S,!1),S instanceof s.default&&S.children.forEach(function(P){b(P,!1)})})):O.type==="attributes"&&b(E.prev)),b(E))}),this.children.forEach(v),x=[].slice.call(this.observer.takeRecords()),y=x.slice();y.length>0;)h.push(y.pop())}},p.prototype.update=function(h,g){var m=this;g===void 0&&(g={}),h=h||this.observer.takeRecords(),h.map(function(y){var b=l.find(y.target,!0);return b==null?null:b.domNode[l.DATA_KEY].mutations==null?(b.domNode[l.DATA_KEY].mutations=[y],b):(b.domNode[l.DATA_KEY].mutations.push(y),null)}).forEach(function(y){y==null||y===m||y.domNode[l.DATA_KEY]==null||y.update(y.domNode[l.DATA_KEY].mutations||[],g)}),this.domNode[l.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,g),this.optimize(h,g)},p.blotName="scroll",p.defaultChild="block",p.scope=l.Scope.BLOCK_BLOT,p.tagName="DIV",p}(s.default);r.default=d},function(n,r,i){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var h in p)p.hasOwnProperty(h)&&(f[h]=p[h])};return function(f,p){d(f,p);function h(){this.constructor=f}f.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(18),l=i(1);function c(d,f){if(Object.keys(d).length!==Object.keys(f).length)return!1;for(var p in d)if(d[p]!==f[p])return!1;return!0}var u=function(d){a(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.formats=function(p){if(p.tagName!==f.tagName)return d.formats.call(this,p)},f.prototype.format=function(p,h){var g=this;p===this.statics.blotName&&!h?(this.children.forEach(function(m){m instanceof s.default||(m=m.wrap(f.blotName,!0)),g.attributes.copy(m)}),this.unwrap()):d.prototype.format.call(this,p,h)},f.prototype.formatAt=function(p,h,g,m){if(this.formats()[g]!=null||l.query(g,l.Scope.ATTRIBUTE)){var y=this.isolate(p,h);y.format(g,m)}else d.prototype.formatAt.call(this,p,h,g,m)},f.prototype.optimize=function(p){d.prototype.optimize.call(this,p);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var g=this.next;g instanceof f&&g.prev===this&&c(h,g.formats())&&(g.moveChildren(this),g.remove())},f.blotName="inline",f.scope=l.Scope.INLINE_BLOT,f.tagName="SPAN",f}(s.default);r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(18),l=i(1),c=function(u){a(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.formats=function(f){var p=l.query(d.blotName).tagName;if(f.tagName!==p)return u.formats.call(this,f)},d.prototype.format=function(f,p){l.query(f,l.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!p?this.replaceWith(d.blotName):u.prototype.format.call(this,f,p))},d.prototype.formatAt=function(f,p,h,g){l.query(h,l.Scope.BLOCK)!=null?this.format(h,g):u.prototype.formatAt.call(this,f,p,h,g)},d.prototype.insertAt=function(f,p,h){if(h==null||l.query(p,l.Scope.INLINE)!=null)u.prototype.insertAt.call(this,f,p,h);else{var g=this.split(f),m=l.create(p,h);g.parent.insertBefore(m,g)}},d.prototype.update=function(f,p){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,f,p)},d.blotName="block",d.scope=l.Scope.BLOCK_BLOT,d.tagName="P",d}(s.default);r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])};return function(u,d){c(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(19),l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.formats=function(d){},u.prototype.format=function(d,f){c.prototype.formatAt.call(this,0,this.length(),d,f)},u.prototype.formatAt=function(d,f,p,h){d===0&&f===this.length()?this.format(p,h):c.prototype.formatAt.call(this,d,f,p,h)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u}(s.default);r.default=l},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])};return function(d,f){u(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(19),l=i(1),c=function(u){a(d,u);function d(f){var p=u.call(this,f)||this;return p.text=p.statics.value(p.domNode),p}return d.create=function(f){return document.createTextNode(f)},d.value=function(f){var p=f.data;return p.normalize&&(p=p.normalize()),p},d.prototype.deleteAt=function(f,p){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+p)},d.prototype.index=function(f,p){return this.domNode===f?p:-1},d.prototype.insertAt=function(f,p,h){h==null?(this.text=this.text.slice(0,f)+p+this.text.slice(f),this.domNode.data=this.text):u.prototype.insertAt.call(this,f,p,h)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(f){u.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(f,p){return[this.domNode,f]},d.prototype.split=function(f,p){if(p===void 0&&(p=!1),!p){if(f===0)return this;if(f===this.length())return this.next}var h=l.create(this.domNode.splitText(f));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},d.prototype.update=function(f,p){var h=this;f.some(function(g){return g.type==="characterData"&&g.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=l.Scope.INLINE_BLOT,d}(s.default);r.default=c},function(n,r,i){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(l,c){return arguments.length>1&&!this.contains(l)==!c?c:s.call(this,l)}}String.prototype.startsWith||(String.prototype.startsWith=function(l,c){return c=c||0,this.substr(c,l.length)===l}),String.prototype.endsWith||(String.prototype.endsWith=function(l,c){var u=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>u.length)&&(c=u.length),c-=l.length;var d=u.indexOf(l,c);return d!==-1&&d===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var u=Object(this),d=u.length>>>0,f=arguments[1],p,h=0;h<d;h++)if(p=u[h],c.call(f,p,h,u))return p}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,r){var i=-1,a=1,s=0;function l(w,O,E){if(w==O)return w?[[s,w]]:[];(E<0||w.length<E)&&(E=null);var C=f(w,O),S=w.substring(0,C);w=w.substring(C),O=O.substring(C),C=p(w,O);var P=w.substring(w.length-C);w=w.substring(0,w.length-C),O=O.substring(0,O.length-C);var T=c(w,O);return S&&T.unshift([s,S]),P&&T.push([s,P]),g(T),E!=null&&(T=b(T,E)),T=v(T),T}function c(w,O){var E;if(!w)return[[a,O]];if(!O)return[[i,w]];var C=w.length>O.length?w:O,S=w.length>O.length?O:w,P=C.indexOf(S);if(P!=-1)return E=[[a,C.substring(0,P)],[s,S],[a,C.substring(P+S.length)]],w.length>O.length&&(E[0][0]=E[2][0]=i),E;if(S.length==1)return[[i,w],[a,O]];var T=h(w,O);if(T){var _=T[0],k=T[1],$=T[2],M=T[3],j=T[4],W=l(_,$),H=l(k,M);return W.concat([[s,j]],H)}return u(w,O)}function u(w,O){for(var E=w.length,C=O.length,S=Math.ceil((E+C)/2),P=S,T=2*S,_=new Array(T),k=new Array(T),$=0;$<T;$++)_[$]=-1,k[$]=-1;_[P+1]=0,k[P+1]=0;for(var M=E-C,j=M%2!=0,W=0,H=0,X=0,U=0,L=0;L<S;L++){for(var D=-L+W;D<=L-H;D+=2){var B=P+D,z;D==-L||D!=L&&_[B-1]<_[B+1]?z=_[B+1]:z=_[B-1]+1;for(var F=z-D;z<E&&F<C&&w.charAt(z)==O.charAt(F);)z++,F++;if(_[B]=z,z>E)H+=2;else if(F>C)W+=2;else if(j){var A=P+M-D;if(A>=0&&A<T&&k[A]!=-1){var N=E-k[A];if(z>=N)return d(w,O,z,F)}}}for(var q=-L+X;q<=L-U;q+=2){var A=P+q,N;q==-L||q!=L&&k[A-1]<k[A+1]?N=k[A+1]:N=k[A-1]+1;for(var Y=N-q;N<E&&Y<C&&w.charAt(E-N-1)==O.charAt(C-Y-1);)N++,Y++;if(k[A]=N,N>E)U+=2;else if(Y>C)X+=2;else if(!j){var B=P+M-q;if(B>=0&&B<T&&_[B]!=-1){var z=_[B],F=P+z-B;if(N=E-N,z>=N)return d(w,O,z,F)}}}}return[[i,w],[a,O]]}function d(w,O,E,C){var S=w.substring(0,E),P=O.substring(0,C),T=w.substring(E),_=O.substring(C),k=l(S,P),$=l(T,_);return k.concat($)}function f(w,O){if(!w||!O||w.charAt(0)!=O.charAt(0))return 0;for(var E=0,C=Math.min(w.length,O.length),S=C,P=0;E<S;)w.substring(P,S)==O.substring(P,S)?(E=S,P=E):C=S,S=Math.floor((C-E)/2+E);return S}function p(w,O){if(!w||!O||w.charAt(w.length-1)!=O.charAt(O.length-1))return 0;for(var E=0,C=Math.min(w.length,O.length),S=C,P=0;E<S;)w.substring(w.length-S,w.length-P)==O.substring(O.length-S,O.length-P)?(E=S,P=E):C=S,S=Math.floor((C-E)/2+E);return S}function h(w,O){var E=w.length>O.length?w:O,C=w.length>O.length?O:w;if(E.length<4||C.length*2<E.length)return null;function S(H,X,U){for(var L=H.substring(U,U+Math.floor(H.length/4)),D=-1,B="",z,F,A,N;(D=X.indexOf(L,D+1))!=-1;){var q=f(H.substring(U),X.substring(D)),Y=p(H.substring(0,U),X.substring(0,D));B.length<Y+q&&(B=X.substring(D-Y,D)+X.substring(D,D+q),z=H.substring(0,U-Y),F=H.substring(U+q),A=X.substring(0,D-Y),N=X.substring(D+q))}return B.length*2>=H.length?[z,F,A,N,B]:null}var P=S(E,C,Math.ceil(E.length/4)),T=S(E,C,Math.ceil(E.length/2)),_;if(!P&&!T)return null;T?P?_=P[4].length>T[4].length?P:T:_=T:_=P;var k,$,M,j;w.length>O.length?(k=_[0],$=_[1],M=_[2],j=_[3]):(M=_[0],j=_[1],k=_[2],$=_[3]);var W=_[4];return[k,$,M,j,W]}function g(w){w.push([s,""]);for(var O=0,E=0,C=0,S="",P="",T;O<w.length;)switch(w[O][0]){case a:C++,P+=w[O][1],O++;break;case i:E++,S+=w[O][1],O++;break;case s:E+C>1?(E!==0&&C!==0&&(T=f(P,S),T!==0&&(O-E-C>0&&w[O-E-C-1][0]==s?w[O-E-C-1][1]+=P.substring(0,T):(w.splice(0,0,[s,P.substring(0,T)]),O++),P=P.substring(T),S=S.substring(T)),T=p(P,S),T!==0&&(w[O][1]=P.substring(P.length-T)+w[O][1],P=P.substring(0,P.length-T),S=S.substring(0,S.length-T))),E===0?w.splice(O-C,E+C,[a,P]):C===0?w.splice(O-E,E+C,[i,S]):w.splice(O-E-C,E+C,[i,S],[a,P]),O=O-E-C+(E?1:0)+(C?1:0)+1):O!==0&&w[O-1][0]==s?(w[O-1][1]+=w[O][1],w.splice(O,1)):O++,C=0,E=0,S="",P="";break}w[w.length-1][1]===""&&w.pop();var _=!1;for(O=1;O<w.length-1;)w[O-1][0]==s&&w[O+1][0]==s&&(w[O][1].substring(w[O][1].length-w[O-1][1].length)==w[O-1][1]?(w[O][1]=w[O-1][1]+w[O][1].substring(0,w[O][1].length-w[O-1][1].length),w[O+1][1]=w[O-1][1]+w[O+1][1],w.splice(O-1,1),_=!0):w[O][1].substring(0,w[O+1][1].length)==w[O+1][1]&&(w[O-1][1]+=w[O+1][1],w[O][1]=w[O][1].substring(w[O+1][1].length)+w[O+1][1],w.splice(O+1,1),_=!0)),O++;_&&g(w)}var m=l;m.INSERT=a,m.DELETE=i,m.EQUAL=s,n.exports=m;function y(w,O){if(O===0)return[s,w];for(var E=0,C=0;C<w.length;C++){var S=w[C];if(S[0]===i||S[0]===s){var P=E+S[1].length;if(O===P)return[C+1,w];if(O<P){w=w.slice();var T=O-E,_=[S[0],S[1].slice(0,T)],k=[S[0],S[1].slice(T)];return w.splice(C,1,_,k),[C+1,w]}else E=P}}throw new Error("cursor_pos is out of bounds!")}function b(w,O){var E=y(w,O),C=E[1],S=E[0],P=C[S],T=C[S+1];if(P==null)return w;if(P[0]!==s)return w;if(T!=null&&P[1]+T[1]===T[1]+P[1])return C.splice(S,2,T,P),x(C,S,2);if(T!=null&&T[1].indexOf(P[1])===0){C.splice(S,2,[T[0],P[1]],[0,P[1]]);var _=T[1].slice(P[1].length);return _.length>0&&C.splice(S+2,0,[T[0],_]),x(C,S,3)}else return w}function v(w){for(var O=!1,E=function(T){return T.charCodeAt(0)>=56320&&T.charCodeAt(0)<=57343},C=function(T){return T.charCodeAt(T.length-1)>=55296&&T.charCodeAt(T.length-1)<=56319},S=2;S<w.length;S+=1)w[S-2][0]===s&&C(w[S-2][1])&&w[S-1][0]===i&&E(w[S-1][1])&&w[S][0]===a&&E(w[S][1])&&(O=!0,w[S-1][1]=w[S-2][1].slice(-1)+w[S-1][1],w[S][1]=w[S-2][1].slice(-1)+w[S][1],w[S-2][1]=w[S-2][1].slice(0,-1));if(!O)return w;for(var P=[],S=0;S<w.length;S+=1)w[S][1].length>0&&P.push(w[S]);return P}function x(w,O,E){for(var C=O+E-1;C>=0&&C>=O-1;C--)if(C+1<w.length){var S=w[C],P=w[C+1];S[0]===P[1]&&w.splice(C,2,[S[0],S[1]+P[1]])}return w}},function(n,r){r=n.exports=typeof Object.keys=="function"?Object.keys:i,r.shim=i;function i(a){var s=[];for(var l in a)s.push(l);return s}},function(n,r){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";r=n.exports=i?a:s,r.supported=a;function a(l){return Object.prototype.toString.call(l)=="[object Arguments]"}r.unsupported=s;function s(l){return l&&typeof l=="object"&&typeof l.length=="number"&&Object.prototype.hasOwnProperty.call(l,"callee")&&!Object.prototype.propertyIsEnumerable.call(l,"callee")||!1}},function(n,r){var i=Object.prototype.hasOwnProperty,a="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(a=!1));function l(u,d,f){this.fn=u,this.context=d,this.once=f||!1}function c(){this._events=new s,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],f,p;if(this._eventsCount===0)return d;for(p in f=this._events)i.call(f,p)&&d.push(a?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(f)):d},c.prototype.listeners=function(d,f){var p=a?a+d:d,h=this._events[p];if(f)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var g=0,m=h.length,y=new Array(m);g<m;g++)y[g]=h[g].fn;return y},c.prototype.emit=function(d,f,p,h,g,m){var y=a?a+d:d;if(!this._events[y])return!1;var b=this._events[y],v=arguments.length,x,w;if(b.fn){switch(b.once&&this.removeListener(d,b.fn,void 0,!0),v){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,f),!0;case 3:return b.fn.call(b.context,f,p),!0;case 4:return b.fn.call(b.context,f,p,h),!0;case 5:return b.fn.call(b.context,f,p,h,g),!0;case 6:return b.fn.call(b.context,f,p,h,g,m),!0}for(w=1,x=new Array(v-1);w<v;w++)x[w-1]=arguments[w];b.fn.apply(b.context,x)}else{var O=b.length,E;for(w=0;w<O;w++)switch(b[w].once&&this.removeListener(d,b[w].fn,void 0,!0),v){case 1:b[w].fn.call(b[w].context);break;case 2:b[w].fn.call(b[w].context,f);break;case 3:b[w].fn.call(b[w].context,f,p);break;case 4:b[w].fn.call(b[w].context,f,p,h);break;default:if(!x)for(E=1,x=new Array(v-1);E<v;E++)x[E-1]=arguments[E];b[w].fn.apply(b[w].context,x)}}return!0},c.prototype.on=function(d,f,p){var h=new l(f,p||this),g=a?a+d:d;return this._events[g]?this._events[g].fn?this._events[g]=[this._events[g],h]:this._events[g].push(h):(this._events[g]=h,this._eventsCount++),this},c.prototype.once=function(d,f,p){var h=new l(f,p||this,!0),g=a?a+d:d;return this._events[g]?this._events[g].fn?this._events[g]=[this._events[g],h]:this._events[g].push(h):(this._events[g]=h,this._eventsCount++),this},c.prototype.removeListener=function(d,f,p,h){var g=a?a+d:d;if(!this._events[g])return this;if(!f)return--this._eventsCount===0?this._events=new s:delete this._events[g],this;var m=this._events[g];if(m.fn)m.fn===f&&(!h||m.once)&&(!p||m.context===p)&&(--this._eventsCount===0?this._events=new s:delete this._events[g]);else{for(var y=0,b=[],v=m.length;y<v;y++)(m[y].fn!==f||h&&!m[y].once||p&&m[y].context!==p)&&b.push(m[y]);b.length?this._events[g]=b.length===1?b[0]:b:--this._eventsCount===0?this._events=new s:delete this._events[g]}return this},c.prototype.removeAllListeners=function(d){var f;return d?(f=a?a+d:d,this._events[f]&&(--this._eventsCount===0?this._events=new s:delete this._events[f])):(this._events=new s,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=a,c.EventEmitter=c,typeof n<"u"&&(n.exports=c)},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},s=function(){function Q(oe,te){var le=[],re=!0,Te=!1,Se=void 0;try{for(var fe=oe[Symbol.iterator](),ge;!(re=(ge=fe.next()).done)&&(le.push(ge.value),!(te&&le.length===te));re=!0);}catch(_e){Te=!0,Se=_e}finally{try{!re&&fe.return&&fe.return()}finally{if(Te)throw Se}}return le}return function(oe,te){if(Array.isArray(oe))return oe;if(Symbol.iterator in Object(oe))return Q(oe,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function Q(oe,te){for(var le=0;le<te.length;le++){var re=te[le];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(oe,re.key,re)}}return function(oe,te,le){return te&&Q(oe.prototype,te),le&&Q(oe,le),oe}}(),c=i(3),u=k(c),d=i(2),f=k(d),p=i(0),h=k(p),g=i(5),m=k(g),y=i(10),b=k(y),v=i(9),x=k(v),w=i(36),O=i(37),E=i(13),C=k(E),S=i(26),P=i(38),T=i(39),_=i(40);function k(Q){return Q&&Q.__esModule?Q:{default:Q}}function $(Q,oe,te){return oe in Q?Object.defineProperty(Q,oe,{value:te,enumerable:!0,configurable:!0,writable:!0}):Q[oe]=te,Q}function M(Q,oe){if(!(Q instanceof oe))throw new TypeError("Cannot call a class as a function")}function j(Q,oe){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:Q}function W(Q,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);Q.prototype=Object.create(oe&&oe.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,oe):Q.__proto__=oe)}var H=(0,b.default)("quill:clipboard"),X="__ql-matcher",U=[[Node.TEXT_NODE,pe],[Node.TEXT_NODE,de],["br",J],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,xe],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,he],["li",ie],["b",Y.bind(Y,"bold")],["i",Y.bind(Y,"italic")],["style",Z]],L=[w.AlignAttribute,P.DirectionAttribute].reduce(function(Q,oe){return Q[oe.keyName]=oe,Q},{}),D=[w.AlignStyle,O.BackgroundStyle,S.ColorStyle,P.DirectionStyle,T.FontStyle,_.SizeStyle].reduce(function(Q,oe){return Q[oe.keyName]=oe,Q},{}),B=function(Q){W(oe,Q);function oe(te,le){M(this,oe);var re=j(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this,te,le));return re.quill.root.addEventListener("paste",re.onPaste.bind(re)),re.container=re.quill.addContainer("ql-clipboard"),re.container.setAttribute("contenteditable",!0),re.container.setAttribute("tabindex",-1),re.matchers=[],U.concat(re.options.matchers).forEach(function(Te){var Se=s(Te,2),fe=Se[0],ge=Se[1];!le.matchVisual&&ge===xe||re.addMatcher(fe,ge)}),re}return l(oe,[{key:"addMatcher",value:function(le,re){this.matchers.push([le,re])}},{key:"convert",value:function(le){if(typeof le=="string")return this.container.innerHTML=le.replace(/\>\r?\n +\</g,"><"),this.convert();var re=this.quill.getFormat(this.quill.selection.savedRange.index);if(re[C.default.blotName]){var Te=this.container.innerText;return this.container.innerHTML="",new f.default().insert(Te,$({},C.default.blotName,re[C.default.blotName]))}var Se=this.prepareMatching(),fe=s(Se,2),ge=fe[0],_e=fe[1],$e=q(this.container,ge,_e);return A($e,`
`)&&$e.ops[$e.ops.length-1].attributes==null&&($e=$e.compose(new f.default().retain($e.length()-1).delete(1))),H.log("convert",this.container.innerHTML,$e),this.container.innerHTML="",$e}},{key:"dangerouslyPasteHTML",value:function(le,re){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof le=="string")this.quill.setContents(this.convert(le),re),this.quill.setSelection(0,m.default.sources.SILENT);else{var Se=this.convert(re);this.quill.updateContents(new f.default().retain(le).concat(Se),Te),this.quill.setSelection(le+Se.length(),m.default.sources.SILENT)}}},{key:"onPaste",value:function(le){var re=this;if(!(le.defaultPrevented||!this.quill.isEnabled())){var Te=this.quill.getSelection(),Se=new f.default().retain(Te.index),fe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(m.default.sources.SILENT),setTimeout(function(){Se=Se.concat(re.convert()).delete(Te.length),re.quill.updateContents(Se,m.default.sources.USER),re.quill.setSelection(Se.length()-Te.length,m.default.sources.SILENT),re.quill.scrollingContainer.scrollTop=fe,re.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var le=this,re=[],Te=[];return this.matchers.forEach(function(Se){var fe=s(Se,2),ge=fe[0],_e=fe[1];switch(ge){case Node.TEXT_NODE:Te.push(_e);break;case Node.ELEMENT_NODE:re.push(_e);break;default:[].forEach.call(le.container.querySelectorAll(ge),function($e){$e[X]=$e[X]||[],$e[X].push(_e)});break}}),[re,Te]}}]),oe}(x.default);B.DEFAULTS={matchers:[],matchVisual:!0};function z(Q,oe,te){return(typeof oe>"u"?"undefined":a(oe))==="object"?Object.keys(oe).reduce(function(le,re){return z(le,re,oe[re])},Q):Q.reduce(function(le,re){return re.attributes&&re.attributes[oe]?le.push(re):le.insert(re.insert,(0,u.default)({},$({},oe,te),re.attributes))},new f.default)}function F(Q){if(Q.nodeType!==Node.ELEMENT_NODE)return{};var oe="__ql-computed-style";return Q[oe]||(Q[oe]=window.getComputedStyle(Q))}function A(Q,oe){for(var te="",le=Q.ops.length-1;le>=0&&te.length<oe.length;--le){var re=Q.ops[le];if(typeof re.insert!="string")break;te=re.insert+te}return te.slice(-1*oe.length)===oe}function N(Q){if(Q.childNodes.length===0)return!1;var oe=F(Q);return["block","list-item"].indexOf(oe.display)>-1}function q(Q,oe,te){return Q.nodeType===Q.TEXT_NODE?te.reduce(function(le,re){return re(Q,le)},new f.default):Q.nodeType===Q.ELEMENT_NODE?[].reduce.call(Q.childNodes||[],function(le,re){var Te=q(re,oe,te);return re.nodeType===Q.ELEMENT_NODE&&(Te=oe.reduce(function(Se,fe){return fe(re,Se)},Te),Te=(re[X]||[]).reduce(function(Se,fe){return fe(re,Se)},Te)),le.concat(Te)},new f.default):new f.default}function Y(Q,oe,te){return z(te,Q,!0)}function G(Q,oe){var te=h.default.Attributor.Attribute.keys(Q),le=h.default.Attributor.Class.keys(Q),re=h.default.Attributor.Style.keys(Q),Te={};return te.concat(le).concat(re).forEach(function(Se){var fe=h.default.query(Se,h.default.Scope.ATTRIBUTE);fe!=null&&(Te[fe.attrName]=fe.value(Q),Te[fe.attrName])||(fe=L[Se],fe!=null&&(fe.attrName===Se||fe.keyName===Se)&&(Te[fe.attrName]=fe.value(Q)||void 0),fe=D[Se],fe!=null&&(fe.attrName===Se||fe.keyName===Se)&&(fe=D[Se],Te[fe.attrName]=fe.value(Q)||void 0))}),Object.keys(Te).length>0&&(oe=z(oe,Te)),oe}function K(Q,oe){var te=h.default.query(Q);if(te==null)return oe;if(te.prototype instanceof h.default.Embed){var le={},re=te.value(Q);re!=null&&(le[te.blotName]=re,oe=new f.default().insert(le,te.formats(Q)))}else typeof te.formats=="function"&&(oe=z(oe,te.blotName,te.formats(Q)));return oe}function J(Q,oe){return A(oe,`
`)||oe.insert(`
`),oe}function Z(){return new f.default}function ie(Q,oe){var te=h.default.query(Q);if(te==null||te.blotName!=="list-item"||!A(oe,`
`))return oe;for(var le=-1,re=Q.parentNode;!re.classList.contains("ql-clipboard");)(h.default.query(re)||{}).blotName==="list"&&(le+=1),re=re.parentNode;return le<=0?oe:oe.compose(new f.default().retain(oe.length()-1).retain(1,{indent:le}))}function de(Q,oe){return A(oe,`
`)||(N(Q)||oe.length()>0&&Q.nextSibling&&N(Q.nextSibling))&&oe.insert(`
`),oe}function xe(Q,oe){if(N(Q)&&Q.nextElementSibling!=null&&!A(oe,`
`)){var te=Q.offsetHeight+parseFloat(F(Q).marginTop)+parseFloat(F(Q).marginBottom);Q.nextElementSibling.offsetTop>Q.offsetTop+te*1.5&&oe.insert(`
`)}return oe}function he(Q,oe){var te={},le=Q.style||{};return le.fontStyle&&F(Q).fontStyle==="italic"&&(te.italic=!0),le.fontWeight&&(F(Q).fontWeight.startsWith("bold")||parseInt(F(Q).fontWeight)>=700)&&(te.bold=!0),Object.keys(te).length>0&&(oe=z(oe,te)),parseFloat(le.textIndent||0)>0&&(oe=new f.default().insert(" ").concat(oe)),oe}function pe(Q,oe){var te=Q.data;if(Q.parentNode.tagName==="O:P")return oe.insert(te.trim());if(te.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return oe;if(!F(Q.parentNode).whiteSpace.startsWith("pre")){var le=function(Te,Se){return Se=Se.replace(/[^\u00a0]/g,""),Se.length<1&&Te?" ":Se};te=te.replace(/\r\n/g," ").replace(/\n/g," "),te=te.replace(/\s\s+/g,le.bind(le,!0)),(Q.previousSibling==null&&N(Q.parentNode)||Q.previousSibling!=null&&N(Q.previousSibling))&&(te=te.replace(/^\s+/,le.bind(le,!1))),(Q.nextSibling==null&&N(Q.parentNode)||Q.nextSibling!=null&&N(Q.nextSibling))&&(te=te.replace(/\s+$/,le.bind(le,!1)))}return oe.insert(te)}r.default=B,r.matchAttributor=G,r.matchBlot=K,r.matchNewline=de,r.matchSpacing=xe,r.matchText=pe},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(m,y){for(var b=0;b<y.length;b++){var v=y[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,b){return y&&g(m.prototype,y),b&&g(m,b),m}}(),s=function g(m,y,b){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,y,b)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(b)}},l=i(6),c=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function f(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function p(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var h=function(g){p(m,g);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"optimize",value:function(b){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,b),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(c.default);h.blotName="bold",h.tagName=["STRONG","B"],r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var a=function(){function _(k,$){var M=[],j=!0,W=!1,H=void 0;try{for(var X=k[Symbol.iterator](),U;!(j=(U=X.next()).done)&&(M.push(U.value),!($&&M.length===$));j=!0);}catch(L){W=!0,H=L}finally{try{!j&&X.return&&X.return()}finally{if(W)throw H}}return M}return function(k,$){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return _(k,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function _(k,$){for(var M=0;M<$.length;M++){var j=$[M];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}return function(k,$,M){return $&&_(k.prototype,$),M&&_(k,M),k}}(),l=i(2),c=b(l),u=i(0),d=b(u),f=i(5),p=b(f),h=i(10),g=b(h),m=i(9),y=b(m);function b(_){return _&&_.__esModule?_:{default:_}}function v(_,k,$){return k in _?Object.defineProperty(_,k,{value:$,enumerable:!0,configurable:!0,writable:!0}):_[k]=$,_}function x(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function w(_,k){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:_}function O(_,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);_.prototype=Object.create(k&&k.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(_,k):_.__proto__=k)}var E=(0,g.default)("quill:toolbar"),C=function(_){O(k,_);function k($,M){x(this,k);var j=w(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,$,M));if(Array.isArray(j.options.container)){var W=document.createElement("div");P(W,j.options.container),$.container.parentNode.insertBefore(W,$.container),j.container=W}else typeof j.options.container=="string"?j.container=document.querySelector(j.options.container):j.container=j.options.container;if(!(j.container instanceof HTMLElement)){var H;return H=E.error("Container required for toolbar",j.options),w(j,H)}return j.container.classList.add("ql-toolbar"),j.controls=[],j.handlers={},Object.keys(j.options.handlers).forEach(function(X){j.addHandler(X,j.options.handlers[X])}),[].forEach.call(j.container.querySelectorAll("button, select"),function(X){j.attach(X)}),j.quill.on(p.default.events.EDITOR_CHANGE,function(X,U){X===p.default.events.SELECTION_CHANGE&&j.update(U)}),j.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){var X=j.quill.selection.getRange(),U=a(X,1),L=U[0];j.update(L)}),j}return s(k,[{key:"addHandler",value:function(M,j){this.handlers[M]=j}},{key:"attach",value:function(M){var j=this,W=[].find.call(M.classList,function(X){return X.indexOf("ql-")===0});if(W){if(W=W.slice(3),M.tagName==="BUTTON"&&M.setAttribute("type","button"),this.handlers[W]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[W]==null){E.warn("ignoring attaching to disabled format",W,M);return}if(d.default.query(W)==null){E.warn("ignoring attaching to nonexistent format",W,M);return}}var H=M.tagName==="SELECT"?"change":"click";M.addEventListener(H,function(X){var U=void 0;if(M.tagName==="SELECT"){if(M.selectedIndex<0)return;var L=M.options[M.selectedIndex];L.hasAttribute("selected")?U=!1:U=L.value||!1}else M.classList.contains("ql-active")?U=!1:U=M.value||!M.hasAttribute("value"),X.preventDefault();j.quill.focus();var D=j.quill.selection.getRange(),B=a(D,1),z=B[0];if(j.handlers[W]!=null)j.handlers[W].call(j,U);else if(d.default.query(W).prototype instanceof d.default.Embed){if(U=prompt("Enter "+W),!U)return;j.quill.updateContents(new c.default().retain(z.index).delete(z.length).insert(v({},W,U)),p.default.sources.USER)}else j.quill.format(W,U,p.default.sources.USER);j.update(z)}),this.controls.push([W,M])}}},{key:"update",value:function(M){var j=M==null?{}:this.quill.getFormat(M);this.controls.forEach(function(W){var H=a(W,2),X=H[0],U=H[1];if(U.tagName==="SELECT"){var L=void 0;if(M==null)L=null;else if(j[X]==null)L=U.querySelector("option[selected]");else if(!Array.isArray(j[X])){var D=j[X];typeof D=="string"&&(D=D.replace(/\"/g,'\\"')),L=U.querySelector('option[value="'+D+'"]')}L==null?(U.value="",U.selectedIndex=-1):L.selected=!0}else if(M==null)U.classList.remove("ql-active");else if(U.hasAttribute("value")){var B=j[X]===U.getAttribute("value")||j[X]!=null&&j[X].toString()===U.getAttribute("value")||j[X]==null&&!U.getAttribute("value");U.classList.toggle("ql-active",B)}else U.classList.toggle("ql-active",j[X]!=null)})}}]),k}(y.default);C.DEFAULTS={};function S(_,k,$){var M=document.createElement("button");M.setAttribute("type","button"),M.classList.add("ql-"+k),$!=null&&(M.value=$),_.appendChild(M)}function P(_,k){Array.isArray(k[0])||(k=[k]),k.forEach(function($){var M=document.createElement("span");M.classList.add("ql-formats"),$.forEach(function(j){if(typeof j=="string")S(M,j);else{var W=Object.keys(j)[0],H=j[W];Array.isArray(H)?T(M,W,H):S(M,W,H)}}),_.appendChild(M)})}function T(_,k,$){var M=document.createElement("select");M.classList.add("ql-"+k),$.forEach(function(j){var W=document.createElement("option");j!==!1?W.setAttribute("value",j):W.setAttribute("selected","selected"),M.appendChild(W)}),_.appendChild(M)}C.DEFAULTS={container:null,handlers:{clean:function(){var k=this,$=this.quill.getSelection();if($!=null)if($.length==0){var M=this.quill.getFormat();Object.keys(M).forEach(function(j){d.default.query(j,d.default.Scope.INLINE)!=null&&k.quill.format(j,!1)})}else this.quill.removeFormat($,p.default.sources.USER)},direction:function(k){var $=this.quill.getFormat().align;k==="rtl"&&$==null?this.quill.format("align","right",p.default.sources.USER):!k&&$==="right"&&this.quill.format("align",!1,p.default.sources.USER),this.quill.format("direction",k,p.default.sources.USER)},indent:function(k){var $=this.quill.getSelection(),M=this.quill.getFormat($),j=parseInt(M.indent||0);if(k==="+1"||k==="-1"){var W=k==="+1"?1:-1;M.direction==="rtl"&&(W*=-1),this.quill.format("indent",j+W,p.default.sources.USER)}},link:function(k){k===!0&&(k=prompt("Enter link URL:")),this.quill.format("link",k,p.default.sources.USER)},list:function(k){var $=this.quill.getSelection(),M=this.quill.getFormat($);k==="check"?M.list==="checked"||M.list==="unchecked"?this.quill.format("list",!1,p.default.sources.USER):this.quill.format("list","unchecked",p.default.sources.USER):this.quill.format("list",k,p.default.sources.USER)}}},r.default=C,r.addControls=P},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(m,y){for(var b=0;b<y.length;b++){var v=y[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,b){return y&&g(m.prototype,y),b&&g(m,b),m}}(),s=function g(m,y,b){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,y,b)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(b)}},l=i(28),c=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function f(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function p(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var h=function(g){p(m,g);function m(y,b){d(this,m);var v=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return v.label.innerHTML=b,v.container.classList.add("ql-color-picker"),[].slice.call(v.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),v}return a(m,[{key:"buildItem",value:function(b){var v=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,b);return v.style.backgroundColor=b.getAttribute("value")||"",v}},{key:"selectItem",value:function(b,v){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,b,v);var x=this.label.querySelector(".ql-color-label"),w=b&&b.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=w:x.style.fill=w)}}]),m}(c.default);r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(m,y){for(var b=0;b<y.length;b++){var v=y[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,b){return y&&g(m.prototype,y),b&&g(m,b),m}}(),s=function g(m,y,b){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,y,b)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(b)}},l=i(28),c=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function f(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function p(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var h=function(g){p(m,g);function m(y,b){d(this,m);var v=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return v.container.classList.add("ql-icon-picker"),[].forEach.call(v.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=b[x.getAttribute("data-value")||""]}),v.defaultItem=v.container.querySelector(".ql-selected"),v.selectItem(v.defaultItem),v}return a(m,[{key:"selectItem",value:function(b,v){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,b,v),b=b||this.defaultItem,this.label.innerHTML=b.innerHTML}}]),m}(c.default);r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function c(u,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,d,f){return d&&c(u.prototype,d),f&&c(u,f),u}}();function s(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=function(){function c(u,d){var f=this;s(this,c),this.quill=u,this.boundsContainer=d||document.body,this.root=u.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return a(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var f=d.left+d.width/2-this.root.offsetWidth/2,p=d.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=p+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),g=this.root.getBoundingClientRect(),m=0;if(g.right>h.right&&(m=h.right-g.right,this.root.style.left=f+m+"px"),g.left<h.left&&(m=h.left-g.left,this.root.style.left=f+m+"px"),g.bottom>h.bottom){var y=g.bottom-g.top,b=d.bottom-d.top+y;this.root.style.top=p-b+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c}();r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function T(_,k){var $=[],M=!0,j=!1,W=void 0;try{for(var H=_[Symbol.iterator](),X;!(M=(X=H.next()).done)&&($.push(X.value),!(k&&$.length===k));M=!0);}catch(U){j=!0,W=U}finally{try{!M&&H.return&&H.return()}finally{if(j)throw W}}return $}return function(_,k){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return T(_,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function T(_,k,$){_===null&&(_=Function.prototype);var M=Object.getOwnPropertyDescriptor(_,k);if(M===void 0){var j=Object.getPrototypeOf(_);return j===null?void 0:T(j,k,$)}else{if("value"in M)return M.value;var W=M.get;return W===void 0?void 0:W.call($)}},l=function(){function T(_,k){for(var $=0;$<k.length;$++){var M=k[$];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(_,M.key,M)}}return function(_,k,$){return k&&T(_.prototype,k),$&&T(_,$),_}}(),c=i(3),u=x(c),d=i(8),f=x(d),p=i(43),h=x(p),g=i(27),m=x(g),y=i(15),b=i(41),v=x(b);function x(T){return T&&T.__esModule?T:{default:T}}function w(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function O(T,_){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:T}function E(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(T,_):T.__proto__=_)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],S=function(T){E(_,T);function _(k,$){w(this,_),$.modules.toolbar!=null&&$.modules.toolbar.container==null&&($.modules.toolbar.container=C);var M=O(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,k,$));return M.quill.container.classList.add("ql-snow"),M}return l(_,[{key:"extendToolbar",value:function($){$.container.classList.add("ql-snow"),this.buildButtons([].slice.call($.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call($.container.querySelectorAll("select")),v.default),this.tooltip=new P(this.quill,this.options.bounds),$.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(M,j){$.handlers.link.call($,!j.format.link)})}}]),_}(h.default);S.DEFAULTS=(0,u.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){if(_){var k=this.quill.getSelection();if(k==null||k.length==0)return;var $=this.quill.getText(k);/^\S+@\S+\.\S+$/.test($)&&$.indexOf("mailto:")!==0&&($="mailto:"+$);var M=this.quill.theme.tooltip;M.edit("link",$)}else this.quill.format("link",!1)}}}}});var P=function(T){E(_,T);function _(k,$){w(this,_);var M=O(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,k,$));return M.preview=M.root.querySelector("a.ql-preview"),M}return l(_,[{key:"listen",value:function(){var $=this;s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(M){$.root.classList.contains("ql-editing")?$.save():$.edit("link",$.preview.textContent),M.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(M){if($.linkRange!=null){var j=$.linkRange;$.restoreFocus(),$.quill.formatText(j,"link",!1,f.default.sources.USER),delete $.linkRange}M.preventDefault(),$.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(M,j,W){if(M!=null){if(M.length===0&&W===f.default.sources.USER){var H=$.quill.scroll.descendant(m.default,M.index),X=a(H,2),U=X[0],L=X[1];if(U!=null){$.linkRange=new y.Range(M.index-L,U.length());var D=m.default.formats(U.domNode);$.preview.textContent=D,$.preview.setAttribute("href",D),$.show(),$.position($.quill.getBounds($.linkRange));return}}else delete $.linkRange;$.hide()}})}},{key:"show",value:function(){s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),_}(p.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),r.default=S},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(29),s=re(a),l=i(36),c=i(38),u=i(64),d=i(65),f=re(d),p=i(66),h=re(p),g=i(67),m=re(g),y=i(37),b=i(26),v=i(39),x=i(40),w=i(56),O=re(w),E=i(68),C=re(E),S=i(27),P=re(S),T=i(69),_=re(T),k=i(70),$=re(k),M=i(71),j=re(M),W=i(72),H=re(W),X=i(73),U=re(X),L=i(13),D=re(L),B=i(74),z=re(B),F=i(75),A=re(F),N=i(57),q=re(N),Y=i(41),G=re(Y),K=i(28),J=re(K),Z=i(59),ie=re(Z),de=i(60),xe=re(de),he=i(61),pe=re(he),Q=i(108),oe=re(Q),te=i(62),le=re(te);function re(Te){return Te&&Te.__esModule?Te:{default:Te}}s.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":b.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":b.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":x.SizeStyle},!0),s.default.register({"formats/align":l.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":u.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":b.ColorStyle,"formats/font":v.FontClass,"formats/size":x.SizeClass,"formats/blockquote":f.default,"formats/code-block":D.default,"formats/header":h.default,"formats/list":m.default,"formats/bold":O.default,"formats/code":L.Code,"formats/italic":C.default,"formats/link":P.default,"formats/script":_.default,"formats/strike":$.default,"formats/underline":j.default,"formats/image":H.default,"formats/video":U.default,"formats/list/item":g.ListItem,"modules/formula":z.default,"modules/syntax":A.default,"modules/toolbar":q.default,"themes/bubble":oe.default,"themes/snow":le.default,"ui/icons":G.default,"ui/picker":J.default,"ui/icon-picker":xe.default,"ui/color-picker":ie.default,"ui/tooltip":pe.default},!0),r.default=s.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var a=function(){function m(y,b){for(var v=0;v<b.length;v++){var x=b[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,b,v){return b&&m(y.prototype,b),v&&m(y,v),y}}(),s=function m(y,b,v){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,b);if(x===void 0){var w=Object.getPrototypeOf(y);return w===null?void 0:m(w,b,v)}else{if("value"in x)return x.value;var O=x.get;return O===void 0?void 0:O.call(v)}},l=i(0),c=u(l);function u(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function f(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function p(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var h=function(m){p(y,m);function y(){return d(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"add",value:function(v,x){if(x==="+1"||x==="-1"){var w=this.value(v)||0;x=x==="+1"?w+1:w-1}return x===0?(this.remove(v),!0):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,v,x)}},{key:"canAdd",value:function(v,x){return s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,v,x)||s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,v,parseInt(x))}},{key:"value",value:function(v){return parseInt(s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,v))||void 0}}]),y}(c.default.Attributor.Class),g=new h("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(4),s=l(a);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="blockquote",f.tagName="blockquote",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function h(g,m){for(var y=0;y<m.length;y++){var b=m[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,m,y){return m&&h(g.prototype,m),y&&h(g,y),g}}(),s=i(4),l=c(s);function c(h){return h&&h.__esModule?h:{default:h}}function u(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function d(h,g){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:h}function f(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);h.prototype=Object.create(g&&g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(h,g):h.__proto__=g)}var p=function(h){f(g,h);function g(){return u(this,g),d(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),g}(l.default);p.blotName="header",p.tagName=["H1","H2","H3","H4","H5","H6"],r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var a=function(){function w(O,E){for(var C=0;C<E.length;C++){var S=E[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(O,S.key,S)}}return function(O,E,C){return E&&w(O.prototype,E),C&&w(O,C),O}}(),s=function w(O,E,C){O===null&&(O=Function.prototype);var S=Object.getOwnPropertyDescriptor(O,E);if(S===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:w(P,E,C)}else{if("value"in S)return S.value;var T=S.get;return T===void 0?void 0:T.call(C)}},l=i(0),c=h(l),u=i(4),d=h(u),f=i(25),p=h(f);function h(w){return w&&w.__esModule?w:{default:w}}function g(w,O,E){return O in w?Object.defineProperty(w,O,{value:E,enumerable:!0,configurable:!0,writable:!0}):w[O]=E,w}function m(w,O){if(!(w instanceof O))throw new TypeError("Cannot call a class as a function")}function y(w,O){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:w}function b(w,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);w.prototype=Object.create(O&&O.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(w,O):w.__proto__=O)}var v=function(w){b(O,w);function O(){return m(this,O),y(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return a(O,[{key:"format",value:function(C,S){C===x.blotName&&!S?this.replaceWith(c.default.create(this.statics.scope)):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,C,S)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,S){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,S),this):(this.parent.unwrap(),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,C,S))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:s(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,C)}}]),O}(d.default);v.blotName="list-item",v.tagName="LI";var x=function(w){b(O,w),a(O,null,[{key:"create",value:function(C){var S=C==="ordered"?"OL":"UL",P=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,S);return(C==="checked"||C==="unchecked")&&P.setAttribute("data-checked",C==="checked"),P}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(E){m(this,O);var C=y(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,E)),S=function(T){if(T.target.parentNode===E){var _=C.statics.formats(E),k=c.default.find(T.target);_==="checked"?k.format("list","unchecked"):_==="unchecked"&&k.format("list","checked")}};return E.addEventListener("touchstart",S),E.addEventListener("mousedown",S),C}return a(O,[{key:"format",value:function(C,S){this.children.length>0&&this.children.tail.format(C,S)}},{key:"formats",value:function(){return g({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,S){if(C instanceof v)s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,C,S);else{var P=S==null?this.length():S.offset(this),T=this.split(P);T.parent.insertBefore(C,T)}}},{key:"optimize",value:function(C){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,C);var S=this.next;S!=null&&S.prev===this&&S.statics.blotName===this.statics.blotName&&S.domNode.tagName===this.domNode.tagName&&S.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(S.moveChildren(this),S.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var S=c.default.create(this.statics.defaultChild);C.moveChildren(S),this.appendChild(S)}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,C)}}]),O}(p.default);x.blotName="list",x.scope=c.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[v],r.ListItem=v,r.default=x},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(56),s=l(a);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="italic",f.tagName=["EM","I"],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(m,y){for(var b=0;b<y.length;b++){var v=y[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,b){return y&&g(m.prototype,y),b&&g(m,b),m}}(),s=function g(m,y,b){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,y,b)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(b)}},l=i(6),c=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function f(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function p(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var h=function(g){p(m,g);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,null,[{key:"create",value:function(b){return b==="super"?document.createElement("sup"):b==="sub"?document.createElement("sub"):s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,b)}},{key:"formats",value:function(b){if(b.tagName==="SUB")return"sub";if(b.tagName==="SUP")return"super"}}]),m}(c.default);h.blotName="script",h.tagName=["SUB","SUP"],r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(6),s=l(a);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="strike",f.tagName="S",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(6),s=l(a);function l(p){return p&&p.__esModule?p:{default:p}}function c(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function u(p,h){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:p}function d(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(p,h):p.__proto__=h)}var f=function(p){d(h,p);function h(){return c(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="underline",f.tagName="U",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function y(b,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,v,x){return v&&y(b.prototype,v),x&&y(b,x),b}}(),s=function y(b,v,x){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,v);if(w===void 0){var O=Object.getPrototypeOf(b);return O===null?void 0:y(O,v,x)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(x)}},l=i(0),c=d(l),u=i(27);function d(y){return y&&y.__esModule?y:{default:y}}function f(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function p(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function h(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var g=["alt","height","width"],m=function(y){h(b,y);function b(){return f(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"format",value:function(x,w){g.indexOf(x)>-1?w?this.domNode.setAttribute(x,w):this.domNode.removeAttribute(x):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,x,w)}}],[{key:"create",value:function(x){var w=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,x);return typeof x=="string"&&w.setAttribute("src",this.sanitize(x)),w}},{key:"formats",value:function(x){return g.reduce(function(w,O){return x.hasAttribute(O)&&(w[O]=x.getAttribute(O)),w},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,u.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),b}(c.default.Embed);m.blotName="image",m.tagName="IMG",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function y(b,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,v,x){return v&&y(b.prototype,v),x&&y(b,x),b}}(),s=function y(b,v,x){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,v);if(w===void 0){var O=Object.getPrototypeOf(b);return O===null?void 0:y(O,v,x)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(x)}},l=i(4),c=i(27),u=d(c);function d(y){return y&&y.__esModule?y:{default:y}}function f(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function p(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function h(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var g=["height","width"],m=function(y){h(b,y);function b(){return f(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"format",value:function(x,w){g.indexOf(x)>-1?w?this.domNode.setAttribute(x,w):this.domNode.removeAttribute(x):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,x,w)}}],[{key:"create",value:function(x){var w=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,x);return w.setAttribute("frameborder","0"),w.setAttribute("allowfullscreen",!0),w.setAttribute("src",this.sanitize(x)),w}},{key:"formats",value:function(x){return g.reduce(function(w,O){return x.hasAttribute(O)&&(w[O]=x.getAttribute(O)),w},{})}},{key:"sanitize",value:function(x){return u.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),b}(l.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var a=function(){function x(w,O){for(var E=0;E<O.length;E++){var C=O[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}return function(w,O,E){return O&&x(w.prototype,O),E&&x(w,E),w}}(),s=function x(w,O,E){w===null&&(w=Function.prototype);var C=Object.getOwnPropertyDescriptor(w,O);if(C===void 0){var S=Object.getPrototypeOf(w);return S===null?void 0:x(S,O,E)}else{if("value"in C)return C.value;var P=C.get;return P===void 0?void 0:P.call(E)}},l=i(35),c=h(l),u=i(5),d=h(u),f=i(9),p=h(f);function h(x){return x&&x.__esModule?x:{default:x}}function g(x,w){if(!(x instanceof w))throw new TypeError("Cannot call a class as a function")}function m(x,w){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:x}function y(x,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);x.prototype=Object.create(w&&w.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(x,w):x.__proto__=w)}var b=function(x){y(w,x);function w(){return g(this,w),m(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return a(w,null,[{key:"create",value:function(E){var C=s(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,E);return typeof E=="string"&&(window.katex.render(E,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",E)),C}},{key:"value",value:function(E){return E.getAttribute("data-value")}}]),w}(c.default);b.blotName="formula",b.className="ql-formula",b.tagName="SPAN";var v=function(x){y(w,x),a(w,null,[{key:"register",value:function(){d.default.register(b,!0)}}]);function w(){g(this,w);var O=m(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return w}(p.default);r.FormulaBlot=b,r.default=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var a=function(){function E(C,S){for(var P=0;P<S.length;P++){var T=S[P];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(C,T.key,T)}}return function(C,S,P){return S&&E(C.prototype,S),P&&E(C,P),C}}(),s=function E(C,S,P){C===null&&(C=Function.prototype);var T=Object.getOwnPropertyDescriptor(C,S);if(T===void 0){var _=Object.getPrototypeOf(C);return _===null?void 0:E(_,S,P)}else{if("value"in T)return T.value;var k=T.get;return k===void 0?void 0:k.call(P)}},l=i(0),c=m(l),u=i(5),d=m(u),f=i(9),p=m(f),h=i(13),g=m(h);function m(E){return E&&E.__esModule?E:{default:E}}function y(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function b(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function v(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var x=function(E){v(C,E);function C(){return y(this,C),b(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return a(C,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var T=this.domNode.textContent;this.cachedText!==T&&((T.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(T),this.domNode.normalize(),this.attach()),this.cachedText=T)}}]),C}(g.default);x.className="ql-syntax";var w=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),O=function(E){v(C,E),a(C,null,[{key:"register",value:function(){d.default.register(w,!0),d.default.register(x,!0)}}]);function C(S,P){y(this,C);var T=b(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,S,P));if(typeof T.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var _=null;return T.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(_),_=setTimeout(function(){T.highlight(),_=null},T.options.interval)}),T.highlight(),T}return a(C,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var T=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(_){_.highlight(P.options.highlight)}),this.quill.update(d.default.sources.SILENT),T!=null&&this.quill.setSelection(T,d.default.sources.SILENT)}}}]),C}(p.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(E){var C=window.hljs.highlightAuto(E);return C.value}}(),interval:1e3},r.CodeBlock=x,r.CodeToken=w,r.default=O},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var a=function C(S,P,T){S===null&&(S=Function.prototype);var _=Object.getOwnPropertyDescriptor(S,P);if(_===void 0){var k=Object.getPrototypeOf(S);return k===null?void 0:C(k,P,T)}else{if("value"in _)return _.value;var $=_.get;return $===void 0?void 0:$.call(T)}},s=function(){function C(S,P){for(var T=0;T<P.length;T++){var _=P[T];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,_.key,_)}}return function(S,P,T){return P&&C(S.prototype,P),T&&C(S,T),S}}(),l=i(3),c=y(l),u=i(8),d=y(u),f=i(43),p=y(f),h=i(15),g=i(41),m=y(g);function y(C){return C&&C.__esModule?C:{default:C}}function b(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}function v(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:C}function x(C,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(C){x(S,C);function S(P,T){b(this,S),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=w);var _=v(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,P,T));return _.quill.container.classList.add("ql-bubble"),_}return s(S,[{key:"extendToolbar",value:function(T){this.tooltip=new E(this.quill,this.options.bounds),this.tooltip.root.appendChild(T.container),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),m.default)}}]),S}(p.default);O.DEFAULTS=(0,c.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){S?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var E=function(C){x(S,C);function S(P,T){b(this,S);var _=v(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,P,T));return _.quill.on(d.default.events.EDITOR_CHANGE,function(k,$,M,j){if(k===d.default.events.SELECTION_CHANGE)if($!=null&&$.length>0&&j===d.default.sources.USER){_.show(),_.root.style.left="0px",_.root.style.width="",_.root.style.width=_.root.offsetWidth+"px";var W=_.quill.getLines($.index,$.length);if(W.length===1)_.position(_.quill.getBounds($));else{var H=W[W.length-1],X=_.quill.getIndex(H),U=Math.min(H.length()-1,$.index+$.length-X),L=_.quill.getBounds(new h.Range(X,U));_.position(L)}}else document.activeElement!==_.textbox&&_.quill.hasFocus()&&_.hide()}),_}return s(S,[{key:"listen",value:function(){var T=this;a(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){T.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!T.root.classList.contains("ql-hidden")){var _=T.quill.getSelection();_!=null&&T.position(T.quill.getBounds(_))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(T){var _=a(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"position",this).call(this,T),k=this.root.querySelector(".ql-tooltip-arrow");if(k.style.marginLeft="",_===0)return _;k.style.marginLeft=-1*_-k.offsetWidth/2+"px"}}]),S}(f.BaseTooltip);E.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=E,r.default=O},function(n,r,i){n.exports=i(63)}]).default})})(DR);var IPe=DR.exports,NPe=kn&&kn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zd=kn&&kn.__assign||function(){return Zd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Zd.apply(this,arguments)},APe=kn&&kn.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],s=0,l=a.length;s<l;s++,i++)r[i]=a[s];return r},Wp=kn&&kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},uo=Wp(V),jPe=Wp(Da),dl=Wp(B_),VT=Wp(IPe),LPe=function(e){NPe(t,e);function t(n){var r=e.call(this,n)||this;r.dirtyProps=["modules","formats","bounds","theme","children"],r.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],r.state={generation:0},r.selection=null,r.onEditorChange=function(a,s,l,c){var u,d,f,p;a==="text-change"?(d=(u=r).onEditorChangeText)===null||d===void 0||d.call(u,r.editor.root.innerHTML,s,c,r.unprivilegedEditor):a==="selection-change"&&((p=(f=r).onEditorChangeSelection)===null||p===void 0||p.call(f,s,c,r.unprivilegedEditor))};var i=r.isControlled()?n.value:n.defaultValue;return r.value=i??"",r}return t.prototype.validateProps=function(n){var r;if(uo.default.Children.count(n.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(uo.default.Children.count(n.children)){var i=uo.default.Children.only(n.children);if(((r=i)===null||r===void 0?void 0:r.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&n.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(n,r){var i=this,a;if(this.validateProps(n),!this.editor||this.state.generation!==r.generation)return!0;if("value"in n){var s=this.getEditorContents(),l=(a=n.value,a??"");this.isEqualValue(l,s)||this.setEditorContents(this.editor,l)}return n.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,n.readOnly),APe(this.cleanProps,this.dirtyProps).some(function(c){return!dl.default(n[c],i.props[c])})},t.prototype.shouldComponentRegenerate=function(n){var r=this;return this.dirtyProps.some(function(i){return!dl.default(n[i],r.props[i])})},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(n,r){var i=this;if(this.editor&&this.shouldComponentRegenerate(n)){var a=this.editor.getContents(),s=this.editor.getSelection();this.regenerationSnapshot={delta:a,selection:s},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==r.generation){var l=this.regenerationSnapshot,a=l.delta,c=l.selection;delete this.regenerationSnapshot,this.instantiateEditor();var u=this.editor;u.setContents(a),BT(function(){return i.setEditorSelection(u,c)})}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(n,r){var i=new VT.default(n,r);return r.tabIndex!=null&&this.setEditorTabIndex(i,r.tabIndex),this.hookEditor(i),i},t.prototype.hookEditor=function(n){this.unprivilegedEditor=this.makeUnprivilegedEditor(n),n.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(n){n.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(n){return n&&n.ops},t.prototype.isEqualValue=function(n,r){return this.isDelta(n)&&this.isDelta(r)?dl.default(n.ops,r.ops):dl.default(n,r)},t.prototype.setEditorContents=function(n,r){var i=this;this.value=r;var a=this.getEditorSelection();typeof r=="string"?n.setContents(n.clipboard.convert(r)):n.setContents(r),BT(function(){return i.setEditorSelection(n,a)})},t.prototype.setEditorSelection=function(n,r){if(this.selection=r,r){var i=n.getLength();r.index=Math.max(0,Math.min(r.index,i-1)),r.length=Math.max(0,Math.min(r.length,i-1-r.index)),n.setSelection(r)}},t.prototype.setEditorTabIndex=function(n,r){var i,a;!((a=(i=n)===null||i===void 0?void 0:i.scroll)===null||a===void 0)&&a.domNode&&(n.scroll.domNode.tabIndex=r)},t.prototype.setEditorReadOnly=function(n,r){r?n.disable():n.enable()},t.prototype.makeUnprivilegedEditor=function(n){var r=n;return{getHTML:function(){return r.root.innerHTML},getLength:r.getLength.bind(r),getText:r.getText.bind(r),getContents:r.getContents.bind(r),getSelection:r.getSelection.bind(r),getBounds:r.getBounds.bind(r)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var n=jPe.default.findDOMNode(this.editingArea);if(!n)throw new Error("Cannot find element for editing area");if(n.nodeType===3)throw new Error("Editing area cannot be a text node");return n},t.prototype.renderEditingArea=function(){var n=this,r=this.props,i=r.children,a=r.preserveWhitespace,s=this.state.generation,l={key:s,ref:function(c){n.editingArea=c}};return uo.default.Children.count(i)?uo.default.cloneElement(uo.default.Children.only(i),l):a?uo.default.createElement("pre",Zd({},l)):uo.default.createElement("div",Zd({},l))},t.prototype.render=function(){var n;return uo.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(n=this.props.className,n??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(n,r,i,a){var s,l;if(this.editor){var c=this.isDelta(this.value)?a.getContents():a.getHTML();c!==this.getEditorContents()&&(this.lastDeltaChangeSet=r,this.value=c,(l=(s=this.props).onChange)===null||l===void 0||l.call(s,n,r,i,a))}},t.prototype.onEditorChangeSelection=function(n,r,i){var a,s,l,c,u,d;if(this.editor){var f=this.getEditorSelection(),p=!f&&n,h=f&&!n;dl.default(n,f)||(this.selection=n,(s=(a=this.props).onChangeSelection)===null||s===void 0||s.call(a,n,r,i),p?(c=(l=this.props).onFocus)===null||c===void 0||c.call(l,n,r,i):h&&((d=(u=this.props).onBlur)===null||d===void 0||d.call(u,f,r,i)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=VT.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(uo.default.Component);function BT(e){Promise.resolve().then(e)}var FPe=LPe;const VPe=kt(FPe),BPe=ct(I.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),zPe=ct(I.jsx("path",{d:"M3 18h13v-2H3zm0-5h10v-2H3zm0-7v2h13V6zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5z"}),"MenuOpen"),WPe=({onSchemaChange:e,onUiSchemaChange:t,onDataChange:n,schema:r,uischema:i,data:a={},setHeight:s})=>{var fe,ge,_e,$e;const l=Ga(ae=>ae.formBuilder.schema),c=Ga(ae=>ae.formBuilder.uischema),u=tE(),d=l&&c&&typeof l=="object"&&typeof c=="object",f=d?l:r||l,p=d?c:i||c,h=p;h.elements||(h.elements=[]);const[g,m]=V.useState(a),[y,b]=V.useState({}),[v,x]=V.useState(!1);V.useEffect(()=>{},[g]);const w=V.useRef(null),O=V.useRef(""),E=V.useRef(null),C=V.useRef(!1),[S,P]=V.useState(null),[T,_]=V.useState(!0),[k,$]=V.useState(!1);V.useEffect(()=>{var ae;S&&((ae=f==null?void 0:f.properties)!=null&&ae[S])},[f,S]),V.useEffect(()=>{if(C.current||!a||Object.keys(a).length===0)return;const ae=JSON.stringify(a||{});ae!==O.current&&(m(a||{}),O.current=ae)},[a]),V.useEffect(()=>{var ae,ce;if(S&&((ce=(ae=f==null?void 0:f.properties)==null?void 0:ae[S])==null?void 0:ce.title)==="Content"){const ue=f.properties[S].default;!y[S]&&ue&&b(ye=>({...ye,[S]:ue}))}},[f,S,y]);const[M,j]=V.useState(""),[W,H]=V.useState(!1),[X,U]=V.useState(!1),[L,D]=V.useState([]),[B,z]=V.useState(!1),[F,A]=V.useState({}),[N,q]=V.useState(null),Y=V.useRef(null),G=V.useRef(""),K=V.useRef(""),J=V.useRef([]);V.useEffect(()=>{Y.current=N},[N]),V.useEffect(()=>{var Me;if(!S){_(!0);return}const ae=(Me=f.properties)==null?void 0:Me[S],ce=Array.isArray(ae==null?void 0:ae.enum),ue=!!(ae&&typeof ae=="object"&&ae.items&&Array.isArray(ae.items.enum)),Ce=ae&&typeof ae=="object"&&Array.isArray(ae.enum)&&ae.format!=="radio",ye=!!(ce&&L.length===0||ue&&L.length===0||Ce&&L.length===0);_(ye)},[S,X,B,L,f]),V.useEffect(()=>{var ae,ce;if(S&&((ae=f==null?void 0:f.properties)!=null&&ae[S])){const ue=f.properties[S],Ce=(ue==null?void 0:ue.text)||(ue==null?void 0:ue.title)||"";G.current!==Ce&&(j(Ce),G.current=Ce),H((f.required||[]).includes(S));let ye=[];Array.isArray(ue==null?void 0:ue.enum)?ye=[...ue.enum]:Array.isArray((ce=ue==null?void 0:ue.items)==null?void 0:ce.enum)&&(ye=[...ue.items.enum]),(ye.length!==J.current.length||ye.some((Ze,bt)=>Ze!==J.current[bt]))&&(D(ye),J.current=ye),U(!1),z(!1)}},[S]),V.useEffect(()=>{if(N){const ae=(h.elements||[]).find(ue=>ue.type==="Group"&&ue._key===N),ce=ae?ae.label:F[N]||"";K.current!==ce&&(j(ce),K.current=ce),U(!1)}},[N]);const Z=()=>{N&&(u(yF({groupKey:N,label:M})),A(ae=>({...ae,[N]:M})),U(!1))},[{isOver:ie},de]=TPe({setSelectedField:P,onDropComponent:(ae,ce)=>{if(ae===Hd){const ye=`group_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;u(mh({groupKey:ye,label:"New Group"})),A(Me=>({...Me,[ye]:"New Group"})),q(ye),P(null),setTimeout(()=>{(h.elements||[]).filter(Me=>Me.type==="Group").map(Me=>Me._key)},0);return}if(ae===cc){const ye=`information_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;u(mh({groupKey:ye,label:"Information"})),A(Ze=>({...Ze,[ye]:"Information"})),q(ye),P(null),[{key:"firstName",schema:{type:"string",title:"First Name"}},{key:"lastName",schema:{type:"string",title:"Last Name"}},{key:"dob",schema:{type:"string",title:"DOB",format:"date"}},{key:"gender",schema:{type:"string",title:"Gender",enum:["Male","Female","Other"]}}].forEach(({key:Ze,schema:bt})=>{u(gh({groupKey:ye,fieldKey:Ze+"_"+ye,fieldSchema:bt,uiControl:{type:"Control",scope:`#/properties/${Ze+"_"+ye}`,options:Ze==="dob"?{format:"MM/DD/YYYY"}:void 0}}))}),u(z1({groupKey:ye,elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/firstName_${ye}`},{type:"Control",scope:`#/properties/lastName_${ye}`}]},{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/dob_${ye}`},{type:"Control",scope:`#/properties/gender_${ye}`}]}]}));return}if(ae===Yd){const ye=`address_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;u(mh({groupKey:ye,label:"Address"})),A(Ze=>({...Ze,[ye]:"Address"})),q(ye),P(null),[{key:"line1",schema:{type:"string",title:"Line 1"}},{key:"line2",schema:{type:"string",title:"Line 2"}},{key:"city",schema:{type:"string",title:"City"}},{key:"state",schema:{type:"string",title:"State"}},{key:"zipcode",schema:{type:"string",title:"Zipcode"}}].forEach(({key:Ze,schema:bt})=>{u(gh({groupKey:ye,fieldKey:Ze+"_"+ye,fieldSchema:bt,uiControl:{type:"Control",scope:`#/properties/${Ze+"_"+ye}`}}))}),u(z1({groupKey:ye,elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/line1_${ye}`},{type:"Control",scope:`#/properties/line2_${ye}`}]},{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/city_${ye}`},{type:"Control",scope:`#/properties/state_${ye}`},{type:"Control",scope:`#/properties/zipcode_${ye}`}]}]}));return}if(ae===Gd){const ye=`header_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;u(Ei({fieldKey:ye,fieldSchema:{type:"null",title:"Heading"},uiControl:{type:"Label",text:"Heading",_key:ye}})),P(ye);return}if(ae===Xd){const ye=`horizontal_layout_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;u(Ei({fieldKey:ye,fieldSchema:{type:"object",title:"Horizontal Layout"},uiControl:{type:"HorizontalLayout",elements:[],_key:ye}})),P(ye);return}if(ae===Ua){const ye=`image_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;u(Ei({fieldKey:ye,fieldSchema:id(Ua),uiControl:{type:"Control",scope:`#/properties/${ye}`}})),P(ye);return}if(ae===Ha){const ye=`multiselect_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;u(Ei({fieldKey:ye,fieldSchema:id(Ha),uiControl:{type:"Control",scope:`#/properties/${ye}`}})),P(ye);return}if(ae===Kd){const ye=`content_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;u(Ei({fieldKey:ye,fieldSchema:{type:"string",title:"Content"},uiControl:{type:"Control",scope:`#/properties/${ye}`}})),P(ye);return}const ue=id(ae),Ce={type:"Control",scope:`#/properties/${ce}`,options:ae===ms?{format:"radio"}:ae===gs?{format:"checkbox"}:ae===hs?{format:"MM/DD/YYYY"}:void 0};Y.current?u(gh({groupKey:Y.current,fieldKey:ce,fieldSchema:ue,uiControl:Ce})):u(Ei({fieldKey:ce,fieldSchema:ue,uiControl:Ce}))},shouldHandleDrop:ae=>{var Ce;const ce=ae.getDropResult();if(ce&&ce.handled)return!1;const ue=document.querySelectorAll('[data-horizontal-layout="true"]');for(let ye of ue)if(ye.contains((Ce=ae.getDropResult())==null?void 0:Ce.target))return!1;return!0}});V.useEffect(()=>{de&&w.current&&de(w)},[de,w]);const xe=()=>{var ye,Me;if(!S)return;const ae=(ye=f.properties)==null?void 0:ye[S],ce=(h.elements||[]).find(Ze=>Ze._key===S),ue=(ce==null?void 0:ce.type)==="HorizontalLayout";if(ae&&ae.title==="Heading"){u(ml({fieldKey:S,fieldSchema:{...ae,text:M},required:!1})),u(bF({fieldKey:S,text:M})),U(!1);return}if(ue){u(ml({fieldKey:S,fieldSchema:{...ae,title:M},required:!1})),U(!1);return}let Ce={...ae,title:M};ae&&ae.title==="Content"?Ce={...ae,title:M,default:ae.default||""}:ae&&ae.type==="array"&&ae.items&&(Array.isArray(ae.items.enum)||L.length>0)?Ce={...ae,title:M,items:{...ae.items||{type:"string"},enum:[...L]}}:Array.isArray(ae==null?void 0:ae.enum)||(ae==null?void 0:ae.format)==="radio"||(ae==null?void 0:ae.format)==="dropdown"||L.length>0?Ce={...ae,title:M,enum:[...L]}:(Array.isArray((Me=ae==null?void 0:ae.items)==null?void 0:Me.enum)||(ae==null?void 0:ae.format)==="checkbox")&&(Ce={...ae,title:M,items:{...(ae==null?void 0:ae.items)||{type:"string"},enum:[...L]}}),u(ml({fieldKey:S,fieldSchema:Ce,required:W})),U(!1),z(!1)},he=V.useCallback(ae=>{P(ae)},[]),pe=V.useCallback(ae=>{q(ae)},[]),Q=V.useCallback(ae=>{j(ae)},[]),oe=V.useCallback(ae=>{U(ae)},[]),te=ae=>{u(wF({fieldKey:ae})),P(ce=>ce===ae?null:ce)},le=V.useMemo(()=>MPe({selectedField:S,selectedGroupKey:N,setSelectedField:he,setSelectedGroupKey:pe,setFieldLabel:Q,setFieldTouched:oe,onDeleteField:te,schema:f}),[S,N,he,pe,Q,oe,te,f]);V.useEffect(()=>{e==null||e(f)},[f]),V.useEffect(()=>{t==null||t(p)},[p]),V.useEffect(()=>{r&&i&&r.properties&&Object.keys(r.properties).length>0&&(u(hF()),u(mF(r)),u(gF(i)),m(a||{}))},[r,i,u,a]),V.useEffect(()=>{var ae,ce,ue,Ce;if(S&&((ce=(ae=f==null?void 0:f.properties)==null?void 0:ae[S])==null?void 0:ce.title)==="Content"){const ye=g[S]||((Ce=(ue=f==null?void 0:f.properties)==null?void 0:ue[S])==null?void 0:Ce.default)||"";b(Me=>({...Me,[S]:ye}))}},[S,f,g]),V.useEffect(()=>{var ae,ce;if(S&&((ce=(ae=f==null?void 0:f.properties)==null?void 0:ae[S])==null?void 0:ce.title)==="Content"){const ue=g[S];ue&&b(Ce=>Ce[S]!==ue?{...Ce,[S]:ue}:Ce)}},[g,S,f]);const re={toolbar:[["bold","italic","underline","strike"],[{size:[]}],[{align:["right","center","justify"]}],[{list:"ordered"},{list:"bullet"},{list:"check"}],[{color:[]},{background:[]}]]},Te=["header","bold","italic","underline","strike","blockquote","list","bullet","link","color","image","background","align","size","font"],Se=[{type:Gd,label:"Heading"},{type:Bp,label:"Text Box"},{type:Kd,label:"Content"},{type:hs,label:"Date Picker"},{type:ms,label:"Radio Button"},{type:gs,label:"Checkboxes"},{type:zp,label:"Dropdown"},{type:Ha,label:"Multi Select"},{type:Ua,label:"Image Upload"},{type:Hd,label:"Group"},{type:Xd,label:"Horizontal Layout"},{type:cc,label:"Personal Info"},{type:Yd,label:"Address"}];return V.useEffect(()=>()=>{E.current&&clearTimeout(E.current),C.current=!1},[]),V.useEffect(()=>()=>{C.current=!1},[S]),I.jsxs(at,{display:"flex",height:"100%","data-id":"form-builder-container",children:[I.jsxs(at,{width:k?64:200,borderRight:"1px solid #ddd",display:"flex",flexDirection:"column","data-id":"components-container",children:[I.jsxs(at,{pr:2,pl:"1px",display:"flex",alignItems:"center",justifyContent:"space-between",sx:{paddingY:1},children:[!k&&I.jsx(et,{fontSize:"14px",fontWeight:"600",children:"Components"}),I.jsx(Gt,{size:"small",onClick:()=>$(!k),sx:{marginLeft:k?"auto":0},children:k?I.jsx(zPe,{}):I.jsx(BPe,{})})]}),I.jsx(at,{overflow:"auto",flex:1,pr:1,children:Se.map(({type:ae,label:ce})=>I.jsx(OPe,{type:ae,label:ce,showLabel:!k,tooltip:k?ce:""},ae))})]}),I.jsxs(at,{"data-id":"form-container",ref:w,sx:{flex:1,minWidth:0,p:1,display:"flex",flexDirection:"column",rowGap:4,bgcolor:ie?"#e3f2fd":"#fafafa",border:ie?"2px dashed #1976d2":"2px dashed #ccc",borderRadius:2,m:2,position:"relative",height:s?`calc(${s} - 10vh)`:"90vh",overflowY:"scroll"},onClick:ae=>{ae.target===ae.currentTarget&&q(null)},children:[(!h.elements||h.elements.length===0)&&I.jsx(at,{"data-id":"drag-and-drop-message",sx:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",position:"absolute",top:0,left:0,zIndex:1},children:I.jsx(et,{variant:"h6",color:ie?"primary":"textSecondary",sx:{opacity:.7},children:"Drag and Drop here"})}),I.jsx(at,{sx:{width:"100%"},children:I.jsx(xD,{schema:f,uischema:p,data:g,renderers:le,cells:uR,onChange:({data:ae})=>{const ce=ae||{},ue=JSON.stringify(g),Ce=JSON.stringify(ce);ue!==Ce&&(m(ce),n==null||n(ce))}},`jsonforms-${JSON.stringify(f)}-${JSON.stringify(p)}`)})]}),I.jsxs(at,{width:300,borderLeft:"1px solid #ddd",p:2,pt:0,display:"flex",flexDirection:"column",height:s?`calc(${s} - 10vh)`:"90vh",sx:{overflowY:"scroll"},"data-id":"field-properties-container",children:[I.jsx(et,{fontSize:"16px",fontFamily:"Figtree",sx:{mb:2,fontWeight:600},children:"Field Properties"}),N?I.jsxs(I.Fragment,{children:[I.jsxs(et,{fontSize:"14px",sx:{mb:2},children:["Group: ",N]}),I.jsx(Li,{fullWidth:!0,label:"Group Label",value:M,onChange:ae=>{j(ae.target.value),U(!0)},sx:{mb:2}}),I.jsx("button",{"data-id":"save-group-label-button",onClick:Z,disabled:!X,style:{marginTop:8,padding:"8px 16px",background:"#1976d2",color:"#fff",border:"none",borderRadius:4,cursor:X?"pointer":"not-allowed",fontSize:"14px"},children:I.jsx(et,{fontSize:"14px",children:"Save"})})]}):S?I.jsx(I.Fragment,{children:S&&((ge=(fe=f==null?void 0:f.properties)==null?void 0:fe[S])==null?void 0:ge.title)==="Content"?I.jsxs(I.Fragment,{children:[I.jsxs(et,{fontSize:"14px",children:["Content"," ",y[S]&&y[S]!==(g[S]||(($e=(_e=f==null?void 0:f.properties)==null?void 0:_e[S])==null?void 0:$e.default))?"(Edited)":""," ",v&&"(Saving...)"]}),I.jsx(VPe,{theme:"snow",modules:re,formats:Te,value:(()=>{var ye,Me;const ae=y[S],ce=g[S],ue=(Me=(ye=f==null?void 0:f.properties)==null?void 0:ye[S])==null?void 0:Me.default;return ae||ce||ue||""})(),onChange:ae=>{const ce={...y,[S]:ae};b(ce),U(!0)},style:{minHeight:100,marginBottom:16,background:"#fff"}}),I.jsx(at,{sx:{mt:6,p:2},children:I.jsx("button",{"data-id":"save-content-button",disabled:!1,onClick:()=>{try{if(!(f!=null&&f.properties))return;const ce=y[S]||g[S]||"",ue={...g,[S]:ce};m(ue),n==null||n(ue),u(ml({fieldKey:S,fieldSchema:{...f.properties[S],title:"Content",default:ce},required:!1})),U(!1),x(!0),setTimeout(()=>{x(!1)},500)}catch(ae){console.error("Error in save button click handler:",ae)}},style:{width:"100%",padding:"12px 16px",background:"#1976d2",color:"#fff",border:"none",borderRadius:4,fontSize:"14px",fontWeight:"500",cursor:"pointer"},children:I.jsx(et,{fontSize:"14px",children:v?"Saving...":"Save Content"})})})]}):I.jsxs(I.Fragment,{children:[I.jsx(Li,{"data-id":"label-input",fullWidth:!0,label:"Label",value:M,onChange:ae=>{j(ae.target.value),U(!0)},sx:{mb:2}}),(()=>{const ae=(h.elements||[]).find(ue=>ue._key===S);return(ae==null?void 0:ae.type)==="HorizontalLayout"?null:I.jsxs(at,{display:"flex",alignItems:"center",mb:2,children:[I.jsx("input",{"data-id":"required-checkbox",type:"checkbox",checked:W,onChange:ue=>{H(ue.target.checked),U(!0)},id:"required-checkbox",style:{marginRight:8}}),I.jsx("label",{htmlFor:"required-checkbox",children:I.jsx(et,{fontSize:"14px",children:"Required"})})]})})(),S&&Array.isArray(L)&&L.length>0&&I.jsxs(I.Fragment,{children:[I.jsxs(at,{display:"flex",justifyContent:"space-between",mb:2,children:[I.jsx(et,{fontSize:"14px",sx:{mt:2},children:"Options"}),I.jsx("button",{"data-id":"add-option-button",id:"add-option-button",onClick:()=>D([...L,`Select ${L.length+1}`]),style:{background:"rgb(25, 118, 210)",color:"#fff",border:"none",borderRadius:4,padding:"6px 12px",marginTop:4,cursor:"pointer",fontSize:"14px"},children:I.jsx(et,{fontSize:"14px",children:"Add Option"})})]}),I.jsx(at,{children:L.map((ae,ce)=>I.jsxs(at,{display:"flex",alignItems:"center",mb:1,children:[I.jsx(Li,{"data-id":"option-input",value:ae,onChange:ue=>{const Ce=[...L];Ce[ce]=ue.target.value,D(Ce),z(!0)},sx:{flex:1,mr:1}}),I.jsx("button",{"data-id":"remove-option-button",id:"remove-option-button",color:"error",onClick:()=>{const ue=L.filter((Ce,ye)=>ye!==ce);D(ue),z(!0)},style:{background:"rgb(229, 115, 115)",color:"#fff",border:"none",borderRadius:4,padding:"4px 8px",marginTop:4,cursor:"pointer",height:"40px",fontSize:"14px"},children:I.jsx(et,{fontSize:"14px",children:"Remove"})})]},ce))})]}),I.jsx("button",{"data-id":"save-field-props-button",onClick:xe,style:{marginTop:8,padding:"8px 16px",background:"#1976d2",color:"#fff",border:"none",borderRadius:4,fontSize:"14px"},children:I.jsx(et,{fontSize:"14px",children:"Save"})})]})}):I.jsx(et,{fontSize:"14px",children:"Select a field or group to edit"})]})]})},qPe=({onSchemaChange:e,onUiSchemaChange:t,onDataChange:n,onSave:r,schema:i,uischema:a,data:s={},enableSubmit:l,setHeight:c})=>{const u=Ga(b=>b.formBuilder.schema),d=Ga(b=>b.formBuilder.uischema),[f,p]=V.useState(s),h=V.useRef(""),g=V.useRef("");V.useEffect(()=>{const b=JSON.stringify(s||{});b!==h.current&&(p(s),h.current=b)},[s]);const m=V.useCallback(b=>{const v=JSON.stringify(b||{});!b||Object.keys(b).length===0||(v!==g.current?(p(b),n==null||n(b),g.current=v):console.log("Layout - data unchanged, skipping update"))},[n,f]),y=V.useCallback((b,v,x)=>{r==null||r(b,v,x)},[r]);return I.jsx(at,{children:I.jsxs(at,{display:"flex",flexDirection:"row",border:"1px dashed grey",borderRadius:2,p:3,height:c?`calc(${c} - 10vh)`:"90vh",sx:{overflowY:"scroll"},bgcolor:"#fafafa",id:"layout-form-builder",children:[I.jsx(at,{flex:1,minWidth:0,children:I.jsx(WPe,{onSchemaChange:e,onUiSchemaChange:t,onDataChange:m,onSave:r,schema:i,uischema:a,data:f,setHeight:c?`calc(${c} - 10vh)`:"90vh"})}),I.jsx(ns,{orientation:"vertical",flexItem:!0,sx:{mx:2}}),I.jsx(at,{flex:1,minWidth:0,children:I.jsx(sPe,{formData:f,onDataChange:m,onSave:y,schema:u,uischema:d,enableSubmit:l,setHeight:c})})]})})},UPe=bf({typography:{fontFamily:"Figtree"},components:{MuiFormLabel:{styleOverrides:{root:{color:"#000",fontWeight:500,"&.Mui-focused":{color:"#000"},"&.Mui-error":{color:"#000"}}}},MuiGrid:{styleOverrides:{root:{gap:16}}}}}),HPe=e=>I.jsx(VA,{theme:UPe,children:I.jsx(at,{children:I.jsx(hL,{store:xE,children:I.jsx(c2,{backend:J2,children:I.jsx(qPe,{...e})})})})});exports.FormBuilder=HPe;exports.FormRenderer=_R;exports.addField=Ei;exports.formBuilderReducer=wE;exports.updateField=ml;