slick-table 1.1.69 → 1.1.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Fe=require("react"),Ei=require("react-dom");function eg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const T=eg(Fe),u0=eg(Ei);function h0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f0(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var ja={exports:{}},ri={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ae=require("react"),Ei=require("react-dom");function eg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const T=eg(Ae),u0=eg(Ei);function h0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f0(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var ja={exports:{}},ri={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Of;function p0(){if(Of)return ri;Of=1;var e=Fe,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,d,u){var f,p={},y=null,w=null;u!==void 0&&(y=""+u),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(w=d.ref);for(f in d)o.call(d,f)&&!i.hasOwnProperty(f)&&(p[f]=d[f]);if(l&&l.defaultProps)for(f in d=l.defaultProps,d)p[f]===void 0&&(p[f]=d[f]);return{$$typeof:t,type:l,key:y,ref:w,props:p,_owner:r.current}}return ri.Fragment=n,ri.jsx=a,ri.jsxs=a,ri}var si={};/**
9
+ */var Of;function p0(){if(Of)return ri;Of=1;var e=Ae,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,d,u){var f,p={},y=null,w=null;u!==void 0&&(y=""+u),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(w=d.ref);for(f in d)o.call(d,f)&&!i.hasOwnProperty(f)&&(p[f]=d[f]);if(l&&l.defaultProps)for(f in d=l.defaultProps,d)p[f]===void 0&&(p[f]=d[f]);return{$$typeof:t,type:l,key:y,ref:w,props:p,_owner:r.current}}return ri.Fragment=n,ri.jsx=a,ri.jsxs=a,ri}var si={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,20 +14,20 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Mf;function m0(){return Mf||(Mf=1,process.env.NODE_ENV!=="production"&&function(){var e=Fe,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b=Symbol.iterator,m="@@iterator";function v(U){if(U===null||typeof U!="object")return null;var me=b&&U[b]||U[m];return typeof me=="function"?me:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(U){{for(var me=arguments.length,Ce=new Array(me>1?me-1:0),Ae=1;Ae<me;Ae++)Ce[Ae-1]=arguments[Ae];x("error",U,Ce)}}function x(U,me,Ce){{var Ae=P.ReactDebugCurrentFrame,Ge=Ae.getStackAddendum();Ge!==""&&(me+="%s",Ce=Ce.concat([Ge]));var st=Ce.map(function(et){return String(et)});st.unshift("Warning: "+me),Function.prototype.apply.call(console[U],console,st)}}var S=!1,C=!1,O=!1,A=!1,F=!1,B;B=Symbol.for("react.module.reference");function R(U){return!!(typeof U=="string"||typeof U=="function"||U===o||U===i||F||U===r||U===u||U===f||A||U===w||S||C||O||typeof U=="object"&&U!==null&&(U.$$typeof===y||U.$$typeof===p||U.$$typeof===a||U.$$typeof===l||U.$$typeof===d||U.$$typeof===B||U.getModuleId!==void 0))}function $(U,me,Ce){var Ae=U.displayName;if(Ae)return Ae;var Ge=me.displayName||me.name||"";return Ge!==""?Ce+"("+Ge+")":Ce}function K(U){return U.displayName||"Context"}function G(U){if(U==null)return null;if(typeof U.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof U=="function")return U.displayName||U.name||null;if(typeof U=="string")return U;switch(U){case o:return"Fragment";case n:return"Portal";case i:return"Profiler";case r:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof U=="object")switch(U.$$typeof){case l:var me=U;return K(me)+".Consumer";case a:var Ce=U;return K(Ce._context)+".Provider";case d:return $(U,U.render,"ForwardRef");case p:var Ae=U.displayName||null;return Ae!==null?Ae:G(U.type)||"Memo";case y:{var Ge=U,st=Ge._payload,et=Ge._init;try{return G(et(st))}catch{return null}}}return null}var q=Object.assign,Y=0,z,ae,N,M,L,W,ne;function oe(){}oe.__reactDisabledLog=!0;function se(){{if(Y===0){z=console.log,ae=console.info,N=console.warn,M=console.error,L=console.group,W=console.groupCollapsed,ne=console.groupEnd;var U={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:U,log:U,warn:U,error:U,group:U,groupCollapsed:U,groupEnd:U})}Y++}}function j(){{if(Y--,Y===0){var U={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},U,{value:z}),info:q({},U,{value:ae}),warn:q({},U,{value:N}),error:q({},U,{value:M}),group:q({},U,{value:L}),groupCollapsed:q({},U,{value:W}),groupEnd:q({},U,{value:ne})})}Y<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=P.ReactCurrentDispatcher,J;function te(U,me,Ce){{if(J===void 0)try{throw Error()}catch(Ge){var Ae=Ge.stack.trim().match(/\n( *(at )?)/);J=Ae&&Ae[1]||""}return`
18
- `+J+U}}var ce=!1,le;{var he=typeof WeakMap=="function"?WeakMap:Map;le=new he}function H(U,me){if(!U||ce)return"";{var Ce=le.get(U);if(Ce!==void 0)return Ce}var Ae;ce=!0;var Ge=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var st;st=ee.current,ee.current=null,se();try{if(me){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(vn){Ae=vn}Reflect.construct(U,[],et)}else{try{et.call()}catch(vn){Ae=vn}U.call(et.prototype)}}else{try{throw Error()}catch(vn){Ae=vn}U()}}catch(vn){if(vn&&Ae&&typeof vn.stack=="string"){for(var Ze=vn.stack.split(`
19
- `),Jt=Ae.stack.split(`
17
+ */var Mf;function m0(){return Mf||(Mf=1,process.env.NODE_ENV!=="production"&&function(){var e=Ae,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b=Symbol.iterator,m="@@iterator";function v(U){if(U===null||typeof U!="object")return null;var me=b&&U[b]||U[m];return typeof me=="function"?me:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(U){{for(var me=arguments.length,Ce=new Array(me>1?me-1:0),Fe=1;Fe<me;Fe++)Ce[Fe-1]=arguments[Fe];x("error",U,Ce)}}function x(U,me,Ce){{var Fe=P.ReactDebugCurrentFrame,Ge=Fe.getStackAddendum();Ge!==""&&(me+="%s",Ce=Ce.concat([Ge]));var st=Ce.map(function(et){return String(et)});st.unshift("Warning: "+me),Function.prototype.apply.call(console[U],console,st)}}var S=!1,C=!1,O=!1,A=!1,F=!1,B;B=Symbol.for("react.module.reference");function R(U){return!!(typeof U=="string"||typeof U=="function"||U===o||U===i||F||U===r||U===u||U===f||A||U===w||S||C||O||typeof U=="object"&&U!==null&&(U.$$typeof===y||U.$$typeof===p||U.$$typeof===a||U.$$typeof===l||U.$$typeof===d||U.$$typeof===B||U.getModuleId!==void 0))}function $(U,me,Ce){var Fe=U.displayName;if(Fe)return Fe;var Ge=me.displayName||me.name||"";return Ge!==""?Ce+"("+Ge+")":Ce}function K(U){return U.displayName||"Context"}function G(U){if(U==null)return null;if(typeof U.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof U=="function")return U.displayName||U.name||null;if(typeof U=="string")return U;switch(U){case o:return"Fragment";case n:return"Portal";case i:return"Profiler";case r:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof U=="object")switch(U.$$typeof){case l:var me=U;return K(me)+".Consumer";case a:var Ce=U;return K(Ce._context)+".Provider";case d:return $(U,U.render,"ForwardRef");case p:var Fe=U.displayName||null;return Fe!==null?Fe:G(U.type)||"Memo";case y:{var Ge=U,st=Ge._payload,et=Ge._init;try{return G(et(st))}catch{return null}}}return null}var q=Object.assign,Y=0,z,ae,N,M,L,W,ne;function oe(){}oe.__reactDisabledLog=!0;function se(){{if(Y===0){z=console.log,ae=console.info,N=console.warn,M=console.error,L=console.group,W=console.groupCollapsed,ne=console.groupEnd;var U={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:U,log:U,warn:U,error:U,group:U,groupCollapsed:U,groupEnd:U})}Y++}}function j(){{if(Y--,Y===0){var U={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},U,{value:z}),info:q({},U,{value:ae}),warn:q({},U,{value:N}),error:q({},U,{value:M}),group:q({},U,{value:L}),groupCollapsed:q({},U,{value:W}),groupEnd:q({},U,{value:ne})})}Y<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=P.ReactCurrentDispatcher,J;function te(U,me,Ce){{if(J===void 0)try{throw Error()}catch(Ge){var Fe=Ge.stack.trim().match(/\n( *(at )?)/);J=Fe&&Fe[1]||""}return`
18
+ `+J+U}}var ce=!1,le;{var he=typeof WeakMap=="function"?WeakMap:Map;le=new he}function H(U,me){if(!U||ce)return"";{var Ce=le.get(U);if(Ce!==void 0)return Ce}var Fe;ce=!0;var Ge=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var st;st=ee.current,ee.current=null,se();try{if(me){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(vn){Fe=vn}Reflect.construct(U,[],et)}else{try{et.call()}catch(vn){Fe=vn}U.call(et.prototype)}}else{try{throw Error()}catch(vn){Fe=vn}U()}}catch(vn){if(vn&&Fe&&typeof vn.stack=="string"){for(var Ze=vn.stack.split(`
19
+ `),Jt=Fe.stack.split(`
20
20
  `),$t=Ze.length-1,qt=Jt.length-1;$t>=1&&qt>=0&&Ze[$t]!==Jt[qt];)qt--;for(;$t>=1&&qt>=0;$t--,qt--)if(Ze[$t]!==Jt[qt]){if($t!==1||qt!==1)do if($t--,qt--,qt<0||Ze[$t]!==Jt[qt]){var sn=`
21
- `+Ze[$t].replace(" at new "," at ");return U.displayName&&sn.includes("<anonymous>")&&(sn=sn.replace("<anonymous>",U.displayName)),typeof U=="function"&&le.set(U,sn),sn}while($t>=1&&qt>=0);break}}}finally{ce=!1,ee.current=st,j(),Error.prepareStackTrace=Ge}var Yn=U?U.displayName||U.name:"",vo=Yn?te(Yn):"";return typeof U=="function"&&le.set(U,vo),vo}function re(U,me,Ce){return H(U,!1)}function Z(U){var me=U.prototype;return!!(me&&me.isReactComponent)}function fe(U,me,Ce){if(U==null)return"";if(typeof U=="function")return H(U,Z(U));if(typeof U=="string")return te(U);switch(U){case u:return te("Suspense");case f:return te("SuspenseList")}if(typeof U=="object")switch(U.$$typeof){case d:return re(U.render);case p:return fe(U.type,me,Ce);case y:{var Ae=U,Ge=Ae._payload,st=Ae._init;try{return fe(st(Ge),me,Ce)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,be={},ge=P.ReactDebugCurrentFrame;function Re(U){if(U){var me=U._owner,Ce=fe(U.type,U._source,me?me.type:null);ge.setExtraStackFrame(Ce)}else ge.setExtraStackFrame(null)}function Ve(U,me,Ce,Ae,Ge){{var st=Function.call.bind(pe);for(var et in U)if(st(U,et)){var Ze=void 0;try{if(typeof U[et]!="function"){var Jt=Error((Ae||"React class")+": "+Ce+" type `"+et+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof U[et]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Jt.name="Invariant Violation",Jt}Ze=U[et](me,et,Ae,Ce,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($t){Ze=$t}Ze&&!(Ze instanceof Error)&&(Re(Ge),D("%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).",Ae||"React class",Ce,et,typeof Ze),Re(null)),Ze instanceof Error&&!(Ze.message in be)&&(be[Ze.message]=!0,Re(Ge),D("Failed %s type: %s",Ce,Ze.message),Re(null))}}}var Ne=Array.isArray;function Je(U){return Ne(U)}function Ee(U){{var me=typeof Symbol=="function"&&Symbol.toStringTag,Ce=me&&U[Symbol.toStringTag]||U.constructor.name||"Object";return Ce}}function ut(U){try{return Yt(U),!1}catch{return!0}}function Yt(U){return""+U}function rt(U){if(ut(U))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee(U)),Yt(U)}var Ot=P.ReactCurrentOwner,Ut={key:!0,ref:!0,__self:!0,__source:!0},Lt,Ue;function Be(U){if(pe.call(U,"ref")){var me=Object.getOwnPropertyDescriptor(U,"ref").get;if(me&&me.isReactWarning)return!1}return U.ref!==void 0}function rn(U){if(pe.call(U,"key")){var me=Object.getOwnPropertyDescriptor(U,"key").get;if(me&&me.isReactWarning)return!1}return U.key!==void 0}function un(U,me){typeof U.ref=="string"&&Ot.current}function Oe(U,me){{var Ce=function(){Lt||(Lt=!0,D("%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)",me))};Ce.isReactWarning=!0,Object.defineProperty(U,"key",{get:Ce,configurable:!0})}}function We(U,me){{var Ce=function(){Ue||(Ue=!0,D("%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)",me))};Ce.isReactWarning=!0,Object.defineProperty(U,"ref",{get:Ce,configurable:!0})}}var ht=function(U,me,Ce,Ae,Ge,st,et){var Ze={$$typeof:t,type:U,key:me,ref:Ce,props:et,_owner:st};return Ze._store={},Object.defineProperty(Ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ae}),Object.defineProperty(Ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ge}),Object.freeze&&(Object.freeze(Ze.props),Object.freeze(Ze)),Ze};function nn(U,me,Ce,Ae,Ge){{var st,et={},Ze=null,Jt=null;Ce!==void 0&&(rt(Ce),Ze=""+Ce),rn(me)&&(rt(me.key),Ze=""+me.key),Be(me)&&(Jt=me.ref,un(me,Ge));for(st in me)pe.call(me,st)&&!Ut.hasOwnProperty(st)&&(et[st]=me[st]);if(U&&U.defaultProps){var $t=U.defaultProps;for(st in $t)et[st]===void 0&&(et[st]=$t[st])}if(Ze||Jt){var qt=typeof U=="function"?U.displayName||U.name||"Unknown":U;Ze&&Oe(et,qt),Jt&&We(et,qt)}return ht(U,Ze,Jt,Ge,Ae,Ot.current,et)}}var Fn=P.ReactCurrentOwner,at=P.ReactDebugCurrentFrame;function Zt(U){if(U){var me=U._owner,Ce=fe(U.type,U._source,me?me.type:null);at.setExtraStackFrame(Ce)}else at.setExtraStackFrame(null)}var mn;mn=!1;function Qt(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function ur(){{if(Fn.current){var U=G(Fn.current.type);if(U)return`
21
+ `+Ze[$t].replace(" at new "," at ");return U.displayName&&sn.includes("<anonymous>")&&(sn=sn.replace("<anonymous>",U.displayName)),typeof U=="function"&&le.set(U,sn),sn}while($t>=1&&qt>=0);break}}}finally{ce=!1,ee.current=st,j(),Error.prepareStackTrace=Ge}var Yn=U?U.displayName||U.name:"",bo=Yn?te(Yn):"";return typeof U=="function"&&le.set(U,bo),bo}function re(U,me,Ce){return H(U,!1)}function Z(U){var me=U.prototype;return!!(me&&me.isReactComponent)}function fe(U,me,Ce){if(U==null)return"";if(typeof U=="function")return H(U,Z(U));if(typeof U=="string")return te(U);switch(U){case u:return te("Suspense");case f:return te("SuspenseList")}if(typeof U=="object")switch(U.$$typeof){case d:return re(U.render);case p:return fe(U.type,me,Ce);case y:{var Fe=U,Ge=Fe._payload,st=Fe._init;try{return fe(st(Ge),me,Ce)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,be={},ge=P.ReactDebugCurrentFrame;function Re(U){if(U){var me=U._owner,Ce=fe(U.type,U._source,me?me.type:null);ge.setExtraStackFrame(Ce)}else ge.setExtraStackFrame(null)}function Ve(U,me,Ce,Fe,Ge){{var st=Function.call.bind(pe);for(var et in U)if(st(U,et)){var Ze=void 0;try{if(typeof U[et]!="function"){var Jt=Error((Fe||"React class")+": "+Ce+" type `"+et+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof U[et]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Jt.name="Invariant Violation",Jt}Ze=U[et](me,et,Fe,Ce,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($t){Ze=$t}Ze&&!(Ze instanceof Error)&&(Re(Ge),D("%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).",Fe||"React class",Ce,et,typeof Ze),Re(null)),Ze instanceof Error&&!(Ze.message in be)&&(be[Ze.message]=!0,Re(Ge),D("Failed %s type: %s",Ce,Ze.message),Re(null))}}}var Ne=Array.isArray;function Je(U){return Ne(U)}function Ee(U){{var me=typeof Symbol=="function"&&Symbol.toStringTag,Ce=me&&U[Symbol.toStringTag]||U.constructor.name||"Object";return Ce}}function ut(U){try{return Yt(U),!1}catch{return!0}}function Yt(U){return""+U}function rt(U){if(ut(U))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee(U)),Yt(U)}var Ot=P.ReactCurrentOwner,Ut={key:!0,ref:!0,__self:!0,__source:!0},Lt,Ue;function Be(U){if(pe.call(U,"ref")){var me=Object.getOwnPropertyDescriptor(U,"ref").get;if(me&&me.isReactWarning)return!1}return U.ref!==void 0}function rn(U){if(pe.call(U,"key")){var me=Object.getOwnPropertyDescriptor(U,"key").get;if(me&&me.isReactWarning)return!1}return U.key!==void 0}function un(U,me){typeof U.ref=="string"&&Ot.current}function Oe(U,me){{var Ce=function(){Lt||(Lt=!0,D("%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)",me))};Ce.isReactWarning=!0,Object.defineProperty(U,"key",{get:Ce,configurable:!0})}}function We(U,me){{var Ce=function(){Ue||(Ue=!0,D("%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)",me))};Ce.isReactWarning=!0,Object.defineProperty(U,"ref",{get:Ce,configurable:!0})}}var ht=function(U,me,Ce,Fe,Ge,st,et){var Ze={$$typeof:t,type:U,key:me,ref:Ce,props:et,_owner:st};return Ze._store={},Object.defineProperty(Ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Fe}),Object.defineProperty(Ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ge}),Object.freeze&&(Object.freeze(Ze.props),Object.freeze(Ze)),Ze};function nn(U,me,Ce,Fe,Ge){{var st,et={},Ze=null,Jt=null;Ce!==void 0&&(rt(Ce),Ze=""+Ce),rn(me)&&(rt(me.key),Ze=""+me.key),Be(me)&&(Jt=me.ref,un(me,Ge));for(st in me)pe.call(me,st)&&!Ut.hasOwnProperty(st)&&(et[st]=me[st]);if(U&&U.defaultProps){var $t=U.defaultProps;for(st in $t)et[st]===void 0&&(et[st]=$t[st])}if(Ze||Jt){var qt=typeof U=="function"?U.displayName||U.name||"Unknown":U;Ze&&Oe(et,qt),Jt&&We(et,qt)}return ht(U,Ze,Jt,Ge,Fe,Ot.current,et)}}var Fn=P.ReactCurrentOwner,at=P.ReactDebugCurrentFrame;function Zt(U){if(U){var me=U._owner,Ce=fe(U.type,U._source,me?me.type:null);at.setExtraStackFrame(Ce)}else at.setExtraStackFrame(null)}var mn;mn=!1;function Qt(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function ur(){{if(Fn.current){var U=G(Fn.current.type);if(U)return`
22
22
 
23
23
  Check the render method of \``+U+"`."}return""}}function He(U){return""}var _e={};function Bc(U){{var me=ur();if(!me){var Ce=typeof U=="string"?U:U.displayName||U.name;Ce&&(me=`
24
24
 
25
- Check the top-level render call using <`+Ce+">.")}return me}}function ka(U,me){{if(!U._store||U._store.validated||U.key!=null)return;U._store.validated=!0;var Ce=Bc(me);if(_e[Ce])return;_e[Ce]=!0;var Ae="";U&&U._owner&&U._owner!==Fn.current&&(Ae=" It was passed a child from "+G(U._owner.type)+"."),Zt(U),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ce,Ae),Zt(null)}}function zn(U,me){{if(typeof U!="object")return;if(Je(U))for(var Ce=0;Ce<U.length;Ce++){var Ae=U[Ce];Qt(Ae)&&ka(Ae,me)}else if(Qt(U))U._store&&(U._store.validated=!0);else if(U){var Ge=v(U);if(typeof Ge=="function"&&Ge!==U.entries)for(var st=Ge.call(U),et;!(et=st.next()).done;)Qt(et.value)&&ka(et.value,me)}}}function En(U){{var me=U.type;if(me==null||typeof me=="string")return;var Ce;if(typeof me=="function")Ce=me.propTypes;else if(typeof me=="object"&&(me.$$typeof===d||me.$$typeof===p))Ce=me.propTypes;else return;if(Ce){var Ae=G(me);Ve(Ce,U.props,"prop",Ae,U)}else if(me.PropTypes!==void 0&&!mn){mn=!0;var Ge=G(me);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ge||"Unknown")}typeof me.getDefaultProps=="function"&&!me.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xe(U){{for(var me=Object.keys(U.props),Ce=0;Ce<me.length;Ce++){var Ae=me[Ce];if(Ae!=="children"&&Ae!=="key"){Zt(U),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ae),Zt(null);break}}U.ref!==null&&(Zt(U),D("Invalid attribute `ref` supplied to `React.Fragment`."),Zt(null))}}var es={};function yt(U,me,Ce,Ae,Ge,st){{var et=R(U);if(!et){var Ze="";(U===void 0||typeof U=="object"&&U!==null&&Object.keys(U).length===0)&&(Ze+=" 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 Jt=He();Jt?Ze+=Jt:Ze+=ur();var $t;U===null?$t="null":Je(U)?$t="array":U!==void 0&&U.$$typeof===t?($t="<"+(G(U.type)||"Unknown")+" />",Ze=" Did you accidentally export a JSX literal instead of a component?"):$t=typeof U,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$t,Ze)}var qt=nn(U,me,Ce,Ge,st);if(qt==null)return qt;if(et){var sn=me.children;if(sn!==void 0)if(Ae)if(Je(sn)){for(var Yn=0;Yn<sn.length;Yn++)zn(sn[Yn],U);Object.freeze&&Object.freeze(sn)}else D("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 zn(sn,U)}if(pe.call(me,"key")){var vo=G(U),vn=Object.keys(me).filter(function(Wt){return Wt!=="key"}),Qs=vn.length>0?"{key: someKey, "+vn.join(": ..., ")+": ...}":"{key: someKey}";if(!es[vo+Qs]){var Hc=vn.length>0?"{"+vn.join(": ..., ")+": ...}":"{}";D(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+Ce+">.")}return me}}function ka(U,me){{if(!U._store||U._store.validated||U.key!=null)return;U._store.validated=!0;var Ce=Bc(me);if(_e[Ce])return;_e[Ce]=!0;var Fe="";U&&U._owner&&U._owner!==Fn.current&&(Fe=" It was passed a child from "+G(U._owner.type)+"."),Zt(U),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ce,Fe),Zt(null)}}function zn(U,me){{if(typeof U!="object")return;if(Je(U))for(var Ce=0;Ce<U.length;Ce++){var Fe=U[Ce];Qt(Fe)&&ka(Fe,me)}else if(Qt(U))U._store&&(U._store.validated=!0);else if(U){var Ge=v(U);if(typeof Ge=="function"&&Ge!==U.entries)for(var st=Ge.call(U),et;!(et=st.next()).done;)Qt(et.value)&&ka(et.value,me)}}}function En(U){{var me=U.type;if(me==null||typeof me=="string")return;var Ce;if(typeof me=="function")Ce=me.propTypes;else if(typeof me=="object"&&(me.$$typeof===d||me.$$typeof===p))Ce=me.propTypes;else return;if(Ce){var Fe=G(me);Ve(Ce,U.props,"prop",Fe,U)}else if(me.PropTypes!==void 0&&!mn){mn=!0;var Ge=G(me);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ge||"Unknown")}typeof me.getDefaultProps=="function"&&!me.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xe(U){{for(var me=Object.keys(U.props),Ce=0;Ce<me.length;Ce++){var Fe=me[Ce];if(Fe!=="children"&&Fe!=="key"){Zt(U),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Fe),Zt(null);break}}U.ref!==null&&(Zt(U),D("Invalid attribute `ref` supplied to `React.Fragment`."),Zt(null))}}var es={};function yt(U,me,Ce,Fe,Ge,st){{var et=R(U);if(!et){var Ze="";(U===void 0||typeof U=="object"&&U!==null&&Object.keys(U).length===0)&&(Ze+=" 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 Jt=He();Jt?Ze+=Jt:Ze+=ur();var $t;U===null?$t="null":Je(U)?$t="array":U!==void 0&&U.$$typeof===t?($t="<"+(G(U.type)||"Unknown")+" />",Ze=" Did you accidentally export a JSX literal instead of a component?"):$t=typeof U,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$t,Ze)}var qt=nn(U,me,Ce,Ge,st);if(qt==null)return qt;if(et){var sn=me.children;if(sn!==void 0)if(Fe)if(Je(sn)){for(var Yn=0;Yn<sn.length;Yn++)zn(sn[Yn],U);Object.freeze&&Object.freeze(sn)}else D("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 zn(sn,U)}if(pe.call(me,"key")){var bo=G(U),vn=Object.keys(me).filter(function(Wt){return Wt!=="key"}),Qs=vn.length>0?"{key: someKey, "+vn.join(": ..., ")+": ...}":"{key: someKey}";if(!es[bo+Qs]){var Hc=vn.length>0?"{"+vn.join(": ..., ")+": ...}":"{}";D(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Qs,vo,Hc,vo),es[vo+Qs]=!0}}return U===o?Xe(qt):En(qt),qt}}function Tr(U,me,Ce){return yt(U,me,Ce,!0)}function Wc(U,me,Ce){return yt(U,me,Ce,!1)}var ts=Wc,hn=Tr;si.Fragment=o,si.jsx=ts,si.jsxs=hn}()),si}var If;function g0(){return If||(If=1,process.env.NODE_ENV==="production"?ja.exports=p0():ja.exports=m0()),ja.exports}var E=g0();const Wi={black:"#000",white:"#fff"},as={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ls={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},cs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ds={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},us={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ii={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},y0={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Io(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const ca="$$material";function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Q.apply(null,arguments)}function v0(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 b0(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 w0=function(){function e(n){var o=this;this._insertTag=function(r){var i;o.tags.length===0?o.insertionPoint?i=o.insertionPoint.nextSibling:o.prepend?i=o.container.firstChild:i=o.before:i=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(r,i),o.tags.push(r)},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(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(b0(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=v0(r);try{i.insertRule(o,i.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var r;return(r=o.parentNode)==null?void 0:r.removeChild(o)}),this.tags=[],this.ctr=0},e}(),bn="-ms-",wl="-moz-",vt="-webkit-",tg="comm",Cu="rule",Su="decl",C0="@import",ng="@keyframes",S0="@layer",_0=Math.abs,Bl=String.fromCharCode,x0=Object.assign;function R0(e,t){return gn(e,0)^45?(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3):0}function og(e){return e.trim()}function T0(e,t){return(e=t.exec(e))?e[0]:e}function bt(e,t,n){return e.replace(t,n)}function Hd(e,t){return e.indexOf(t)}function gn(e,t){return e.charCodeAt(t)|0}function Hi(e,t,n){return e.slice(t,n)}function _o(e){return e.length}function _u(e){return e.length}function Ba(e,t){return t.push(e),e}function E0(e,t){return e.map(t).join("")}var Wl=1,Ns=1,rg=0,In=0,on=0,Hs="";function Hl(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Wl,column:Ns,length:a,return:""}}function ai(e,t){return x0(Hl("",null,null,"",null,null,0),e,{length:-e.length},t)}function k0(){return on}function P0(){return on=In>0?gn(Hs,--In):0,Ns--,on===10&&(Ns=1,Wl--),on}function Bn(){return on=In<rg?gn(Hs,In++):0,Ns++,on===10&&(Ns=1,Wl++),on}function Do(){return gn(Hs,In)}function al(){return In}function da(e,t){return Hi(Hs,e,t)}function zi(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 sg(e){return Wl=Ns=1,rg=_o(Hs=e),In=0,[]}function ig(e){return Hs="",e}function ll(e){return og(da(In-1,zd(e===91?e+2:e===40?e+1:e)))}function D0(e){for(;(on=Do())&&on<33;)Bn();return zi(e)>2||zi(on)>3?"":" "}function O0(e,t){for(;--t&&Bn()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return da(e,al()+(t<6&&Do()==32&&Bn()==32))}function zd(e){for(;Bn();)switch(on){case e:return In;case 34:case 39:e!==34&&e!==39&&zd(on);break;case 40:e===41&&zd(e);break;case 92:Bn();break}return In}function M0(e,t){for(;Bn()&&e+on!==57;)if(e+on===84&&Do()===47)break;return"/*"+da(t,In-1)+"*"+Bl(e===47?e:Bn())}function I0(e){for(;!zi(Do());)Bn();return da(e,In)}function N0(e){return ig(cl("",null,null,null,[""],e=sg(e),0,[0],e))}function cl(e,t,n,o,r,i,a,l,d){for(var u=0,f=0,p=a,y=0,w=0,b=0,m=1,v=1,P=1,D=0,x="",S=r,C=i,O=o,A=x;v;)switch(b=D,D=Bn()){case 40:if(b!=108&&gn(A,p-1)==58){Hd(A+=bt(ll(D),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:A+=ll(D);break;case 9:case 10:case 13:case 32:A+=D0(b);break;case 92:A+=O0(al()-1,7);continue;case 47:switch(Do()){case 42:case 47:Ba(A0(M0(Bn(),al()),t,n),d);break;default:A+="/"}break;case 123*m:l[u++]=_o(A)*P;case 125*m:case 59:case 0:switch(D){case 0:case 125:v=0;case 59+f:P==-1&&(A=bt(A,/\f/g,"")),w>0&&_o(A)-p&&Ba(w>32?Af(A+";",o,n,p-1):Af(bt(A," ","")+";",o,n,p-2),d);break;case 59:A+=";";default:if(Ba(O=Nf(A,t,n,u,f,r,l,x,S=[],C=[],p),i),D===123)if(f===0)cl(A,t,O,O,S,i,p,l,C);else switch(y===99&&gn(A,3)===110?100:y){case 100:case 108:case 109:case 115:cl(e,O,O,o&&Ba(Nf(e,O,O,0,0,r,l,x,r,S=[],p),C),r,C,p,l,o?S:C);break;default:cl(A,O,O,O,[""],C,0,l,C)}}u=f=w=0,m=P=1,x=A="",p=a;break;case 58:p=1+_o(A),w=b;default:if(m<1){if(D==123)--m;else if(D==125&&m++==0&&P0()==125)continue}switch(A+=Bl(D),D*m){case 38:P=f>0?1:(A+="\f",-1);break;case 44:l[u++]=(_o(A)-1)*P,P=1;break;case 64:Do()===45&&(A+=ll(Bn())),y=Do(),f=p=_o(x=A+=I0(al())),D++;break;case 45:b===45&&_o(A)==2&&(m=0)}}return i}function Nf(e,t,n,o,r,i,a,l,d,u,f){for(var p=r-1,y=r===0?i:[""],w=_u(y),b=0,m=0,v=0;b<o;++b)for(var P=0,D=Hi(e,p+1,p=_0(m=a[b])),x=e;P<w;++P)(x=og(m>0?y[P]+" "+D:bt(D,/&\f/g,y[P])))&&(d[v++]=x);return Hl(e,t,n,r===0?Cu:l,d,u,f)}function A0(e,t,n){return Hl(e,t,n,tg,Bl(k0()),Hi(e,2,-2),0)}function Af(e,t,n,o){return Hl(e,t,n,Su,Hi(e,0,o),Hi(e,o+1,-1),o)}function Rs(e,t){for(var n="",o=_u(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function F0(e,t,n,o){switch(e.type){case S0:if(e.children.length)break;case C0:case Su:return e.return=e.return||e.value;case tg:return"";case ng:return e.return=e.value+"{"+Rs(e.children,o)+"}";case Cu:e.value=e.props.join(",")}return _o(n=Rs(e.children,o))?e.return=e.value+"{"+n+"}":""}function L0(e){var t=_u(e);return function(n,o,r,i){for(var a="",l=0;l<t;l++)a+=e[l](n,o,r,i)||"";return a}}function $0(e){return function(t){t.root||(t=t.return)&&e(t)}}function ag(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var V0=function(t,n,o){for(var r=0,i=0;r=i,i=Do(),r===38&&i===12&&(n[o]=1),!zi(i);)Bn();return da(t,In)},j0=function(t,n){var o=-1,r=44;do switch(zi(r)){case 0:r===38&&Do()===12&&(n[o]=1),t[o]+=V0(In-1,n,o);break;case 2:t[o]+=ll(r);break;case 4:if(r===44){t[++o]=Do()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=Bl(r)}while(r=Bn());return t},B0=function(t,n){return ig(j0(sg(t),n))},Ff=new WeakMap,W0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,o=t.parent,r=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ff.get(o))&&!r){Ff.set(t,!0);for(var i=[],a=B0(n,i),l=o.props,d=0,u=0;d<a.length;d++)for(var f=0;f<l.length;f++,u++)t.props[u]=i[d]?a[d].replace(/&\f/g,l[f]):l[f]+" "+a[d]}}},H0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function lg(e,t){switch(R0(e,t)){case 5103:return vt+"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 vt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vt+e+wl+e+bn+e+e;case 6828:case 4268:return vt+e+bn+e+e;case 6165:return vt+e+bn+"flex-"+e+e;case 5187:return vt+e+bt(e,/(\w+).+(:[^]+)/,vt+"box-$1$2"+bn+"flex-$1$2")+e;case 5443:return vt+e+bn+"flex-item-"+bt(e,/flex-|-self/,"")+e;case 4675:return vt+e+bn+"flex-line-pack"+bt(e,/align-content|flex-|-self/,"")+e;case 5548:return vt+e+bn+bt(e,"shrink","negative")+e;case 5292:return vt+e+bn+bt(e,"basis","preferred-size")+e;case 6060:return vt+"box-"+bt(e,"-grow","")+vt+e+bn+bt(e,"grow","positive")+e;case 4554:return vt+bt(e,/([^-])(transform)/g,"$1"+vt+"$2")+e;case 6187:return bt(bt(bt(e,/(zoom-|grab)/,vt+"$1"),/(image-set)/,vt+"$1"),e,"")+e;case 5495:case 3959:return bt(e,/(image-set\([^]*)/,vt+"$1$`$1");case 4968:return bt(bt(e,/(.+:)(flex-)?(.*)/,vt+"box-pack:$3"+bn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vt+e+e;case 4095:case 3583:case 4068:case 2532:return bt(e,/(.+)-inline(.+)/,vt+"$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(_o(e)-1-t>6)switch(gn(e,t+1)){case 109:if(gn(e,t+4)!==45)break;case 102:return bt(e,/(.+:)(.+)-([^]+)/,"$1"+vt+"$2-$3$1"+wl+(gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hd(e,"stretch")?lg(bt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gn(e,t+1)!==115)break;case 6444:switch(gn(e,_o(e)-3-(~Hd(e,"!important")&&10))){case 107:return bt(e,":",":"+vt)+e;case 101:return bt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vt+(gn(e,14)===45?"inline-":"")+"box$3$1"+vt+"$2$3$1"+bn+"$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return vt+e+bn+bt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+bn+bt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+bn+bt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+bn+e+e}return e}var z0=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case Su:t.return=lg(t.value,t.length);break;case ng:return Rs([ai(t,{value:bt(t.value,"@","@"+vt)})],r);case Cu:if(t.length)return E0(t.props,function(i){switch(T0(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rs([ai(t,{props:[bt(i,/:(read-\w+)/,":"+wl+"$1")]})],r);case"::placeholder":return Rs([ai(t,{props:[bt(i,/:(plac\w+)/,":"+vt+"input-$1")]}),ai(t,{props:[bt(i,/:(plac\w+)/,":"+wl+"$1")]}),ai(t,{props:[bt(i,/:(plac\w+)/,bn+"input-$1")]})],r)}return""})}},Y0=[z0],U0=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var r=t.stylisPlugins||Y0,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),P=1;P<v.length;P++)i[v[P]]=!0;l.push(m)});var d,u=[W0,H0];{var f,p=[F0,$0(function(m){f.insert(m)})],y=L0(u.concat(r,p)),w=function(v){return Rs(N0(v),y)};d=function(v,P,D,x){f=D,w(v?v+"{"+P.styles+"}":P.styles),x&&(b.inserted[P.name]=!0)}}var b={key:n,sheet:new w0({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:d};return b.sheet.hydrate(l),b},Wa={exports:{}},wt={};/** @license React v16.13.1
30
+ <%s key={someKey} {...props} />`,Qs,bo,Hc,bo),es[bo+Qs]=!0}}return U===o?Xe(qt):En(qt),qt}}function Tr(U,me,Ce){return yt(U,me,Ce,!0)}function Wc(U,me,Ce){return yt(U,me,Ce,!1)}var ts=Wc,hn=Tr;si.Fragment=o,si.jsx=ts,si.jsxs=hn}()),si}var If;function g0(){return If||(If=1,process.env.NODE_ENV==="production"?ja.exports=p0():ja.exports=m0()),ja.exports}var E=g0();const Wi={black:"#000",white:"#fff"},as={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ls={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},cs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ds={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},us={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ii={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},y0={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Io(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const ca="$$material";function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Q.apply(null,arguments)}function v0(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 b0(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 w0=function(){function e(n){var o=this;this._insertTag=function(r){var i;o.tags.length===0?o.insertionPoint?i=o.insertionPoint.nextSibling:o.prepend?i=o.container.firstChild:i=o.before:i=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(r,i),o.tags.push(r)},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(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(b0(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=v0(r);try{i.insertRule(o,i.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var r;return(r=o.parentNode)==null?void 0:r.removeChild(o)}),this.tags=[],this.ctr=0},e}(),bn="-ms-",wl="-moz-",vt="-webkit-",tg="comm",Cu="rule",Su="decl",C0="@import",ng="@keyframes",S0="@layer",_0=Math.abs,Bl=String.fromCharCode,x0=Object.assign;function R0(e,t){return gn(e,0)^45?(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3):0}function og(e){return e.trim()}function T0(e,t){return(e=t.exec(e))?e[0]:e}function bt(e,t,n){return e.replace(t,n)}function Hd(e,t){return e.indexOf(t)}function gn(e,t){return e.charCodeAt(t)|0}function Hi(e,t,n){return e.slice(t,n)}function xo(e){return e.length}function _u(e){return e.length}function Ba(e,t){return t.push(e),e}function E0(e,t){return e.map(t).join("")}var Wl=1,Ns=1,rg=0,In=0,on=0,Hs="";function Hl(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Wl,column:Ns,length:a,return:""}}function ai(e,t){return x0(Hl("",null,null,"",null,null,0),e,{length:-e.length},t)}function k0(){return on}function P0(){return on=In>0?gn(Hs,--In):0,Ns--,on===10&&(Ns=1,Wl--),on}function Bn(){return on=In<rg?gn(Hs,In++):0,Ns++,on===10&&(Ns=1,Wl++),on}function Do(){return gn(Hs,In)}function al(){return In}function da(e,t){return Hi(Hs,e,t)}function zi(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 sg(e){return Wl=Ns=1,rg=xo(Hs=e),In=0,[]}function ig(e){return Hs="",e}function ll(e){return og(da(In-1,zd(e===91?e+2:e===40?e+1:e)))}function D0(e){for(;(on=Do())&&on<33;)Bn();return zi(e)>2||zi(on)>3?"":" "}function O0(e,t){for(;--t&&Bn()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return da(e,al()+(t<6&&Do()==32&&Bn()==32))}function zd(e){for(;Bn();)switch(on){case e:return In;case 34:case 39:e!==34&&e!==39&&zd(on);break;case 40:e===41&&zd(e);break;case 92:Bn();break}return In}function M0(e,t){for(;Bn()&&e+on!==57;)if(e+on===84&&Do()===47)break;return"/*"+da(t,In-1)+"*"+Bl(e===47?e:Bn())}function I0(e){for(;!zi(Do());)Bn();return da(e,In)}function N0(e){return ig(cl("",null,null,null,[""],e=sg(e),0,[0],e))}function cl(e,t,n,o,r,i,a,l,d){for(var u=0,f=0,p=a,y=0,w=0,b=0,m=1,v=1,P=1,D=0,x="",S=r,C=i,O=o,A=x;v;)switch(b=D,D=Bn()){case 40:if(b!=108&&gn(A,p-1)==58){Hd(A+=bt(ll(D),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:A+=ll(D);break;case 9:case 10:case 13:case 32:A+=D0(b);break;case 92:A+=O0(al()-1,7);continue;case 47:switch(Do()){case 42:case 47:Ba(A0(M0(Bn(),al()),t,n),d);break;default:A+="/"}break;case 123*m:l[u++]=xo(A)*P;case 125*m:case 59:case 0:switch(D){case 0:case 125:v=0;case 59+f:P==-1&&(A=bt(A,/\f/g,"")),w>0&&xo(A)-p&&Ba(w>32?Af(A+";",o,n,p-1):Af(bt(A," ","")+";",o,n,p-2),d);break;case 59:A+=";";default:if(Ba(O=Nf(A,t,n,u,f,r,l,x,S=[],C=[],p),i),D===123)if(f===0)cl(A,t,O,O,S,i,p,l,C);else switch(y===99&&gn(A,3)===110?100:y){case 100:case 108:case 109:case 115:cl(e,O,O,o&&Ba(Nf(e,O,O,0,0,r,l,x,r,S=[],p),C),r,C,p,l,o?S:C);break;default:cl(A,O,O,O,[""],C,0,l,C)}}u=f=w=0,m=P=1,x=A="",p=a;break;case 58:p=1+xo(A),w=b;default:if(m<1){if(D==123)--m;else if(D==125&&m++==0&&P0()==125)continue}switch(A+=Bl(D),D*m){case 38:P=f>0?1:(A+="\f",-1);break;case 44:l[u++]=(xo(A)-1)*P,P=1;break;case 64:Do()===45&&(A+=ll(Bn())),y=Do(),f=p=xo(x=A+=I0(al())),D++;break;case 45:b===45&&xo(A)==2&&(m=0)}}return i}function Nf(e,t,n,o,r,i,a,l,d,u,f){for(var p=r-1,y=r===0?i:[""],w=_u(y),b=0,m=0,v=0;b<o;++b)for(var P=0,D=Hi(e,p+1,p=_0(m=a[b])),x=e;P<w;++P)(x=og(m>0?y[P]+" "+D:bt(D,/&\f/g,y[P])))&&(d[v++]=x);return Hl(e,t,n,r===0?Cu:l,d,u,f)}function A0(e,t,n){return Hl(e,t,n,tg,Bl(k0()),Hi(e,2,-2),0)}function Af(e,t,n,o){return Hl(e,t,n,Su,Hi(e,0,o),Hi(e,o+1,-1),o)}function Rs(e,t){for(var n="",o=_u(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function F0(e,t,n,o){switch(e.type){case S0:if(e.children.length)break;case C0:case Su:return e.return=e.return||e.value;case tg:return"";case ng:return e.return=e.value+"{"+Rs(e.children,o)+"}";case Cu:e.value=e.props.join(",")}return xo(n=Rs(e.children,o))?e.return=e.value+"{"+n+"}":""}function L0(e){var t=_u(e);return function(n,o,r,i){for(var a="",l=0;l<t;l++)a+=e[l](n,o,r,i)||"";return a}}function $0(e){return function(t){t.root||(t=t.return)&&e(t)}}function ag(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var V0=function(t,n,o){for(var r=0,i=0;r=i,i=Do(),r===38&&i===12&&(n[o]=1),!zi(i);)Bn();return da(t,In)},j0=function(t,n){var o=-1,r=44;do switch(zi(r)){case 0:r===38&&Do()===12&&(n[o]=1),t[o]+=V0(In-1,n,o);break;case 2:t[o]+=ll(r);break;case 4:if(r===44){t[++o]=Do()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=Bl(r)}while(r=Bn());return t},B0=function(t,n){return ig(j0(sg(t),n))},Ff=new WeakMap,W0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,o=t.parent,r=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ff.get(o))&&!r){Ff.set(t,!0);for(var i=[],a=B0(n,i),l=o.props,d=0,u=0;d<a.length;d++)for(var f=0;f<l.length;f++,u++)t.props[u]=i[d]?a[d].replace(/&\f/g,l[f]):l[f]+" "+a[d]}}},H0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function lg(e,t){switch(R0(e,t)){case 5103:return vt+"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 vt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vt+e+wl+e+bn+e+e;case 6828:case 4268:return vt+e+bn+e+e;case 6165:return vt+e+bn+"flex-"+e+e;case 5187:return vt+e+bt(e,/(\w+).+(:[^]+)/,vt+"box-$1$2"+bn+"flex-$1$2")+e;case 5443:return vt+e+bn+"flex-item-"+bt(e,/flex-|-self/,"")+e;case 4675:return vt+e+bn+"flex-line-pack"+bt(e,/align-content|flex-|-self/,"")+e;case 5548:return vt+e+bn+bt(e,"shrink","negative")+e;case 5292:return vt+e+bn+bt(e,"basis","preferred-size")+e;case 6060:return vt+"box-"+bt(e,"-grow","")+vt+e+bn+bt(e,"grow","positive")+e;case 4554:return vt+bt(e,/([^-])(transform)/g,"$1"+vt+"$2")+e;case 6187:return bt(bt(bt(e,/(zoom-|grab)/,vt+"$1"),/(image-set)/,vt+"$1"),e,"")+e;case 5495:case 3959:return bt(e,/(image-set\([^]*)/,vt+"$1$`$1");case 4968:return bt(bt(e,/(.+:)(flex-)?(.*)/,vt+"box-pack:$3"+bn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vt+e+e;case 4095:case 3583:case 4068:case 2532:return bt(e,/(.+)-inline(.+)/,vt+"$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(xo(e)-1-t>6)switch(gn(e,t+1)){case 109:if(gn(e,t+4)!==45)break;case 102:return bt(e,/(.+:)(.+)-([^]+)/,"$1"+vt+"$2-$3$1"+wl+(gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hd(e,"stretch")?lg(bt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gn(e,t+1)!==115)break;case 6444:switch(gn(e,xo(e)-3-(~Hd(e,"!important")&&10))){case 107:return bt(e,":",":"+vt)+e;case 101:return bt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vt+(gn(e,14)===45?"inline-":"")+"box$3$1"+vt+"$2$3$1"+bn+"$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return vt+e+bn+bt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+bn+bt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+bn+bt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+bn+e+e}return e}var z0=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case Su:t.return=lg(t.value,t.length);break;case ng:return Rs([ai(t,{value:bt(t.value,"@","@"+vt)})],r);case Cu:if(t.length)return E0(t.props,function(i){switch(T0(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rs([ai(t,{props:[bt(i,/:(read-\w+)/,":"+wl+"$1")]})],r);case"::placeholder":return Rs([ai(t,{props:[bt(i,/:(plac\w+)/,":"+vt+"input-$1")]}),ai(t,{props:[bt(i,/:(plac\w+)/,":"+wl+"$1")]}),ai(t,{props:[bt(i,/:(plac\w+)/,bn+"input-$1")]})],r)}return""})}},Y0=[z0],U0=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var r=t.stylisPlugins||Y0,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),P=1;P<v.length;P++)i[v[P]]=!0;l.push(m)});var d,u=[W0,H0];{var f,p=[F0,$0(function(m){f.insert(m)})],y=L0(u.concat(r,p)),w=function(v){return Rs(N0(v),y)};d=function(v,P,D,x){f=D,w(v?v+"{"+P.styles+"}":P.styles),x&&(b.inserted[P.name]=!0)}}var b={key:n,sheet:new w0({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:d};return b.sheet.hydrate(l),b},Wa={exports:{}},wt={};/** @license React v16.13.1
31
31
  * react-is.production.min.js
32
32
  *
33
33
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -41,7 +41,7 @@ React keys must be passed directly to JSX without using spread:
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var $f;function G0(){return $f||($f=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,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function x(H){return typeof H=="string"||typeof H=="function"||H===o||H===u||H===i||H===r||H===p||H===y||typeof H=="object"&&H!==null&&(H.$$typeof===b||H.$$typeof===w||H.$$typeof===a||H.$$typeof===l||H.$$typeof===f||H.$$typeof===v||H.$$typeof===P||H.$$typeof===D||H.$$typeof===m)}function S(H){if(typeof H=="object"&&H!==null){var re=H.$$typeof;switch(re){case t:var Z=H.type;switch(Z){case d:case u:case o:case i:case r:case p:return Z;default:var fe=Z&&Z.$$typeof;switch(fe){case l:case f:case b:case w:case a:return fe;default:return re}}case n:return re}}}var C=d,O=u,A=l,F=a,B=t,R=f,$=o,K=b,G=w,q=n,Y=i,z=r,ae=p,N=!1;function M(H){return N||(N=!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(H)||S(H)===d}function L(H){return S(H)===u}function W(H){return S(H)===l}function ne(H){return S(H)===a}function oe(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function se(H){return S(H)===f}function j(H){return S(H)===o}function ee(H){return S(H)===b}function J(H){return S(H)===w}function te(H){return S(H)===n}function ce(H){return S(H)===i}function le(H){return S(H)===r}function he(H){return S(H)===p}Ct.AsyncMode=C,Ct.ConcurrentMode=O,Ct.ContextConsumer=A,Ct.ContextProvider=F,Ct.Element=B,Ct.ForwardRef=R,Ct.Fragment=$,Ct.Lazy=K,Ct.Memo=G,Ct.Portal=q,Ct.Profiler=Y,Ct.StrictMode=z,Ct.Suspense=ae,Ct.isAsyncMode=M,Ct.isConcurrentMode=L,Ct.isContextConsumer=W,Ct.isContextProvider=ne,Ct.isElement=oe,Ct.isForwardRef=se,Ct.isFragment=j,Ct.isLazy=ee,Ct.isMemo=J,Ct.isPortal=te,Ct.isProfiler=ce,Ct.isStrictMode=le,Ct.isSuspense=he,Ct.isValidElementType=x,Ct.typeOf=S}()),Ct}var Vf;function K0(){return Vf||(Vf=1,process.env.NODE_ENV==="production"?Wa.exports=q0():Wa.exports=G0()),Wa.exports}var ld,jf;function X0(){if(jf)return ld;jf=1;var e=K0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=o,i[e.Memo]=r;function a(b){return e.isMemo(b)?r:i[b.$$typeof]||t}var l=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function w(b,m,v){if(typeof m!="string"){if(y){var P=p(m);P&&P!==y&&w(b,P,v)}var D=d(m);u&&(D=D.concat(u(m)));for(var x=a(b),S=a(m),C=0;C<D.length;++C){var O=D[C];if(!n[O]&&!(v&&v[O])&&!(S&&S[O])&&!(x&&x[O])){var A=f(m,O);try{l(b,O,A)}catch{}}}}return b}return ld=w,ld}X0();var Z0=!0;function cg(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var xu=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||Z0===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},Ru=function(t,n,o){xu(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+r:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Q0(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 J0={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},e_=/[A-Z]|^ms/g,t_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dg=function(t){return t.charCodeAt(1)===45},Bf=function(t){return t!=null&&typeof t!="boolean"},cd=ag(function(e){return dg(e)?e:e.replace(e_,"-$&").toLowerCase()}),Wf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(t_,function(o,r,i){return xo={name:r,styles:i,next:xo},r})}return J0[t]!==1&&!dg(t)&&typeof n=="number"&&n!==0?n+"px":n};function Yi(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return xo={name:r.name,styles:r.styles,next:xo},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)xo={name:a.name,styles:a.styles,next:xo},a=a.next;var l=i.styles+";";return l}return n_(e,t,n)}case"function":{if(e!==void 0){var d=xo,u=n(e);return xo=d,Yi(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function n_(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Yi(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?o+=i+"{"+t[l]+"}":Bf(l)&&(o+=cd(i)+":"+Wf(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)Bf(a[d])&&(o+=cd(i)+":"+Wf(i,a[d])+";");else{var u=Yi(e,t,a);switch(i){case"animation":case"animationName":{o+=cd(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Hf=/label:\s*([^\s;{]+)\s*(;|$)/g,xo;function ua(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";xo=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Yi(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Yi(n,t,e[l]),o){var d=i;r+=d[l]}Hf.lastIndex=0;for(var u="",f;(f=Hf.exec(r))!==null;)u+="-"+f[1];var p=Q0(r)+u;return{name:p,styles:r,next:xo}}var o_=function(t){return t()},ug=T.useInsertionEffect?T.useInsertionEffect:!1,hg=ug||o_,zf=ug||T.useLayoutEffect,fg=T.createContext(typeof HTMLElement<"u"?U0({key:"css"}):null);fg.Provider;var Tu=function(t){return Fe.forwardRef(function(n,o){var r=Fe.useContext(fg);return t(n,r,o)})},zl=T.createContext({}),Eu={}.hasOwnProperty,Yd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",r_=function(t,n){var o={};for(var r in n)Eu.call(n,r)&&(o[r]=n[r]);return o[Yd]=t,o},s_=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return xu(n,o,r),hg(function(){return Ru(n,o,r)}),null},i_=Tu(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[Yd],i=[o],a="";typeof e.className=="string"?a=cg(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=ua(i,void 0,T.useContext(zl));a+=t.key+"-"+l.name;var d={};for(var u in e)Eu.call(e,u)&&u!=="css"&&u!==Yd&&(d[u]=e[u]);return d.className=a,n&&(d.ref=n),T.createElement(T.Fragment,null,T.createElement(s_,{cache:t,serialized:l,isStringTag:typeof r=="string"}),T.createElement(r,d))}),a_=i_,Yf=function(t,n){var o=arguments;if(n==null||!Eu.call(n,"css"))return T.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=a_,i[1]=r_(t,n);for(var a=2;a<r;a++)i[a]=o[a];return T.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Yf||(Yf={}));var l_=Tu(function(e,t){var n=e.styles,o=ua([n],void 0,T.useContext(zl)),r=T.useRef();return zf(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,d=document.querySelector('style[data-emotion="'+i+" "+o.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(l=!0,d.setAttribute("data-emotion",i),a.hydrate([d])),r.current=[a,l],function(){a.flush()}},[t]),zf(function(){var i=r.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(o.next!==void 0&&Ru(t,o.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",o,a,!1)},[t,o.name]),null});function ku(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ua(t)}function zs(){var e=ku.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 c_=/^((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)-.*))$/,d_=ag(function(e){return c_.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),u_=d_,h_=function(t){return t!=="theme"},Uf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?u_:h_},qf=function(t,n,o){var r;if(n){var i=n.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},f_=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return xu(n,o,r),hg(function(){return Ru(n,o,r)}),null},p_=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=qf(t,n,o),d=l||Uf(r),u=!d("as");return function(){var f=arguments,p=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{var y=f[0];p.push(y[0]);for(var w=f.length,b=1;b<w;b++)p.push(f[b],y[b])}var m=Tu(function(v,P,D){var x=u&&v.as||r,S="",C=[],O=v;if(v.theme==null){O={};for(var A in v)O[A]=v[A];O.theme=T.useContext(zl)}typeof v.className=="string"?S=cg(P.registered,C,v.className):v.className!=null&&(S=v.className+" ");var F=ua(p.concat(C),P.registered,O);S+=P.key+"-"+F.name,a!==void 0&&(S+=" "+a);var B=u&&l===void 0?Uf(x):d,R={};for(var $ in v)u&&$==="as"||B($)&&(R[$]=v[$]);return R.className=S,D&&(R.ref=D),T.createElement(T.Fragment,null,T.createElement(f_,{cache:P,serialized:F,isStringTag:typeof x=="string"}),T.createElement(x,R))});return m.displayName=i!==void 0?i:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=r,m.__emotion_styles=p,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(v,P){var D=e(v,Q({},n,P,{shouldForwardProp:qf(m,P,!0)}));return D.apply(void 0,p)},m}},m_=["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"],Ud=p_.bind(null);m_.forEach(function(e){Ud[e]=Ud(e)});var Ha={exports:{}},za={exports:{}},St={};/** @license React v16.13.1
44
+ */var $f;function G0(){return $f||($f=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,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function x(H){return typeof H=="string"||typeof H=="function"||H===o||H===u||H===i||H===r||H===p||H===y||typeof H=="object"&&H!==null&&(H.$$typeof===b||H.$$typeof===w||H.$$typeof===a||H.$$typeof===l||H.$$typeof===f||H.$$typeof===v||H.$$typeof===P||H.$$typeof===D||H.$$typeof===m)}function S(H){if(typeof H=="object"&&H!==null){var re=H.$$typeof;switch(re){case t:var Z=H.type;switch(Z){case d:case u:case o:case i:case r:case p:return Z;default:var fe=Z&&Z.$$typeof;switch(fe){case l:case f:case b:case w:case a:return fe;default:return re}}case n:return re}}}var C=d,O=u,A=l,F=a,B=t,R=f,$=o,K=b,G=w,q=n,Y=i,z=r,ae=p,N=!1;function M(H){return N||(N=!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(H)||S(H)===d}function L(H){return S(H)===u}function W(H){return S(H)===l}function ne(H){return S(H)===a}function oe(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function se(H){return S(H)===f}function j(H){return S(H)===o}function ee(H){return S(H)===b}function J(H){return S(H)===w}function te(H){return S(H)===n}function ce(H){return S(H)===i}function le(H){return S(H)===r}function he(H){return S(H)===p}Ct.AsyncMode=C,Ct.ConcurrentMode=O,Ct.ContextConsumer=A,Ct.ContextProvider=F,Ct.Element=B,Ct.ForwardRef=R,Ct.Fragment=$,Ct.Lazy=K,Ct.Memo=G,Ct.Portal=q,Ct.Profiler=Y,Ct.StrictMode=z,Ct.Suspense=ae,Ct.isAsyncMode=M,Ct.isConcurrentMode=L,Ct.isContextConsumer=W,Ct.isContextProvider=ne,Ct.isElement=oe,Ct.isForwardRef=se,Ct.isFragment=j,Ct.isLazy=ee,Ct.isMemo=J,Ct.isPortal=te,Ct.isProfiler=ce,Ct.isStrictMode=le,Ct.isSuspense=he,Ct.isValidElementType=x,Ct.typeOf=S}()),Ct}var Vf;function K0(){return Vf||(Vf=1,process.env.NODE_ENV==="production"?Wa.exports=q0():Wa.exports=G0()),Wa.exports}var ld,jf;function X0(){if(jf)return ld;jf=1;var e=K0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=o,i[e.Memo]=r;function a(b){return e.isMemo(b)?r:i[b.$$typeof]||t}var l=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function w(b,m,v){if(typeof m!="string"){if(y){var P=p(m);P&&P!==y&&w(b,P,v)}var D=d(m);u&&(D=D.concat(u(m)));for(var x=a(b),S=a(m),C=0;C<D.length;++C){var O=D[C];if(!n[O]&&!(v&&v[O])&&!(S&&S[O])&&!(x&&x[O])){var A=f(m,O);try{l(b,O,A)}catch{}}}}return b}return ld=w,ld}X0();var Z0=!0;function cg(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var xu=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||Z0===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},Ru=function(t,n,o){xu(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+r:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Q0(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 J0={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},e_=/[A-Z]|^ms/g,t_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dg=function(t){return t.charCodeAt(1)===45},Bf=function(t){return t!=null&&typeof t!="boolean"},cd=ag(function(e){return dg(e)?e:e.replace(e_,"-$&").toLowerCase()}),Wf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(t_,function(o,r,i){return Ro={name:r,styles:i,next:Ro},r})}return J0[t]!==1&&!dg(t)&&typeof n=="number"&&n!==0?n+"px":n};function Yi(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ro={name:r.name,styles:r.styles,next:Ro},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Ro={name:a.name,styles:a.styles,next:Ro},a=a.next;var l=i.styles+";";return l}return n_(e,t,n)}case"function":{if(e!==void 0){var d=Ro,u=n(e);return Ro=d,Yi(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function n_(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Yi(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?o+=i+"{"+t[l]+"}":Bf(l)&&(o+=cd(i)+":"+Wf(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)Bf(a[d])&&(o+=cd(i)+":"+Wf(i,a[d])+";");else{var u=Yi(e,t,a);switch(i){case"animation":case"animationName":{o+=cd(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Hf=/label:\s*([^\s;{]+)\s*(;|$)/g,Ro;function ua(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";Ro=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Yi(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Yi(n,t,e[l]),o){var d=i;r+=d[l]}Hf.lastIndex=0;for(var u="",f;(f=Hf.exec(r))!==null;)u+="-"+f[1];var p=Q0(r)+u;return{name:p,styles:r,next:Ro}}var o_=function(t){return t()},ug=T.useInsertionEffect?T.useInsertionEffect:!1,hg=ug||o_,zf=ug||T.useLayoutEffect,fg=T.createContext(typeof HTMLElement<"u"?U0({key:"css"}):null);fg.Provider;var Tu=function(t){return Ae.forwardRef(function(n,o){var r=Ae.useContext(fg);return t(n,r,o)})},zl=T.createContext({}),Eu={}.hasOwnProperty,Yd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",r_=function(t,n){var o={};for(var r in n)Eu.call(n,r)&&(o[r]=n[r]);return o[Yd]=t,o},s_=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return xu(n,o,r),hg(function(){return Ru(n,o,r)}),null},i_=Tu(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[Yd],i=[o],a="";typeof e.className=="string"?a=cg(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=ua(i,void 0,T.useContext(zl));a+=t.key+"-"+l.name;var d={};for(var u in e)Eu.call(e,u)&&u!=="css"&&u!==Yd&&(d[u]=e[u]);return d.className=a,n&&(d.ref=n),T.createElement(T.Fragment,null,T.createElement(s_,{cache:t,serialized:l,isStringTag:typeof r=="string"}),T.createElement(r,d))}),a_=i_,Yf=function(t,n){var o=arguments;if(n==null||!Eu.call(n,"css"))return T.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=a_,i[1]=r_(t,n);for(var a=2;a<r;a++)i[a]=o[a];return T.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Yf||(Yf={}));var l_=Tu(function(e,t){var n=e.styles,o=ua([n],void 0,T.useContext(zl)),r=T.useRef();return zf(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,d=document.querySelector('style[data-emotion="'+i+" "+o.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(l=!0,d.setAttribute("data-emotion",i),a.hydrate([d])),r.current=[a,l],function(){a.flush()}},[t]),zf(function(){var i=r.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(o.next!==void 0&&Ru(t,o.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",o,a,!1)},[t,o.name]),null});function ku(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ua(t)}function zs(){var e=ku.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 c_=/^((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)-.*))$/,d_=ag(function(e){return c_.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),u_=d_,h_=function(t){return t!=="theme"},Uf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?u_:h_},qf=function(t,n,o){var r;if(n){var i=n.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},f_=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return xu(n,o,r),hg(function(){return Ru(n,o,r)}),null},p_=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=qf(t,n,o),d=l||Uf(r),u=!d("as");return function(){var f=arguments,p=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{var y=f[0];p.push(y[0]);for(var w=f.length,b=1;b<w;b++)p.push(f[b],y[b])}var m=Tu(function(v,P,D){var x=u&&v.as||r,S="",C=[],O=v;if(v.theme==null){O={};for(var A in v)O[A]=v[A];O.theme=T.useContext(zl)}typeof v.className=="string"?S=cg(P.registered,C,v.className):v.className!=null&&(S=v.className+" ");var F=ua(p.concat(C),P.registered,O);S+=P.key+"-"+F.name,a!==void 0&&(S+=" "+a);var B=u&&l===void 0?Uf(x):d,R={};for(var $ in v)u&&$==="as"||B($)&&(R[$]=v[$]);return R.className=S,D&&(R.ref=D),T.createElement(T.Fragment,null,T.createElement(f_,{cache:P,serialized:F,isStringTag:typeof x=="string"}),T.createElement(x,R))});return m.displayName=i!==void 0?i:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=r,m.__emotion_styles=p,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(v,P){var D=e(v,Q({},n,P,{shouldForwardProp:qf(m,P,!0)}));return D.apply(void 0,p)},m}},m_=["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"],Ud=p_.bind(null);m_.forEach(function(e){Ud[e]=Ud(e)});var Ha={exports:{}},za={exports:{}},St={};/** @license React v16.13.1
45
45
  * react-is.production.min.js
46
46
  *
47
47
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -83,15 +83,15 @@ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var H=he(J,le,se,j,ee+".
83
83
  *
84
84
  * This source code is licensed under the MIT license found in the
85
85
  * LICENSE file in the root directory of this source tree.
86
- */var ap;function E_(){return ap||(ap=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case o:case i:case r:case u:case f:case w:return m;default:switch(m=m&&m.$$typeof,m){case l:case d:case y:case p:return m;case a:return m;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Et.ContextConsumer=a,Et.ContextProvider=l,Et.Element=t,Et.ForwardRef=d,Et.Fragment=o,Et.Lazy=y,Et.Memo=p,Et.Portal=n,Et.Profiler=i,Et.StrictMode=r,Et.Suspense=u,Et.SuspenseList=f,Et.isContextConsumer=function(m){return e(m)===a},Et.isContextProvider=function(m){return e(m)===l},Et.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Et.isForwardRef=function(m){return e(m)===d},Et.isFragment=function(m){return e(m)===o},Et.isLazy=function(m){return e(m)===y},Et.isMemo=function(m){return e(m)===p},Et.isPortal=function(m){return e(m)===n},Et.isProfiler=function(m){return e(m)===i},Et.isStrictMode=function(m){return e(m)===r},Et.isSuspense=function(m){return e(m)===u},Et.isSuspenseList=function(m){return e(m)===f},Et.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===o||m===i||m===r||m===u||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===p||m.$$typeof===l||m.$$typeof===a||m.$$typeof===d||m.$$typeof===b||m.getModuleId!==void 0)},Et.typeOf=e}()),Et}var lp;function k_(){return lp||(lp=1,process.env.NODE_ENV==="production"?Ya.exports=T_():Ya.exports=E_()),Ya.exports}var Cl=k_();function To(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 vg(e){if(T.isValidElement(e)||Cl.isValidElementType(e)||!To(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=vg(e[n])}),t}function Sn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return To(e)&&To(t)&&Object.keys(t).forEach(r=>{T.isValidElement(t[r])||Cl.isValidElementType(t[r])?o[r]=t[r]:To(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&To(e[r])?o[r]=Sn(e[r],t[r],n):n.clone?o[r]=To(t[r])?vg(t[r]):t[r]:o[r]=t[r]}),o}const P_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function D_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=P_(t),a=Object.keys(i);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-o/100}${n})`}function u(y,w){const b=a.indexOf(w);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:w)-o/100}${n})`}function f(y){return a.indexOf(y)+1<a.length?u(y,a[a.indexOf(y)+1]):l(y)}function p(y){const w=a.indexOf(y);return w===0?l(a[1]):w===a.length-1?d(a[w]):u(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:d,between:u,only:f,not:p,unit:n,...r}}function O_(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}function M_(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function I_(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>\`.
86
+ */var ap;function E_(){return ap||(ap=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case o:case i:case r:case u:case f:case w:return m;default:switch(m=m&&m.$$typeof,m){case l:case d:case y:case p:return m;case a:return m;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Et.ContextConsumer=a,Et.ContextProvider=l,Et.Element=t,Et.ForwardRef=d,Et.Fragment=o,Et.Lazy=y,Et.Memo=p,Et.Portal=n,Et.Profiler=i,Et.StrictMode=r,Et.Suspense=u,Et.SuspenseList=f,Et.isContextConsumer=function(m){return e(m)===a},Et.isContextProvider=function(m){return e(m)===l},Et.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Et.isForwardRef=function(m){return e(m)===d},Et.isFragment=function(m){return e(m)===o},Et.isLazy=function(m){return e(m)===y},Et.isMemo=function(m){return e(m)===p},Et.isPortal=function(m){return e(m)===n},Et.isProfiler=function(m){return e(m)===i},Et.isStrictMode=function(m){return e(m)===r},Et.isSuspense=function(m){return e(m)===u},Et.isSuspenseList=function(m){return e(m)===f},Et.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===o||m===i||m===r||m===u||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===p||m.$$typeof===l||m.$$typeof===a||m.$$typeof===d||m.$$typeof===b||m.getModuleId!==void 0)},Et.typeOf=e}()),Et}var lp;function k_(){return lp||(lp=1,process.env.NODE_ENV==="production"?Ya.exports=T_():Ya.exports=E_()),Ya.exports}var Cl=k_();function Eo(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 vg(e){if(T.isValidElement(e)||Cl.isValidElementType(e)||!Eo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=vg(e[n])}),t}function Sn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Eo(e)&&Eo(t)&&Object.keys(t).forEach(r=>{T.isValidElement(t[r])||Cl.isValidElementType(t[r])?o[r]=t[r]:Eo(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Eo(e[r])?o[r]=Sn(e[r],t[r],n):n.clone?o[r]=Eo(t[r])?vg(t[r]):t[r]:o[r]=t[r]}),o}const P_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function D_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=P_(t),a=Object.keys(i);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-o/100}${n})`}function u(y,w){const b=a.indexOf(w);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:w)-o/100}${n})`}function f(y){return a.indexOf(y)+1<a.length?u(y,a[a.indexOf(y)+1]):l(y)}function p(y){const w=a.indexOf(y);return w===0?l(a[1]):w===a.length-1?d(a[w]):u(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:d,between:u,only:f,not:p,unit:n,...r}}function O_(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}function M_(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function I_(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>\`.
87
87
  For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Io(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function N_(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const d=t(e.breakpoints.not(...l),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const A_={borderRadius:4},Sr=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Mi(e,t){return t?Sn(e,t,{clone:!1}):e}const Yl={xs:0,sm:600,md:900,lg:1200,xl:1536},cp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yl[e]}px)`},F_={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Yl[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function tr(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||cp;return t.reduce((a,l,d)=>(a[i.up(i.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const i=o.breakpoints||cp;return Object.keys(t).reduce((a,l)=>{if(M_(i.keys,l)){const d=I_(o.containerQueries?o:F_,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(i.values||Yl).includes(l)){const d=i.up(l);a[d]=n(t[l],l)}else{const d=l;a[d]=t[d]}return a},{})}return n(t)}function L_(e={}){return e.keys?.reduce((n,o)=>{const r=e.up(o);return n[r]={},n},{})||{}}function $_(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function we(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Io(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ul(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function Sl(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=Ul(e,n)||o,t&&(r=t(r,o,e)),r}function tn(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],d=a.theme,u=Ul(d,o)||{};return tr(a,l,p=>{let y=Sl(u,r,p);return p===y&&typeof p=="string"&&(y=Sl(u,r,`${t}${p==="default"?"":we(p)}`,p)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Sr}:{},i.filterProps=[t],i}function V_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const j_={m:"margin",p:"padding"},B_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},W_=V_(e=>{if(e.length>2)if(dp[e])e=dp[e];else return[e];const[t,n]=e.split(""),o=j_[t],r=B_[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),ql=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],H_=[...ql,...Gl];function ha(e,t,n,o){const r=Ul(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof r=="string"?`calc(${i} * ${r})`:r*i):Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
88
88
  `)):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(`
89
89
  `)));const l=r[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof r=="function"?r:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join(`
90
- `)),()=>{})}function Du(e){return ha(e,"spacing",8,"spacing")}function fa(e,t){return typeof t=="string"||t==null?t:e(t)}function z_(e,t){return n=>e.reduce((o,r)=>(o[r]=fa(t,n),o),{})}function Y_(e,t,n,o){if(!t.includes(n))return null;const r=W_(n),i=z_(r,o),a=e[n];return tr(e,a,i)}function bg(e,t){const n=Du(e.theme);return Object.keys(e).map(o=>Y_(e,t,o,n)).reduce(Mi,{})}function Gt(e){return bg(e,ql)}Gt.propTypes=process.env.NODE_ENV!=="production"?ql.reduce((e,t)=>(e[t]=Sr,e),{}):{};Gt.filterProps=ql;function Kt(e){return bg(e,Gl)}Kt.propTypes=process.env.NODE_ENV!=="production"?Gl.reduce((e,t)=>(e[t]=Sr,e),{}):{};Kt.filterProps=Gl;process.env.NODE_ENV!=="production"&&H_.reduce((e,t)=>(e[t]=Sr,e),{});function wg(e=8,t=Du({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Kl(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?Mi(r,t[i](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Xn(e){return typeof e!="number"?e:`${e}px solid`}function no(e,t){return tn({prop:e,themeKey:"borders",transform:t})}const U_=no("border",Xn),q_=no("borderTop",Xn),G_=no("borderRight",Xn),K_=no("borderBottom",Xn),X_=no("borderLeft",Xn),Z_=no("borderColor"),Q_=no("borderTopColor"),J_=no("borderRightColor"),ex=no("borderBottomColor"),tx=no("borderLeftColor"),nx=no("outline",Xn),ox=no("outlineColor"),Xl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ha(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:fa(t,o)});return tr(e,e.borderRadius,n)}return null};Xl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Sr}:{};Xl.filterProps=["borderRadius"];Kl(U_,q_,G_,K_,X_,Z_,Q_,J_,ex,tx,Xl,nx,ox);const Zl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ha(e.theme,"spacing",8,"gap"),n=o=>({gap:fa(t,o)});return tr(e,e.gap,n)}return null};Zl.propTypes=process.env.NODE_ENV!=="production"?{gap:Sr}:{};Zl.filterProps=["gap"];const Ql=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ha(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:fa(t,o)});return tr(e,e.columnGap,n)}return null};Ql.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Sr}:{};Ql.filterProps=["columnGap"];const Jl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ha(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:fa(t,o)});return tr(e,e.rowGap,n)}return null};Jl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Sr}:{};Jl.filterProps=["rowGap"];const rx=tn({prop:"gridColumn"}),sx=tn({prop:"gridRow"}),ix=tn({prop:"gridAutoFlow"}),ax=tn({prop:"gridAutoColumns"}),lx=tn({prop:"gridAutoRows"}),cx=tn({prop:"gridTemplateColumns"}),dx=tn({prop:"gridTemplateRows"}),ux=tn({prop:"gridTemplateAreas"}),hx=tn({prop:"gridArea"});Kl(Zl,Ql,Jl,rx,sx,ix,ax,lx,cx,dx,ux,hx);function Ts(e,t){return t==="grey"?t:e}const fx=tn({prop:"color",themeKey:"palette",transform:Ts}),px=tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ts}),mx=tn({prop:"backgroundColor",themeKey:"palette",transform:Ts});Kl(fx,px,mx);function Vn(e){return e<=1&&e!==0?`${e*100}%`:e}const gx=tn({prop:"width",transform:Vn}),Ou=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Yl[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Vn(n)}};return tr(e,e.maxWidth,t)}return null};Ou.filterProps=["maxWidth"];const yx=tn({prop:"minWidth",transform:Vn}),vx=tn({prop:"height",transform:Vn}),bx=tn({prop:"maxHeight",transform:Vn}),wx=tn({prop:"minHeight",transform:Vn});tn({prop:"size",cssProperty:"width",transform:Vn});tn({prop:"size",cssProperty:"height",transform:Vn});const Cx=tn({prop:"boxSizing"});Kl(gx,Ou,yx,vx,bx,wx,Cx);const pa={border:{themeKey:"borders",transform:Xn},borderTop:{themeKey:"borders",transform:Xn},borderRight:{themeKey:"borders",transform:Xn},borderBottom:{themeKey:"borders",transform:Xn},borderLeft:{themeKey:"borders",transform:Xn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xl},color:{themeKey:"palette",transform:Ts},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ts},backgroundColor:{themeKey:"palette",transform:Ts},p:{style:Kt},pt:{style:Kt},pr:{style:Kt},pb:{style:Kt},pl:{style:Kt},px:{style:Kt},py:{style:Kt},padding:{style:Kt},paddingTop:{style:Kt},paddingRight:{style:Kt},paddingBottom:{style:Kt},paddingLeft:{style:Kt},paddingX:{style:Kt},paddingY:{style:Kt},paddingInline:{style:Kt},paddingInlineStart:{style:Kt},paddingInlineEnd:{style:Kt},paddingBlock:{style:Kt},paddingBlockStart:{style:Kt},paddingBlockEnd:{style:Kt},m:{style:Gt},mt:{style:Gt},mr:{style:Gt},mb:{style:Gt},ml:{style:Gt},mx:{style:Gt},my:{style:Gt},margin:{style:Gt},marginTop:{style:Gt},marginRight:{style:Gt},marginBottom:{style:Gt},marginLeft:{style:Gt},marginX:{style:Gt},marginY:{style:Gt},marginInline:{style:Gt},marginInlineStart:{style:Gt},marginInlineEnd:{style:Gt},marginBlock:{style:Gt},marginBlockStart:{style:Gt},marginBlockEnd:{style:Gt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Zl},rowGap:{style:Jl},columnGap:{style:Ql},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vn},maxWidth:{style:Ou},minWidth:{transform:Vn},height:{transform:Vn},maxHeight:{transform:Vn},minHeight:{transform:Vn},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 Sx(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function _x(e,t){return typeof e=="function"?e(t):e}function xx(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:f,style:p}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const y=Ul(r,u)||{};return p?p(a):tr(a,o,b=>{let m=Sl(y,f,b);return b===m&&typeof b=="string"&&(m=Sl(y,f,`${n}${b==="default"?"":we(b)}`,b)),d===!1?m:{[d]:m}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??pa;function a(l){let d=l;if(typeof l=="function")d=l(r);else if(typeof l!="object")return l;if(!d)return null;const u=L_(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(d).forEach(y=>{const w=_x(d[y],r);if(w!=null)if(typeof w=="object")if(i[y])p=Mi(p,e(y,w,r,i));else{const b=tr({theme:r},w,m=>({[y]:m}));Sx(b,w)?p[y]=t({sx:w,theme:r}):p=Mi(p,b)}else p=Mi(p,e(y,w,r,i))}),O_(r,$_(f,p))}return Array.isArray(o)?o.map(a):a(o)}return t}const Hr=xx();Hr.filterProps=["sx"];function Rx(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Mu(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=D_(n),d=wg(r);let u=Sn({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...A_,...i}},a);return u=N_(u),u.applyStyles=Rx,u=t.reduce((f,p)=>Sn(f,p),u),u.unstable_sxConfig={...pa,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Hr({sx:p,theme:this})},u}function Tx(e){return Object.keys(e).length===0}function Cg(e=null){const t=T.useContext(zl);return!t||Tx(t)?e:t}const Ex=Mu();function ec(e=Ex){return Cg(e)}function Sg({styles:e,themeId:t,defaultTheme:n={}}){const o=ec(n),r=typeof e=="function"?e(t&&o[t]||o):e;return E.jsx(gg,{styles:r})}process.env.NODE_ENV!=="production"&&(Sg.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const kx=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??pa;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function _g(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=kx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return To(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}const up=e=>e,Px=()=>{let e=up;return{configure(t){e=t},generate(t){return e(t)},reset(){e=up}}},xg=Px();function Rg(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Rg(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Se(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Rg(e))&&(o&&(o+=" "),o+=t);return o}function Dx(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=yg("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Hr);return T.forwardRef(function(d,u){const f=ec(n),{className:p,component:y="div",...w}=_g(d);return E.jsx(i,{as:y,ref:u,className:Se(p,r?r(o):o),theme:t&&f[t]||f,...w})})}const Ox={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 Me(e,t,n="Mui"){const o=Ox[t];return o?`${n}-${o}`:`${xg.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Me(e,r,n)}),o}function Tg(e,t=""){return e.displayName||e.name||t}function hp(e,t,n){const o=Tg(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Mx(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Tg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Cl.ForwardRef:return hp(e,e.render,"ForwardRef");case Cl.Memo:return hp(e,e.type,"memo");default:return}}}function Eg(e){const{variants:t,...n}=e,o={variants:t,style:sp(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=sp(r.style))}),o}const Ix=Mu();function dl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nx(e){return e?(t,n)=>n[e]:null}function Ax(e,t,n){e.theme=Vx(e.theme)?n:e.theme[t]||e.theme}function ul(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>ul(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return kg(e,n.variants,[o])}return n?.isProcessed?n.style:n}function kg(e,t,n=[]){let o;e:for(let r=0;r<t.length;r+=1){const i=t[r];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(o))):n.push(i.style)}return n}function Fx(e={}){const{themeId:t,defaultTheme:n=Ix,rootShouldForwardProp:o=dl,slotShouldForwardProp:r=dl}=e;function i(l){Ax(l,t,n)}return(l,d={})=>{R_(l,C=>C.filter(O=>O!==Hr));const{name:u,slot:f,skipVariantsResolver:p,skipSx:y,overridesResolver:w=Nx(Pg(f)),...b}=d,m=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let P=dl;f==="Root"||f==="root"?P=o:f?P=r:jx(l)&&(P=void 0);const D=yg(l,{shouldForwardProp:P,label:$x(u,f),...b}),x=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(A){return ul(A,C)};if(To(C)){const O=Eg(C);return O.variants?function(F){return ul(F,O)}:O.style}return C},S=(...C)=>{const O=[],A=C.map(x),F=[];if(O.push(i),u&&w&&F.push(function(K){const q=K.theme.components?.[u]?.styleOverrides;if(!q)return null;const Y={};for(const z in q)Y[z]=ul(K,q[z]);return w(K,Y)}),u&&!m&&F.push(function(K){const q=K.theme?.components?.[u]?.variants;return q?kg(K,q):null}),v||F.push(Hr),Array.isArray(A[0])){const $=A.shift(),K=new Array(O.length).fill(""),G=new Array(F.length).fill("");let q;q=[...K,...$,...G],q.raw=[...K,...$.raw,...G],O.unshift(q)}const B=[...O,...A,...F],R=D(...B);return l.muiName&&(R.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=Lx(u,f,l)),R};return D.withConfig&&(S.withConfig=D.withConfig),S}}function Lx(e,t,n){return e?`${e}${we(t||"")}`:`Styled(${Mx(n)})`}function $x(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Pg(t||"Root")}`),n}function Vx(e){for(const t in e)return!1;return!0}function jx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pg(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ui(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],a=t[r];if(!a)n[r]=i||{};else if(!i)n[r]=a;else{n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const d=l;n[r][d]=Ui(i[d],a[d])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function Dg(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Ui(t.components[n].defaultProps,o)}function Bx({props:e,name:t,defaultTheme:n,themeId:o}){let r=ec(n);return r=r[o]||r,Dg({theme:r,name:t,props:e})}const cn=typeof window<"u"?T.useLayoutEffect:T.useEffect;function Wx(e,t,n,o,r){const[i,a]=T.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return cn(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),i}const Hx={...T},Og=Hx.useSyncExternalStore;function zx(e,t,n,o,r){const i=T.useCallback(()=>t,[t]),a=T.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:f}=o(e);return()=>f}return i},[i,e,o,r,n]),[l,d]=T.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addEventListener("change",p),()=>{f.removeEventListener("change",p)})]},[i,n,e]);return Og(d,l,a)}function Yx(e={}){const{themeId:t}=e;return function(o,r={}){let i=Cg();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=Dg({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===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(`
90
+ `)),()=>{})}function Du(e){return ha(e,"spacing",8,"spacing")}function fa(e,t){return typeof t=="string"||t==null?t:e(t)}function z_(e,t){return n=>e.reduce((o,r)=>(o[r]=fa(t,n),o),{})}function Y_(e,t,n,o){if(!t.includes(n))return null;const r=W_(n),i=z_(r,o),a=e[n];return tr(e,a,i)}function bg(e,t){const n=Du(e.theme);return Object.keys(e).map(o=>Y_(e,t,o,n)).reduce(Mi,{})}function Gt(e){return bg(e,ql)}Gt.propTypes=process.env.NODE_ENV!=="production"?ql.reduce((e,t)=>(e[t]=Sr,e),{}):{};Gt.filterProps=ql;function Kt(e){return bg(e,Gl)}Kt.propTypes=process.env.NODE_ENV!=="production"?Gl.reduce((e,t)=>(e[t]=Sr,e),{}):{};Kt.filterProps=Gl;process.env.NODE_ENV!=="production"&&H_.reduce((e,t)=>(e[t]=Sr,e),{});function wg(e=8,t=Du({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Kl(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?Mi(r,t[i](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Xn(e){return typeof e!="number"?e:`${e}px solid`}function no(e,t){return tn({prop:e,themeKey:"borders",transform:t})}const U_=no("border",Xn),q_=no("borderTop",Xn),G_=no("borderRight",Xn),K_=no("borderBottom",Xn),X_=no("borderLeft",Xn),Z_=no("borderColor"),Q_=no("borderTopColor"),J_=no("borderRightColor"),ex=no("borderBottomColor"),tx=no("borderLeftColor"),nx=no("outline",Xn),ox=no("outlineColor"),Xl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ha(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:fa(t,o)});return tr(e,e.borderRadius,n)}return null};Xl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Sr}:{};Xl.filterProps=["borderRadius"];Kl(U_,q_,G_,K_,X_,Z_,Q_,J_,ex,tx,Xl,nx,ox);const Zl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ha(e.theme,"spacing",8,"gap"),n=o=>({gap:fa(t,o)});return tr(e,e.gap,n)}return null};Zl.propTypes=process.env.NODE_ENV!=="production"?{gap:Sr}:{};Zl.filterProps=["gap"];const Ql=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ha(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:fa(t,o)});return tr(e,e.columnGap,n)}return null};Ql.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Sr}:{};Ql.filterProps=["columnGap"];const Jl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ha(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:fa(t,o)});return tr(e,e.rowGap,n)}return null};Jl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Sr}:{};Jl.filterProps=["rowGap"];const rx=tn({prop:"gridColumn"}),sx=tn({prop:"gridRow"}),ix=tn({prop:"gridAutoFlow"}),ax=tn({prop:"gridAutoColumns"}),lx=tn({prop:"gridAutoRows"}),cx=tn({prop:"gridTemplateColumns"}),dx=tn({prop:"gridTemplateRows"}),ux=tn({prop:"gridTemplateAreas"}),hx=tn({prop:"gridArea"});Kl(Zl,Ql,Jl,rx,sx,ix,ax,lx,cx,dx,ux,hx);function Ts(e,t){return t==="grey"?t:e}const fx=tn({prop:"color",themeKey:"palette",transform:Ts}),px=tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ts}),mx=tn({prop:"backgroundColor",themeKey:"palette",transform:Ts});Kl(fx,px,mx);function Vn(e){return e<=1&&e!==0?`${e*100}%`:e}const gx=tn({prop:"width",transform:Vn}),Ou=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Yl[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Vn(n)}};return tr(e,e.maxWidth,t)}return null};Ou.filterProps=["maxWidth"];const yx=tn({prop:"minWidth",transform:Vn}),vx=tn({prop:"height",transform:Vn}),bx=tn({prop:"maxHeight",transform:Vn}),wx=tn({prop:"minHeight",transform:Vn});tn({prop:"size",cssProperty:"width",transform:Vn});tn({prop:"size",cssProperty:"height",transform:Vn});const Cx=tn({prop:"boxSizing"});Kl(gx,Ou,yx,vx,bx,wx,Cx);const pa={border:{themeKey:"borders",transform:Xn},borderTop:{themeKey:"borders",transform:Xn},borderRight:{themeKey:"borders",transform:Xn},borderBottom:{themeKey:"borders",transform:Xn},borderLeft:{themeKey:"borders",transform:Xn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xl},color:{themeKey:"palette",transform:Ts},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ts},backgroundColor:{themeKey:"palette",transform:Ts},p:{style:Kt},pt:{style:Kt},pr:{style:Kt},pb:{style:Kt},pl:{style:Kt},px:{style:Kt},py:{style:Kt},padding:{style:Kt},paddingTop:{style:Kt},paddingRight:{style:Kt},paddingBottom:{style:Kt},paddingLeft:{style:Kt},paddingX:{style:Kt},paddingY:{style:Kt},paddingInline:{style:Kt},paddingInlineStart:{style:Kt},paddingInlineEnd:{style:Kt},paddingBlock:{style:Kt},paddingBlockStart:{style:Kt},paddingBlockEnd:{style:Kt},m:{style:Gt},mt:{style:Gt},mr:{style:Gt},mb:{style:Gt},ml:{style:Gt},mx:{style:Gt},my:{style:Gt},margin:{style:Gt},marginTop:{style:Gt},marginRight:{style:Gt},marginBottom:{style:Gt},marginLeft:{style:Gt},marginX:{style:Gt},marginY:{style:Gt},marginInline:{style:Gt},marginInlineStart:{style:Gt},marginInlineEnd:{style:Gt},marginBlock:{style:Gt},marginBlockStart:{style:Gt},marginBlockEnd:{style:Gt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Zl},rowGap:{style:Jl},columnGap:{style:Ql},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vn},maxWidth:{style:Ou},minWidth:{transform:Vn},height:{transform:Vn},maxHeight:{transform:Vn},minHeight:{transform:Vn},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 Sx(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function _x(e,t){return typeof e=="function"?e(t):e}function xx(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:f,style:p}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const y=Ul(r,u)||{};return p?p(a):tr(a,o,b=>{let m=Sl(y,f,b);return b===m&&typeof b=="string"&&(m=Sl(y,f,`${n}${b==="default"?"":we(b)}`,b)),d===!1?m:{[d]:m}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??pa;function a(l){let d=l;if(typeof l=="function")d=l(r);else if(typeof l!="object")return l;if(!d)return null;const u=L_(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(d).forEach(y=>{const w=_x(d[y],r);if(w!=null)if(typeof w=="object")if(i[y])p=Mi(p,e(y,w,r,i));else{const b=tr({theme:r},w,m=>({[y]:m}));Sx(b,w)?p[y]=t({sx:w,theme:r}):p=Mi(p,b)}else p=Mi(p,e(y,w,r,i))}),O_(r,$_(f,p))}return Array.isArray(o)?o.map(a):a(o)}return t}const Hr=xx();Hr.filterProps=["sx"];function Rx(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Mu(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=D_(n),d=wg(r);let u=Sn({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...A_,...i}},a);return u=N_(u),u.applyStyles=Rx,u=t.reduce((f,p)=>Sn(f,p),u),u.unstable_sxConfig={...pa,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Hr({sx:p,theme:this})},u}function Tx(e){return Object.keys(e).length===0}function Cg(e=null){const t=T.useContext(zl);return!t||Tx(t)?e:t}const Ex=Mu();function ec(e=Ex){return Cg(e)}function Sg({styles:e,themeId:t,defaultTheme:n={}}){const o=ec(n),r=typeof e=="function"?e(t&&o[t]||o):e;return E.jsx(gg,{styles:r})}process.env.NODE_ENV!=="production"&&(Sg.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const kx=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??pa;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function _g(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=kx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Eo(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}const up=e=>e,Px=()=>{let e=up;return{configure(t){e=t},generate(t){return e(t)},reset(){e=up}}},xg=Px();function Rg(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Rg(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Se(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Rg(e))&&(o&&(o+=" "),o+=t);return o}function Dx(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=yg("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Hr);return T.forwardRef(function(d,u){const f=ec(n),{className:p,component:y="div",...w}=_g(d);return E.jsx(i,{as:y,ref:u,className:Se(p,r?r(o):o),theme:t&&f[t]||f,...w})})}const Ox={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 Me(e,t,n="Mui"){const o=Ox[t];return o?`${n}-${o}`:`${xg.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Me(e,r,n)}),o}function Tg(e,t=""){return e.displayName||e.name||t}function hp(e,t,n){const o=Tg(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Mx(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Tg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Cl.ForwardRef:return hp(e,e.render,"ForwardRef");case Cl.Memo:return hp(e,e.type,"memo");default:return}}}function Eg(e){const{variants:t,...n}=e,o={variants:t,style:sp(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=sp(r.style))}),o}const Ix=Mu();function dl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nx(e){return e?(t,n)=>n[e]:null}function Ax(e,t,n){e.theme=Vx(e.theme)?n:e.theme[t]||e.theme}function ul(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>ul(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return kg(e,n.variants,[o])}return n?.isProcessed?n.style:n}function kg(e,t,n=[]){let o;e:for(let r=0;r<t.length;r+=1){const i=t[r];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(o))):n.push(i.style)}return n}function Fx(e={}){const{themeId:t,defaultTheme:n=Ix,rootShouldForwardProp:o=dl,slotShouldForwardProp:r=dl}=e;function i(l){Ax(l,t,n)}return(l,d={})=>{R_(l,C=>C.filter(O=>O!==Hr));const{name:u,slot:f,skipVariantsResolver:p,skipSx:y,overridesResolver:w=Nx(Pg(f)),...b}=d,m=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let P=dl;f==="Root"||f==="root"?P=o:f?P=r:jx(l)&&(P=void 0);const D=yg(l,{shouldForwardProp:P,label:$x(u,f),...b}),x=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(A){return ul(A,C)};if(Eo(C)){const O=Eg(C);return O.variants?function(F){return ul(F,O)}:O.style}return C},S=(...C)=>{const O=[],A=C.map(x),F=[];if(O.push(i),u&&w&&F.push(function(K){const q=K.theme.components?.[u]?.styleOverrides;if(!q)return null;const Y={};for(const z in q)Y[z]=ul(K,q[z]);return w(K,Y)}),u&&!m&&F.push(function(K){const q=K.theme?.components?.[u]?.variants;return q?kg(K,q):null}),v||F.push(Hr),Array.isArray(A[0])){const $=A.shift(),K=new Array(O.length).fill(""),G=new Array(F.length).fill("");let q;q=[...K,...$,...G],q.raw=[...K,...$.raw,...G],O.unshift(q)}const B=[...O,...A,...F],R=D(...B);return l.muiName&&(R.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=Lx(u,f,l)),R};return D.withConfig&&(S.withConfig=D.withConfig),S}}function Lx(e,t,n){return e?`${e}${we(t||"")}`:`Styled(${Mx(n)})`}function $x(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Pg(t||"Root")}`),n}function Vx(e){for(const t in e)return!1;return!0}function jx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pg(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ui(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],a=t[r];if(!a)n[r]=i||{};else if(!i)n[r]=a;else{n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const d=l;n[r][d]=Ui(i[d],a[d])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function Dg(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Ui(t.components[n].defaultProps,o)}function Bx({props:e,name:t,defaultTheme:n,themeId:o}){let r=ec(n);return r=r[o]||r,Dg({theme:r,name:t,props:e})}const cn=typeof window<"u"?T.useLayoutEffect:T.useEffect;function Wx(e,t,n,o,r){const[i,a]=T.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return cn(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),i}const Hx={...T},Og=Hx.useSyncExternalStore;function zx(e,t,n,o,r){const i=T.useCallback(()=>t,[t]),a=T.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:f}=o(e);return()=>f}return i},[i,e,o,r,n]),[l,d]=T.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addEventListener("change",p),()=>{f.removeEventListener("change",p)})]},[i,n,e]);return Og(d,l,a)}function Yx(e={}){const{themeId:t}=e;return function(o,r={}){let i=Cg();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=Dg({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===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(`
91
91
  `));let p=typeof o=="function"?o(i):o;p=p.replace(/^@media( ?)/m,""),p.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(`
92
92
  `));const w=(Og!==void 0?zx:Wx)(p,l,d,u,f);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:p,match:w}),w}}const Mg=Yx();function Ux(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Iu(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}].`),Ux(e,t,n)}function qx(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(o=>o+o)),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((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function wr(e){if(e.type)return e;if(e.charAt(0)==="#")return wr(qx(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.
93
93
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Io(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${r}\` color space.
94
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Io(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const Gx=e=>{const t=wr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},ki=(e,t)=>{try{return Gx(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function tc(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Ig(e){e=wr(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(u,f=(u+n/30)%12)=>r-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),tc({type:l,values:d})}function qd(e){e=wr(e);let t=e.type==="hsl"||e.type==="hsla"?wr(Ig(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 fp(e,t){const n=qd(e),o=qd(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function tt(e,t){return e=wr(e),t=Iu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,tc(e)}function Ua(e,t,n){try{return tt(e,t)}catch{return e}}function qi(e,t){if(e=wr(e),t=Iu(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 tc(e)}function Pt(e,t,n){try{return qi(e,t)}catch{return e}}function Gi(e,t){if(e=wr(e),t=Iu(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 tc(e)}function Dt(e,t,n){try{return Gi(e,t)}catch{return e}}function Kx(e,t=.15){return qd(e)>.5?qi(e,t):Gi(e,t)}function qa(e,t,n){try{return Kx(e,t)}catch{return e}}function _r(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Xx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Ng(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;const d=i.type;return typeof d=="function"&&!Xx(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ys=_r(s.element,Ng);Ys.isRequired=_r(s.element.isRequired,Ng);function Zx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Qx(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!Zx(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const nc=_r(s.elementType,Qx),Jx="exact-prop: ​";function Ag(e){return process.env.NODE_ENV==="production"?e:{...e,[Jx]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}function nr(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=r||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const zt=s.oneOfType([s.func,s.object]);function pp(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Fg(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function Ii(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function _n(e){return e&&e.ownerDocument||document}function or(e){return _n(e).defaultView||window}function mp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let gp=0;function eR(e){const[t,n]=T.useState(e),o=e||t;return T.useEffect(()=>{t==null&&(gp+=1,n(`mui-${gp}`))},[t]),o}const tR={...T},yp=tR.useId;function ar(e){if(yp!==void 0){const t=yp();return e??t}return eR(e)}function nR(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=r||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function fo({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=T.useRef(e!==void 0),[i,a]=T.useState(t),l=r?e:i;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{r!==(e!==void 0)&&console.error([`MUI: A component is changing the ${r?"":"un"}controlled ${o} state of ${n} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
94
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Io(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const Gx=e=>{const t=wr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},ki=(e,t)=>{try{return Gx(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function tc(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Ig(e){e=wr(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(u,f=(u+n/30)%12)=>r-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),tc({type:l,values:d})}function qd(e){e=wr(e);let t=e.type==="hsl"||e.type==="hsla"?wr(Ig(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 fp(e,t){const n=qd(e),o=qd(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function tt(e,t){return e=wr(e),t=Iu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,tc(e)}function Ua(e,t,n){try{return tt(e,t)}catch{return e}}function qi(e,t){if(e=wr(e),t=Iu(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 tc(e)}function Pt(e,t,n){try{return qi(e,t)}catch{return e}}function Gi(e,t){if(e=wr(e),t=Iu(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 tc(e)}function Dt(e,t,n){try{return Gi(e,t)}catch{return e}}function Kx(e,t=.15){return qd(e)>.5?qi(e,t):Gi(e,t)}function qa(e,t,n){try{return Kx(e,t)}catch{return e}}function _r(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Xx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Ng(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;const d=i.type;return typeof d=="function"&&!Xx(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ys=_r(s.element,Ng);Ys.isRequired=_r(s.element.isRequired,Ng);function Zx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Qx(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!Zx(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const nc=_r(s.elementType,Qx),Jx="exact-prop: ​";function Ag(e){return process.env.NODE_ENV==="production"?e:{...e,[Jx]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}function nr(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=r||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const zt=s.oneOfType([s.func,s.object]);function pp(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Fg(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function Ii(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function _n(e){return e&&e.ownerDocument||document}function or(e){return _n(e).defaultView||window}function mp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let gp=0;function eR(e){const[t,n]=T.useState(e),o=e||t;return T.useEffect(()=>{t==null&&(gp+=1,n(`mui-${gp}`))},[t]),o}const tR={...T},yp=tR.useId;function ar(e){if(yp!==void 0){const t=yp();return e??t}return eR(e)}function nR(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=r||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function po({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=T.useRef(e!==void 0),[i,a]=T.useState(t),l=r?e:i;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{r!==(e!==void 0)&&console.error([`MUI: A component is changing the ${r?"":"un"}controlled ${o} state of ${n} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
95
95
  `))},[o,n,e]);const{current:u}=T.useRef(t);T.useEffect(()=>{!r&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
96
96
  `))},[JSON.stringify(t)])}const d=T.useCallback(u=>{r||a(u)},[]);return[l,d]}function Te(e){const t=T.useRef(e);return cn(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function ct(...e){const t=T.useRef(void 0),n=T.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i?.())}},e);return T.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const vp={};function Lg(e,t){const n=T.useRef(vp);return n.current===vp&&(n.current=e(t)),n}const oR=[];function rR(e){T.useEffect(e,oR)}class oc{static create(){return new oc}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function bs(){const e=Lg(oc.create).current;return rR(e.disposeEffect),e}function _l(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(`
97
97
  `))}return!1}function $g(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const sR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function iR(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 Vg(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=iR(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function jg(e,t,...n){return e[t]===void 0?null:Vg(e,t,...n)}function Gd(){return null}jg.isRequired=Vg;Gd.isRequired=Gd;const Bg=process.env.NODE_ENV==="production"?Gd:jg;function Ie(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let d=0;d<i.length;d+=1){const u=i[d];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[r]=a}return o}function aR(e){return typeof e=="string"}function ws(e,t,n){return e===void 0||aR(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Wg(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function bp(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 Hg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const w=Se(n?.className,i,r?.className,o?.className),b={...n?.style,...r?.style,...o?.style},m={...n,...r,...o};return w.length>0&&(m.className=w),Object.keys(b).length>0&&(m.style=b),{props:m,internalRef:void 0}}const a=Wg({...r,...o}),l=bp(o),d=bp(r),u=t(a),f=Se(u?.className,n?.className,i,r?.className,o?.className),p={...u?.style,...n?.style,...r?.style,...o?.style},y={...u,...n,...d,...l};return f.length>0&&(y.className=f),Object.keys(p).length>0&&(y.style=p),{props:y,internalRef:u.ref}}function rc(e,t,n){return typeof e=="function"?e(t,n):e}function pt(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:rc(n,o),{props:l,internalRef:d}=Hg({...i,externalSlotProps:a}),u=ct(d,a?.ref,e.additionalProps?.ref);return ws(t,{...l,ref:u},o)}function Us(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}const lR=T.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const oo=()=>T.useContext(lR)??!1,cR=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function dR(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?Ui(r.defaultProps,o):!r.styleOverrides&&!r.variants?Ui(r,o):o}function uR({props:e,name:t}){const n=T.useContext(cR);return dR({props:e,name:t,theme:{components:n}})}const wp={theme:void 0};function hR(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(wp.theme=r.theme,i=Eg(e(wp)),t=i,n=r.theme),i}}function fR(e=""){function t(...o){if(!o.length)return"";const r=o[0];return typeof r=="string"&&!r.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}-`:""}${r}${t(...o.slice(1))})`:`, ${r}`}return(o,...r)=>`var(--${e?`${e}-`:""}${o}${t(...r)})`}const Cp=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})},pR=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([l,d])=>{(!n||n&&!n([...i,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?o(d,[...i,l],Array.isArray(d)?[...a,l]:a):t([...i,l],d,a))})}o(e)},mR=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function gd(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return pR(e,(l,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!o||!o(l,d))){const f=`--${n?`${n}-`:""}${l.join("-")}`,p=mR(l,d);Object.assign(r,{[f]:p}),Cp(i,l,`var(${f})`,u),Cp(a,l,`var(${f}, ${p})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function gR(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...d}=e,{vars:u,css:f,varsWithDefaults:p}=gd(d,t);let y=p;const w={},{[l]:b,...m}=i;if(Object.entries(m||{}).forEach(([x,S])=>{const{vars:C,css:O,varsWithDefaults:A}=gd(S,t);y=Sn(y,A),w[x]={css:O,vars:C}}),b){const{css:x,vars:S,varsWithDefaults:C}=gd(b,t);y=Sn(y,C),w[l]={css:x,vars:S}}function v(x,S){let C=r;if(r==="class"&&(C=".%s"),r==="data"&&(C="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(C=`[${r}="%s"]`),x){if(C==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":S}};if(C)return e.defaultColorScheme===x?`:root, ${C.replace("%s",String(x))}`:C.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...u};return Object.entries(w).forEach(([,{vars:S}])=>{x=Sn(x,S)}),x},generateStyleSheets:()=>{const x=[],S=e.defaultColorScheme||"light";function C(F,B){Object.keys(B).length&&x.push(typeof F=="string"?{[F]:{...B}}:F)}C(n(void 0,{...f}),f);const{[S]:O,...A}=w;if(O){const{css:F}=O,B=i[S]?.palette?.mode,R=!o&&B?{colorScheme:B,...F}:{...F};C(n(S,{...R}),R)}return Object.entries(A).forEach(([F,{css:B}])=>{const R=i[F]?.palette?.mode,$=!o&&R?{colorScheme:R,...B}:{...B};C(n(F,{...$}),$)}),x}}}function yR(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 zg(){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:Wi.white,default:Wi.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 vR=zg();function Yg(){return{text:{primary:Wi.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:Wi.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 Sp=Yg();function _p(e,t,n,o){const r=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Gi(e.main,r):t==="dark"&&(e.dark=qi(e.main,i)))}function bR(e="light"){return e==="dark"?{main:cs[200],light:cs[50],dark:cs[400]}:{main:cs[700],light:cs[400],dark:cs[800]}}function wR(e="light"){return e==="dark"?{main:ls[200],light:ls[50],dark:ls[400]}:{main:ls[500],light:ls[300],dark:ls[700]}}function CR(e="light"){return e==="dark"?{main:as[500],light:as[300],dark:as[700]}:{main:as[700],light:as[400],dark:as[800]}}function SR(e="light"){return e==="dark"?{main:ds[400],light:ds[300],dark:ds[700]}:{main:ds[700],light:ds[500],dark:ds[900]}}function _R(e="light"){return e==="dark"?{main:us[400],light:us[300],dark:us[700]}:{main:us[800],light:us[500],dark:us[900]}}function xR(e="light"){return e==="dark"?{main:ii[400],light:ii[300],dark:ii[700]}:{main:"#ed6c02",light:ii[500],dark:ii[900]}}function Nu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||bR(t),a=e.secondary||wR(t),l=e.error||CR(t),d=e.info||SR(t),u=e.success||_R(t),f=e.warning||xR(t);function p(m){const v=fp(m,Sp.text.primary)>=n?Sp.text.primary:vR.text.primary;if(process.env.NODE_ENV!=="production"){const P=fp(m,v);P<3&&console.error([`MUI: The contrast ratio of ${P}:1 for ${v} 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(`
@@ -110,7 +110,7 @@ const theme1 = createTheme({ palette: {
110
110
  const theme2 = createTheme({ palette: {
111
111
  primary: { main: green[500] },
112
112
  } });`:Io(12,v?` (${v})`:"",JSON.stringify(m.main)));return _p(m,"light",D,o),_p(m,"dark",x,o),m.contrastText||(m.contrastText=p(m.main)),m};let w;return t==="light"?w=zg():t==="dark"&&(w=Yg()),process.env.NODE_ENV!=="production"&&(w||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Sn({common:{...Wi},mode:t,primary:y({color:i,name:"primary"}),secondary:y({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:l,name:"error"}),warning:y({color:f,name:"warning"}),info:y({color:d,name:"info"}),success:y({color:u,name:"success"}),grey:y0,contrastThreshold:n,getContrastText:p,augmentColor:y,tonalOffset:o,...w},r)}function RR(e){const t={};return Object.entries(e).forEach(o=>{const[r,i]=o;typeof i=="object"&&(t[r]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function TR(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function ER(e){return Math.round(e*1e5)/1e5}const xp={textTransform:"uppercase"},Rp='"Roboto", "Helvetica", "Arial", sans-serif';function kR(e,t){const{fontFamily:n=Rp,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:u,pxToRem:f,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=o/14,w=f||(v=>`${v/d*y}rem`),b=(v,P,D,x,S)=>({fontFamily:n,fontWeight:v,fontSize:w(P),lineHeight:D,...n===Rp?{letterSpacing:`${ER(x/P)}em`}:{},...S,...u}),m={h1:b(r,96,1.167,-1.5),h2:b(r,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,xp),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,xp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Sn({htmlFontSize:d,pxToRem:w,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...m},p,{clone:!1})}const PR=.2,DR=.14,OR=.12;function jt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${PR})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${DR})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${OR})`].join(",")}const MR=["none",jt(0,2,1,-1,0,1,1,0,0,1,3,0),jt(0,3,1,-2,0,2,2,0,0,1,5,0),jt(0,3,3,-2,0,3,4,0,0,1,8,0),jt(0,2,4,-1,0,4,5,0,0,1,10,0),jt(0,3,5,-1,0,5,8,0,0,1,14,0),jt(0,3,5,-1,0,6,10,0,0,1,18,0),jt(0,4,5,-2,0,7,10,1,0,2,16,1),jt(0,5,5,-3,0,8,10,1,0,3,14,2),jt(0,5,6,-3,0,9,12,1,0,3,16,2),jt(0,6,6,-3,0,10,14,1,0,4,18,3),jt(0,6,7,-4,0,11,15,1,0,4,20,3),jt(0,7,8,-4,0,12,17,2,0,5,22,4),jt(0,7,8,-4,0,13,19,2,0,5,24,4),jt(0,7,9,-4,0,14,21,2,0,5,26,4),jt(0,8,9,-5,0,15,22,2,0,6,28,5),jt(0,8,10,-5,0,16,24,2,0,6,30,5),jt(0,8,11,-5,0,17,26,2,0,6,32,5),jt(0,9,11,-5,0,18,28,2,0,7,34,6),jt(0,9,12,-6,0,19,29,2,0,7,36,6),jt(0,10,13,-6,0,20,31,3,0,8,38,7),jt(0,10,13,-6,0,21,33,3,0,8,40,7),jt(0,10,14,-6,0,22,35,3,0,8,42,7),jt(0,11,14,-7,0,23,36,3,0,9,44,8),jt(0,11,15,-7,0,24,38,3,0,9,46,8)],IR={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)"},NR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Tp(e){return`${Math.round(e)}ms`}function AR(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function FR(e){const t={...IR,...e.easing},n={...NR,...e.duration};return{getAutoHeightDuration:AR,create:(r=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:d=0,...u}=i;if(process.env.NODE_ENV!=="production"){const f=y=>typeof y=="string",p=y=>!Number.isNaN(parseFloat(y));!f(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(a)&&!f(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),f(l)||console.error('MUI: Argument "easing" must be a string.'),!p(d)&&!f(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="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(`
113
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:Tp(a)} ${l} ${typeof d=="string"?d:Tp(d)}`).join(",")},...e,easing:t,duration:n}}const LR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function $R(e){return To(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ug(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!$R(l)||a.startsWith("unstable_")?delete o[a]:To(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
113
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:Tp(a)} ${l} ${typeof d=="string"?d:Tp(d)}`).join(",")},...e,easing:t,duration:n}}const LR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function $R(e){return Eo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ug(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!$R(l)||a.startsWith("unstable_")?delete o[a]:Eo(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
114
114
 
115
115
  const theme = ${JSON.stringify(t,null,2)};
116
116
 
@@ -119,7 +119,7 @@ theme.transitions = createTransitions(theme.transitions || {});
119
119
 
120
120
  export default theme;`}function Kd(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:d,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Io(20));const f=Nu(i),p=Mu(e);let y=Sn(p,{mixins:TR(p.breakpoints,o),palette:f,shadows:MR.slice(),typography:kR(f,l),transitions:FR(a),zIndex:{...LR}});if(y=Sn(y,u),y=t.reduce((w,b)=>Sn(w,b),y),process.env.NODE_ENV!=="production"){const w=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(m,v)=>{let P;for(P in m){const D=m[P];if(w.includes(P)&&Object.keys(D).length>0){if(process.env.NODE_ENV!=="production"){const x=Me("",P);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${P}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:D}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
121
121
  `))}m[P]={}}}};Object.keys(y.components).forEach(m=>{const v=y.components[m].styleOverrides;v&&m.startsWith("Mui")&&b(v,m)})}return y.unstable_sxConfig={...pa,...u?.unstable_sxConfig},y.unstable_sx=function(b){return Hr({sx:b,theme:this})},y.toRuntimeSource=Ug,y}function Xd(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 VR=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Xd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function qg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Gg(e){return e==="dark"?VR:[]}function jR(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=Nu(t);return{palette:i,opacity:{...qg(i.mode),...n},overlays:o||Gg(i.mode),...r}}function BR(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const WR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],HR=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return WR(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function zR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ue(e,t,n){!e[t]&&n&&(e[t]=n)}function Pi(e){return!e||!e.startsWith("hsl")?e:Ig(e)}function Uo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ki(Pi(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().
122
- 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 YR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const bo=e=>{try{return e()}catch{}},UR=(e="mui")=>fR(e);function yd(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=jR({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=Kd({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...qg(r),...t?.opacity},overlays:t?.overlays||Gg(r)},a}function qR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=BR,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),y=UR(i),{[p]:w,light:b,dark:m,...v}=n,P={...v};let D=w;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Io(21,p));const x=yd(P,D,u,p);b&&!P.light&&yd(P,b,void 0,"light"),m&&!P.dark&&yd(P,m,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:P,font:{...RR(x.typography),...x.font},spacing:YR(u.spacing)};Object.keys(S.colorSchemes).forEach(B=>{const R=S.colorSchemes[B].palette,$=K=>{const G=K.split("-"),q=G[1],Y=G[2];return y(K,R[q][Y])};if(R.mode==="light"&&(ue(R.common,"background","#fff"),ue(R.common,"onBackground","#000")),R.mode==="dark"&&(ue(R.common,"background","#000"),ue(R.common,"onBackground","#fff")),zR(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ue(R.Alert,"errorColor",Pt(R.error.light,.6)),ue(R.Alert,"infoColor",Pt(R.info.light,.6)),ue(R.Alert,"successColor",Pt(R.success.light,.6)),ue(R.Alert,"warningColor",Pt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-main")),ue(R.Alert,"infoFilledBg",$("palette-info-main")),ue(R.Alert,"successFilledBg",$("palette-success-main")),ue(R.Alert,"warningFilledBg",$("palette-warning-main")),ue(R.Alert,"errorFilledColor",bo(()=>R.getContrastText(R.error.main))),ue(R.Alert,"infoFilledColor",bo(()=>R.getContrastText(R.info.main))),ue(R.Alert,"successFilledColor",bo(()=>R.getContrastText(R.success.main))),ue(R.Alert,"warningFilledColor",bo(()=>R.getContrastText(R.warning.main))),ue(R.Alert,"errorStandardBg",Dt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Dt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Dt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Dt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-100")),ue(R.Avatar,"defaultBg",$("palette-grey-400")),ue(R.Button,"inheritContainedBg",$("palette-grey-300")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ue(R.Chip,"defaultBorder",$("palette-grey-400")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-700")),ue(R.Chip,"defaultIconColor",$("palette-grey-700")),ue(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(R.LinearProgress,"primaryBg",Dt(R.primary.main,.62)),ue(R.LinearProgress,"secondaryBg",Dt(R.secondary.main,.62)),ue(R.LinearProgress,"errorBg",Dt(R.error.main,.62)),ue(R.LinearProgress,"infoBg",Dt(R.info.main,.62)),ue(R.LinearProgress,"successBg",Dt(R.success.main,.62)),ue(R.LinearProgress,"warningBg",Dt(R.warning.main,.62)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ue(R.Slider,"primaryTrack",Dt(R.primary.main,.62)),ue(R.Slider,"secondaryTrack",Dt(R.secondary.main,.62)),ue(R.Slider,"errorTrack",Dt(R.error.main,.62)),ue(R.Slider,"infoTrack",Dt(R.info.main,.62)),ue(R.Slider,"successTrack",Dt(R.success.main,.62)),ue(R.Slider,"warningTrack",Dt(R.warning.main,.62));const K=qa(R.background.default,.8);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",bo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",qa(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-400")),ue(R.StepContent,"border",$("palette-grey-400")),ue(R.Switch,"defaultColor",$("palette-common-white")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-100")),ue(R.Switch,"primaryDisabledColor",Dt(R.primary.main,.62)),ue(R.Switch,"secondaryDisabledColor",Dt(R.secondary.main,.62)),ue(R.Switch,"errorDisabledColor",Dt(R.error.main,.62)),ue(R.Switch,"infoDisabledColor",Dt(R.info.main,.62)),ue(R.Switch,"successDisabledColor",Dt(R.success.main,.62)),ue(R.Switch,"warningDisabledColor",Dt(R.warning.main,.62)),ue(R.TableCell,"border",Dt(Ua(R.divider,1),.88)),ue(R.Tooltip,"bg",Ua(R.grey[700],.92))}if(R.mode==="dark"){ue(R.Alert,"errorColor",Dt(R.error.light,.6)),ue(R.Alert,"infoColor",Dt(R.info.light,.6)),ue(R.Alert,"successColor",Dt(R.success.light,.6)),ue(R.Alert,"warningColor",Dt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-dark")),ue(R.Alert,"infoFilledBg",$("palette-info-dark")),ue(R.Alert,"successFilledBg",$("palette-success-dark")),ue(R.Alert,"warningFilledBg",$("palette-warning-dark")),ue(R.Alert,"errorFilledColor",bo(()=>R.getContrastText(R.error.dark))),ue(R.Alert,"infoFilledColor",bo(()=>R.getContrastText(R.info.dark))),ue(R.Alert,"successFilledColor",bo(()=>R.getContrastText(R.success.dark))),ue(R.Alert,"warningFilledColor",bo(()=>R.getContrastText(R.warning.dark))),ue(R.Alert,"errorStandardBg",Pt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Pt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Pt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Pt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-900")),ue(R.AppBar,"darkBg",$("palette-background-paper")),ue(R.AppBar,"darkColor",$("palette-text-primary")),ue(R.Avatar,"defaultBg",$("palette-grey-600")),ue(R.Button,"inheritContainedBg",$("palette-grey-800")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-700")),ue(R.Chip,"defaultBorder",$("palette-grey-700")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-300")),ue(R.Chip,"defaultIconColor",$("palette-grey-300")),ue(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(R.LinearProgress,"primaryBg",Pt(R.primary.main,.5)),ue(R.LinearProgress,"secondaryBg",Pt(R.secondary.main,.5)),ue(R.LinearProgress,"errorBg",Pt(R.error.main,.5)),ue(R.LinearProgress,"infoBg",Pt(R.info.main,.5)),ue(R.LinearProgress,"successBg",Pt(R.success.main,.5)),ue(R.LinearProgress,"warningBg",Pt(R.warning.main,.5)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ue(R.Slider,"primaryTrack",Pt(R.primary.main,.5)),ue(R.Slider,"secondaryTrack",Pt(R.secondary.main,.5)),ue(R.Slider,"errorTrack",Pt(R.error.main,.5)),ue(R.Slider,"infoTrack",Pt(R.info.main,.5)),ue(R.Slider,"successTrack",Pt(R.success.main,.5)),ue(R.Slider,"warningTrack",Pt(R.warning.main,.5));const K=qa(R.background.default,.98);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",bo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",qa(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-600")),ue(R.StepContent,"border",$("palette-grey-600")),ue(R.Switch,"defaultColor",$("palette-grey-300")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-600")),ue(R.Switch,"primaryDisabledColor",Pt(R.primary.main,.55)),ue(R.Switch,"secondaryDisabledColor",Pt(R.secondary.main,.55)),ue(R.Switch,"errorDisabledColor",Pt(R.error.main,.55)),ue(R.Switch,"infoDisabledColor",Pt(R.info.main,.55)),ue(R.Switch,"successDisabledColor",Pt(R.success.main,.55)),ue(R.Switch,"warningDisabledColor",Pt(R.warning.main,.55)),ue(R.TableCell,"border",Pt(Ua(R.divider,1),.68)),ue(R.Tooltip,"bg",Ua(R.grey[700],.92))}Uo(R.background,"default"),Uo(R.background,"paper"),Uo(R.common,"background"),Uo(R.common,"onBackground"),Uo(R,"divider"),Object.keys(R).forEach(K=>{const G=R[K];G&&typeof G=="object"&&(G.main&&ue(R[K],"mainChannel",ki(Pi(G.main))),G.light&&ue(R[K],"lightChannel",ki(Pi(G.light))),G.dark&&ue(R[K],"darkChannel",ki(Pi(G.dark))),G.contrastText&&ue(R[K],"contrastTextChannel",ki(Pi(G.contrastText))),K==="text"&&(Uo(R[K],"primary"),Uo(R[K],"secondary")),K==="action"&&(G.active&&Uo(R[K],"active"),G.selected&&Uo(R[K],"selected")))})}),S=t.reduce((B,R)=>Sn(B,R),S);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:HR(S)},{vars:O,generateThemeVars:A,generateStyleSheets:F}=gR(S,C);return S.vars=O,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([B,R])=>{S[B]=R}),S.generateThemeVars=A,S.generateStyleSheets=F,S.generateSpacing=function(){return wg(u.spacing,Du(this))},S.getColorSchemeSelector=yR(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...pa,...u?.unstable_sxConfig},S.unstable_sx=function(R){return Hr({sx:R,theme:this})},S.toRuntimeSource=Ug,S}function Ep(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Nu({...n===!0?{}:n.palette,mode:t})})}function Kg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",d=r?.[l],u={...r,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Kd(e,...t);let f=n;"palette"in e||u[l]&&(u[l]!==!0?f=u[l].palette:l==="dark"&&(f={mode:"dark"}));const p=Kd({...e,palette:f},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Ep(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Ep(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),qR({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}function GR(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function KR(e){return parseFloat(e)}const sc=Kg();function Gr(){const e=ec(sc);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[ca]||e}function Nt({props:e,name:t}){return Bx({props:e,name:t,defaultTheme:sc,themeId:ca})}function Xg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>Xg(e)&&e!=="classes",ie=Fx({themeId:ca,defaultTheme:sc,rootShouldForwardProp:Tn});function Zg(e){return E.jsx(Sg,{...e,defaultTheme:sc,themeId:ca})}process.env.NODE_ENV!=="production"&&(Zg.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function XR(e){return function(n){return E.jsx(Zg,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function ZR(){return _g}const ot=hR;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ke(e){return uR(e)}function QR(e){return Me("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JR=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${we(t)}`,`fontSize${we(n)}`]};return Ie(r,QR,o)},eT=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${we(n.color)}`],t[`fontSize${we(n.fontSize)}`]]}})(ot(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ki=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:y="0 0 24 24",...w}=o,b=T.isValidElement(r)&&r.type==="svg",m={...o,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const P=JR(m);return E.jsxs(eT,{as:l,className:Se(P.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...w,...b&&r.props,ownerState:m,children:[b?r.props.children:r,p?E.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Ki.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});Ki&&(Ki.muiName="SvgIcon");function pn(e,t){function n(o,r){return E.jsx(Ki,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ki.muiName,T.memo(T.forwardRef(n))}var Ga={exports:{}},xt={};/**
122
+ 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 YR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const wo=e=>{try{return e()}catch{}},UR=(e="mui")=>fR(e);function yd(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=jR({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=Kd({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...qg(r),...t?.opacity},overlays:t?.overlays||Gg(r)},a}function qR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=BR,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),y=UR(i),{[p]:w,light:b,dark:m,...v}=n,P={...v};let D=w;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Io(21,p));const x=yd(P,D,u,p);b&&!P.light&&yd(P,b,void 0,"light"),m&&!P.dark&&yd(P,m,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:P,font:{...RR(x.typography),...x.font},spacing:YR(u.spacing)};Object.keys(S.colorSchemes).forEach(B=>{const R=S.colorSchemes[B].palette,$=K=>{const G=K.split("-"),q=G[1],Y=G[2];return y(K,R[q][Y])};if(R.mode==="light"&&(ue(R.common,"background","#fff"),ue(R.common,"onBackground","#000")),R.mode==="dark"&&(ue(R.common,"background","#000"),ue(R.common,"onBackground","#fff")),zR(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ue(R.Alert,"errorColor",Pt(R.error.light,.6)),ue(R.Alert,"infoColor",Pt(R.info.light,.6)),ue(R.Alert,"successColor",Pt(R.success.light,.6)),ue(R.Alert,"warningColor",Pt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-main")),ue(R.Alert,"infoFilledBg",$("palette-info-main")),ue(R.Alert,"successFilledBg",$("palette-success-main")),ue(R.Alert,"warningFilledBg",$("palette-warning-main")),ue(R.Alert,"errorFilledColor",wo(()=>R.getContrastText(R.error.main))),ue(R.Alert,"infoFilledColor",wo(()=>R.getContrastText(R.info.main))),ue(R.Alert,"successFilledColor",wo(()=>R.getContrastText(R.success.main))),ue(R.Alert,"warningFilledColor",wo(()=>R.getContrastText(R.warning.main))),ue(R.Alert,"errorStandardBg",Dt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Dt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Dt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Dt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-100")),ue(R.Avatar,"defaultBg",$("palette-grey-400")),ue(R.Button,"inheritContainedBg",$("palette-grey-300")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ue(R.Chip,"defaultBorder",$("palette-grey-400")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-700")),ue(R.Chip,"defaultIconColor",$("palette-grey-700")),ue(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(R.LinearProgress,"primaryBg",Dt(R.primary.main,.62)),ue(R.LinearProgress,"secondaryBg",Dt(R.secondary.main,.62)),ue(R.LinearProgress,"errorBg",Dt(R.error.main,.62)),ue(R.LinearProgress,"infoBg",Dt(R.info.main,.62)),ue(R.LinearProgress,"successBg",Dt(R.success.main,.62)),ue(R.LinearProgress,"warningBg",Dt(R.warning.main,.62)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ue(R.Slider,"primaryTrack",Dt(R.primary.main,.62)),ue(R.Slider,"secondaryTrack",Dt(R.secondary.main,.62)),ue(R.Slider,"errorTrack",Dt(R.error.main,.62)),ue(R.Slider,"infoTrack",Dt(R.info.main,.62)),ue(R.Slider,"successTrack",Dt(R.success.main,.62)),ue(R.Slider,"warningTrack",Dt(R.warning.main,.62));const K=qa(R.background.default,.8);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",wo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",qa(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-400")),ue(R.StepContent,"border",$("palette-grey-400")),ue(R.Switch,"defaultColor",$("palette-common-white")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-100")),ue(R.Switch,"primaryDisabledColor",Dt(R.primary.main,.62)),ue(R.Switch,"secondaryDisabledColor",Dt(R.secondary.main,.62)),ue(R.Switch,"errorDisabledColor",Dt(R.error.main,.62)),ue(R.Switch,"infoDisabledColor",Dt(R.info.main,.62)),ue(R.Switch,"successDisabledColor",Dt(R.success.main,.62)),ue(R.Switch,"warningDisabledColor",Dt(R.warning.main,.62)),ue(R.TableCell,"border",Dt(Ua(R.divider,1),.88)),ue(R.Tooltip,"bg",Ua(R.grey[700],.92))}if(R.mode==="dark"){ue(R.Alert,"errorColor",Dt(R.error.light,.6)),ue(R.Alert,"infoColor",Dt(R.info.light,.6)),ue(R.Alert,"successColor",Dt(R.success.light,.6)),ue(R.Alert,"warningColor",Dt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-dark")),ue(R.Alert,"infoFilledBg",$("palette-info-dark")),ue(R.Alert,"successFilledBg",$("palette-success-dark")),ue(R.Alert,"warningFilledBg",$("palette-warning-dark")),ue(R.Alert,"errorFilledColor",wo(()=>R.getContrastText(R.error.dark))),ue(R.Alert,"infoFilledColor",wo(()=>R.getContrastText(R.info.dark))),ue(R.Alert,"successFilledColor",wo(()=>R.getContrastText(R.success.dark))),ue(R.Alert,"warningFilledColor",wo(()=>R.getContrastText(R.warning.dark))),ue(R.Alert,"errorStandardBg",Pt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Pt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Pt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Pt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-900")),ue(R.AppBar,"darkBg",$("palette-background-paper")),ue(R.AppBar,"darkColor",$("palette-text-primary")),ue(R.Avatar,"defaultBg",$("palette-grey-600")),ue(R.Button,"inheritContainedBg",$("palette-grey-800")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-700")),ue(R.Chip,"defaultBorder",$("palette-grey-700")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-300")),ue(R.Chip,"defaultIconColor",$("palette-grey-300")),ue(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(R.LinearProgress,"primaryBg",Pt(R.primary.main,.5)),ue(R.LinearProgress,"secondaryBg",Pt(R.secondary.main,.5)),ue(R.LinearProgress,"errorBg",Pt(R.error.main,.5)),ue(R.LinearProgress,"infoBg",Pt(R.info.main,.5)),ue(R.LinearProgress,"successBg",Pt(R.success.main,.5)),ue(R.LinearProgress,"warningBg",Pt(R.warning.main,.5)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ue(R.Slider,"primaryTrack",Pt(R.primary.main,.5)),ue(R.Slider,"secondaryTrack",Pt(R.secondary.main,.5)),ue(R.Slider,"errorTrack",Pt(R.error.main,.5)),ue(R.Slider,"infoTrack",Pt(R.info.main,.5)),ue(R.Slider,"successTrack",Pt(R.success.main,.5)),ue(R.Slider,"warningTrack",Pt(R.warning.main,.5));const K=qa(R.background.default,.98);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",wo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",qa(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-600")),ue(R.StepContent,"border",$("palette-grey-600")),ue(R.Switch,"defaultColor",$("palette-grey-300")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-600")),ue(R.Switch,"primaryDisabledColor",Pt(R.primary.main,.55)),ue(R.Switch,"secondaryDisabledColor",Pt(R.secondary.main,.55)),ue(R.Switch,"errorDisabledColor",Pt(R.error.main,.55)),ue(R.Switch,"infoDisabledColor",Pt(R.info.main,.55)),ue(R.Switch,"successDisabledColor",Pt(R.success.main,.55)),ue(R.Switch,"warningDisabledColor",Pt(R.warning.main,.55)),ue(R.TableCell,"border",Pt(Ua(R.divider,1),.68)),ue(R.Tooltip,"bg",Ua(R.grey[700],.92))}Uo(R.background,"default"),Uo(R.background,"paper"),Uo(R.common,"background"),Uo(R.common,"onBackground"),Uo(R,"divider"),Object.keys(R).forEach(K=>{const G=R[K];G&&typeof G=="object"&&(G.main&&ue(R[K],"mainChannel",ki(Pi(G.main))),G.light&&ue(R[K],"lightChannel",ki(Pi(G.light))),G.dark&&ue(R[K],"darkChannel",ki(Pi(G.dark))),G.contrastText&&ue(R[K],"contrastTextChannel",ki(Pi(G.contrastText))),K==="text"&&(Uo(R[K],"primary"),Uo(R[K],"secondary")),K==="action"&&(G.active&&Uo(R[K],"active"),G.selected&&Uo(R[K],"selected")))})}),S=t.reduce((B,R)=>Sn(B,R),S);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:HR(S)},{vars:O,generateThemeVars:A,generateStyleSheets:F}=gR(S,C);return S.vars=O,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([B,R])=>{S[B]=R}),S.generateThemeVars=A,S.generateStyleSheets=F,S.generateSpacing=function(){return wg(u.spacing,Du(this))},S.getColorSchemeSelector=yR(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...pa,...u?.unstable_sxConfig},S.unstable_sx=function(R){return Hr({sx:R,theme:this})},S.toRuntimeSource=Ug,S}function Ep(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Nu({...n===!0?{}:n.palette,mode:t})})}function Kg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",d=r?.[l],u={...r,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Kd(e,...t);let f=n;"palette"in e||u[l]&&(u[l]!==!0?f=u[l].palette:l==="dark"&&(f={mode:"dark"}));const p=Kd({...e,palette:f},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Ep(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Ep(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),qR({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}function GR(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function KR(e){return parseFloat(e)}const sc=Kg();function Gr(){const e=ec(sc);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[ca]||e}function Nt({props:e,name:t}){return Bx({props:e,name:t,defaultTheme:sc,themeId:ca})}function Xg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>Xg(e)&&e!=="classes",ie=Fx({themeId:ca,defaultTheme:sc,rootShouldForwardProp:Tn});function Zg(e){return E.jsx(Sg,{...e,defaultTheme:sc,themeId:ca})}process.env.NODE_ENV!=="production"&&(Zg.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function XR(e){return function(n){return E.jsx(Zg,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function ZR(){return _g}const ot=hR;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ke(e){return uR(e)}function QR(e){return Me("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JR=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${we(t)}`,`fontSize${we(n)}`]};return Ie(r,QR,o)},eT=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${we(n.color)}`],t[`fontSize${we(n.fontSize)}`]]}})(ot(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ki=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:y="0 0 24 24",...w}=o,b=T.isValidElement(r)&&r.type==="svg",m={...o,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const P=JR(m);return E.jsxs(eT,{as:l,className:Se(P.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...w,...b&&r.props,ownerState:m,children:[b?r.props.children:r,p?E.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Ki.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});Ki&&(Ki.muiName="SvgIcon");function pn(e,t){function n(o,r){return E.jsx(Ki,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ki.muiName,T.memo(T.forwardRef(n))}var Ga={exports:{}},xt={};/**
123
123
  * @license React
124
124
  * react-is.production.min.js
125
125
  *
@@ -135,7 +135,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
135
135
  *
136
136
  * This source code is licensed under the MIT license found in the
137
137
  * LICENSE file in the root directory of this source tree.
138
- */var Pp;function nT(){return Pp||(Pp=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b=!1,m=!1,v=!1,P=!1,D=!1,x;x=Symbol.for("react.module.reference");function S(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===n||Z===r||D||Z===o||Z===u||Z===f||P||Z===w||b||m||v||typeof Z=="object"&&Z!==null&&(Z.$$typeof===y||Z.$$typeof===p||Z.$$typeof===i||Z.$$typeof===a||Z.$$typeof===d||Z.$$typeof===x||Z.getModuleId!==void 0))}function C(Z){if(typeof Z=="object"&&Z!==null){var fe=Z.$$typeof;switch(fe){case e:var pe=Z.type;switch(pe){case n:case r:case o:case u:case f:return pe;default:var be=pe&&pe.$$typeof;switch(be){case l:case a:case d:case y:case p:case i:return be;default:return fe}}case t:return fe}}}var O=a,A=i,F=e,B=d,R=n,$=y,K=p,G=t,q=r,Y=o,z=u,ae=f,N=!1,M=!1;function L(Z){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(Z){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(Z){return C(Z)===a}function oe(Z){return C(Z)===i}function se(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function j(Z){return C(Z)===d}function ee(Z){return C(Z)===n}function J(Z){return C(Z)===y}function te(Z){return C(Z)===p}function ce(Z){return C(Z)===t}function le(Z){return C(Z)===r}function he(Z){return C(Z)===o}function H(Z){return C(Z)===u}function re(Z){return C(Z)===f}Rt.ContextConsumer=O,Rt.ContextProvider=A,Rt.Element=F,Rt.ForwardRef=B,Rt.Fragment=R,Rt.Lazy=$,Rt.Memo=K,Rt.Portal=G,Rt.Profiler=q,Rt.StrictMode=Y,Rt.Suspense=z,Rt.SuspenseList=ae,Rt.isAsyncMode=L,Rt.isConcurrentMode=W,Rt.isContextConsumer=ne,Rt.isContextProvider=oe,Rt.isElement=se,Rt.isForwardRef=j,Rt.isFragment=ee,Rt.isLazy=J,Rt.isMemo=te,Rt.isPortal=ce,Rt.isProfiler=le,Rt.isStrictMode=he,Rt.isSuspense=H,Rt.isSuspenseList=re,Rt.isValidElementType=S,Rt.typeOf=C}()),Rt}var Dp;function oT(){return Dp||(Dp=1,process.env.NODE_ENV==="production"?Ga.exports=tT():Ga.exports=nT()),Ga.exports}var Au=oT();function Ye(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Zd(e,t){return Zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Zd(e,t)}function Fu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zd(e,t)}function rT(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function sT(e,t){e.classList?e.classList.add(t):rT(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Op(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function iT(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Op(e.className,t):e.setAttribute("class",Op(e.className&&e.className.baseVal||"",t))}const Mp={disabled:!1};var aT=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,lT=process.env.NODE_ENV!=="production"?s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]):null;const xl=Fe.createContext(null);var Qg=function(t){return t.scrollTop},Di="unmounted",Ar="exited",Fr="entering",ys="entered",Qd="exiting",ro=function(e){Fu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,d;return i.appearStatus=null,o.in?l?(d=Ar,i.appearStatus=Fr):d=ys:o.unmountOnExit||o.mountOnEnter?d=Di:d=Ar,i.state={status:d},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Di?{status:Ar}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Fr&&a!==ys&&(i=Fr):(a===Fr||a===ys)&&(i=Qd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Fr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ei.findDOMNode(this);a&&Qg(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ar&&this.setState({status:Di})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,d=this.props.nodeRef?[l]:[Ei.findDOMNode(this),l],u=d[0],f=d[1],p=this.getTimeouts(),y=l?p.appear:p.enter;if(!r&&!a||Mp.disabled){this.safeSetState({status:ys},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Fr},function(){i.props.onEntering(u,f),i.onTransitionEnd(y,function(){i.safeSetState({status:ys},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Ei.findDOMNode(this);if(!i||Mp.disabled){this.safeSetState({status:Ar},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Qd},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Ar},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Ei.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=d[0],f=d[1];this.props.addEndListener(u,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Di)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Ye(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(xl.Provider,{value:null},typeof a=="function"?a(r,l):Fe.cloneElement(Fe.Children.only(a),l))},t}(Fe.Component);ro.contextType=xl;ro.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,o,r,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=aT;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function hs(){}ro.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hs,onEntering:hs,onEntered:hs,onExit:hs,onExiting:hs,onExited:hs};ro.UNMOUNTED=Di;ro.EXITED=Ar;ro.ENTERING=Fr;ro.ENTERED=ys;ro.EXITING=Qd;var cT=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return sT(t,o)})},vd=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return iT(t,o)})},Lu=function(e){Fu(t,e);function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1];o.removeClasses(f,"exit"),o.addClass(f,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,d)},o.onEntering=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.addClass(f,y,"active"),o.props.onEntering&&o.props.onEntering(l,d)},o.onEntered=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.removeClasses(f,y),o.addClass(f,y,"done"),o.props.onEntered&&o.props.onEntered(l,d)},o.onExit=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var d=o.resolveArguments(l),u=d[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,d){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,d]},o.getClassNames=function(l){var d=o.props.classNames,u=typeof d=="string",f=u&&d?d+"-":"",p=u?""+f+l:d[l],y=u?p+"-active":d[l+"Active"],w=u?p+"-done":d[l+"Done"];return{baseClassName:p,activeClassName:y,doneClassName:w}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],d=this.getClassNames("enter"),u=d.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&Qg(r),l&&(this.appliedClasses[i][a]=l,cT(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,d=a.active,u=a.done;this.appliedClasses[i]={},l&&vd(r,l),d&&vd(r,d),u&&vd(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Ye(r,["classNames"]);return Fe.createElement(ro,Q({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Fe.Component);Lu.defaultProps={classNames:""};Lu.propTypes=process.env.NODE_ENV!=="production"?Q({},ro.propTypes,{classNames:lT,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function dT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(e,t){var n=function(i){return t&&Fe.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Fe.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function uT(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var d in t){if(o[d])for(a=0;a<o[d].length;a++){var u=o[d][a];l[o[d][a]]=n(u)}l[d]=n(d)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function $r(e,t,n){return n[t]!=null?n[t]:e.props[t]}function hT(e,t){return $u(e.children,function(n){return Fe.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:$r(n,"appear",e),enter:$r(n,"enter",e),exit:$r(n,"exit",e)})})}function fT(e,t,n){var o=$u(e.children),r=uT(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(Fe.isValidElement(a)){var l=i in t,d=i in o,u=t[i],f=Fe.isValidElement(u)&&!u.props.in;d&&(!l||f)?r[i]=Fe.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:$r(a,"exit",e),enter:$r(a,"enter",e)}):!d&&l&&!f?r[i]=Fe.cloneElement(a,{in:!1}):d&&l&&Fe.isValidElement(u)&&(r[i]=Fe.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:$r(a,"exit",e),enter:$r(a,"enter",e)}))}}),r}var pT=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mT={component:"div",childFactory:function(t){return t}},ma=function(e){Fu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(dT(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}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(r,i){var a=i.children,l=i.handleExited,d=i.firstRender;return{children:d?hT(r,l):fT(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=$u(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var d=Q({},l.children);return delete d[r.key],{children:d}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Ye(r,["component","childFactory"]),d=this.state.contextValue,u=pT(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?Fe.createElement(xl.Provider,{value:d},u):Fe.createElement(xl.Provider,{value:d},Fe.createElement(i,l,u))},t}(Fe.Component);ma.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};ma.defaultProps=mT;const Jg=e=>e.scrollTop;function Rl(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function gT(e){return Me("MuiPaper",e)}Pe("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 yT=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ie(i,gT,r)},vT=ie("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}`]]}})(ot(({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)"}}]}))),qs=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiPaper"}),r=Gr(),{className:i,component:a="div",elevation:l=1,square:d=!1,variant:u="elevation",...f}=o,p={...o,component:a,elevation:l,square:d,variant:u},y=yT(p);return process.env.NODE_ENV!=="production"&&r.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(`
138
+ */var Pp;function nT(){return Pp||(Pp=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b=!1,m=!1,v=!1,P=!1,D=!1,x;x=Symbol.for("react.module.reference");function S(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===n||Z===r||D||Z===o||Z===u||Z===f||P||Z===w||b||m||v||typeof Z=="object"&&Z!==null&&(Z.$$typeof===y||Z.$$typeof===p||Z.$$typeof===i||Z.$$typeof===a||Z.$$typeof===d||Z.$$typeof===x||Z.getModuleId!==void 0))}function C(Z){if(typeof Z=="object"&&Z!==null){var fe=Z.$$typeof;switch(fe){case e:var pe=Z.type;switch(pe){case n:case r:case o:case u:case f:return pe;default:var be=pe&&pe.$$typeof;switch(be){case l:case a:case d:case y:case p:case i:return be;default:return fe}}case t:return fe}}}var O=a,A=i,F=e,B=d,R=n,$=y,K=p,G=t,q=r,Y=o,z=u,ae=f,N=!1,M=!1;function L(Z){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(Z){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(Z){return C(Z)===a}function oe(Z){return C(Z)===i}function se(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function j(Z){return C(Z)===d}function ee(Z){return C(Z)===n}function J(Z){return C(Z)===y}function te(Z){return C(Z)===p}function ce(Z){return C(Z)===t}function le(Z){return C(Z)===r}function he(Z){return C(Z)===o}function H(Z){return C(Z)===u}function re(Z){return C(Z)===f}Rt.ContextConsumer=O,Rt.ContextProvider=A,Rt.Element=F,Rt.ForwardRef=B,Rt.Fragment=R,Rt.Lazy=$,Rt.Memo=K,Rt.Portal=G,Rt.Profiler=q,Rt.StrictMode=Y,Rt.Suspense=z,Rt.SuspenseList=ae,Rt.isAsyncMode=L,Rt.isConcurrentMode=W,Rt.isContextConsumer=ne,Rt.isContextProvider=oe,Rt.isElement=se,Rt.isForwardRef=j,Rt.isFragment=ee,Rt.isLazy=J,Rt.isMemo=te,Rt.isPortal=ce,Rt.isProfiler=le,Rt.isStrictMode=he,Rt.isSuspense=H,Rt.isSuspenseList=re,Rt.isValidElementType=S,Rt.typeOf=C}()),Rt}var Dp;function oT(){return Dp||(Dp=1,process.env.NODE_ENV==="production"?Ga.exports=tT():Ga.exports=nT()),Ga.exports}var Au=oT();function Ye(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Zd(e,t){return Zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Zd(e,t)}function Fu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zd(e,t)}function rT(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function sT(e,t){e.classList?e.classList.add(t):rT(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Op(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function iT(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Op(e.className,t):e.setAttribute("class",Op(e.className&&e.className.baseVal||"",t))}const Mp={disabled:!1};var aT=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,lT=process.env.NODE_ENV!=="production"?s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]):null;const xl=Ae.createContext(null);var Qg=function(t){return t.scrollTop},Di="unmounted",Ar="exited",Fr="entering",ys="entered",Qd="exiting",ro=function(e){Fu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,d;return i.appearStatus=null,o.in?l?(d=Ar,i.appearStatus=Fr):d=ys:o.unmountOnExit||o.mountOnEnter?d=Di:d=Ar,i.state={status:d},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Di?{status:Ar}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Fr&&a!==ys&&(i=Fr):(a===Fr||a===ys)&&(i=Qd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Fr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ei.findDOMNode(this);a&&Qg(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ar&&this.setState({status:Di})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,d=this.props.nodeRef?[l]:[Ei.findDOMNode(this),l],u=d[0],f=d[1],p=this.getTimeouts(),y=l?p.appear:p.enter;if(!r&&!a||Mp.disabled){this.safeSetState({status:ys},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Fr},function(){i.props.onEntering(u,f),i.onTransitionEnd(y,function(){i.safeSetState({status:ys},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Ei.findDOMNode(this);if(!i||Mp.disabled){this.safeSetState({status:Ar},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Qd},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Ar},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Ei.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=d[0],f=d[1];this.props.addEndListener(u,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Di)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Ye(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ae.createElement(xl.Provider,{value:null},typeof a=="function"?a(r,l):Ae.cloneElement(Ae.Children.only(a),l))},t}(Ae.Component);ro.contextType=xl;ro.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,o,r,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=aT;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function hs(){}ro.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hs,onEntering:hs,onEntered:hs,onExit:hs,onExiting:hs,onExited:hs};ro.UNMOUNTED=Di;ro.EXITED=Ar;ro.ENTERING=Fr;ro.ENTERED=ys;ro.EXITING=Qd;var cT=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return sT(t,o)})},vd=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return iT(t,o)})},Lu=function(e){Fu(t,e);function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1];o.removeClasses(f,"exit"),o.addClass(f,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,d)},o.onEntering=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.addClass(f,y,"active"),o.props.onEntering&&o.props.onEntering(l,d)},o.onEntered=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.removeClasses(f,y),o.addClass(f,y,"done"),o.props.onEntered&&o.props.onEntered(l,d)},o.onExit=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var d=o.resolveArguments(l),u=d[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,d){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,d]},o.getClassNames=function(l){var d=o.props.classNames,u=typeof d=="string",f=u&&d?d+"-":"",p=u?""+f+l:d[l],y=u?p+"-active":d[l+"Active"],w=u?p+"-done":d[l+"Done"];return{baseClassName:p,activeClassName:y,doneClassName:w}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],d=this.getClassNames("enter"),u=d.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&Qg(r),l&&(this.appliedClasses[i][a]=l,cT(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,d=a.active,u=a.done;this.appliedClasses[i]={},l&&vd(r,l),d&&vd(r,d),u&&vd(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Ye(r,["classNames"]);return Ae.createElement(ro,Q({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Ae.Component);Lu.defaultProps={classNames:""};Lu.propTypes=process.env.NODE_ENV!=="production"?Q({},ro.propTypes,{classNames:lT,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function dT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(e,t){var n=function(i){return t&&Ae.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Ae.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function uT(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var d in t){if(o[d])for(a=0;a<o[d].length;a++){var u=o[d][a];l[o[d][a]]=n(u)}l[d]=n(d)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function $r(e,t,n){return n[t]!=null?n[t]:e.props[t]}function hT(e,t){return $u(e.children,function(n){return Ae.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:$r(n,"appear",e),enter:$r(n,"enter",e),exit:$r(n,"exit",e)})})}function fT(e,t,n){var o=$u(e.children),r=uT(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(Ae.isValidElement(a)){var l=i in t,d=i in o,u=t[i],f=Ae.isValidElement(u)&&!u.props.in;d&&(!l||f)?r[i]=Ae.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:$r(a,"exit",e),enter:$r(a,"enter",e)}):!d&&l&&!f?r[i]=Ae.cloneElement(a,{in:!1}):d&&l&&Ae.isValidElement(u)&&(r[i]=Ae.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:$r(a,"exit",e),enter:$r(a,"enter",e)}))}}),r}var pT=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mT={component:"div",childFactory:function(t){return t}},ma=function(e){Fu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(dT(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}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(r,i){var a=i.children,l=i.handleExited,d=i.firstRender;return{children:d?hT(r,l):fT(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=$u(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var d=Q({},l.children);return delete d[r.key],{children:d}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Ye(r,["component","childFactory"]),d=this.state.contextValue,u=pT(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?Ae.createElement(xl.Provider,{value:d},u):Ae.createElement(xl.Provider,{value:d},Ae.createElement(i,l,u))},t}(Ae.Component);ma.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};ma.defaultProps=mT;const Jg=e=>e.scrollTop;function Rl(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function gT(e){return Me("MuiPaper",e)}Pe("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 yT=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ie(i,gT,r)},vT=ie("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}`]]}})(ot(({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)"}}]}))),qs=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiPaper"}),r=Gr(),{className:i,component:a="div",elevation:l=1,square:d=!1,variant:u="elevation",...f}=o,p={...o,component:a,elevation:l,square:d,variant:u},y=yT(p);return process.env.NODE_ENV!=="production"&&r.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(`
139
139
  `)),E.jsx(vT,{as:a,ownerState:p,className:Se(y.root,i),ref:n,...f,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${tt("#fff",Xd(l))}, ${tt("#fff",Xd(l))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(qs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:_r(Bg,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:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});function Dn(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:l,...d}=t,{component:u,slots:f={[e]:void 0},slotProps:p={[e]:void 0},...y}=i,w=f[e]||o,b=rc(p[e],r),{props:{component:m,...v},internalRef:P}=Hg({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),D=ct(P,b?.ref,t.ref),x=a?a(v):{},S={...r,...x},C=e==="root"?m||u:m,O=ws(w,{...e==="root"&&!u&&!f[e]&&l,...e!=="root"&&!f[e]&&l,...v,...C&&{as:C},ref:D},S);return Object.keys(x).forEach(A=>{delete O[A]}),[w,O]}class Tl{static create(){return new Tl}static use(){const t=Lg(Tl.create).current,[n,o]=T.useState(!1);return t.shouldMount=n,t.setShouldMount=o,T.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=wT(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function bT(){return Tl.use()}function wT(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function ey(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:l,onExited:d,timeout:u}=e,[f,p]=T.useState(!1),y=Se(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},b=Se(n.child,f&&n.childLeaving,o&&n.childPulsate);return!l&&!f&&p(!0),T.useEffect(()=>{if(!l&&d!=null){const m=setTimeout(d,u);return()=>{clearTimeout(m)}}},[d,l,u]),E.jsx("span",{className:y,style:w,children:E.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(ey.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const Kn=Pe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jd=550,CT=80,ST=zs`
140
140
  0% {
141
141
  transform: scale(0);
@@ -215,7 +215,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
215
215
  `))}else if(!t||typeof t.getBoundingClientRect!="function"||ak(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(`
216
216
  `))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([nr,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.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:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.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:s.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const uk=ie(hy,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lc=T.forwardRef(function(t,n){const o=oo(),r=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:d,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:m,popperRef:v,transition:P,slots:D,slotProps:x,...S}=r,C=D?.root??l?.Root,O={anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:m,popperRef:v,transition:P,...S};return E.jsx(uk,{as:a,direction:o?"rtl":"ltr",slots:{root:C},slotProps:x??d,...O,ref:n})});process.env.NODE_ENV!=="production"&&(lc.propTypes={anchorEl:s.oneOfType([nr,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([nr,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.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:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.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:s.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});const hk=pn(E.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 fk(e){return Me("MuiChip",e)}const Qe=Pe("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"]),pk=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:l,variant:d}=e,u={root:["root",d,n&&"disabled",`size${we(o)}`,`color${we(r)}`,l&&"clickable",l&&`clickableColor${we(r)}`,a&&"deletable",a&&`deletableColor${we(r)}`,`${d}${we(r)}`],label:["label",`label${we(o)}`],avatar:["avatar",`avatar${we(o)}`,`avatarColor${we(r)}`],icon:["icon",`icon${we(o)}`,`iconColor${we(i)}`],deleteIcon:["deleteIcon",`deleteIcon${we(o)}`,`deleteIconColor${we(r)}`,`deleteIcon${we(d)}Color${we(r)}`]};return Ie(u,fk,t)},mk=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:d}=n;return[{[`& .${Qe.avatar}`]:t.avatar},{[`& .${Qe.avatar}`]:t[`avatar${we(l)}`]},{[`& .${Qe.avatar}`]:t[`avatarColor${we(o)}`]},{[`& .${Qe.icon}`]:t.icon},{[`& .${Qe.icon}`]:t[`icon${we(l)}`]},{[`& .${Qe.icon}`]:t[`iconColor${we(r)}`]},{[`& .${Qe.deleteIcon}`]:t.deleteIcon},{[`& .${Qe.deleteIcon}`]:t[`deleteIcon${we(l)}`]},{[`& .${Qe.deleteIcon}`]:t[`deleteIconColor${we(o)}`]},{[`& .${Qe.deleteIcon}`]:t[`deleteIcon${we(d)}Color${we(o)}`]},t.root,t[`size${we(l)}`],t[`color${we(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${we(o)})`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${we(o)}`],t[d],t[`${d}${we(o)}`]]}})(ot(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Qe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Qe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Qe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Qe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Qe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Qe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Qe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:tt(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)`:tt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Qe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Qe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(yn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:tt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Qe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Qe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(yn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Qe.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}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(yn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Qe.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]}`,[`&.${Qe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Qe.avatar}`]:{marginLeft:4},[`& .${Qe.avatarSmall}`]:{marginLeft:2},[`& .${Qe.icon}`]:{marginLeft:4},[`& .${Qe.iconSmall}`]:{marginLeft:2},[`& .${Qe.deleteIcon}`]:{marginRight:5},[`& .${Qe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(yn()).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)`:tt(e.palette[n].main,.7)}`,[`&.${Qe.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:tt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),gk=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${we(o)}`]]}})({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 qp(e){return e.key==="Backspace"||e.key==="Delete"}const fy=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:l="default",component:d,deleteIcon:u,disabled:f=!1,icon:p,label:y,onClick:w,onDelete:b,onKeyDown:m,onKeyUp:v,size:P="medium",variant:D="filled",tabIndex:x,skipFocusWhenDisabled:S=!1,...C}=o,O=T.useRef(null),A=ct(O,n),F=M=>{M.stopPropagation(),b&&b(M)},B=M=>{M.currentTarget===M.target&&qp(M)&&M.preventDefault(),m&&m(M)},R=M=>{M.currentTarget===M.target&&b&&qp(M)&&b(M),v&&v(M)},$=a!==!1&&w?!0:a,K=$||b?Cr:d||"div",G={...o,component:K,disabled:f,size:P,color:l,iconColor:T.isValidElement(p)&&p.props.color||l,onDelete:!!b,clickable:$,variant:D},q=pk(G),Y=K===Cr?{component:d||"div",focusVisibleClassName:q.focusVisible,...b&&{disableRipple:!0}}:{};let z=null;b&&(z=u&&T.isValidElement(u)?T.cloneElement(u,{className:Se(u.props.className,q.deleteIcon),onClick:F}):E.jsx(hk,{className:Se(q.deleteIcon),onClick:F}));let ae=null;r&&T.isValidElement(r)&&(ae=T.cloneElement(r,{className:Se(q.avatar,r.props.className)}));let N=null;return p&&T.isValidElement(p)&&(N=T.cloneElement(p,{className:Se(q.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&ae&&N&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),E.jsxs(mk,{as:K,className:Se(q.root,i),disabled:$&&f?!0:void 0,onClick:w,onKeyDown:B,onKeyUp:R,ref:A,tabIndex:S&&f?-1:x,ownerState:G,...Y,...C,children:[ae||N,E.jsx(gk,{className:Se(q.label),ownerState:G,children:y}),z]})});process.env.NODE_ENV!=="production"&&(fy.propTypes={avatar:s.element,children:nR,classes:s.object,className:s.string,clickable:s.bool,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,deleteIcon:s.element,disabled:s.bool,icon:s.element,label:s.node,onClick:s.func,onDelete:s.func,onKeyDown:s.func,onKeyUp:s.func,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),skipFocusWhenDisabled:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,variant:s.oneOfType([s.oneOf(["filled","outlined"]),s.string])});function Xa(e){return parseInt(e,10)||0}const yk={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function vk(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const py=T.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...d}=t,{current:u}=T.useRef(l!=null),f=T.useRef(null),p=ct(n,f),y=T.useRef(null),w=T.useRef(null),b=T.useCallback(()=>{const P=f.current,x=or(P).getComputedStyle(P);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=w.current;S.style.width=x.width,S.value=P.value||t.placeholder||"x",S.value.slice(-1)===`
217
217
  `&&(S.value+=" ");const C=x.boxSizing,O=Xa(x.paddingBottom)+Xa(x.paddingTop),A=Xa(x.borderBottomWidth)+Xa(x.borderTopWidth),F=S.scrollHeight;S.value="x";const B=S.scrollHeight;let R=F;i&&(R=Math.max(Number(i)*B,R)),r&&(R=Math.min(Number(r)*B,R)),R=Math.max(R,B);const $=R+(C==="border-box"?O+A:0),K=Math.abs(R-F)<=1;return{outerHeightStyle:$,overflowing:K}},[r,i,t.placeholder]),m=T.useCallback(()=>{const P=b();if(vk(P))return;const D=P.outerHeightStyle,x=f.current;y.current!==D&&(y.current=D,x.style.height=`${D}px`),x.style.overflow=P.overflowing?"hidden":""},[b]);cn(()=>{const P=()=>{m()};let D;const x=()=>{cancelAnimationFrame(D),D=requestAnimationFrame(()=>{P()})},S=Fg(P),C=f.current,O=or(C);O.addEventListener("resize",S);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(process.env.NODE_ENV==="test"?x:P),A.observe(C)),()=>{S.clear(),cancelAnimationFrame(D),O.removeEventListener("resize",S),A&&A.disconnect()}},[b,m]),cn(()=>{m()});const v=P=>{u||m(),o&&o(P)};return E.jsxs(T.Fragment,{children:[E.jsx("textarea",{value:l,onChange:v,ref:p,rows:i,style:a,...d}),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...yk.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(py.propTypes={className:s.string,maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),onChange:s.func,placeholder:s.string,style:s.object,value:s.oneOfType([s.arrayOf(s.string),s.number,s.string])});function Ji(e){return typeof e=="string"}function Rr({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const va=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(va.displayName="FormControlContext");function Nn(){return T.useContext(va)}function Gp(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Pl(e,t=!1){return e&&(Gp(e.value)&&e.value!==""||t&&Gp(e.defaultValue)&&e.defaultValue!=="")}function bk(e){return e.startAdornment}function wk(e){return Me("MuiInputBase",e)}const Vs=Pe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Kp;const cc=(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${we(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},dc=(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]},Ck=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:d,hiddenLabel:u,multiline:f,readOnly:p,size:y,startAdornment:w,type:b}=e,m={root:["root",`color${we(n)}`,o&&"disabled",r&&"error",d&&"fullWidth",a&&"focused",l&&"formControl",y&&y!=="medium"&&`size${we(y)}`,f&&"multiline",w&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return Ie(m,wk,t)},uc=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cc})(ot(({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",[`&.${Vs.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%"}}]}))),hc=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:dc})(ot(({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})},o={opacity:"0 !important"},r=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] + .${Vs.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Vs.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Xp=XR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),fc=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,color:d,components:u={},componentsProps:f={},defaultValue:p,disabled:y,disableInjectingGlobalStyles:w,endAdornment:b,error:m,fullWidth:v=!1,id:P,inputComponent:D="input",inputProps:x={},inputRef:S,margin:C,maxRows:O,minRows:A,multiline:F=!1,name:B,onBlur:R,onChange:$,onClick:K,onFocus:G,onKeyDown:q,onKeyUp:Y,placeholder:z,readOnly:ae,renderSuffix:N,rows:M,size:L,slotProps:W={},slots:ne={},startAdornment:oe,type:se="text",value:j,...ee}=o,J=x.value!=null?x.value:j,{current:te}=T.useRef(J!=null),ce=T.useRef(),le=T.useCallback(Be=>{process.env.NODE_ENV!=="production"&&Be&&Be.nodeName!=="INPUT"&&!Be.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(`
218
- `))},[]),he=ct(ce,S,x.ref,le),[H,re]=T.useState(!1),Z=Nn();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(Z)return Z.registerEffect()},[Z]);const fe=Rr({props:o,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=Z?Z.focused:H,T.useEffect(()=>{!Z&&y&&H&&(re(!1),R&&R())},[Z,y,H,R]);const pe=Z&&Z.onFilled,be=Z&&Z.onEmpty,ge=T.useCallback(Be=>{Pl(Be)?pe&&pe():be&&be()},[pe,be]);cn(()=>{te&&ge({value:J})},[J,ge,te]);const Re=Be=>{G&&G(Be),x.onFocus&&x.onFocus(Be),Z&&Z.onFocus?Z.onFocus(Be):re(!0)},Ve=Be=>{R&&R(Be),x.onBlur&&x.onBlur(Be),Z&&Z.onBlur?Z.onBlur(Be):re(!1)},Ne=(Be,...rn)=>{if(!te){const un=Be.target||ce.current;if(un==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.":Io(1));ge({value:un.value})}x.onChange&&x.onChange(Be,...rn),$&&$(Be,...rn)};T.useEffect(()=>{ge(ce.current)},[]);const Je=Be=>{ce.current&&Be.currentTarget===Be.target&&ce.current.focus(),K&&K(Be)};let Ee=D,ut=x;F&&Ee==="input"&&(M?(process.env.NODE_ENV!=="production"&&(A||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ut={type:void 0,minRows:M,maxRows:M,...ut}):ut={type:void 0,maxRows:O,minRows:A,...ut},Ee=py);const Yt=Be=>{ge(Be.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};T.useEffect(()=>{Z&&Z.setAdornedStart(!!oe)},[Z,oe]);const rt={...o,color:fe.color||"primary",disabled:fe.disabled,endAdornment:b,error:fe.error,focused:fe.focused,formControl:Z,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:F,size:fe.size,startAdornment:oe,type:se},Ot=Ck(rt),Ut=ne.root||u.Root||uc,Lt=W.root||f.root||{},Ue=ne.input||u.Input||hc;return ut={...ut,...W.input??f.input},E.jsxs(T.Fragment,{children:[!w&&typeof Xp=="function"&&(Kp||(Kp=E.jsx(Xp,{}))),E.jsxs(Ut,{...Lt,ref:n,onClick:Je,...ee,...!Ji(Ut)&&{ownerState:{...rt,...Lt.ownerState}},className:Se(Ot.root,Lt.className,l,ae&&"MuiInputBase-readOnly"),children:[oe,E.jsx(va.Provider,{value:null,children:E.jsx(Ue,{"aria-invalid":fe.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:p,disabled:fe.disabled,id:P,onAnimationStart:Yt,name:B,placeholder:z,readOnly:ae,required:fe.required,rows:M,value:J,onKeyDown:q,onKeyUp:Y,type:se,...ut,...!Ji(Ue)&&{as:Ee,ownerState:{...rt,...ut.ownerState}},ref:he,className:Se(Ot.input,ut.className,ae&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:Ne,onFocus:Re})}),b,N?N({...fe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(fc.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:nc,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function Sk(e){return Me("MuiInput",e)}const ci={...Vs,...Pe("MuiInput",["root","underline","input"])};function _k(e){return Me("MuiOutlinedInput",e)}const wo={...Vs,...Pe("MuiOutlinedInput",["root","notchedOutline","input"])};function xk(e){return Me("MuiFilledInput",e)}const Pr={...Vs,...Pe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Rk=pn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Tk={entering:{opacity:1},entered:{opacity:1}},Kr=T.forwardRef(function(t,n){const o=Gr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:d,in:u,onEnter:f,onEntered:p,onEntering:y,onExit:w,onExited:b,onExiting:m,style:v,timeout:P=r,TransitionComponent:D=ro,...x}=t,S=T.useRef(null),C=ct(S,Us(l),n),O=q=>Y=>{if(q){const z=S.current;Y===void 0?q(z):q(z,Y)}},A=O(y),F=O((q,Y)=>{Jg(q);const z=Rl({style:v,timeout:P,easing:d},{mode:"enter"});q.style.webkitTransition=o.transitions.create("opacity",z),q.style.transition=o.transitions.create("opacity",z),f&&f(q,Y)}),B=O(p),R=O(m),$=O(q=>{const Y=Rl({style:v,timeout:P,easing:d},{mode:"exit"});q.style.webkitTransition=o.transitions.create("opacity",Y),q.style.transition=o.transitions.create("opacity",Y),w&&w(q)}),K=O(b),G=q=>{i&&i(S.current,q)};return E.jsx(D,{appear:a,in:u,nodeRef:S,onEnter:F,onEntered:B,onEntering:A,onExit:$,onExited:K,onExiting:R,addEndListener:G,timeout:P,...x,children:(q,Y)=>T.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!u?"hidden":void 0,...Tk[q],...v,...l.props.style},ref:C,...Y})})});process.env.NODE_ENV!=="production"&&(Kr.propTypes={addEndListener:s.func,appear:s.bool,children:Ys.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function Ek(e){return Me("MuiBackdrop",e)}Pe("MuiBackdrop",["root","invisible"]);const kk=e=>{const{ownerState:t,...n}=e;return n},Pk=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},Ek,t)},Dk=ie("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"}}]}),Uu=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:d,components:u={},componentsProps:f={},slotProps:p={},slots:y={},TransitionComponent:w,transitionDuration:b,...m}=o,v={...o,component:a,invisible:l},P=Pk(v),D={transition:w,root:u.Root,...y},x={...f,...p},S={slots:D,slotProps:x},[C,O]=Dn("root",{elementType:Dk,externalForwardedProps:S,className:Se(P.root,i),ownerState:v}),[A,F]=Dn("transition",{elementType:Kr,externalForwardedProps:S,ownerState:v}),B=kk(F);return E.jsx(A,{in:d,timeout:b,...m,...B,children:E.jsx(C,{"aria-hidden":!0,...O,classes:P,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Uu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const Ok=Pe("MuiBox",["root"]),Mk=Kg(),An=Dx({themeId:ca,defaultTheme:Mk,defaultClassName:Ok.root,generateClassName:xg.generate});process.env.NODE_ENV!=="production"&&(An.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Ik(e){return Me("MuiButton",e)}const fs=Pe("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"]),my=T.createContext({});process.env.NODE_ENV!=="production"&&(my.displayName="ButtonGroupContext");const gy=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(gy.displayName="ButtonGroupButtonContext");const Nk=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:a}=e,l={root:["root",i,`${i}${we(t)}`,`size${we(r)}`,`${i}Size${we(r)}`,`color${we(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${we(r)}`],endIcon:["icon","endIcon",`iconSize${we(r)}`]},d=Ie(l,Ik,a);return{...a,...d}},yy=[{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}}}],Ak=ie(Cr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${we(n.color)}`],t[`size${we(n.size)}`],t[`${n.variant}Size${we(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(ot(({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"},[`&.${fs.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]},[`&.${fs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fs.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)",[`&.${fs.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(yn()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:tt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[o].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})`:tt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(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"},[`&.${fs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),Fk=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${we(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...yy]}),Lk=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${we(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...yy]}),ko=T.forwardRef(function(t,n){const o=T.useContext(my),r=T.useContext(gy),i=Ui(o,t),a=Ke({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:f,disabled:p=!1,disableElevation:y=!1,disableFocusRipple:w=!1,endIcon:b,focusVisibleClassName:m,fullWidth:v=!1,size:P="medium",startIcon:D,type:x,variant:S="text",...C}=a,O={...a,color:d,component:u,disabled:p,disableElevation:y,disableFocusRipple:w,fullWidth:v,size:P,type:x,variant:S},A=Nk(O),F=D&&E.jsx(Fk,{className:A.startIcon,ownerState:O,children:D}),B=b&&E.jsx(Lk,{className:A.endIcon,ownerState:O,children:b}),R=r||"";return E.jsxs(Ak,{ownerState:O,className:Se(o.className,A.root,f,R),component:u,disabled:p,focusRipple:!w,focusVisibleClassName:Se(A.focusVisible,m),ref:n,type:x,...C,classes:A,children:[F,l,B]})});process.env.NODE_ENV!=="production"&&(ko.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function $k(e){return Me("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Vk=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,i={root:["root",n&&"checked",o&&"disabled",r&&`edge${we(r)}`],input:["input"]};return Ie(i,$k,t)},jk=ie(Cr)({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}}]}),Bk=ie("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),vy=T.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:i,className:a,defaultChecked:l,disabled:d,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:y,inputProps:w,inputRef:b,name:m,onBlur:v,onChange:P,onFocus:D,readOnly:x,required:S=!1,tabIndex:C,type:O,value:A,...F}=t,[B,R]=fo({controlled:r,default:!!l,name:"SwitchBase",state:"checked"}),$=Nn(),K=M=>{D&&D(M),$&&$.onFocus&&$.onFocus(M)},G=M=>{v&&v(M),$&&$.onBlur&&$.onBlur(M)},q=M=>{if(M.nativeEvent.defaultPrevented)return;const L=M.target.checked;R(L),P&&P(M,L)};let Y=d;$&&typeof Y>"u"&&(Y=$.disabled);const z=O==="checkbox"||O==="radio",ae={...t,checked:B,disabled:Y,disableFocusRipple:u,edge:f},N=Vk(ae);return E.jsxs(jk,{component:"span",className:Se(N.root,a),centerRipple:!0,focusRipple:!u,disabled:Y,tabIndex:null,role:void 0,onFocus:K,onBlur:G,ownerState:ae,ref:n,...F,children:[E.jsx(Bk,{autoFocus:o,checked:r,defaultChecked:l,className:N.input,disabled:Y,id:z?y:void 0,name:m,onChange:q,readOnly:x,ref:b,required:S,ownerState:ae,tabIndex:C,type:O,...O==="checkbox"&&A===void 0?{}:{value:A},...w}),B?i:p]})});process.env.NODE_ENV!=="production"&&(vy.propTypes={autoFocus:s.bool,checked:s.bool,checkedIcon:s.node.isRequired,classes:s.object,className:s.string,defaultChecked:s.bool,disabled:s.bool,disableFocusRipple:s.bool,edge:s.oneOf(["end","start",!1]),icon:s.node.isRequired,id:s.string,inputProps:s.object,inputRef:zt,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,readOnly:s.bool,required:s.bool,sx:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.string.isRequired,value:s.any});const Wk=pn(E.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"),Hk=pn(E.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"),zk=pn(E.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 Yk(e){return Me("MuiCheckbox",e)}const bd=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Uk=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,i={root:["root",n&&"indeterminate",`color${we(o)}`,`size${we(r)}`]},a=Ie(i,Yk,t);return{...t,...a}},qk=ie(vy,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${we(n.size)}`],n.color!=="default"&&t[`color${we(n.color)}`]]}})(ot(({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})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{[`&.${bd.checked}, &.${bd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${bd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Gk=E.jsx(Hk,{}),Kk=E.jsx(Wk,{}),Xk=E.jsx(zk,{}),pc=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:r=Gk,color:i="primary",icon:a=Kk,indeterminate:l=!1,indeterminateIcon:d=Xk,inputProps:u,size:f="medium",disableRipple:p=!1,className:y,...w}=o,b=l?d:a,m=l?d:r,v={...o,disableRipple:p,color:i,indeterminate:l,size:f},P=Uk(v);return E.jsx(qk,{type:"checkbox",inputProps:{"data-indeterminate":l,...u},icon:T.cloneElement(b,{fontSize:b.props.fontSize??f}),checkedIcon:T.cloneElement(m,{fontSize:m.props.fontSize??f}),ownerState:v,ref:n,className:Se(P.root,y),disableRipple:p,...w,classes:P})});process.env.NODE_ENV!=="production"&&(pc.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),defaultChecked:s.bool,disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,indeterminate:s.bool,indeterminateIcon:s.node,inputProps:s.object,inputRef:zt,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function Zk(e){const t=_n(e);return t.body===e?or(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Zp(e){return parseInt(or(e).getComputedStyle(e).paddingRight,10)||0}function Qk(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Qp(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),d=!Qk(a);l&&d&&Fi(a,r)})}function wd(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function Jk(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Zk(o)){const a=$g(or(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Zp(o)+a}px`;const l=_n(o).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Zp(d)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=_n(o).body;else{const a=o.parentElement,l=or(o);i=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function eP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class tP{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Fi(t.modalRef,!1);const r=eP(n);Qp(n,t.mount,t.modalRef,r,!0);const i=wd(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=wd(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=Jk(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=wd(this.containers,a=>a.modals.includes(t)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Fi(t.modalRef,n),Qp(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Fi(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const nP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function oP(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 rP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function sP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||rP(e))}function iP(e){const t=[],n=[];return Array.from(e.querySelectorAll(nP)).forEach((o,r)=>{const i=oP(o);i===-1||!sP(o)||(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function aP(){return!0}function ea(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=iP,isEnabled:a=aP,open:l}=e,d=T.useRef(!1),u=T.useRef(null),f=T.useRef(null),p=T.useRef(null),y=T.useRef(null),w=T.useRef(!1),b=T.useRef(null),m=ct(Us(t),b),v=T.useRef(null);T.useEffect(()=>{!l||!b.current||(w.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!b.current)return;const x=_n(b.current);return b.current.contains(x.activeElement)||(b.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(`
218
+ `))},[]),he=ct(ce,S,x.ref,le),[H,re]=T.useState(!1),Z=Nn();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(Z)return Z.registerEffect()},[Z]);const fe=Rr({props:o,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=Z?Z.focused:H,T.useEffect(()=>{!Z&&y&&H&&(re(!1),R&&R())},[Z,y,H,R]);const pe=Z&&Z.onFilled,be=Z&&Z.onEmpty,ge=T.useCallback(Be=>{Pl(Be)?pe&&pe():be&&be()},[pe,be]);cn(()=>{te&&ge({value:J})},[J,ge,te]);const Re=Be=>{G&&G(Be),x.onFocus&&x.onFocus(Be),Z&&Z.onFocus?Z.onFocus(Be):re(!0)},Ve=Be=>{R&&R(Be),x.onBlur&&x.onBlur(Be),Z&&Z.onBlur?Z.onBlur(Be):re(!1)},Ne=(Be,...rn)=>{if(!te){const un=Be.target||ce.current;if(un==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.":Io(1));ge({value:un.value})}x.onChange&&x.onChange(Be,...rn),$&&$(Be,...rn)};T.useEffect(()=>{ge(ce.current)},[]);const Je=Be=>{ce.current&&Be.currentTarget===Be.target&&ce.current.focus(),K&&K(Be)};let Ee=D,ut=x;F&&Ee==="input"&&(M?(process.env.NODE_ENV!=="production"&&(A||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ut={type:void 0,minRows:M,maxRows:M,...ut}):ut={type:void 0,maxRows:O,minRows:A,...ut},Ee=py);const Yt=Be=>{ge(Be.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};T.useEffect(()=>{Z&&Z.setAdornedStart(!!oe)},[Z,oe]);const rt={...o,color:fe.color||"primary",disabled:fe.disabled,endAdornment:b,error:fe.error,focused:fe.focused,formControl:Z,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:F,size:fe.size,startAdornment:oe,type:se},Ot=Ck(rt),Ut=ne.root||u.Root||uc,Lt=W.root||f.root||{},Ue=ne.input||u.Input||hc;return ut={...ut,...W.input??f.input},E.jsxs(T.Fragment,{children:[!w&&typeof Xp=="function"&&(Kp||(Kp=E.jsx(Xp,{}))),E.jsxs(Ut,{...Lt,ref:n,onClick:Je,...ee,...!Ji(Ut)&&{ownerState:{...rt,...Lt.ownerState}},className:Se(Ot.root,Lt.className,l,ae&&"MuiInputBase-readOnly"),children:[oe,E.jsx(va.Provider,{value:null,children:E.jsx(Ue,{"aria-invalid":fe.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:p,disabled:fe.disabled,id:P,onAnimationStart:Yt,name:B,placeholder:z,readOnly:ae,required:fe.required,rows:M,value:J,onKeyDown:q,onKeyUp:Y,type:se,...ut,...!Ji(Ue)&&{as:Ee,ownerState:{...rt,...ut.ownerState}},ref:he,className:Se(Ot.input,ut.className,ae&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:Ne,onFocus:Re})}),b,N?N({...fe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(fc.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:nc,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function Sk(e){return Me("MuiInput",e)}const ci={...Vs,...Pe("MuiInput",["root","underline","input"])};function _k(e){return Me("MuiOutlinedInput",e)}const Co={...Vs,...Pe("MuiOutlinedInput",["root","notchedOutline","input"])};function xk(e){return Me("MuiFilledInput",e)}const Pr={...Vs,...Pe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Rk=pn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Tk={entering:{opacity:1},entered:{opacity:1}},Kr=T.forwardRef(function(t,n){const o=Gr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:d,in:u,onEnter:f,onEntered:p,onEntering:y,onExit:w,onExited:b,onExiting:m,style:v,timeout:P=r,TransitionComponent:D=ro,...x}=t,S=T.useRef(null),C=ct(S,Us(l),n),O=q=>Y=>{if(q){const z=S.current;Y===void 0?q(z):q(z,Y)}},A=O(y),F=O((q,Y)=>{Jg(q);const z=Rl({style:v,timeout:P,easing:d},{mode:"enter"});q.style.webkitTransition=o.transitions.create("opacity",z),q.style.transition=o.transitions.create("opacity",z),f&&f(q,Y)}),B=O(p),R=O(m),$=O(q=>{const Y=Rl({style:v,timeout:P,easing:d},{mode:"exit"});q.style.webkitTransition=o.transitions.create("opacity",Y),q.style.transition=o.transitions.create("opacity",Y),w&&w(q)}),K=O(b),G=q=>{i&&i(S.current,q)};return E.jsx(D,{appear:a,in:u,nodeRef:S,onEnter:F,onEntered:B,onEntering:A,onExit:$,onExited:K,onExiting:R,addEndListener:G,timeout:P,...x,children:(q,Y)=>T.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!u?"hidden":void 0,...Tk[q],...v,...l.props.style},ref:C,...Y})})});process.env.NODE_ENV!=="production"&&(Kr.propTypes={addEndListener:s.func,appear:s.bool,children:Ys.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function Ek(e){return Me("MuiBackdrop",e)}Pe("MuiBackdrop",["root","invisible"]);const kk=e=>{const{ownerState:t,...n}=e;return n},Pk=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},Ek,t)},Dk=ie("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"}}]}),Uu=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:d,components:u={},componentsProps:f={},slotProps:p={},slots:y={},TransitionComponent:w,transitionDuration:b,...m}=o,v={...o,component:a,invisible:l},P=Pk(v),D={transition:w,root:u.Root,...y},x={...f,...p},S={slots:D,slotProps:x},[C,O]=Dn("root",{elementType:Dk,externalForwardedProps:S,className:Se(P.root,i),ownerState:v}),[A,F]=Dn("transition",{elementType:Kr,externalForwardedProps:S,ownerState:v}),B=kk(F);return E.jsx(A,{in:d,timeout:b,...m,...B,children:E.jsx(C,{"aria-hidden":!0,...O,classes:P,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Uu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const Ok=Pe("MuiBox",["root"]),Mk=Kg(),An=Dx({themeId:ca,defaultTheme:Mk,defaultClassName:Ok.root,generateClassName:xg.generate});process.env.NODE_ENV!=="production"&&(An.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Ik(e){return Me("MuiButton",e)}const fs=Pe("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"]),my=T.createContext({});process.env.NODE_ENV!=="production"&&(my.displayName="ButtonGroupContext");const gy=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(gy.displayName="ButtonGroupButtonContext");const Nk=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:a}=e,l={root:["root",i,`${i}${we(t)}`,`size${we(r)}`,`${i}Size${we(r)}`,`color${we(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${we(r)}`],endIcon:["icon","endIcon",`iconSize${we(r)}`]},d=Ie(l,Ik,a);return{...a,...d}},yy=[{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}}}],Ak=ie(Cr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${we(n.color)}`],t[`size${we(n.size)}`],t[`${n.variant}Size${we(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(ot(({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"},[`&.${fs.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]},[`&.${fs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fs.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)",[`&.${fs.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(yn()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:tt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[o].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})`:tt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(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"},[`&.${fs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),Fk=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${we(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...yy]}),Lk=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${we(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...yy]}),Po=T.forwardRef(function(t,n){const o=T.useContext(my),r=T.useContext(gy),i=Ui(o,t),a=Ke({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:f,disabled:p=!1,disableElevation:y=!1,disableFocusRipple:w=!1,endIcon:b,focusVisibleClassName:m,fullWidth:v=!1,size:P="medium",startIcon:D,type:x,variant:S="text",...C}=a,O={...a,color:d,component:u,disabled:p,disableElevation:y,disableFocusRipple:w,fullWidth:v,size:P,type:x,variant:S},A=Nk(O),F=D&&E.jsx(Fk,{className:A.startIcon,ownerState:O,children:D}),B=b&&E.jsx(Lk,{className:A.endIcon,ownerState:O,children:b}),R=r||"";return E.jsxs(Ak,{ownerState:O,className:Se(o.className,A.root,f,R),component:u,disabled:p,focusRipple:!w,focusVisibleClassName:Se(A.focusVisible,m),ref:n,type:x,...C,classes:A,children:[F,l,B]})});process.env.NODE_ENV!=="production"&&(Po.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function $k(e){return Me("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Vk=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,i={root:["root",n&&"checked",o&&"disabled",r&&`edge${we(r)}`],input:["input"]};return Ie(i,$k,t)},jk=ie(Cr)({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}}]}),Bk=ie("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),vy=T.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:i,className:a,defaultChecked:l,disabled:d,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:y,inputProps:w,inputRef:b,name:m,onBlur:v,onChange:P,onFocus:D,readOnly:x,required:S=!1,tabIndex:C,type:O,value:A,...F}=t,[B,R]=po({controlled:r,default:!!l,name:"SwitchBase",state:"checked"}),$=Nn(),K=M=>{D&&D(M),$&&$.onFocus&&$.onFocus(M)},G=M=>{v&&v(M),$&&$.onBlur&&$.onBlur(M)},q=M=>{if(M.nativeEvent.defaultPrevented)return;const L=M.target.checked;R(L),P&&P(M,L)};let Y=d;$&&typeof Y>"u"&&(Y=$.disabled);const z=O==="checkbox"||O==="radio",ae={...t,checked:B,disabled:Y,disableFocusRipple:u,edge:f},N=Vk(ae);return E.jsxs(jk,{component:"span",className:Se(N.root,a),centerRipple:!0,focusRipple:!u,disabled:Y,tabIndex:null,role:void 0,onFocus:K,onBlur:G,ownerState:ae,ref:n,...F,children:[E.jsx(Bk,{autoFocus:o,checked:r,defaultChecked:l,className:N.input,disabled:Y,id:z?y:void 0,name:m,onChange:q,readOnly:x,ref:b,required:S,ownerState:ae,tabIndex:C,type:O,...O==="checkbox"&&A===void 0?{}:{value:A},...w}),B?i:p]})});process.env.NODE_ENV!=="production"&&(vy.propTypes={autoFocus:s.bool,checked:s.bool,checkedIcon:s.node.isRequired,classes:s.object,className:s.string,defaultChecked:s.bool,disabled:s.bool,disableFocusRipple:s.bool,edge:s.oneOf(["end","start",!1]),icon:s.node.isRequired,id:s.string,inputProps:s.object,inputRef:zt,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,readOnly:s.bool,required:s.bool,sx:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.string.isRequired,value:s.any});const Wk=pn(E.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"),Hk=pn(E.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"),zk=pn(E.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 Yk(e){return Me("MuiCheckbox",e)}const bd=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Uk=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,i={root:["root",n&&"indeterminate",`color${we(o)}`,`size${we(r)}`]},a=Ie(i,Yk,t);return{...t,...a}},qk=ie(vy,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${we(n.size)}`],n.color!=="default"&&t[`color${we(n.color)}`]]}})(ot(({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})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{[`&.${bd.checked}, &.${bd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${bd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Gk=E.jsx(Hk,{}),Kk=E.jsx(Wk,{}),Xk=E.jsx(zk,{}),pc=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:r=Gk,color:i="primary",icon:a=Kk,indeterminate:l=!1,indeterminateIcon:d=Xk,inputProps:u,size:f="medium",disableRipple:p=!1,className:y,...w}=o,b=l?d:a,m=l?d:r,v={...o,disableRipple:p,color:i,indeterminate:l,size:f},P=Uk(v);return E.jsx(qk,{type:"checkbox",inputProps:{"data-indeterminate":l,...u},icon:T.cloneElement(b,{fontSize:b.props.fontSize??f}),checkedIcon:T.cloneElement(m,{fontSize:m.props.fontSize??f}),ownerState:v,ref:n,className:Se(P.root,y),disableRipple:p,...w,classes:P})});process.env.NODE_ENV!=="production"&&(pc.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),defaultChecked:s.bool,disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,indeterminate:s.bool,indeterminateIcon:s.node,inputProps:s.object,inputRef:zt,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function Zk(e){const t=_n(e);return t.body===e?or(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Zp(e){return parseInt(or(e).getComputedStyle(e).paddingRight,10)||0}function Qk(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Qp(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),d=!Qk(a);l&&d&&Fi(a,r)})}function wd(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function Jk(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Zk(o)){const a=$g(or(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Zp(o)+a}px`;const l=_n(o).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Zp(d)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=_n(o).body;else{const a=o.parentElement,l=or(o);i=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function eP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class tP{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Fi(t.modalRef,!1);const r=eP(n);Qp(n,t.mount,t.modalRef,r,!0);const i=wd(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=wd(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=Jk(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=wd(this.containers,a=>a.modals.includes(t)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Fi(t.modalRef,n),Qp(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Fi(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const nP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function oP(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 rP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function sP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||rP(e))}function iP(e){const t=[],n=[];return Array.from(e.querySelectorAll(nP)).forEach((o,r)=>{const i=oP(o);i===-1||!sP(o)||(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function aP(){return!0}function ea(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=iP,isEnabled:a=aP,open:l}=e,d=T.useRef(!1),u=T.useRef(null),f=T.useRef(null),p=T.useRef(null),y=T.useRef(null),w=T.useRef(!1),b=T.useRef(null),m=ct(Us(t),b),v=T.useRef(null);T.useEffect(()=>{!l||!b.current||(w.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!b.current)return;const x=_n(b.current);return b.current.contains(x.activeElement)||(b.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(`
219
219
  `)),b.current.setAttribute("tabIndex","-1")),w.current&&b.current.focus()),()=>{r||(p.current&&p.current.focus&&(d.current=!0,p.current.focus()),p.current=null)}},[l]),T.useEffect(()=>{if(!l||!b.current)return;const x=_n(b.current),S=A=>{v.current=A,!(o||!a()||A.key!=="Tab")&&x.activeElement===b.current&&A.shiftKey&&(d.current=!0,f.current&&f.current.focus())},C=()=>{const A=b.current;if(A===null)return;if(!x.hasFocus()||!a()||d.current){d.current=!1;return}if(A.contains(x.activeElement)||o&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!w.current)return;let F=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(F=i(b.current)),F.length>0){const B=!!(v.current?.shiftKey&&v.current?.key==="Tab"),R=F[0],$=F[F.length-1];typeof R!="string"&&typeof $!="string"&&(B?$.focus():R.focus())}else A.focus()};x.addEventListener("focusin",C),x.addEventListener("keydown",S,!0);const O=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(O),x.removeEventListener("focusin",C),x.removeEventListener("keydown",S,!0)}},[n,o,r,a,l,i]);const P=x=>{p.current===null&&(p.current=x.relatedTarget),w.current=!0,y.current=x.target;const S=t.props.onFocus;S&&S(x)},D=x=>{p.current===null&&(p.current=x.relatedTarget),w.current=!0};return E.jsxs(T.Fragment,{children:[E.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:m,onFocus:P}),E.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ea.propTypes={children:Ys,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(ea.propTypes=Ag(ea.propTypes));function lP(e){return typeof e=="function"?e():e}function cP(e){return e?e.props.hasOwnProperty("in"):!1}const Za=new tP;function dP(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:d,open:u,rootRef:f}=e,p=T.useRef({}),y=T.useRef(null),w=T.useRef(null),b=ct(w,f),[m,v]=T.useState(!u),P=cP(l);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const x=()=>_n(y.current),S=()=>(p.current.modalRef=w.current,p.current.mount=y.current,p.current),C=()=>{Za.mount(S(),{disableScrollLock:o}),w.current&&(w.current.scrollTop=0)},O=Te(()=>{const Y=lP(t)||x().body;Za.add(S(),Y),w.current&&C()}),A=()=>Za.isTopModal(S()),F=Te(Y=>{y.current=Y,Y&&(u&&A()?C():w.current&&Fi(w.current,D))}),B=T.useCallback(()=>{Za.remove(S(),D)},[D]);T.useEffect(()=>()=>{B()},[B]),T.useEffect(()=>{u?O():(!P||!r)&&B()},[u,B,P,r,O]);const R=Y=>z=>{Y.onKeyDown?.(z),!(z.key!=="Escape"||z.which===229||!A())&&(n||(z.stopPropagation(),d&&d(z,"escapeKeyDown")))},$=Y=>z=>{Y.onClick?.(z),z.target===z.currentTarget&&d&&d(z,"backdropClick")};return{getRootProps:(Y={})=>{const z=Wg(e);delete z.onTransitionEnter,delete z.onTransitionExited;const ae={...z,...Y};return{role:"presentation",...ae,onKeyDown:R(ae),ref:b}},getBackdropProps:(Y={})=>{const z=Y;return{"aria-hidden":!0,...z,onClick:$(z),open:u}},getTransitionProps:()=>{const Y=()=>{v(!1),i&&i()},z=()=>{v(!0),a&&a(),r&&B()};return{onEnter:pp(Y,l?.props.onEnter),onExited:pp(z,l?.props.onExited)}},rootRef:b,portalRef:F,isTopModal:A,exited:m,hasTransition:P}}function uP(e){return Me("MuiModal",e)}Pe("MuiModal",["root","hidden","backdrop"]);const hP=e=>{const{open:t,exited:n,classes:o}=e;return Ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},uP,o)},fP=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ot(({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"}}]}))),pP=ie(Uu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qu=T.forwardRef(function(t,n){const o=Ke({name:"MuiModal",props:t}),{BackdropComponent:r=pP,BackdropProps:i,classes:a,className:l,closeAfterTransition:d=!1,children:u,container:f,component:p,components:y={},componentsProps:w={},disableAutoFocus:b=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:P=!1,disableRestoreFocus:D=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:O,onClose:A,onTransitionEnter:F,onTransitionExited:B,open:R,slotProps:$={},slots:K={},theme:G,...q}=o,Y={...o,closeAfterTransition:d,disableAutoFocus:b,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:P,disableRestoreFocus:D,disableScrollLock:x,hideBackdrop:S,keepMounted:C},{getRootProps:z,getBackdropProps:ae,getTransitionProps:N,portalRef:M,isTopModal:L,exited:W,hasTransition:ne}=dP({...Y,rootRef:n}),oe={...Y,exited:W},se=hP(oe),j={};if(u.props.tabIndex===void 0&&(j.tabIndex="-1"),ne){const{onEnter:H,onExited:re}=N();j.onEnter=H,j.onExited=re}const ee={...q,slots:{root:y.Root,backdrop:y.Backdrop,...K},slotProps:{...w,...$}},[J,te]=Dn("root",{elementType:fP,externalForwardedProps:ee,getSlotProps:z,additionalProps:{ref:n,as:p},ownerState:oe,className:Se(l,se?.root,!oe.open&&oe.exited&&se?.hidden)}),[ce,le]=Dn("backdrop",{elementType:r,externalForwardedProps:ee,additionalProps:i,getSlotProps:H=>ae({...H,onClick:re=>{O&&O(re),H?.onClick&&H.onClick(re)}}),className:Se(i?.className,se?.backdrop),ownerState:oe}),he=ct(i?.ref,le.ref);return!C&&!R&&(!ne||W)?null:E.jsx(Qi,{ref:M,container:f,disablePortal:P,children:E.jsxs(J,{...te,children:[!S&&r?E.jsx(ce,{...le,ref:he}):null,E.jsx(ea,{disableEnforceFocus:m,disableAutoFocus:b,disableRestoreFocus:D,isEnabled:L,open:R,children:T.cloneElement(u,j)})]})})});process.env.NODE_ENV!=="production"&&(qu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Ys.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([nr,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function mP(e){return Me("MuiDialog",e)}const Li=Pe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),by=T.createContext({});process.env.NODE_ENV!=="production"&&(by.displayName="DialogContext");const gP=ie(Uu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),yP=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${we(n)}`],paper:["paper",`paperScroll${we(n)}`,`paperWidth${we(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(a,mP,t)},vP=ie(qu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),bP=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${we(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"}}}]}),wP=ie(qs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${we(n.scroll)}`],t[`paperWidth${we(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ot(({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)`,[`&.${Li.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}`,[`&.${Li.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,[`&.${Li.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wy=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialog"}),r=Gr(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:u,BackdropProps:f,children:p,className:y,disableEscapeKeyDown:w=!1,fullScreen:b=!1,fullWidth:m=!1,maxWidth:v="sm",onBackdropClick:P,onClick:D,onClose:x,open:S,PaperComponent:C=qs,PaperProps:O={},scroll:A="paper",TransitionComponent:F=Kr,transitionDuration:B=i,TransitionProps:R,...$}=o,K={...o,disableEscapeKeyDown:w,fullScreen:b,fullWidth:m,maxWidth:v,scroll:A},G=yP(K),q=T.useRef(),Y=M=>{q.current=M.target===M.currentTarget},z=M=>{D&&D(M),q.current&&(q.current=null,P&&P(M),x&&x(M,"backdropClick"))},ae=ar(l),N=T.useMemo(()=>({titleId:ae}),[ae]);return E.jsx(vP,{className:Se(G.root,y),closeAfterTransition:!0,components:{Backdrop:gP},componentsProps:{backdrop:{transitionDuration:B,as:u,...f}},disableEscapeKeyDown:w,onClose:x,open:S,ref:n,onClick:z,ownerState:K,...$,children:E.jsx(F,{appear:!0,in:S,timeout:B,role:"presentation",...R,children:E.jsx(bP,{className:Se(G.container),onMouseDown:Y,ownerState:K,children:E.jsx(wP,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":ae,"aria-modal":d,...O,className:Se(G.paper,O.className),ownerState:K,children:E.jsx(by.Provider,{value:N,children:p})})})})})});process.env.NODE_ENV!=="production"&&(wy.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,"aria-modal":s.oneOfType([s.oneOf(["false","true"]),s.bool]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onBackdropClick:s.func,onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function CP(e){return Me("MuiDialogActions",e)}Pe("MuiDialogActions",["root","spacing"]);const SP=e=>{const{classes:t,disableSpacing:n}=e;return Ie({root:["root",!n&&"spacing"]},CP,t)},_P=ie("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}}}]}),Cy=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},d=SP(l);return E.jsx(_P,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Cy.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function xP(e){return Me("MuiDialogContent",e)}Pe("MuiDialogContent",["root","dividers"]);const RP=Pe("MuiDialogTitle",["root"]),TP=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},xP,t)},EP=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ot(({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:{[`.${RP.root} + &`]:{paddingTop:0}}}]}))),Sy=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},d=TP(l);return E.jsx(EP,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Sy.propTypes={children:s.node,classes:s.object,className:s.string,dividers:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function kP(e){return Me("MuiDialogContentText",e)}Pe("MuiDialogContentText",["root"]);const PP=e=>{const{classes:t}=e,o=Ie({root:["root"]},kP,t);return{...t,...o}},DP=ie(Cn,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_y=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialogContentText"}),{children:r,className:i,...a}=o,l=PP(a);return E.jsx(DP,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:a,className:Se(l.root,i),...o,classes:l})});process.env.NODE_ENV!=="production"&&(_y.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function OP(e){return Me("MuiDivider",e)}const Jp=Pe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),MP=e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:a,textAlign:l,variant:d}=e;return Ie({root:["root",t&&"absolute",d,i&&"light",a==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},OP,o)},IP=ie("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]}})(ot(({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)`:tt(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%"}}}]}))),NP=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ot(({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)`}}]}))),Dl=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDivider"}),{absolute:r=!1,children:i,className:a,orientation:l="horizontal",component:d=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:f=!1,role:p=d!=="hr"?"separator":void 0,textAlign:y="center",variant:w="fullWidth",...b}=o,m={...o,absolute:r,component:d,flexItem:u,light:f,orientation:l,role:p,textAlign:y,variant:w},v=MP(m);return E.jsx(IP,{as:d,className:Se(v.root,a),role:p,ref:n,ownerState:m,"aria-orientation":p==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...b,children:i?E.jsx(NP,{className:v.wrapper,ownerState:m,children:i}):null})});Dl&&(Dl.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Dl.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const AP=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,d={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${we(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=Ie(d,xk,t);return{...t,...u}},FP=ie(uc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...cc(e,t),!n.disableUnderline&&t.underline]}})(ot(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Pr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Pr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Pr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pr.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(.${Pr.disabled}, .${Pr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yn()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),LP=ie(hc,{name:"MuiFilledInput",slot:"Input",overridesResolver:dc})(ot(({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}}]}))),ta=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:y={},type:w="text",...b}=o,m={...o,disableUnderline:r,fullWidth:l,inputComponent:u,multiline:f,type:w},v=AP(o),P={root:{ownerState:m},input:{ownerState:m}},D=p??a?Sn(P,p??a):P,x=y.root??i.Root??FP,S=y.input??i.Input??LP;return E.jsx(fc,{slots:{root:x,input:S},componentsProps:D,fullWidth:l,inputComponent:u,multiline:f,ref:n,type:w,...b,classes:v})});process.env.NODE_ENV!=="production"&&(ta.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});ta&&(ta.muiName="Input");function $P(e){return Me("MuiFormControl",e)}Pe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const VP=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${we(n)}`,o&&"fullWidth"]};return Ie(r,$P,t)},jP=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${we(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),mc=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:d=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:y=!1,margin:w="none",required:b=!1,size:m="medium",variant:v="outlined",...P}=o,D={...o,color:a,component:l,disabled:d,error:u,fullWidth:p,hiddenLabel:y,margin:w,required:b,size:m,variant:v},x=VP(D),[S,C]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{if(!Ii(Y,["Input","Select"]))return;const z=Ii(Y,["Select"])?Y.props.input:Y;z&&bk(z.props)&&(q=!0)}),q}),[O,A]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{Ii(Y,["Input","Select"])&&(Pl(Y.props,!0)||Pl(Y.props.inputProps,!0))&&(q=!0)}),q}),[F,B]=T.useState(!1);d&&F&&B(!1);const R=f!==void 0&&!d?f:F;let $;const K=T.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(`
220
220
  `)),K.current=!0,()=>{K.current=!1}));const G=T.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:a,disabled:d,error:u,filled:O,focused:R,fullWidth:p,hiddenLabel:y,size:m,onBlur:()=>{B(!1)},onEmpty:()=>{A(!1)},onFilled:()=>{A(!0)},onFocus:()=>{B(!0)},registerEffect:$,required:b,variant:v}),[S,a,d,u,O,R,p,y,$,b,m,v]);return E.jsx(va.Provider,{value:G,children:E.jsx(jP,{as:l,ownerState:D,className:Se(x.root,i),ref:n,...P,children:r})})});process.env.NODE_ENV!=="production"&&(mc.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function BP(e){return Me("MuiFormControlLabel",e)}const Oi=Pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),WP=e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${we(o)}`,r&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return Ie(a,BP,t)},HP=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Oi.label}`]:t.label},t.root,t[`labelPlacement${we(n.labelPlacement)}`]]}})(ot(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Oi.disabled}`]:{cursor:"default"},[`& .${Oi.label}`]:{[`&.${Oi.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}}]}))),zP=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ot(({theme:e})=>({[`&.${Oi.error}`]:{color:(e.vars||e).palette.error.main}}))),fl=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormControlLabel"}),{checked:r,className:i,componentsProps:a={},control:l,disabled:d,disableTypography:u,inputRef:f,label:p,labelPlacement:y="end",name:w,onChange:b,required:m,slots:v={},slotProps:P={},value:D,...x}=o,S=Nn(),C=d??l.props.disabled??S?.disabled,O=m??l.props.required,A={disabled:C,required:O};["checked","name","onChange","value","inputRef"].forEach(Y=>{typeof l.props[Y]>"u"&&typeof o[Y]<"u"&&(A[Y]=o[Y])});const F=Rr({props:o,muiFormControl:S,states:["error"]}),B={...o,disabled:C,labelPlacement:y,required:O,error:F.error},R=WP(B),$={slots:v,slotProps:{...a,...P}},[K,G]=Dn("typography",{elementType:Cn,externalForwardedProps:$,ownerState:B});let q=p;return q!=null&&q.type!==Cn&&!u&&(q=E.jsx(K,{component:"span",...G,className:Se(R.label,G?.className),children:q})),E.jsxs(HP,{className:Se(R.root,i),ownerState:B,ref:n,...x,children:[T.cloneElement(l,A),O?E.jsxs("div",{children:[q,E.jsxs(zP,{ownerState:B,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):q]})});process.env.NODE_ENV!=="production"&&(fl.propTypes={checked:s.bool,classes:s.object,className:s.string,componentsProps:s.shape({typography:s.object}),control:s.element.isRequired,disabled:s.bool,disableTypography:s.bool,inputRef:zt,label:s.node,labelPlacement:s.oneOf(["bottom","end","start","top"]),name:s.string,onChange:s.func,required:s.bool,slotProps:s.shape({typography:s.oneOfType([s.func,s.object])}),slots:s.shape({typography:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function YP(e){return Me("MuiFormGroup",e)}Pe("MuiFormGroup",["root","row","error"]);const UP=e=>{const{classes:t,row:n,error:o}=e;return Ie({root:["root",n&&"row",o&&"error"]},YP,t)},qP=ie("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"}}]}),xy=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormGroup"}),{className:r,row:i=!1,...a}=o,l=Nn(),d=Rr({props:o,muiFormControl:l,states:["error"]}),u={...o,row:i,error:d.error},f=UP(u);return E.jsx(qP,{className:Se(f.root,r),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(xy.propTypes={children:s.node,classes:s.object,className:s.string,row:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function GP(e){return Me("MuiFormHelperText",e)}const em=Pe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var tm;const KP=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:l,required:d}=e,u={root:["root",r&&"disabled",i&&"error",o&&`size${we(o)}`,n&&"contained",l&&"focused",a&&"filled",d&&"required"]};return Ie(u,GP,t)},XP=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${we(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ot(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${em.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${em.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}}]}))),Gu=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:d,filled:u,focused:f,margin:p,required:y,variant:w,...b}=o,m=Nn(),v=Rr({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),P={...o,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete P.ownerState;const D=KP(P);return E.jsx(XP,{as:a,className:Se(D.root,i),ref:n,...b,ownerState:P,children:r===" "?tm||(tm=E.jsx("span",{className:"notranslate",children:"​"})):r})});process.env.NODE_ENV!=="production"&&(Gu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function ZP(e){return Me("MuiFormLabel",e)}const $i=Pe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),QP=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:l}=e,d={root:["root",`color${we(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Ie(d,ZP,t)},JP=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(ot(({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(yn()).map(([t])=>({props:{color:t},style:{[`&.${$i.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$i.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$i.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),e1=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ot(({theme:e})=>({[`&.${$i.error}`]:{color:(e.vars||e).palette.error.main}}))),Ry=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:d,error:u,filled:f,focused:p,required:y,...w}=o,b=Nn(),m=Rr({props:o,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),v={...o,color:m.color||"primary",component:l,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},P=QP(v);return E.jsxs(JP,{as:l,ownerState:v,className:Se(P.root,i),ref:n,...w,children:[r,m.required&&E.jsxs(e1,{ownerState:v,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Ry.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function nu(e){return`scale(${e}, ${e**2})`}const t1={entering:{opacity:1,transform:nu(1)},entered:{opacity:1,transform:"none"}},Cd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yr=T.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:d,onEntered:u,onEntering:f,onExit:p,onExited:y,onExiting:w,style:b,timeout:m="auto",TransitionComponent:v=ro,...P}=t,D=bs(),x=T.useRef(),S=Gr(),C=T.useRef(null),O=ct(C,Us(i),n),A=Y=>z=>{if(Y){const ae=C.current;z===void 0?Y(ae):Y(ae,z)}},F=A(f),B=A((Y,z)=>{Jg(Y);const{duration:ae,delay:N,easing:M}=Rl({style:b,timeout:m,easing:a},{mode:"enter"});let L;m==="auto"?(L=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=L):L=ae,Y.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:Cd?L:L*.666,delay:N,easing:M})].join(","),d&&d(Y,z)}),R=A(u),$=A(w),K=A(Y=>{const{duration:z,delay:ae,easing:N}=Rl({style:b,timeout:m,easing:a},{mode:"exit"});let M;m==="auto"?(M=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=M):M=z,Y.style.transition=[S.transitions.create("opacity",{duration:M,delay:ae}),S.transitions.create("transform",{duration:Cd?M:M*.666,delay:Cd?ae:ae||M*.333,easing:N})].join(","),Y.style.opacity=0,Y.style.transform=nu(.75),p&&p(Y)}),G=A(y),q=Y=>{m==="auto"&&D.start(x.current||0,Y),o&&o(C.current,Y)};return E.jsx(v,{appear:r,in:l,nodeRef:C,onEnter:B,onEntered:R,onEntering:F,onExit:K,onExited:G,onExiting:$,addEndListener:q,timeout:m==="auto"?null:m,...P,children:(Y,z)=>T.cloneElement(i,{style:{opacity:0,transform:nu(.75),visibility:Y==="exited"&&!l?"hidden":void 0,...t1[Y],...b,...i.props.style},ref:O,...z})})});process.env.NODE_ENV!=="production"&&(Yr.propTypes={addEndListener:s.func,appear:s.bool,children:Ys.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Yr&&(Yr.muiSupportAuto=!0);const n1=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},Sk,t);return{...t,...r}},o1=ie(uc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...cc(e,t),!n.disableUnderline&&t.underline]}})(ot(({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:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.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"},[`&.${ci.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ci.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(.${ci.disabled}, .${ci.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ci.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yn()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),r1=ie(hc,{name:"MuiInput",slot:"Input",overridesResolver:dc})({}),na=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:p={},type:y="text",...w}=o,b=n1(o),v={root:{ownerState:{disableUnderline:r}}},P=f??a?Sn(f??a,v):v,D=p.root??i.Root??o1,x=p.input??i.Input??r1;return E.jsx(fc,{slots:{root:D,input:x},slotProps:P,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:y,...w,classes:b})});process.env.NODE_ENV!=="production"&&(na.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});na&&(na.muiName="Input");function s1(e){return Me("MuiInputAdornment",e)}const nm=Pe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var om;const i1=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${we(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},a1=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",r&&`position${we(r)}`,a,o&&"hiddenLabel",i&&`size${we(i)}`]};return Ie(l,s1,t)},l1=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:i1})(ot(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${nm.positionStart}&:not(.${nm.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Ku=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:d=!1,position:u,variant:f,...p}=o,y=Nn()||{};let w=f;f&&y.variant&&process.env.NODE_ENV!=="production"&&f===y.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),y&&!w&&(w=y.variant);const b={...o,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:u,variant:w},m=a1(b);return E.jsx(va.Provider,{value:null,children:E.jsx(l1,{as:a,ownerState:b,className:Se(m.root,i),ref:n,...p,children:typeof r=="string"&&!d?E.jsx(Cn,{color:"textSecondary",children:r}):E.jsxs(T.Fragment,{children:[u==="start"?om||(om=E.jsx("span",{className:"notranslate",children:"​"})):null,r]})})})});process.env.NODE_ENV!=="production"&&(Ku.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function c1(e){return Me("MuiInputLabel",e)}Pe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const d1=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:l}=e,d={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="normal"&&`size${we(o)}`,a],asterisk:[l&&"asterisk"]},u=Ie(d,c1,t);return{...t,...u}},u1=ie(Ry,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$i.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]]}})(ot(({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:o})=>t==="filled"&&n.shrink&&o==="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)"}}]}))),gc=T.forwardRef(function(t,n){const o=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:d,...u}=o,f=Nn();let p=a;typeof p>"u"&&f&&(p=f.filled||f.focused||f.adornedStart);const y=Rr({props:o,muiFormControl:f,states:["size","variant","required","focused"]}),w={...o,disableAnimation:r,formControl:f,shrink:p,size:y.size,variant:y.variant,required:y.required,focused:y.focused},b=d1(w);return E.jsx(u1,{"data-shrink":p,ref:n,className:Se(b.root,d),...u,ownerState:w,classes:b})});process.env.NODE_ENV!=="production"&&(gc.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["normal","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const Qo=T.createContext({});process.env.NODE_ENV!=="production"&&(Qo.displayName="ListContext");function h1(e){return Me("MuiList",e)}Pe("MuiList",["root","padding","dense","subheader"]);const f1=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Ie({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},h1,t)},p1=ie("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}}]}),Xu=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:u,...f}=o,p=T.useMemo(()=>({dense:l}),[l]),y={...o,component:a,dense:l,disablePadding:d},w=f1(y);return E.jsx(Qo.Provider,{value:p,children:E.jsxs(p1,{as:a,className:Se(w.root,i),ref:n,ownerState:y,...f,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Xu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function m1(e){return Me("MuiListItem",e)}Pe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const g1=Pe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function y1(e){return Me("MuiListItemSecondaryAction",e)}Pe("MuiListItemSecondaryAction",["root","disableGutters"]);const v1=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},y1,n)},b1=ie("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}}]}),Zu=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=T.useContext(Qo),l={...o,disableGutters:a.disableGutters},d=v1(l);return E.jsx(b1,{className:Se(d.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Zu.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});Zu.muiName="ListItemSecondaryAction";const w1=(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]},C1=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Ie({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},m1,n)},S1=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:w1})(ot(({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:{[`& > .${g1.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}}]}))),_1=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ty=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:l,components:d={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:p,...y}={},dense:w=!1,disableGutters:b=!1,disablePadding:m=!1,divider:v=!1,secondaryAction:P,slotProps:D={},slots:x={},...S}=o,C=T.useContext(Qo),O=T.useMemo(()=>({dense:w||C.dense||!1,alignItems:r,disableGutters:b}),[r,C.dense,w,b]),A=T.useRef(null),F=T.Children.toArray(i),B=F.length&&Ii(F[F.length-1],["ListItemSecondaryAction"]),R={...o,alignItems:r,dense:O.dense,disableGutters:b,disablePadding:m,divider:v,hasSecondaryAction:B},$=C1(R),K=ct(A,n),G=x.root||d.Root||S1,q=D.root||u.root||{},Y={className:Se($.root,q.className,a),...S};let z=l||"li";return B?(z=!Y.component&&!l?"div":z,f==="li"&&(z==="li"?z="div":Y.component==="li"&&(Y.component="div")),E.jsx(Qo.Provider,{value:O,children:E.jsxs(_1,{as:f,className:Se($.container,p),ref:K,ownerState:R,...y,children:[E.jsx(G,{...q,...!Ji(G)&&{as:z,ownerState:{...R,...q.ownerState}},...Y,children:F}),F.pop()]})})):E.jsx(Qo.Provider,{value:O,children:E.jsxs(G,{...q,as:z,ref:K,...!Ji(G)&&{ownerState:{...R,...q.ownerState}},...Y,children:[F,P&&E.jsx(Zu,{children:P})]})})});process.env.NODE_ENV!=="production"&&(Ty.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:_r(s.node,e=>{const t=T.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(Ii(r,["ListItemSecondaryAction"])){n=o;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:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:nc,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const rm=Pe("MuiListItemIcon",["root","alignItemsFlexStart"]);function x1(e){return Me("MuiListItemText",e)}const Cs=Pe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),R1=e=>{const{classes:t,inset:n,primary:o,secondary:r,dense:i}=e;return Ie({root:["root",n&&"inset",i&&"dense",o&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},x1,t)},T1=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cs.primary}`]:t.primary},{[`& .${Cs.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,[`.${Fp.root}:where(& .${Cs.primary})`]:{display:"block"},[`.${Fp.root}:where(& .${Cs.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ou=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItemText"}),{children:r,className:i,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:p,...y}=o,{dense:w}=T.useContext(Qo);let b=d??r,m=f;const v={...o,disableTypography:a,inset:l,primary:!!b,secondary:!!m,dense:w},P=R1(v);return b!=null&&b.type!==Cn&&!a&&(b=E.jsx(Cn,{variant:w?"body2":"body1",className:P.primary,component:u?.variant?void 0:"span",...u,children:b})),m!=null&&m.type!==Cn&&!a&&(m=E.jsx(Cn,{variant:"body2",className:P.secondary,color:"textSecondary",...p,children:m})),E.jsxs(T1,{className:Se(P.root,i),ownerState:v,ref:n,...y,children:[b,m]})});process.env.NODE_ENV!=="production"&&(ou.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Sd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ey(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 di(e,t,n,o,r,i){let a=!1,l=r(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const d=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Ey(l,i)||d)l=r(e,l,n);else return l.focus(),!0}return!1}const ky=T.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu",...y}=t,w=T.useRef(null),b=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cn(()=>{r&&w.current.focus()},[r]),T.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const C=!w.current.style.width;if(x.clientHeight<w.current.clientHeight&&C){const O=`${$g(or(x))}px`;w.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=O,w.current.style.width=`calc(100% + ${O})`}return w.current}}),[]);const m=x=>{const S=w.current,C=x.key;if(x.ctrlKey||x.metaKey||x.altKey){f&&f(x);return}const A=_n(S).activeElement;if(C==="ArrowDown")x.preventDefault(),di(S,A,u,d,Sd);else if(C==="ArrowUp")x.preventDefault(),di(S,A,u,d,sm);else if(C==="Home")x.preventDefault(),di(S,null,u,d,Sd);else if(C==="End")x.preventDefault(),di(S,null,u,d,sm);else if(C.length===1){const F=b.current,B=C.toLowerCase(),R=performance.now();F.keys.length>0&&(R-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&B!==F.keys[0]&&(F.repeating=!1)),F.lastTime=R,F.keys.push(B);const $=A&&!F.repeating&&Ey(A,F);F.previousKeyMatched&&($||di(S,A,!1,d,Sd,F))?x.preventDefault():F.previousKeyMatched=!1}f&&f(x)},v=ct(w,n);let P=-1;T.Children.forEach(a,(x,S)=>{if(!T.isValidElement(x)){P===S&&(P+=1,P>=a.length&&(P=-1));return}process.env.NODE_ENV!=="production"&&Au.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
221
221
  `)),x.props.disabled||(p==="selectedMenu"&&x.props.selected||P===-1)&&(P=S),P===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(P+=1,P>=a.length&&(P=-1))});const D=T.Children.map(a,(x,S)=>{if(S===P){const C={};return i&&(C.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(C.tabIndex=0),T.cloneElement(x,C)}return x});return E.jsx(Xu,{role:"menu",ref:v,className:l,onKeyDown:m,tabIndex:r?0:-1,...y,children:D})});process.env.NODE_ENV!=="production"&&(ky.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function E1(e){return Me("MuiPopover",e)}Pe("MuiPopover",["root","paper"]);function im(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function am(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function lm(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pl(e){return typeof e=="function"?e():e}const k1=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},E1,t)},P1=ie(qu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Py=ie(qs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Dy=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:u,className:f,container:p,elevation:y=8,marginThreshold:w=16,open:b,PaperProps:m={},slots:v={},slotProps:P={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:x=Yr,transitionDuration:S="auto",TransitionProps:{onEntering:C,...O}={},disableScrollLock:A=!1,...F}=o,B=P?.paper??m,R=T.useRef(),$={...o,anchorOrigin:a,anchorReference:d,elevation:y,marginThreshold:w,externalPaperSlotProps:B,transformOrigin:D,TransitionComponent:x,transitionDuration:S,TransitionProps:O},K=k1($),G=T.useCallback(()=>{if(d==="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 le=pl(i),he=le&&le.nodeType===1?le:_n(R.current).body,H=he.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const re=he.getBoundingClientRect();process.env.NODE_ENV!=="test"&&re.top===0&&re.left===0&&re.right===0&&re.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
@@ -223,7 +223,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
223
223
  `)),w!==null&&fe<w){const Ne=fe-w;fe-=Ne,H.horizontal+=Ne}else if(be>Ve){const Ne=be-Ve;fe-=Ne,H.horizontal+=Ne}return{top:`${Math.round(Z)}px`,left:`${Math.round(fe)}px`,transformOrigin:lm(H)}},[i,d,G,q,w]),[z,ae]=T.useState(b),N=T.useCallback(()=>{const le=R.current;if(!le)return;const he=Y(le);he.top!==null&&le.style.setProperty("top",he.top),he.left!==null&&(le.style.left=he.left),le.style.transformOrigin=he.transformOrigin,ae(!0)},[Y]);T.useEffect(()=>(A&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[i,A,N]);const M=(le,he)=>{C&&C(le,he),N()},L=()=>{ae(!1)};T.useEffect(()=>{b&&N()}),T.useImperativeHandle(r,()=>b?{updatePosition:()=>{N()}}:null,[b,N]),T.useEffect(()=>{if(!b)return;const le=Fg(()=>{N()}),he=or(i);return he.addEventListener("resize",le),()=>{le.clear(),he.removeEventListener("resize",le)}},[i,b,N]);let W=S;S==="auto"&&!x.muiSupportAuto&&(W=void 0);const ne=p||(i?_n(pl(i)).body:void 0),oe={slots:v,slotProps:{...P,paper:B}},[se,j]=Dn("paper",{elementType:Py,externalForwardedProps:oe,additionalProps:{elevation:y,className:Se(K.paper,B?.className),style:z?B.style:{...B.style,opacity:0}},ownerState:$}),[ee,{slotProps:J,...te}]=Dn("root",{elementType:P1,externalForwardedProps:oe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ne,open:b},ownerState:$,className:Se(K.root,f)}),ce=ct(R,j.ref);return E.jsx(ee,{...te,...!Ji(ee)&&{slotProps:J,disableScrollLock:A},...F,ref:n,children:E.jsx(x,{appear:!0,in:b,onEntering:M,onExited:L,timeout:W,...O,children:E.jsx(se,{...j,ref:ce,children:u})})})});process.env.NODE_ENV!=="production"&&(Dy.propTypes={action:zt,anchorEl:_r(s.oneOfType([nr,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=pl(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(`
224
224
  `))}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(`
225
225
  `))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([nr,s.func]),disableScrollLock:s.bool,elevation:Bg,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:nc}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function D1(e){return Me("MuiMenu",e)}Pe("MuiMenu",["root","paper","list"]);const O1={vertical:"top",horizontal:"right"},M1={vertical:"top",horizontal:"left"},I1=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},D1,t)},N1=ie(Dy,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A1=ie(Py,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),F1=ie(ky,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Oy=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:u,open:f,PaperProps:p={},PopoverClasses:y,transitionDuration:w="auto",TransitionProps:{onEntering:b,...m}={},variant:v="selectedMenu",slots:P={},slotProps:D={},...x}=o,S=oo(),C={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:d,onEntering:b,PaperProps:p,transitionDuration:w,TransitionProps:m,variant:v},O=I1(C),A=r&&!l&&f,F=T.useRef(null),B=(z,ae)=>{F.current&&F.current.adjustStyleForScrollbar(z,{direction:S?"rtl":"ltr"}),b&&b(z,ae)},R=z=>{z.key==="Tab"&&(z.preventDefault(),u&&u(z,"tabKeyDown"))};let $=-1;T.Children.map(i,(z,ae)=>{T.isValidElement(z)&&(process.env.NODE_ENV!=="production"&&Au.isFragment(z)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
226
- `)),z.props.disabled||(v==="selectedMenu"&&z.props.selected||$===-1)&&($=ae))});const K=P.paper??A1,G=D.paper??p,q=pt({elementType:P.root,externalSlotProps:D.root,ownerState:C,className:[O.root,a]}),Y=pt({elementType:K,externalSlotProps:G,ownerState:C,className:O.paper});return E.jsx(N1,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?O1:M1,slots:{paper:K,root:P.root},slotProps:{root:q,paper:Y},open:f,ref:n,transitionDuration:w,TransitionProps:{onEntering:B,...m},ownerState:C,...x,classes:y,children:E.jsx(F1,{onKeyDown:R,actions:F,autoFocus:r&&($===-1||l),autoFocusItem:A,variant:v,...d,className:Se(O.list,d.className),children:i})})});process.env.NODE_ENV!=="production"&&(Oy.propTypes={anchorEl:s.oneOfType([nr,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function L1(e){return Me("MuiMenuItem",e)}const ui=Pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},V1=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e,d=Ie({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},L1,a);return{...a,...d}},j1=ie(Cr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$1})(ot(({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"}},[`&.${ui.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ui.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ui.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(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})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ui.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ui.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jp.inset}`]:{marginLeft:52},[`& .${Cs.root}`]:{marginTop:0,marginBottom:0},[`& .${Cs.inset}`]:{paddingLeft:36},[`& .${rm.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,[`& .${rm.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ol=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:y,...w}=o,b=T.useContext(Qo),m=T.useMemo(()=>({dense:a||b.dense||!1,disableGutters:d}),[b.dense,a,d]),v=T.useRef(null);cn(()=>{r&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[r]);const P={...o,dense:m.dense,divider:l,disableGutters:d},D=V1(o),x=ct(v,n);let S;return o.disabled||(S=p!==void 0?p:-1),E.jsx(Qo.Provider,{value:m,children:E.jsx(j1,{ref:x,role:f,tabIndex:S,component:i,focusVisibleClassName:Se(D.focusVisible,u),className:Se(D.root,y),...w,ownerState:P,classes:D})})});process.env.NODE_ENV!=="production"&&(Ol.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});function B1(e){return Me("MuiNativeSelect",e)}const Qu=Pe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),W1=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"]};return Ie(l,B1,t)},My=ie("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Qu.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}}}]})),H1=ie(My,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Qu.multiple}`]:t.multiple}]}})({}),Iy=ie("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Qu.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}}]})),z1=ie(Iy,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),Ny=T.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:d="standard",...u}=t,f={...t,disabled:r,variant:d,error:i},p=W1(f);return E.jsxs(T.Fragment,{children:[E.jsx(H1,{ownerState:f,className:Se(p.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:E.jsx(z1,{as:a,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Ny.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:zt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var cm;const Y1=ie("fieldset",{shouldForwardProp:Tn})({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%"}),U1=ie("legend",{shouldForwardProp:Tn})(ot(({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 Ay(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",d={...e,notched:i,withLabel:l};return E.jsx(Y1,{"aria-hidden":!0,className:o,ownerState:d,...a,children:E.jsx(U1,{ownerState:d,children:l?E.jsx("span",{children:r}):cm||(cm=E.jsx("span",{className:"notranslate",children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Ay.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const q1=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_k,t);return{...t,...o}},G1=ie(uc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:cc})(ot(({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 .${wo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${wo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${wo.focused} .${wo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(yn()).map(([n])=>({props:{color:n},style:{[`&.${wo.focused} .${wo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${wo.error} .${wo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${wo.disabled} .${wo.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:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),K1=ie(Ay,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ot(({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}})),X1=ie(hc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:dc})(ot(({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}}]}))),js=T.forwardRef(function(t,n){var o;const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:d,multiline:u=!1,notched:f,slots:p={},type:y="text",...w}=r,b=q1(r),m=Nn(),v=Rr({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:m,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},D=p.root??i.Root??G1,x=p.input??i.Input??X1;return E.jsx(fc,{slots:{root:D,input:x},renderSuffix:S=>E.jsx(K1,{ownerState:P,className:b.notchedOutline,label:d!=null&&d!==""&&v.required?o||(o=E.jsxs(T.Fragment,{children:[d," ","*"]})):d,notched:typeof f<"u"?f:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:y,...w,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(js.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});js&&(js.muiName="Input");function Z1(e){return Me("MuiSelect",e)}const hi=Pe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dm;const Q1=ie(My,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${hi.select}`]:t.select},{[`&.${hi.select}`]:t[n.variant]},{[`&.${hi.error}`]:t.error},{[`&.${hi.multiple}`]:t.multiple}]}})({[`&.${hi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),J1=ie(Iy,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),eD=ie("input",{shouldForwardProp:e=>Xg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function um(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tD(e){return e==null||typeof e=="string"&&!e.trim()}const nD=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ie(l,Z1,t)},Fy=T.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:d,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:y,error:w=!1,IconComponent:b,inputRef:m,labelId:v,MenuProps:P={},multiple:D,name:x,onBlur:S,onChange:C,onClose:O,onFocus:A,onOpen:F,open:B,readOnly:R,renderValue:$,SelectDisplayProps:K={},tabIndex:G,type:q,value:Y,variant:z="standard",...ae}=t,[N,M]=fo({controlled:Y,default:f,name:"Select"}),[L,W]=fo({controlled:B,default:u,name:"Select"}),ne=T.useRef(null),oe=T.useRef(null),[se,j]=T.useState(null),{current:ee}=T.useRef(B!=null),[J,te]=T.useState(),ce=ct(n,m),le=T.useCallback(Oe=>{oe.current=Oe,Oe&&j(Oe)},[]),he=se?.parentNode;T.useImperativeHandle(ce,()=>({focus:()=>{oe.current.focus()},node:ne.current,value:N}),[N]),T.useEffect(()=>{u&&L&&se&&!ee&&(te(a?null:he.clientWidth),oe.current.focus())},[se,a]),T.useEffect(()=>{i&&oe.current.focus()},[i]),T.useEffect(()=>{if(!v)return;const Oe=_n(oe.current).getElementById(v);if(Oe){const We=()=>{getSelection().isCollapsed&&oe.current.focus()};return Oe.addEventListener("click",We),()=>{Oe.removeEventListener("click",We)}}},[v]);const H=(Oe,We)=>{Oe?F&&F(We):O&&O(We),ee||(te(a?null:he.clientWidth),W(Oe))},re=Oe=>{Oe.button===0&&(Oe.preventDefault(),oe.current.focus(),H(!0,Oe))},Z=Oe=>{H(!1,Oe)},fe=T.Children.toArray(l),pe=Oe=>{const We=fe.find(ht=>ht.props.value===Oe.target.value);We!==void 0&&(M(We.props.value),C&&C(Oe,We))},be=Oe=>We=>{let ht;if(We.currentTarget.hasAttribute("tabindex")){if(D){ht=Array.isArray(N)?N.slice():[];const nn=N.indexOf(Oe.props.value);nn===-1?ht.push(Oe.props.value):ht.splice(nn,1)}else ht=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(We),N!==ht&&(M(ht),C)){const nn=We.nativeEvent||We,Fn=new nn.constructor(nn.type,nn);Object.defineProperty(Fn,"target",{writable:!0,value:{value:ht,name:x}}),C(Fn,Oe)}D||H(!1,We)}},ge=Oe=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Oe.key)&&(Oe.preventDefault(),H(!0,Oe))},Re=se!==null&&L,Ve=Oe=>{!Re&&S&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:N,name:x}}),S(Oe))};delete ae["aria-invalid"];let Ne,Je;const Ee=[];let ut=!1,Yt=!1;(Pl({value:N})||y)&&($?Ne=$(N):ut=!0);const rt=fe.map(Oe=>{if(!T.isValidElement(Oe))return null;process.env.NODE_ENV!=="production"&&Au.isFragment(Oe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
226
+ `)),z.props.disabled||(v==="selectedMenu"&&z.props.selected||$===-1)&&($=ae))});const K=P.paper??A1,G=D.paper??p,q=pt({elementType:P.root,externalSlotProps:D.root,ownerState:C,className:[O.root,a]}),Y=pt({elementType:K,externalSlotProps:G,ownerState:C,className:O.paper});return E.jsx(N1,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?O1:M1,slots:{paper:K,root:P.root},slotProps:{root:q,paper:Y},open:f,ref:n,transitionDuration:w,TransitionProps:{onEntering:B,...m},ownerState:C,...x,classes:y,children:E.jsx(F1,{onKeyDown:R,actions:F,autoFocus:r&&($===-1||l),autoFocusItem:A,variant:v,...d,className:Se(O.list,d.className),children:i})})});process.env.NODE_ENV!=="production"&&(Oy.propTypes={anchorEl:s.oneOfType([nr,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function L1(e){return Me("MuiMenuItem",e)}const ui=Pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},V1=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e,d=Ie({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},L1,a);return{...a,...d}},j1=ie(Cr,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:$1})(ot(({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"}},[`&.${ui.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ui.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ui.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(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})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ui.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ui.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jp.inset}`]:{marginLeft:52},[`& .${Cs.root}`]:{marginTop:0,marginBottom:0},[`& .${Cs.inset}`]:{paddingLeft:36},[`& .${rm.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,[`& .${rm.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ol=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:y,...w}=o,b=T.useContext(Qo),m=T.useMemo(()=>({dense:a||b.dense||!1,disableGutters:d}),[b.dense,a,d]),v=T.useRef(null);cn(()=>{r&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[r]);const P={...o,dense:m.dense,divider:l,disableGutters:d},D=V1(o),x=ct(v,n);let S;return o.disabled||(S=p!==void 0?p:-1),E.jsx(Qo.Provider,{value:m,children:E.jsx(j1,{ref:x,role:f,tabIndex:S,component:i,focusVisibleClassName:Se(D.focusVisible,u),className:Se(D.root,y),...w,ownerState:P,classes:D})})});process.env.NODE_ENV!=="production"&&(Ol.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});function B1(e){return Me("MuiNativeSelect",e)}const Qu=Pe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),W1=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"]};return Ie(l,B1,t)},My=ie("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Qu.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}}}]})),H1=ie(My,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Qu.multiple}`]:t.multiple}]}})({}),Iy=ie("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Qu.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}}]})),z1=ie(Iy,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),Ny=T.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:d="standard",...u}=t,f={...t,disabled:r,variant:d,error:i},p=W1(f);return E.jsxs(T.Fragment,{children:[E.jsx(H1,{ownerState:f,className:Se(p.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:E.jsx(z1,{as:a,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Ny.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:zt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var cm;const Y1=ie("fieldset",{shouldForwardProp:Tn})({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%"}),U1=ie("legend",{shouldForwardProp:Tn})(ot(({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 Ay(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",d={...e,notched:i,withLabel:l};return E.jsx(Y1,{"aria-hidden":!0,className:o,ownerState:d,...a,children:E.jsx(U1,{ownerState:d,children:l?E.jsx("span",{children:r}):cm||(cm=E.jsx("span",{className:"notranslate",children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Ay.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const q1=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_k,t);return{...t,...o}},G1=ie(uc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:cc})(ot(({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 .${Co.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Co.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Co.focused} .${Co.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(yn()).map(([n])=>({props:{color:n},style:{[`&.${Co.focused} .${Co.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Co.error} .${Co.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Co.disabled} .${Co.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:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),K1=ie(Ay,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ot(({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}})),X1=ie(hc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:dc})(ot(({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}}]}))),js=T.forwardRef(function(t,n){var o;const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:d,multiline:u=!1,notched:f,slots:p={},type:y="text",...w}=r,b=q1(r),m=Nn(),v=Rr({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:m,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},D=p.root??i.Root??G1,x=p.input??i.Input??X1;return E.jsx(fc,{slots:{root:D,input:x},renderSuffix:S=>E.jsx(K1,{ownerState:P,className:b.notchedOutline,label:d!=null&&d!==""&&v.required?o||(o=E.jsxs(T.Fragment,{children:[d," ","*"]})):d,notched:typeof f<"u"?f:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:y,...w,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(js.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});js&&(js.muiName="Input");function Z1(e){return Me("MuiSelect",e)}const hi=Pe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dm;const Q1=ie(My,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${hi.select}`]:t.select},{[`&.${hi.select}`]:t[n.variant]},{[`&.${hi.error}`]:t.error},{[`&.${hi.multiple}`]:t.multiple}]}})({[`&.${hi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),J1=ie(Iy,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),eD=ie("input",{shouldForwardProp:e=>Xg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function um(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tD(e){return e==null||typeof e=="string"&&!e.trim()}const nD=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ie(l,Z1,t)},Fy=T.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:d,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:y,error:w=!1,IconComponent:b,inputRef:m,labelId:v,MenuProps:P={},multiple:D,name:x,onBlur:S,onChange:C,onClose:O,onFocus:A,onOpen:F,open:B,readOnly:R,renderValue:$,SelectDisplayProps:K={},tabIndex:G,type:q,value:Y,variant:z="standard",...ae}=t,[N,M]=po({controlled:Y,default:f,name:"Select"}),[L,W]=po({controlled:B,default:u,name:"Select"}),ne=T.useRef(null),oe=T.useRef(null),[se,j]=T.useState(null),{current:ee}=T.useRef(B!=null),[J,te]=T.useState(),ce=ct(n,m),le=T.useCallback(Oe=>{oe.current=Oe,Oe&&j(Oe)},[]),he=se?.parentNode;T.useImperativeHandle(ce,()=>({focus:()=>{oe.current.focus()},node:ne.current,value:N}),[N]),T.useEffect(()=>{u&&L&&se&&!ee&&(te(a?null:he.clientWidth),oe.current.focus())},[se,a]),T.useEffect(()=>{i&&oe.current.focus()},[i]),T.useEffect(()=>{if(!v)return;const Oe=_n(oe.current).getElementById(v);if(Oe){const We=()=>{getSelection().isCollapsed&&oe.current.focus()};return Oe.addEventListener("click",We),()=>{Oe.removeEventListener("click",We)}}},[v]);const H=(Oe,We)=>{Oe?F&&F(We):O&&O(We),ee||(te(a?null:he.clientWidth),W(Oe))},re=Oe=>{Oe.button===0&&(Oe.preventDefault(),oe.current.focus(),H(!0,Oe))},Z=Oe=>{H(!1,Oe)},fe=T.Children.toArray(l),pe=Oe=>{const We=fe.find(ht=>ht.props.value===Oe.target.value);We!==void 0&&(M(We.props.value),C&&C(Oe,We))},be=Oe=>We=>{let ht;if(We.currentTarget.hasAttribute("tabindex")){if(D){ht=Array.isArray(N)?N.slice():[];const nn=N.indexOf(Oe.props.value);nn===-1?ht.push(Oe.props.value):ht.splice(nn,1)}else ht=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(We),N!==ht&&(M(ht),C)){const nn=We.nativeEvent||We,Fn=new nn.constructor(nn.type,nn);Object.defineProperty(Fn,"target",{writable:!0,value:{value:ht,name:x}}),C(Fn,Oe)}D||H(!1,We)}},ge=Oe=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Oe.key)&&(Oe.preventDefault(),H(!0,Oe))},Re=se!==null&&L,Ve=Oe=>{!Re&&S&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:N,name:x}}),S(Oe))};delete ae["aria-invalid"];let Ne,Je;const Ee=[];let ut=!1,Yt=!1;(Pl({value:N})||y)&&($?Ne=$(N):ut=!0);const rt=fe.map(Oe=>{if(!T.isValidElement(Oe))return null;process.env.NODE_ENV!=="production"&&Au.isFragment(Oe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
227
227
  `));let We;if(D){if(!Array.isArray(N))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Io(2));We=N.some(ht=>um(ht,Oe.props.value)),We&&ut&&Ee.push(Oe.props.children)}else We=um(N,Oe.props.value),We&&ut&&(Je=Oe.props.children);return We&&(Yt=!0),T.cloneElement(Oe,{"aria-selected":We?"true":"false",onClick:be(Oe),onKeyUp:ht=>{ht.key===" "&&ht.preventDefault(),Oe.props.onKeyUp&&Oe.props.onKeyUp(ht)},role:"option",selected:We,value:void 0,"data-value":Oe.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!Yt&&!D&&N!==""){const Oe=fe.map(We=>We.props.value);console.warn([`MUI: You have provided an out-of-range value \`${N}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Oe.filter(We=>We!=null).map(We=>`\`${We}\``).join(", ")||'""'}.`].join(`
228
228
  `))}},[Yt,fe,D,x,N]),ut&&(D?Ee.length===0?Ne=null:Ne=Ee.reduce((Oe,We,ht)=>(Oe.push(We),ht<Ee.length-1&&Oe.push(", "),Oe),[]):Ne=Je);let Ot=J;!a&&ee&&se&&(Ot=he.clientWidth);let Ut;typeof G<"u"?Ut=G:Ut=p?null:0;const Lt=K.id||(x?`mui-component-select-${x}`:void 0),Ue={...t,variant:z,value:N,open:Re,error:w},Be=nD(Ue),rn={...P.PaperProps,...P.slotProps?.paper},un=ar();return E.jsxs(T.Fragment,{children:[E.jsx(Q1,{as:"div",ref:le,tabIndex:Ut,role:"combobox","aria-controls":un,"aria-disabled":p?"true":void 0,"aria-expanded":Re?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,Lt].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ge,onMouseDown:p||R?null:re,onBlur:Ve,onFocus:A,...K,ownerState:Ue,className:Se(K.className,Be.select,d),id:Lt,children:tD(Ne)?dm||(dm=E.jsx("span",{className:"notranslate",children:"​"})):Ne}),E.jsx(eD,{"aria-invalid":w,value:Array.isArray(N)?N.join(","):N,name:x,ref:ne,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:p,className:Be.nativeInput,autoFocus:i,...ae,ownerState:Ue}),E.jsx(J1,{as:b,className:Be.icon,ownerState:Ue}),E.jsx(Oy,{id:`menu-${x||""}`,anchorEl:he,open:Re,onClose:Z,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...P,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":D?"true":void 0,disableListWrap:!0,id:un,...P.MenuListProps},slotProps:{...P.slotProps,paper:{...rn,style:{minWidth:Ot,...rn!=null?rn.style:null}}},children:rt})]})});process.env.NODE_ENV!=="production"&&(Fy.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:zt,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const oD=e=>{const{classes:t}=e;return t},Ju={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tn(e)&&e!=="variant",slot:"Root"},rD=ie(na,Ju)(""),sD=ie(js,Ju)(""),iD=ie(ta,Ju)(""),ba=T.forwardRef(function(t,n){const o=Ke({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:u=!1,IconComponent:f=Rk,id:p,input:y,inputProps:w,label:b,labelId:m,MenuProps:v,multiple:P=!1,native:D=!1,onClose:x,onOpen:S,open:C,renderValue:O,SelectDisplayProps:A,variant:F="outlined",...B}=o,R=D?Ny:Fy,$=Nn(),K=Rr({props:o,muiFormControl:$,states:["variant","error"]}),G=K.variant||F,q={...o,variant:G,classes:a},Y=oD(q),{root:z,...ae}=Y,N=y||{standard:E.jsx(rD,{ownerState:q}),outlined:E.jsx(sD,{label:b,ownerState:q}),filled:E.jsx(iD,{ownerState:q})}[G],M=ct(n,Us(N));return E.jsx(T.Fragment,{children:T.cloneElement(N,{inputComponent:R,inputProps:{children:i,error:K.error,IconComponent:f,variant:G,type:void 0,multiple:P,...D?{id:p}:{autoWidth:r,defaultOpen:d,displayEmpty:u,labelId:m,MenuProps:v,onClose:x,onOpen:S,open:C,renderValue:O,SelectDisplayProps:{id:p,...A}},...w,classes:w?Sn(ae,w.classes):ae,...y?y.props.inputProps:{}},...(P&&D||u)&&G==="outlined"?{notched:!0}:{},ref:M,className:Se(N.props.className,l,Y.root),...!y&&{variant:G},...B})})});process.env.NODE_ENV!=="production"&&(ba.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});ba.muiName="Select";function aD(e){return Me("MuiSkeleton",e)}Pe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const lD=e=>{const{classes:t,variant:n,animation:o,hasChildren:r,width:i,height:a}=e;return Ie({root:["root",n,o,r&&"withChildren",r&&!i&&"fitContent",r&&!a&&"heightAuto"]},aD,t)},ru=zs`
229
229
  0% {
@@ -261,31 +261,31 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
261
261
  transparent,
262
262
  ${(e.vars||e).palette.action.hover},
263
263
  transparent
264
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:dD||{"&::after":{animation:`${su} 2s linear 0.5s infinite`}}}]}})),eh=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:a="span",height:l,style:d,variant:u="text",width:f,...p}=o,y={...o,animation:r,component:a,variant:u,hasChildren:!!p.children},w=lD(y);return E.jsx(uD,{as:a,ref:n,className:Se(w.root,i),ownerState:y,...p,style:{width:f,height:l,...d}})});process.env.NODE_ENV!=="production"&&(eh.propTypes={animation:s.oneOf(["pulse","wave",!1]),children:s.node,classes:s.object,className:s.string,component:s.elementType,height:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rectangular","rounded","text"]),s.string]),width:s.oneOfType([s.number,s.string])});function hD(e){return Me("MuiTooltip",e)}const Xt=Pe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function fD(e){return Math.round(e*1e5)/1e5}const pD=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${we(i.split("-")[0])}`],arrow:["arrow"]};return Ie(a,hD,t)},mD=ie(lc,{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]}})(ot(({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"] .${Xt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Xt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),gD=ie("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${we(n.placement.split("-")[0])}`]]}})(ot(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:tt(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,[`.${Xt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Xt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Xt.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:`${fD(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Xt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Xt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),yD=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(ot(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Qa=!1;const hm=new oc;let fi={x:0,y:0};function Ja(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const Ly=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:i,classes:a,components:l={},componentsProps:d={},describeChild:u=!1,disableFocusListener:f=!1,disableHoverListener:p=!1,disableInteractive:y=!1,disableTouchListener:w=!1,enterDelay:b=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:P=!1,id:D,leaveDelay:x=0,leaveTouchDelay:S=1500,onClose:C,onOpen:O,open:A,placement:F="bottom",PopperComponent:B,PopperProps:R={},slotProps:$={},slots:K={},title:G,TransitionComponent:q=Yr,TransitionProps:Y,...z}=o,ae=T.isValidElement(i)?i:E.jsx("span",{children:i}),N=Gr(),M=oo(),[L,W]=T.useState(),[ne,oe]=T.useState(null),se=T.useRef(!1),j=y||P,ee=bs(),J=bs(),te=bs(),ce=bs(),[le,he]=fo({controlled:A,default:!1,name:"Tooltip",state:"open"});let H=le;if(process.env.NODE_ENV!=="production"){const{current:He}=T.useRef(A!==void 0);T.useEffect(()=>{L&&L.disabled&&!He&&G!==""&&L.tagName.toLowerCase()==="button"&&console.error(["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(`
264
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:dD||{"&::after":{animation:`${su} 2s linear 0.5s infinite`}}}]}})),eh=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:a="span",height:l,style:d,variant:u="text",width:f,...p}=o,y={...o,animation:r,component:a,variant:u,hasChildren:!!p.children},w=lD(y);return E.jsx(uD,{as:a,ref:n,className:Se(w.root,i),ownerState:y,...p,style:{width:f,height:l,...d}})});process.env.NODE_ENV!=="production"&&(eh.propTypes={animation:s.oneOf(["pulse","wave",!1]),children:s.node,classes:s.object,className:s.string,component:s.elementType,height:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rectangular","rounded","text"]),s.string]),width:s.oneOfType([s.number,s.string])});function hD(e){return Me("MuiTooltip",e)}const Xt=Pe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function fD(e){return Math.round(e*1e5)/1e5}const pD=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${we(i.split("-")[0])}`],arrow:["arrow"]};return Ie(a,hD,t)},mD=ie(lc,{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]}})(ot(({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"] .${Xt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Xt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Xt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Xt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Xt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),gD=ie("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${we(n.placement.split("-")[0])}`]]}})(ot(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:tt(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,[`.${Xt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Xt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Xt.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:`${fD(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Xt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Xt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Xt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Xt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),yD=ie("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(ot(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Qa=!1;const hm=new oc;let fi={x:0,y:0};function Ja(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const Ly=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:i,classes:a,components:l={},componentsProps:d={},describeChild:u=!1,disableFocusListener:f=!1,disableHoverListener:p=!1,disableInteractive:y=!1,disableTouchListener:w=!1,enterDelay:b=100,enterNextDelay:m=0,enterTouchDelay:v=700,followCursor:P=!1,id:D,leaveDelay:x=0,leaveTouchDelay:S=1500,onClose:C,onOpen:O,open:A,placement:F="bottom",PopperComponent:B,PopperProps:R={},slotProps:$={},slots:K={},title:G,TransitionComponent:q=Yr,TransitionProps:Y,...z}=o,ae=T.isValidElement(i)?i:E.jsx("span",{children:i}),N=Gr(),M=oo(),[L,W]=T.useState(),[ne,oe]=T.useState(null),se=T.useRef(!1),j=y||P,ee=bs(),J=bs(),te=bs(),ce=bs(),[le,he]=po({controlled:A,default:!1,name:"Tooltip",state:"open"});let H=le;if(process.env.NODE_ENV!=="production"){const{current:He}=T.useRef(A!==void 0);T.useEffect(()=>{L&&L.disabled&&!He&&G!==""&&L.tagName.toLowerCase()==="button"&&console.error(["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(`
265
265
  `))},[G,L,He])}const re=ar(D),Z=T.useRef(),fe=Te(()=>{Z.current!==void 0&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),ce.clear()});T.useEffect(()=>fe,[fe]);const pe=He=>{hm.clear(),Qa=!0,he(!0),O&&!H&&O(He)},be=Te(He=>{hm.start(800+x,()=>{Qa=!1}),he(!1),C&&H&&C(He),ee.start(N.transitions.duration.shortest,()=>{se.current=!1})}),ge=He=>{se.current&&He.type!=="touchstart"||(L&&L.removeAttribute("title"),J.clear(),te.clear(),b||Qa&&m?J.start(Qa?m:b,()=>{pe(He)}):pe(He))},Re=He=>{J.clear(),te.start(x,()=>{be(He)})},[,Ve]=T.useState(!1),Ne=He=>{_l(He.target)||(Ve(!1),Re(He))},Je=He=>{L||W(He.currentTarget),_l(He.target)&&(Ve(!0),ge(He))},Ee=He=>{se.current=!0;const _e=ae.props;_e.onTouchStart&&_e.onTouchStart(He)},ut=He=>{Ee(He),te.clear(),ee.clear(),fe(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(v,()=>{document.body.style.WebkitUserSelect=Z.current,ge(He)})},Yt=He=>{ae.props.onTouchEnd&&ae.props.onTouchEnd(He),fe(),te.start(S,()=>{be(He)})};T.useEffect(()=>{if(!H)return;function He(_e){_e.key==="Escape"&&be(_e)}return document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}},[be,H]);const rt=ct(Us(ae),W,n);!G&&G!==0&&(H=!1);const Ot=T.useRef(),Ut=He=>{const _e=ae.props;_e.onMouseMove&&_e.onMouseMove(He),fi={x:He.clientX,y:He.clientY},Ot.current&&Ot.current.update()},Lt={},Ue=typeof G=="string";u?(Lt.title=!H&&Ue&&!p?G:null,Lt["aria-describedby"]=H?re:null):(Lt["aria-label"]=Ue?G:null,Lt["aria-labelledby"]=H&&!Ue?re:null);const Be={...Lt,...z,...ae.props,className:Se(z.className,ae.props.className),onTouchStart:Ee,ref:rt,...P?{onMouseMove:Ut}:{}};process.env.NODE_ENV!=="production"&&(Be["data-mui-internal-clone-element"]=!0,T.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(`
266
266
  `))},[L]));const rn={};w||(Be.onTouchStart=ut,Be.onTouchEnd=Yt),p||(Be.onMouseOver=Ja(ge,Be.onMouseOver),Be.onMouseLeave=Ja(Re,Be.onMouseLeave),j||(rn.onMouseOver=ge,rn.onMouseLeave=Re)),f||(Be.onFocus=Ja(Je,Be.onFocus),Be.onBlur=Ja(Ne,Be.onBlur),j||(rn.onFocus=Je,rn.onBlur=Ne)),process.env.NODE_ENV!=="production"&&ae.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${ae.props.title}\` or the Tooltip component.`].join(`
267
- `));const un=T.useMemo(()=>{let He=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return R.popperOptions?.modifiers&&(He=He.concat(R.popperOptions.modifiers)),{...R.popperOptions,modifiers:He}},[ne,R]),Oe={...o,isRtl:M,arrow:r,disableInteractive:j,placement:F,PopperComponentProp:B,touch:se.current},We=pD(Oe),ht=K.popper??l.Popper??mD,nn=K.transition??l.Transition??q??Yr,Fn=K.tooltip??l.Tooltip??gD,at=K.arrow??l.Arrow??yD,Zt=ws(ht,{...R,...$.popper??d.popper,className:Se(We.popper,R?.className,($.popper??d.popper)?.className)},Oe),mn=ws(nn,{...Y,...$.transition??d.transition},Oe),Qt=ws(Fn,{...$.tooltip??d.tooltip,className:Se(We.tooltip,($.tooltip??d.tooltip)?.className)},Oe),ur=ws(at,{...$.arrow??d.arrow,className:Se(We.arrow,($.arrow??d.arrow)?.className)},Oe);return E.jsxs(T.Fragment,{children:[T.cloneElement(ae,Be),E.jsx(ht,{as:B??lc,placement:F,anchorEl:P?{getBoundingClientRect:()=>({top:fi.y,left:fi.x,right:fi.x,bottom:fi.y,width:0,height:0})}:L,popperRef:Ot,open:L?H:!1,id:re,transition:!0,...rn,...Zt,popperOptions:un,children:({TransitionProps:He})=>E.jsx(nn,{timeout:N.transitions.duration.shorter,...He,...mn,children:E.jsxs(Fn,{...Qt,children:[G,r?E.jsx(at,{...ur,ref:oe}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Ly.propTypes={arrow:s.bool,children:Ys.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});function vD(e){return Me("MuiTextField",e)}Pe("MuiTextField",["root"]);const bD={standard:na,filled:ta,outlined:js},wD=e=>{const{classes:t}=e;return Ie({root:["root"]},vD,t)},CD=ie(mc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bs=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:m,InputLabelProps:v,inputProps:P,InputProps:D,inputRef:x,label:S,maxRows:C,minRows:O,multiline:A=!1,name:F,onBlur:B,onChange:R,onFocus:$,placeholder:K,required:G=!1,rows:q,select:Y=!1,SelectProps:z,slots:ae={},slotProps:N={},type:M,value:L,variant:W="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:w,multiline:A,required:G,select:Y,variant:W},se=wD(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=ar(m),ee=b&&j?`${j}-helper-text`:void 0,J=S&&j?`${j}-label`:void 0,te=bD[W],ce={slots:ae,slotProps:{input:D,inputLabel:v,htmlInput:P,formHelperText:y,select:z,...N}},le={},he=ce.slotProps.inputLabel;W==="outlined"&&(he&&typeof he.shrink<"u"&&(le.notched=he.shrink),le.label=S),Y&&((!z||!z.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[H,re]=Dn("input",{elementType:te,externalForwardedProps:ce,additionalProps:le,ownerState:oe}),[Z,fe]=Dn("inputLabel",{elementType:gc,externalForwardedProps:ce,ownerState:oe}),[pe,be]=Dn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ge,Re]=Dn("formHelperText",{elementType:Gu,externalForwardedProps:ce,ownerState:oe}),[Ve,Ne]=Dn("select",{elementType:ba,externalForwardedProps:ce,ownerState:oe}),Je=E.jsx(H,{"aria-describedby":ee,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:w,multiline:A,name:F,rows:q,maxRows:C,minRows:O,type:M,value:L,id:j,inputRef:x,onBlur:B,onChange:R,onFocus:$,placeholder:K,inputProps:be,slots:{input:ae.htmlInput?pe:void 0},...re});return E.jsxs(CD,{className:Se(se.root,l),disabled:f,error:p,fullWidth:w,ref:n,required:G,color:d,variant:W,ownerState:oe,...ne,children:[S!=null&&S!==""&&E.jsx(Z,{htmlFor:j,id:J,...fe,children:S}),Y?E.jsx(Ve,{"aria-describedby":ee,id:j,labelId:J,value:L,input:Je,...Ne,children:a}):Je,b&&E.jsx(ge,{id:ee,...Re,children:b})]})});process.env.NODE_ENV!=="production"&&(Bs.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const SD=ie(eh)({width:"100%",borderRadius:"10px"}),_D={Skeleton:SD},xD=({height:e="calc(100% - 1em)"})=>E.jsx(_D.Skeleton,{variant:"rectangular",height:e});var je=(e=>(e[e.Boolean=1]="Boolean",e[e.DateBetween=2]="DateBetween",e[e.DateEqual=3]="DateEqual",e[e.DateFrom=4]="DateFrom",e[e.DateTo=5]="DateTo",e[e.MultipleSelect=6]="MultipleSelect",e[e.NumberBetween=7]="NumberBetween",e[e.NumberEqual=8]="NumberEqual",e[e.NumberFrom=9]="NumberFrom",e[e.NumberTo=10]="NumberTo",e[e.TextContain=11]="TextContain",e[e.TextEqual=12]="TextEqual",e[e.TextNotContain=13]="TextNotContain",e[e.TextNotEqual=14]="TextNotEqual",e))(je||{}),fn=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(fn||{}),Ur=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(Ur||{}),Lr=(e=>(e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Control="Control",e.Enter="Enter",e.Tab="Tab",e))(Lr||{}),Xr=(e=>(e[e.KeyB=66]="KeyB",e[e.KeyDel=46]="KeyDel",e[e.KeyEnter=13]="KeyEnter",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e))(Xr||{}),So=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT_NUMERIC=4]="TEXT_NUMERIC",e[e.TEXT=5]="TEXT",e))(So||{});const fm=e=>t=>{t.keyCode===Xr.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},RD=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},TD=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},ED=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())};var uo=(e=>(e.hiddenColumnIds="hidden-column-ids",e.slickTable="slick-table",e.sorting="sorting",e))(uo||{});function $y(){return JSON.parse(localStorage.getItem(uo.slickTable)||"{}")}function Vi(e){return $y()[e]||{}}function iu(e,t){const n=$y();localStorage.setItem(uo.slickTable,JSON.stringify({...n,[e]:t}))}class kD{get(t){return Vi(uo.hiddenColumnIds)[t]||[]}set(t,n){const o=Vi(uo.hiddenColumnIds);o[t]=n.length?n:void 0,iu(uo.hiddenColumnIds,o)}}class PD{get(t){return Vi(uo.sorting)[t]}reset(t){const n=Vi(uo.sorting);n[t]=void 0,iu(uo.sorting,n)}set(t,n,o){const r=Vi(uo.sorting);r[t]={columnId:n,isAscending:o},iu(uo.sorting,r)}}class DD{constructor(){this.hiddenColumns=new kD,this.sorting=new PD}}const Es=new DD;class OD{constructor(){this._initialColumns=[],this._hiddenColumnIds=[],this._tableId=""}getInitialColumns(){return this._initialColumns}setInitialColumns(t,n){this._initialColumns=t,this._tableId=n,this.hiddenColumnIds=Es.hiddenColumns.get(n)}get hiddenColumnIds(){return this._hiddenColumnIds}set hiddenColumnIds(t){this._hiddenColumnIds=t,Es.hiddenColumns.set(this._tableId,t)}}const _d=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function Vy(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const MD=["FormatterStatus","FormatterNumber"];class ID{constructor(){this.table=null}download(t,n,o){if(this.table||(this.table=t),this.table=t,!t.grid)return;const i=this.createCSV(t),a=document.createElement("a");a.href="data:text/csv;charset=utf-8,"+encodeURIComponent(i),a.target="_blank",a.download=`${n}-${o}-${t.id}.csv`,a.click()}createCSV(t){this.table||(this.table=t);const n=t.grid;if(!n)return"";const o=this.getTitle(),r=this.getCSVHeader(n),i=this.getCSVBody(n);return`${o}${r}${i}`}getTitle(){return""}getCSVHeader(t){const r=t.getColumns().filter(i=>i.forPrint).reduce((i,a)=>{if(typeof a.name=="string"){const l=_d(a.name);return i.concat(`"${l}",`)}else return i.concat('" ",')},"");return this.addRowSeparator(r)}getCSVBody(t){const n=t.getData(),r=t.getColumns().filter(i=>i.forPrint);return IW(t).reduce((i,a)=>{const l=n.getItemMetadata(a),d=n.getItem(a),u=d.__group,f=d.__groupTotals;let p="";if(u){const y=_d(Vy(d.title));p+=`"${y}",`}else for(let y=0;y<r.length;++y){const w=r[y],b=w.field,m=l?.columns?.[b]?.formatter,v=w.printer||m||w.formatter;let P=d[b];if(f){const x=w.groupTotalsFormatter;P=x?x(d,w,t):""}else v&&!MD.includes(v.name)&&(P=v(0,0,P,w,d,t));const D=_d(P);p+=`"${D}",`}return this.addRowSeparator(`${i}${p}`)},"")}addRowSeparator(t){return`${t}
267
+ `));const un=T.useMemo(()=>{let He=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return R.popperOptions?.modifiers&&(He=He.concat(R.popperOptions.modifiers)),{...R.popperOptions,modifiers:He}},[ne,R]),Oe={...o,isRtl:M,arrow:r,disableInteractive:j,placement:F,PopperComponentProp:B,touch:se.current},We=pD(Oe),ht=K.popper??l.Popper??mD,nn=K.transition??l.Transition??q??Yr,Fn=K.tooltip??l.Tooltip??gD,at=K.arrow??l.Arrow??yD,Zt=ws(ht,{...R,...$.popper??d.popper,className:Se(We.popper,R?.className,($.popper??d.popper)?.className)},Oe),mn=ws(nn,{...Y,...$.transition??d.transition},Oe),Qt=ws(Fn,{...$.tooltip??d.tooltip,className:Se(We.tooltip,($.tooltip??d.tooltip)?.className)},Oe),ur=ws(at,{...$.arrow??d.arrow,className:Se(We.arrow,($.arrow??d.arrow)?.className)},Oe);return E.jsxs(T.Fragment,{children:[T.cloneElement(ae,Be),E.jsx(ht,{as:B??lc,placement:F,anchorEl:P?{getBoundingClientRect:()=>({top:fi.y,left:fi.x,right:fi.x,bottom:fi.y,width:0,height:0})}:L,popperRef:Ot,open:L?H:!1,id:re,transition:!0,...rn,...Zt,popperOptions:un,children:({TransitionProps:He})=>E.jsx(nn,{timeout:N.transitions.duration.shorter,...He,...mn,children:E.jsxs(Fn,{...Qt,children:[G,r?E.jsx(at,{...ur,ref:oe}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Ly.propTypes={arrow:s.bool,children:Ys.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});function vD(e){return Me("MuiTextField",e)}Pe("MuiTextField",["root"]);const bD={standard:na,filled:ta,outlined:js},wD=e=>{const{classes:t}=e;return Ie({root:["root"]},vD,t)},CD=ie(mc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bs=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:m,InputLabelProps:v,inputProps:P,InputProps:D,inputRef:x,label:S,maxRows:C,minRows:O,multiline:A=!1,name:F,onBlur:B,onChange:R,onFocus:$,placeholder:K,required:G=!1,rows:q,select:Y=!1,SelectProps:z,slots:ae={},slotProps:N={},type:M,value:L,variant:W="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:w,multiline:A,required:G,select:Y,variant:W},se=wD(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=ar(m),ee=b&&j?`${j}-helper-text`:void 0,J=S&&j?`${j}-label`:void 0,te=bD[W],ce={slots:ae,slotProps:{input:D,inputLabel:v,htmlInput:P,formHelperText:y,select:z,...N}},le={},he=ce.slotProps.inputLabel;W==="outlined"&&(he&&typeof he.shrink<"u"&&(le.notched=he.shrink),le.label=S),Y&&((!z||!z.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[H,re]=Dn("input",{elementType:te,externalForwardedProps:ce,additionalProps:le,ownerState:oe}),[Z,fe]=Dn("inputLabel",{elementType:gc,externalForwardedProps:ce,ownerState:oe}),[pe,be]=Dn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ge,Re]=Dn("formHelperText",{elementType:Gu,externalForwardedProps:ce,ownerState:oe}),[Ve,Ne]=Dn("select",{elementType:ba,externalForwardedProps:ce,ownerState:oe}),Je=E.jsx(H,{"aria-describedby":ee,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:w,multiline:A,name:F,rows:q,maxRows:C,minRows:O,type:M,value:L,id:j,inputRef:x,onBlur:B,onChange:R,onFocus:$,placeholder:K,inputProps:be,slots:{input:ae.htmlInput?pe:void 0},...re});return E.jsxs(CD,{className:Se(se.root,l),disabled:f,error:p,fullWidth:w,ref:n,required:G,color:d,variant:W,ownerState:oe,...ne,children:[S!=null&&S!==""&&E.jsx(Z,{htmlFor:j,id:J,...fe,children:S}),Y?E.jsx(Ve,{"aria-describedby":ee,id:j,labelId:J,value:L,input:Je,...Ne,children:a}):Je,b&&E.jsx(ge,{id:ee,...Re,children:b})]})});process.env.NODE_ENV!=="production"&&(Bs.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const SD=ie(eh)({width:"100%",borderRadius:"10px"}),_D={Skeleton:SD},xD=({height:e="calc(100% - 1em)"})=>E.jsx(_D.Skeleton,{variant:"rectangular",height:e});var je=(e=>(e[e.Boolean=1]="Boolean",e[e.DateBetween=2]="DateBetween",e[e.DateEqual=3]="DateEqual",e[e.DateFrom=4]="DateFrom",e[e.DateTo=5]="DateTo",e[e.MultipleSelect=6]="MultipleSelect",e[e.NumberBetween=7]="NumberBetween",e[e.NumberEqual=8]="NumberEqual",e[e.NumberFrom=9]="NumberFrom",e[e.NumberTo=10]="NumberTo",e[e.TextContain=11]="TextContain",e[e.TextEqual=12]="TextEqual",e[e.TextNotContain=13]="TextNotContain",e[e.TextNotEqual=14]="TextNotEqual",e))(je||{}),fn=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(fn||{}),Ur=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(Ur||{}),Lr=(e=>(e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Control="Control",e.Enter="Enter",e.Tab="Tab",e))(Lr||{}),Xr=(e=>(e[e.KeyB=66]="KeyB",e[e.KeyDel=46]="KeyDel",e[e.KeyEnter=13]="KeyEnter",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e))(Xr||{}),_o=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT_NUMERIC=4]="TEXT_NUMERIC",e[e.TEXT=5]="TEXT",e))(_o||{});const fm=e=>t=>{t.keyCode===Xr.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},RD=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},TD=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},ED=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())};var uo=(e=>(e.hiddenColumnIds="hidden-column-ids",e.slickTable="slick-table",e.sorting="sorting",e))(uo||{});function $y(){return JSON.parse(localStorage.getItem(uo.slickTable)||"{}")}function Vi(e){return $y()[e]||{}}function iu(e,t){const n=$y();localStorage.setItem(uo.slickTable,JSON.stringify({...n,[e]:t}))}class kD{get(t){return Vi(uo.hiddenColumnIds)[t]||[]}set(t,n){const o=Vi(uo.hiddenColumnIds);o[t]=n.length?n:void 0,iu(uo.hiddenColumnIds,o)}}class PD{get(t){return Vi(uo.sorting)[t]}reset(t){const n=Vi(uo.sorting);n[t]=void 0,iu(uo.sorting,n)}set(t,n,o){const r=Vi(uo.sorting);r[t]={columnId:n,isAscending:o},iu(uo.sorting,r)}}class DD{constructor(){this.hiddenColumns=new kD,this.sorting=new PD}}const Es=new DD;class OD{constructor(){this._initialColumns=[],this._hiddenColumnIds=[],this._tableId=""}getInitialColumns(){return this._initialColumns}setInitialColumns(t,n){this._initialColumns=t,this._tableId=n,this.hiddenColumnIds=Es.hiddenColumns.get(n)}get hiddenColumnIds(){return this._hiddenColumnIds}set hiddenColumnIds(t){this._hiddenColumnIds=t,Es.hiddenColumns.set(this._tableId,t)}}const _d=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function Vy(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const MD=["FormatterStatus","FormatterNumber"];class ID{constructor(){this.table=null}download(t,n,o){if(this.table||(this.table=t),this.table=t,!t.grid)return;const i=this.createCSV(t),a=document.createElement("a");a.href="data:text/csv;charset=utf-8,"+encodeURIComponent(i),a.target="_blank",a.download=`${n}-${o}-${t.id}.csv`,a.click()}createCSV(t){this.table||(this.table=t);const n=t.grid;if(!n)return"";const o=this.getTitle(),r=this.getCSVHeader(n),i=this.getCSVBody(n);return`${o}${r}${i}`}getTitle(){return""}getCSVHeader(t){const r=t.getColumns().filter(i=>i.forPrint).reduce((i,a)=>{if(typeof a.name=="string"){const l=_d(a.name);return i.concat(`"${l}",`)}else return i.concat('" ",')},"");return this.addRowSeparator(r)}getCSVBody(t){const n=t.getData(),r=t.getColumns().filter(i=>i.forPrint);return IW(t).reduce((i,a)=>{const l=n.getItemMetadata(a),d=n.getItem(a),u=d.__group,f=d.__groupTotals;let p="";if(u){const y=_d(Vy(d.title));p+=`"${y}",`}else for(let y=0;y<r.length;++y){const w=r[y],b=w.field,m=l?.columns?.[b]?.formatter,v=w.printer||m||w.formatter;let P=d[b];if(f){const x=w.groupTotalsFormatter;P=x?x(d,w,t):""}else v&&!MD.includes(v.name)&&(P=v(0,0,P,w,d,t));const D=_d(P);p+=`"${D}",`}return this.addRowSeparator(`${i}${p}`)},"")}addRowSeparator(t){return`${t}
268
268
  `}}class ND{constructor(){this.externalVariables={},this.commandQueue=[],this.queueIndex=-1}getQueueIndex(){return this.queueIndex}setQueueIndex(t){this.queueIndex=t}handleKeyboardEvent(t,n){if(!n.isActive)return;const o=n.grid;if(!o||!o.getOptions().editable)return;const r=o.getData();if(zh(t)){if(t.preventDefault(),t.stopImmediatePropagation(),sW(o))return;Ab(o),o.invalidate(),this.pushToCommandQueue(o),n.isEdited=!0}else if(Nb(t)){t.preventDefault(),t.stopImmediatePropagation();const i=o.getSelectedRows();if(!i.length)return;i.forEach(a=>{const l=r.getItem(a);l.isDeleted=!0}),o.setSelectedRows([]),r.refresh(),o.invalidate(),this.pushToCommandQueue(o),n.isEdited=!0}else if(Uh(t)){t.preventDefault(),t.stopImmediatePropagation();const i=this.getQueueIndex();if(i<1)return;const a=i-1;this.setQueueIndex(a),r.setItems(xd(this.commandQueue[a])),o.invalidate(),n.isEdited=a!==0}else if(Yh(t)){t.preventDefault(),t.stopImmediatePropagation();const i=this.getQueueIndex();if(i===this.commandQueue.length-1)return;const a=i+1;this.setQueueIndex(a),r.setItems(xd(this.commandQueue[a])),o.invalidate(),n.isEdited=!0}}pushToCommandQueue(t){if(!t)return;const o=t.getData().getItems(),i=this.getQueueIndex()+1;this.commandQueue.length=i,this.commandQueue.push(xd(o)),this.setQueueIndex(i)}resetQueue(){this.commandQueue.length=0,this.queueIndex=-1}setExternalVariables(t){this.externalVariables={...this.externalVariables,...t}}getExternalVariables(){return this.externalVariables}}function xd(e){return e.map(t=>({...t}))}class jy{handleKeyboardEvent(){}pushToCommandQueue(){}resetQueue(){}setExternalVariables(t){}getExternalVariables(){return{}}}class yc{constructor(t){this.hotKeysBehaviour=t}handleKeyboardEvent(t,n){this.hotKeysBehaviour.handleKeyboardEvent(t,n)}pushToCommandQueue(t){this.hotKeysBehaviour.pushToCommandQueue(t)}resetQueue(){this.hotKeysBehaviour.resetQueue()}setExternalVariables(t){this.hotKeysBehaviour.setExternalVariables(t)}getExternalVariables(){return this.hotKeysBehaviour.getExternalVariables()}}class AD extends yc{handleKeyboardEvent(t,n){n.isActive&&(zh(t)||super.handleKeyboardEvent.call(this,t,n))}}class FD extends yc{handleKeyboardEvent(t,n){n.isActive&&(Yh(t)||Uh(t))&&super.handleKeyboardEvent.call(this,t,n)}}const au="checkboxSelector",LD="wink",$D="bold";//! moment.js
269
269
  //! version : 2.30.1
270
270
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
271
271
  //! license : MIT
272
272
  //! momentjs.com
273
- var By;function xe(){return By.apply(null,arguments)}function VD(e){By=e}function po(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Wr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function th(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(mt(e,t))return!1;return!0}function Pn(e){return e===void 0}function sr(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function wa(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Wy(e,t){var n=[],o,r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function yr(e,t){for(var n in t)mt(t,n)&&(e[n]=t[n]);return mt(t,"toString")&&(e.toString=t.toString),mt(t,"valueOf")&&(e.valueOf=t.valueOf),e}function $o(e,t,n,o){return uv(e,t,n,o,!0).utc()}function jD(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function qe(e){return e._pf==null&&(e._pf=jD()),e._pf}var lu;Array.prototype.some?lu=Array.prototype.some:lu=function(e){var t=Object(this),n=t.length>>>0,o;for(o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};function nh(e){var t=null,n=!1,o=e._d&&!isNaN(e._d.getTime());if(o&&(t=qe(e),n=lu.call(t.parsedDateParts,function(r){return r!=null}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(o=o&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=o;else return o;return e._isValid}function vc(e){var t=$o(NaN);return e!=null?yr(qe(t),e):qe(t).userInvalidated=!0,t}var pm=xe.momentProperties=[],Rd=!1;function oh(e,t){var n,o,r,i=pm.length;if(Pn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Pn(t._i)||(e._i=t._i),Pn(t._f)||(e._f=t._f),Pn(t._l)||(e._l=t._l),Pn(t._strict)||(e._strict=t._strict),Pn(t._tzm)||(e._tzm=t._tzm),Pn(t._isUTC)||(e._isUTC=t._isUTC),Pn(t._offset)||(e._offset=t._offset),Pn(t._pf)||(e._pf=qe(t)),Pn(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)o=pm[n],r=t[o],Pn(r)||(e[o]=r);return e}function Ca(e){oh(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Rd===!1&&(Rd=!0,xe.updateOffset(this),Rd=!1)}function mo(e){return e instanceof Ca||e!=null&&e._isAMomentObject!=null}function Hy(e){xe.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function so(e,t){var n=!0;return yr(function(){if(xe.deprecationHandler!=null&&xe.deprecationHandler(null,e),n){var o=[],r,i,a,l=arguments.length;for(i=0;i<l;i++){if(r="",typeof arguments[i]=="object"){r+=`
273
+ var By;function xe(){return By.apply(null,arguments)}function VD(e){By=e}function mo(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Wr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function th(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(mt(e,t))return!1;return!0}function Pn(e){return e===void 0}function sr(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function wa(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Wy(e,t){var n=[],o,r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function yr(e,t){for(var n in t)mt(t,n)&&(e[n]=t[n]);return mt(t,"toString")&&(e.toString=t.toString),mt(t,"valueOf")&&(e.valueOf=t.valueOf),e}function $o(e,t,n,o){return uv(e,t,n,o,!0).utc()}function jD(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function qe(e){return e._pf==null&&(e._pf=jD()),e._pf}var lu;Array.prototype.some?lu=Array.prototype.some:lu=function(e){var t=Object(this),n=t.length>>>0,o;for(o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};function nh(e){var t=null,n=!1,o=e._d&&!isNaN(e._d.getTime());if(o&&(t=qe(e),n=lu.call(t.parsedDateParts,function(r){return r!=null}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(o=o&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=o;else return o;return e._isValid}function vc(e){var t=$o(NaN);return e!=null?yr(qe(t),e):qe(t).userInvalidated=!0,t}var pm=xe.momentProperties=[],Rd=!1;function oh(e,t){var n,o,r,i=pm.length;if(Pn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Pn(t._i)||(e._i=t._i),Pn(t._f)||(e._f=t._f),Pn(t._l)||(e._l=t._l),Pn(t._strict)||(e._strict=t._strict),Pn(t._tzm)||(e._tzm=t._tzm),Pn(t._isUTC)||(e._isUTC=t._isUTC),Pn(t._offset)||(e._offset=t._offset),Pn(t._pf)||(e._pf=qe(t)),Pn(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)o=pm[n],r=t[o],Pn(r)||(e[o]=r);return e}function Ca(e){oh(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Rd===!1&&(Rd=!0,xe.updateOffset(this),Rd=!1)}function go(e){return e instanceof Ca||e!=null&&e._isAMomentObject!=null}function Hy(e){xe.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function so(e,t){var n=!0;return yr(function(){if(xe.deprecationHandler!=null&&xe.deprecationHandler(null,e),n){var o=[],r,i,a,l=arguments.length;for(i=0;i<l;i++){if(r="",typeof arguments[i]=="object"){r+=`
274
274
  [`+i+"] ";for(a in arguments[0])mt(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];o.push(r)}Hy(e+`
275
275
  Arguments: `+Array.prototype.slice.call(o).join("")+`
276
- `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var mm={};function zy(e,t){xe.deprecationHandler!=null&&xe.deprecationHandler(e,t),mm[e]||(Hy(t),mm[e]=!0)}xe.suppressDeprecationWarnings=!1;xe.deprecationHandler=null;function Vo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function BD(e){var t,n;for(n in e)mt(e,n)&&(t=e[n],Vo(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function cu(e,t){var n=yr({},e),o;for(o in t)mt(t,o)&&(Wr(e[o])&&Wr(t[o])?(n[o]={},yr(n[o],e[o]),yr(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)mt(e,o)&&!mt(t,o)&&Wr(e[o])&&(n[o]=yr({},n[o]));return n}function rh(e){e!=null&&this.set(e)}var du;Object.keys?du=Object.keys:du=function(e){var t,n=[];for(t in e)mt(e,t)&&n.push(t);return n};var WD={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function HD(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return Vo(o)?o.call(t,n):o}function Ao(e,t,n){var o=""+Math.abs(e),r=t-o.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var sh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,el=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Td={},ks={};function $e(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(ks[e]=r),t&&(ks[t[0]]=function(){return Ao(r.apply(this,arguments),t[1],t[2])}),n&&(ks[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function zD(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function YD(e){var t=e.match(sh),n,o;for(n=0,o=t.length;n<o;n++)ks[t[n]]?t[n]=ks[t[n]]:t[n]=zD(t[n]);return function(r){var i="",a;for(a=0;a<o;a++)i+=Vo(t[a])?t[a].call(r,e):t[a];return i}}function ml(e,t){return e.isValid()?(t=Yy(t,e.localeData()),Td[t]=Td[t]||YD(t),Td[t](e)):e.localeData().invalidDate()}function Yy(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(el.lastIndex=0;n>=0&&el.test(e);)e=e.replace(el,o),el.lastIndex=0,n-=1;return e}var UD={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"};function qD(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(sh).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var GD="Invalid date";function KD(){return this._invalidDate}var XD="%d",ZD=/\d{1,2}/;function QD(e){return this._ordinal.replace("%d",e)}var JD={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function eO(e,t,n,o){var r=this._relativeTime[n];return Vo(r)?r(e,t,n,o):r.replace(/%d/i,e)}function tO(e,t){var n=this._relativeTime[e>0?"future":"past"];return Vo(n)?n(t):n.replace(/%s/i,t)}var gm={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function io(e){return typeof e=="string"?gm[e]||gm[e.toLowerCase()]:void 0}function ih(e){var t={},n,o;for(o in e)mt(e,o)&&(n=io(o),n&&(t[n]=e[o]));return t}var nO={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oO(e){var t=[],n;for(n in e)mt(e,n)&&t.push({unit:n,priority:nO[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var Uy=/\d/,Hn=/\d\d/,qy=/\d{3}/,ah=/\d{4}/,bc=/[+-]?\d{6}/,At=/\d\d?/,Gy=/\d\d\d\d?/,Ky=/\d\d\d\d\d\d?/,wc=/\d{1,3}/,lh=/\d{1,4}/,Cc=/[+-]?\d{1,6}/,Ks=/\d+/,Sc=/[+-]?\d+/,rO=/Z|[+-]\d\d:?\d\d/gi,_c=/Z|[+-]\d\d(?::?\d\d)?/gi,sO=/[+-]?\d+(\.\d{1,3})?/,Sa=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Xs=/^[1-9]\d?/,ch=/^([1-9]\d|\d)/,Ml;Ml={};function De(e,t,n){Ml[e]=Vo(t)?t:function(o,r){return o&&n?n:t}}function iO(e,t){return mt(Ml,e)?Ml[e](t._strict,t._locale):new RegExp(aO(e))}function aO(e){return Jo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,i){return n||o||r||i}))}function Jo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Zn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function nt(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Zn(t)),n}var uu={};function kt(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),sr(t)&&(o=function(i,a){a[t]=nt(i)}),r=e.length,n=0;n<r;n++)uu[e[n]]=o}function _a(e,t){kt(e,function(n,o,r,i){r._w=r._w||{},t(n,r._w,r,i)})}function lO(e,t,n){t!=null&&mt(uu,e)&&uu[e](t,n._a,n,e)}function xc(e){return e%4===0&&e%100!==0||e%400===0}var xn=0,Xo=1,Eo=2,an=3,ho=4,Zo=5,Vr=6,cO=7,dO=8;$e("Y",0,0,function(){var e=this.year();return e<=9999?Ao(e,4):"+"+e});$e(0,["YY",2],0,function(){return this.year()%100});$e(0,["YYYY",4],0,"year");$e(0,["YYYYY",5],0,"year");$e(0,["YYYYYY",6,!0],0,"year");De("Y",Sc);De("YY",At,Hn);De("YYYY",lh,ah);De("YYYYY",Cc,bc);De("YYYYYY",Cc,bc);kt(["YYYYY","YYYYYY"],xn);kt("YYYY",function(e,t){t[xn]=e.length===2?xe.parseTwoDigitYear(e):nt(e)});kt("YY",function(e,t){t[xn]=xe.parseTwoDigitYear(e)});kt("Y",function(e,t){t[xn]=parseInt(e,10)});function ji(e){return xc(e)?366:365}xe.parseTwoDigitYear=function(e){return nt(e)+(nt(e)>68?1900:2e3)};var Xy=Zs("FullYear",!0);function uO(){return xc(this.year())}function Zs(e,t){return function(n){return n!=null?(Zy(this,e,n),xe.updateOffset(this,t),this):oa(this,e)}}function oa(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Zy(e,t,n){var o,r,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(r?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(r?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(r?o.setUTCHours(n):o.setHours(n));case"Date":return void(r?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!xc(i)?28:l,r?o.setUTCFullYear(i,a,l):o.setFullYear(i,a,l)}}function hO(e){return e=io(e),Vo(this[e])?this[e]():this}function fO(e,t){if(typeof e=="object"){e=ih(e);var n=oO(e),o,r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(e=io(e),Vo(this[e]))return this[e](t);return this}function pO(e,t){return(e%t+t)%t}var en;Array.prototype.indexOf?en=Array.prototype.indexOf:en=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dh(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=pO(t,12);return e+=(t-n)/12,n===1?xc(e)?29:28:31-n%7%2}$e("M",["MM",2],"Mo",function(){return this.month()+1});$e("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});$e("MMMM",0,0,function(e){return this.localeData().months(this,e)});De("M",At,Xs);De("MM",At,Hn);De("MMM",function(e,t){return t.monthsShortRegex(e)});De("MMMM",function(e,t){return t.monthsRegex(e)});kt(["M","MM"],function(e,t){t[Xo]=nt(e)-1});kt(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);r!=null?t[Xo]=r:qe(n).invalidMonth=e});var mO="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Qy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Jy=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gO=Sa,yO=Sa;function vO(e,t){return e?po(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Jy).test(t)?"format":"standalone"][e.month()]:po(this._months)?this._months:this._months.standalone}function bO(e,t){return e?po(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Jy.test(t)?"format":"standalone"][e.month()]:po(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function wO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=$o([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(r=en.call(this._shortMonthsParse,a),r!==-1?r:null):(r=en.call(this._longMonthsParse,a),r!==-1?r:null):t==="MMM"?(r=en.call(this._shortMonthsParse,a),r!==-1?r:(r=en.call(this._longMonthsParse,a),r!==-1?r:null)):(r=en.call(this._longMonthsParse,a),r!==-1?r:(r=en.call(this._shortMonthsParse,a),r!==-1?r:null))}function CO(e,t,n){var o,r,i;if(this._monthsParseExact)return wO.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=$o([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[o]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(n&&t==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function ev(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=nt(t);else if(t=e.localeData().monthsParse(t),!sr(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,dh(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function tv(e){return e!=null?(ev(this,e),xe.updateOffset(this,!0),this):oa(this,"Month")}function SO(){return dh(this.year(),this.month())}function _O(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||nv.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(mt(this,"_monthsShortRegex")||(this._monthsShortRegex=gO),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function xO(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||nv.call(this),e?this._monthsStrictRegex:this._monthsRegex):(mt(this,"_monthsRegex")||(this._monthsRegex=yO),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function nv(){function e(d,u){return u.length-d.length}var t=[],n=[],o=[],r,i,a,l;for(r=0;r<12;r++)i=$o([2e3,r]),a=Jo(this.monthsShort(i,"")),l=Jo(this.months(i,"")),t.push(a),n.push(l),o.push(l),o.push(a);t.sort(e),n.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function RO(e,t,n,o,r,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,o,r,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,o,r,i,a),l}function ra(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Il(e,t,n){var o=7+t-n,r=(7+ra(e,0,o).getUTCDay()-t)%7;return-r+o-1}function ov(e,t,n,o,r){var i=(7+n-o)%7,a=Il(e,o,r),l=1+7*(t-1)+i+a,d,u;return l<=0?(d=e-1,u=ji(d)+l):l>ji(e)?(d=e+1,u=l-ji(e)):(d=e,u=l),{year:d,dayOfYear:u}}function sa(e,t,n){var o=Il(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+er(a,t,n)):r>er(e.year(),t,n)?(i=r-er(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function er(e,t,n){var o=Il(e,t,n),r=Il(e+1,t,n);return(ji(e)-o+r)/7}$e("w",["ww",2],"wo","week");$e("W",["WW",2],"Wo","isoWeek");De("w",At,Xs);De("ww",At,Hn);De("W",At,Xs);De("WW",At,Hn);_a(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=nt(e)});function TO(e){return sa(e,this._week.dow,this._week.doy).week}var EO={dow:0,doy:6};function kO(){return this._week.dow}function PO(){return this._week.doy}function DO(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function OO(e){var t=sa(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}$e("d",0,"do","day");$e("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});$e("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});$e("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});$e("e",0,0,"weekday");$e("E",0,0,"isoWeekday");De("d",At);De("e",At);De("E",At);De("dd",function(e,t){return t.weekdaysMinRegex(e)});De("ddd",function(e,t){return t.weekdaysShortRegex(e)});De("dddd",function(e,t){return t.weekdaysRegex(e)});_a(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);r!=null?t.d=r:qe(n).invalidWeekday=e});_a(["d","e","E"],function(e,t,n,o){t[o]=nt(e)});function MO(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function IO(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function uh(e,t){return e.slice(t,7).concat(e.slice(0,t))}var NO="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),rv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),AO="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),FO=Sa,LO=Sa,$O=Sa;function VO(e,t){var n=po(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?uh(n,this._week.dow):e?n[e.day()]:n}function jO(e){return e===!0?uh(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function BO(e){return e===!0?uh(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function WO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=$o([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(r=en.call(this._weekdaysParse,a),r!==-1?r:null):t==="ddd"?(r=en.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null):t==="dddd"?(r=en.call(this._weekdaysParse,a),r!==-1||(r=en.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null)):t==="ddd"?(r=en.call(this._shortWeekdaysParse,a),r!==-1||(r=en.call(this._weekdaysParse,a),r!==-1)?r:(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=en.call(this._minWeekdaysParse,a),r!==-1||(r=en.call(this._weekdaysParse,a),r!==-1)?r:(r=en.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function HO(e,t,n){var o,r,i;if(this._weekdaysParseExact)return WO.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=$o([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(n&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(n&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function zO(e){if(!this.isValid())return e!=null?this:NaN;var t=oa(this,"Day");return e!=null?(e=MO(e,this.localeData()),this.add(e-t,"d")):t}function YO(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function UO(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=IO(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function qO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(mt(this,"_weekdaysRegex")||(this._weekdaysRegex=FO),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function GO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(mt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=LO),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function KO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(mt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$O),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hh(){function e(f,p){return p.length-f.length}var t=[],n=[],o=[],r=[],i,a,l,d,u;for(i=0;i<7;i++)a=$o([2e3,1]).day(i),l=Jo(this.weekdaysMin(a,"")),d=Jo(this.weekdaysShort(a,"")),u=Jo(this.weekdays(a,"")),t.push(l),n.push(d),o.push(u),r.push(l),r.push(d),r.push(u);t.sort(e),n.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function fh(){return this.hours()%12||12}function XO(){return this.hours()||24}$e("H",["HH",2],0,"hour");$e("h",["hh",2],0,fh);$e("k",["kk",2],0,XO);$e("hmm",0,0,function(){return""+fh.apply(this)+Ao(this.minutes(),2)});$e("hmmss",0,0,function(){return""+fh.apply(this)+Ao(this.minutes(),2)+Ao(this.seconds(),2)});$e("Hmm",0,0,function(){return""+this.hours()+Ao(this.minutes(),2)});$e("Hmmss",0,0,function(){return""+this.hours()+Ao(this.minutes(),2)+Ao(this.seconds(),2)});function sv(e,t){$e(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}sv("a",!0);sv("A",!1);function iv(e,t){return t._meridiemParse}De("a",iv);De("A",iv);De("H",At,ch);De("h",At,Xs);De("k",At,Xs);De("HH",At,Hn);De("hh",At,Hn);De("kk",At,Hn);De("hmm",Gy);De("hmmss",Ky);De("Hmm",Gy);De("Hmmss",Ky);kt(["H","HH"],an);kt(["k","kk"],function(e,t,n){var o=nt(e);t[an]=o===24?0:o});kt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});kt(["h","hh"],function(e,t,n){t[an]=nt(e),qe(n).bigHour=!0});kt("hmm",function(e,t,n){var o=e.length-2;t[an]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o)),qe(n).bigHour=!0});kt("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[an]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o,2)),t[Zo]=nt(e.substr(r)),qe(n).bigHour=!0});kt("Hmm",function(e,t,n){var o=e.length-2;t[an]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o))});kt("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[an]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o,2)),t[Zo]=nt(e.substr(r))});function ZO(e){return(e+"").toLowerCase().charAt(0)==="p"}var QO=/[ap]\.?m?\.?/i,JO=Zs("Hours",!0);function eM(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var av={calendar:WD,longDateFormat:UD,invalidDate:GD,ordinal:XD,dayOfMonthOrdinalParse:ZD,relativeTime:JD,months:mO,monthsShort:Qy,week:EO,weekdays:NO,weekdaysMin:AO,weekdaysShort:rv,meridiemParse:QO},Bt={},pi={},ia;function tM(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}function ym(e){return e&&e.toLowerCase().replace("_","-")}function nM(e){for(var t=0,n,o,r,i;t<e.length;){for(i=ym(e[t]).split("-"),n=i.length,o=ym(e[t+1]),o=o?o.split("-"):null;n>0;){if(r=Rc(i.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&tM(i,o)>=n-1)break;n--}t++}return ia}function oM(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Rc(e){var t=null,n;if(Bt[e]===void 0&&typeof module<"u"&&module&&module.exports&&oM(e))try{t=ia._abbr,n=require,n("./locale/"+e),br(t)}catch{Bt[e]=null}return Bt[e]}function br(e,t){var n;return e&&(Pn(t)?n=lr(e):n=ph(e,t),n?ia=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ia._abbr}function ph(e,t){if(t!==null){var n,o=av;if(t.abbr=e,Bt[e]!=null)zy("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Bt[e]._config;else if(t.parentLocale!=null)if(Bt[t.parentLocale]!=null)o=Bt[t.parentLocale]._config;else if(n=Rc(t.parentLocale),n!=null)o=n._config;else return pi[t.parentLocale]||(pi[t.parentLocale]=[]),pi[t.parentLocale].push({name:e,config:t}),null;return Bt[e]=new rh(cu(o,t)),pi[e]&&pi[e].forEach(function(r){ph(r.name,r.config)}),br(e),Bt[e]}else return delete Bt[e],null}function rM(e,t){if(t!=null){var n,o,r=av;Bt[e]!=null&&Bt[e].parentLocale!=null?Bt[e].set(cu(Bt[e]._config,t)):(o=Rc(e),o!=null&&(r=o._config),t=cu(r,t),o==null&&(t.abbr=e),n=new rh(t),n.parentLocale=Bt[e],Bt[e]=n),br(e)}else Bt[e]!=null&&(Bt[e].parentLocale!=null?(Bt[e]=Bt[e].parentLocale,e===br()&&br(e)):Bt[e]!=null&&delete Bt[e]);return Bt[e]}function lr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ia;if(!po(e)){if(t=Rc(e),t)return t;e=[e]}return nM(e)}function sM(){return du(Bt)}function mh(e){var t,n=e._a;return n&&qe(e).overflow===-2&&(t=n[Xo]<0||n[Xo]>11?Xo:n[Eo]<1||n[Eo]>dh(n[xn],n[Xo])?Eo:n[an]<0||n[an]>24||n[an]===24&&(n[ho]!==0||n[Zo]!==0||n[Vr]!==0)?an:n[ho]<0||n[ho]>59?ho:n[Zo]<0||n[Zo]>59?Zo:n[Vr]<0||n[Vr]>999?Vr:-1,qe(e)._overflowDayOfYear&&(t<xn||t>Eo)&&(t=Eo),qe(e)._overflowWeeks&&t===-1&&(t=cO),qe(e)._overflowWeekday&&t===-1&&(t=dO),qe(e).overflow=t),e}var iM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,aM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lM=/Z|[+-]\d\d(?::?\d\d)?/,tl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ed=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],cM=/^\/?Date\((-?\d+)/i,dM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,uM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function lv(e){var t,n,o=e._i,r=iM.exec(o)||aM.exec(o),i,a,l,d,u=tl.length,f=Ed.length;if(r){for(qe(e).iso=!0,t=0,n=u;t<n;t++)if(tl[t][1].exec(r[1])){a=tl[t][0],i=tl[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,n=f;t<n;t++)if(Ed[t][1].exec(r[3])){l=(r[2]||" ")+Ed[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(r[4])if(lM.exec(r[4]))d="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(d||""),yh(e)}else e._isValid=!1}function hM(e,t,n,o,r,i){var a=[fM(e),Qy.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function fM(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pM(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mM(e,t,n){if(e){var o=rv.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(o!==r)return qe(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function gM(e,t,n){if(e)return uM[e];if(t)return 0;var o=parseInt(n,10),r=o%100,i=(o-r)/100;return i*60+r}function cv(e){var t=dM.exec(pM(e._i)),n;if(t){if(n=hM(t[4],t[3],t[2],t[5],t[6],t[7]),!mM(t[1],n,e))return;e._a=n,e._tzm=gM(t[8],t[9],t[10]),e._d=ra.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),qe(e).rfc2822=!0}else e._isValid=!1}function yM(e){var t=cM.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(lv(e),e._isValid===!1)delete e._isValid;else return;if(cv(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:xe.createFromInputFallback(e)}xe.createFromInputFallback=so("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function vs(e,t,n){return e??t??n}function vM(e){var t=new Date(xe.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function gh(e){var t,n,o=[],r,i,a;if(!e._d){for(r=vM(e),e._w&&e._a[Eo]==null&&e._a[Xo]==null&&bM(e),e._dayOfYear!=null&&(a=vs(e._a[xn],r[xn]),(e._dayOfYear>ji(a)||e._dayOfYear===0)&&(qe(e)._overflowDayOfYear=!0),n=ra(a,0,e._dayOfYear),e._a[Xo]=n.getUTCMonth(),e._a[Eo]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[an]===24&&e._a[ho]===0&&e._a[Zo]===0&&e._a[Vr]===0&&(e._nextDay=!0,e._a[an]=0),e._d=(e._useUTC?ra:RO).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[an]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(qe(e).weekdayMismatch=!0)}}function bM(e){var t,n,o,r,i,a,l,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=vs(t.GG,e._a[xn],sa(It(),1,4).year),o=vs(t.W,1),r=vs(t.E,1),(r<1||r>7)&&(d=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=sa(It(),i,a),n=vs(t.gg,e._a[xn],u.year),o=vs(t.w,u.week),t.d!=null?(r=t.d,(r<0||r>6)&&(d=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(d=!0)):r=i),o<1||o>er(n,i,a)?qe(e)._overflowWeeks=!0:d!=null?qe(e)._overflowWeekday=!0:(l=ov(n,o,r,i,a),e._a[xn]=l.year,e._dayOfYear=l.dayOfYear)}xe.ISO_8601=function(){};xe.RFC_2822=function(){};function yh(e){if(e._f===xe.ISO_8601){lv(e);return}if(e._f===xe.RFC_2822){cv(e);return}e._a=[],qe(e).empty=!0;var t=""+e._i,n,o,r,i,a,l=t.length,d=0,u,f;for(r=Yy(e._f,e._locale).match(sh)||[],f=r.length,n=0;n<f;n++)i=r[n],o=(t.match(iO(i,e))||[])[0],o&&(a=t.substr(0,t.indexOf(o)),a.length>0&&qe(e).unusedInput.push(a),t=t.slice(t.indexOf(o)+o.length),d+=o.length),ks[i]?(o?qe(e).empty=!1:qe(e).unusedTokens.push(i),lO(i,o,e)):e._strict&&!o&&qe(e).unusedTokens.push(i);qe(e).charsLeftOver=l-d,t.length>0&&qe(e).unusedInput.push(t),e._a[an]<=12&&qe(e).bigHour===!0&&e._a[an]>0&&(qe(e).bigHour=void 0),qe(e).parsedDateParts=e._a.slice(0),qe(e).meridiem=e._meridiem,e._a[an]=wM(e._locale,e._a[an],e._meridiem),u=qe(e).era,u!==null&&(e._a[xn]=e._locale.erasConvertYear(u,e._a[xn])),gh(e),mh(e)}function wM(e,t,n){var o;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(o=e.isPM(n),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function CM(e){var t,n,o,r,i,a,l=!1,d=e._f.length;if(d===0){qe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<d;r++)i=0,a=!1,t=oh({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],yh(t),nh(t)&&(a=!0),i+=qe(t).charsLeftOver,i+=qe(t).unusedTokens.length*10,qe(t).score=i,l?i<o&&(o=i,n=t):(o==null||i<o||a)&&(o=i,n=t,a&&(l=!0));yr(e,n||t)}function SM(e){if(!e._d){var t=ih(e._i),n=t.day===void 0?t.date:t.day;e._a=Wy([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),gh(e)}}function _M(e){var t=new Ca(mh(dv(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function dv(e){var t=e._i,n=e._f;return e._locale=e._locale||lr(e._l),t===null||n===void 0&&t===""?vc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),mo(t)?new Ca(mh(t)):(wa(t)?e._d=t:po(n)?CM(e):n?yh(e):xM(e),nh(e)||(e._d=null),e))}function xM(e){var t=e._i;Pn(t)?e._d=new Date(xe.now()):wa(t)?e._d=new Date(t.valueOf()):typeof t=="string"?yM(e):po(t)?(e._a=Wy(t.slice(0),function(n){return parseInt(n,10)}),gh(e)):Wr(t)?SM(e):sr(t)?e._d=new Date(t):xe.createFromInputFallback(e)}function uv(e,t,n,o,r){var i={};return(t===!0||t===!1)&&(o=t,t=void 0),(n===!0||n===!1)&&(o=n,n=void 0),(Wr(e)&&th(e)||po(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=o,_M(i)}function It(e,t,n,o){return uv(e,t,n,o,!1)}var RM=so("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:vc()}),TM=so("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:vc()});function hv(e,t){var n,o;if(t.length===1&&po(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],o=1;o<t.length;++o)(!t[o].isValid()||t[o][e](n))&&(n=t[o]);return n}function EM(){var e=[].slice.call(arguments,0);return hv("isBefore",e)}function kM(){var e=[].slice.call(arguments,0);return hv("isAfter",e)}var PM=function(){return Date.now?Date.now():+new Date},mi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function DM(e){var t,n=!1,o,r=mi.length;for(t in e)if(mt(e,t)&&!(en.call(mi,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[mi[o]]){if(n)return!1;parseFloat(e[mi[o]])!==nt(e[mi[o]])&&(n=!0)}return!0}function OM(){return this._isValid}function MM(){return go(NaN)}function Tc(e){var t=ih(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,d=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=DM(t),this._milliseconds=+f+u*1e3+d*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+r+o*3+n*12,this._data={},this._locale=lr(),this._bubble()}function gl(e){return e instanceof Tc}function hu(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function IM(e,t,n){var o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,a;for(a=0;a<o;a++)nt(e[a])!==nt(t[a])&&i++;return i+r}function fv(e,t){$e(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+Ao(~~(n/60),2)+t+Ao(~~n%60,2)})}fv("Z",":");fv("ZZ","");De("Z",_c);De("ZZ",_c);kt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=vh(_c,e)});var NM=/([\+\-]|\d\d)/gi;function vh(e,t){var n=(t||"").match(e),o,r,i;return n===null?null:(o=n[n.length-1]||[],r=(o+"").match(NM)||["-",0,0],i=+(r[1]*60)+nt(r[2]),i===0?0:r[0]==="+"?i:-i)}function bh(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(mo(e)||wa(e)?e.valueOf():It(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),xe.updateOffset(n,!1),n):It(e).local()}function fu(e){return-Math.round(e._d.getTimezoneOffset())}xe.updateOffset=function(){};function AM(e,t,n){var o=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=vh(_c,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=fu(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?gv(this,go(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,xe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:fu(this)}function FM(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function LM(e){return this.utcOffset(0,e)}function $M(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fu(this),"m")),this}function VM(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=vh(rO,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function jM(e){return this.isValid()?(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function BM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function WM(){if(!Pn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return oh(e,this),e=dv(e),e._a?(t=e._isUTC?$o(e._a):It(e._a),this._isDSTShifted=this.isValid()&&IM(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function HM(){return this.isValid()?!this._isUTC:!1}function zM(){return this.isValid()?this._isUTC:!1}function pv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var YM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,UM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function go(e,t){var n=e,o=null,r,i,a;return gl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:sr(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=YM.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:nt(o[Eo])*r,h:nt(o[an])*r,m:nt(o[ho])*r,s:nt(o[Zo])*r,ms:nt(hu(o[Vr]*1e3))*r}):(o=UM.exec(e))?(r=o[1]==="-"?-1:1,n={y:Dr(o[2],r),M:Dr(o[3],r),w:Dr(o[4],r),d:Dr(o[5],r),h:Dr(o[6],r),m:Dr(o[7],r),s:Dr(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=qM(It(n.from),It(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new Tc(n),gl(e)&&mt(e,"_locale")&&(i._locale=e._locale),gl(e)&&mt(e,"_isValid")&&(i._isValid=e._isValid),i}go.fn=Tc.prototype;go.invalid=MM;function Dr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function vm(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qM(e,t){var n;return e.isValid()&&t.isValid()?(t=bh(t,e),e.isBefore(t)?n=vm(e,t):(n=vm(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function mv(e,t){return function(n,o){var r,i;return o!==null&&!isNaN(+o)&&(zy(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),r=go(n,o),gv(this,r,e),this}}function gv(e,t,n,o){var r=t._milliseconds,i=hu(t._days),a=hu(t._months);e.isValid()&&(o=o??!0,a&&ev(e,oa(e,"Month")+a*n),i&&Zy(e,"Date",oa(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&xe.updateOffset(e,i||a))}var GM=mv(1,"add"),KM=mv(-1,"subtract");function yv(e){return typeof e=="string"||e instanceof String}function XM(e){return mo(e)||wa(e)||yv(e)||sr(e)||QM(e)||ZM(e)||e===null||e===void 0}function ZM(e){var t=Wr(e)&&!th(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,a=o.length;for(r=0;r<a;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function QM(e){var t=po(e),n=!1;return t&&(n=e.filter(function(o){return!sr(o)&&yv(e)}).length===0),t&&n}function JM(e){var t=Wr(e)&&!th(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<o.length;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function eI(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function tI(e,t){arguments.length===1&&(arguments[0]?XM(arguments[0])?(e=arguments[0],t=void 0):JM(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||It(),o=bh(n,this).startOf("day"),r=xe.calendarFormat(this,o)||"sameElse",i=t&&(Vo(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,It(n)))}function nI(){return new Ca(this)}function oI(e,t){var n=mo(e)?e:It(e);return this.isValid()&&n.isValid()?(t=io(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function rI(e,t){var n=mo(e)?e:It(e);return this.isValid()&&n.isValid()?(t=io(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function sI(e,t,n,o){var r=mo(e)?e:It(e),i=mo(t)?t:It(t);return this.isValid()&&r.isValid()&&i.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(o[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function iI(e,t){var n=mo(e)?e:It(e),o;return this.isValid()&&n.isValid()?(t=io(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf())):!1}function aI(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function lI(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function cI(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=bh(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,t=io(t),t){case"year":i=yl(this,o)/12;break;case"month":i=yl(this,o);break;case"quarter":i=yl(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:Zn(i)}function yl(e,t){if(e.date()<t.date())return-yl(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),o=e.clone().add(n,"months"),r,i;return t-o<0?(r=e.clone().add(n-1,"months"),i=(t-o)/(o-r)):(r=e.clone().add(n+1,"months"),i=(t-o)/(r-o)),-(n+i)||0}xe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";xe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function dI(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function uI(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?ml(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Vo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ml(n,"Z")):ml(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hI(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,o,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+o+r+i)}function fI(e){e||(e=this.isUtc()?xe.defaultFormatUtc:xe.defaultFormat);var t=ml(this,e);return this.localeData().postformat(t)}function pI(e,t){return this.isValid()&&(mo(e)&&e.isValid()||It(e).isValid())?go({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mI(e){return this.from(It(),e)}function gI(e,t){return this.isValid()&&(mo(e)&&e.isValid()||It(e).isValid())?go({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yI(e){return this.to(It(),e)}function vv(e){var t;return e===void 0?this._locale._abbr:(t=lr(e),t!=null&&(this._locale=t),this)}var bv=so("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function wv(){return this._locale}var Nl=1e3,Ps=60*Nl,Al=60*Ps,Cv=(365*400+97)*24*Al;function Ds(e,t){return(e%t+t)%t}function Sv(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Cv:new Date(e,t,n).valueOf()}function _v(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Cv:Date.UTC(e,t,n)}function vI(e){var t,n;if(e=io(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_v:Sv,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ds(t+(this._isUTC?0:this.utcOffset()*Ps),Al);break;case"minute":t=this._d.valueOf(),t-=Ds(t,Ps);break;case"second":t=this._d.valueOf(),t-=Ds(t,Nl);break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function bI(e){var t,n;if(e=io(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_v:Sv,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Al-Ds(t+(this._isUTC?0:this.utcOffset()*Ps),Al)-1;break;case"minute":t=this._d.valueOf(),t+=Ps-Ds(t,Ps)-1;break;case"second":t=this._d.valueOf(),t+=Nl-Ds(t,Nl)-1;break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function wI(){return this._d.valueOf()-(this._offset||0)*6e4}function CI(){return Math.floor(this.valueOf()/1e3)}function SI(){return new Date(this.valueOf())}function _I(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xI(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function RI(){return this.isValid()?this.toISOString():null}function TI(){return nh(this)}function EI(){return yr({},qe(this))}function kI(){return qe(this).overflow}function PI(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}$e("N",0,0,"eraAbbr");$e("NN",0,0,"eraAbbr");$e("NNN",0,0,"eraAbbr");$e("NNNN",0,0,"eraName");$e("NNNNN",0,0,"eraNarrow");$e("y",["y",1],"yo","eraYear");$e("y",["yy",2],0,"eraYear");$e("y",["yyy",3],0,"eraYear");$e("y",["yyyy",4],0,"eraYear");De("N",wh);De("NN",wh);De("NNN",wh);De("NNNN",jI);De("NNNNN",BI);kt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?qe(n).era=r:qe(n).invalidEra=e});De("y",Ks);De("yy",Ks);De("yyy",Ks);De("yyyy",Ks);De("yo",WI);kt(["y","yy","yyy","yyyy"],xn);kt(["yo"],function(e,t,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[xn]=n._locale.eraYearOrdinalParse(e,r):t[xn]=parseInt(e,10)});function DI(e,t){var n,o,r,i=this._eras||lr("en")._eras;for(n=0,o=i.length;n<o;++n){switch(typeof i[n].since){case"string":r=xe(i[n].since).startOf("day"),i[n].since=r.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=xe(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf();break}}return i}function OI(e,t,n){var o,r,i=this.eras(),a,l,d;for(e=e.toUpperCase(),o=0,r=i.length;o<r;++o)if(a=i[o].name.toUpperCase(),l=i[o].abbr.toUpperCase(),d=i[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[o];break;case"NNNN":if(a===e)return i[o];break;case"NNNNN":if(d===e)return i[o];break}else if([a,l,d].indexOf(e)>=0)return i[o]}function MI(e,t){var n=e.since<=e.until?1:-1;return t===void 0?xe(e.since).year():xe(e.since).year()+(t-e.offset)*n}function II(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].name;return""}function NI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].narrow;return""}function AI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].abbr;return""}function FI(){var e,t,n,o,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,o=this.clone().startOf("day").valueOf(),r[e].since<=o&&o<=r[e].until||r[e].until<=o&&o<=r[e].since)return(this.year()-xe(r[e].since).year())*n+r[e].offset;return this.year()}function LI(e){return mt(this,"_erasNameRegex")||Ch.call(this),e?this._erasNameRegex:this._erasRegex}function $I(e){return mt(this,"_erasAbbrRegex")||Ch.call(this),e?this._erasAbbrRegex:this._erasRegex}function VI(e){return mt(this,"_erasNarrowRegex")||Ch.call(this),e?this._erasNarrowRegex:this._erasRegex}function wh(e,t){return t.erasAbbrRegex(e)}function jI(e,t){return t.erasNameRegex(e)}function BI(e,t){return t.erasNarrowRegex(e)}function WI(e,t){return t._eraYearOrdinalRegex||Ks}function Ch(){var e=[],t=[],n=[],o=[],r,i,a,l,d,u=this.eras();for(r=0,i=u.length;r<i;++r)a=Jo(u[r].name),l=Jo(u[r].abbr),d=Jo(u[r].narrow),t.push(a),e.push(l),n.push(d),o.push(a),o.push(l),o.push(d);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}$e(0,["gg",2],0,function(){return this.weekYear()%100});$e(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ec(e,t){$e(0,[e,e.length],0,t)}Ec("gggg","weekYear");Ec("ggggg","weekYear");Ec("GGGG","isoWeekYear");Ec("GGGGG","isoWeekYear");De("G",Sc);De("g",Sc);De("GG",At,Hn);De("gg",At,Hn);De("GGGG",lh,ah);De("gggg",lh,ah);De("GGGGG",Cc,bc);De("ggggg",Cc,bc);_a(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=nt(e)});_a(["gg","GG"],function(e,t,n,o){t[o]=xe.parseTwoDigitYear(e)});function HI(e){return xv.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function zI(e){return xv.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function YI(){return er(this.year(),1,4)}function UI(){return er(this.isoWeekYear(),1,4)}function qI(){var e=this.localeData()._week;return er(this.year(),e.dow,e.doy)}function GI(){var e=this.localeData()._week;return er(this.weekYear(),e.dow,e.doy)}function xv(e,t,n,o,r){var i;return e==null?sa(this,o,r).year:(i=er(e,o,r),t>i&&(t=i),KI.call(this,e,t,n,o,r))}function KI(e,t,n,o,r){var i=ov(e,t,n,o,r),a=ra(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}$e("Q",0,"Qo","quarter");De("Q",Uy);kt("Q",function(e,t){t[Xo]=(nt(e)-1)*3});function XI(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}$e("D",["DD",2],"Do","date");De("D",At,Xs);De("DD",At,Hn);De("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});kt(["D","DD"],Eo);kt("Do",function(e,t){t[Eo]=nt(e.match(At)[0])});var Rv=Zs("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear");De("DDD",wc);De("DDDD",qy);kt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=nt(e)});function ZI(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}$e("m",["mm",2],0,"minute");De("m",At,ch);De("mm",At,Hn);kt(["m","mm"],ho);var QI=Zs("Minutes",!1);$e("s",["ss",2],0,"second");De("s",At,ch);De("ss",At,Hn);kt(["s","ss"],Zo);var JI=Zs("Seconds",!1);$e("S",0,0,function(){return~~(this.millisecond()/100)});$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)});$e(0,["SSS",3],0,"millisecond");$e(0,["SSSS",4],0,function(){return this.millisecond()*10});$e(0,["SSSSS",5],0,function(){return this.millisecond()*100});$e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});$e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});$e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});$e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});De("S",wc,Uy);De("SS",wc,Hn);De("SSS",wc,qy);var vr,Tv;for(vr="SSSS";vr.length<=9;vr+="S")De(vr,Ks);function eN(e,t){t[Vr]=nt(("0."+e)*1e3)}for(vr="S";vr.length<=9;vr+="S")kt(vr,eN);Tv=Zs("Milliseconds",!1);$e("z",0,0,"zoneAbbr");$e("zz",0,0,"zoneName");function tN(){return this._isUTC?"UTC":""}function nN(){return this._isUTC?"Coordinated Universal Time":""}var ve=Ca.prototype;ve.add=GM;ve.calendar=tI;ve.clone=nI;ve.diff=cI;ve.endOf=bI;ve.format=fI;ve.from=pI;ve.fromNow=mI;ve.to=gI;ve.toNow=yI;ve.get=hO;ve.invalidAt=kI;ve.isAfter=oI;ve.isBefore=rI;ve.isBetween=sI;ve.isSame=iI;ve.isSameOrAfter=aI;ve.isSameOrBefore=lI;ve.isValid=TI;ve.lang=bv;ve.locale=vv;ve.localeData=wv;ve.max=TM;ve.min=RM;ve.parsingFlags=EI;ve.set=fO;ve.startOf=vI;ve.subtract=KM;ve.toArray=_I;ve.toObject=xI;ve.toDate=SI;ve.toISOString=uI;ve.inspect=hI;typeof Symbol<"u"&&Symbol.for!=null&&(ve[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ve.toJSON=RI;ve.toString=dI;ve.unix=CI;ve.valueOf=wI;ve.creationData=PI;ve.eraName=II;ve.eraNarrow=NI;ve.eraAbbr=AI;ve.eraYear=FI;ve.year=Xy;ve.isLeapYear=uO;ve.weekYear=HI;ve.isoWeekYear=zI;ve.quarter=ve.quarters=XI;ve.month=tv;ve.daysInMonth=SO;ve.week=ve.weeks=DO;ve.isoWeek=ve.isoWeeks=OO;ve.weeksInYear=qI;ve.weeksInWeekYear=GI;ve.isoWeeksInYear=YI;ve.isoWeeksInISOWeekYear=UI;ve.date=Rv;ve.day=ve.days=zO;ve.weekday=YO;ve.isoWeekday=UO;ve.dayOfYear=ZI;ve.hour=ve.hours=JO;ve.minute=ve.minutes=QI;ve.second=ve.seconds=JI;ve.millisecond=ve.milliseconds=Tv;ve.utcOffset=AM;ve.utc=LM;ve.local=$M;ve.parseZone=VM;ve.hasAlignedHourOffset=jM;ve.isDST=BM;ve.isLocal=HM;ve.isUtcOffset=zM;ve.isUtc=pv;ve.isUTC=pv;ve.zoneAbbr=tN;ve.zoneName=nN;ve.dates=so("dates accessor is deprecated. Use date instead.",Rv);ve.months=so("months accessor is deprecated. Use month instead",tv);ve.years=so("years accessor is deprecated. Use year instead",Xy);ve.zone=so("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",FM);ve.isDSTShifted=so("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",WM);function oN(e){return It(e*1e3)}function rN(){return It.apply(null,arguments).parseZone()}function Ev(e){return e}var gt=rh.prototype;gt.calendar=HD;gt.longDateFormat=qD;gt.invalidDate=KD;gt.ordinal=QD;gt.preparse=Ev;gt.postformat=Ev;gt.relativeTime=eO;gt.pastFuture=tO;gt.set=BD;gt.eras=DI;gt.erasParse=OI;gt.erasConvertYear=MI;gt.erasAbbrRegex=$I;gt.erasNameRegex=LI;gt.erasNarrowRegex=VI;gt.months=vO;gt.monthsShort=bO;gt.monthsParse=CO;gt.monthsRegex=xO;gt.monthsShortRegex=_O;gt.week=TO;gt.firstDayOfYear=PO;gt.firstDayOfWeek=kO;gt.weekdays=VO;gt.weekdaysMin=BO;gt.weekdaysShort=jO;gt.weekdaysParse=HO;gt.weekdaysRegex=qO;gt.weekdaysShortRegex=GO;gt.weekdaysMinRegex=KO;gt.isPM=ZO;gt.meridiem=eM;function Fl(e,t,n,o){var r=lr(),i=$o().set(o,t);return r[n](i,e)}function kv(e,t,n){if(sr(e)&&(t=e,e=void 0),e=e||"",t!=null)return Fl(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=Fl(e,o,n,"month");return r}function Sh(e,t,n,o){typeof e=="boolean"?(sr(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,sr(t)&&(n=t,t=void 0),t=t||"");var r=lr(),i=e?r._week.dow:0,a,l=[];if(n!=null)return Fl(t,(n+i)%7,o,"day");for(a=0;a<7;a++)l[a]=Fl(t,(a+i)%7,o,"day");return l}function sN(e,t){return kv(e,t,"months")}function iN(e,t){return kv(e,t,"monthsShort")}function aN(e,t,n){return Sh(e,t,n,"weekdays")}function lN(e,t,n){return Sh(e,t,n,"weekdaysShort")}function cN(e,t,n){return Sh(e,t,n,"weekdaysMin")}br("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=nt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});xe.lang=so("moment.lang is deprecated. Use moment.locale instead.",br);xe.langData=so("moment.langData is deprecated. Use moment.localeData instead.",lr);var qo=Math.abs;function dN(){var e=this._data;return this._milliseconds=qo(this._milliseconds),this._days=qo(this._days),this._months=qo(this._months),e.milliseconds=qo(e.milliseconds),e.seconds=qo(e.seconds),e.minutes=qo(e.minutes),e.hours=qo(e.hours),e.months=qo(e.months),e.years=qo(e.years),this}function Pv(e,t,n,o){var r=go(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function uN(e,t){return Pv(this,e,t,1)}function hN(e,t){return Pv(this,e,t,-1)}function bm(e){return e<0?Math.floor(e):Math.ceil(e)}function fN(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,i,a,l,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=bm(pu(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Zn(e/1e3),o.seconds=r%60,i=Zn(r/60),o.minutes=i%60,a=Zn(i/60),o.hours=a%24,t+=Zn(a/24),d=Zn(Dv(t)),n+=d,t-=bm(pu(d)),l=Zn(n/12),n%=12,o.days=t,o.months=n,o.years=l,this}function Dv(e){return e*4800/146097}function pu(e){return e*146097/4800}function pN(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=io(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+Dv(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(pu(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function cr(e){return function(){return this.as(e)}}var Ov=cr("ms"),mN=cr("s"),gN=cr("m"),yN=cr("h"),vN=cr("d"),bN=cr("w"),wN=cr("M"),CN=cr("Q"),SN=cr("y"),_N=Ov;function xN(){return go(this)}function RN(e){return e=io(e),this.isValid()?this[e+"s"]():NaN}function Zr(e){return function(){return this.isValid()?this._data[e]:NaN}}var TN=Zr("milliseconds"),EN=Zr("seconds"),kN=Zr("minutes"),PN=Zr("hours"),DN=Zr("days"),ON=Zr("months"),MN=Zr("years");function IN(){return Zn(this.days()/7)}var Ko=Math.round,Ss={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function NN(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function AN(e,t,n,o){var r=go(e).abs(),i=Ko(r.as("s")),a=Ko(r.as("m")),l=Ko(r.as("h")),d=Ko(r.as("d")),u=Ko(r.as("M")),f=Ko(r.as("w")),p=Ko(r.as("y")),y=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(y=y||f<=1&&["w"]||f<n.w&&["ww",f]),y=y||u<=1&&["M"]||u<n.M&&["MM",u]||p<=1&&["y"]||["yy",p],y[2]=t,y[3]=+e>0,y[4]=o,NN.apply(null,y)}function FN(e){return e===void 0?Ko:typeof e=="function"?(Ko=e,!0):!1}function LN(e,t){return Ss[e]===void 0?!1:t===void 0?Ss[e]:(Ss[e]=t,e==="s"&&(Ss.ss=t-1),!0)}function $N(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=Ss,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},Ss,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),r=this.localeData(),i=AN(this,!n,o,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var kd=Math.abs;function ps(e){return(e>0)-(e<0)||+e}function kc(){if(!this.isValid())return this.localeData().invalidDate();var e=kd(this._milliseconds)/1e3,t=kd(this._days),n=kd(this._months),o,r,i,a,l=this.asSeconds(),d,u,f,p;return l?(o=Zn(e/60),r=Zn(o/60),e%=60,o%=60,i=Zn(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",u=ps(this._months)!==ps(l)?"-":"",f=ps(this._days)!==ps(l)?"-":"",p=ps(this._milliseconds)!==ps(l)?"-":"",d+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+a+"S":"")):"P0D"}var dt=Tc.prototype;dt.isValid=OM;dt.abs=dN;dt.add=uN;dt.subtract=hN;dt.as=pN;dt.asMilliseconds=Ov;dt.asSeconds=mN;dt.asMinutes=gN;dt.asHours=yN;dt.asDays=vN;dt.asWeeks=bN;dt.asMonths=wN;dt.asQuarters=CN;dt.asYears=SN;dt.valueOf=_N;dt._bubble=fN;dt.clone=xN;dt.get=RN;dt.milliseconds=TN;dt.seconds=EN;dt.minutes=kN;dt.hours=PN;dt.days=DN;dt.weeks=IN;dt.months=ON;dt.years=MN;dt.humanize=$N;dt.toISOString=kc;dt.toString=kc;dt.toJSON=kc;dt.locale=vv;dt.localeData=wv;dt.toIsoString=so("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kc);dt.lang=bv;$e("X",0,0,"unix");$e("x",0,0,"valueOf");De("x",Sc);De("X",sO);kt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});kt("x",function(e,t,n){n._d=new Date(nt(e))});//! moment.js
277
- xe.version="2.30.1";VD(It);xe.fn=ve;xe.min=EM;xe.max=kM;xe.now=PM;xe.utc=$o;xe.unix=oN;xe.months=sN;xe.isDate=wa;xe.locale=br;xe.invalid=vc;xe.duration=go;xe.isMoment=mo;xe.weekdays=aN;xe.parseZone=rN;xe.localeData=lr;xe.isDuration=gl;xe.monthsShort=iN;xe.weekdaysMin=cN;xe.defineLocale=ph;xe.updateLocale=rM;xe.locales=sM;xe.weekdaysShort=lN;xe.normalizeUnits=io;xe.relativeTimeRounding=FN;xe.relativeTimeThreshold=LN;xe.calendarFormat=eI;xe.prototype=ve;xe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const VN=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"})),jN=[xe.ISO_8601,Ur.ui,Ur.db],mu="Invalid date";ie(ny)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});class BN extends yc{handleKeyboardEvent(t,n){if(n.isActive)if(rW(t)){if(!n.summaryColumnIds.length)return;const o=n.grid;if(!o||o.getSelectedRows().length<2)return;t.preventDefault(),t.stopImmediatePropagation(),jn.table=n,jn.open=!0}else super.handleKeyboardEvent.call(this,t,n)}}let Mv=class{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args={};const t=this.grid.getData();t.setFilterArgs(this.args),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class WN extends Mv{getFilterFn(){return t=>!t?.isDeleted}}class HN{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(){}print(){return[]}reset(){}get args(){return this._args}get grid(){return this._grid}get tableId(){return this._tableId}set args(t){}set grid(t){}set tableId(t){}}function _s(e){return new Date(e).getTime()}class Iv{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(n,o)=>this.filterFn(n,o)&&t(n,o)}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){this.filter.reset()}print(t){return this.filter.print(t)}set args(t){this.filter.args=t}set grid(t){this.filter.grid=t}set tableId(t){this.filter.tableId=t}get args(){return this.filter.args}get grid(){return this.filter.grid}get tableId(){return this.filter.tableId}}function zN(e){return{tooltip:"Apply column filter",command:e}}class xa{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const n=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(n,1)}notify(){for(const t of this.observers)t()}}class YN extends xa{constructor(){super(...arguments),this.columnId="",this.group=fn.Text,this.target=null,this.x=0,this.y=0}}const wn=new YN;class UN{highlightAllColumns(t,n){const o=document.getElementById(n);if(!o)return;const r=Object.keys(t.columnFilters||{});if(r.length)for(const i of r){const a=o.querySelector(`[data-id="${i}"]`);a&&(t.columnFilters[i].value[1]||t.columnFilters[i].value[2]?a.classList.add("filter-active"):a.classList.remove("filter-active"))}else{const i=o.querySelectorAll(".slick-header-column");for(const a of i)a.classList.remove("filter-active")}}highlightColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.add("filter-active")}resetColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.remove("filter-active")}}const Fo=new UN;function Nv(e){return Fo.highlightAllColumns(e.filter.args,e.id),function(t,n){t.preventDefault(),wn.columnId=n.column.id||"",wn.group=n.command,wn.table=e,wn.target=t.target,wn.x=t.x||0,wn.y=t.y||0,wn.notify()}}function _h(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const qN=ie(An)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),GN={Wrapper:qN},Pc=({setIsOpened:e})=>E.jsx(GN.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),KN=ie(An)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"fixed",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),XN={Wrapper:KN},Dc=({children:e,id:t})=>E.jsx(XN.Wrapper,{id:t,children:e});function ZN(e){return`(${QN(e)})`}function QN(e){return e.replace("-","")}function Oc(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),P=`${n}${v}`,D=p?`-${P}`:P,x=p&&a?ZN(D):D;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}function JN(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:f,name:p}=l;n.includes(f)&&(t[f]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${Oc(t[u].total)}`})}),t}const Av="selected-rows-summary";function eA(e){Fe.useEffect(()=>{if(!e)return;const t=document.getElementById(Av);t&&(t.style.visibility="visible",t.style.left=`${jn.x}px`,t.style.top=`${jn.y}px`)},[e])}function tA(e,t,n,o){Fe.useEffect(()=>{function r(){const{open:i,table:a}=jn;if(a?.id===o){if(i){const l=jn.table,d=l?.grid;t(d?.getSelectedRows().length||0),n(JN(l))}e(i)}}return jn.subscribe(r),()=>{jn.unsubscribe(r)}},[o])}const nA=ie(_y)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),oA=ie("span")({display:"flex",alignItems:"center"}),rA=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),Pd={Icon:rA,Total:oA},sA=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Fe.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(nA,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs(Pd.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx(Pd.Icon,{className:"sgi sgi-check"}):E.jsx(Ly,{title:"Copy to clipboard",children:E.jsx(Pd.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},iA=ie(Cn)({color:"#1E456F",marginBottom:"0.5em",fontWeight:"600",fontSize:"1.3rem",letterSpacing:"-2%",minWidth:"14em"}),aA=ie(An)({color:"#1E456F"}),lA=ie("ul")({paddingLeft:"1.5em"}),cA=ie(An)({display:"flex",justifyContent:"end"}),dA=ie(ko)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),gi={Button:dA,ButtonContainer:cA,RowsNumber:aA,Title:iA,Ul:lA},uA=({tableId:e})=>{const[t,n]=Fe.useState(0),[o,r]=Fe.useState(!1),[i,a]=Fe.useState({});function l(){jn.open=!1}return eA(o),tA(r,n,a,e),o?E.jsxs(Fe.Fragment,{children:[E.jsx(Pc,{setIsOpened:r}),E.jsxs(Dc,{id:Av,children:[E.jsx(gi.Title,{variant:"h6",children:"Selected rows summary"}),E.jsx(gi.RowsNumber,{children:`Number of selected rows: ${t}`}),E.jsx(gi.Ul,{children:Object.entries(i).map(([d,{label:u,total:f,totalFormatted:p}])=>E.jsx("li",{children:E.jsx(sA,{label:u,total:f,totalFormatted:p})},d))}),E.jsx(gi.ButtonContainer,{children:E.jsx(gi.Button,{variant:"outlined",onClick:l,children:"Close"})})]})]}):null};function Fv(e,t=300){let n;return function(...o){const r=()=>e.apply(this,o);clearTimeout(n),n=setTimeout(r,t)}}function hA(e){const{columnId:t,table:n}=wn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?Fo.highlightColumn(n,t):Fo.resetColumn(n,t))}const ir=Fv(hA),Ws={1:"",2:""},Lv="column-filters",co={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function fA(e){switch(e){case fn.Boolean:return je.Boolean;case fn.Date:return je.DateEqual;case fn.MultipleSelect:return je.MultipleSelect;case fn.Number:case fn.NumberFormatted:return je.NumberEqual;case fn.Text:return je.TextContain}}function pA(e,t,n){Fe.useEffect(()=>{if(!e)return;const o=document.getElementById(Lv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=wn;if(!a?.grid)return;const f=a.filter.args;_h(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||fA(i),b=y||Ws;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function mA(e,t){Fe.useEffect(()=>{function n(){wn.table?.id===t&&e(!0)}return wn.subscribe(n),()=>{wn.unsubscribe(n)}},[t])}function gu(e){return{format:Ur.ui,value:e?xe(e,jN):null}}const gA=ie(ko)({width:"5em",alignSelf:"flex-end"}),yA={Button:gA},vA=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=wn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,Fo.resetColumn(i,r),t(Ws),e(!1)}return E.jsx(yA.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},bA=ie(pc)({padding:0}),wA=ie(xy)({margin:"0.5em 0 0 1em"}),nl={Checkbox:bA,FormGroup:wA},CA=({setValue:e,value:t})=>{function n(o){e(o),ir(o)}return E.jsxs(nl.FormGroup,{children:[E.jsx(fl,{control:E.jsx(nl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(fl,{control:E.jsx(nl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(fl,{control:E.jsx(nl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},SA={Y:"year",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"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},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"},_A={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},wm=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
278
- `);class $v{constructor({locale:t,formats:n,instance:o}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=SA,this.setLocaleToValue=r=>{const i=this.getCurrentLocaleCode();return i===r.locale()?r:r.locale(i)},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=r=>{const i=this.moment(r).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=r=>{const i=this.moment.utc(r);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(r,i)=>{if(!this.hasTimezonePlugin())throw new Error(wm);const a=i==="default"?this.moment(r):this.moment.tz(r,i);return this.locale===void 0?a:a.locale(this.locale)},this.date=(r,i="default")=>r===null?null:i==="UTC"?this.createUTCDate(r):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(r):this.createTZDate(r,i),this.getInvalidDate=()=>this.moment(new Date("Invalid Date")),this.getTimezone=r=>{const i=r._z?.name,a=r.isUTC()?"UTC":"system";return i??this.moment.defaultZone?.name??a},this.setTimezone=(r,i)=>{if(this.getTimezone(r)===i)return r;if(i==="UTC")return r.clone().utc();if(i==="system")return r.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(wm);return r}const a=i==="default"?this.moment.defaultZone?.name??"system":i;if(a==="system")return r.clone().local();const l=r.clone();return l.tz(a),l},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.locale?this.moment(r,i,this.locale,!0):this.moment(r,i,!0),this.getCurrentLocaleCode=()=>this.locale||xe.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(xe.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=r=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return r.match(i).map(a=>{const l=a[0];return l==="L"||l===";"?xe.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>{const a=r.clone();return a.locale(this.getCurrentLocaleCode()),a.format(i)},this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.isSame(i),this.isSameYear=(r,i)=>r.isSame(i,"year"),this.isSameMonth=(r,i)=>r.isSame(i,"month"),this.isSameDay=(r,i)=>r.isSame(i,"day"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r.isAfter(i),this.isAfterYear=(r,i)=>r.isAfter(i,"year"),this.isAfterDay=(r,i)=>r.isAfter(i,"day"),this.isBefore=(r,i)=>r.isBefore(i),this.isBeforeYear=(r,i)=>r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>r.isBefore(i,"day"),this.isWithinRange=(r,[i,a])=>r.isBetween(i,a,null,"[]"),this.startOfYear=r=>r.clone().startOf("year"),this.startOfMonth=r=>r.clone().startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r.clone()).startOf("week"),this.startOfDay=r=>r.clone().startOf("day"),this.endOfYear=r=>r.clone().endOf("year"),this.endOfMonth=r=>r.clone().endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r.clone()).endOf("week"),this.endOfDay=r=>r.clone().endOf("day"),this.addYears=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"years"):r.clone().add(i,"years"),this.addMonths=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"months"):r.clone().add(i,"months"),this.addWeeks=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"weeks"):r.clone().add(i,"weeks"),this.addDays=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"days"):r.clone().add(i,"days"),this.addHours=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"hours"):r.clone().add(i,"hours"),this.addMinutes=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"minutes"):r.clone().add(i,"minutes"),this.addSeconds=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"seconds"):r.clone().add(i,"seconds"),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month"),this.getDate=r=>r.get("date"),this.getHours=r=>r.get("hours"),this.getMinutes=r=>r.get("minutes"),this.getSeconds=r=>r.get("seconds"),this.getMilliseconds=r=>r.get("milliseconds"),this.setYear=(r,i)=>r.clone().year(i),this.setMonth=(r,i)=>r.clone().month(i),this.setDate=(r,i)=>r.clone().date(i),this.setHours=(r,i)=>r.clone().hours(i),this.setMinutes=(r,i)=>r.clone().minutes(i),this.setSeconds=(r,i)=>r.clone().seconds(i),this.setMilliseconds=(r,i)=>r.clone().milliseconds(i),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let l=0,d=i;const u=[];for(;d.isBefore(a);){const f=Math.floor(l/7);u[f]=u[f]||[],u[f].push(d),d=this.addDays(d,1),l+=1}return u},this.getWeekNumber=r=>r.week(),this.getDayOfWeek=r=>r.day()+1,this.moment=o||xe,this.locale=t,this.formats=Q({},_A,n)}getYearRange([t,n]){const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}}const yi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),xA=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},Ll=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},Bi=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:l})=>{const d=Ll(a,a.date(void 0,l),e);n&&a.isBefore(r,d)&&(r=d),t&&a.isAfter(o,d)&&(o=d);let u=e,f=e;for(a.isBefore(e,r)&&(u=r,f=null),a.isAfter(e,o)&&(f&&(f=o),u=null);u||f;){if(u&&a.isAfter(u,o)&&(u=null),f&&a.isBefore(f,r)&&(f=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(f){if(!i(f))return f;f=a.addDays(f,-1)}}return null},RA=(e,t)=>t==null||!e.isValid(t)?null:t,to=(e,t,n)=>t==null||!e.isValid(t)?n:t,TA=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),xh=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},Vv=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),EA=["year","month","day"],Cm=e=>EA.includes(e),Rh=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return yi(n,["year"])?r.year:yi(n,["month"])?r.month:yi(n,["day"])?r.dayOfMonth:yi(n,["month","year"])?`${r.month} ${r.year}`:yi(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},kA=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},PA=["hours","minutes","seconds"],DA=e=>PA.includes(e),Sm=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),OA=(e,t)=>(n,o)=>e?t.isAfter(n,o):Sm(n,t)>Sm(o,t),Ro={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},MA=e=>Math.max(...e.map(t=>Ro[t.type]??1)),vi=(e,t,n)=>{if(t===Ro.year)return e.startOfYear(n);if(t===Ro.month)return e.startOfMonth(n);if(t===Ro.day)return e.startOfDay(n);let o=n;return t<Ro.minutes&&(o=e.setMinutes(o,0)),t<Ro.seconds&&(o=e.setSeconds(o,0)),t<Ro.milliseconds&&(o=e.setMilliseconds(o,0)),o},IA=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():vi(t,n,Vv(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=vi(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=vi(t,n,e.maxDate));const a=OA(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=vi(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ll(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=vi(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ll(t,i,e.maxTime))),i},Th=(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(`
276
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var mm={};function zy(e,t){xe.deprecationHandler!=null&&xe.deprecationHandler(e,t),mm[e]||(Hy(t),mm[e]=!0)}xe.suppressDeprecationWarnings=!1;xe.deprecationHandler=null;function Vo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function BD(e){var t,n;for(n in e)mt(e,n)&&(t=e[n],Vo(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function cu(e,t){var n=yr({},e),o;for(o in t)mt(t,o)&&(Wr(e[o])&&Wr(t[o])?(n[o]={},yr(n[o],e[o]),yr(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)mt(e,o)&&!mt(t,o)&&Wr(e[o])&&(n[o]=yr({},n[o]));return n}function rh(e){e!=null&&this.set(e)}var du;Object.keys?du=Object.keys:du=function(e){var t,n=[];for(t in e)mt(e,t)&&n.push(t);return n};var WD={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function HD(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return Vo(o)?o.call(t,n):o}function Ao(e,t,n){var o=""+Math.abs(e),r=t-o.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var sh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,el=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Td={},ks={};function $e(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(ks[e]=r),t&&(ks[t[0]]=function(){return Ao(r.apply(this,arguments),t[1],t[2])}),n&&(ks[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function zD(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function YD(e){var t=e.match(sh),n,o;for(n=0,o=t.length;n<o;n++)ks[t[n]]?t[n]=ks[t[n]]:t[n]=zD(t[n]);return function(r){var i="",a;for(a=0;a<o;a++)i+=Vo(t[a])?t[a].call(r,e):t[a];return i}}function ml(e,t){return e.isValid()?(t=Yy(t,e.localeData()),Td[t]=Td[t]||YD(t),Td[t](e)):e.localeData().invalidDate()}function Yy(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(el.lastIndex=0;n>=0&&el.test(e);)e=e.replace(el,o),el.lastIndex=0,n-=1;return e}var UD={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"};function qD(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(sh).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var GD="Invalid date";function KD(){return this._invalidDate}var XD="%d",ZD=/\d{1,2}/;function QD(e){return this._ordinal.replace("%d",e)}var JD={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function eO(e,t,n,o){var r=this._relativeTime[n];return Vo(r)?r(e,t,n,o):r.replace(/%d/i,e)}function tO(e,t){var n=this._relativeTime[e>0?"future":"past"];return Vo(n)?n(t):n.replace(/%s/i,t)}var gm={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function io(e){return typeof e=="string"?gm[e]||gm[e.toLowerCase()]:void 0}function ih(e){var t={},n,o;for(o in e)mt(e,o)&&(n=io(o),n&&(t[n]=e[o]));return t}var nO={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oO(e){var t=[],n;for(n in e)mt(e,n)&&t.push({unit:n,priority:nO[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var Uy=/\d/,Hn=/\d\d/,qy=/\d{3}/,ah=/\d{4}/,bc=/[+-]?\d{6}/,At=/\d\d?/,Gy=/\d\d\d\d?/,Ky=/\d\d\d\d\d\d?/,wc=/\d{1,3}/,lh=/\d{1,4}/,Cc=/[+-]?\d{1,6}/,Ks=/\d+/,Sc=/[+-]?\d+/,rO=/Z|[+-]\d\d:?\d\d/gi,_c=/Z|[+-]\d\d(?::?\d\d)?/gi,sO=/[+-]?\d+(\.\d{1,3})?/,Sa=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Xs=/^[1-9]\d?/,ch=/^([1-9]\d|\d)/,Ml;Ml={};function De(e,t,n){Ml[e]=Vo(t)?t:function(o,r){return o&&n?n:t}}function iO(e,t){return mt(Ml,e)?Ml[e](t._strict,t._locale):new RegExp(aO(e))}function aO(e){return Jo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,i){return n||o||r||i}))}function Jo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Zn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function nt(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Zn(t)),n}var uu={};function kt(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),sr(t)&&(o=function(i,a){a[t]=nt(i)}),r=e.length,n=0;n<r;n++)uu[e[n]]=o}function _a(e,t){kt(e,function(n,o,r,i){r._w=r._w||{},t(n,r._w,r,i)})}function lO(e,t,n){t!=null&&mt(uu,e)&&uu[e](t,n._a,n,e)}function xc(e){return e%4===0&&e%100!==0||e%400===0}var xn=0,Xo=1,ko=2,an=3,ho=4,Zo=5,Vr=6,cO=7,dO=8;$e("Y",0,0,function(){var e=this.year();return e<=9999?Ao(e,4):"+"+e});$e(0,["YY",2],0,function(){return this.year()%100});$e(0,["YYYY",4],0,"year");$e(0,["YYYYY",5],0,"year");$e(0,["YYYYYY",6,!0],0,"year");De("Y",Sc);De("YY",At,Hn);De("YYYY",lh,ah);De("YYYYY",Cc,bc);De("YYYYYY",Cc,bc);kt(["YYYYY","YYYYYY"],xn);kt("YYYY",function(e,t){t[xn]=e.length===2?xe.parseTwoDigitYear(e):nt(e)});kt("YY",function(e,t){t[xn]=xe.parseTwoDigitYear(e)});kt("Y",function(e,t){t[xn]=parseInt(e,10)});function ji(e){return xc(e)?366:365}xe.parseTwoDigitYear=function(e){return nt(e)+(nt(e)>68?1900:2e3)};var Xy=Zs("FullYear",!0);function uO(){return xc(this.year())}function Zs(e,t){return function(n){return n!=null?(Zy(this,e,n),xe.updateOffset(this,t),this):oa(this,e)}}function oa(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Zy(e,t,n){var o,r,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(r?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(r?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(r?o.setUTCHours(n):o.setHours(n));case"Date":return void(r?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!xc(i)?28:l,r?o.setUTCFullYear(i,a,l):o.setFullYear(i,a,l)}}function hO(e){return e=io(e),Vo(this[e])?this[e]():this}function fO(e,t){if(typeof e=="object"){e=ih(e);var n=oO(e),o,r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(e=io(e),Vo(this[e]))return this[e](t);return this}function pO(e,t){return(e%t+t)%t}var en;Array.prototype.indexOf?en=Array.prototype.indexOf:en=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dh(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=pO(t,12);return e+=(t-n)/12,n===1?xc(e)?29:28:31-n%7%2}$e("M",["MM",2],"Mo",function(){return this.month()+1});$e("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});$e("MMMM",0,0,function(e){return this.localeData().months(this,e)});De("M",At,Xs);De("MM",At,Hn);De("MMM",function(e,t){return t.monthsShortRegex(e)});De("MMMM",function(e,t){return t.monthsRegex(e)});kt(["M","MM"],function(e,t){t[Xo]=nt(e)-1});kt(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);r!=null?t[Xo]=r:qe(n).invalidMonth=e});var mO="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Qy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Jy=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gO=Sa,yO=Sa;function vO(e,t){return e?mo(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Jy).test(t)?"format":"standalone"][e.month()]:mo(this._months)?this._months:this._months.standalone}function bO(e,t){return e?mo(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Jy.test(t)?"format":"standalone"][e.month()]:mo(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function wO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=$o([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(r=en.call(this._shortMonthsParse,a),r!==-1?r:null):(r=en.call(this._longMonthsParse,a),r!==-1?r:null):t==="MMM"?(r=en.call(this._shortMonthsParse,a),r!==-1?r:(r=en.call(this._longMonthsParse,a),r!==-1?r:null)):(r=en.call(this._longMonthsParse,a),r!==-1?r:(r=en.call(this._shortMonthsParse,a),r!==-1?r:null))}function CO(e,t,n){var o,r,i;if(this._monthsParseExact)return wO.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=$o([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[o]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(n&&t==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function ev(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=nt(t);else if(t=e.localeData().monthsParse(t),!sr(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,dh(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function tv(e){return e!=null?(ev(this,e),xe.updateOffset(this,!0),this):oa(this,"Month")}function SO(){return dh(this.year(),this.month())}function _O(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||nv.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(mt(this,"_monthsShortRegex")||(this._monthsShortRegex=gO),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function xO(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||nv.call(this),e?this._monthsStrictRegex:this._monthsRegex):(mt(this,"_monthsRegex")||(this._monthsRegex=yO),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function nv(){function e(d,u){return u.length-d.length}var t=[],n=[],o=[],r,i,a,l;for(r=0;r<12;r++)i=$o([2e3,r]),a=Jo(this.monthsShort(i,"")),l=Jo(this.months(i,"")),t.push(a),n.push(l),o.push(l),o.push(a);t.sort(e),n.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function RO(e,t,n,o,r,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,o,r,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,o,r,i,a),l}function ra(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Il(e,t,n){var o=7+t-n,r=(7+ra(e,0,o).getUTCDay()-t)%7;return-r+o-1}function ov(e,t,n,o,r){var i=(7+n-o)%7,a=Il(e,o,r),l=1+7*(t-1)+i+a,d,u;return l<=0?(d=e-1,u=ji(d)+l):l>ji(e)?(d=e+1,u=l-ji(e)):(d=e,u=l),{year:d,dayOfYear:u}}function sa(e,t,n){var o=Il(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+er(a,t,n)):r>er(e.year(),t,n)?(i=r-er(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function er(e,t,n){var o=Il(e,t,n),r=Il(e+1,t,n);return(ji(e)-o+r)/7}$e("w",["ww",2],"wo","week");$e("W",["WW",2],"Wo","isoWeek");De("w",At,Xs);De("ww",At,Hn);De("W",At,Xs);De("WW",At,Hn);_a(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=nt(e)});function TO(e){return sa(e,this._week.dow,this._week.doy).week}var EO={dow:0,doy:6};function kO(){return this._week.dow}function PO(){return this._week.doy}function DO(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function OO(e){var t=sa(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}$e("d",0,"do","day");$e("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});$e("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});$e("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});$e("e",0,0,"weekday");$e("E",0,0,"isoWeekday");De("d",At);De("e",At);De("E",At);De("dd",function(e,t){return t.weekdaysMinRegex(e)});De("ddd",function(e,t){return t.weekdaysShortRegex(e)});De("dddd",function(e,t){return t.weekdaysRegex(e)});_a(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);r!=null?t.d=r:qe(n).invalidWeekday=e});_a(["d","e","E"],function(e,t,n,o){t[o]=nt(e)});function MO(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function IO(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function uh(e,t){return e.slice(t,7).concat(e.slice(0,t))}var NO="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),rv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),AO="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),FO=Sa,LO=Sa,$O=Sa;function VO(e,t){var n=mo(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?uh(n,this._week.dow):e?n[e.day()]:n}function jO(e){return e===!0?uh(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function BO(e){return e===!0?uh(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function WO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=$o([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(r=en.call(this._weekdaysParse,a),r!==-1?r:null):t==="ddd"?(r=en.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null):t==="dddd"?(r=en.call(this._weekdaysParse,a),r!==-1||(r=en.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null)):t==="ddd"?(r=en.call(this._shortWeekdaysParse,a),r!==-1||(r=en.call(this._weekdaysParse,a),r!==-1)?r:(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=en.call(this._minWeekdaysParse,a),r!==-1||(r=en.call(this._weekdaysParse,a),r!==-1)?r:(r=en.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function HO(e,t,n){var o,r,i;if(this._weekdaysParseExact)return WO.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=$o([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(n&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(n&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function zO(e){if(!this.isValid())return e!=null?this:NaN;var t=oa(this,"Day");return e!=null?(e=MO(e,this.localeData()),this.add(e-t,"d")):t}function YO(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function UO(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=IO(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function qO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(mt(this,"_weekdaysRegex")||(this._weekdaysRegex=FO),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function GO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(mt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=LO),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function KO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(mt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$O),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hh(){function e(f,p){return p.length-f.length}var t=[],n=[],o=[],r=[],i,a,l,d,u;for(i=0;i<7;i++)a=$o([2e3,1]).day(i),l=Jo(this.weekdaysMin(a,"")),d=Jo(this.weekdaysShort(a,"")),u=Jo(this.weekdays(a,"")),t.push(l),n.push(d),o.push(u),r.push(l),r.push(d),r.push(u);t.sort(e),n.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function fh(){return this.hours()%12||12}function XO(){return this.hours()||24}$e("H",["HH",2],0,"hour");$e("h",["hh",2],0,fh);$e("k",["kk",2],0,XO);$e("hmm",0,0,function(){return""+fh.apply(this)+Ao(this.minutes(),2)});$e("hmmss",0,0,function(){return""+fh.apply(this)+Ao(this.minutes(),2)+Ao(this.seconds(),2)});$e("Hmm",0,0,function(){return""+this.hours()+Ao(this.minutes(),2)});$e("Hmmss",0,0,function(){return""+this.hours()+Ao(this.minutes(),2)+Ao(this.seconds(),2)});function sv(e,t){$e(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}sv("a",!0);sv("A",!1);function iv(e,t){return t._meridiemParse}De("a",iv);De("A",iv);De("H",At,ch);De("h",At,Xs);De("k",At,Xs);De("HH",At,Hn);De("hh",At,Hn);De("kk",At,Hn);De("hmm",Gy);De("hmmss",Ky);De("Hmm",Gy);De("Hmmss",Ky);kt(["H","HH"],an);kt(["k","kk"],function(e,t,n){var o=nt(e);t[an]=o===24?0:o});kt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});kt(["h","hh"],function(e,t,n){t[an]=nt(e),qe(n).bigHour=!0});kt("hmm",function(e,t,n){var o=e.length-2;t[an]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o)),qe(n).bigHour=!0});kt("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[an]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o,2)),t[Zo]=nt(e.substr(r)),qe(n).bigHour=!0});kt("Hmm",function(e,t,n){var o=e.length-2;t[an]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o))});kt("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[an]=nt(e.substr(0,o)),t[ho]=nt(e.substr(o,2)),t[Zo]=nt(e.substr(r))});function ZO(e){return(e+"").toLowerCase().charAt(0)==="p"}var QO=/[ap]\.?m?\.?/i,JO=Zs("Hours",!0);function eM(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var av={calendar:WD,longDateFormat:UD,invalidDate:GD,ordinal:XD,dayOfMonthOrdinalParse:ZD,relativeTime:JD,months:mO,monthsShort:Qy,week:EO,weekdays:NO,weekdaysMin:AO,weekdaysShort:rv,meridiemParse:QO},Bt={},pi={},ia;function tM(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}function ym(e){return e&&e.toLowerCase().replace("_","-")}function nM(e){for(var t=0,n,o,r,i;t<e.length;){for(i=ym(e[t]).split("-"),n=i.length,o=ym(e[t+1]),o=o?o.split("-"):null;n>0;){if(r=Rc(i.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&tM(i,o)>=n-1)break;n--}t++}return ia}function oM(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Rc(e){var t=null,n;if(Bt[e]===void 0&&typeof module<"u"&&module&&module.exports&&oM(e))try{t=ia._abbr,n=require,n("./locale/"+e),br(t)}catch{Bt[e]=null}return Bt[e]}function br(e,t){var n;return e&&(Pn(t)?n=lr(e):n=ph(e,t),n?ia=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ia._abbr}function ph(e,t){if(t!==null){var n,o=av;if(t.abbr=e,Bt[e]!=null)zy("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Bt[e]._config;else if(t.parentLocale!=null)if(Bt[t.parentLocale]!=null)o=Bt[t.parentLocale]._config;else if(n=Rc(t.parentLocale),n!=null)o=n._config;else return pi[t.parentLocale]||(pi[t.parentLocale]=[]),pi[t.parentLocale].push({name:e,config:t}),null;return Bt[e]=new rh(cu(o,t)),pi[e]&&pi[e].forEach(function(r){ph(r.name,r.config)}),br(e),Bt[e]}else return delete Bt[e],null}function rM(e,t){if(t!=null){var n,o,r=av;Bt[e]!=null&&Bt[e].parentLocale!=null?Bt[e].set(cu(Bt[e]._config,t)):(o=Rc(e),o!=null&&(r=o._config),t=cu(r,t),o==null&&(t.abbr=e),n=new rh(t),n.parentLocale=Bt[e],Bt[e]=n),br(e)}else Bt[e]!=null&&(Bt[e].parentLocale!=null?(Bt[e]=Bt[e].parentLocale,e===br()&&br(e)):Bt[e]!=null&&delete Bt[e]);return Bt[e]}function lr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ia;if(!mo(e)){if(t=Rc(e),t)return t;e=[e]}return nM(e)}function sM(){return du(Bt)}function mh(e){var t,n=e._a;return n&&qe(e).overflow===-2&&(t=n[Xo]<0||n[Xo]>11?Xo:n[ko]<1||n[ko]>dh(n[xn],n[Xo])?ko:n[an]<0||n[an]>24||n[an]===24&&(n[ho]!==0||n[Zo]!==0||n[Vr]!==0)?an:n[ho]<0||n[ho]>59?ho:n[Zo]<0||n[Zo]>59?Zo:n[Vr]<0||n[Vr]>999?Vr:-1,qe(e)._overflowDayOfYear&&(t<xn||t>ko)&&(t=ko),qe(e)._overflowWeeks&&t===-1&&(t=cO),qe(e)._overflowWeekday&&t===-1&&(t=dO),qe(e).overflow=t),e}var iM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,aM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lM=/Z|[+-]\d\d(?::?\d\d)?/,tl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ed=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],cM=/^\/?Date\((-?\d+)/i,dM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,uM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function lv(e){var t,n,o=e._i,r=iM.exec(o)||aM.exec(o),i,a,l,d,u=tl.length,f=Ed.length;if(r){for(qe(e).iso=!0,t=0,n=u;t<n;t++)if(tl[t][1].exec(r[1])){a=tl[t][0],i=tl[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,n=f;t<n;t++)if(Ed[t][1].exec(r[3])){l=(r[2]||" ")+Ed[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(r[4])if(lM.exec(r[4]))d="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(d||""),yh(e)}else e._isValid=!1}function hM(e,t,n,o,r,i){var a=[fM(e),Qy.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function fM(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function pM(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mM(e,t,n){if(e){var o=rv.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(o!==r)return qe(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function gM(e,t,n){if(e)return uM[e];if(t)return 0;var o=parseInt(n,10),r=o%100,i=(o-r)/100;return i*60+r}function cv(e){var t=dM.exec(pM(e._i)),n;if(t){if(n=hM(t[4],t[3],t[2],t[5],t[6],t[7]),!mM(t[1],n,e))return;e._a=n,e._tzm=gM(t[8],t[9],t[10]),e._d=ra.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),qe(e).rfc2822=!0}else e._isValid=!1}function yM(e){var t=cM.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(lv(e),e._isValid===!1)delete e._isValid;else return;if(cv(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:xe.createFromInputFallback(e)}xe.createFromInputFallback=so("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function vs(e,t,n){return e??t??n}function vM(e){var t=new Date(xe.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function gh(e){var t,n,o=[],r,i,a;if(!e._d){for(r=vM(e),e._w&&e._a[ko]==null&&e._a[Xo]==null&&bM(e),e._dayOfYear!=null&&(a=vs(e._a[xn],r[xn]),(e._dayOfYear>ji(a)||e._dayOfYear===0)&&(qe(e)._overflowDayOfYear=!0),n=ra(a,0,e._dayOfYear),e._a[Xo]=n.getUTCMonth(),e._a[ko]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[an]===24&&e._a[ho]===0&&e._a[Zo]===0&&e._a[Vr]===0&&(e._nextDay=!0,e._a[an]=0),e._d=(e._useUTC?ra:RO).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[an]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(qe(e).weekdayMismatch=!0)}}function bM(e){var t,n,o,r,i,a,l,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=vs(t.GG,e._a[xn],sa(It(),1,4).year),o=vs(t.W,1),r=vs(t.E,1),(r<1||r>7)&&(d=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=sa(It(),i,a),n=vs(t.gg,e._a[xn],u.year),o=vs(t.w,u.week),t.d!=null?(r=t.d,(r<0||r>6)&&(d=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(d=!0)):r=i),o<1||o>er(n,i,a)?qe(e)._overflowWeeks=!0:d!=null?qe(e)._overflowWeekday=!0:(l=ov(n,o,r,i,a),e._a[xn]=l.year,e._dayOfYear=l.dayOfYear)}xe.ISO_8601=function(){};xe.RFC_2822=function(){};function yh(e){if(e._f===xe.ISO_8601){lv(e);return}if(e._f===xe.RFC_2822){cv(e);return}e._a=[],qe(e).empty=!0;var t=""+e._i,n,o,r,i,a,l=t.length,d=0,u,f;for(r=Yy(e._f,e._locale).match(sh)||[],f=r.length,n=0;n<f;n++)i=r[n],o=(t.match(iO(i,e))||[])[0],o&&(a=t.substr(0,t.indexOf(o)),a.length>0&&qe(e).unusedInput.push(a),t=t.slice(t.indexOf(o)+o.length),d+=o.length),ks[i]?(o?qe(e).empty=!1:qe(e).unusedTokens.push(i),lO(i,o,e)):e._strict&&!o&&qe(e).unusedTokens.push(i);qe(e).charsLeftOver=l-d,t.length>0&&qe(e).unusedInput.push(t),e._a[an]<=12&&qe(e).bigHour===!0&&e._a[an]>0&&(qe(e).bigHour=void 0),qe(e).parsedDateParts=e._a.slice(0),qe(e).meridiem=e._meridiem,e._a[an]=wM(e._locale,e._a[an],e._meridiem),u=qe(e).era,u!==null&&(e._a[xn]=e._locale.erasConvertYear(u,e._a[xn])),gh(e),mh(e)}function wM(e,t,n){var o;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(o=e.isPM(n),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function CM(e){var t,n,o,r,i,a,l=!1,d=e._f.length;if(d===0){qe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<d;r++)i=0,a=!1,t=oh({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],yh(t),nh(t)&&(a=!0),i+=qe(t).charsLeftOver,i+=qe(t).unusedTokens.length*10,qe(t).score=i,l?i<o&&(o=i,n=t):(o==null||i<o||a)&&(o=i,n=t,a&&(l=!0));yr(e,n||t)}function SM(e){if(!e._d){var t=ih(e._i),n=t.day===void 0?t.date:t.day;e._a=Wy([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),gh(e)}}function _M(e){var t=new Ca(mh(dv(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function dv(e){var t=e._i,n=e._f;return e._locale=e._locale||lr(e._l),t===null||n===void 0&&t===""?vc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),go(t)?new Ca(mh(t)):(wa(t)?e._d=t:mo(n)?CM(e):n?yh(e):xM(e),nh(e)||(e._d=null),e))}function xM(e){var t=e._i;Pn(t)?e._d=new Date(xe.now()):wa(t)?e._d=new Date(t.valueOf()):typeof t=="string"?yM(e):mo(t)?(e._a=Wy(t.slice(0),function(n){return parseInt(n,10)}),gh(e)):Wr(t)?SM(e):sr(t)?e._d=new Date(t):xe.createFromInputFallback(e)}function uv(e,t,n,o,r){var i={};return(t===!0||t===!1)&&(o=t,t=void 0),(n===!0||n===!1)&&(o=n,n=void 0),(Wr(e)&&th(e)||mo(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=o,_M(i)}function It(e,t,n,o){return uv(e,t,n,o,!1)}var RM=so("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:vc()}),TM=so("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:vc()});function hv(e,t){var n,o;if(t.length===1&&mo(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],o=1;o<t.length;++o)(!t[o].isValid()||t[o][e](n))&&(n=t[o]);return n}function EM(){var e=[].slice.call(arguments,0);return hv("isBefore",e)}function kM(){var e=[].slice.call(arguments,0);return hv("isAfter",e)}var PM=function(){return Date.now?Date.now():+new Date},mi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function DM(e){var t,n=!1,o,r=mi.length;for(t in e)if(mt(e,t)&&!(en.call(mi,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[mi[o]]){if(n)return!1;parseFloat(e[mi[o]])!==nt(e[mi[o]])&&(n=!0)}return!0}function OM(){return this._isValid}function MM(){return yo(NaN)}function Tc(e){var t=ih(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,d=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=DM(t),this._milliseconds=+f+u*1e3+d*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+r+o*3+n*12,this._data={},this._locale=lr(),this._bubble()}function gl(e){return e instanceof Tc}function hu(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function IM(e,t,n){var o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,a;for(a=0;a<o;a++)nt(e[a])!==nt(t[a])&&i++;return i+r}function fv(e,t){$e(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+Ao(~~(n/60),2)+t+Ao(~~n%60,2)})}fv("Z",":");fv("ZZ","");De("Z",_c);De("ZZ",_c);kt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=vh(_c,e)});var NM=/([\+\-]|\d\d)/gi;function vh(e,t){var n=(t||"").match(e),o,r,i;return n===null?null:(o=n[n.length-1]||[],r=(o+"").match(NM)||["-",0,0],i=+(r[1]*60)+nt(r[2]),i===0?0:r[0]==="+"?i:-i)}function bh(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(go(e)||wa(e)?e.valueOf():It(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),xe.updateOffset(n,!1),n):It(e).local()}function fu(e){return-Math.round(e._d.getTimezoneOffset())}xe.updateOffset=function(){};function AM(e,t,n){var o=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=vh(_c,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=fu(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?gv(this,yo(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,xe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:fu(this)}function FM(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function LM(e){return this.utcOffset(0,e)}function $M(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fu(this),"m")),this}function VM(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=vh(rO,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function jM(e){return this.isValid()?(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function BM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function WM(){if(!Pn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return oh(e,this),e=dv(e),e._a?(t=e._isUTC?$o(e._a):It(e._a),this._isDSTShifted=this.isValid()&&IM(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function HM(){return this.isValid()?!this._isUTC:!1}function zM(){return this.isValid()?this._isUTC:!1}function pv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var YM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,UM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function yo(e,t){var n=e,o=null,r,i,a;return gl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:sr(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=YM.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:nt(o[ko])*r,h:nt(o[an])*r,m:nt(o[ho])*r,s:nt(o[Zo])*r,ms:nt(hu(o[Vr]*1e3))*r}):(o=UM.exec(e))?(r=o[1]==="-"?-1:1,n={y:Dr(o[2],r),M:Dr(o[3],r),w:Dr(o[4],r),d:Dr(o[5],r),h:Dr(o[6],r),m:Dr(o[7],r),s:Dr(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=qM(It(n.from),It(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new Tc(n),gl(e)&&mt(e,"_locale")&&(i._locale=e._locale),gl(e)&&mt(e,"_isValid")&&(i._isValid=e._isValid),i}yo.fn=Tc.prototype;yo.invalid=MM;function Dr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function vm(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qM(e,t){var n;return e.isValid()&&t.isValid()?(t=bh(t,e),e.isBefore(t)?n=vm(e,t):(n=vm(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function mv(e,t){return function(n,o){var r,i;return o!==null&&!isNaN(+o)&&(zy(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),r=yo(n,o),gv(this,r,e),this}}function gv(e,t,n,o){var r=t._milliseconds,i=hu(t._days),a=hu(t._months);e.isValid()&&(o=o??!0,a&&ev(e,oa(e,"Month")+a*n),i&&Zy(e,"Date",oa(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&xe.updateOffset(e,i||a))}var GM=mv(1,"add"),KM=mv(-1,"subtract");function yv(e){return typeof e=="string"||e instanceof String}function XM(e){return go(e)||wa(e)||yv(e)||sr(e)||QM(e)||ZM(e)||e===null||e===void 0}function ZM(e){var t=Wr(e)&&!th(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,a=o.length;for(r=0;r<a;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function QM(e){var t=mo(e),n=!1;return t&&(n=e.filter(function(o){return!sr(o)&&yv(e)}).length===0),t&&n}function JM(e){var t=Wr(e)&&!th(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<o.length;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function eI(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function tI(e,t){arguments.length===1&&(arguments[0]?XM(arguments[0])?(e=arguments[0],t=void 0):JM(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||It(),o=bh(n,this).startOf("day"),r=xe.calendarFormat(this,o)||"sameElse",i=t&&(Vo(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,It(n)))}function nI(){return new Ca(this)}function oI(e,t){var n=go(e)?e:It(e);return this.isValid()&&n.isValid()?(t=io(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function rI(e,t){var n=go(e)?e:It(e);return this.isValid()&&n.isValid()?(t=io(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function sI(e,t,n,o){var r=go(e)?e:It(e),i=go(t)?t:It(t);return this.isValid()&&r.isValid()&&i.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(o[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function iI(e,t){var n=go(e)?e:It(e),o;return this.isValid()&&n.isValid()?(t=io(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf())):!1}function aI(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function lI(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function cI(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=bh(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,t=io(t),t){case"year":i=yl(this,o)/12;break;case"month":i=yl(this,o);break;case"quarter":i=yl(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:Zn(i)}function yl(e,t){if(e.date()<t.date())return-yl(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),o=e.clone().add(n,"months"),r,i;return t-o<0?(r=e.clone().add(n-1,"months"),i=(t-o)/(o-r)):(r=e.clone().add(n+1,"months"),i=(t-o)/(r-o)),-(n+i)||0}xe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";xe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function dI(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function uI(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?ml(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Vo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ml(n,"Z")):ml(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hI(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,o,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+o+r+i)}function fI(e){e||(e=this.isUtc()?xe.defaultFormatUtc:xe.defaultFormat);var t=ml(this,e);return this.localeData().postformat(t)}function pI(e,t){return this.isValid()&&(go(e)&&e.isValid()||It(e).isValid())?yo({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mI(e){return this.from(It(),e)}function gI(e,t){return this.isValid()&&(go(e)&&e.isValid()||It(e).isValid())?yo({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yI(e){return this.to(It(),e)}function vv(e){var t;return e===void 0?this._locale._abbr:(t=lr(e),t!=null&&(this._locale=t),this)}var bv=so("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function wv(){return this._locale}var Nl=1e3,Ps=60*Nl,Al=60*Ps,Cv=(365*400+97)*24*Al;function Ds(e,t){return(e%t+t)%t}function Sv(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Cv:new Date(e,t,n).valueOf()}function _v(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Cv:Date.UTC(e,t,n)}function vI(e){var t,n;if(e=io(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_v:Sv,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ds(t+(this._isUTC?0:this.utcOffset()*Ps),Al);break;case"minute":t=this._d.valueOf(),t-=Ds(t,Ps);break;case"second":t=this._d.valueOf(),t-=Ds(t,Nl);break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function bI(e){var t,n;if(e=io(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?_v:Sv,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Al-Ds(t+(this._isUTC?0:this.utcOffset()*Ps),Al)-1;break;case"minute":t=this._d.valueOf(),t+=Ps-Ds(t,Ps)-1;break;case"second":t=this._d.valueOf(),t+=Nl-Ds(t,Nl)-1;break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function wI(){return this._d.valueOf()-(this._offset||0)*6e4}function CI(){return Math.floor(this.valueOf()/1e3)}function SI(){return new Date(this.valueOf())}function _I(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xI(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function RI(){return this.isValid()?this.toISOString():null}function TI(){return nh(this)}function EI(){return yr({},qe(this))}function kI(){return qe(this).overflow}function PI(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}$e("N",0,0,"eraAbbr");$e("NN",0,0,"eraAbbr");$e("NNN",0,0,"eraAbbr");$e("NNNN",0,0,"eraName");$e("NNNNN",0,0,"eraNarrow");$e("y",["y",1],"yo","eraYear");$e("y",["yy",2],0,"eraYear");$e("y",["yyy",3],0,"eraYear");$e("y",["yyyy",4],0,"eraYear");De("N",wh);De("NN",wh);De("NNN",wh);De("NNNN",jI);De("NNNNN",BI);kt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?qe(n).era=r:qe(n).invalidEra=e});De("y",Ks);De("yy",Ks);De("yyy",Ks);De("yyyy",Ks);De("yo",WI);kt(["y","yy","yyy","yyyy"],xn);kt(["yo"],function(e,t,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[xn]=n._locale.eraYearOrdinalParse(e,r):t[xn]=parseInt(e,10)});function DI(e,t){var n,o,r,i=this._eras||lr("en")._eras;for(n=0,o=i.length;n<o;++n){switch(typeof i[n].since){case"string":r=xe(i[n].since).startOf("day"),i[n].since=r.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=xe(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf();break}}return i}function OI(e,t,n){var o,r,i=this.eras(),a,l,d;for(e=e.toUpperCase(),o=0,r=i.length;o<r;++o)if(a=i[o].name.toUpperCase(),l=i[o].abbr.toUpperCase(),d=i[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[o];break;case"NNNN":if(a===e)return i[o];break;case"NNNNN":if(d===e)return i[o];break}else if([a,l,d].indexOf(e)>=0)return i[o]}function MI(e,t){var n=e.since<=e.until?1:-1;return t===void 0?xe(e.since).year():xe(e.since).year()+(t-e.offset)*n}function II(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].name;return""}function NI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].narrow;return""}function AI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].abbr;return""}function FI(){var e,t,n,o,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,o=this.clone().startOf("day").valueOf(),r[e].since<=o&&o<=r[e].until||r[e].until<=o&&o<=r[e].since)return(this.year()-xe(r[e].since).year())*n+r[e].offset;return this.year()}function LI(e){return mt(this,"_erasNameRegex")||Ch.call(this),e?this._erasNameRegex:this._erasRegex}function $I(e){return mt(this,"_erasAbbrRegex")||Ch.call(this),e?this._erasAbbrRegex:this._erasRegex}function VI(e){return mt(this,"_erasNarrowRegex")||Ch.call(this),e?this._erasNarrowRegex:this._erasRegex}function wh(e,t){return t.erasAbbrRegex(e)}function jI(e,t){return t.erasNameRegex(e)}function BI(e,t){return t.erasNarrowRegex(e)}function WI(e,t){return t._eraYearOrdinalRegex||Ks}function Ch(){var e=[],t=[],n=[],o=[],r,i,a,l,d,u=this.eras();for(r=0,i=u.length;r<i;++r)a=Jo(u[r].name),l=Jo(u[r].abbr),d=Jo(u[r].narrow),t.push(a),e.push(l),n.push(d),o.push(a),o.push(l),o.push(d);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}$e(0,["gg",2],0,function(){return this.weekYear()%100});$e(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ec(e,t){$e(0,[e,e.length],0,t)}Ec("gggg","weekYear");Ec("ggggg","weekYear");Ec("GGGG","isoWeekYear");Ec("GGGGG","isoWeekYear");De("G",Sc);De("g",Sc);De("GG",At,Hn);De("gg",At,Hn);De("GGGG",lh,ah);De("gggg",lh,ah);De("GGGGG",Cc,bc);De("ggggg",Cc,bc);_a(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=nt(e)});_a(["gg","GG"],function(e,t,n,o){t[o]=xe.parseTwoDigitYear(e)});function HI(e){return xv.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function zI(e){return xv.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function YI(){return er(this.year(),1,4)}function UI(){return er(this.isoWeekYear(),1,4)}function qI(){var e=this.localeData()._week;return er(this.year(),e.dow,e.doy)}function GI(){var e=this.localeData()._week;return er(this.weekYear(),e.dow,e.doy)}function xv(e,t,n,o,r){var i;return e==null?sa(this,o,r).year:(i=er(e,o,r),t>i&&(t=i),KI.call(this,e,t,n,o,r))}function KI(e,t,n,o,r){var i=ov(e,t,n,o,r),a=ra(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}$e("Q",0,"Qo","quarter");De("Q",Uy);kt("Q",function(e,t){t[Xo]=(nt(e)-1)*3});function XI(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}$e("D",["DD",2],"Do","date");De("D",At,Xs);De("DD",At,Hn);De("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});kt(["D","DD"],ko);kt("Do",function(e,t){t[ko]=nt(e.match(At)[0])});var Rv=Zs("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear");De("DDD",wc);De("DDDD",qy);kt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=nt(e)});function ZI(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}$e("m",["mm",2],0,"minute");De("m",At,ch);De("mm",At,Hn);kt(["m","mm"],ho);var QI=Zs("Minutes",!1);$e("s",["ss",2],0,"second");De("s",At,ch);De("ss",At,Hn);kt(["s","ss"],Zo);var JI=Zs("Seconds",!1);$e("S",0,0,function(){return~~(this.millisecond()/100)});$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)});$e(0,["SSS",3],0,"millisecond");$e(0,["SSSS",4],0,function(){return this.millisecond()*10});$e(0,["SSSSS",5],0,function(){return this.millisecond()*100});$e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});$e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});$e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});$e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});De("S",wc,Uy);De("SS",wc,Hn);De("SSS",wc,qy);var vr,Tv;for(vr="SSSS";vr.length<=9;vr+="S")De(vr,Ks);function eN(e,t){t[Vr]=nt(("0."+e)*1e3)}for(vr="S";vr.length<=9;vr+="S")kt(vr,eN);Tv=Zs("Milliseconds",!1);$e("z",0,0,"zoneAbbr");$e("zz",0,0,"zoneName");function tN(){return this._isUTC?"UTC":""}function nN(){return this._isUTC?"Coordinated Universal Time":""}var ve=Ca.prototype;ve.add=GM;ve.calendar=tI;ve.clone=nI;ve.diff=cI;ve.endOf=bI;ve.format=fI;ve.from=pI;ve.fromNow=mI;ve.to=gI;ve.toNow=yI;ve.get=hO;ve.invalidAt=kI;ve.isAfter=oI;ve.isBefore=rI;ve.isBetween=sI;ve.isSame=iI;ve.isSameOrAfter=aI;ve.isSameOrBefore=lI;ve.isValid=TI;ve.lang=bv;ve.locale=vv;ve.localeData=wv;ve.max=TM;ve.min=RM;ve.parsingFlags=EI;ve.set=fO;ve.startOf=vI;ve.subtract=KM;ve.toArray=_I;ve.toObject=xI;ve.toDate=SI;ve.toISOString=uI;ve.inspect=hI;typeof Symbol<"u"&&Symbol.for!=null&&(ve[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ve.toJSON=RI;ve.toString=dI;ve.unix=CI;ve.valueOf=wI;ve.creationData=PI;ve.eraName=II;ve.eraNarrow=NI;ve.eraAbbr=AI;ve.eraYear=FI;ve.year=Xy;ve.isLeapYear=uO;ve.weekYear=HI;ve.isoWeekYear=zI;ve.quarter=ve.quarters=XI;ve.month=tv;ve.daysInMonth=SO;ve.week=ve.weeks=DO;ve.isoWeek=ve.isoWeeks=OO;ve.weeksInYear=qI;ve.weeksInWeekYear=GI;ve.isoWeeksInYear=YI;ve.isoWeeksInISOWeekYear=UI;ve.date=Rv;ve.day=ve.days=zO;ve.weekday=YO;ve.isoWeekday=UO;ve.dayOfYear=ZI;ve.hour=ve.hours=JO;ve.minute=ve.minutes=QI;ve.second=ve.seconds=JI;ve.millisecond=ve.milliseconds=Tv;ve.utcOffset=AM;ve.utc=LM;ve.local=$M;ve.parseZone=VM;ve.hasAlignedHourOffset=jM;ve.isDST=BM;ve.isLocal=HM;ve.isUtcOffset=zM;ve.isUtc=pv;ve.isUTC=pv;ve.zoneAbbr=tN;ve.zoneName=nN;ve.dates=so("dates accessor is deprecated. Use date instead.",Rv);ve.months=so("months accessor is deprecated. Use month instead",tv);ve.years=so("years accessor is deprecated. Use year instead",Xy);ve.zone=so("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",FM);ve.isDSTShifted=so("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",WM);function oN(e){return It(e*1e3)}function rN(){return It.apply(null,arguments).parseZone()}function Ev(e){return e}var gt=rh.prototype;gt.calendar=HD;gt.longDateFormat=qD;gt.invalidDate=KD;gt.ordinal=QD;gt.preparse=Ev;gt.postformat=Ev;gt.relativeTime=eO;gt.pastFuture=tO;gt.set=BD;gt.eras=DI;gt.erasParse=OI;gt.erasConvertYear=MI;gt.erasAbbrRegex=$I;gt.erasNameRegex=LI;gt.erasNarrowRegex=VI;gt.months=vO;gt.monthsShort=bO;gt.monthsParse=CO;gt.monthsRegex=xO;gt.monthsShortRegex=_O;gt.week=TO;gt.firstDayOfYear=PO;gt.firstDayOfWeek=kO;gt.weekdays=VO;gt.weekdaysMin=BO;gt.weekdaysShort=jO;gt.weekdaysParse=HO;gt.weekdaysRegex=qO;gt.weekdaysShortRegex=GO;gt.weekdaysMinRegex=KO;gt.isPM=ZO;gt.meridiem=eM;function Fl(e,t,n,o){var r=lr(),i=$o().set(o,t);return r[n](i,e)}function kv(e,t,n){if(sr(e)&&(t=e,e=void 0),e=e||"",t!=null)return Fl(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=Fl(e,o,n,"month");return r}function Sh(e,t,n,o){typeof e=="boolean"?(sr(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,sr(t)&&(n=t,t=void 0),t=t||"");var r=lr(),i=e?r._week.dow:0,a,l=[];if(n!=null)return Fl(t,(n+i)%7,o,"day");for(a=0;a<7;a++)l[a]=Fl(t,(a+i)%7,o,"day");return l}function sN(e,t){return kv(e,t,"months")}function iN(e,t){return kv(e,t,"monthsShort")}function aN(e,t,n){return Sh(e,t,n,"weekdays")}function lN(e,t,n){return Sh(e,t,n,"weekdaysShort")}function cN(e,t,n){return Sh(e,t,n,"weekdaysMin")}br("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=nt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});xe.lang=so("moment.lang is deprecated. Use moment.locale instead.",br);xe.langData=so("moment.langData is deprecated. Use moment.localeData instead.",lr);var qo=Math.abs;function dN(){var e=this._data;return this._milliseconds=qo(this._milliseconds),this._days=qo(this._days),this._months=qo(this._months),e.milliseconds=qo(e.milliseconds),e.seconds=qo(e.seconds),e.minutes=qo(e.minutes),e.hours=qo(e.hours),e.months=qo(e.months),e.years=qo(e.years),this}function Pv(e,t,n,o){var r=yo(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function uN(e,t){return Pv(this,e,t,1)}function hN(e,t){return Pv(this,e,t,-1)}function bm(e){return e<0?Math.floor(e):Math.ceil(e)}function fN(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,i,a,l,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=bm(pu(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Zn(e/1e3),o.seconds=r%60,i=Zn(r/60),o.minutes=i%60,a=Zn(i/60),o.hours=a%24,t+=Zn(a/24),d=Zn(Dv(t)),n+=d,t-=bm(pu(d)),l=Zn(n/12),n%=12,o.days=t,o.months=n,o.years=l,this}function Dv(e){return e*4800/146097}function pu(e){return e*146097/4800}function pN(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=io(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+Dv(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(pu(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function cr(e){return function(){return this.as(e)}}var Ov=cr("ms"),mN=cr("s"),gN=cr("m"),yN=cr("h"),vN=cr("d"),bN=cr("w"),wN=cr("M"),CN=cr("Q"),SN=cr("y"),_N=Ov;function xN(){return yo(this)}function RN(e){return e=io(e),this.isValid()?this[e+"s"]():NaN}function Zr(e){return function(){return this.isValid()?this._data[e]:NaN}}var TN=Zr("milliseconds"),EN=Zr("seconds"),kN=Zr("minutes"),PN=Zr("hours"),DN=Zr("days"),ON=Zr("months"),MN=Zr("years");function IN(){return Zn(this.days()/7)}var Ko=Math.round,Ss={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function NN(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function AN(e,t,n,o){var r=yo(e).abs(),i=Ko(r.as("s")),a=Ko(r.as("m")),l=Ko(r.as("h")),d=Ko(r.as("d")),u=Ko(r.as("M")),f=Ko(r.as("w")),p=Ko(r.as("y")),y=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(y=y||f<=1&&["w"]||f<n.w&&["ww",f]),y=y||u<=1&&["M"]||u<n.M&&["MM",u]||p<=1&&["y"]||["yy",p],y[2]=t,y[3]=+e>0,y[4]=o,NN.apply(null,y)}function FN(e){return e===void 0?Ko:typeof e=="function"?(Ko=e,!0):!1}function LN(e,t){return Ss[e]===void 0?!1:t===void 0?Ss[e]:(Ss[e]=t,e==="s"&&(Ss.ss=t-1),!0)}function $N(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=Ss,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},Ss,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),r=this.localeData(),i=AN(this,!n,o,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var kd=Math.abs;function ps(e){return(e>0)-(e<0)||+e}function kc(){if(!this.isValid())return this.localeData().invalidDate();var e=kd(this._milliseconds)/1e3,t=kd(this._days),n=kd(this._months),o,r,i,a,l=this.asSeconds(),d,u,f,p;return l?(o=Zn(e/60),r=Zn(o/60),e%=60,o%=60,i=Zn(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",u=ps(this._months)!==ps(l)?"-":"",f=ps(this._days)!==ps(l)?"-":"",p=ps(this._milliseconds)!==ps(l)?"-":"",d+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+a+"S":"")):"P0D"}var dt=Tc.prototype;dt.isValid=OM;dt.abs=dN;dt.add=uN;dt.subtract=hN;dt.as=pN;dt.asMilliseconds=Ov;dt.asSeconds=mN;dt.asMinutes=gN;dt.asHours=yN;dt.asDays=vN;dt.asWeeks=bN;dt.asMonths=wN;dt.asQuarters=CN;dt.asYears=SN;dt.valueOf=_N;dt._bubble=fN;dt.clone=xN;dt.get=RN;dt.milliseconds=TN;dt.seconds=EN;dt.minutes=kN;dt.hours=PN;dt.days=DN;dt.weeks=IN;dt.months=ON;dt.years=MN;dt.humanize=$N;dt.toISOString=kc;dt.toString=kc;dt.toJSON=kc;dt.locale=vv;dt.localeData=wv;dt.toIsoString=so("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kc);dt.lang=bv;$e("X",0,0,"unix");$e("x",0,0,"valueOf");De("x",Sc);De("X",sO);kt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});kt("x",function(e,t,n){n._d=new Date(nt(e))});//! moment.js
277
+ xe.version="2.30.1";VD(It);xe.fn=ve;xe.min=EM;xe.max=kM;xe.now=PM;xe.utc=$o;xe.unix=oN;xe.months=sN;xe.isDate=wa;xe.locale=br;xe.invalid=vc;xe.duration=yo;xe.isMoment=go;xe.weekdays=aN;xe.parseZone=rN;xe.localeData=lr;xe.isDuration=gl;xe.monthsShort=iN;xe.weekdaysMin=cN;xe.defineLocale=ph;xe.updateLocale=rM;xe.locales=sM;xe.weekdaysShort=lN;xe.normalizeUnits=io;xe.relativeTimeRounding=FN;xe.relativeTimeThreshold=LN;xe.calendarFormat=eI;xe.prototype=ve;xe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const VN=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"})),jN=[xe.ISO_8601,Ur.ui,Ur.db],mu="Invalid date";ie(ny)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});class BN extends yc{handleKeyboardEvent(t,n){if(n.isActive)if(rW(t)){if(!n.summaryColumnIds.length)return;const o=n.grid;if(!o||o.getSelectedRows().length<2)return;t.preventDefault(),t.stopImmediatePropagation(),jn.table=n,jn.open=!0}else super.handleKeyboardEvent.call(this,t,n)}}let Mv=class{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args={};const t=this.grid.getData();t.setFilterArgs(this.args),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class WN extends Mv{getFilterFn(){return t=>!t?.isDeleted}}class HN{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(){}print(){return[]}reset(){}get args(){return this._args}get grid(){return this._grid}get tableId(){return this._tableId}set args(t){}set grid(t){}set tableId(t){}}function _s(e){return new Date(e).getTime()}class Iv{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(n,o)=>this.filterFn(n,o)&&t(n,o)}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){this.filter.reset()}print(t){return this.filter.print(t)}set args(t){this.filter.args=t}set grid(t){this.filter.grid=t}set tableId(t){this.filter.tableId=t}get args(){return this.filter.args}get grid(){return this.filter.grid}get tableId(){return this.filter.tableId}}function zN(e){return{tooltip:"Apply column filter",command:e}}class xa{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const n=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(n,1)}notify(){for(const t of this.observers)t()}}class YN extends xa{constructor(){super(...arguments),this.columnId="",this.group=fn.Text,this.target=null,this.x=0,this.y=0}}const wn=new YN;class UN{highlightAllColumns(t,n){const o=document.getElementById(n);if(!o)return;const r=Object.keys(t.columnFilters||{});if(r.length)for(const i of r){const a=o.querySelector(`[data-id="${i}"]`);a&&(t.columnFilters[i].value[1]||t.columnFilters[i].value[2]?a.classList.add("filter-active"):a.classList.remove("filter-active"))}else{const i=o.querySelectorAll(".slick-header-column");for(const a of i)a.classList.remove("filter-active")}}highlightColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.add("filter-active")}resetColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.remove("filter-active")}}const Fo=new UN;function Nv(e){return Fo.highlightAllColumns(e.filter.args,e.id),function(t,n){t.preventDefault(),wn.columnId=n.column.id||"",wn.group=n.command,wn.table=e,wn.target=t.target,wn.x=t.x||0,wn.y=t.y||0,wn.notify()}}function _h(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const qN=ie(An)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),GN={Wrapper:qN},Pc=({setIsOpened:e})=>E.jsx(GN.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),KN=ie(An)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"fixed",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),XN={Wrapper:KN},Dc=({children:e,id:t})=>E.jsx(XN.Wrapper,{id:t,children:e});function ZN(e){return`(${QN(e)})`}function QN(e){return e.replace("-","")}function Oc(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),P=`${n}${v}`,D=p?`-${P}`:P,x=p&&a?ZN(D):D;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}function JN(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:f,name:p}=l;n.includes(f)&&(t[f]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${Oc(t[u].total)}`})}),t}const Av="selected-rows-summary";function eA(e){Ae.useEffect(()=>{if(!e)return;const t=document.getElementById(Av);t&&(t.style.visibility="visible",t.style.left=`${jn.x}px`,t.style.top=`${jn.y}px`)},[e])}function tA(e,t,n,o){Ae.useEffect(()=>{function r(){const{open:i,table:a}=jn;if(a?.id===o){if(i){const l=jn.table,d=l?.grid;t(d?.getSelectedRows().length||0),n(JN(l))}e(i)}}return jn.subscribe(r),()=>{jn.unsubscribe(r)}},[o])}const nA=ie(_y)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),oA=ie("span")({display:"flex",alignItems:"center"}),rA=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),Pd={Icon:rA,Total:oA},sA=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Ae.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(nA,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs(Pd.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx(Pd.Icon,{className:"sgi sgi-check"}):E.jsx(Ly,{title:"Copy to clipboard",children:E.jsx(Pd.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},iA=ie(Cn)({color:"#1E456F",marginBottom:"0.5em",fontWeight:"600",fontSize:"1.3rem",letterSpacing:"-2%",minWidth:"14em"}),aA=ie(An)({color:"#1E456F"}),lA=ie("ul")({paddingLeft:"1.5em"}),cA=ie(An)({display:"flex",justifyContent:"end"}),dA=ie(Po)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),gi={Button:dA,ButtonContainer:cA,RowsNumber:aA,Title:iA,Ul:lA},uA=({tableId:e})=>{const[t,n]=Ae.useState(0),[o,r]=Ae.useState(!1),[i,a]=Ae.useState({});function l(){jn.open=!1}return eA(o),tA(r,n,a,e),o?E.jsxs(Ae.Fragment,{children:[E.jsx(Pc,{setIsOpened:r}),E.jsxs(Dc,{id:Av,children:[E.jsx(gi.Title,{variant:"h6",children:"Selected rows summary"}),E.jsx(gi.RowsNumber,{children:`Number of selected rows: ${t}`}),E.jsx(gi.Ul,{children:Object.entries(i).map(([d,{label:u,total:f,totalFormatted:p}])=>E.jsx("li",{children:E.jsx(sA,{label:u,total:f,totalFormatted:p})},d))}),E.jsx(gi.ButtonContainer,{children:E.jsx(gi.Button,{variant:"outlined",onClick:l,children:"Close"})})]})]}):null};function Fv(e,t=300){let n;return function(...o){const r=()=>e.apply(this,o);clearTimeout(n),n=setTimeout(r,t)}}function hA(e){const{columnId:t,table:n}=wn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?Fo.highlightColumn(n,t):Fo.resetColumn(n,t))}const ir=Fv(hA),Ws={1:"",2:""},Lv="column-filters",co={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function fA(e){switch(e){case fn.Boolean:return je.Boolean;case fn.Date:return je.DateEqual;case fn.MultipleSelect:return je.MultipleSelect;case fn.Number:case fn.NumberFormatted:return je.NumberEqual;case fn.Text:return je.TextContain}}function pA(e,t,n){Ae.useEffect(()=>{if(!e)return;const o=document.getElementById(Lv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=wn;if(!a?.grid)return;const f=a.filter.args;_h(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||fA(i),b=y||Ws;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function mA(e,t){Ae.useEffect(()=>{function n(){wn.table?.id===t&&e(!0)}return wn.subscribe(n),()=>{wn.unsubscribe(n)}},[t])}function gu(e){return{format:Ur.ui,value:e?xe(e,jN):null}}const gA=ie(Po)({width:"5em",alignSelf:"flex-end"}),yA={Button:gA},vA=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=wn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,Fo.resetColumn(i,r),t(Ws),e(!1)}return E.jsx(yA.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},bA=ie(pc)({padding:0}),wA=ie(xy)({margin:"0.5em 0 0 1em"}),nl={Checkbox:bA,FormGroup:wA},CA=({setValue:e,value:t})=>{function n(o){e(o),ir(o)}return E.jsxs(nl.FormGroup,{children:[E.jsx(fl,{control:E.jsx(nl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(fl,{control:E.jsx(nl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(fl,{control:E.jsx(nl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},SA={Y:"year",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"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},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"},_A={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},wm=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
278
+ `);class $v{constructor({locale:t,formats:n,instance:o}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=SA,this.setLocaleToValue=r=>{const i=this.getCurrentLocaleCode();return i===r.locale()?r:r.locale(i)},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=r=>{const i=this.moment(r).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=r=>{const i=this.moment.utc(r);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(r,i)=>{if(!this.hasTimezonePlugin())throw new Error(wm);const a=i==="default"?this.moment(r):this.moment.tz(r,i);return this.locale===void 0?a:a.locale(this.locale)},this.date=(r,i="default")=>r===null?null:i==="UTC"?this.createUTCDate(r):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(r):this.createTZDate(r,i),this.getInvalidDate=()=>this.moment(new Date("Invalid Date")),this.getTimezone=r=>{const i=r._z?.name,a=r.isUTC()?"UTC":"system";return i??this.moment.defaultZone?.name??a},this.setTimezone=(r,i)=>{if(this.getTimezone(r)===i)return r;if(i==="UTC")return r.clone().utc();if(i==="system")return r.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(wm);return r}const a=i==="default"?this.moment.defaultZone?.name??"system":i;if(a==="system")return r.clone().local();const l=r.clone();return l.tz(a),l},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.locale?this.moment(r,i,this.locale,!0):this.moment(r,i,!0),this.getCurrentLocaleCode=()=>this.locale||xe.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(xe.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=r=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return r.match(i).map(a=>{const l=a[0];return l==="L"||l===";"?xe.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>{const a=r.clone();return a.locale(this.getCurrentLocaleCode()),a.format(i)},this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.isSame(i),this.isSameYear=(r,i)=>r.isSame(i,"year"),this.isSameMonth=(r,i)=>r.isSame(i,"month"),this.isSameDay=(r,i)=>r.isSame(i,"day"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r.isAfter(i),this.isAfterYear=(r,i)=>r.isAfter(i,"year"),this.isAfterDay=(r,i)=>r.isAfter(i,"day"),this.isBefore=(r,i)=>r.isBefore(i),this.isBeforeYear=(r,i)=>r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>r.isBefore(i,"day"),this.isWithinRange=(r,[i,a])=>r.isBetween(i,a,null,"[]"),this.startOfYear=r=>r.clone().startOf("year"),this.startOfMonth=r=>r.clone().startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r.clone()).startOf("week"),this.startOfDay=r=>r.clone().startOf("day"),this.endOfYear=r=>r.clone().endOf("year"),this.endOfMonth=r=>r.clone().endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r.clone()).endOf("week"),this.endOfDay=r=>r.clone().endOf("day"),this.addYears=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"years"):r.clone().add(i,"years"),this.addMonths=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"months"):r.clone().add(i,"months"),this.addWeeks=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"weeks"):r.clone().add(i,"weeks"),this.addDays=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"days"):r.clone().add(i,"days"),this.addHours=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"hours"):r.clone().add(i,"hours"),this.addMinutes=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"minutes"):r.clone().add(i,"minutes"),this.addSeconds=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"seconds"):r.clone().add(i,"seconds"),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month"),this.getDate=r=>r.get("date"),this.getHours=r=>r.get("hours"),this.getMinutes=r=>r.get("minutes"),this.getSeconds=r=>r.get("seconds"),this.getMilliseconds=r=>r.get("milliseconds"),this.setYear=(r,i)=>r.clone().year(i),this.setMonth=(r,i)=>r.clone().month(i),this.setDate=(r,i)=>r.clone().date(i),this.setHours=(r,i)=>r.clone().hours(i),this.setMinutes=(r,i)=>r.clone().minutes(i),this.setSeconds=(r,i)=>r.clone().seconds(i),this.setMilliseconds=(r,i)=>r.clone().milliseconds(i),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let l=0,d=i;const u=[];for(;d.isBefore(a);){const f=Math.floor(l/7);u[f]=u[f]||[],u[f].push(d),d=this.addDays(d,1),l+=1}return u},this.getWeekNumber=r=>r.week(),this.getDayOfWeek=r=>r.day()+1,this.moment=o||xe,this.locale=t,this.formats=Q({},_A,n)}getYearRange([t,n]){const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}}const yi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),xA=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},Ll=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},Bi=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:l})=>{const d=Ll(a,a.date(void 0,l),e);n&&a.isBefore(r,d)&&(r=d),t&&a.isAfter(o,d)&&(o=d);let u=e,f=e;for(a.isBefore(e,r)&&(u=r,f=null),a.isAfter(e,o)&&(f&&(f=o),u=null);u||f;){if(u&&a.isAfter(u,o)&&(u=null),f&&a.isBefore(f,r)&&(f=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(f){if(!i(f))return f;f=a.addDays(f,-1)}}return null},RA=(e,t)=>t==null||!e.isValid(t)?null:t,to=(e,t,n)=>t==null||!e.isValid(t)?n:t,TA=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),xh=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},Vv=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),EA=["year","month","day"],Cm=e=>EA.includes(e),Rh=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return yi(n,["year"])?r.year:yi(n,["month"])?r.month:yi(n,["day"])?r.dayOfMonth:yi(n,["month","year"])?`${r.month} ${r.year}`:yi(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},kA=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},PA=["hours","minutes","seconds"],DA=e=>PA.includes(e),Sm=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),OA=(e,t)=>(n,o)=>e?t.isAfter(n,o):Sm(n,t)>Sm(o,t),To={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},MA=e=>Math.max(...e.map(t=>To[t.type]??1)),vi=(e,t,n)=>{if(t===To.year)return e.startOfYear(n);if(t===To.month)return e.startOfMonth(n);if(t===To.day)return e.startOfDay(n);let o=n;return t<To.minutes&&(o=e.setMinutes(o,0)),t<To.seconds&&(o=e.setSeconds(o,0)),t<To.milliseconds&&(o=e.setMilliseconds(o,0)),o},IA=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():vi(t,n,Vv(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=vi(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=vi(t,n,e.maxDate));const a=OA(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=vi(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ll(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=vi(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ll(t,i,e.maxTime))),i},Th=(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(`
279
279
  `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},NA=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Mc=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},jv=(e,t,n,o)=>{switch(n){case"month":return xh(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return Mc(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},_m="s",AA=["0","1","2","3","4","5","6","7","8","9"],FA=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),_m)==="0"?AA:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),_m))},qr=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},Eh=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),xm=(e,t)=>{const n=qr(e,t);return n!==" "&&!Number.isNaN(Number(n))},Bv=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Wv=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
280
280
  This type of format is only supported for 'day' sections`].join(`
281
281
  `));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=Bv(i,r.maxLength)),Eh(i,o)},LA=(e,t,n,o,r,i,a,l)=>{const d=NA(o),u=o==="Home",f=o==="End",p=n.value===""||u||f,y=()=>{const b=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),m=x=>Wv(e,x,b,i,n),v=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let D=parseInt(qr(n.value,i),10)+d*v;if(p){if(n.type==="year"&&!f&&!u)return e.formatByString(e.date(void 0,t),n.format);d>0||u?D=b.minimum:D=b.maximum}return D%v!==0&&((d<0||u)&&(D+=v-(v+D)%v),(d>0||f)&&(D-=D%v)),D>b.maximum?m(b.minimum+(D-b.maximum-1)%(b.maximum-b.minimum+1)):D<b.minimum?m(b.maximum-(b.minimum-D-1)%(b.maximum-b.minimum+1)):m(D)},w=()=>{const b=jv(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return d>0||u?b[0]:b[b.length-1];const P=((b.indexOf(n.value)+d)%b.length+b.length)%b.length;return b[P]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():w()},kh=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(qr(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}‎`),t==="input-rtl"&&(o=`⁨${o}⁩`),o},Rm=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Th(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},Hv=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,zv=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return Hv(e,o)?e.formatByString(e.setYear(r,1),o)==="0001":e.formatByString(e.setYear(r,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},$A=(e,t,n)=>{const o=t.some(d=>d.type==="day"),r=[],i=[];for(let d=0;d<t.length;d+=1){const u=t[d];o&&u.type==="weekDay"||(r.push(u.format),i.push(kh(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},VA=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),jA=(e,t,n)=>{const r=e.map(i=>{const a=kh(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},BA=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=xh(e,o).reduce((d,u)=>{const f=e.getDaysInMonth(u);return f>d.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:d},{maxDaysInMonth:0,longestMonth:null});return{year:({format:d})=>({minimum:0,maximum:Hv(e,d)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:d})=>({minimum:1,maximum:d!=null&&e.isValid(d)?e.getDaysInMonth(d):a,longestMonth:l}),weekDay:({format:d,contentType:u})=>{if(u==="digit"){const f=Mc(e,d).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:d})=>{const u=e.getHours(i);return qr(e.formatByString(e.endOfDay(o),d),t)!==u.toString()?{minimum:1,maximum:Number(qr(e.formatByString(e.startOfDay(o),d),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let Tm=!1;const Em=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Tm){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 o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),Tm=!0)}},WA=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{const r=Mc(e,t.format),i=e.formatByString(n,t.format),a=r.indexOf(i),d=r.indexOf(t.value)-a;return e.addDays(n,d)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},km={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Pm=(e,t,n,o,r)=>[...n].sort((i,a)=>km[i.type]-km[a.type]).reduce((i,a)=>!r||a.modified?WA(e,a,t,i):i,o),HA=()=>navigator.userAgent.toLowerCase().includes("android"),zA=(e,t)=>{const n={};if(!t)return e.forEach((d,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((d,u)=>u>=i&&d.endSeparator?.includes(" ")&&d.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let d=a;d>=i;d-=1)r[d]=l,o[l]=d,l-=1;i=a+1}return e.forEach((d,u)=>{const f=r[u],p=f===0?null:o[f-1],y=f===e.length-1?null:o[f+1];n[u]={leftIndex:p,rightIndex:y}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},yu=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,YA=(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}},UA=(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}},qA=["value","referenceDate"],Lo={emptyValue:null,getTodayValue:Vv,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Ye(e,qA);return t!=null&&o.utils.isValid(t)?t:n??IA(o)},cleanValue:RA,areValuesEqual:TA,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},GA={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o)=>!e.isValid(t)&&!!n?n:o(t),getV7HiddenInputValueFromSections:VA,getV6InputValueFromSections:jA,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},KA=["localeText"],$l=T.createContext(null);process.env.NODE_ENV!=="production"&&($l.displayName="MuiPickersAdapterContext");const Ic=function(t){const{localeText:n}=t,o=Ye(t,KA),{utils:r,localeText:i}=T.useContext($l)??{utils:void 0,localeText:void 0},a=Nt({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:d,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:y}=a,w=T.useMemo(()=>Q({},y,i,n),[y,i,n]),b=T.useMemo(()=>{if(!d)return r||null;const P=new d({locale:p,formats:u,instance:f});if(!P.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/getting-started/#installation"].join(`
282
282
  `));return P},[d,p,u,f,r]),m=T.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),v=T.useMemo(()=>({utils:b,defaultDates:m,localeText:w}),[m,b,w]);return E.jsx($l.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(Ic.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const XA=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Q({},e)}}}}),Yv=e=>{const{utils:t,formatKey:n,contextTranslation:o,propsTranslation:r}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(r??o)(i,t,a)}},Uv={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",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,o)=>`Select ${e}. ${!o&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${o??n.format(t,"fullTime")}`}`,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,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",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"},ZA=Uv;XA(Uv);const Qr=()=>{const e=T.useContext($l);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(`
283
283
  `));if(e.utils===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(`
284
284
  `));const t=T.useMemo(()=>Q({},ZA,e.localeText),[e.localeText]);return T.useMemo(()=>Q({},e,{localeText:t}),[e,t])},Ft=()=>Qr().utils,Ra=()=>Qr().defaultDates,Nc=e=>{const t=Ft(),n=T.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function QA(e){return Me("MuiPickersToolbar",e)}Pe("MuiPickersToolbar",["root","content"]);const JA=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],eF=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},QA,t)},tF=ie("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),nF=ie("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),oF=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:a,hidden:l,titleId:d}=o,u=Ye(o,JA),f=o,p=eF(f);return l?null:E.jsxs(tF,Q({ref:n,className:Se(p.root,i),ownerState:f},u,{children:[E.jsx(Cn,{color:"text.secondary",variant:"overline",id:d,children:a}),E.jsx(nF,{className:p.content,ownerState:f,children:r})]}))}),dr=()=>Qr().localeText;function rF(e){return Me("MuiDatePickerToolbar",e)}Pe("MuiDatePickerToolbar",["root","title"]);const sF=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],iF=e=>{const{classes:t}=e;return Ie({root:["root"],title:["title"]},rF,t)},aF=ie(oF,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lF=ie(Cn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),qv=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:l="––",views:d,className:u}=o,f=Ye(o,sF),p=Ft(),y=dr(),w=iF(o),b=T.useMemo(()=>{if(!r)return l;const v=Rh(p,{format:a,views:d},!0);return p.formatByString(r,v)},[r,a,l,p,d]),m=o;return E.jsx(aF,Q({ref:n,toolbarTitle:y.datePickerToolbarTitle,isLandscape:i,className:Se(w.root,u)},f,{children:E.jsx(lF,{variant:"h4",align:i?"left":"center",ownerState:m,className:w.title,children:b})}))});process.env.NODE_ENV!=="production"&&(qv.propTypes={classes:s.object,className:s.string,disabled:s.bool,hidden:s.bool,isLandscape:s.bool.isRequired,onChange:s.func.isRequired,onViewChange:s.func.isRequired,readOnly:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node,value:s.object,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});function Gv(e,t){const n=Ft(),o=Ra(),r=Nt({props:e,name:t}),i=T.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Q({},r.localeText,{datePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return Q({},r,{localeText:i},xA({views:r.views,openTo:r.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,minDate:to(n,r.minDate,o.minDate),maxDate:to(n,r.maxDate,o.maxDate),slots:Q({toolbar:qv},r.slots)})}const Ta=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:d}=e,u=o.utils.date(void 0,n),f=to(o.utils,e.minDate,o.defaultDates.minDate),p=to(o.utils,e.maxDate,o.defaultDates.maxDate);switch(!0){case!o.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(d&&o.utils.isAfterDay(t,u)):return"disableFuture";case!!(l&&o.utils.isBeforeDay(t,u)):return"disablePast";case!!(f&&o.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&o.utils.isAfterDay(t,p)):return"maxDate";default:return null}};Ta.valueManager=Lo;const Kv=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],cF=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],dF=["minDateTime","maxDateTime"],uF=[...Kv,...cF,...dF],Xv=e=>uF.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Zv(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Qr(),l=T.useRef(n.valueManager.defaultErrorState),d=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(d);T.useEffect(()=>{i&&!n.valueManager.isSameError(d,l.current)&&i(d,o),l.current=d},[n,i,d,o]);const f=Te(p=>n({adapter:a,value:p,timezone:r,props:t}));return{validationError:d,hasValidationError:u,getValidationErrorForNewValue:f}}function hF(e){return Me("MuiPickersPopper",e)}Pe("MuiPickersPopper",["root","paper"]);function fF(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const pF=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},$n=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?$n(t.shadowRoot):t:null},mF="@media (pointer: fine)",gF="@media (prefers-reduced-motion: reduce)",Os=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Dm=Os&&Os[1]?parseInt(Os[1],10):null,Om=Os&&Os[2]?parseInt(Os[2],10):null,yF=Dm&&Dm<10||Om&&Om<13||!1,Qv=()=>Mg(gF,{defaultMatches:!1})||yF,vF=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],bF=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},hF,t)},wF=ie(lc,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),CF=ie(qs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function SF(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function _F(e,t){const n=T.useRef(!1),o=T.useRef(!1),r=T.useRef(null),i=T.useRef(!1);T.useEffect(()=>{if(!e)return;function d(){i.current=!0}return document.addEventListener("mousedown",d,!0),document.addEventListener("touchstart",d,!0),()=>{document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0),i.current=!1}},[e]);const a=Te(d=>{if(!i.current)return;const u=o.current;o.current=!1;const f=_n(r.current);if(!r.current||"clientX"in d&&SF(d,f))return;if(n.current){n.current=!1;return}let p;d.composedPath?p=d.composedPath().indexOf(r.current)>-1:p=!f.documentElement.contains(d.target)||r.current.contains(d.target),!p&&!u&&t(d)}),l=()=>{o.current=!0};return T.useEffect(()=>{if(e){const d=_n(r.current),u=()=>{n.current=!0};return d.addEventListener("touchstart",a),d.addEventListener("touchmove",u),()=>{d.removeEventListener("touchstart",a),d.removeEventListener("touchmove",u)}}},[e,a]),T.useEffect(()=>{if(e){const d=_n(r.current);return d.addEventListener("click",a),()=>{d.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const xF=T.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:r,children:i,paperSlotProps:a,paperClasses:l,onPaperClick:d,onPaperTouchStart:u}=e,f=Ye(e,vF),p=Q({},r,{placement:o}),y=pt({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return E.jsx(n,Q({},f,y,{onClick:w=>{d(w),y.onClick?.(w)},onTouchStart:w=>{u(w),y.onTouchStart?.(w)},ownerState:p,children:i}))});function RF(e){const t=Nt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:o,containerRef:r=null,shouldRestoreFocus:i,onBlur:a,onDismiss:l,open:d,role:u,placement:f,slots:p,slotProps:y,reduceAnimations:w}=t;T.useEffect(()=>{function Y(z){d&&z.key==="Escape"&&l()}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[l,d]);const b=T.useRef(null);T.useEffect(()=>{u==="tooltip"||i&&!i()||(d?b.current=$n(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[d,u,i]);const[m,v,P]=_F(d,a??l),D=T.useRef(null),x=ct(D,r),S=ct(x,m),C=t,O=bF(C),A=Qv(),F=w??A,B=Y=>{Y.key==="Escape"&&(Y.stopPropagation(),l())},R=p?.desktopTransition??F?Kr:Yr,$=p?.desktopTrapFocus??ea,K=p?.desktopPaper??CF,G=p?.popper??wF,q=pt({elementType:G,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:u,open:d,anchorEl:n,placement:f,onKeyDown:B},className:O.root,ownerState:t});return E.jsx(G,Q({},q,{children:({TransitionProps:Y,placement:z})=>E.jsx($,Q({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:E.jsx(R,Q({},Y,y?.desktopTransition,{children:E.jsx(xF,{PaperComponent:K,ownerState:C,popperPlacement:z,ref:S,onPaperClick:v,onPaperTouchStart:P,paperClasses:O.paper,paperSlotProps:y?.desktopPaper,children:o})}))}))}))}const Mm=new Set;function TF(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
285
- `):e;Mm.has(n)||(Mm.add(n),t==="error"?console.error(n):console.warn(n))}const EF=({open:e,onOpen:t,onClose:n})=>{const o=T.useRef(typeof e=="boolean").current,[r,i]=T.useState(!1);T.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[o,e]);const a=T.useCallback(l=>{o||i(l),l&&t&&t(),!l&&n&&n()},[o,t,n]);return{isOpen:r,setIsOpen:a}},Ph=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:r})=>{const i=Ft(),a=T.useRef(n),l=t??a.current??r.emptyValue,d=T.useMemo(()=>r.getTimezone(i,l),[i,r,l]),u=Te(w=>d==null?w:r.setTimezone(i,d,w)),f=e??d??"default",p=T.useMemo(()=>r.setTimezone(i,f,l),[r,i,f,l]),y=Te((w,...b)=>{const m=u(w);o?.(m,...b)});return{value:p,handleValueChange:y,timezone:f}},Dh=({name:e,timezone:t,value:n,defaultValue:o,onChange:r,valueManager:i})=>{const[a,l]=fo({name:e,state:"value",controlled:n,default:o??i.emptyValue}),d=Te((u,...f)=>{l(u),r?.(u,...f)});return Ph({timezone:t,value:a,defaultValue:void 0,onChange:d,valueManager:i})},kF=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r}=e,i=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(o.lastPublishedValue):!1},PF=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r,closeOnSelect:i}=e,a=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(o.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(o.lastCommittedValue):!1},DF=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},OF=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:r})=>{const{onAccept:i,onChange:a,value:l,defaultValue:d,closeOnSelect:u=o==="desktop",timezone:f}=e,{current:p}=T.useRef(d),{current:y}=T.useRef(l!==void 0);process.env.NODE_ENV!=="production"&&(T.useEffect(()=>{y!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${y?"":"un"}controlled value of a picker to be ${y?"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(`
285
+ `):e;Mm.has(n)||(Mm.add(n),t==="error"?console.error(n):console.warn(n))}const EF=({open:e,onOpen:t,onClose:n})=>{const o=T.useRef(typeof e=="boolean").current,[r,i]=T.useState(!1);T.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[o,e]);const a=T.useCallback(l=>{o||i(l),l&&t&&t(),!l&&n&&n()},[o,t,n]);return{isOpen:r,setIsOpen:a}},Ph=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:r})=>{const i=Ft(),a=T.useRef(n),l=t??a.current??r.emptyValue,d=T.useMemo(()=>r.getTimezone(i,l),[i,r,l]),u=Te(w=>d==null?w:r.setTimezone(i,d,w)),f=e??d??"default",p=T.useMemo(()=>r.setTimezone(i,f,l),[r,i,f,l]),y=Te((w,...b)=>{const m=u(w);o?.(m,...b)});return{value:p,handleValueChange:y,timezone:f}},Dh=({name:e,timezone:t,value:n,defaultValue:o,onChange:r,valueManager:i})=>{const[a,l]=po({name:e,state:"value",controlled:n,default:o??i.emptyValue}),d=Te((u,...f)=>{l(u),r?.(u,...f)});return Ph({timezone:t,value:a,defaultValue:void 0,onChange:d,valueManager:i})},kF=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r}=e,i=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(o.lastPublishedValue):!1},PF=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r,closeOnSelect:i}=e,a=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(o.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(o.lastCommittedValue):!1},DF=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},OF=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:r})=>{const{onAccept:i,onChange:a,value:l,defaultValue:d,closeOnSelect:u=o==="desktop",timezone:f}=e,{current:p}=T.useRef(d),{current:y}=T.useRef(l!==void 0);process.env.NODE_ENV!=="production"&&(T.useEffect(()=>{y!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${y?"":"un"}controlled value of a picker to be ${y?"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(`
286
286
  `))},[l]),T.useEffect(()=>{!y&&p!==d&&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(`
287
- `))},[JSON.stringify(p)]));const w=Ft(),b=Qr(),{isOpen:m,setIsOpen:v}=EF(e),{timezone:P,value:D,handleValueChange:x}=Ph({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=T.useState(()=>{let j;return D!==void 0?j=D:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:D,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:O}=Zv({props:e,validator:r,timezone:P,value:S.draft,onError:e.onError}),A=Te(j=>{const ee={action:j,dateState:S,hasChanged:H=>!t.areValuesEqual(w,j.value,H),isControlled:y,closeOnSelect:u},J=kF(ee),te=PF(ee),ce=DF(ee);C(H=>Q({},H,{draft:j.value,lastPublishedValue:J?j.value:H.lastPublishedValue,lastCommittedValue:te?j.value:H.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let le=null;const he=()=>(le||(le={validationError:j.name==="setValueFromField"?j.context.validationError:O(j.value)},j.name==="setValueFromShortcut"&&(le.shortcut=j.shortcut)),le);J&&x(j.value,he()),te&&i&&i(j.value,he()),ce&&v(!1)});if(D!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(w,S.lastControlledValue,D))){const j=t.areValuesEqual(w,S.draft,D);C(ee=>Q({},ee,{lastControlledValue:D},j?{}:{lastCommittedValue:D,lastPublishedValue:D,draft:D,hasBeenModifiedSinceMount:!0}))}const F=Te(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{A({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{A({value:t.getTodayValue(w,P,n),name:"setValueFromAction",pickerAction:"today"})}),G=Te(j=>{j.preventDefault(),v(!0)}),q=Te(j=>{j?.preventDefault(),v(!1)}),Y=Te((j,ee="partial")=>A({name:"setValueFromView",value:j,selectionState:ee})),z=Te((j,ee,J)=>A({name:"setValueFromShortcut",value:j,changeImportance:ee,shortcut:J})),ae=Te((j,ee)=>A({name:"setValueFromField",value:j,context:ee})),N={onClear:F,onAccept:B,onDismiss:R,onCancel:$,onSetToday:K,onOpen:G,onClose:q},M={value:S.draft,onChange:ae},L=T.useMemo(()=>t.cleanValue(w,S.draft),[w,t,S.draft]),W={value:L,onChange:Y,onClose:q,open:m},oe=Q({},N,{value:L,onChange:Y,onSelectShortcut:z,isValid:j=>{const ee=r({adapter:b,value:j,timezone:P,props:e});return!t.hasError(ee)}}),se=T.useMemo(()=>({onOpen:G,onClose:q,open:m}),[m,q,G]);return{open:m,fieldProps:M,viewProps:W,layoutProps:oe,actions:N,contextValue:se}};let Dd=!1;function Jv({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(Dd||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Dd=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Dd=!0)));const d=T.useRef(n),u=T.useRef(r),f=T.useRef(r.includes(n)?n:r[0]),[p,y]=fo({name:"useViews",state:"view",controlled:o,default:f.current}),w=T.useRef(i?p:null),[b,m]=fo({name:"useViews",state:"focusedView",controlled:a,default:w.current});T.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(A=>!r.includes(A)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),P=r[v-1]??null,D=r[v+1]??null,x=Te((A,F)=>{m(F?A:B=>A===B?null:B),l?.(A,F)}),S=Te(A=>{x(A,!0),A!==p&&(y(A),t&&t(A))}),C=Te(()=>{D&&S(D)}),O=Te((A,F,B)=>{const R=F==="finish",$=B?r.indexOf(B)<r.length-1:!!D;if(e(A,R&&$?"partial":F,B),B&&B!==p){const G=r[r.indexOf(B)+1];G&&S(G)}else R&&C()});return{view:p,setView:S,focusedView:b,setFocusedView:x,nextView:D,previousView:P,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:O}}const MF=["className","sx"],IF=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:w,timezone:b}=e,m=Ye(e,MF),{view:v,setView:P,defaultView:D,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=Jv({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:O,viewModeLookup:A}=T.useMemo(()=>f.reduce((q,Y)=>{let z;return w[Y]!=null?z="UI":z="field",q.viewModeLookup[Y]=z,z==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[w,f]),F=T.useMemo(()=>f.reduce((q,Y)=>w[Y]!=null&&DA(Y)?q+1:q,0),[w,f]),B=A[v],R=Te(()=>B==="UI"),[$,K]=T.useState(B==="UI"?v:null);return $!==v&&A[v]==="UI"&&K(v),cn(()=>{B==="field"&&l&&(d(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),cn(()=>{if(!l)return;let q=v;B==="field"&&$!=null&&(q=$),q!==D&&A[q]==="UI"&&A[D]==="UI"&&(q=D),q!==v&&P(q),S(q,!0)},[l]),{hasUIView:O,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:P},renderCurrentView:()=>{if($==null)return null;const q=w[$];if(q==null)return null;const Y=Q({},m,n,t,{views:f,timezone:b,onChange:C,view:$,onViewChange:P,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(w,$,Y):q(Y)}}};function Im(){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"}const NF=(e,t)=>{const[n,o]=T.useState(Im);return cn(()=>{const i=()=>{o(Im())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),fF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},AF=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=NF(n.views,r),a=oo();return{layoutProps:Q({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function FF(e){const{props:t,pickerValueResponse:n}=e;return T.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const eb=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:d})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&TF(["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)."]);const u=OF({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=IF({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=AF({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=FF({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:y}};function tb(e){return Me("MuiPickersLayout",e)}const Or=Pe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),LF=["onAccept","onClear","onCancel","onSetToday","actions"];function nb(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=Ye(e,LF),l=dr();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return E.jsx(ko,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return E.jsx(ko,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return E.jsx(ko,{onClick:t,children:l.okButtonLabel},u);case"today":return E.jsx(ko,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return E.jsx(Cy,Q({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(nb.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const aa=36,Ac=2,Fc=320,$F=280,Oh=336,VF=["items","changeImportance","isLandscape","onChange","isValid"],jF=["getValue"];function ob(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=Ye(e,VF);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=Ye(l,jF);const f=d({isValid:r});return Q({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return E.jsx(Xu,Q({dense:!0,sx:[{maxHeight:Oh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>E.jsx(Ty,{children:E.jsx(fy,Q({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(ob.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function BF(e){return e.view!==null}const WF=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},tb,t)},HF=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:w,disabled:b,readOnly:m,children:v,slots:P,slotProps:D}=e,x=WF(e),S=P?.actionBar??nb,C=pt({elementType:S,externalSlotProps:D?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Q({},e,{wrapperVariant:t})}),O=E.jsx(S,Q({},C)),A=P?.toolbar,F=pt({elementType:A,externalSlotProps:D?.toolbar,additionalProps:{isLandscape:w,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:b,readOnly:m},className:x.toolbar,ownerState:Q({},e,{wrapperVariant:t})}),B=BF(F)&&A?E.jsx(A,Q({},F)):null,R=v,$=P?.tabs,K=a&&$?E.jsx($,Q({view:a,onViewChange:d,className:x.tabs},D?.tabs)):null,G=P?.shortcuts??ob,q=pt({elementType:G,externalSlotProps:D?.shortcuts,additionalProps:{isValid:y,isLandscape:w,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:w,onChange:p,wrapperVariant:t}}),Y=a&&G?E.jsx(G,Q({},q)):null;return{toolbar:B,content:R,tabs:K,actionBar:O,shortcuts:Y}},zF=e=>{const{isLandscape:t,classes:n}=e;return Ie({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},tb,n)},YF=ie("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Or.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Or.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Or.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Or.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Or.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Or.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Or.shortcuts}`]:{gridColumn:3}}}]}),UF=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Mh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=HF(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,w=zF(o);return E.jsxs(YF,{ref:n,sx:u,className:Se(w.root,f),ownerState:o,children:[p?d:r,p?r:d,E.jsx(UF,{className:w.contentWrapper,children:y==="desktop"?E.jsxs(T.Fragment,{children:[i,a]}):E.jsxs(T.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Mh.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const qF=T.createContext(null);function rb(e){const{contextValue:t,localeText:n,children:o}=e;return E.jsx(qF.Provider,{value:t,children:E.jsx(Ic,{localeText:n,children:o})})}const GF=["props","getOpenDialogAriaText"],KF=["ownerState"],XF=["ownerState"],ZF=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,GF);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:P,disabled:D,autoFocus:x,localeText:S,reduceAnimations:C}=t,O=T.useRef(null),A=T.useRef(null),F=ar(),B=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:G,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:z,contextValue:ae,ownerState:N}=eb(Q({},o,{props:t,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=r.inputAdornment??Ku,L=pt({elementType:M,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),W=Ye(L,KF),ne=r.openPickerButton??Gs,oe=pt({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:D||P,onClick:R?$.onClose:$.onOpen,"aria-label":n(z.value),edge:W.position},ownerState:t}),se=Ye(oe,XF),j=r.openPickerIcon,ee=pt({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:N}),J=r.field,te=pt({elementType:J,externalSlotProps:i?.field,additionalProps:Q({},z,B&&{id:F},{readOnly:P,disabled:D,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Q({},te.InputProps,{ref:O},!t.disableOpenPicker&&{[`${W.position}Adornment`]:E.jsx(M,Q({},W,{children:E.jsx(ne,Q({},se,{children:E.jsx(j,Q({},ee))}))}))}));const ce=Q({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),le=r.layout??Mh;let he=F;B&&(m?he=`${F}-label`:he=void 0);const H=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:F}),popper:Q({"aria-labelledby":he},i?.popper)}),re=ct(A,te.unstableFieldRef);return{renderPicker:()=>E.jsxs(rb,{contextValue:ae,localeText:S,children:[E.jsx(J,Q({},te,{slots:ce,slotProps:H,unstableFieldRef:re})),E.jsx(RF,Q({role:"dialog",placement:"bottom-start",anchorEl:O.current},$,{open:R,slots:r,slotProps:H,shouldRestoreFocus:Y,reduceAnimations:C,children:E.jsx(le,Q({},G,H?.layout,{slots:r,slotProps:H,children:q()}))}))]})}},QF=pn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),JF=pn(E.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),eL=pn(E.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),tL=pn(E.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");pn(E.jsxs(T.Fragment,{children:[E.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"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");pn(E.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");pn(E.jsxs(T.Fragment,{children:[E.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"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const nL=pn(E.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"),oL=({utils:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),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 picker component.");return r},rL=({utils:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},sL=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},iL=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const d=Th(e,a),u=zv(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",w=null;if(f)if(u)w=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);w=d.maxLength,p&&(y=Eh(Bv(qr(y,r),w),r))}return Q({},d,{format:a,maxLength:w,value:y,placeholder:sL(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},aL=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((w,b)=>b.length-w.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=w=>o.find(b=>b.start<=w&&b.end>=w);let y=0;for(;y<n.length;){const w=p(y),b=w!=null,m=d.exec(n.slice(y))?.[1];if(!b&&m!=null&&u.test(m)){let v=m;for(;v.length>0;){const P=f.exec(v)[1];v=v.slice(P.length),i.push(iL(Q({},e,{now:r,token:P,startSeparator:a}))),a=""}y+=m.length}else{const v=n[y];b&&w?.start===y||w?.end===y||(i.length===0?a+=v:i[i.length-1].endSeparator+=v),y+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},lL=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),Nm=e=>{let t=oL(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=rL(Q({},e,{expandedFormat:t})),o=aL(Q({},e,{expandedFormat:t,escapedParts:n}));return lL(Q({},e,{sections:o}))},cL=e=>{const t=Ft(),n=dr(),o=Qr(),r=oo(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:w,format:b,formatDensity:m="dense",selectedSections:v,onSelectedSectionsChange:P,shouldRespectLeadingZeros:D=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:O,handleValueChange:A}=Ph({timezone:x,value:f,defaultValue:p,onChange:w,valueManager:i}),F=T.useMemo(()=>FA(t),[t]),B=T.useMemo(()=>BA(t,F,C),[t,F,C]),R=T.useCallback((j,ee=null)=>a.getSectionsFromValue(t,j,ee,J=>Nm({utils:t,localeText:n,localizedDigits:F,format:b,date:J,formatDensity:m,shouldRespectLeadingZeros:D,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,b,n,F,r,D,t,m,S]),[$,K]=T.useState(()=>{const j=R(O);Em(j,l);const ee={sections:j,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},J=MA(j),te=i.getInitialReferenceValue({referenceDate:y,value:O,utils:t,props:u,granularity:J,timezone:C});return Q({},ee,{referenceValue:te})}),[G,q]=fo({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=j=>{q(j),P?.(j)},z=T.useMemo(()=>yu(G,$.sections),[G,$.sections]),ae=z==="all"?0:z,N=({value:j,referenceValue:ee,sections:J})=>{if(K(ce=>Q({},ce,{sections:J,value:j,referenceValue:ee,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,j))return;const te={validationError:d({adapter:o,value:j,timezone:C,props:u})};A(j,te)},M=(j,ee)=>{const J=[...$.sections];return J[j]=Q({},J[j],{value:ee,modified:!0}),J},L=()=>{N({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},W=()=>{if(ae==null)return;const j=$.sections[ae],ee=a.getActiveDateManager(t,$,j),te=ee.getSections($.sections).filter(H=>H.value!=="").length===(j.value===""?0:1),ce=M(ae,""),le=te?null:t.getInvalidDate(),he=ee.getNewValuesFromNewActiveDate(le);N(Q({},he,{sections:ce}))},ne=j=>{const ee=(ce,le)=>{const he=t.parse(ce,b);if(he==null||!t.isValid(he))return null;const H=Nm({utils:t,localeText:n,localizedDigits:F,format:b,date:he,formatDensity:m,shouldRespectLeadingZeros:D,enableAccessibleFieldDOMStructure:S,isRtl:r});return Pm(t,he,H,le,!1)},J=a.parseValueStr(j,$.referenceValue,ee),te=a.updateReferenceValue(t,J,$.referenceValue);N({value:J,referenceValue:te,sections:R(J,$.sections)})},oe=({activeSection:j,newSectionValue:ee,shouldGoToNextSection:J})=>{J&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,j),ce=M(ae,ee),le=te.getSections(ce),he=$A(t,le,F);let H,re;if(he!=null&&t.isValid(he)){const Z=Pm(t,he,le,te.referenceDate,!0);H=te.getNewValuesFromNewActiveDate(Z),re=!0}else H=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?N(Q({},H,{sections:ce})):K(Z=>Q({},Z,H,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(ee=>Q({},ee,{tempValueStrAndroid:j}));return T.useEffect(()=>{const j=R($.value);Em(j,l),K(ee=>Q({},ee,{sections:j}))},[b,t.locale,r]),T.useEffect(()=>{let j;i.areValuesEqual(t,$.value,O)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,O):j=!0,j&&K(ee=>Q({},ee,{value:O,referenceValue:a.updateReferenceValue(t,O,ee.referenceValue),sections:R(O)}))},[O]),{state:$,activeSectionIndex:ae,parsedSelectedSections:z,setSelectedSections:Y,clearValue:L,clearActiveSection:W,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:B,localizedDigits:F,timezone:C}},dL=5e3,ms=e=>e.saveQuery!=null,uL=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Ft(),[l,d]=T.useState(null),u=Te(()=>d(null));T.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),T.useEffect(()=>{if(l!=null){const b=setTimeout(()=>u(),dL);return()=>{clearTimeout(b)}}return()=>{}},[l,u]);const f=({keyPressed:b,sectionIndex:m},v,P)=>{const D=b.toLowerCase(),x=e[m];if(l!=null&&(!P||P(l.value))&&l.sectionIndex===m){const C=`${l.value}${D}`,O=v(C,x);if(!ms(O))return d({sectionIndex:m,value:C,sectionType:x.type}),O}const S=v(D,x);return ms(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:m,value:D,sectionType:x.type}),ms(S)?null:S)},p=b=>{const m=(D,x,S)=>{const C=x.filter(O=>O.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(D,x,S,C)=>{const O=A=>jv(a,i,x.type,A);if(x.contentType==="letter")return m(x.format,O(x.format),D);if(S&&C!=null&&Th(a,S).contentType==="letter"){const A=O(S),F=m(S,A,D);return ms(F)?{saveQuery:!1}:Q({},F,{sectionValue:C(F.sectionValue,A)})}return{saveQuery:!1}};return f(b,(D,x)=>{switch(x.type){case"month":{const S=C=>Rm(a,C,a.formats.month,x.format);return v(D,x,a.formats.month,S)}case"weekDay":{const S=(C,O)=>O.indexOf(C).toString();return v(D,x,a.formats.weekday,S)}case"meridiem":return v(D,x);default:return{saveQuery:!1}}})},y=b=>{const m=(P,D)=>{const x=qr(P,o),S=Number(x),C=n[D.type]({currentDate:null,format:D.format,contentType:D.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const O=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:Wv(a,S,C,o,D),shouldGoToNextSection:O}};return f(b,(P,D)=>{if(D.contentType==="digit"||D.contentType==="digit-with-letter")return m(P,D);if(D.type==="month"){zv(a,"digit","month","MM");const x=m(P,{type:D.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ms(x))return x;const S=Rm(a,x.sectionValue,"MM",D.format);return Q({},x,{sectionValue:S})}if(D.type==="weekDay"){const x=m(P,D);if(ms(x))return x;const S=Mc(a,D.format)[Number(x.sectionValue)-1];return Q({},x,{sectionValue:S})}return{saveQuery:!1}},P=>xm(P,o))};return{applyCharacterEditing:Te(b=>{const m=e[b.sectionIndex],P=xm(b.keyPressed,o)?y(Q({},b,{keyPressed:Eh(b.keyPressed,o)})):p(b);if(P==null){r(null);return}t({activeSection:m,newSectionValue:P.sectionValue,shouldGoToNextSection:P.shouldGoToNextSection})}),resetCharacterQuery:u}},hL=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:w,setSelectedSections:b,parsedSelectedSections:m,state:v,clearActiveSection:P,clearValue:D,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:O,sectionsValueBoundaries:A}=e,F=T.useRef(null),B=ct(o,F),R=dr(),$=Ft(),K=ar(),[G,q]=T.useState(!1),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(m==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),G&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains($n(document)))return;const Z=new window.Range;let fe;m==="all"?fe=F.current.getRoot():v.sections[m].type==="empty"?fe=F.current.getSectionContainer(m):fe=F.current.getSectionContent(m),Z.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Z)},getActiveSectionIndexFromDOM:()=>{const re=$n(document);return!re||!F.current||!F.current.getRoot().contains(re)?null:F.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!F.current)return;const Z=yu(re,v.sections);q(!0),F.current.getSectionContent(Z).focus()},setSelectedSections:re=>{if(!F.current)return;const Z=yu(re,v.sections);q((Z==="all"?0:Z)!==null),b(re)},isFieldFocused:()=>{const re=$n(document);return!!F.current&&F.current.getRoot().contains(re)}}),[m,b,v.sections,G]),z=Te(re=>{if(!F.current)return;const Z=v.sections[re];F.current.getSectionContent(re).innerHTML=Z.value||Z.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Z)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Z),m==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){b(C.startIndex);return}let pe=0,be=0;for(;be<fe&&pe<v.sections.length;){const ge=v.sections[pe];pe+=1,be+=`${ge.startSeparator}${ge.value||ge.placeholder}${ge.endSeparator}`.length}b(pe-1)}):G?F.current.getRoot().contains(re.target)||b(C.startIndex):(q(!0),b(C.startIndex)))}),N=Te(re=>{if(l?.(re),!F.current||m!=="all")return;const fe=re.target.textContent??"";F.current.getRoot().innerHTML=v.sections.map(pe=>`${pe.startSeparator}${pe.value||pe.placeholder}${pe.endSeparator}`).join(""),Y.syncSelectionToDOM(),fe.length===0||fe.charCodeAt(0)===10?(w(),D(),b("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),M=Te(re=>{if(d?.(re),n||m!=="all"){re.preventDefault();return}const Z=re.clipboardData.getData("text");re.preventDefault(),w(),S(Z)}),L=Te((...re)=>{if(a?.(...re),G||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement($n(document))!=null||b(C.startIndex)}),W=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Z=$n(document);!F.current.getRoot().contains(Z)&&(q(!1),b(null))})}),ne=Te(re=>Z=>{Z.isDefaultPrevented()||b(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{b(re)}),j=Te(re=>{if(re.preventDefault(),n||t||typeof m!="number")return;const Z=v.sections[m],fe=re.clipboardData.getData("text"),pe=/^[a-zA-Z]+$/.test(fe),be=/^[0-9]+$/.test(fe),ge=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);Z.contentType==="letter"&&pe||Z.contentType==="digit"&&be||Z.contentType==="digit-with-letter"&&ge?(w(),x({activeSection:Z,newSectionValue:fe,shouldGoToNextSection:!0})):!pe&&!be&&(w(),S(fe))}),ee=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),J=Te(re=>{if(!F.current)return;const Z=re.target,fe=Z.textContent??"",pe=F.current.getSectionIndexFromDOMElement(Z),be=v.sections[pe];if(n||!F.current){z(pe);return}if(fe.length===0){if(be.value===""){z(pe);return}const ge=re.nativeEvent.inputType;if(ge==="insertParagraph"||ge==="insertLineBreak"){z(pe);return}w(),P();return}y({keyPressed:fe,sectionIndex:pe}),z(pe)});cn(()=>{if(!(!G||!F.current)){if(m==="all")F.current.getRoot().focus();else if(typeof m=="number"){const re=F.current.getSectionContent(m);re&&re.focus()}}},[m,G]);const te=T.useMemo(()=>v.sections.reduce((re,Z)=>(re[Z.type]=A[Z.type]({currentDate:null,contentType:Z.contentType,format:Z.format}),re),{}),[A,v.sections]),ce=m==="all",le=T.useMemo(()=>v.sections.map((re,Z)=>{const fe=!ce&&!t&&!n;return{container:{"data-sectionindex":Z,onClick:ne(Z)},content:{tabIndex:ce||Z>0?-1:0,contentEditable:!ce&&!t&&!n,role:"spinbutton",id:`${K}-${re.type}`,"aria-labelledby":`${K}-${re.type}`,"aria-readonly":n,"aria-valuenow":UA(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?YA(re,$):R.empty,"aria-label":R[re.type],"aria-disabled":t,spellCheck:fe?!1:void 0,autoCapitalize:fe?"off":void 0,autoCorrect:fe?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:J,onPaste:j,onFocus:se(Z),onDragOver:ee,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,j,ee,J,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{S(re.target.value)}),H=T.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(v.sections),[O,v.sections,p]);return T.useEffect(()=>{if(F.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 remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker 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(`
288
- `));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??G,sectionListRef:B,onBlur:W,onClick:ae,onFocus:L,onInput:N,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:le,tabIndex:m===0?-1:0,contentEditable:ce,value:H,onChange:he,areAllSectionsEmpty:O}}},xs=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),fL=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=kh(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=xs(u).length,p=u.length,y=xs(d),w=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=w+y.length;i.push(Q({},l,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},pL=e=>{const t=oo(),n=T.useRef(),o=T.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:m,valueManager:v,applyCharacterEditing:P,resetCharacterQuery:D,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:O,setTempAndroidValueStr:A,setSelectedSections:F,getSectionsFromValue:B,areAllSectionsEmpty:R,localizedDigits:$}=e,K=T.useRef(null),G=ct(d,K),q=T.useMemo(()=>fL(b.sections,$,t),[b.sections,$,t]),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==$n(document))return;const J=K.current.scrollTop;if(y==="all")K.current.select();else{const te=q[y],ce=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,le=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ce!==K.current.selectionStart||le!==K.current.selectionEnd)&&K.current===$n(document)&&K.current.setSelectionRange(ce,le),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===$n(document)&&K.current.selectionStart===K.current.selectionEnd&&(K.current.selectionStart!==ce||K.current.selectionEnd!==le)&&Y.syncSelectionToDOM()})}K.current.scrollTop=J},getActiveSectionIndexFromDOM:()=>{const J=K.current.selectionStart??0,te=K.current.selectionEnd??0;if(J===0&&te===0)return null;const ce=J<=q[0].startInInput?1:q.findIndex(le=>le.startInInput-le.startSeparator.length>J);return ce===-1?q.length-1:ce-1},focusField:(J=0)=>{K.current?.focus(),F(J)},setSelectedSections:J=>F(J),isFieldFocused:()=>K.current===$n(document)}),[K,y,q,F]),z=()=>{const J=K.current.selectionStart??0;let te;J<=q[0].startInInput||J>=q[q.length-1].endInInput?te=1:te=q.findIndex(le=>le.startInInput-le.startSeparator.length>J);const ce=te===-1?q.length-1:te-1;F(ce)},ae=Te((...J)=>{r?.(...J);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||w==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):z())})}),N=Te((J,...te)=>{J.isDefaultPrevented()||(i?.(J,...te),z())}),M=Te(J=>{if(a?.(J),J.preventDefault(),f||p)return;const te=J.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],le=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),H=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&le||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&H){D(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(le||he)return}D(),S(te)}),L=Te((...J)=>{l?.(...J),F(null)}),W=Te(J=>{if(f)return;const te=J.target.value;if(te===""){D(),O();return}const ce=J.nativeEvent.data,le=ce&&ce.length>1,he=le?ce:te,H=xs(he);if(w==null||le){S(le?ce:H);return}let re;if(y==="all"&&H.length===1)re=H;else{const Z=xs(m.getV6InputValueFromSections(q,$,t));let fe=-1,pe=-1;for(let Ve=0;Ve<Z.length;Ve+=1)fe===-1&&Z[Ve]!==H[Ve]&&(fe=Ve),pe===-1&&Z[Z.length-Ve-1]!==H[H.length-Ve-1]&&(pe=Ve);const be=q[w];if(fe<be.start||Z.length-pe-1>be.end)return;const Re=H.length-Z.length+be.end-xs(be.endSeparator||"").length;re=H.slice(be.start+xs(be.startSeparator||"").length,Re)}if(re.length===0){HA()&&A(he),D(),C();return}P({keyPressed:re,sectionIndex:w})}),ne=T.useMemo(()=>u!==void 0?u:m.getV6InputValueFromSections(B(v.emptyValue),$,t),[u,m,B,v.emptyValue,$,t]),oe=T.useMemo(()=>b.tempValueStrAndroid??m.getV6InputValueFromSections(b.sections,$,t),[b.sections,m,b.tempValueStrAndroid,$,t]);T.useEffect(()=>(K.current&&K.current===$n(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=T.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),ee=!(K.current&&K.current===$n(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:L,onClick:N,onFocus:ae,onPaste:M,inputRef:G,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:ee?"":oe,onChange:W}}},mL=e=>{const t=Ft(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:w,validator:b}=e,m=oo(),v=cL(e),{state:P,activeSectionIndex:D,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:O,updateSectionValue:A,setTempAndroidValueStr:F,sectionsValueBoundaries:B,localizedDigits:R,timezone:$}=v,K=uL({sections:P.sections,updateSectionValue:A,sectionsValueBoundaries:B,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:G}=K,q=w.areValuesEqual(t,P.value,w.emptyValue),Y=i?hL:pL,z=T.useMemo(()=>zA(P.sections,m&&!i),[P.sections,m,i]),{returnedValue:ae,interactions:N}=Y(Q({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:z})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(z.startIndex);else if(x==="all")S(z.endIndex);else{const ee=z.neighbors[x].rightIndex;ee!==null&&S(ee)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(z.endIndex);else if(x==="all")S(z.startIndex);else{const ee=z.neighbors[x].leftIndex;ee!==null&&S(ee)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():O(),G();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||D==null)break;const ee=P.sections[D],J=y.getActiveDateManager(t,P,ee),te=LA(t,$,ee,j.key,B,R,J.date,{minutesStep:r});A({activeSection:ee,newSectionValue:te,shouldGoToNextSection:!1});break}}});cn(()=>{N.syncSelectionToDOM()});const{hasValidationError:L}=Zv({props:n,validator:b,timezone:$,value:P.value,onError:n.onError}),W=T.useMemo(()=>u!==void 0?u:L,[L,u]);T.useEffect(()=>{!W&&D==null&&G()},[P.referenceValue,D,W]),T.useEffect(()=>{P.tempValueStrAndroid!=null&&D!=null&&(G(),O())},[P.sections]),T.useImperativeHandle(o,()=>({getSections:()=>P.sections,getActiveSectionIndex:N.getActiveSectionIndexFromDOM,setSelectedSections:N.setSelectedSections,focusField:N.focusField,isFieldFocused:N.isFieldFocused}));const ne=Te((j,...ee)=>{j.preventDefault(),p?.(j,...ee),C(),N.isFieldFocused()?S(z.startIndex):N.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:W,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Q({},e.forwardedProps,oe,se,ae)},gL=["clearable","onClear","InputProps","sx","slots","slotProps"],yL=["ownerState"],vL=e=>{const t=dr(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=Ye(e,gL),u=a?.clearButton??Gs,f=pt({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=Ye(f,yL),y=a?.clearIcon??nL,w=pt({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Q({},d,{InputProps:Q({},r,{endAdornment:E.jsxs(T.Fragment,{children:[n&&E.jsx(Ku,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:E.jsx(u,Q({},p,{onClick:o,children:E.jsx(y,Q({fontSize:"small"},w))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},bL=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],wL=(e,t)=>T.useMemo(()=>{const n=Q({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return bL.forEach(r),Kv.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),CL=e=>{const t=Ft(),n=Ra();return Q({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:to(t,e.minDate,n.minDate),maxDate:to(t,e.maxDate,n.maxDate)})},SL=e=>{const t=CL(e),{forwardedProps:n,internalProps:o}=wL(t,"date");return mL({forwardedProps:n,internalProps:o,valueManager:Lo,fieldValueManager:GA,validator:Ta,valueType:"date"})};function _L(e){return Me("MuiPickersTextField",e)}Pe("MuiPickersTextField",["root","focused","disabled","error","required"]);function xL(e){return Me("MuiPickersInputBase",e)}const Ms=Pe("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function RL(e){return Me("MuiPickersSectionList",e)}const bi=Pe("MuiPickersSectionList",["root","section","sectionContent"]),TL=["slots","slotProps","elements","sectionListRef"],sb=ie("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),ib=ie("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),ab=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),lb=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),EL=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},RL,t)};function cb(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??ib,a=pt({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??lb,d=pt({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??ab,f=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return E.jsxs(i,Q({},a,{children:[E.jsx(u,Q({},f)),E.jsx(l,Q({},d)),E.jsx(u,Q({},p))]}))}process.env.NODE_ENV!=="production"&&(cb.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const db=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=Ye(o,TL),u=EL(o),f=T.useRef(null),p=ct(n,f),y=m=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return f.current};T.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(m){return y("getSectionContainer").querySelector(`.${bi.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return y("getSectionContent").querySelector(`.${bi.section}[data-sectionindex="${m}"] .${bi.sectionContent}`)},getSectionIndexFromDOMElement(m){const v=y("getSectionIndexFromDOMElement");if(m==null||!v.contains(m))return null;let P=null;return m.classList.contains(bi.section)?P=m:m.classList.contains(bi.sectionContent)&&(P=m.parentElement),P==null?null:Number(P.dataset.sectionindex)}}));const w=r?.root??sb,b=pt({elementType:w,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return E.jsx(w,Q({},b,{children:b.contentEditable?a.map(({content:m,before:v,after:P})=>`${v.children}${m.children}${P.children}`).join(""):E.jsx(T.Fragment,{children:a.map((m,v)=>E.jsx(cb,{slots:r,slotProps:i,element:m,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(db.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const kL=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],PL=e=>Math.round(e*1e5)/1e5,Lc=ie("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Q({},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:`${PL(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Ih=ie(sb,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.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:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:o,label:r})=>!t&&!n&&!o&&r==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),DL=ie(ib,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),OL=ie(lb,{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"})),ML=ie(ab,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),IL=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Q({},sR)),NL=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${we(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(p,xL,r)},$c=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:w,contentEditable:b,tabIndex:m,onInput:v,onPaste:P,onKeyDown:D,name:x,readOnly:S,inputProps:C,inputRef:O,sectionListRef:A}=o,F=Ye(o,kL),B=T.useRef(null),R=ct(n,B),$=ct(C?.ref,O),K=oo(),G=Nn();if(!G)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=L=>{if(G.disabled){L.stopPropagation();return}G.onFocus?.(L)};T.useEffect(()=>{G&&G.setAdornedStart(!!f)},[G,f]),T.useEffect(()=>{G&&(i?G.onEmpty():G.onFilled())},[G,i]);const Y=Q({},o,G,{isRtl:K}),z=NL(Y),ae=y?.root||Lc,N=pt({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":G.error,ref:R},className:z.root,ownerState:Y}),M=y?.input||Ih;return E.jsxs(ae,Q({},N,{children:[f,E.jsx(db,{sectionListRef:A,elements:r,contentEditable:b,tabIndex:m,className:z.sectionsContainer,onFocus:q,onBlur:G.onBlur,onInput:v,onPaste:P,onKeyDown:D,slots:{root:M,section:DL,sectionContent:OL,sectionSeparator:ML},slotProps:{root:{ownerState:Y},sectionContent:{className:Ms.sectionContent},sectionSeparator:({position:L})=>({className:L==="before"?Ms.sectionBefore:Ms.sectionAfter})}}),u,p?p(Q({},G)):null,E.jsx(IL,Q({name:x,className:z.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:G.required,disabled:G.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&($c.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function AL(e){return Me("MuiPickersOutlinedInput",e)}const lo=Q({},Ms,Pe("MuiPickersOutlinedInput",["root","notchedOutline","input"])),FL=["children","className","label","notched","shrink"],LL=ie("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.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}}),Am=ie("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),$L=ie("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!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:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function VL(e){const{className:t,label:n}=e,o=Ye(e,FL),r=n!=null&&n!=="",i=Q({},e,{withLabel:r});return E.jsx(LL,Q({"aria-hidden":!0,className:t},o,{ownerState:i,children:E.jsx($L,{ownerState:i,children:r?E.jsx(Am,{children:n}):E.jsx(Am,{className:"notranslate",children:"​"})})}))}const jL=["label","autoFocus","ownerState","notched"],BL=ie(Lc,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.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 .${lo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${lo.focused} .${lo.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${lo.disabled}`]:{[`& .${lo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${lo.error} .${lo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${lo.focused}:not(.${lo.error}) .${lo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),WL=ie(Ih,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),HL=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AL,t);return Q({},t,o)},Nh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=Ye(o,jL),d=Nn(),u=Q({},o,i,d,{color:d?.color||"primary"}),f=HL(u);return E.jsx($c,Q({slots:{root:BL,input:WL},renderSuffix:p=>E.jsx(VL,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?E.jsxs(T.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Nh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Nh.muiName="Input";function zL(e){return Me("MuiPickersFilledInput",e)}const Mr=Q({},Ms,Pe("MuiPickersFilledInput",["root","underline","input"])),YL=["label","autoFocus","disableUnderline","ownerState"],UL=ie(Lc,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dl(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)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Mr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Mr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.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"},[`&.${Mr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mr.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(.${Mr.disabled}, .${Mr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Mr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),qL=ie(Ih,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),GL=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},zL,t);return Q({},t,r)},Ah=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,YL),d=Nn(),u=Q({},o,a,d,{color:d?.color||"primary"}),f=GL(u);return E.jsx($c,Q({slots:{root:UL,input:qL},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Ah.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Ah.muiName="Input";function KL(e){return Me("MuiPickersFilledInput",e)}const wi=Q({},Ms,Pe("MuiPickersInput",["root","input"])),XL=["label","autoFocus","disableUnderline","ownerState"],ZL=ie(Lc,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({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(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},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"},[`&.${wi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wi.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(.${wi.disabled}, .${wi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${wi.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),QL=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},KL,t);return Q({},t,r)},Fh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,XL),d=Nn(),u=Q({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=QL(u);return E.jsx($c,Q({slots:{root:ZL}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Fh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Fh.muiName="Input";const JL=["onFocus","onBlur","className","color","disabled","error","variant","required","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"],e$={standard:Fh,filled:Ah,outlined:Nh},t$=ie(mc,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n$=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},_L,o)},ub=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:w,inputRef:b,sectionListRef:m,elements:v,areAllSectionsEmpty:P,onClick:D,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:O,endAdornment:A,startAdornment:F,tabIndex:B,contentEditable:R,focused:$,value:K,onChange:G,fullWidth:q,id:Y,name:z,helperText:ae,FormHelperTextProps:N,label:M,InputLabelProps:L}=o,W=Ye(o,JL),ne=T.useRef(null),oe=ct(n,ne),se=ar(Y),j=ae&&se?`${se}-helper-text`:void 0,ee=M&&se?`${se}-label`:void 0,J=Q({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=n$(J),ce=e$[f];return E.jsxs(t$,Q({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:J},W,{children:[E.jsx(gc,Q({htmlFor:se,id:ee},L,{children:M})),E.jsx(ce,Q({elements:v,areAllSectionsEmpty:P,onClick:D,onKeyDown:x,onKeyUp:S,onInput:O,onPaste:C,endAdornment:A,startAdornment:F,tabIndex:B,contentEditable:R,value:K,onChange:G,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:m,label:M,name:z,role:"group","aria-labelledby":ee},y)),ae&&E.jsx(Gu,Q({id:j},N,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(ub.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const o$=["enableAccessibleFieldDOMStructure"],r$=["InputProps","readOnly"],s$=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],i$=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ye(e,o$);if(t){const{InputProps:p,readOnly:y}=n,w=Ye(n,r$);return Q({},w,{InputProps:Q({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=Ye(n,s$);return Q({},f,{InputProps:Q({},l??{},{readOnly:a}),inputProps:Q({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},a$=["slots","slotProps","InputProps","inputProps"],Lh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=Ye(o,a$),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?ub:Bs),p=pt({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Q({},l,p.inputProps),p.InputProps=Q({},a,p.InputProps);const y=SL(p),w=i$(y),b=vL(Q({},w,{slots:r,slotProps:i}));return E.jsx(f,Q({},b))});process.env.NODE_ENV!=="production"&&(Lh.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const hb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=Qr();return T.useCallback(u=>Ta({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},l$=(e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return Q({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=r.newTimezone;if(n.getTimezone(o.currentMonth)===i)return o;let a=n.setTimezone(o.currentMonth,i);return n.getMonth(a)!==n.getMonth(o.currentMonth)&&(a=n.setMonth(a,n.getMonth(o.currentMonth))),Q({},o,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Q({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&r.focusedDay!=null&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const i=r.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return Q({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:i&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:r.focusedDay!=null&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},c$=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Ft(),w=T.useRef(l$(!!u,i,y)).current,b=T.useMemo(()=>Lo.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:Ro.day}),[n,p]),[m,v]=T.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});T.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const P=T.useCallback(O=>{v(Q({type:"changeMonth"},O)),d&&d(O.newMonth)},[d]),D=T.useCallback(O=>{const A=O;y.isSameMonth(A,m.currentMonth)||P({newMonth:y.startOfMonth(A),direction:y.isAfterDay(A,m.currentMonth)?"left":"right"})},[m.currentMonth,P,y]),x=hb({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=T.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((O,A)=>{x(O)||v({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:A})});return{referenceDate:b,calendarState:m,changeMonth:D,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:P}},d$=e=>Me("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const u$=e=>{const{classes:t}=e;return Ie({root:["root"]},d$,t)},h$=ie(ma,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function fb(e){const t=Nt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=u$(t),l=Gr();return r?n:E.jsx(h$,{className:Se(a.root,o),children:E.jsx(Kr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function f$(e){return Me("MuiPickersDay",e)}const Ir=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),p$=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],m$=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Ie({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},f$,d)},pb=({theme:e})=>Q({},e.typography.caption,{width:aa,height:aa,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})`:tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Ir.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ir.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}},[`&.${Ir.disabled}:not(.${Ir.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ir.disabled}&.${Ir.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Ac}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Ir.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),mb=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},g$=ie(Cr,{name:"MuiPickersDay",slot:"Root",overridesResolver:mb})(pb),y$=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:mb})(({theme:e})=>Q({},pb({theme:e}),{opacity:0,pointerEvents:"none"})),Ci=()=>{},gb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:w=Ci,onBlur:b=Ci,onKeyDown:m=Ci,onMouseDown:v=Ci,onMouseEnter:P=Ci,outsideCurrentMonth:D,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:O=!1}=o,A=Ye(o,p$),F=Q({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:O}),B=m$(F),R=Ft(),$=T.useRef(null),K=ct($,n);cn(()=>{r&&!l&&!f&&!D&&$.current.focus()},[r,l,f,D]);const G=Y=>{v(Y),D&&Y.preventDefault()},q=Y=>{l||y(a),D&&Y.currentTarget.focus(),p&&p(Y)};return D&&!S?E.jsx(y$,{className:Se(B.root,B.hiddenDaySpacingFiller,i),ownerState:F,role:A.role}):E.jsx(g$,Q({className:Se(B.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>m(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>P(Y,a),onClick:q,onMouseDown:G},A,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(gb.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const v$=T.memo(gb),b$=e=>Me("MuiPickersSlideTransition",e),Un=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),w$=["children","className","reduceAnimations","slideDirection","transKey","classes"],C$=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,b$,t)},S$=ie(ma,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Un["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Un["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Un.slideEnterActive}`]:t.slideEnterActive},{[`.${Un.slideExit}`]:t.slideExit},{[`.${Un["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Un["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},[`& .${Un["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Un["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Un.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Un.slideExit}`]:{transform:"translate(0%)"},[`& .${Un["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Un["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function _$(e){const t=Nt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=Ye(t,w$),l=C$(t),d=Gr();if(r)return E.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return E.jsx(S$,{className:Se(l.root,o),childFactory:f=>T.cloneElement(f,{classNames:u}),role:"presentation",children:E.jsx(Lu,Q({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const x$=e=>Me("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const R$=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],T$=["ownerState"],E$=e=>{const{classes:t}=e;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},x$,t)},yb=(aa+Ac*2)*6,k$=ie("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),P$=ie("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),D$=ie(Cn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.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})),O$=ie(Cn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),M$=ie(Cn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Q({},e.typography.caption,{width:aa,height:aa,padding:0,margin:`0 ${Ac}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),I$=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:yb}),N$=ie(_$,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:yb}),A$=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),F$=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ac}px 0`,display:"flex",justifyContent:"center"});function L$(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=Ye(e,R$);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:m}=t,v=Ft(),P=Nc(m),D=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,P),C=w?.day??v$,O=pt({elementType:C,externalSlotProps:b?.day,additionalProps:Q({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Q({},t,{day:n,selected:x})}),A=Ye(O,T$),F=T.useMemo(()=>u||i(n),[u,i,n]),B=T.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=T.useMemo(()=>{const K=v.startOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.startOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]),$=T.useMemo(()=>{const K=v.endOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.endOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]);return E.jsx(C,Q({},A,{day:n,disabled:F,autoFocus:l&&D,today:S,outsideCurrentMonth:B,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:D?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function $$(e){const t=Nt({props:e,name:"MuiDayCalendar"}),n=Ft(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:w=()=>E.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:m,disablePast:v,disableFuture:P,minDate:D,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,dayOfWeekFormatter:A=pe=>n.format(pe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:B,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:G,timezone:q}=t,Y=Nc(q),z=E$(t),ae=oo(),N=hb({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,minDate:D,maxDate:x,disablePast:v,disableFuture:P,timezone:q}),M=dr(),[L,W]=fo({name:"DayCalendar",state:"hasFocus",controlled:F,default:G??!1}),[ne,oe]=T.useState(()=>l||Y),se=Te(pe=>{p||u(pe)}),j=pe=>{N(pe)||(o(pe),oe(pe),B?.(!0),W(!0))},ee=Te((pe,be)=>{switch(pe.key){case"ArrowUp":j(n.addDays(be,-7)),pe.preventDefault();break;case"ArrowDown":j(n.addDays(be,7)),pe.preventDefault();break;case"ArrowLeft":{const ge=n.addDays(be,ae?1:-1),Re=n.addMonths(be,ae?1:-1),Ve=Bi({utils:n,date:ge,minDate:ae?ge:n.startOfMonth(Re),maxDate:ae?n.endOfMonth(Re):ge,isDateDisabled:N,timezone:q});j(Ve||ge),pe.preventDefault();break}case"ArrowRight":{const ge=n.addDays(be,ae?-1:1),Re=n.addMonths(be,ae?-1:1),Ve=Bi({utils:n,date:ge,minDate:ae?n.startOfMonth(Re):ge,maxDate:ae?ge:n.endOfMonth(Re),isDateDisabled:N,timezone:q});j(Ve||ge),pe.preventDefault();break}case"Home":j(n.startOfWeek(be)),pe.preventDefault();break;case"End":j(n.endOfWeek(be)),pe.preventDefault();break;case"PageUp":j(n.addMonths(be,1)),pe.preventDefault();break;case"PageDown":j(n.addMonths(be,-1)),pe.preventDefault();break}}),J=Te((pe,be)=>j(be)),te=Te((pe,be)=>{L&&n.isSameDay(ne,be)&&B?.(!1)}),ce=n.getMonth(i),le=n.getYear(i),he=T.useMemo(()=>a.filter(pe=>!!pe).map(pe=>n.startOfDay(pe)),[n,a]),H=`${le}-${ce}`,re=T.useMemo(()=>T.createRef(),[H]),Z=T.useMemo(()=>{const pe=n.startOfMonth(i),be=n.endOfMonth(i);return N(ne)||n.isAfterDay(ne,be)||n.isBeforeDay(ne,pe)?Bi({utils:n,date:ne,minDate:pe,maxDate:be,disablePast:v,disableFuture:P,isDateDisabled:N,timezone:q}):ne},[i,P,v,ne,N,n,q]),fe=T.useMemo(()=>{const pe=n.getWeekArray(i);let be=n.addMonths(i,1);for(;K&&pe.length<K;){const ge=n.getWeekArray(be),Re=n.isSameDay(pe[pe.length-1][0],ge[0][0]);ge.slice(Re?1:0).forEach(Ve=>{pe.length<K&&pe.push(Ve)}),be=n.addMonths(be,1)}return pe},[i,K,n]);return E.jsxs(k$,{role:"grid","aria-labelledby":R,className:z.root,children:[E.jsxs(P$,{role:"row",className:z.header,children:[$&&E.jsx(O$,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:z.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),kA(n,Y).map((pe,be)=>E.jsx(D$,{variant:"caption",role:"columnheader","aria-label":n.format(pe,"weekday"),className:z.weekDayLabel,children:A(pe)},be.toString()))]}),d?E.jsx(I$,{className:z.loadingContainer,children:w()}):E.jsx(N$,Q({transKey:H,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,z.slideTransition)},m,{nodeRef:re,children:E.jsx(A$,{ref:re,role:"rowgroup",className:z.monthContainer,children:fe.map((pe,be)=>E.jsxs(F$,{role:"row",className:z.weekContainer,"aria-rowindex":be+1,children:[$&&E.jsx(M$,{className:z.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(pe[0])),children:M.calendarWeekNumberText(n.getWeekNumber(pe[0]))}),pe.map((ge,Re)=>E.jsx(L$,{parentProps:t,day:ge,selectedDays:he,focusableDay:Z,onKeyDown:ee,onFocus:J,onBlur:te,onDaySelect:se,isDateDisabled:N,currentMonthNumber:ce,isViewFocused:L,"aria-colindex":Re+1},ge.toString()))]},`week-${pe[0]}`))})}))]})}function V$(e){return Me("MuiPickersMonth",e)}const ol=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),j$=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],B$=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},V$,o)},W$=ie("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),H$=ie("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${ol.disabled}`]:t.disabled},{[`&.${ol.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ol.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ol.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),z$=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,"aria-label":m,slots:v,slotProps:P}=n,D=Ye(n,j$),x=T.useRef(null),S=B$(n);cn(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??H$,O=pt({elementType:C,externalSlotProps:P?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":b,"aria-checked":l,"aria-label":m,onClick:A=>f(A,d),onKeyDown:A=>p(A,d),onFocus:A=>y(A,d),onBlur:A=>w(A,d)},ownerState:n,className:S.monthButton});return E.jsx(W$,Q({className:Se(S.root,r),ownerState:n},D,{children:E.jsx(C,Q({},O))}))});function Y$(e){return Me("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const U$=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],q$=e=>{const{classes:t}=e;return Ie({root:["root"]},Y$,t)};function G$(e,t){const n=Ft(),o=Ra(),r=Nt({props:e,name:t});return Q({disableFuture:!1,disablePast:!1},r,{minDate:to(n,r.minDate,o.minDate),maxDate:to(n,r.maxDate,o.maxDate)})}const K$=ie("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Fc,boxSizing:"border-box"}),vb=T.forwardRef(function(t,n){const o=G$(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:m,autoFocus:v=!1,onMonthFocus:P,hasFocus:D,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:O,slots:A,slotProps:F}=o,B=Ye(o,U$),{value:R,handleValueChange:$,timezone:K}=Dh({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:Lo}),G=Nc(K),q=oo(),Y=Ft(),z=T.useMemo(()=>Lo.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:Ro.month}),[]),ae=o,N=q$(ae),M=T.useMemo(()=>Y.getMonth(G),[Y,G]),L=T.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[W,ne]=T.useState(()=>L||Y.getMonth(z)),[oe,se]=fo({name:"MonthCalendar",state:"hasFocus",controlled:D,default:v??!1}),j=Te(H=>{se(H),x&&x(H)}),ee=T.useCallback(H=>{const re=Y.startOfMonth(f&&Y.isAfter(G,y)?G:y),Z=Y.startOfMonth(u&&Y.isBefore(G,p)?G:p),fe=Y.startOfMonth(H);return Y.isBefore(fe,re)||Y.isAfter(fe,Z)?!0:b?b(fe):!1},[u,f,p,y,G,b,Y]),J=Te((H,re)=>{if(m)return;const Z=Y.setMonth(R??z,re);$(Z)}),te=Te(H=>{ee(Y.setMonth(R??z,H))||(ne(H),j(!0),P&&P(H))});T.useEffect(()=>{ne(H=>L!==null&&H!==L?L:H)},[L]);const ce=Te((H,re)=>{switch(H.key){case"ArrowUp":te((12+re-3)%12),H.preventDefault();break;case"ArrowDown":te((12+re+3)%12),H.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),H.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),H.preventDefault();break}}),le=Te((H,re)=>{te(re)}),he=Te((H,re)=>{W===re&&j(!1)});return E.jsx(K$,Q({ref:n,className:Se(N.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":O},B,{children:xh(Y,R??z).map(H=>{const re=Y.getMonth(H),Z=Y.format(H,"monthShort"),fe=Y.format(H,"month"),pe=re===L,be=d||ee(H);return E.jsx(z$,{selected:pe,value:re,onClick:J,onKeyDown:ce,autoFocus:oe&&re===W,disabled:be,tabIndex:re===W&&!be?0:-1,onFocus:le,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:A,slotProps:F,children:Z},Z)})}))});process.env.NODE_ENV!=="production"&&(vb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function X$(e){return Me("MuiPickersYear",e)}const rl=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),Z$=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Q$=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},X$,o)},J$=ie("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),eV=ie("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${rl.disabled}`]:t.disabled},{[`&.${rl.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${rl.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${rl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),tV=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,slots:m,slotProps:v}=n,P=Ye(n,Z$),D=T.useRef(null),x=Q$(n);cn(()=>{o&&D.current?.focus()},[o]);const S=m?.yearButton??eV,C=pt({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:D,type:"button",role:"radio","aria-current":b,"aria-checked":l,onClick:O=>f(O,d),onKeyDown:O=>p(O,d),onFocus:O=>y(O,d),onBlur:O=>w(O,d)},ownerState:n,className:x.yearButton});return E.jsx(J$,Q({className:Se(x.root,r),ownerState:n},P,{children:E.jsx(S,Q({},C))}))});function nV(e){return Me("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const oV=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],rV=e=>{const{classes:t}=e;return Ie({root:["root"]},nV,t)};function sV(e,t){const n=Ft(),o=Ra(),r=Nt({props:e,name:t});return Q({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:to(n,r.minDate,o.minDate),maxDate:to(n,r.maxDate,o.maxDate)})}const iV=ie("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Fc,maxHeight:$F,boxSizing:"border-box",position:"relative"}),bb=T.forwardRef(function(t,n){const o=sV(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:m,shouldDisableYear:v,onYearFocus:P,hasFocus:D,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:O,gridLabelId:A,slots:F,slotProps:B}=o,R=Ye(o,oV),{value:$,handleValueChange:K,timezone:G}=Dh({name:"YearCalendar",timezone:O,value:a,defaultValue:l,onChange:b,valueManager:Lo}),q=Nc(G),Y=oo(),z=Ft(),ae=T.useMemo(()=>Lo.getInitialReferenceValue({value:$,utils:z,props:o,timezone:G,referenceDate:d,granularity:Ro.year}),[]),N=o,M=rV(N),L=T.useMemo(()=>z.getYear(q),[z,q]),W=T.useMemo(()=>$!=null?z.getYear($):null,[$,z]),[ne,oe]=T.useState(()=>W||z.getYear(ae)),[se,j]=fo({name:"YearCalendar",state:"hasFocus",controlled:D,default:r??!1}),ee=Te(ge=>{j(ge),x&&x(ge)}),J=T.useCallback(ge=>{if(p&&z.isBeforeYear(ge,q)||f&&z.isAfterYear(ge,q)||w&&z.isBeforeYear(ge,w)||y&&z.isAfterYear(ge,y))return!0;if(!v)return!1;const Re=z.startOfYear(ge);return v(Re)},[f,p,y,w,q,v,z]),te=Te((ge,Re)=>{if(m)return;const Ve=z.setYear($??ae,Re);K(Ve)}),ce=Te(ge=>{J(z.setYear($??ae,ge))||(oe(ge),ee(!0),P?.(ge))});T.useEffect(()=>{oe(ge=>W!==null&&ge!==W?W:ge)},[W]);const le=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,H=Te((ge,Re)=>{switch(ge.key){case"ArrowUp":ce(Re-le),ge.preventDefault();break;case"ArrowDown":ce(Re+le),ge.preventDefault();break;case"ArrowLeft":ce(Re-he),ge.preventDefault();break;case"ArrowRight":ce(Re+he),ge.preventDefault();break}}),re=Te((ge,Re)=>{ce(Re)}),Z=Te((ge,Re)=>{ne===Re&&ee(!1)}),fe=T.useRef(null),pe=ct(n,fe);T.useEffect(()=>{if(r||fe.current===null)return;const ge=fe.current.querySelector('[tabindex="0"]');if(!ge)return;const Re=ge.offsetHeight,Ve=ge.offsetTop,Ne=fe.current.clientHeight,Je=fe.current.scrollTop,Ee=Ve+Re;Re>Ne||Ve<Je||(fe.current.scrollTop=Ee-Ne/2-Re/2)},[r]);const be=z.getYearRange([w,y]);return S==="desc"&&be.reverse(),E.jsx(iV,Q({ref:pe,className:Se(M.root,i),ownerState:N,role:"radiogroup","aria-labelledby":A},R,{children:be.map(ge=>{const Re=z.getYear(ge),Ve=Re===W,Ne=u||J(ge);return E.jsx(tV,{selected:Ve,value:Re,onClick:te,onKeyDown:H,autoFocus:se&&Re===ne,disabled:Ne,tabIndex:Re===ne&&!Ne?0:-1,onFocus:re,onBlur:Z,"aria-current":L===Re?"date":void 0,yearsPerRow:C,slots:F,slotProps:B,children:z.format(ge,"year")},z.format(ge,"year"))})}))});process.env.NODE_ENV!=="production"&&(bb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const aV=e=>Me("MuiPickersCalendarHeader",e),lV=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function cV(e){return Me("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const dV=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],uV=["ownerState"],hV=["ownerState"],fV=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),pV=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Fm=ie(Gs,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),mV=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},cV,t)},gV=T.forwardRef(function(t,n){const o=oo(),r=Nt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:m,previousLabel:v,labelId:P}=r,D=Ye(r,dV),x=r,S=mV(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},O={isDisabled:w,isHidden:b,goTo:m,label:v},A=l?.previousIconButton??Fm,F=pt({elementType:A,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Q({},x,{hidden:O.isHidden}),className:Se(S.button,S.previousIconButton)}),B=l?.nextIconButton??Fm,R=pt({elementType:B,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Q({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??JF,K=pt({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),G=Ye(K,uV),q=l?.rightArrowIcon??eL,Y=pt({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),z=Ye(Y,hV);return E.jsxs(fV,Q({ref:n,className:Se(S.root,a),ownerState:x},D,{children:[E.jsx(A,Q({},F,{children:o?E.jsx(q,Q({},z)):E.jsx($,Q({},G))})),i?E.jsx(Cn,{variant:"subtitle1",component:"span",id:P,children:i}):E.jsx(pV,{className:S.spacer,ownerState:x}),E.jsx(B,Q({},R,{children:o?E.jsx($,Q({},G)):E.jsx(q,Q({},z))}))]}))});function yV(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function vV(e,{disablePast:t,minDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const bV=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],wV=["ownerState"],CV=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},aV,t)},SV=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),_V=ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Q({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),xV=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),RV=ie(Gs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${lV.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),TV=ie(QF,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),wb=T.forwardRef(function(t,n){const o=dr(),r=Ft(),i=Nt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:m,view:v,reduceAnimations:P,views:D,labelId:x,className:S,timezone:C,format:O=`${r.formats.month} ${r.formats.year}`}=i,A=Ye(i,bV),F=i,B=CV(i),R=a?.switchViewButton??RV,$=pt({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:B.switchViewButton}),K=a?.switchViewIcon??TV,G=pt({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:B.switchViewIcon}),q=Ye(G,wV),Y=()=>b(r.addMonths(d,1),"left"),z=()=>b(r.addMonths(d,-1),"right"),ae=yV(d,{disableFuture:f,maxDate:y,timezone:C}),N=vV(d,{disablePast:p,minDate:w,timezone:C}),M=()=>{if(!(D.length===1||!m||u))if(D.length===2)m(D.find(W=>W!==v)||D[0]);else{const W=D.indexOf(v)!==0?0:1;m(D[W])}};if(D.length===1&&D[0]==="year")return null;const L=r.formatByString(d,O);return E.jsxs(SV,Q({},A,{ownerState:F,className:Se(B.root,S),ref:n,children:[E.jsxs(_V,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:B.labelContainer,children:[E.jsx(fb,{reduceAnimations:P,transKey:L,children:E.jsx(xV,{id:x,ownerState:F,className:B.label,children:L})}),D.length>1&&!u&&E.jsx(R,Q({},$,{children:E.jsx(K,Q({},q))}))]}),E.jsx(Kr,{in:v==="day",children:E.jsx(gV,{slots:a,slotProps:l,onGoToPrevious:z,isPreviousDisabled:N,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(wb.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const EV=ie("div")({overflow:"hidden",width:Fc,maxHeight:Oh,display:"flex",flexDirection:"column",margin:"0 auto"}),kV=e=>Me("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const PV=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],DV=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},kV,t)};function OV(e,t){const n=Ft(),o=Ra(),r=Qv(),i=Nt({props:e,name:t});return Q({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??r,renderLoading:i.renderLoading??(()=>E.jsx("span",{children:"..."})),minDate:to(n,i.minDate,o.minDate),maxDate:to(n,i.maxDate,o.maxDate)})}const MV=ie(EV,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Oh}),IV=ie(fb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Cb=T.forwardRef(function(t,n){const o=Ft(),r=ar(),i=OV(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:m,reduceAnimations:v,shouldDisableDate:P,shouldDisableMonth:D,shouldDisableYear:x,view:S,views:C,openTo:O,className:A,disabled:F,readOnly:B,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:G,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:z,dayOfWeekFormatter:ae,slots:N,slotProps:M,loading:L,renderLoading:W,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:ee}=i,J=Ye(i,PV),{value:te,handleValueChange:ce,timezone:le}=Dh({name:"DateCalendar",timezone:ee,value:d,defaultValue:u,onChange:w,valueManager:Lo}),{view:he,setView:H,focusedView:re,setFocusedView:Z,goToNextView:fe,setValueAndGoToNextView:pe}=Jv({view:S,views:C,openTo:O,onChange:ce,onViewChange:l,autoFocus:a,focusedView:G,onFocusedViewChange:q}),{referenceDate:be,calendarState:ge,changeFocusedDay:Re,changeMonth:Ve,handleChangeMonth:Ne,isDateDisabled:Je,onMonthSwitchingAnimationEnd:Ee}=c$({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:m,minDate:R,maxDate:$,shouldDisableDate:P,disablePast:y,disableFuture:p,timezone:le}),ut=F&&te||R,Yt=F&&te||$,rt=`${r}-grid-label`,Ot=re!==null,Ut=N?.calendarHeader??wb,Lt=pt({elementType:Ut,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ge.currentMonth,onViewChange:H,onMonthChange:(at,Zt)=>Ne({newMonth:at,direction:Zt}),minDate:ut,maxDate:Yt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:le,labelId:rt},ownerState:i}),Ue=Te(at=>{const Zt=o.startOfMonth(at),mn=o.endOfMonth(at),Qt=Je(at)?Bi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,mn)?mn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),m?.(Zt)):(fe(),Ve(Zt)),Re(Qt,!0)}),Be=Te(at=>{const Zt=o.startOfYear(at),mn=o.endOfYear(at),Qt=Je(at)?Bi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,mn)?mn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),b?.(Qt)):(fe(),Ve(Zt)),Re(Qt,!0)}),rn=Te(at=>ce(at&&Ll(o,at,te??be),"finish",he));T.useEffect(()=>{te!=null&&o.isValid(te)&&Ve(te)},[te]);const un=i,Oe=DV(un),We={disablePast:y,disableFuture:p,maxDate:$,minDate:R},ht={disableHighlightToday:K,readOnly:B,disabled:F,timezone:le,gridLabelId:rt,slots:N,slotProps:M},nn=T.useRef(he);T.useEffect(()=>{nn.current!==he&&(re===nn.current&&Z(he,!0),nn.current=he)},[re,Z,he]);const Fn=T.useMemo(()=>[te],[te]);return E.jsxs(MV,Q({ref:n,className:Se(Oe.root,A),ownerState:un},J,{children:[E.jsx(Ut,Q({},Lt,{slots:N,slotProps:M})),E.jsx(IV,{reduceAnimations:v,className:Oe.viewTransitionContainer,transKey:he,ownerState:un,children:E.jsxs("div",{children:[he==="year"&&E.jsx(bb,Q({},We,ht,{value:te,onChange:Be,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("year",at),yearsOrder:oe,yearsPerRow:se,referenceDate:be})),he==="month"&&E.jsx(vb,Q({},We,ht,{hasFocus:Ot,className:A,value:te,onChange:Ue,shouldDisableMonth:D,onFocusedViewChange:at=>Z("month",at),monthsPerRow:j,referenceDate:be})),he==="day"&&E.jsx($$,Q({},ge,We,ht,{onMonthSwitchingAnimationEnd:Ee,onFocusedDayChange:Re,reduceAnimations:v,selectedDays:Fn,onSelectedDaysChange:rn,shouldDisableDate:P,shouldDisableMonth:D,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("day",at),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:z,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:L,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(Cb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Is=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:P,reduceAnimations:D,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:A,slots:F,slotProps:B,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:z,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:L,timezone:W})=>E.jsx(Cb,{view:e,onViewChange:t,views:n.filter(Cm),focusedView:o&&Cm(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:P,reduceAnimations:D,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:A,slots:F,slotProps:B,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:z,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:L,timezone:W}),Sb=T.forwardRef(function(t,n){const o=dr(),r=Ft(),i=Gv(t,"MuiDesktopDatePicker"),a=Q({day:Is,month:Is,year:Is},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Rh(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Q({openPickerIcon:tL,field:Lh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},rc(i.slotProps?.field,u),Xv(i),{ref:n}),toolbar:Q({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=ZF({props:l,valueManager:Lo,valueType:"date",getOpenDialogAriaText:Yv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:Ta});return d()});Sb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const NV=ie(wy)({[`& .${Li.container}`]:{outline:0},[`& .${Li.paper}`]:{outline:0,minWidth:Fc}}),AV=ie(Sy)({"&:first-of-type":{padding:0}});function FV(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??NV,l=r?.mobileTransition??Kr;return E.jsx(a,Q({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:E.jsx(AV,{children:t})}))}const LV=["props","getOpenDialogAriaText"],$V=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,LV);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:P,disabled:D,localeText:x}=t,S=T.useRef(null),C=ar(),O=i?.toolbar?.hidden??!1,{open:A,actions:F,layoutProps:B,renderCurrentView:R,fieldProps:$,contextValue:K}=eb(Q({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),G=r.field,q=pt({elementType:G,externalSlotProps:i?.field,additionalProps:Q({},$,O&&{id:C},!(D||P)&&{onClick:F.onOpen,onKeyDown:pF(F.onOpen)},{readOnly:P??!0,disabled:D,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Q({},q.inputProps,{"aria-label":n($.value)});const Y=Q({textField:r.textField},q.slots),z=r.layout??Mh;let ae=C;O&&(m?ae=`${C}-label`:ae=void 0);const N=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:C}),mobilePaper:Q({"aria-labelledby":ae},i?.mobilePaper)}),M=ct(S,q.unstableFieldRef);return{renderPicker:()=>E.jsxs(rb,{contextValue:K,localeText:x,children:[E.jsx(G,Q({},q,{slots:Y,slotProps:N,unstableFieldRef:M})),E.jsx(FV,Q({},F,{open:A,slots:r,slotProps:N,children:E.jsx(z,Q({},B,N?.layout,{slots:r,slotProps:N,children:R()}))}))]})}},_b=T.forwardRef(function(t,n){const o=dr(),r=Ft(),i=Gv(t,"MuiMobileDatePicker"),a=Q({day:Is,month:Is,year:Is},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Rh(r,i,!1),slots:Q({field:Lh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},rc(i.slotProps?.field,u),Xv(i),{ref:n}),toolbar:Q({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=$V({props:l,valueManager:Lo,valueType:"date",getOpenDialogAriaText:Yv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:Ta});return d()});_b.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const VV=["desktopModeMediaQuery"],Vl=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=mF}=o,i=Ye(o,VV);return Mg(r,{defaultMatches:!0})?E.jsx(Sb,Q({ref:n},i)):E.jsx(_b,Q({ref:n},i))});process.env.NODE_ENV!=="production"&&(Vl.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const vu=ie(An)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),jV=({setValue:e,value:t})=>{function n(r){const i=r?.format(Ur.db)||"",a={...t,1:i===mu?Ws[1]:i};e(a),ir(a)}function o(r){const i=r?.format(Ur.db)||"",a={...t,2:i===mu?Ws[2]:i};e(a),ir(a)}return E.jsxs(Ic,{dateAdapter:$v,children:[E.jsx(vu,{children:E.jsx(Vl,{label:co.from,onChange:n,...gu(t[1])})}),E.jsx(vu,{children:E.jsx(Vl,{label:co.to,onChange:o,...gu(t[2])})})]})},Od=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Ur.db)||"",a={...n,1:i===mu?Ws[1]:i};t(a),ir(a)}return E.jsx(Ic,{dateAdapter:$v,children:E.jsx(vu,{children:E.jsx(Vl,{label:e,onChange:o,...gu(n[1])})})})},Lm={label:"",options:[]};function BV(){const{columnId:e,table:t}=wn,n=t?.grid;if(!n)return Lm;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return Lm;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function WV(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const HV=ie(pc)({padding:0}),$m={Checkbox:HV},zV=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=BV(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),ir(d)};return E.jsxs(mc,{size:"small",children:[E.jsx(gc,{id:"column-filter-multiple-select-label",children:o}),E.jsxs(ba,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:E.jsx(js,{label:o}),renderValue:a=>a.join(", "),children:[E.jsxs(Ol,{value:"All",children:[E.jsx($m.Checkbox,{checked:n.indexOf("All")>-1}),E.jsx(ou,{primary:"All"})]},0),r.sort(WV).map(a=>E.jsxs(Ol,{value:a,children:[E.jsx($m.Checkbox,{checked:n.indexOf(a)>-1}),E.jsx(ou,{primary:a})]},a))]})]})},YV=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),ir(i)}function o(r){const i={...t,2:r.target.value};e(i),ir(i)}return E.jsxs(Fe.Fragment,{children:[E.jsx(Bs,{label:co.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),E.jsx(Bs,{label:co.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},Md=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),ir(i)}return E.jsx(Bs,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},sl=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),ir(r)}return E.jsx(Bs,{label:co.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},UV=({filterId:e,setValue:t,value:n})=>E.jsxs(Fe.Fragment,{children:[e===je.Boolean&&E.jsx(CA,{setValue:t,value:n}),e===je.TextEqual&&E.jsx(sl,{setValue:t,value:n}),e===je.TextNotEqual&&E.jsx(sl,{setValue:t,value:n}),e===je.TextContain&&E.jsx(sl,{setValue:t,value:n}),e===je.TextNotContain&&E.jsx(sl,{setValue:t,value:n}),e===je.MultipleSelect&&E.jsx(zV,{setValue:t,value:n}),e===je.NumberEqual&&E.jsx(Md,{label:co.filter,setValue:t,value:n}),e===je.NumberFrom&&E.jsx(Md,{label:co.from,setValue:t,value:n}),e===je.NumberTo&&E.jsx(Md,{label:co.to,setValue:t,value:n}),e===je.NumberBetween&&E.jsx(YV,{setValue:t,value:n}),e===je.DateEqual&&E.jsx(Od,{label:co.filter,setValue:t,value:n}),e===je.DateFrom&&E.jsx(Od,{label:co.from,setValue:t,value:n}),e===je.DateTo&&E.jsx(Od,{label:co.to,setValue:t,value:n}),e===je.DateBetween&&E.jsx(jV,{setValue:t,value:n})]}),qV={id:je.DateBetween,name:"Between"},GV={id:je.DateEqual,name:"Equal"},KV={id:je.DateFrom,name:"From"},XV={id:je.DateTo,name:"To"},ZV={id:je.NumberBetween,name:"Between"},QV={id:je.NumberEqual,name:"Equal"},JV={id:je.NumberFrom,name:"From"},ej={id:je.NumberTo,name:"To"},tj={id:je.TextContain,name:"Contains"},nj={id:je.TextEqual,name:"Equal"},oj={id:je.TextNotContain,name:"Does not contain"},rj={id:je.TextNotEqual,name:"Not equal"},Vm=[QV,JV,ej,ZV],sj={[fn.Boolean]:[],[fn.Date]:[GV,KV,XV,qV],[fn.MultipleSelect]:[],[fn.Number]:Vm,[fn.NumberFormatted]:Vm,[fn.Text]:[tj,oj,nj,rj]},ij=({filterId:e,setFilterId:t})=>{const n=Fe.useRef(null),o=sj[wn.group],r=o.some(({id:a})=>a===e)?e:o[0]?.id;function i(a){const{columnId:l,table:d}=wn;if(!l||!d)return;const u=d.filter.args,f=a.target.value;u.columnFilters&&(d.filter.args={...u,columnFilters:{...u.columnFilters,[l]:{...u.columnFilters[l],filterId:f}}},t(f))}return r?E.jsx(ba,{value:r,onChange:i,ref:n,size:"small",MenuProps:{container:()=>n.current},children:o.map(({id:a,name:l})=>E.jsx(Ol,{value:a,children:l},a))}):null},aj=ie(An)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),lj={Wrapper:aj},cj=({tableId:e})=>{const[t,n]=Fe.useState(Ws),[o,r]=Fe.useState(je.TextContain),[i,a]=Fe.useState(!1);return mA(a,e),pA(i,r,n),i?E.jsxs(Fe.Fragment,{children:[E.jsx(Pc,{setIsOpened:a}),E.jsx(Dc,{id:Lv,children:E.jsxs(lj.Wrapper,{children:[E.jsx(ij,{filterId:o,setFilterId:r}),E.jsx(UV,{filterId:o,setValue:n,value:t}),E.jsx(vA,{setIsOpened:a,setValue:n,value:t})]})})]}):null},xb="context-menu";function dj(e,t){Fe.useEffect(()=>{function n(){const{table:o,x:r,y:i}=ln;o?.id===t&&(e(!0),setTimeout(()=>{const a=document.getElementById(xb);a&&_h(a,r,i)},0))}return ln.subscribe(n),()=>{ln.unsubscribe(n)}},[t])}const uj=ie("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),hj=ie("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),fj=ie("span")({backgroundColor:"#1E456F"}),dn={Ul:uj,Li:hj,Icon:fj},pj=({setIsOpened:e})=>{const t=()=>{const{clientId:n,clientName:o,table:r}=ln,i=r?.grid;if(!r||!i){e(!1);return}r.downloadManager.download(r,n,o),e(!1)};return E.jsxs(dn.Li,{onClick:t,children:[E.jsx(dn.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},mj=({setIsOpened:e})=>{const t=ln.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-link"}),"Group"]})};function gj(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const yj=({setIsOpened:e})=>{const t=ln.table;function n(){if(!t){e(!1);return}const o=t.filter.args;delete o.columnFilters,t.filter.args=o,Fo.highlightAllColumns(o,t.id),e(!1)}return gj(t)?E.jsxs(Fe.Fragment,{children:[E.jsx(Dl,{}),E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},vj=({setIsOpened:e})=>{const t=ln.table,o=t?.grid?.getSelectedRows();function r(){t&&(e(!1),jn.table=t,jn.open=!0,jn.x=ln.x,jn.y=ln.y)}return!t?.summaryColumnIds.length||Number(o?.length)<2?null:E.jsxs(dn.Li,{onClick:r,children:[E.jsx(dn.Icon,{className:"sgi sgi-checkbox-multiple-outline"}),"Summary"]})},bj=({setIsOpened:e})=>{const t=ln.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},wj=({setIsOpened:e})=>{const t=ln.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},Cj=({setIsOpened:e})=>{function t(){const n=ln.table,o=n?.grid;if(!o||!n){e(!1);return}window.navigator.clipboard.writeText(n.downloadManager.createCSV(n)).then(()=>{}).catch(()=>{}),o.getSelectionModel()&&o.setSelectedRows([]),e(!1)}return E.jsxs(dn.Li,{onClick:t,children:[E.jsx(dn.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},Sj=({setIsOpened:e})=>{const t=ln.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},_j=({setIsOpened:e})=>{function t(){const{clientId:n,clientName:o,table:r}=ln;r?.printer.print(r,n,o),e(!1)}return E.jsxs(dn.Li,{onClick:t,children:[E.jsx(dn.Icon,{className:"sgi sgi-printer"}),"Print"]})},xj=({tableId:e})=>{const[t,n]=Fe.useState(!1);return dj(n,e),t?E.jsxs(Fe.Fragment,{children:[E.jsx(Pc,{setIsOpened:n}),E.jsx(Dc,{id:xb,children:E.jsxs(dn.Ul,{children:[E.jsx(_j,{setIsOpened:n}),E.jsx(Cj,{setIsOpened:n}),E.jsx(pj,{setIsOpened:n}),E.jsx(yj,{setIsOpened:n}),E.jsx(bj,{setIsOpened:n}),E.jsx(mj,{setIsOpened:n}),E.jsx(Sj,{setIsOpened:n}),E.jsx(wj,{setIsOpened:n}),E.jsx(vj,{setIsOpened:n})]})})]}):null},Rb="header-context-menu";function Rj(e,t){Fe.useEffect(()=>{function n(){const{table:o,x:r,y:i}=Po;o?.id===t&&(e(!0),setTimeout(()=>{const a=document.getElementById(Rb);a&&_h(a,r,i)},0))}return Po.subscribe(n),()=>{Po.unsubscribe(n)}},[t])}function $h(e){const t=Po.table;if(!t?.columnPicker)return;t.columnPicker.hiddenColumnIds=[...e];const n=t.grid;if(!n)return;n.setColumns(t.columnPicker.getInitialColumns().filter(({id:r})=>!e.includes(r)));const o=t.filter.args;t.filter.register(n,t.id),Fo.highlightAllColumns(o,t.id),t.totalCalculator?.calculate(n)}function Tb(e){return e?.columnPicker?e.columnPicker.getInitialColumns().filter(({id:t})=>t!=="_checkbox_selector"&&t!=="isEdited"):[]}const Tj=({setHidden:e})=>{function t(){e([]),$h([])}return E.jsx(ko,{onClick:t,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Check all"})},Ej=({setHidden:e})=>{function t(){const n=Po.table;if(!n)return;const r=Tb(n).map(({id:i})=>i);e(r),$h(r)}return E.jsx(ko,{onClick:t,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Uncheck all"})},kj=ie(ko)({display:"flex",alignItems:"center",justifyContent:"flex-start",columnGap:"0.5em",textTransform:"none",color:"#1E456F",padding:"0"}),Pj=ie(pc)({padding:0}),jm={Checkbox:Pj,Button:kj},Dj=({hidden:e,columnId:t,columnName:n,setHidden:o})=>{function r(){const i=e.indexOf(t),a=[...e];~i?a.splice(i,1):a.push(t),o(a),$h(a)}return E.jsxs(jm.Button,{onClick:r,children:[E.jsx(jm.Checkbox,{checked:!e.includes(t),size:"small"}),E.jsx(An,{children:n})]})},Oj=ie(An)({color:"#1e456f",marginBottom:"0.6em",fontSize:"1rem"}),Mj={Wrapper:Oj},Ij=()=>E.jsx(Mj.Wrapper,{className:"header-context-menu-header",children:"Columns"}),Nj=ie(An)({columnGap:"0.5em",display:"flex",justifyContent:"flex-end",marginTop:"0.5em"}),Aj=ie(An)({maxHeight:"35em",overflowY:"auto"}),Bm={ButtonsGroup:Nj,ItemsGroup:Aj},Fj=({tableId:e})=>{const[t,n]=Fe.useState(Es.hiddenColumns.get(e)),[o,r]=Fe.useState(!1);if(Rj(r,e),!o)return null;const i=Po.table;return i?.columnPicker?E.jsxs(Fe.Fragment,{children:[E.jsx(Pc,{setIsOpened:r}),E.jsxs(Dc,{id:Rb,children:[E.jsx(Ij,{}),E.jsx(Bm.ItemsGroup,{children:Tb(i).map(({id:a,name:l})=>E.jsx(Fe.Fragment,{children:E.jsx(Dj,{columnId:a,columnName:l,hidden:t,setHidden:n})},a))}),E.jsxs(Bm.ButtonsGroup,{className:"header-context-menu-footer",children:[E.jsx(Tj,{setHidden:n}),E.jsx(Ej,{setHidden:n})]})]})]}):null};var Lj=Object.defineProperty,$j=(e,t,n)=>t in e?Lj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t,n)=>$j(e,typeof t!="symbol"?t+"":t,n),la=class{constructor(e,t){this.event=e,this.args=t,k(this,"_isPropagationStopped",!1),k(this,"_isImmediatePropagationStopped",!1),k(this,"_isDefaultPrevented",!1),k(this,"returnValues",[]),k(this,"returnValue"),k(this,"_eventTarget"),k(this,"nativeEvent"),k(this,"arguments_"),k(this,"altKey"),k(this,"ctrlKey"),k(this,"metaKey"),k(this,"shiftKey"),k(this,"key"),k(this,"keyCode"),k(this,"clientX"),k(this,"clientY"),k(this,"offsetX"),k(this,"offsetY"),k(this,"pageX"),k(this,"pageY"),k(this,"bubbles"),k(this,"target"),k(this,"type"),k(this,"which"),k(this,"x"),k(this,"y"),this.nativeEvent=e,this.arguments_=t,e&&["altKey","ctrlKey","metaKey","shiftKey","key","keyCode","clientX","clientY","offsetX","offsetY","pageX","pageY","bubbles","target","type","which","x","y"].forEach(n=>this[n]=e[n]),this._eventTarget=this.nativeEvent?this.nativeEvent.target:void 0}get defaultPrevented(){return this._isDefaultPrevented}stopPropagation(){this._isPropagationStopped=!0,this.nativeEvent?.stopPropagation()}isPropagationStopped(){return this._isPropagationStopped}stopImmediatePropagation(){this._isImmediatePropagationStopped=!0,this.nativeEvent&&this.nativeEvent.stopImmediatePropagation()}isImmediatePropagationStopped(){return this._isImmediatePropagationStopped}getNativeEvent(){return this.nativeEvent}preventDefault(){this.nativeEvent&&this.nativeEvent.preventDefault(),this._isDefaultPrevented=!0}isDefaultPrevented(){return this.nativeEvent?this.nativeEvent.defaultPrevented:this._isDefaultPrevented}addReturnValue(e){this.returnValues.push(e),this.returnValue===void 0&&e!==void 0&&(this.returnValue=e)}getReturnValue(){return this.returnValue}getArguments(){return this.arguments_}},Jr=class{constructor(e,t){this.eventName=e,this.pubSub=t,k(this,"_handlers",[]),k(this,"_pubSubService"),this._pubSubService=t}get subscriberCount(){return this._handlers.length}subscribe(e){this._handlers.push(e)}unsubscribe(e){for(let t=this._handlers.length-1;t>=0;t--)this._handlers[t]===e&&this._handlers.splice(t,1)}notify(e,t,n){let o=t instanceof la?t:new la(t,e);n=n||this;for(let r=0;r<this._handlers.length&&!(o.isPropagationStopped()||o.isImmediatePropagationStopped());r++){let i=this._handlers[r].call(n,o,e);o.addReturnValue(i)}if(typeof this._pubSubService?.publish=="function"&&this.eventName){let r=this._pubSubService.publish(this.eventName,{args:e,eventData:o});o.addReturnValue(r)}return o}setPubSubService(e){this._pubSubService=e}},Ea=class{constructor(){k(this,"handlers",[])}subscribe(e,t){return this.handlers.push({event:e,handler:t}),e.subscribe(t),this}unsubscribe(e,t){let n=this.handlers.length;for(;n--;)if(this.handlers[n].event===e&&this.handlers[n].handler===t){this.handlers.splice(n,1),e.unsubscribe(t);return}return this}unsubscribeAll(){let e=this.handlers.length;for(;e--;)this.handlers[e].event.unsubscribe(this.handlers[e].handler);return this.handlers=[],this}},Vh=class{constructor(e,t,n,o){k(this,"fromRow"),k(this,"fromCell"),k(this,"toCell"),k(this,"toRow"),n===void 0&&o===void 0&&(n=e,o=t),this.fromRow=Math.min(e,n),this.fromCell=Math.min(t,o),this.toCell=Math.max(t,o),this.toRow=Math.max(e,n)}isSingleRow(){return this.fromRow===this.toRow}isSingleCell(){return this.fromRow===this.toRow&&this.fromCell===this.toCell}contains(e,t){return e>=this.fromRow&&e<=this.toRow&&t>=this.fromCell&&t<=this.toCell}toString(){return this.isSingleCell()?`(${this.fromRow}:${this.fromCell})`:`(${this.fromRow}:${this.fromCell} - ${this.toRow}:${this.toCell})`}},Eb=class{constructor(){k(this,"__nonDataRow",!0)}},kb=class extends Eb{constructor(){super(),k(this,"__group",!0),k(this,"level",0),k(this,"count",0),k(this,"value",null),k(this,"title",null),k(this,"collapsed",!1),k(this,"selectChecked",!1),k(this,"totals",null),k(this,"rows",[]),k(this,"groups",null),k(this,"groupingKey",null)}equals(e){return this.value===e.value&&this.count===e.count&&this.collapsed===e.collapsed&&this.title===e.title}},Vj=class extends Eb{constructor(){super(),k(this,"__groupTotals",!0),k(this,"group",null),k(this,"initialized",!1)}},jj=class{constructor(){k(this,"activeEditController",null)}isActive(e){return e?this.activeEditController===e:this.activeEditController!==null}activate(e){if(e!==this.activeEditController){if(this.activeEditController!==null)throw new Error("Slick.EditorLock.activate: an editController is still active, can't activate another editController");if(!e.commitCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!e.cancelCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .cancelCurrentEdit()");this.activeEditController=e}}deactivate(e){if(this.activeEditController){if(this.activeEditController!==e)throw new Error("Slick.EditorLock.deactivate: specified editController is not the currently active one");this.activeEditController=null}}commitCurrentEdit(){return this.activeEditController?this.activeEditController.commitCurrentEdit():!0}cancelCurrentEdit(){return this.activeEditController?this.activeEditController.cancelCurrentEdit():!0}},Vc=class{constructor(){k(this,"_boundedEvents",[])}getBoundedEvents(){return this._boundedEvents}destroy(){this.unbindAll()}bind(e,t,n,o,r=""){e&&(e.addEventListener(t,n,o),this._boundedEvents.push({element:e,eventName:t,listener:n,groupName:r}))}unbind(e,t,n){e?.removeEventListener&&e.removeEventListener(t,n)}unbindByEventName(e,t){let n=this._boundedEvents.find(o=>o.element===e&&o.eventName===t);n&&this.unbind(n.element,n.eventName,n.listener)}unbindAll(e){if(e){let t=Array.isArray(e)?e:[e];for(let n=this._boundedEvents.length-1;n>=0;--n){let o=this._boundedEvents[n];if(t.some(r=>r===o.groupName)){let{element:r,eventName:i,listener:a}=o;this.unbind(r,i,a),this._boundedEvents.splice(n,1)}}}else for(;this._boundedEvents.length>0;){let t=this._boundedEvents.pop(),{element:n,eventName:o,listener:r}=t;this.unbind(n,o,r)}}},Gn=class Ht{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||Ht.toString.call(t)!=="[object Object]")return!1;let n=Ht.getProto(t);if(!n)return!0;let o=Ht.hasOwn.call(n,"constructor")&&n.constructor;return typeof o=="function"&&Ht.fnToString.call(o)===Ht.ObjectFunctionString}static calculateAvailableSpace(t){let n=0,o=0,r=0,i=0,a=window.innerHeight||0,l=window.innerWidth||0,d=Ht.windowScrollPosition(),u=d.top,f=d.left,p=Ht.offset(t);if(p){let y=p.top||0,w=p.left||0;o=y-u,n=a-(y-u),r=w-f,i=l-(w-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,l,d=t[0],u=1,f=!1,p=t.length;for(typeof d=="boolean"?(f=d,d=t[u]||{},u++):d=d||{},typeof d!="object"&&!Ht.isFunction(d)&&(d={}),u===p&&(d=this,u--);u<p;u++)if(Ht.isDefined(n=t[u]))for(o in n)i=n[o],!(o==="__proto__"||d===i)&&(f&&i&&(Ht.isPlainObject(i)||(a=Array.isArray(i)))?(r=d[o],a&&!Array.isArray(r)?l=[]:!a&&!Ht.isPlainObject(r)?l={}:l=r,a=!1,d[o]=Ht.extend(f,l,i)):i!==void 0&&(d[o]=i));return d}static createDomElement(t,n,o){let r=document.createElement(t);return n&&Object.keys(n).forEach(i=>{i==="innerHTML"&&console.warn(`[SlickGrid] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${t}', { innerHTML: 'some html'})", it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);let a=n[i];typeof a=="object"?Object.assign(r[i],a):r[i]=n[i]}),o?.appendChild&&o.appendChild(r),r}static getHtmlStringOutput(t,n="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,o=>o[n]).join("")||t.textContent||"":t instanceof HTMLElement?t[n]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(n=>n)}static innerSize(t,n){let o=0;if(t){let r=n==="height"?"clientHeight":"clientWidth",i=n==="height"?["top","bottom"]:["left","right"];o=t[r];for(let a of i){let l=parseFloat(Ht.getElementProp(t,`padding-${a}`)||"")||0;o-=l}}return o}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,n){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(n):null}static getFunctionDetails(t,n=!0){let o=!1,r=i=>{let a=i.toString();if(o=a.includes("async "),a.replaceAll(" ","").includes("=>({")){let u=a.match(/(({.*}))/g)||[];return u.length>=1?`return ${u[0].trimStart()}`:a}let l=!a.includes("{")&&a.includes("=>"),d=a.substring(a.indexOf("{")+1||a.indexOf("=>")+2,a.includes("}")?a.lastIndexOf("}"):a.length);return n&&l&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(i=>{let a=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,l=/([^\s,]+)/g,d=i.toString().replace(a,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(l)??[]})(t),body:r(t),isAsync:o}}static insertAfterElement(t,n){t.parentNode?.insertBefore(n,t.nextSibling)}static isEmptyObject(t){return t==null?!0:Object.entries(t).length===0}static noop(){}static offset(t){if(!t||!t.getBoundingClientRect)return;let n=t.getBoundingClientRect(),o=document.documentElement;return{top:n.top+window.pageYOffset-o.clientTop,left:n.left+window.pageXOffset-o.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,n){if(!(!t||!t.getBoundingClientRect)){if(n===void 0)return t.getBoundingClientRect().width;Ht.setStyleSize(t,"width",n)}}static height(t,n){if(t){if(n===void 0)return t.getBoundingClientRect().height;Ht.setStyleSize(t,"height",n)}}static setStyleSize(t,n,o){typeof o=="function"?o=o():typeof o=="string"?t.style[n]=o:t.style[n]=o+"px"}static contains(t,n){return!t||!n?!1:!Ht.parents(n).every(o=>t!==o)}static isHidden(t){return t.offsetWidth===0&&t.offsetHeight===0}static parents(t,n){let o=[],r=n===":visible",i=n===":hidden";for(;(t=t.parentNode)&&t!==document&&!(!t||!t.parentNode);)i?Ht.isHidden(t)&&o.push(t):r?Ht.isHidden(t)||o.push(t):(!n||t.matches(n))&&o.push(t);return o}static toFloat(t){let n=parseFloat(t);return isNaN(n)?0:n}static show(t,n=""){Array.isArray(t)?t.forEach(o=>o.style.display=n):t.style.display=n}static hide(t){Array.isArray(t)?t.forEach(n=>n.style.display="none"):t.style.display="none"}static slideUp(t,n){return Ht.slideAnimation(t,"slideUp",n)}static slideDown(t,n){return Ht.slideAnimation(t,"slideDown",n)}static slideAnimation(t,n,o){if(window.jQuery!==void 0){window.jQuery(t)[n]("fast",o);return}n==="slideUp"?Ht.hide(t):Ht.show(t),o()}static applyDefaults(t,n){typeof n=="object"&&Object.keys(n).forEach(o=>{n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n[o])})}static addSlickEventPubSubWhenDefined(t,n){if(t)for(let o in n)n[o]instanceof Jr&&typeof n[o].setPubSubService=="function"&&n[o].setPubSubService(t)}};k(Gn,"getProto",Object.getPrototypeOf),k(Gn,"class2type",{}),k(Gn,"toString",Gn.class2type.toString),k(Gn,"hasOwn",Gn.class2type.hasOwnProperty),k(Gn,"fnToString",Gn.hasOwn.toString),k(Gn,"ObjectFunctionString",Gn.fnToString.call(Object)),k(Gn,"storage",{_storage:new WeakMap,put:function(e,t,n){this._storage.has(e)||this._storage.set(e,new Map),this._storage.get(e).set(t,n)},get:function(e,t){let n=this._storage.get(e);return n?n.get(t):null},remove:function(e,t){let n=this._storage.get(e).delete(t);return this._storage.get(e).size!==0&&this._storage.delete(e),n}});var yo=Gn,Pb=new jj,Bj={Event:Jr,EventHandler:Ea,GlobalEditorLock:Pb,keyCode:{SPACE:8,DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38},preClickClassName:"slick-edit-preclick",GridAutosizeColsMode:{None:"NOA",LegacyOff:"LOF",LegacyForceFit:"LFF",IgnoreViewport:"IGV",FitColsToViewport:"FCV",FitViewportToCols:"FVC"},ColAutosizeMode:{Locked:"LCK",Guide:"GUI",ContentExpandOnly:"CXO",ContentIntelligent:"CTI"},RowSelectionMode:{FirstRow:"FS1",FirstNRows:"FSN",AllRows:"ALL",LastRow:"LS1"},ValueFilterMode:{None:"NONE",DeDuplicate:"DEDP",GetGreatestAndSub:"GR8T",GetLongestTextAndSub:"LNSB",GetLongestText:"LNSC"},WidthEvalMode:{Auto:"AUTO",TextOnly:"CANV"}},{Event:Wj,EventHandler:Hj,GlobalEditorLock:zj,keyCode:Mo,preClickClassName:Yj,GridAutosizeColsMode:Db,ColAutosizeMode:Uj,RowSelectionMode:qj,ValueFilterMode:Gj,WidthEvalMode:Kj}=Bj,Xj=yo,Ob=class{constructor(e,t){this.grid=e,k(this,"pluginName","CellRangeDecorator"),k(this,"_options"),k(this,"_elem"),k(this,"_defaults",{selectionCssClass:"slick-range-decorator",selectionCss:{zIndex:"9999",border:"2px dashed red"},offset:{top:-1,left:-1,height:-2,width:-2}}),this._options=Xj.extend(!0,{},this._defaults,t)}destroy(){this.hide()}init(){}hide(){this._elem?.remove(),this._elem=null}show(e){if(!this._elem){this._elem=document.createElement("div"),this._elem.className=this._options.selectionCssClass,Object.keys(this._options.selectionCss).forEach(r=>{this._elem.style[r]=this._options.selectionCss[r]}),this._elem.style.position="absolute";let o=this.grid.getActiveCanvasNode();o&&o.appendChild(this._elem)}let t=this.grid.getCellNodeBox(e.fromRow,e.fromCell),n=this.grid.getCellNodeBox(e.toRow,e.toCell);return t&&n&&this._options?.offset&&(this._elem.style.top=`${t.top+this._options.offset.top}px`,this._elem.style.left=`${t.left+this._options.offset.left}px`,this._elem.style.height=`${n.bottom-t.top+this._options.offset.height}px`,this._elem.style.width=`${n.right-t.left+this._options.offset.width}px`),this._elem}},Zj=yo;function jh(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,l,d,u,f,p,y;t||(t=document.body);let w={dragSource:t,dragHandle:null};function b(){t&&(t.addEventListener("mousedown",D),t.addEventListener("touchstart",D))}function m(C,O,A){if(typeof C=="function")return C(O,A)}function v(){t&&(t.removeEventListener("mousedown",D),t.removeEventListener("touchstart",D))}function P(C){let O=!1;return a&&a.forEach(A=>{C[A]&&(O=!0)}),O}function D(C){if(!P(C)){l=C.target;let O=C?.touches?.[0]??C,{target:A}=O;if(!e.allowDragFrom||e.allowDragFrom&&l.matches(e.allowDragFrom)||e.allowDragFromClosest&&l.closest(e.allowDragFromClosest)){w.dragHandle=l;let F=Zj.windowScrollPosition();d=F.left+O.clientX,u=F.top+O.clientY,f=O.clientX-O.clientX,p=O.clientY-O.clientY,w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),m(n,C,w)!==!1&&(document.body.addEventListener("mousemove",x),document.body.addEventListener("touchmove",x),document.body.addEventListener("mouseup",S),document.body.addEventListener("touchend",S),document.body.addEventListener("touchcancel",S))}}}function x(C){if(!P(C)){let O=C?.touches?.[0]??C;f=O.clientX-d,p=O.clientY-u;let{target:A}=O;y||(w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),m(o,C,w),y=!0),w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),m(r,C,w)}}function S(C){if(document.body.removeEventListener("mousemove",x),document.body.removeEventListener("touchmove",x),document.body.removeEventListener("mouseup",S),document.body.removeEventListener("touchend",S),document.body.removeEventListener("touchcancel",S),y){let{target:O}=C;w=Object.assign(w,{target:O}),m(i,C,w),y=!1}}return b(),{destroy:v}}function Qj(e){let{element:t,onMouseWheel:n}=e;function o(){t.removeEventListener("wheel",i),t.removeEventListener("mousewheel",i)}function r(){t.addEventListener("wheel",i),t.addEventListener("mousewheel",i)}function i(a){let l=a||window.event,d=0,u=0,f=0;l.wheelDelta&&(d=l.wheelDelta/120),l.detail&&(d=-l.detail/3),f=d,l.axis!==void 0&&l.axis===l.HORIZONTAL_AXIS&&(f=0,u=-1*d),l.wheelDeltaY!==void 0&&(f=l.wheelDeltaY/120),l.wheelDeltaX!==void 0&&(u=-1*l.wheelDeltaX/120),typeof n=="function"&&n(a,d,u,f)}return r(),{destroy:o}}function Jj(e){let{resizeableElement:t,resizeableHandleElement:n,onResizeStart:o,onResize:r,onResizeEnd:i}=e;if(!n||typeof n.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function a(){n.addEventListener("mousedown",u),n.addEventListener("touchstart",u)}function l(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",u),n.removeEventListener("touchstart",u))}function d(y,w){if(typeof y=="function")return y(w,{resizeableElement:t,resizeableHandleElement:n})}function u(y){y.preventDefault();let w=y.touches?y.changedTouches[0]:y;d(o,w)!==!1&&(document.body.addEventListener("mousemove",f),document.body.addEventListener("mouseup",p),document.body.addEventListener("touchmove",f),document.body.addEventListener("touchend",p))}function f(y){y.preventDefault&&y.type!=="touchmove"&&y.preventDefault();let w=y.touches?y.changedTouches[0]:y;typeof r=="function"&&r(w,{resizeableElement:t,resizeableHandleElement:n})}function p(y){let w=y.touches?y.changedTouches[0]:y;d(i,w),document.body.removeEventListener("mousemove",f),document.body.removeEventListener("mouseup",p),document.body.removeEventListener("touchmove",f),document.body.removeEventListener("touchend",p)}return a(),{destroy:l}}var Id=Jr,eB=Ea,Nd=Vh,tB=jh,nB=Ob,Si=yo,oB=class{constructor(e){k(this,"pluginName","CellRangeSelector"),k(this,"onBeforeCellRangeSelected",new Id("onBeforeCellRangeSelected")),k(this,"onCellRangeSelected",new Id("onCellRangeSelected")),k(this,"onCellRangeSelecting",new Id("onCellRangeSelecting")),k(this,"_grid"),k(this,"_currentlySelectedRange",null),k(this,"_canvas",null),k(this,"_decorator"),k(this,"_gridOptions"),k(this,"_activeCanvas"),k(this,"_dragging",!1),k(this,"_handler",new eB),k(this,"_options"),k(this,"_defaults",{autoScroll:!0,minIntervalToShowNextCell:30,maxIntervalToShowNextCell:600,accelerateInterval:5,selectionCss:{border:"2px dashed blue"}}),k(this,"_rowOffset",0),k(this,"_columnOffset",0),k(this,"_isRightCanvas",!1),k(this,"_isBottomCanvas",!1),k(this,"_activeViewport"),k(this,"_autoScrollTimerId"),k(this,"_draggingMouseOffset"),k(this,"_moveDistanceForOneCell"),k(this,"_xDelayForNextCell",0),k(this,"_yDelayForNextCell",0),k(this,"_viewportHeight",0),k(this,"_viewportWidth",0),k(this,"_isRowMoveRegistered",!1),k(this,"_scrollLeft",0),k(this,"_scrollTop",0),this._options=Si.extend(!0,{},this._defaults,e)}init(e){if(tB===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');this._decorator=this._options.cellDecorator||new nB(e,this._options),this._grid=e,Si.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._canvas=this._grid.getCanvasNode(),this._gridOptions=this._grid.getOptions(),this._handler.subscribe(this._grid.onScroll,this.handleScroll.bind(this)).subscribe(this._grid.onDragInit,this.handleDragInit.bind(this)).subscribe(this._grid.onDragStart,this.handleDragStart.bind(this)).subscribe(this._grid.onDrag,this.handleDrag.bind(this)).subscribe(this._grid.onDragEnd,this.handleDragEnd.bind(this))}destroy(){this._handler.unsubscribeAll(),this._activeCanvas=null,this._activeViewport=null,this._canvas=null,this._decorator?.destroy()}getCellDecorator(){return this._decorator}handleScroll(e,t){this._scrollTop=t.scrollTop,this._scrollLeft=t.scrollLeft}handleDragInit(e){this._activeCanvas=this._grid.getActiveCanvasNode(e),this._activeViewport=this._grid.getActiveViewportNode(e);let t=this._grid.getDisplayedScrollbarDimensions();if(this._viewportWidth=this._activeViewport.offsetWidth-t.width,this._viewportHeight=this._activeViewport.offsetHeight-t.height,this._moveDistanceForOneCell={x:this._grid.getAbsoluteColumnMinWidth()/2,y:this._grid.getOptions().rowHeight/2},this._isRowMoveRegistered=this.hasRowMoveManager(),this._rowOffset=0,this._columnOffset=0,this._isBottomCanvas=this._activeCanvas.classList.contains("grid-canvas-bottom"),this._gridOptions.frozenRow>-1&&this._isBottomCanvas){let n=`.${this._grid.getUID()} .grid-canvas-${this._gridOptions.frozenBottom?"bottom":"top"}`,o=document.querySelector(n);o&&(this._rowOffset=o.clientHeight||0)}if(this._isRightCanvas=this._activeCanvas.classList.contains("grid-canvas-right"),this._gridOptions.frozenColumn>-1&&this._isRightCanvas){let n=document.querySelector(`.${this._grid.getUID()} .grid-canvas-left`);n&&(this._columnOffset=n.clientWidth||0)}e.stopImmediatePropagation(),e.preventDefault()}handleDragStart(e,t){let n=this._grid.getCellFromEvent(e);if(n&&this.onBeforeCellRangeSelected.notify(n).getReturnValue()!==!1&&this._grid.canCellBeSelected(n.row,n.cell)&&(this._dragging=!0,e.stopImmediatePropagation()),!this._dragging)return;this._grid.focus();let o=Si.offset(this._canvas),r=t.startX-(o?.left??0);this._gridOptions.frozenColumn>=0&&this._isRightCanvas&&(r+=this._scrollLeft);let i=t.startY-(o?.top??0);this._gridOptions.frozenRow>=0&&this._isBottomCanvas&&(i+=this._scrollTop);let a=this._grid.getCellFromPoint(r,i);return t.range={start:a,end:{}},this._currentlySelectedRange=t.range,this._decorator.show(new Nd(a.row,a.cell))}handleDrag(e,t){if(!this._dragging&&!this._isRowMoveRegistered)return;this._isRowMoveRegistered||e.stopImmediatePropagation();let n=e.getNativeEvent();if(this._options.autoScroll&&(this._draggingMouseOffset=this.getMouseOffsetViewport(n,t),this._draggingMouseOffset.isOutsideViewport))return this.handleDragOutsideViewport();this.stopIntervalTimer(),this.handleDragTo(n,t)}getMouseOffsetViewport(e,t){let n=e?.touches?.[0]??e,o=this._activeViewport.scrollLeft,r=this._activeViewport.scrollTop,i=o+this._viewportWidth,a=r+this._viewportHeight,l=Si.offset(this._activeViewport),d=l?.left??0,u=l?.top??0,f=d+this._viewportWidth,p=u+this._viewportHeight,y={e,dd:t,viewport:{left:o,top:r,right:i,bottom:a,offset:{left:d,top:u,right:f,bottom:p}},offset:{x:0,y:0},isOutsideViewport:!1};return n.pageX<d?y.offset.x=n.pageX-d:n.pageX>f&&(y.offset.x=n.pageX-f),n.pageY<u?y.offset.y=u-n.pageY:n.pageY>p&&(y.offset.y=p-n.pageY),y.isOutsideViewport=!!y.offset.x||!!y.offset.y,y}handleDragOutsideViewport(){if(this._xDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.x)*this._options.accelerateInterval,this._yDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.y)*this._options.accelerateInterval,!this._autoScrollTimerId){let e=0,t=0;this._autoScrollTimerId=window.setInterval(()=>{let n=!1,o=!1;this._draggingMouseOffset.offset.x?(e+=this._options.minIntervalToShowNextCell,n=e>=this._xDelayForNextCell):e=0,this._draggingMouseOffset.offset.y?(t+=this._options.minIntervalToShowNextCell,o=t>=this._yDelayForNextCell):t=0,(n||o)&&(n&&(e=0),o&&(t=0),this.handleDragToNewPosition(n,o))},this._options.minIntervalToShowNextCell)}}handleDragToNewPosition(e,t){let n=this._draggingMouseOffset.e.pageX,o=this._draggingMouseOffset.e.pageY,r=this._draggingMouseOffset.offset.x,i=this._draggingMouseOffset.offset.y,a=this._draggingMouseOffset.viewport.offset;e&&r&&(r>0?n=a.right+this._moveDistanceForOneCell.x:n=a.left-this._moveDistanceForOneCell.x),t&&i&&(i>0?o=a.top-this._moveDistanceForOneCell.y:o=a.bottom+this._moveDistanceForOneCell.y),this.handleDragTo({pageX:n,pageY:o},this._draggingMouseOffset.dd)}stopIntervalTimer(){this._autoScrollTimerId&&(window.clearInterval(this._autoScrollTimerId),this._autoScrollTimerId=void 0)}handleDragTo(e,t){let n=e?.touches?.[0]??e,o=Si.offset(this._activeCanvas),r=this._grid.getCellFromPoint(n.pageX-(o?.left??0)+this._columnOffset,n.pageY-(o?.top??0)+this._rowOffset);if(!(this._gridOptions.frozenColumn>=0&&!this._isRightCanvas&&r.cell>this._gridOptions.frozenColumn||this._isRightCanvas&&r.cell<=this._gridOptions.frozenColumn)&&!(this._gridOptions.frozenRow>=0&&!this._isBottomCanvas&&r.row>=this._gridOptions.frozenRow||this._isBottomCanvas&&r.row<this._gridOptions.frozenRow)){if(this._options.autoScroll&&this._draggingMouseOffset){let i=this._grid.getCellNodeBox(r.row,r.cell);if(!i)return;let a=this._draggingMouseOffset.viewport;(i.left<a.left||i.right>a.right||i.top<a.top||i.bottom>a.bottom)&&this._grid.scrollCellIntoView(r.row,r.cell)}if(this._grid.canCellBeSelected(r.row,r.cell)&&t?.range){t.range.end=r;let i=new Nd(t.range.start.row??0,t.range.start.cell??0,r.row,r.cell);this._decorator.show(i),this.onCellRangeSelecting.notify({range:i})}}}hasRowMoveManager(){return!!(this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager"))}handleDragEnd(e,t){this._decorator.hide(),this._dragging&&(this._dragging=!1,e.stopImmediatePropagation(),this.stopIntervalTimer(),this.onCellRangeSelected.notify({range:new Nd(t.range.start.row??0,t.range.start.cell??0,t.range.end.row,t.range.end.cell)}))}getCurrentRange(){return this._currentlySelectedRange}},rB=Vc,sB=Ea,mr=yo,iB=class{constructor(e){k(this,"pluginName","CheckboxSelectColumn"),k(this,"_dataView"),k(this,"_grid"),k(this,"_isUsingDataView",!1),k(this,"_selectableOverride",null),k(this,"_headerRowNode"),k(this,"_selectAll_UID"),k(this,"_handler",new sB),k(this,"_selectedRowsLookup",{}),k(this,"_checkboxColumnCellIndex",null),k(this,"_options"),k(this,"_defaults",{columnId:"_checkbox_selector",cssClass:void 0,hideSelectAllCheckbox:!1,name:"",toolTip:"Select/Deselect All",width:30,reorderable:!1,applySelectOnAllPages:!1,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0}),k(this,"_isSelectAllChecked",!1),k(this,"_bindingEventService"),this._bindingEventService=new rB,this._options=mr.extend(!0,{},this._defaults,e),this._selectAll_UID=this.createUID(),typeof this._options.selectableOverride=="function"&&this.selectableOverride(this._options.selectableOverride)}init(e){this._grid=e,this._isUsingDataView=!Array.isArray(e.getData()),this._isUsingDataView&&(this._dataView=e.getData()),this._handler.subscribe(this._grid.onSelectedRowsChanged,this.handleSelectedRowsChanged.bind(this)).subscribe(this._grid.onClick,this.handleClick.bind(this)).subscribe(this._grid.onKeyDown,this.handleKeyDown.bind(this)).subscribe(this._grid.onAfterSetColumns,()=>this.renderSelectAllCheckbox(this._isSelectAllChecked)),this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages&&this._handler.subscribe(this._dataView.onSelectedRowIdsChanged,this.handleDataViewSelectedIdsChanged.bind(this)).subscribe(this._dataView.onPagingInfoChanged,this.handleDataViewSelectedIdsChanged.bind(this)),this._options.hideInFilterHeaderRow||this.addCheckboxToFilterHeaderRow(e),this._options.hideInColumnTitleRow||this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}getOptions(){return this._options}setOptions(e){if(this._options=mr.extend(!0,{},this._options,e),this._options.hideSelectAllCheckbox)this.hideSelectAllFromColumnHeaderTitleRow(),this.hideSelectAllFromColumnHeaderFilterRow();else if(this._options.hideInColumnTitleRow?(this.hideSelectAllFromColumnHeaderTitleRow(),this._options.name&&this._grid.updateColumnHeader(this._options.columnId||"",this._options.name,"")):(this.renderSelectAllCheckbox(this._isSelectAllChecked),this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))),this._options.hideInFilterHeaderRow)this.hideSelectAllFromColumnHeaderFilterRow();else{let t=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");if(t){t.style.display="flex";let n=t.querySelector('input[type="checkbox"]');n&&(n.checked=this._isSelectAllChecked)}}}hideSelectAllFromColumnHeaderTitleRow(){this._grid.updateColumnHeader(this._options.columnId||"",this._options.name||"","")}hideSelectAllFromColumnHeaderFilterRow(){let e=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");e&&(e.style.display="none")}handleSelectedRowsChanged(){let e=this._grid.getSelectedRows(),t={},n=0,o=0,r=0,i=0;if(typeof this._selectableOverride=="function")for(r=0;r<this._grid.getDataLength();r++){let l=this._grid.getDataItem(r);this.checkSelectableOverride(o,l,this._grid)||i++}let a=[];for(o=0;o<e.length;o++){n=e[o];let l=this._grid.getDataItem(n);this.checkSelectableOverride(o,l,this._grid)?(t[n]=!0,t[n]!==this._selectedRowsLookup[n]&&(this._grid.invalidateRow(n),delete this._selectedRowsLookup[n])):a.push(n)}if(typeof this._selectedRowsLookup=="object"&&Object.keys(this._selectedRowsLookup).forEach(l=>{l!==void 0&&this._grid.invalidateRow(+l)}),this._selectedRowsLookup=t,this._grid.render(),this._isSelectAllChecked=(e?.length??0)+i>=this._grid.getDataLength(),(!this._isUsingDataView||!this._options.applySelectOnAllPages)&&(!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow)){let l=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);l&&(l.checked=this._isSelectAllChecked)}if(a.length>0){for(o=0;o<a.length;o++){let l=e.indexOf(a[o]);e.splice(l,1)}this._grid.setSelectedRows(e,"click.cleanup")}}handleDataViewSelectedIdsChanged(){let e=this._dataView.getAllSelectedFilteredIds(),t=this._dataView.getFilteredItems(),n=0;if(typeof this._selectableOverride=="function"&&e.length>0)for(let o=0;o<this._dataView.getItemCount();o++){let r=this._dataView.getItemByIdx(o),i=this._dataView.getIdPropertyName(),a=r[i];t.findIndex(function(l){return l[i]===a})>=0&&!this.checkSelectableOverride(o,r,this._grid)&&n++}if(this._isSelectAllChecked=(e&&e.length)+n>=t.length,!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow){let o=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);o&&(o.checked=this._isSelectAllChecked)}}handleKeyDown(e,t){e.which===32&&this._grid.getColumns()[t.cell].id===this._options.columnId&&((!this._grid.getEditorLock().isActive()||this._grid.getEditorLock().commitCurrentEdit())&&this.toggleRowSelection(t.row),e.preventDefault(),e.stopImmediatePropagation())}handleClick(e,t){if(this._grid.getColumns()[t.cell].id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}this.toggleRowSelection(t.row),e.stopPropagation(),e.stopImmediatePropagation()}}toggleRowSelection(e){let t=this._grid.getDataItem(e);if(this.checkSelectableOverride(e,t,this._grid)){if(this._selectedRowsLookup[e]){let n=this._grid.getSelectedRows().filter(o=>o!==e);this._grid.setSelectedRows(n,"click.toggle")}else this._grid.setSelectedRows(this._grid.getSelectedRows().concat(e),"click.toggle");this._grid.setActiveCell(e,this.getCheckboxColumnCellIndex())}}selectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]||(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().concat(t),"SlickCheckboxSelectColumn.selectRows")}deSelectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]&&(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().filter(n=>t.indexOf(n)<0),"SlickCheckboxSelectColumn.deSelectRows")}handleHeaderClick(e,t){if(t.column.id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}let n=e.target.checked,o=n?"click.selectAll":"click.unselectAll",r=[];if(n){for(let i=0;i<this._grid.getDataLength();i++){let a=this._grid.getDataItem(i);!a.__group&&!a.__groupTotals&&this.checkSelectableOverride(i,a,this._grid)&&r.push(i)}n=!0}if(this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages){let i=[],a=this._dataView.getFilteredItems();for(let l=0;l<a.length;l++){let d=a[l];this.checkSelectableOverride(l,d,this._grid)&&i.push(d[this._dataView.getIdPropertyName()])}this._dataView.setSelectedIds(i,{isRowBeingAdded:n})}this._grid.setSelectedRows(r,o),e.stopPropagation(),e.stopImmediatePropagation()}}getCheckboxColumnCellIndex(){if(this._checkboxColumnCellIndex===null){this._checkboxColumnCellIndex=0;let e=this._grid.getColumns();for(let t=0;t<e.length;t++)e[t].id===this._options.columnId&&(this._checkboxColumnCellIndex=t)}return this._checkboxColumnCellIndex}createCheckboxElement(e,t=!1){let n=new DocumentFragment;return n.appendChild(mr.createDomElement("input",{id:e,type:"checkbox",checked:t,ariaChecked:String(t)})),n.appendChild(mr.createDomElement("label",{htmlFor:e})),n}getColumnDefinition(){return{id:this._options.columnId,reorderable:this._options.reorderable,name:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?this._options.name||"":this.createCheckboxElement(`header-selector${this._selectAll_UID}`),toolTip:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?"":this._options.toolTip,field:"sel",width:this._options.width,resizable:!1,sortable:!1,cssClass:this._options.cssClass,hideSelectAllCheckbox:this._options.hideSelectAllCheckbox,formatter:this.checkboxSelectionFormatter.bind(this),excludeFromColumnPicker:this._options.excludeFromColumnPicker??!0,excludeFromGridMenu:this._options.excludeFromGridMenu??!0,excludeFromHeaderMenu:this._options.excludeFromHeaderMenu??!0}}addCheckboxToFilterHeaderRow(e){this._handler.subscribe(e.onHeaderRowCellRendered,(t,n)=>{if(n.column.field==="sel"){mr.emptyElement(n.node);let o=mr.createDomElement("span",{id:"filter-checkbox-selectall-container",ariaChecked:"false"});o.appendChild(mr.createDomElement("input",{type:"checkbox",id:`header-filter-selector${this._selectAll_UID}`})),o.appendChild(mr.createDomElement("label",{htmlFor:`header-filter-selector${this._selectAll_UID}`})),n.node.appendChild(o),this._headerRowNode=n.node,this._bindingEventService.bind(o,"click",r=>this.handleHeaderClick(r,n))}})}createUID(){return Math.round(1e7*Math.random())}checkboxSelectionFormatter(e,t,n,o,r,i){if(r&&this.checkSelectableOverride(e,r,i)){let a=this.createUID()+e;return this.createCheckboxElement(`selector${a}`,!!this._selectedRowsLookup[e])}return null}checkSelectableOverride(e,t,n){return typeof this._selectableOverride=="function"?this._selectableOverride(e,t,n):!0}renderSelectAllCheckbox(e){this._grid.updateColumnHeader(this._options.columnId||"",this.createCheckboxElement(`header-selector${this._selectAll_UID}`,!!e),this._options.toolTip)}selectableOverride(e){this._selectableOverride=e}},aB=Vc,lB=Jr,cB=Hj,Ad=yo,dB=class{constructor(e){k(this,"pluginName","HeaderButtons"),k(this,"onCommand",new lB("onCommand")),k(this,"_grid"),k(this,"_handler",new cB),k(this,"_bindingEventService",new aB),k(this,"_defaults",{buttonCssClass:"slick-header-button"}),k(this,"_options"),this._options=Ad.extend(!0,{},this._defaults,e)}init(e){this._grid=e,Ad.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns())}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}handleHeaderCellRendered(e,t){let n=t.column;if(n.header?.buttons){let o=n.header.buttons.length;for(;o--;){let r=n.header.buttons[o],i=this.runOverrideFunctionWhenExists(r.itemVisibilityOverride,t),a=this.runOverrideFunctionWhenExists(r.itemUsabilityOverride,t);if(!i)continue;Object.prototype.hasOwnProperty.call(r,"itemUsabilityOverride")&&(r.disabled=!a);let l=document.createElement("div");l.className=this._options.buttonCssClass||"",l.ariaLabel="Header Button",l.role="button",r.disabled&&l.classList.add("slick-header-button-disabled"),r.showOnHover&&l.classList.add("slick-header-button-hidden"),r.image&&(l.style.backgroundImage=`url(${r.image})`),r.cssClass&&l.classList.add(...Ad.classNameToList(r.cssClass)),r.tooltip&&(l.title=r.tooltip),r.handler&&!r.disabled&&this._bindingEventService.bind(l,"click",r.handler),this._bindingEventService.bind(l,"click",this.handleButtonClick.bind(this,r,t.column)),t.node.appendChild(l)}}}handleBeforeHeaderCellDestroy(e,t){if(t.column.header?.buttons){let n=(this._options.buttonCssClass||"").replace(/(\s+)/g,".");n&&t.node.querySelectorAll(`.${n}`).forEach(o=>o.remove())}}handleButtonClick(e,t,n){let o=e.command||"",r={grid:this._grid,column:t,button:e};o&&(r.command=o),typeof e.action=="function"&&e.action.call(this,n,r),o&&!e.disabled&&(this.onCommand.notify(r,n,this),this._grid.updateColumnHeader(t.id)),n.preventDefault(),n.stopPropagation()}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},uB=Vc,Fd=Wj,hB=Ea,Ln=yo,fB=class{constructor(e){k(this,"pluginName","HeaderMenu"),k(this,"onAfterMenuShow",new Fd("onAfterMenuShow")),k(this,"onBeforeMenuShow",new Fd("onBeforeMenuShow")),k(this,"onCommand",new Fd("onCommand")),k(this,"_grid"),k(this,"_gridUid",""),k(this,"_handler",new hB),k(this,"_bindingEventService",new uB),k(this,"_defaults",{buttonCssClass:void 0,buttonImage:void 0,minWidth:100,autoAlign:!0,autoAlignOffset:0,subMenuOpenByEvent:"mouseover"}),k(this,"_options"),k(this,"_activeHeaderColumnElm"),k(this,"_menuElm"),k(this,"_subMenuParentId",""),this._options=Ln.extend(!0,{},e,this._defaults)}init(e){this._grid=e,this._gridUid=e?.getUID()||"",Ln.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns()),this._bindingEventService.bind(document.body,"click",this.handleBodyMouseDown.bind(this))}setOptions(e){this._options=Ln.extend(!0,{},this._options,e)}getGridUidSelector(){let e=this._grid.getUID()||"";return e?`.${e}`:""}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll(),this._menuElm=this._menuElm||document.body.querySelector(`.slick-header-menu${this.getGridUidSelector()}`),this._menuElm?.remove(),this._activeHeaderColumnElm=void 0}destroyAllMenus(){this.destroySubMenus(),this._bindingEventService.unbindAll("parent-menu"),document.querySelectorAll(`.slick-header-menu${this.getGridUidSelector()}`).forEach(e=>e.remove())}destroySubMenus(){this._bindingEventService.unbindAll("sub-menu"),document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(e=>e.remove())}handleBodyMouseDown(e){let t=!1;this._menuElm?.contains(e.target)&&(t=!0),t||document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(n=>{n.contains(e.target)&&(t=!0)}),(this._menuElm!==e.target&&!t&&!e.defaultPrevented||e.target.className==="close")&&this.hideMenu()}hideMenu(){this._menuElm&&(this._menuElm.remove(),this._menuElm=void 0),this._activeHeaderColumnElm?.classList.remove("slick-header-column-active"),this.destroySubMenus()}handleHeaderCellRendered(e,t){let n=t.column?.header?.menu;if(n?.items&&console.warn('[SlickGrid] Header Menu "items" property was deprecated in favor of "commandItems" to align with all other Menu plugins.'),n){if(!this.runOverrideFunctionWhenExists(this._options.menuUsabilityOverride,t))return;let o=document.createElement("div");if(o.className="slick-header-menubutton",o.ariaLabel="Header Menu",o.role="button",!this._options.buttonCssClass&&!this._options.buttonImage&&(this._options.buttonCssClass="caret"),this._options.buttonCssClass){let r=document.createElement("span");r.classList.add(...Ln.classNameToList(this._options.buttonCssClass)),o.appendChild(r)}this._options.buttonImage&&(o.style.backgroundImage=`url(${this._options.buttonImage})`),this._options.tooltip&&(o.title=this._options.tooltip),this._bindingEventService.bind(o,"click",r=>{this.destroyAllMenus(),this.createParentMenu(r,n,t.column)}),t.node.appendChild(o)}}handleBeforeHeaderCellDestroy(e,t){t.column.header?.menu&&t.node.querySelectorAll(".slick-header-menubutton").forEach(n=>n.remove())}addSubMenuTitleWhenExists(e,t){if(e!=="divider"&&e?.subMenuTitle){let n=document.createElement("div");n.className="slick-menu-title",n.textContent=e.subMenuTitle;let o=e.subMenuTitleCssClass;o&&n.classList.add(...Ln.classNameToList(o)),t.appendChild(n)}}createParentMenu(e,t,n){let o={grid:this._grid,column:n,menu:t};if(this.onBeforeMenuShow.notify(o,e,this).getReturnValue()===!1)return;this._menuElm=this.createMenu(t.commandItems||t.items,n);let r=this._grid.getContainerNode();r&&r.appendChild(this._menuElm),this.repositionMenu(e,this._menuElm),this.onAfterMenuShow.notify(o,e,this).getReturnValue()!==!1&&(e.preventDefault(),e.stopPropagation())}createMenu(e,t,n=0,o){let r=n>0,i=o?.command,a=n===1&&i?i.replaceAll(" ",""):"";a&&(this._subMenuParentId=a),r&&(a=this._subMenuParentId);let l=`slick-header-menu slick-menu-level-${n} ${this._gridUid}`,d=document.body.querySelector(`.slick-header-menu.slick-menu-level-${n}${this.getGridUidSelector()}`);if(d){if(d.dataset.subMenuParent===a)return d;this.destroySubMenus()}let u=document.createElement("div");u.className=l,n>0&&(u.classList.add("slick-submenu"),a&&(u.dataset.subMenuParent=a)),u.classList.add(this._gridUid),u.role="menu",u.ariaLabel=n>1?"SubMenu":"Header Menu",u.style.minWidth=`${this._options.minWidth}px`,u.setAttribute("aria-expanded","true");let f={grid:this._grid,column:t,menu:{items:e}};o&&n>0&&this.addSubMenuTitleWhenExists(o,u);for(let p=0;p<e.length;p++){let y=!0,w=e[p],b=this.runOverrideFunctionWhenExists(w.itemVisibilityOverride,f),m=this.runOverrideFunctionWhenExists(w.itemUsabilityOverride,f);if(!b)continue;Object.prototype.hasOwnProperty.call(w,"itemUsabilityOverride")&&(w.disabled=!m);let v=document.createElement("div");v.className="slick-header-menuitem",v.role="menuitem",(w.divider||w==="divider")&&(v.classList.add("slick-header-menuitem-divider"),y=!1),w.disabled&&v.classList.add("slick-header-menuitem-disabled"),w.hidden&&v.classList.add("slick-header-menuitem-hidden"),w.cssClass&&v.classList.add(...Ln.classNameToList(w.cssClass)),w.tooltip&&(v.title=w.tooltip||"");let P=document.createElement("div");P.className="slick-header-menuicon",v.appendChild(P),w.iconCssClass&&P.classList.add(...Ln.classNameToList(w.iconCssClass)),w.iconImage&&(P.style.backgroundImage="url("+w.iconImage+")");let D=document.createElement("span");if(D.className="slick-header-menucontent",D.textContent=w.title||"",v.appendChild(D),w.textCssClass&&D.classList.add(...Ln.classNameToList(w.textCssClass)),u.appendChild(v),y){let x=r?"sub-menu":"parent-menu";this._bindingEventService.bind(v,"click",this.handleMenuItemClick.bind(this,w,t,n),void 0,x)}if(this._options.subMenuOpenByEvent==="mouseover"&&this._bindingEventService.bind(v,"mouseover",x=>{w.commandItems||w.items?this.repositionSubMenu(w,t,n,x):r||this.destroySubMenus()}),w.commandItems||w.items){let x=document.createElement("div");x.className="sub-item-chevron",this._options.subItemChevronClass?x.classList.add(...Ln.classNameToList(this._options.subItemChevronClass)):x.textContent="⮞",v.classList.add("slick-submenu-item"),v.appendChild(x)}}return u}handleMenuItemClick(e,t,n=0,o){if(e!=="divider"&&!e.disabled&&!e.divider){let r=e.command||"";if(Ln.isDefined(r)&&!e.commandItems&&!e.items){let i={grid:this._grid,column:t,command:r,item:e};this.onCommand.notify(i,o,this),typeof e.action=="function"&&e.action.call(this,o,i),o.defaultPrevented||this.hideMenu()}else e.commandItems||e.items?this.repositionSubMenu(e,t,n,o):this.destroySubMenus()}}repositionSubMenu(e,t,n,o){o.target.classList.contains("slick-header-menubutton")&&this.destroySubMenus();let r=this.createMenu(e.commandItems||e.items||[],t,n+1,e);document.body.appendChild(r),this.repositionMenu(o,r)}repositionMenu(e,t){let n=e.target,o=t.classList.contains("slick-submenu"),r=o?e.target.closest(".slick-header-menuitem"):n,i=Ln.offset(n),a=this._grid.getGridPosition(),l=t.offsetWidth,d=Ln.offset(this._menuElm),u=Ln.offset(r),f=o?u?.top??0:n.clientHeight??i?.top??0+(this._options?.menuOffsetTop??0),p=o?u?.left??0:i?.left??0;if(o&&r){let y=p+Number(l);o&&(y+=r.clientWidth);let w=document.documentElement.clientWidth;(y>=a.width||y>=w?"left":"right")=="left"?(t.classList.remove("dropright"),t.classList.add("dropleft"),p-=l):(t.classList.remove("dropleft"),t.classList.add("dropright"),o&&(p+=r.offsetWidth))}else p+t.offsetWidth>=a.width&&(p=p+n.clientWidth-t.clientWidth+(this._options.autoAlignOffset||0)),p-=d?.left??0;t.style.top=`${f}px`,t.style.left=`${p}px`,this._activeHeaderColumnElm=t.closest(".slick-header-column"),this._activeHeaderColumnElm&&this._activeHeaderColumnElm.classList.add("slick-header-column-active")}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},pB=jh,Ld=Mo,mB=Ob,gB=oB,yB=Jr,vB=la,bB=Ea,$d=Vh,il=yo,wB=class{constructor(e){k(this,"pluginName","RowSelectionModel"),k(this,"onSelectedRangesChanged",new yB("onSelectedRangesChanged")),k(this,"_grid"),k(this,"_ranges",[]),k(this,"_eventHandler",new bB),k(this,"_inHandler",!1),k(this,"_selector"),k(this,"_isRowMoveManagerHandler"),k(this,"_options"),k(this,"_defaults",{selectActiveRow:!0,dragToSelect:!1,autoScrollWhenDrag:!0,cellRangeSelector:void 0}),this._options=il.extend(!0,{},this._defaults,e)}init(e){if(pB===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');if(this._selector=this._options.cellRangeSelector,this._grid=e,il.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),!this._selector&&this._options.dragToSelect){if(!mB)throw new Error("Slick.CellRangeDecorator is required when option dragToSelect set to true");this._selector=new gB({selectionCss:{border:"none"},autoScroll:this._options.autoScrollWhenDrag})}this._eventHandler.subscribe(this._grid.onActiveCellChanged,this.wrapHandler(this.handleActiveCellChange).bind(this)),this._eventHandler.subscribe(this._grid.onKeyDown,this.wrapHandler(this.handleKeyDown).bind(this)),this._eventHandler.subscribe(this._grid.onClick,this.wrapHandler(this.handleClick).bind(this)),this._selector&&(e.registerPlugin(this._selector),this._selector.onCellRangeSelecting.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.subscribe(this.handleBeforeCellRangeSelected.bind(this)))}destroy(){this._eventHandler.unsubscribeAll(),this._selector&&(this._selector.onCellRangeSelecting.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.unsubscribe(this.handleBeforeCellRangeSelected.bind(this)),this._grid.unregisterPlugin(this._selector),this._selector.destroy&&this._selector.destroy())}wrapHandler(e){return(...t)=>{this._inHandler||(this._inHandler=!0,e.apply(this,t),this._inHandler=!1)}}rangesToRows(e){let t=[];for(let n=0;n<e.length;n++)for(let o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}rowsToRanges(e){let t=[],n=this._grid.getColumns().length-1;return e.forEach(o=>t.push(new $d(o,0,o,n))),t}getRowsRange(e,t){let n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}getSelectedRows(){return this.rangesToRows(this._ranges)}setSelectedRows(e){this.setSelectedRanges(this.rowsToRanges(e),"SlickRowSelectionModel.setSelectedRows")}setSelectedRanges(e,t="SlickRowSelectionModel.setSelectedRanges"){if((!this._ranges||this._ranges.length===0)&&(!e||e.length===0))return;this._ranges=e;let n=new vB(new CustomEvent("click",{detail:{caller:t}}),this._ranges);this.onSelectedRangesChanged.notify(this._ranges,n)}getSelectedRanges(){return this._ranges}refreshSelections(){this.setSelectedRows(this.getSelectedRows())}handleActiveCellChange(e,t){this._options.selectActiveRow&&il.isDefined(t.row)&&this.setSelectedRanges([new $d(t.row,0,t.row,this._grid.getColumns().length-1)])}handleKeyDown(e){let t=this._grid.getActiveCell();if(this._grid.getOptions().multiSelect&&t&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which===Ld.UP||e.which===Ld.DOWN)){let n=this.getSelectedRows();n.sort(function(a,l){return a-l}),n.length||(n=[t.row]);let o=n[0],r=n[n.length-1],i;if(e.which===Ld.DOWN?i=t.row<r||o===r?++r:++o:i=t.row<r?--r:--o,i>=0&&i<this._grid.getDataLength()){this._grid.scrollRowIntoView(i);let a=this.rowsToRanges(this.getRowsRange(o,r));this.setSelectedRanges(a)}e.preventDefault(),e.stopPropagation()}}handleClick(e){let t=this._grid.getCellFromEvent(e);if(!t||!this._grid.canCellBeActive(t.row,t.cell)||!this._grid.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;let n=this.rangesToRows(this._ranges),o=n.indexOf(t.row);if(o===-1&&(e.ctrlKey||e.metaKey))n.push(t.row),this._grid.setActiveCell(t.row,t.cell);else if(o!==-1&&(e.ctrlKey||e.metaKey))n=n.filter(i=>i!==t.row),this._grid.setActiveCell(t.row,t.cell);else if(n.length&&e.shiftKey){let i=n.pop(),a=Math.min(t.row,i),l=Math.max(t.row,i);n=[];for(let d=a;d<=l;d++)d!==i&&n.push(d);n.push(i),this._grid.setActiveCell(t.row,t.cell)}let r=this.rowsToRanges(n);return this.setSelectedRanges(r),e.stopImmediatePropagation(),!0}handleBeforeCellRangeSelected(e,t){if(!this._isRowMoveManagerHandler){let n=this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager");this._isRowMoveManagerHandler=n?n.isHandlerColumn:il.noop}if(this._grid.getEditorLock().isActive()||this._isRowMoveManagerHandler(t.cell))return e.stopPropagation(),!1;this._grid.setActiveCell(t.row,t.cell)}handleCellRangeSelected(e,t){if(!this._grid.getOptions().multiSelect||!this._options.selectActiveRow)return!1;this.setSelectedRanges([new $d(t.range.fromRow,0,t.range.toRow,this._grid.getColumns().length-1)])}},CB=Mo,Vd=kb,_i=yo,Mb=class{constructor(e){k(this,"pluginName","GroupItemMetadataProvider"),k(this,"_grid"),k(this,"_options"),k(this,"_defaults",{checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:this.defaultGroupCellFormatter.bind(this),totalsFormatter:this.defaultTotalsCellFormatter.bind(this),includeHeaderTotals:!1}),this._options=_i.extend(!0,{},this._defaults,e)}get dataView(){return this._grid?.getData?.()??{}}getOptions(){return this._options}setOptions(e){_i.extend(!0,this._options,e)}defaultGroupCellFormatter(e,t,n,o,r){if(!this._options.enableExpandCollapse)return r.title;let i=`${r.level*15}px`,a=r.collapsed?this._options.toggleCollapsedCssClass:this._options.toggleExpandedCssClass,l=document.createDocumentFragment();this._options.checkboxSelect&&l.appendChild(_i.createDomElement("span",{className:`${this._options.checkboxSelectCssClass} ${r.selectChecked?"checked":"unchecked"}`})),l.appendChild(_i.createDomElement("span",{className:`${this._options.toggleCssClass} ${a}`,ariaExpanded:String(!r.collapsed),style:{marginLeft:i}}));let d=_i.createDomElement("span",{className:this._options.groupTitleCssClass||""});return d.setAttribute("level",r.level),r.title instanceof HTMLElement?d.appendChild(r.title):this._grid.applyHtmlCode(d,r.title??""),l.appendChild(d),l}defaultTotalsCellFormatter(e,t,n,o,r,i){return o?.groupTotalsFormatter?.(r,o,i)??""}init(e){this._grid=e,this._grid.onClick.subscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.subscribe(this.handleGridKeyDown.bind(this))}destroy(){this._grid&&(this._grid.onClick.unsubscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.unsubscribe(this.handleGridKeyDown.bind(this)))}handleGridClick(e,t){let n=e.target,o=this._grid.getDataItem(t.row);if(o&&o instanceof Vd&&n.classList.contains(this._options.toggleCssClass||"")&&(this.handleDataViewExpandOrCollapse(o),e.stopImmediatePropagation(),e.preventDefault()),o&&o instanceof Vd&&n.classList.contains(this._options.checkboxSelectCssClass||"")){o.selectChecked=!o.selectChecked,n.classList.remove(o.selectChecked?"unchecked":"checked"),n.classList.add(o.selectChecked?"checked":"unchecked");let r=this.dataView.mapItemsToRows(o.rows);o.selectChecked?this._options.checkboxSelectPlugin.selectRows(r):this._options.checkboxSelectPlugin.deSelectRows(r)}}handleGridKeyDown(e){if(this._options.enableExpandCollapse&&e.which===CB.SPACE){let t=this._grid.getActiveCell();if(t){let n=this._grid.getDataItem(t.row);n&&n instanceof Vd&&(this.handleDataViewExpandOrCollapse(n),e.stopImmediatePropagation(),e.preventDefault())}}}handleDataViewExpandOrCollapse(e){let t=this._grid.getRenderedRange();this.dataView.setRefreshHints({ignoreDiffsBefore:t.top,ignoreDiffsAfter:t.bottom+1}),e.collapsed?this.dataView.expandGroup(e.groupingKey):this.dataView.collapseGroup(e.groupingKey)}getGroupRowMetadata(e,t,n){let o=e?.level;return{selectable:!1,focusable:this._options.groupFocusable,cssClasses:`${this._options.groupCssClass} slick-group-level-${o}`,formatter:this._options.includeHeaderTotals&&this._options.totalsFormatter||void 0,columns:{0:{colspan:this._options.includeHeaderTotals?"1":"*",formatter:this._options.groupFormatter,editor:null}}}}getTotalsRowMetadata(e,t,n){let o=e?.group?.level;return{selectable:!1,focusable:this._options.totalsFocusable,cssClasses:`${this._options.totalsCssClass} slick-group-level-${o}`,formatter:this._options.totalsFormatter,editor:null}}},Go=Jr,jd=la,Wm=kb,SB=Vj,qn=yo,_B=Mb,xB=class{constructor(e,t){this.externalPubSub=t,k(this,"defaults",{globalItemMetadataProvider:null,groupItemMetadataProvider:null,inlineFilters:!1,useCSPSafeFilter:!1}),k(this,"idProperty","id"),k(this,"items",[]),k(this,"rows",[]),k(this,"idxById",new Map),k(this,"rowsById"),k(this,"filter",null),k(this,"filterCSPSafe",null),k(this,"updated",null),k(this,"suspend",!1),k(this,"isBulkSuspend",!1),k(this,"bulkDeleteIds",new Map),k(this,"sortAsc",!0),k(this,"fastSortField"),k(this,"sortComparer"),k(this,"refreshHints",{}),k(this,"prevRefreshHints",{}),k(this,"filterArgs"),k(this,"filteredItems",[]),k(this,"compiledFilter"),k(this,"compiledFilterCSPSafe"),k(this,"compiledFilterWithCaching"),k(this,"compiledFilterWithCachingCSPSafe"),k(this,"filterCache",[]),k(this,"_grid"),k(this,"groupingInfoDefaults",{getter:void 0,formatter:void 0,comparer:(n,o)=>n.value===o.value?0:n.value>o.value?1:-1,predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1}),k(this,"groupingInfos",[]),k(this,"groups",[]),k(this,"toggledGroupsByLevel",[]),k(this,"groupingDelimiter",":|:"),k(this,"selectedRowIds",[]),k(this,"preSelectedRowIdsChangeFn"),k(this,"pagesize",0),k(this,"pagenum",0),k(this,"totalRows",0),k(this,"_options"),k(this,"_container"),k(this,"onBeforePagingInfoChanged"),k(this,"onGroupExpanded"),k(this,"onGroupCollapsed"),k(this,"onPagingInfoChanged"),k(this,"onRowCountChanged"),k(this,"onRowsChanged"),k(this,"onRowsOrCountChanged"),k(this,"onSelectedRowIdsChanged"),k(this,"onSetItemsCalled"),this.onBeforePagingInfoChanged=new Go("onBeforePagingInfoChanged",t),this.onGroupExpanded=new Go("onGroupExpanded",t),this.onGroupCollapsed=new Go("onGroupCollapsed",t),this.onPagingInfoChanged=new Go("onPagingInfoChanged",t),this.onRowCountChanged=new Go("onRowCountChanged",t),this.onRowsChanged=new Go("onRowsChanged",t),this.onRowsOrCountChanged=new Go("onRowsOrCountChanged",t),this.onSelectedRowIdsChanged=new Go("onSelectedRowIdsChanged",t),this.onSetItemsCalled=new Go("onSetItemsCalled",t),this._options=qn.extend(!0,{},this.defaults,e)}beginUpdate(e){this.suspend=!0,this.isBulkSuspend=e===!0}endUpdate(){let e=this.isBulkSuspend;this.isBulkSuspend=!1,this.suspend=!1,e&&(this.processBulkDelete(),this.ensureIdUniqueness()),this.refresh()}destroy(){this.items=[],this.idxById=null,this.rowsById=null,this.filter=null,this.filterCSPSafe=null,this.updated=null,this.sortComparer=null,this.filterCache=[],this.filteredItems=[],this.compiledFilter=null,this.compiledFilterCSPSafe=null,this.compiledFilterWithCaching=null,this.compiledFilterWithCachingCSPSafe=null,this._grid&&this._grid.onSelectedRowsChanged&&this._grid.onCellCssStylesChanged&&(this._grid.onSelectedRowsChanged.unsubscribe(),this._grid.onCellCssStylesChanged.unsubscribe()),this.onRowsOrCountChanged&&this.onRowsOrCountChanged.unsubscribe()}setRefreshHints(e){this.refreshHints=e}getFilterArgs(){return this.filterArgs}setFilterArgs(e){this.filterArgs=e}processBulkDelete(){if(!this.idxById)return;let e,t,n=0;for(let o=0,r=this.items.length;o<r;o++){if(t=this.items[o],e=t[this.idProperty],e===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.bulkDeleteIds.has(e)?this.idxById.delete(e):(this.items[n]=t,this.idxById.set(e,n),++n)}this.items.length=n,this.bulkDeleteIds=new Map}updateIdxById(e){if(this.isBulkSuspend||!this.idxById)return;e=e||0;let t;for(let n=e,o=this.items.length;n<o;n++){if(t=this.items[n][this.idProperty],t===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.idxById.set(t,n)}}ensureIdUniqueness(){if(this.isBulkSuspend||!this.idxById)return;let e;for(let t=0,n=this.items.length;t<n;t++)if(e=this.items[t][this.idProperty],e===void 0||this.idxById.get(e)!==t)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property")}getItems(){return this.items}getIdPropertyName(){return this.idProperty}setItems(e,t){t!==void 0&&(this.idProperty=t),this.items=this.filteredItems=e,this.onSetItemsCalled.notify({idProperty:this.idProperty,itemCount:this.items.length},null,this),this.idxById=new Map,this.updateIdxById(),this.ensureIdUniqueness(),this.refresh()}setPagingOptions(e){this.onBeforePagingInfoChanged.notify(this.getPagingInfo(),null,this).getReturnValue()!==!1&&(qn.isDefined(e.pageSize)&&(this.pagesize=e.pageSize,this.pagenum=this.pagesize?Math.min(this.pagenum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1)):0),qn.isDefined(e.pageNum)&&(this.pagenum=Math.min(e.pageNum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1))),this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),this.refresh())}getPagingInfo(){let e=this.pagesize?Math.max(1,Math.ceil(this.totalRows/this.pagesize)):1;return{pageSize:this.pagesize,pageNum:this.pagenum,totalRows:this.totalRows,totalPages:e,dataView:this}}sort(e,t){this.sortAsc=t,this.sortComparer=e,this.fastSortField=null,t===!1&&this.items.reverse(),this.items.sort(e),t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}fastSort(e,t){this.sortAsc=t,this.fastSortField=e,this.sortComparer=null;let n=Object.prototype.toString;Object.prototype.toString=typeof e=="function"?e:function(){return this[e]},t===!1&&this.items.reverse(),this.items.sort(),Object.prototype.toString=n,t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}reSort(){this.sortComparer?this.sort(this.sortComparer,this.sortAsc):this.fastSortField&&this.fastSort(this.fastSortField,this.sortAsc)}getFilteredItems(){return this.filteredItems}getFilteredItemCount(){return this.filteredItems.length}getFilter(){return this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter}setFilter(e){this.filterCSPSafe=e,this.filter=e,this._options.inlineFilters&&(this.compiledFilterCSPSafe=this.compileFilterCSPSafe,this.compiledFilterWithCachingCSPSafe=this.compileFilterWithCachingCSPSafe,this.compiledFilter=this.compileFilter(this._options.useCSPSafeFilter),this.compiledFilterWithCaching=this.compileFilterWithCaching(this._options.useCSPSafeFilter)),this.refresh()}getGrouping(){return this.groupingInfos}setGrouping(e){this._options.groupItemMetadataProvider||(this._options.groupItemMetadataProvider=new _B),this.groups=[],this.toggledGroupsByLevel=[],e=e||[],this.groupingInfos=e instanceof Array?e:[e];for(let t=0;t<this.groupingInfos.length;t++){let n=this.groupingInfos[t]=qn.extend(!0,{},this.groupingInfoDefaults,this.groupingInfos[t]);n.getterIsAFn=typeof n.getter=="function",n.compiledAccumulators=[];let o=n.aggregators.length;for(;o--;)n.compiledAccumulators[o]=this.compileAccumulatorLoopCSPSafe(n.aggregators[o]);this.toggledGroupsByLevel[t]={}}this.refresh()}getItemByIdx(e){return this.items[e]}getIdxById(e){return this.idxById?.get(e)}ensureRowsByIdCache(){if(!this.rowsById){this.rowsById={};for(let e=0,t=this.rows.length;e<t;e++)this.rowsById[this.rows[e][this.idProperty]]=e}}getRowByItem(e){return this.ensureRowsByIdCache(),this.rowsById?.[e[this.idProperty]]}getRowById(e){return this.ensureRowsByIdCache(),this.rowsById?.[e]}getItemById(e){return this.items[this.idxById.get(e)]}mapItemsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n][this.idProperty]];qn.isDefined(r)&&(t[t.length]=r)}return t}mapIdsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n]];qn.isDefined(r)&&(t[t.length]=r)}return t}mapRowsToIds(e){let t=[];for(let n=0,o=e.length;n<o;n++)if(e[n]<this.rows.length){let r=this.rows[e[n]];t[t.length]=r[this.idProperty]}return t}updateSingleItem(e,t){if(this.idxById){if(!this.idxById.has(e))throw new Error("[SlickGrid DataView] Invalid id");if(e!==t[this.idProperty]){let n=t[this.idProperty];if(!qn.isDefined(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a null id");if(this.idxById.has(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a non-unique id");this.idxById.set(n,this.idxById.get(e)),this.idxById.delete(e),this.updated?.[e]&&delete this.updated[e],e=n}this.items[this.idxById.get(e)]=t,this.updated||(this.updated={}),this.updated[e]=!0}}updateItem(e,t){this.updateSingleItem(e,t),this.refresh()}updateItems(e,t){if(e.length!==t.length)throw new Error("[SlickGrid DataView] Mismatch on the length of ids and items provided to update");for(let n=0,o=t.length;n<o;n++)this.updateSingleItem(e[n],t[n]);this.refresh()}insertItem(e,t){this.items.splice(e,0,t),this.updateIdxById(e),this.refresh()}insertItems(e,t){Array.prototype.splice.apply(this.items,[e,0].concat(t)),this.updateIdxById(e),this.refresh()}addItem(e){this.items.push(e),this.updateIdxById(this.items.length-1),this.refresh()}addItems(e){this.items=this.items.concat(e),this.updateIdxById(this.items.length-e.length),this.refresh()}deleteItem(e){if(this.idxById)if(this.isBulkSuspend)this.bulkDeleteIds.set(e,!0);else{let t=this.idxById.get(e);if(t===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(e),this.items.splice(t,1),this.updateIdxById(t),this.refresh()}}deleteItems(e){if(!(e.length===0||!this.idxById))if(this.isBulkSuspend)for(let t=0,n=e.length;t<n;t++){let o=e[t];if(this.idxById.get(o)===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.bulkDeleteIds.set(o,!0)}else{let t=[];for(let n=0,o=e.length;n<o;n++){let r=e[n],i=this.idxById.get(r);if(i===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(r),t.push(i)}t.sort();for(let n=t.length-1;n>=0;--n)this.items.splice(t[n],1);this.updateIdxById(t[0]),this.refresh()}}sortedAddItem(e){if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedAddItem() requires a sort comparer, use sort()");this.insertItem(this.sortedIndex(e),e)}sortedUpdateItem(e,t){if(!this.idxById)return;if(!this.idxById.has(e)||e!==t[this.idProperty])throw new Error("[SlickGrid DataView] Invalid or non-matching id "+this.idxById.get(e));if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedUpdateItem() requires a sort comparer, use sort()");let n=this.getItemById(e);this.sortComparer(n,t)!==0?(this.deleteItem(e),this.sortedAddItem(t)):this.updateItem(e,t)}sortedIndex(e){let t=0,n=this.items.length;for(;t<n;){let o=t+n>>>1;this.sortComparer(this.items[o],e)===-1?t=o+1:n=o}return t}getItemCount(){return this.items.length}getLength(){return this.rows.length}getItem(e){let t=this.rows[e];if(t?.__group&&t.totals&&!t.totals?.initialized){let n=this.groupingInfos[t.level];n.displayTotalsRow||(this.calculateTotals(t.totals),t.title=n.formatter?n.formatter(t):t.value)}else t?.__groupTotals&&!t.initialized&&this.calculateTotals(t);return t}getItemMetadata(e){let t=this.rows[e];return t===void 0?null:this._options.globalItemMetadataProvider?.getRowMetadata?this._options.globalItemMetadataProvider.getRowMetadata(t,e):t.__group&&this._options.groupItemMetadataProvider?.getGroupRowMetadata?this._options.groupItemMetadataProvider.getGroupRowMetadata(t,e):t.__groupTotals&&this._options.groupItemMetadataProvider?.getTotalsRowMetadata?this._options.groupItemMetadataProvider.getTotalsRowMetadata(t,e):null}expandCollapseAllGroups(e,t){if(qn.isDefined(e))this.toggledGroupsByLevel[e]={},this.groupingInfos[e].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:e,groupingKey:null}):this.onGroupExpanded.notify({level:e,groupingKey:null});else for(let n=0;n<this.groupingInfos.length;n++)this.toggledGroupsByLevel[n]={},this.groupingInfos[n].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:n,groupingKey:null}):this.onGroupExpanded.notify({level:n,groupingKey:null});this.refresh()}collapseAllGroups(e){this.expandCollapseAllGroups(e,!0)}expandAllGroups(e){this.expandCollapseAllGroups(e,!1)}expandCollapseGroup(e,t,n){this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed^n,this.refresh()}collapseGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(n=t,o=t.split(this.groupingDelimiter).length-1):(n=e.join(this.groupingDelimiter),o=e.length-1),this.expandCollapseGroup(o,n,!0),this.onGroupCollapsed.notify({level:o,groupingKey:n})}expandGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(o=t.split(this.groupingDelimiter).length-1,n=t):(o=e.length-1,n=e.join(this.groupingDelimiter)),this.expandCollapseGroup(o,n,!1),this.onGroupExpanded.notify({level:o,groupingKey:n})}getGroups(){return this.groups}extractGroups(e,t){let n,o,r=[],i={},a,l=t?t.level+1:0,d=this.groupingInfos[l];for(let u=0,f=d.predefinedValues?.length??0;u<f;u++)o=d.predefinedValues?.[u],n=i[o],n||(n=new Wm,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n);for(let u=0,f=e.length;u<f;u++)a=e[u],o=d.getterIsAFn?d.getter(a):a[d.getter],n=i[o],n||(n=new Wm,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n),n.rows[n.count++]=a;if(l<this.groupingInfos.length-1)for(let u=0;u<r.length;u++)n=r[u],n.groups=this.extractGroups(n.rows,n);return r.length&&this.addTotals(r,l),r.sort(this.groupingInfos[l].comparer),r}calculateTotals(e){let t=e.group,n=this.groupingInfos[t.level??0],o=t.level===this.groupingInfos.length,r,i=n.aggregators.length;if(!o&&n.aggregateChildGroups){let a=t.groups?.length??0;for(;a--;)t.groups[a].totals.initialized||this.calculateTotals(t.groups[a].totals)}for(;i--;)r=n.aggregators[i],r.init(),!o&&n.aggregateChildGroups?n.compiledAccumulators[i].call(r,t.groups):n.compiledAccumulators[i].call(r,t.rows),r.storeResult(e);e.initialized=!0}addGroupTotals(e){let t=this.groupingInfos[e.level],n=new SB;n.group=e,e.totals=n,t.lazyTotalsCalculation||this.calculateTotals(n)}addTotals(e,t){t=t||0;let n=this.groupingInfos[t],o=n.collapsed,r=this.toggledGroupsByLevel[t],i=e.length,a;for(;i--;)a=e[i],!(a.collapsed&&!n.aggregateCollapsed)&&(a.groups&&this.addTotals(a.groups,t+1),n.aggregators?.length&&(n.aggregateEmpty||a.rows.length||a.groups?.length)&&this.addGroupTotals(a),a.collapsed=o^r[a.groupingKey],a.title=n.formatter?n.formatter(a):a.value)}flattenGroupedRows(e,t){t=t||0;let n=this.groupingInfos[t],o=[],r,i=0,a;for(let l=0,d=e.length;l<d;l++){if(a=e[l],o[i++]=a,!a.collapsed){r=a.groups?this.flattenGroupedRows(a.groups,t+1):a.rows;for(let u=0,f=r.length;u<f;u++)o[i++]=r[u]}a.totals&&n.displayTotalsRow&&(!a.collapsed||n.aggregateCollapsed)&&(o[i++]=a.totals)}return o}compileAccumulatorLoopCSPSafe(e){return e.accumulate?function(t){let n;for(let o=0;o<t.length;o++){let r=t[o];n=e.accumulate.call(e,r)}return n}:function(){}}compileFilterCSPSafe(e,t){if(typeof this.filterCSPSafe!="function")return[];let n=[],o=e.length;for(let r=0;r<o;r++)this.filterCSPSafe(e[r],t)&&n.push(e[r]);return n}compileFilter(e=!1){if(e)return null;let t=qn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args",i),l="compiledFilter";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCaching(e=!1){if(e)return null;let t=qn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args,_cache",i),l="compiledFilterWithCaching";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCachingCSPSafe(e,t,n){if(typeof this.filterCSPSafe!="function")return[];let o=[],r=e.length;for(let i=0;i<r;i++)(n[i]||this.filterCSPSafe(e[i],t))&&o.push(e[i]);return o}setFunctionName(e,t){try{Object.defineProperty(e,"name",{writable:!0,value:t})}catch{e.name=t}}uncompiledFilter(e,t){let n=[],o=0;for(let r=0,i=e.length;r<i;r++)this.filter?.(e[r],t)&&(n[o++]=e[r]);return n}uncompiledFilterWithCaching(e,t,n){let o=[],r=0,i;for(let a=0,l=e.length;a<l;a++)i=e[a],n[a]?o[r++]=i:this.filter?.(i,t)&&(o[r++]=i,n[a]=!0);return o}getFilteredAndPagedItems(e){if(this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter){let n,o;this._options.useCSPSafeFilter?(n=this._options.inlineFilters?this.compiledFilterCSPSafe:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCachingCSPSafe:this.uncompiledFilterWithCaching):(n=this._options.inlineFilters?this.compiledFilter:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCaching:this.uncompiledFilterWithCaching),this.refreshHints.isFilterNarrowing?this.filteredItems=n.call(this,this.filteredItems,this.filterArgs):this.refreshHints.isFilterExpanding?this.filteredItems=o.call(this,e,this.filterArgs,this.filterCache):this.refreshHints.isFilterUnchanged||(this.filteredItems=n.call(this,e,this.filterArgs))}else this.filteredItems=this.pagesize?e:e.concat();let t;return this.pagesize?(this.filteredItems.length<=this.pagenum*this.pagesize&&(this.filteredItems.length===0?this.pagenum=0:this.pagenum=Math.floor((this.filteredItems.length-1)/this.pagesize)),t=this.filteredItems.slice(this.pagesize*this.pagenum,this.pagesize*this.pagenum+this.pagesize)):t=this.filteredItems,{totalRows:this.filteredItems.length,rows:t}}getRowDiffs(e,t){let n,o,r,i=[],a=0,l=Math.max(t.length,e.length);this.refreshHints?.ignoreDiffsBefore&&(a=Math.max(0,Math.min(t.length,this.refreshHints.ignoreDiffsBefore))),this.refreshHints?.ignoreDiffsAfter&&(l=Math.min(t.length,Math.max(0,this.refreshHints.ignoreDiffsAfter)));for(let d=a,u=e.length;d<l;d++)d>=u?i[i.length]=d:(n=t[d],o=e[d],(!n||this.groupingInfos.length&&(r=n.__nonDataRow||o.__nonDataRow)&&n.__group!==o.__group||n.__group&&!n.equals(o)||r&&(n.__groupTotals||o.__groupTotals)||n[this.idProperty]!==o[this.idProperty]||this.updated?.[n[this.idProperty]])&&(i[i.length]=d));return i}recalc(e){this.rowsById=void 0,(this.refreshHints.isFilterNarrowing!==this.prevRefreshHints.isFilterNarrowing||this.refreshHints.isFilterExpanding!==this.prevRefreshHints.isFilterExpanding)&&(this.filterCache=[]);let t=this.getFilteredAndPagedItems(e);this.totalRows=t.totalRows;let n=t.rows;this.groups=[],this.groupingInfos.length&&(this.groups=this.extractGroups(n),this.groups.length&&(n=this.flattenGroupedRows(this.groups)));let o=this.getRowDiffs(this.rows,n);return this.rows=n,o}refresh(){if(this.suspend)return;let e=qn.extend(!0,{},this.getPagingInfo()),t=this.rows.length,n=this.totalRows,o=this.recalc(this.items);this.pagesize&&this.totalRows<this.pagenum*this.pagesize&&(this.pagenum=Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1),o=this.recalc(this.items)),this.updated=null,this.prevRefreshHints=this.refreshHints,this.refreshHints={},n!==this.totalRows&&this.onBeforePagingInfoChanged.notify(e,null,this).getReturnValue()!==!1&&this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),t!==this.rows.length&&this.onRowCountChanged.notify({previous:t,current:this.rows.length,itemCount:this.items.length,dataView:this,callingOnRowsChanged:o.length>0},null,this),o.length>0&&this.onRowsChanged.notify({rows:o,itemCount:this.items.length,dataView:this,calledOnRowCountChanged:t!==this.rows.length},null,this),(t!==this.rows.length||o.length>0)&&this.onRowsOrCountChanged.notify({rowsDiff:o,previousRowCount:t,currentRowCount:this.rows.length,itemCount:this.items.length,rowCountChanged:t!==this.rows.length,rowsChanged:o.length>0,dataView:this},null,this)}syncGridSelection(e,t,n){this._grid=e;let o;this.selectedRowIds=this.mapRowsToIds(e.getSelectedRows());let r=a=>{a===!1?this.selectedRowIds=[]:this.selectedRowIds.sort().join(",")!==a.sort().join(",")&&(this.selectedRowIds=a)},i=()=>{if((this.selectedRowIds||[]).length>0&&!o){o=!0;let a=this.mapIdsToRows(this.selectedRowIds||[]);if(!t){let l={grid:this._grid,ids:this.mapRowsToIds(a),rows:a,dataView:this};this.preSelectedRowIdsChangeFn(l),this.onSelectedRowIdsChanged.notify(Object.assign(l,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new jd,this)}e.setSelectedRows(a),o=!1}};return e.onSelectedRowsChanged.subscribe((a,l)=>{if(!o){let d=this.mapRowsToIds(l.rows),u={grid:this._grid,ids:d,rows:l.rows,added:!0,dataView:this};this.preSelectedRowIdsChangeFn(u),this.onSelectedRowIdsChanged.notify(Object.assign(u,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new jd,this)}}),this.preSelectedRowIdsChangeFn=a=>{if(!o){if(o=!0,typeof a.added>"u")r(a.ids);else{let l;if(a.added)n&&e.getOptions().multiSelect?l=(this.selectedRowIds?.filter(d=>this.getRowById(d)===void 0)).concat(a.ids):l=a.ids;else if(n&&e.getOptions().multiSelect){let d=new Set(a.ids);l=this.selectedRowIds?.filter(u=>!d.has(u))}else l=[];r(l)}o=!1}},this.onRowsOrCountChanged.subscribe(i.bind(this)),this.onSelectedRowIdsChanged}getAllSelectedIds(){return this.selectedRowIds}getAllSelectedFilteredIds(){return this.getAllSelectedFilteredItems().map(e=>e[this.idProperty])}setSelectedIds(e,t){let n=t?.isRowBeingAdded,o=t?.shouldTriggerEvent,r=t?.applyRowSelectionToGrid;n!==!1&&(n=!0);let i=this.mapIdsToRows(e),a={grid:this._grid,ids:e,rows:i,added:n,dataView:this};this.preSelectedRowIdsChangeFn?.(a),o!==!1&&this.onSelectedRowIdsChanged.notify(Object.assign(a,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new jd,this),r!==!1&&this._grid&&this._grid.setSelectedRows(i)}getAllSelectedItems(){let e=[];return this.getAllSelectedIds().forEach(t=>{e.push(this.getItemById(t))}),e}getAllSelectedFilteredItems(){if(!Array.isArray(this.selectedRowIds))return[];let e=new Set(this.selectedRowIds);return this.filteredItems.filter(t=>e.has(t[this.idProperty]))||[]}syncGridCellCssStyles(e,t){let n,o,r=a=>{n={},typeof a=="object"&&Object.keys(a).forEach(l=>{if(a){let d=this.rows[l][this.idProperty];n[d]=a[l]}})};r(e.getCellCssStyles(t));let i=()=>{if(typeof n=="object"){o=!0,this.ensureRowsByIdCache();let a={};Object.keys(n).forEach(l=>{let d=this.rowsById?.[l];qn.isDefined(d)&&(a[d]=n[l])}),e.setCellCssStyles(t,a),o=!1}};e.onCellCssStylesChanged.subscribe((a,l)=>{o||t===l.key&&(l.hash?r(l.hash):(e.onCellCssStylesChanged.unsubscribe(),this.onRowsOrCountChanged.unsubscribe(i)))}),this.onRowsOrCountChanged.subscribe(i.bind(this))}},jl=Mo,Bd=yo,bu=class wu{constructor(t){this.args=t,k(this,"input"),k(this,"defaultValue"),k(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=Bd.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?zm:Ym),this.input.focus(),this.input.select(),this.args.compositeEditorOptions&&this.input.addEventListener("change",this.onChange.bind(this))}onChange(){let t=this.args.grid.getActiveCell();this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(this.args.compositeEditorOptions.formValues,this.serializeValue()),this.args.grid.onCompositeEditorChange.notify({row:t?.row??0,cell:t?.cell??0,item:this.args.item,column:this.args.column,formValues:this.args.compositeEditorOptions.formValues,grid:this.args.grid,editors:this.args.compositeEditorOptions.editors})}destroy(){this.input.removeEventListener("keydown",this.navOnLR?zm:Ym),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return Bd.isDefined(t)||(t=wu.DefaultDecimalPlaces),!t&&t!==0?null:t}loadValue(t){this.defaultValue=t[this.args.column.field];let n=this.getDecimalPlaces();n!==null&&(this.defaultValue||this.defaultValue===0)&&this.defaultValue?.toFixed&&(this.defaultValue=this.defaultValue.toFixed(n)),this.input.value=String(this.defaultValue??""),this.input.defaultValue=String(this.defaultValue??""),this.input.select()}serializeValue(){let t=parseFloat(this.input.value);wu.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;let n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!(this.input.value===""&&!Bd.isDefined(this.defaultValue))&&this.input.value!==this.defaultValue}validate(){if(isNaN(this.input.value))return{valid:!1,msg:"Please enter a valid number"};if(this.args.column.validator){let t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}};k(bu,"DefaultDecimalPlaces"),k(bu,"AllowEmptyValue",!1);var Hm=bu;function zm(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===jl.LEFT&&t>0||e.keyCode===jl.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function Ym(e){(e.keyCode===jl.LEFT||e.keyCode===jl.RIGHT)&&e.stopImmediatePropagation()}var RB=Vc,gr=Uj,Le=Jr,xi=la,TB=zj,kn=Db,Co=Mo,EB=Yj,kB=Vh,gs=qj,Nr=Gj,V=yo,Wd=Kj,Um=jh,qm=Qj,Gm=Jj,PB=class{constructor(e,t,n,o,r){if(this.container=e,this.data=t,this.columns=n,this.externalPubSub=r,k(this,"slickGridVersion","5.15.5"),k(this,"cid",""),k(this,"onActiveCellChanged"),k(this,"onActiveCellPositionChanged"),k(this,"onAddNewRow"),k(this,"onAfterSetColumns"),k(this,"onAutosizeColumns"),k(this,"onBeforeAppendCell"),k(this,"onBeforeCellEditorDestroy"),k(this,"onBeforeColumnsResize"),k(this,"onBeforeDestroy"),k(this,"onBeforeEditCell"),k(this,"onBeforeFooterRowCellDestroy"),k(this,"onBeforeHeaderCellDestroy"),k(this,"onBeforeHeaderRowCellDestroy"),k(this,"onBeforeRemoveCachedRow"),k(this,"onBeforeSetColumns"),k(this,"onBeforeSort"),k(this,"onBeforeUpdateColumns"),k(this,"onCellChange"),k(this,"onCellCssStylesChanged"),k(this,"onClick"),k(this,"onColumnsReordered"),k(this,"onColumnsDrag"),k(this,"onColumnsResized"),k(this,"onColumnsResizeDblClick"),k(this,"onCompositeEditorChange"),k(this,"onContextMenu"),k(this,"onDrag"),k(this,"onDblClick"),k(this,"onDragInit"),k(this,"onDragStart"),k(this,"onDragEnd"),k(this,"onFooterClick"),k(this,"onFooterContextMenu"),k(this,"onFooterRowCellRendered"),k(this,"onHeaderCellRendered"),k(this,"onHeaderClick"),k(this,"onHeaderContextMenu"),k(this,"onHeaderMouseEnter"),k(this,"onHeaderMouseLeave"),k(this,"onHeaderRowCellRendered"),k(this,"onHeaderRowMouseEnter"),k(this,"onHeaderRowMouseLeave"),k(this,"onPreHeaderContextMenu"),k(this,"onPreHeaderClick"),k(this,"onKeyDown"),k(this,"onMouseEnter"),k(this,"onMouseLeave"),k(this,"onRendered"),k(this,"onScroll"),k(this,"onSelectedRowsChanged"),k(this,"onSetOptions"),k(this,"onActivateChangedOptions"),k(this,"onSort"),k(this,"onValidationError"),k(this,"onViewportChanged"),k(this,"scrollbarDimensions"),k(this,"maxSupportedCssHeight"),k(this,"canvas",null),k(this,"canvas_context",null),k(this,"_options"),k(this,"_defaults",{alwaysShowVerticalScroll:!1,alwaysAllowHorizontalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableHtmlRendering:!0,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,autoEditNewRow:!0,autoCommitEdit:!1,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,unorderableColumnCssClass:"unorderable",asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,auto:!1,nonce:"",editorLock:TB,showColumnHeader:!0,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,createTopHeaderPanel:!1,showPreHeaderPanel:!1,showTopHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,preHeaderPanelWidth:"auto",topHeaderPanelHeight:25,topHeaderPanelWidth:"auto",formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",rowHighlightCssClass:"highlight-animate",rowHighlightDuration:400,selectedCellCssClass:"selected",multiSelect:!0,enableCellRowSpan:!1,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,frozenBottom:!1,frozenColumn:-1,frozenRow:-1,frozenRightViewportMinWidth:100,throwWhenFrozenNotAllViewable:!1,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter:this.defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,preventDragFromKeys:["ctrlKey","metaKey"],showCellSelection:!0,viewportClass:void 0,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1,enableMouseWheelScrollHandler:!0,doPaging:!0,autosizeColsMode:kn.LegacyOff,autosizeColPaddingPx:4,rowTopOffsetRenderType:"top",scrollRenderThrottling:10,autosizeTextAvgToMWidthRatio:.75,viewportSwitchToScrollModeWidthPercent:void 0,viewportMinWidthPx:void 0,viewportMaxWidthPx:void 0,suppressCssChangesOnHiddenInit:!1,ffMaxSupportedCssHeight:6e6,maxSupportedCssHeight:1e9,maxPartialRowSpanRemap:5e3,sanitizer:void 0,logSanitizedHtml:!1,mixinDefaults:!0,shadowRoot:void 0}),k(this,"_columnDefaults",{name:"",headerCssClass:null,defaultSortAsc:!0,focusable:!0,hidden:!1,minWidth:30,maxWidth:void 0,rerenderOnResize:!1,reorderable:!0,resizable:!0,sortable:!1,selectable:!0}),k(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:gr.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:gs.FirstNRows,rowSelectionCount:100,valueFilterMode:Nr.None,widthEvalMode:Wd.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),k(this,"_columnResizeTimer"),k(this,"_executionBlockTimer"),k(this,"_flashCellTimer"),k(this,"_highlightRowTimer"),k(this,"th"),k(this,"h"),k(this,"ph"),k(this,"n"),k(this,"cj"),k(this,"page",0),k(this,"offset",0),k(this,"vScrollDir",1),k(this,"_bindingEventService",new RB),k(this,"initialized",!1),k(this,"_container"),k(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),k(this,"_focusSink"),k(this,"_focusSink2"),k(this,"_groupHeaders",[]),k(this,"_headerScroller",[]),k(this,"_headers",[]),k(this,"_headerRows"),k(this,"_headerRowScroller"),k(this,"_headerRowSpacerL"),k(this,"_headerRowSpacerR"),k(this,"_footerRow"),k(this,"_footerRowScroller"),k(this,"_footerRowSpacerL"),k(this,"_footerRowSpacerR"),k(this,"_preHeaderPanel"),k(this,"_preHeaderPanelScroller"),k(this,"_preHeaderPanelSpacer"),k(this,"_preHeaderPanelR"),k(this,"_preHeaderPanelScrollerR"),k(this,"_preHeaderPanelSpacerR"),k(this,"_topHeaderPanel"),k(this,"_topHeaderPanelScroller"),k(this,"_topHeaderPanelSpacer"),k(this,"_topPanelScrollers"),k(this,"_topPanels"),k(this,"_viewport"),k(this,"_canvas"),k(this,"_style"),k(this,"_boundAncestors",[]),k(this,"stylesheet"),k(this,"columnCssRulesL"),k(this,"columnCssRulesR"),k(this,"viewportH",0),k(this,"viewportW",0),k(this,"canvasWidth",0),k(this,"canvasWidthL",0),k(this,"canvasWidthR",0),k(this,"headersWidth",0),k(this,"headersWidthL",0),k(this,"headersWidthR",0),k(this,"viewportHasHScroll",!1),k(this,"viewportHasVScroll",!1),k(this,"headerColumnWidthDiff",0),k(this,"headerColumnHeightDiff",0),k(this,"cellWidthDiff",0),k(this,"cellHeightDiff",0),k(this,"absoluteColumnMinWidth"),k(this,"hasFrozenRows",!1),k(this,"frozenRowsHeight",0),k(this,"actualFrozenRow",-1),k(this,"paneTopH",0),k(this,"paneBottomH",0),k(this,"viewportTopH",0),k(this,"viewportBottomH",0),k(this,"topPanelH",0),k(this,"headerRowH",0),k(this,"footerRowH",0),k(this,"tabbingDirection",1),k(this,"_activeCanvasNode"),k(this,"_activeViewportNode"),k(this,"activePosX"),k(this,"activePosY"),k(this,"activeRow"),k(this,"activeCell"),k(this,"activeCellNode",null),k(this,"currentEditor",null),k(this,"serializedEditorValue"),k(this,"editController"),k(this,"_prevDataLength",0),k(this,"_prevInvalidatedRowsCount",0),k(this,"_rowSpanIsCached",!1),k(this,"_colsWithRowSpanCache",{}),k(this,"rowsCache",{}),k(this,"renderedRows",0),k(this,"numVisibleRows",0),k(this,"prevScrollTop",0),k(this,"scrollHeight",0),k(this,"scrollTop",0),k(this,"lastRenderedScrollTop",0),k(this,"lastRenderedScrollLeft",0),k(this,"prevScrollLeft",0),k(this,"scrollLeft",0),k(this,"selectionModel"),k(this,"selectedRows",[]),k(this,"plugins",[]),k(this,"cellCssClasses",{}),k(this,"columnsById",{}),k(this,"sortColumns",[]),k(this,"columnPosLeft",[]),k(this,"columnPosRight",[]),k(this,"pagingActive",!1),k(this,"pagingIsLastPage",!1),k(this,"scrollThrottle"),k(this,"h_editorLoader"),k(this,"h_postrender"),k(this,"h_postrenderCleanup"),k(this,"postProcessedRows",{}),k(this,"postProcessToRow",null),k(this,"postProcessFromRow",null),k(this,"postProcessedCleanupQueue",[]),k(this,"postProcessgroupId",0),k(this,"counter_rows_rendered",0),k(this,"counter_rows_removed",0),k(this,"_paneHeaderL"),k(this,"_paneHeaderR"),k(this,"_paneTopL"),k(this,"_paneTopR"),k(this,"_paneBottomL"),k(this,"_paneBottomR"),k(this,"_headerScrollerL"),k(this,"_headerScrollerR"),k(this,"_headerL"),k(this,"_headerR"),k(this,"_groupHeadersL"),k(this,"_groupHeadersR"),k(this,"_headerRowScrollerL"),k(this,"_headerRowScrollerR"),k(this,"_footerRowScrollerL"),k(this,"_footerRowScrollerR"),k(this,"_headerRowL"),k(this,"_headerRowR"),k(this,"_footerRowL"),k(this,"_footerRowR"),k(this,"_topPanelScrollerL"),k(this,"_topPanelScrollerR"),k(this,"_topPanelL"),k(this,"_topPanelR"),k(this,"_viewportTopL"),k(this,"_viewportTopR"),k(this,"_viewportBottomL"),k(this,"_viewportBottomR"),k(this,"_canvasTopL"),k(this,"_canvasTopR"),k(this,"_canvasBottomL"),k(this,"_canvasBottomR"),k(this,"_viewportScrollContainerX"),k(this,"_viewportScrollContainerY"),k(this,"_headerScrollContainer"),k(this,"_headerRowScrollContainer"),k(this,"_footerRowScrollContainer"),k(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),k(this,"_hiddenParents",[]),k(this,"oldProps",[]),k(this,"enforceFrozenRowHeightRecalc",!1),k(this,"columnResizeDragging",!1),k(this,"slickDraggableInstance",null),k(this,"slickMouseWheelInstances",[]),k(this,"slickResizableInstances",[]),k(this,"sortableSideLeftInstance"),k(this,"sortableSideRightInstance"),k(this,"logMessageCount",0),k(this,"logMessageMaxCount",30),k(this,"_pubSubService"),this._container=typeof this.container=="string"?document.querySelector(this.container):this.container,!this._container)throw new Error(`SlickGrid requires a valid container, ${this.container} does not exist in the DOM.`);this._pubSubService=r,this.onActiveCellChanged=new Le("onActiveCellChanged",r),this.onActiveCellPositionChanged=new Le("onActiveCellPositionChanged",r),this.onAddNewRow=new Le("onAddNewRow",r),this.onAfterSetColumns=new Le("onAfterSetColumns",r),this.onAutosizeColumns=new Le("onAutosizeColumns",r),this.onBeforeAppendCell=new Le("onBeforeAppendCell",r),this.onBeforeCellEditorDestroy=new Le("onBeforeCellEditorDestroy",r),this.onBeforeColumnsResize=new Le("onBeforeColumnsResize",r),this.onBeforeDestroy=new Le("onBeforeDestroy",r),this.onBeforeEditCell=new Le("onBeforeEditCell",r),this.onBeforeFooterRowCellDestroy=new Le("onBeforeFooterRowCellDestroy",r),this.onBeforeHeaderCellDestroy=new Le("onBeforeHeaderCellDestroy",r),this.onBeforeHeaderRowCellDestroy=new Le("onBeforeHeaderRowCellDestroy",r),this.onBeforeRemoveCachedRow=new Le("onRowRemovedFromCache",r),this.onBeforeSetColumns=new Le("onBeforeSetColumns",r),this.onBeforeSort=new Le("onBeforeSort",r),this.onBeforeUpdateColumns=new Le("onBeforeUpdateColumns",r),this.onCellChange=new Le("onCellChange",r),this.onCellCssStylesChanged=new Le("onCellCssStylesChanged",r),this.onClick=new Le("onClick",r),this.onColumnsReordered=new Le("onColumnsReordered",r),this.onColumnsDrag=new Le("onColumnsDrag",r),this.onColumnsResized=new Le("onColumnsResized",r),this.onColumnsResizeDblClick=new Le("onColumnsResizeDblClick",r),this.onCompositeEditorChange=new Le("onCompositeEditorChange",r),this.onContextMenu=new Le("onContextMenu",r),this.onDrag=new Le("onDrag",r),this.onDblClick=new Le("onDblClick",r),this.onDragInit=new Le("onDragInit",r),this.onDragStart=new Le("onDragStart",r),this.onDragEnd=new Le("onDragEnd",r),this.onFooterClick=new Le("onFooterClick",r),this.onFooterContextMenu=new Le("onFooterContextMenu",r),this.onFooterRowCellRendered=new Le("onFooterRowCellRendered",r),this.onHeaderCellRendered=new Le("onHeaderCellRendered",r),this.onHeaderClick=new Le("onHeaderClick",r),this.onHeaderContextMenu=new Le("onHeaderContextMenu",r),this.onHeaderMouseEnter=new Le("onHeaderMouseEnter",r),this.onHeaderMouseLeave=new Le("onHeaderMouseLeave",r),this.onHeaderRowCellRendered=new Le("onHeaderRowCellRendered",r),this.onHeaderRowMouseEnter=new Le("onHeaderRowMouseEnter",r),this.onHeaderRowMouseLeave=new Le("onHeaderRowMouseLeave",r),this.onPreHeaderClick=new Le("onPreHeaderClick",r),this.onPreHeaderContextMenu=new Le("onPreHeaderContextMenu",r),this.onKeyDown=new Le("onKeyDown",r),this.onMouseEnter=new Le("onMouseEnter",r),this.onMouseLeave=new Le("onMouseLeave",r),this.onRendered=new Le("onRendered",r),this.onScroll=new Le("onScroll",r),this.onSelectedRowsChanged=new Le("onSelectedRowsChanged",r),this.onSetOptions=new Le("onSetOptions",r),this.onActivateChangedOptions=new Le("onActivateChangedOptions",r),this.onSort=new Le("onSort",r),this.onValidationError=new Le("onValidationError",r),this.onViewportChanged=new Le("onViewportChanged",r),this.initialize(o)}init(){this.finishInitialization()}initialize(e){if(e?.mixinDefaults?(this._options||(this._options=e),V.applyDefaults(this._options,this._defaults)):this._options=V.extend(!0,{},this._defaults,e),this.scrollThrottle=this.actionThrottle(this.render.bind(this),this._options.scrollRenderThrottling),this.maxSupportedCssHeight=this.maxSupportedCssHeight||this.getMaxSupportedCssHeight(),this.validateAndEnforceOptions(),this._columnDefaults.width=this._options.defaultColumnWidth,this._options.suppressCssChangesOnHiddenInit||this.cacheCssForHiddenInit(),this.updateColumnProps(),this._options.enableColumnReorder&&(!Sortable||!Sortable.create))throw new Error("SlickGrid requires Sortable.js module to be loaded");this.editController={commitCurrentEdit:this.commitCurrentEdit.bind(this),cancelCurrentEdit:this.cancelCurrentEdit.bind(this)},V.emptyElement(this._container),this._container.style.outline=String(0),this._container.classList.add(this.uid),this._container.classList.add("ui-widget"),this._container.setAttribute("role","grid");let t=window.getComputedStyle(this._container);/relative|absolute|fixed/.test(t.position)||(this._container.style.position="relative"),this._focusSink=V.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=V.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=V.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||V.hide(this._topHeaderPanelScroller)),this._paneHeaderL=V.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=V.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=V.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=V.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=V.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=V.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=V.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderL),this._preHeaderPanelScroller.appendChild(document.createElement("div")),this._preHeaderPanel=V.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=V.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=V.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(V.hide(this._preHeaderPanelScroller),V.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=V.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=V.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-right"},this._paneHeaderR),this._headerScroller.push(this._headerScrollerL),this._headerScroller.push(this._headerScrollerR),this._headerL=V.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=V.createDomElement("div",{className:"slick-header-columns slick-header-columns-right",role:"row",style:{left:"-1000px"}},this._headerScrollerR),this._headers=[this._headerL,this._headerR],this._headerRowScrollerL=V.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=V.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=V.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=V.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=V.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=V.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=V.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=V.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(o=>{V.hide(o)}),this._options.showTopPanel||this._topPanelScrollers.forEach(o=>{V.hide(o)}),this._options.showHeaderRow||this._headerRowScroller.forEach(o=>{V.hide(o)}),this._viewportTopL=V.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=V.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=V.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=V.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-right",tabIndex:0},this._paneBottomR),this._viewport=[this._viewportTopL,this._viewportTopR,this._viewportBottomL,this._viewportBottomR],this._options.viewportClass&&this._viewport.forEach(o=>{o.classList.add(...V.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=V.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=V.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=V.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=V.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-right",tabIndex:0},this._viewportBottomR),this._canvas=[this._canvasTopL,this._canvasTopR,this._canvasBottomL,this._canvasBottomR],this.scrollbarDimensions=this.scrollbarDimensions||this.measureScrollbar();let n=this.getCanvasWidth()+this.scrollbarDimensions.width;this._activeCanvasNode=this._canvasTopL,this._topHeaderPanelSpacer&&V.width(this._topHeaderPanelSpacer,n),this._preHeaderPanelSpacer&&V.width(this._preHeaderPanelSpacer,n),this._headers.forEach(o=>{V.width(o,this.getHeadersWidth())}),V.width(this._headerRowSpacerL,n),V.width(this._headerRowSpacerR,n),this._options.createFooterRow&&(this._footerRowScrollerR=V.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=V.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),V.width(this._footerRowSpacerL,n),this._footerRowSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),V.width(this._footerRowSpacerR,n),this._footerRowL=V.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=V.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-right"},this._footerRowScrollerR),this._footerRow=[this._footerRowL,this._footerRowR],this._options.showFooterRow||this._footerRowScroller.forEach(o=>{V.hide(o)})),this._focusSink2=this._focusSink.cloneNode(!0),this._container.appendChild(this._focusSink2),this._options.explicitInitialization||this.finishInitialization()}finishInitialization(){this.initialized||(this.initialized=!0,this.getViewportWidth(),this.getViewportHeight(),this.measureCellPaddingAndBorder(),this.disableSelection(this._headers),this._options.enableTextSelectionOnCells||this._viewport.forEach(e=>{this._bindingEventService.bind(e,"selectstart",t=>{t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement})}),this.setFrozenOptions(),this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setScroller(),this.setOverflow(),this.updateColumnCaches(),this.createColumnHeaders(),this.createColumnFooter(),this.setupColumnSort(),this.createCssRules(),this.resizeCanvas(),this.bindAncestorScrollEvents(),this._bindingEventService.bind(this._container,"resize",this.resizeCanvas.bind(this)),this._viewport.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleScroll.bind(this))}),this._options.enableMouseWheelScrollHandler&&this._viewport.forEach(e=>{this.slickMouseWheelInstances.push(qm({element:e,onMouseWheel:this.handleMouseWheel.bind(this)}))}),this._headerScroller.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleHeaderContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleHeaderClick.bind(this))}),this._headerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleHeaderRowScroll.bind(this))}),this._options.createFooterRow&&(this._footerRow.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleFooterContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleFooterClick.bind(this))}),this._footerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleFooterRowScroll.bind(this))})),this._options.createTopHeaderPanel&&this._bindingEventService.bind(this._topHeaderPanelScroller,"scroll",this.handleTopHeaderPanelScroll.bind(this)),this._options.createPreHeaderPanel&&(this._bindingEventService.bind(this._preHeaderPanelScroller,"scroll",this.handlePreHeaderPanelScroll.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"click",this.handlePreHeaderClick.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"click",this.handlePreHeaderClick.bind(this))),this._bindingEventService.bind(this._focusSink,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(this._focusSink2,"keydown",this.handleKeyDown.bind(this)),this._canvas.forEach(e=>{this._bindingEventService.bind(e,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(e,"click",this.handleClick.bind(this)),this._bindingEventService.bind(e,"dblclick",this.handleDblClick.bind(this)),this._bindingEventService.bind(e,"contextmenu",this.handleContextMenu.bind(this)),this._bindingEventService.bind(e,"mouseover",this.handleCellMouseOver.bind(this)),this._bindingEventService.bind(e,"mouseout",this.handleCellMouseOut.bind(this))}),Um&&(this.slickDraggableInstance=Um({containerElement:this._container,allowDragFrom:"div.slick-cell",allowDragFromClosest:"div.slick-cell.dnd, div.slick-cell.cell-reorder",preventDragFromKeys:this._options.preventDragFromKeys,onDragInit:this.handleDragInit.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})),this._options.suppressCssChangesOnHiddenInit||this.restoreCssFromHiddenInit())}cacheCssForHiddenInit(){this._hiddenParents=V.parents(this._container,":hidden"),this.oldProps=[],this._hiddenParents.forEach(e=>{let t={};Object.keys(this.cssShow).forEach(n=>{this.cssShow&&(t[n]=e.style[n],e.style[n]=this.cssShow[n])}),this.oldProps.push(t)})}restoreCssFromHiddenInit(){let e=0;this._hiddenParents&&(this._hiddenParents.forEach(t=>{let n=this.oldProps[e++];Object.keys(this.cssShow).forEach(o=>{this.cssShow&&(t.style[o]=n[o])})}),this._hiddenParents=[])}registerPlugin(e){this.plugins.unshift(e),e.init(this)}unregisterPlugin(e){for(let t=this.plugins.length;t>=0;t--)if(this.plugins[t]===e){this.plugins[t]?.destroy(),this.plugins.splice(t,1);break}}destroy(e){this._bindingEventService.unbindAll(),this.slickDraggableInstance=this.destroyAllInstances(this.slickDraggableInstance),this.slickMouseWheelInstances=this.destroyAllInstances(this.slickMouseWheelInstances),this.slickResizableInstances=this.destroyAllInstances(this.slickResizableInstances),this.getEditorLock()?.cancelCurrentEdit(),this.trigger(this.onBeforeDestroy,{});let t=this.plugins.length;for(;t--;)this.unregisterPlugin(this.plugins[t]);this._options.enableColumnReorder&&typeof this.sortableSideLeftInstance?.destroy=="function"&&(this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy()),this.unbindAncestorScrollEvents(),this._bindingEventService.unbindByEventName(this._container,"resize"),this.removeCssRules(),this._canvas.forEach(r=>{this._bindingEventService.unbindByEventName(r,"keydown"),this._bindingEventService.unbindByEventName(r,"click"),this._bindingEventService.unbindByEventName(r,"dblclick"),this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"mouseover"),this._bindingEventService.unbindByEventName(r,"mouseout")}),this._viewport.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._headerScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._headerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._footerRow&&this._footerRow.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._footerRowScroller&&this._footerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._preHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._preHeaderPanelScroller,"scroll"),this._topHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._topHeaderPanelScroller,"scroll"),this._bindingEventService.unbindByEventName(this._focusSink,"keydown"),this._bindingEventService.unbindByEventName(this._focusSink2,"keydown");let n=this._container.querySelectorAll(".slick-resizable-handle");[].forEach.call(n,r=>{this._bindingEventService.unbindByEventName(r,"dblclick")});let o=this._container.querySelectorAll(".slick-header-column");[].forEach.call(o,r=>{this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave"),this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave")}),V.emptyElement(this._container),this._container.classList.remove(this.uid),this.clearAllTimers(),e&&this.destroyAllElements()}destroyAllInstances(e){if(e){let t=Array.isArray(e)?e:[e],n;for(;V.isDefined(n=t.pop());)n&&typeof n.destroy=="function"&&n.destroy()}return e=Array.isArray(e)?[]:null,e}destroyAllElements(){this._activeCanvasNode=null,this._activeViewportNode=null,this._boundAncestors=null,this._canvas=null,this._canvasTopL=null,this._canvasTopR=null,this._canvasBottomL=null,this._canvasBottomR=null,this._container=null,this._focusSink=null,this._focusSink2=null,this._groupHeaders=null,this._groupHeadersL=null,this._groupHeadersR=null,this._headerL=null,this._headerR=null,this._headers=null,this._headerRows=null,this._headerRowL=null,this._headerRowR=null,this._headerRowSpacerL=null,this._headerRowSpacerR=null,this._headerRowScrollContainer=null,this._headerRowScroller=null,this._headerRowScrollerL=null,this._headerRowScrollerR=null,this._headerScrollContainer=null,this._headerScroller=null,this._headerScrollerL=null,this._headerScrollerR=null,this._hiddenParents=null,this._footerRow=null,this._footerRowL=null,this._footerRowR=null,this._footerRowSpacerL=null,this._footerRowSpacerR=null,this._footerRowScroller=null,this._footerRowScrollerL=null,this._footerRowScrollerR=null,this._footerRowScrollContainer=null,this._preHeaderPanel=null,this._preHeaderPanelR=null,this._preHeaderPanelScroller=null,this._preHeaderPanelScrollerR=null,this._preHeaderPanelSpacer=null,this._preHeaderPanelSpacerR=null,this._topPanels=null,this._topPanelScrollers=null,this._style=null,this._topPanelScrollerL=null,this._topPanelScrollerR=null,this._topPanelL=null,this._topPanelR=null,this._paneHeaderL=null,this._paneHeaderR=null,this._paneTopL=null,this._paneTopR=null,this._paneBottomL=null,this._paneBottomR=null,this._viewport=null,this._viewportTopL=null,this._viewportTopR=null,this._viewportBottomL=null,this._viewportBottomR=null,this._viewportScrollContainerX=null,this._viewportScrollContainerY=null}getOptions(){return this._options}setOptions(e,t,n,o){this.prepareForOptionsChange(),this._options.enableAddRow!==e.enableAddRow&&this.invalidateRow(this.getDataLength()),e.frozenColumn!==void 0&&e.frozenColumn>=0&&(this.getViewports().forEach(i=>i.scrollLeft=0),this.handleScroll());let r=V.extend(!0,{},this._options);this._options=V.extend(this._options,e),this.trigger(this.onSetOptions,{optionsBefore:r,optionsAfter:this._options}),this.internal_setOptions(t,n,o)}activateChangedOptions(e,t,n){this.prepareForOptionsChange(),this.invalidateRow(this.getDataLength()),this.trigger(this.onActivateChangedOptions,{options:this._options}),this.internal_setOptions(e,t,n)}prepareForOptionsChange(){this.getEditorLock().commitCurrentEdit()&&this.makeActiveCellNormal()}internal_setOptions(e,t,n){this._options.showColumnHeader!==void 0&&this.setColumnHeaderVisibility(this._options.showColumnHeader),this.validateAndEnforceOptions(),this.setFrozenOptions(),this._options.frozenBottom!==void 0&&(this.enforceFrozenRowHeightRecalc=!0),this._viewport.forEach(o=>{o.style.overflowY=this._options.autoHeight?"hidden":"auto"}),e||this.render(),this.setScroller(),n||this.setOverflow(),t||this.setColumns(this.columns),this._options.enableMouseWheelScrollHandler&&this._viewport&&(!this.slickMouseWheelInstances||this.slickMouseWheelInstances.length===0)?this._viewport.forEach(o=>{this.slickMouseWheelInstances.push(qm({element:o,onMouseWheel:this.handleMouseWheel.bind(this)}))}):this._options.enableMouseWheelScrollHandler===!1&&this.destroyAllInstances(this.slickMouseWheelInstances)}validateAndEnforceOptions(){this._options.autoHeight&&(this._options.leaveSpaceForNewRows=!1),this._options.forceFitColumns&&(this._options.autosizeColsMode=kn.LegacyForceFit)}setSelectionModel(e){this.selectionModel&&(this.selectionModel.onSelectedRangesChanged.unsubscribe(this.handleSelectedRangesChanged.bind(this)),this.selectionModel.destroy&&this.selectionModel.destroy()),this.selectionModel=e,this.selectionModel&&(this.selectionModel.init(this),this.selectionModel.onSelectedRangesChanged.subscribe(this.handleSelectedRangesChanged.bind(this)))}getSelectionModel(){return this.selectionModel}setPaneFrozenClasses(){let e=this.hasFrozenColumns()?"add":"remove";for(let t of[this._paneHeaderL,this._paneTopL,this._paneBottomL])t.classList[e]("frozen")}hasFrozenColumns(){return this._options.frozenColumn>-1}updateColumnHeader(e,t,n){if(this.initialized){let o=this.getColumnIndex(e);if(!V.isDefined(o))return;let r=this.columns[o],i=this.getColumnByIndex(o);i&&(t!==void 0&&(this.columns[o].name=t),n!==void 0&&(this.columns[o].toolTip=n),this.trigger(this.onBeforeHeaderCellDestroy,{node:i,column:r,grid:this}),i.setAttribute("title",n||""),t!==void 0&&this.applyHtmlCode(i.children[0],t),this.trigger(this.onHeaderCellRendered,{node:i,column:r,grid:this}))}}getHeader(e){if(!e)return this.hasFrozenColumns()?this._headers:this._headerL;let t=this.getColumnIndex(e.id);return this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL}getHeaderColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n=this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?t<=this._options.frozenColumn?t:t-this._options.frozenColumn-1:t;return n.children[o]}getHeaderRow(){return this.hasFrozenColumns()?this._headerRows:this._headerRows[0]}getFooterRow(){return this.hasFrozenColumns()?this._footerRow:this._footerRow[0]}getHeaderRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._headerRowL:(n=this._headerRowR,t-=this._options.frozenColumn+1):n=this._headerRowL,n.children[t]}getFooterRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._footerRowL:(n=this._footerRowR,t-=this._options.frozenColumn+1):n=this._footerRowL,n.children[t]}createColumnFooter(){if(this._options.createFooterRow){this._footerRow.forEach(e=>{e.querySelectorAll(".slick-footerrow-column").forEach(t=>{let n=V.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:n,grid:this})})}),V.emptyElement(this._footerRowL),V.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let n=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},this.hasFrozenColumns()&&e>this._options.frozenColumn?this._footerRowR:this._footerRowL),o=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;o&&n.classList.add(o),V.storage.put(n,"column",t),this.trigger(this.onFooterRowCellRendered,{node:n,column:t,grid:this})}}}setupColumnSort(){this._headers.forEach(e=>{this._bindingEventService.bind(e,"click",t=>{if(this.columnResizeDragging||t.target.classList.contains("slick-resizable-handle"))return;let n=t.target.closest(".slick-header-column");if(!n)return;let o=V.storage.get(n,"column");if(o.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let r=this.sortColumns.slice(),i=null,a=0;for(;a<this.sortColumns.length;a++)if(this.sortColumns[a].columnId===o.id){i=this.sortColumns[a],i.sortAsc=!i.sortAsc;break}let l=!!i;this._options.tristateMultiColumnSort?(i||(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o}),l&&i.sortAsc&&(this.sortColumns.splice(a,1),i=null),this._options.multiColumnSort||(this.sortColumns=[]),i&&(!l||!this._options.multiColumnSort)&&this.sortColumns.push(i)):t.metaKey&&this._options.multiColumnSort?i&&this.sortColumns.splice(a,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),i?this.sortColumns.length===0&&this.sortColumns.push(i):(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o},this.sortColumns.push(i)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:r,sortCols:this.sortColumns.map(u=>{let f=this.columns[this.getColumnIndex(u.columnId)];return!f||f.hidden?null:{columnId:f.id,sortCol:f,sortAsc:u.sortAsc}}).filter(u=>u)}:d={multiColumnSort:!1,previousSortColumns:r,columnId:this.sortColumns.length>0?o.id:null,sortCol:this.sortColumns.length>0?o:null,sortAsc:this.sortColumns.length>0?this.sortColumns[0].sortAsc:!0},this.trigger(this.onBeforeSort,d,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,d,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let n=V.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:n,grid:this})})}),V.emptyElement(this._headerL),V.emptyElement(this._headerR),this.getHeadersWidth(),V.width(this._headerL,this.headersWidthL),V.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let n=V.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:n,grid:this})})}),V.emptyElement(this._headerRowL),V.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=V.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),V.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=V.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),V.emptyElement(this._footerRowR)));for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(t.hidden)continue;let n=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerRowL:this._headerRowR:this._headerRowL,r=V.createDomElement("div",{id:`${this.uid+t.id}`,dataset:{id:String(t.id)},role:"columnheader",className:"ui-state-default slick-state-default slick-header-column"},n);t.toolTip&&(r.title=t.toolTip),t.reorderable||r.classList.add(this._options.unorderableColumnCssClass);let i=V.createDomElement("span",{className:"slick-column-name"},r);this.applyHtmlCode(i,t.name),V.width(r,t.width-this.headerColumnWidthDiff);let a=t.headerCssClass||null;if(a&&r.classList.add(...V.classNameToList(a)),a=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null,a&&r.classList.add(a),this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseEnter.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseLeave.bind(this)),V.storage.put(r,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(l=>{t.headerCellAttrs.hasOwnProperty(l)&&r.setAttribute(l,t.headerCellAttrs[l])}),t.sortable&&(r.classList.add("slick-header-sortable"),V.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},r),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&V.createDomElement("div",{className:"slick-sort-indicator-numbered"},r)),this.trigger(this.onHeaderCellRendered,{node:r,column:t,grid:this}),this._options.showHeaderRow){let l=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},o),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&l.classList.add(d),this._bindingEventService.bind(l,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(l,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),V.storage.put(l,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:l,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let l=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},l);V.storage.put(d,"column",t),this.trigger(this.onFooterRowCellRendered,{node:d,column:t,grid:this})}}this.setSortColumns(this.sortColumns),this.setupColumnResize(),this._options.enableColumnReorder&&(typeof this._options.enableColumnReorder=="function"?this._options.enableColumnReorder(this,this._headers,this.headerColumnWidthDiff,this.setColumns,this.setupColumnResize,this.columns,this.getColumnIndex,this.uid,this.trigger):this.setupColumnReorder())}setupColumnReorder(){this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy();let e=null,t=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft+10,n=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,o=!1,r={animation:50,direction:"horizontal",chosenClass:"slick-header-column-active",ghostClass:"slick-sortable-placeholder",draggable:".slick-header-column",dragoverBubble:!1,revertClone:!0,scroll:!this.hasFrozenColumns(),filter:`.${this._options.unorderableColumnCssClass}`,onMove:i=>!i.related.classList.contains(this._options.unorderableColumnCssClass),onStart:i=>{i.item.classList.add("slick-header-column-active"),o=!this.hasFrozenColumns()||V.offset(i.item).left>V.offset(this._viewportScrollContainerX).left,o&&i.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):o&&i.originalEvent.pageX<V.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(n,100)):(window.clearInterval(e),e=null)},onEnd:i=>{if(i.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let a=this.sortableSideLeftInstance?.toArray()??[];a=a.concat(this.sortableSideRightInstance?.toArray()??[]);let l=[];for(let d=0;d<a.length;d++)l.push(this.columns[this.getColumnIndex(a[d])]);this.setColumns(l),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),i.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,r),this.sortableSideRightInstance=Sortable.create(this._headerR,r)}getHeaderChildren(){let e=Array.from(this._headers[0].children),t=Array.from(this._headers[1].children);return e.concat(t)}handleResizeableDoubleClick(e){let t=e.target.parentElement.id.replace(this.uid,"");this.trigger(this.onColumnsResizeDblClick,{triggeredByColumn:t})}setupColumnResize(){if(typeof Gm>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,l=-1,d=0,u=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<u.length;p++)u[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),l=p);if(a!==void 0)for(let p=0;p<u.length;p++){let y=u[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=l)continue;let w=V.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(w,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(Gm({resizeableElement:y,resizeableHandleElement:w,onResizeStart:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,d=0,m.resizeableElement.classList.add("slick-header-column-active");let P=null,D=null;for(let C=0;C<u.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=u[C].offsetWidth);if(this._options.forceFitColumns)for(P=0,D=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(D!==null&&(n.maxWidth?D+=n.maxWidth-(n.previousWidth||0):D=null),P+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));let x=0,S=0;for(e=0;e<=p;e++)n=f[e],n?.resizable&&(S!==null&&(n.maxWidth?S+=n.maxWidth-(n.previousWidth||0):S=null),x+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));P===null&&(P=1e5),x===null&&(x=1e5),D===null&&(D=1e5),S===null&&(S=1e5),i=o+Math.min(P,S),r=o-Math.min(x,D)},onResize:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;this.columnResizeDragging=!0;let P,D=Math.min(i,Math.max(r,v.pageX))-o,x,S=0,C=0,O=this.getViewportInnerWidth();if(D<0){for(x=D,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(P=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<P?(x+=(n.previousWidth||0)-P,n.width=P):(n.width=(n.previousWidth||0)+x,x=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-D,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-D,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0))}else{for(x=D,S=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x)x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let A=(n.previousWidth||0)+x,F=this.canvasWidthL+x;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(A>d&&F<O-this._options.frozenRightViewportMinWidth&&(d=A),n.width=F+this._options.frozenRightViewportMinWidth>O?d:A):n.width=A,x=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-D,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(P=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<P?(x+=(n.previousWidth||0)-P,n.width=P):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0)}this.hasFrozenColumns()&&S!==this.canvasWidthL&&(V.width(this._headerL,S+1e3),V.setStyleSize(this._paneHeaderR,"left",S)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:m.resizeableElement,resizeHandle:m.resizeableHandleElement})},onResizeEnd:(b,m)=>{m.resizeableElement.classList.remove("slick-header-column-active");let v=m.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:v}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let P;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(P=u[e].offsetWidth,n.previousWidth!==P&&n.rerenderOnResize&&this.invalidateAllRows());this.updateCanvasWidth(!0),this.render(),this.trigger(this.onColumnsResized,{triggeredByColumn:v}),window.clearTimeout(this._columnResizeTimer),this._columnResizeTimer=window.setTimeout(()=>{this.columnResizeDragging=!1},300)}}))}}setFrozenOptions(){if(this._options.frozenColumn=this._options.frozenColumn>=0&&this._options.frozenColumn<this.columns.length?parseInt(this._options.frozenColumn,10):-1,this._options.frozenRow>-1){this.hasFrozenRows=!0,this.frozenRowsHeight=this._options.frozenRow*this._options.rowHeight;let e=this.getDataLength();this.actualFrozenRow=this._options.frozenBottom?e-this._options.frozenRow:this._options.frozenRow}else this.hasFrozenRows=!1}autosizeColumn(e,t){let n=null,o=-1;if(typeof e=="number")n=this.columns[e],o=e;else if(typeof e=="string")for(let i=0;i<this.columns.length;i++)this.columns[i].id===e&&(n=this.columns[i],o=i);if(!n)return;let r=this.getCanvasNode(0,0);this.getColAutosizeWidth(n,o,r,t||!1,o)}treatAsLocked(e={}){return!e.ignoreHeaderText&&!e.sizeToRemaining&&e.contentSizePx===e.headerWidthPx&&(e.widthPx??0)<100}autosizeColumns(e,t){let n=!this._hiddenParents?.length;n&&this.cacheCssForHiddenInit(),this.internalAutosizeColumns(e,t),n&&this.restoreCssFromHiddenInit()}internalAutosizeColumns(e,t){if(e=e||this._options.autosizeColsMode,e===kn.LegacyForceFit||e===kn.LegacyOff){this.legacyAutosizeColumns();return}if(e===kn.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let n=this.getCanvasNode(0,0),o=this.getViewportInnerWidth(),r,i,a,l=!1,d=0,u=0,f=0,p=0,y=0;for(r=0;r<this.columns.length;r++)i=this.columns[r],this.getColAutosizeWidth(i,r,n,t||!1,r),y+=i.autoSize?.autosizeMode===gr.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===gr.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,d+=i.autoSize?.widthPx||0,u+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let w=d-u;if(e===kn.FitViewportToCols){let b=d+(this.scrollbarDimensions?.width??0);e=kn.IgnoreViewport,this._options.viewportMaxWidthPx&&b>this._options.viewportMaxWidthPx?(b=this._options.viewportMaxWidthPx,e=kn.FitColsToViewport):this._options.viewportMinWidthPx&&b<this._options.viewportMinWidthPx&&(b=this._options.viewportMinWidthPx,e=kn.FitColsToViewport),V.width(this._container,b)}if(e===kn.FitColsToViewport)if(w>0&&u<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let b=o-u;i.autoSize?.sizeToRemaining?a=b*(i.autoSize?.widthPx||0)/w:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(l=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&u+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=kn.IgnoreViewport;else{let b=u-y,m=o-y-f;for(r=0;r<this.columns.length;r++)i=this.columns[r],!(!i||i.hidden)&&(a=i.width||0,i.autoSize?.autosizeMode!==gr.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=m/b*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),b-=i.autoSize?.widthPx||0,m-=a)),this.treatAsLocked(i.autoSize)&&(a=i.autoSize?.widthPx||0,a<(i.minWidth||0)&&(a=i.minWidth||0)),i.rerenderOnResize&&i.width!==a&&(l=!0),i.width=a)}if(e===kn.IgnoreViewport)for(r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(a=this.columns[r].autoSize?.widthPx||0,this.columns[r].rerenderOnResize&&this.columns[r].width!==a&&(l=!0),this.columns[r].width=a);this.reRenderColumns(l)}getColAutosizeWidth(e,t,n,o,r){let i=e.autoSize;if(i.widthPx=e.width,i.autosizeMode===gr.Locked||i.autosizeMode===gr.Guide)return;let a=this.getDataLength(),l=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(i.autosizeMode===gr.ContentIntelligent){let f=i.colDataTypeOf,p;if(a>0){let y=this.getDataItem(0);y&&(p=y[e.field],l.test(p)&&(p=Date.parse(p)),f=typeof p,f==="object"&&(p instanceof Date&&(f="date"),typeof moment<"u"&&p instanceof moment&&(f="moment")))}f==="boolean"&&(i.colValueArray=[!0,!1]),f==="number"&&(i.valueFilterMode=Nr.GetGreatestAndSub,i.rowSelectionMode=gs.AllRows),f==="string"&&(i.valueFilterMode=Nr.GetLongestText,i.rowSelectionMode=gs.AllRows,i.allowAddlPercent=5),f==="date"&&(i.colValueArray=[new Date(2009,8,30,12,20,20)]),f==="moment"&&typeof moment<"u"&&(i.colValueArray=[moment([2009,8,30,12,20,20])])}let d=i.contentSizePx=this.getColContentSize(e,t,n,o,r);d===0&&(d=i.widthPx||0);let u=i.allowAddlPercent?1+i.allowAddlPercent/100:1;d=d*u+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(i.autosizeMode===gr.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),i.widthPx=d}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,l,d,u=0,f=0;if(i.headerWidthPx=0,i.ignoreHeaderText||(i.headerWidthPx=this.getColHeaderWidth(e)),i.headerWidthPx===0&&(i.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),i.colValueArray)return f=this.getColWidth(e,n,i.colValueArray),Math.max(i.headerWidthPx,f);let p={};p.colIndex=t,p.rowCount=this.getDataLength(),p.startIndex=0,p.endIndex=p.rowCount-1,p.valueArr=null,p.getRowVal=w=>this.getDataItem(w)[e.field];let y=(o?i.rowSelectionModeOnInit:void 0)||i.rowSelectionMode;if(y===gs.FirstRow&&(p.endIndex=0),y===gs.LastRow&&(p.endIndex=p.startIndex=p.rowCount-1),y===gs.FirstNRows&&(p.endIndex=Math.min(i.rowSelectionCount||0,p.rowCount)-1),i.valueFilterMode===Nr.DeDuplicate){let w={};for(l=p.startIndex;l<=p.endIndex;l++)w[p.getRowVal(l)]=!0;if(Object.keys)p.valueArr=Object.keys(w);else{p.valueArr=[];for(let b in w)w&&p.valueArr.push(b)}p.startIndex=0,p.endIndex=p.length-1}if(i.valueFilterMode===Nr.GetGreatestAndSub){let w,b=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),Math.abs(d)>b&&(w=d,b=Math.abs(d));w=""+w,w=Array(w.length+1).join("9"),w=+w,p.valueArr=[w],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Nr.GetLongestTextAndSub){for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length);d=Array(u+1).join("m"),a=this._options.autosizeTextAvgToMWidthRatio||0,p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Nr.GetLongestText){u=0;let w=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length,w=l);d=p.getRowVal(w),p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}return p.maxLen&&p.maxLen>30&&r>1&&(i.sizeToRemaining=!0),f=this.getColWidth(e,n,p)*a,Math.max(i.headerWidthPx,f)}getColWidth(e,t,n){let o=V.createDomElement("div",{className:"slick-row ui-widget-content"},t),r=V.createDomElement("div",{className:"slick-cell"},o);r.style.position="absolute",r.style.visibility="hidden",r.style.textOverflow="initial",r.style.whiteSpace="nowrap";let i,a,l=0,d="",u,f,p=e.autoSize.widthEvalMode===Wd.TextOnly;if(e.autoSize?.widthEvalMode===Wd.Auto){let y=!e.formatterOverride&&!e.formatter,w=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;p=y||w}if(this.canvas_context&&p){let y=getComputedStyle(r);for(this.canvas_context.font=y.fontSize+" "+y.fontFamily,i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,a=u?this.canvas_context.measureText(u).width:0,a>l&&(l=a,d=u);return r.textContent=d,a=r.offsetWidth,o.remove(),a}for(i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,this.applyFormatResultToCellNode(u,r),a=r.offsetWidth,a>l&&(l=a);return o.remove(),l}getColHeaderWidth(e){let t=0,n=this.getUID()+e.id,o=document.getElementById(n),r=`${n}_`,i=o.cloneNode(!0);if(o)i.id=r,i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",o.parentNode.insertBefore(i,o),t=i.offsetWidth,i.parentNode.removeChild(i);else{let a=this.getHeader(e);o=V.createDomElement("div",{id:r,className:"ui-state-default slick-state-default slick-header-column"},a);let l=V.createDomElement("span",{className:"slick-column-name"},o);this.applyHtmlCode(l,e.name),i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&o.classList.add(...V.classNameToList(e.headerCssClass)),t=o.offsetWidth,a.removeChild(o)}return t}legacyAutosizeColumns(){let e,t,n=0,o=0,r=0,i=[],a=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){i.push(0);continue}i.push(t.width||0),o+=t.width||0,t.resizable&&(n+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(r=o;o>a&&n;){let d=(o-a)/n;for(e=0;e<this.columns.length&&o>a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e];if(!t.resizable||u<=t.minWidth||u<=this.absoluteColumnMinWidth)continue;let f=Math.max(t.minWidth,this.absoluteColumnMinWidth),p=Math.floor(d*(u-f))||1;p=Math.min(p,u-f),o-=p,n-=p,i[e]-=p}if(r<=o)break;r=o}for(r=o;o<a;){let d=a/o;for(e=0;e<this.columns.length&&o<a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e],f;!t.resizable||t.maxWidth<=u?f=0:f=Math.min(Math.floor(d*u)-u,t.maxWidth-u||1e6)||1,o+=f,i[e]+=o<=a?f:0}if(r>=o)break;r=o}let l=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==i[e]&&(l=!0),this.columns[e].width=i[e]);this.reRenderColumns(l)}reRenderColumns(e){this.applyColumnHeaderWidths(),this.updateCanvasWidth(!0),this.trigger(this.onAutosizeColumns,{columns:this.columns}),e&&(this.invalidateAllRows(),this.render())}getVisibleColumns(){return this.columns.filter(e=>!e.hidden)}getColumnIndex(e){return this.columnsById[e]}applyColumnHeaderWidths(){if(!this.initialized)return;let e=0,t=this.getVisibleColumns();this._headers.forEach(n=>{for(let o=0;o<n.children.length;o++,e++){let r=n.children[o],i=((t[e]||{}).width||0)-this.headerColumnWidthDiff;V.width(r)!==i&&V.width(r,i)}}),this.updateColumnCaches()}applyColumnWidths(){let e=0,t=0,n;for(let o=0;o<this.columns.length;o++)this.columns[o]?.hidden||(t=this.columns[o].width||0,n=this.getColumnCssRules(o),n.left.style.left=`${e}px`,n.right.style.right=(this._options.frozenColumn!==-1&&o>this._options.frozenColumn?this.canvasWidthR:this.canvasWidthL)-e-t+"px",this._options.frozenColumn!==o&&(e+=this.columns[o].width)),this._options.frozenColumn===o&&(e=0)}setSortColumn(e,t){this.setSortColumns([{columnId:e,sortAsc:t}])}getColumnByIndex(e){let t;return this._headers.every(n=>{let o=n.children.length;return e<o?(t=n.children[e],!1):(e-=o,!0)}),t}setSortColumns(e){this.sortColumns=e;let t=this._options.numberedMultiColumnSort&&this.sortColumns.length>1;this._headers.forEach(o=>{let r=o.querySelectorAll(".slick-header-column-sorted");r.forEach(i=>{i.classList.remove("slick-header-column-sorted")}),r=o.querySelectorAll(".slick-sort-indicator"),r.forEach(i=>{i.classList.remove("slick-sort-indicator-asc"),i.classList.remove("slick-sort-indicator-desc")}),r=o.querySelectorAll(".slick-sort-indicator-numbered"),r.forEach(i=>{i.textContent=""})});let n=1;this.sortColumns.forEach(o=>{V.isDefined(o.sortAsc)||(o.sortAsc=!0);let r=this.getColumnIndex(o.columnId);if(V.isDefined(r)){let i=this.getColumnByIndex(r);if(i){i.classList.add("slick-header-column-sorted");let a=i.querySelector(".slick-sort-indicator");a?.classList.add(o.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),t&&(a=i.querySelector(".slick-sort-indicator-numbered"),a&&(a.textContent=String(n)))}}n++})}getColumns(){return this.columns}getSortColumns(){return this.sortColumns}updateColumnCaches(){this.columnPosLeft=[],this.columnPosRight=[];let e=0;for(let t=0,n=this.columns.length;t<n;t++)!this.columns[t]||this.columns[t].hidden||(this.columnPosLeft[t]=e,this.columnPosRight[t]=e+(this.columns[t].width||0),this._options.frozenColumn===t?e=0:e+=this.columns[t].width||0)}updateColumnProps(){this.columnsById={};for(let e=0;e<this.columns.length;e++){let t=this.columns[e];t.width&&(t.widthRequest=t.width),this._options.mixinDefaults?(V.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),V.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=V.extend({},this._columnDefaults,t),t.autoSize=V.extend({},this._columnAutosizeDefaults,t.autoSize)),this.columnsById[t.id]=e,t.minWidth&&(t.width||0)<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&(t.width||0)>t.maxWidth&&(t.width=t.maxWidth)}}setColumns(e){this.trigger(this.onBeforeSetColumns,{previousColumns:this.columns,newColumns:e,grid:this}),this.columns=e,this.updateColumnsInternal(),this.trigger(this.onAfterSetColumns,{newColumns:e,grid:this})}updateColumns(){this.trigger(this.onBeforeUpdateColumns,{columns:this.columns,grid:this}),this.updateColumnsInternal()}updateColumnsInternal(){this.updateColumnProps(),this.updateColumnCaches(),this.initialized&&(this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setOverflow(),this.invalidateAllRows(),this.createColumnHeaders(),this.createColumnFooter(),this.removeCssRules(),this.createCssRules(),this.resizeCanvas(),this.updateCanvasWidth(),this.applyColumnHeaderWidths(),this.applyColumnWidths(),this.handleScroll(),this.getSelectionModel()?.refreshSelections())}getEditorLock(){return this._options.editorLock}getEditController(){return this.editController}setData(e,t){this.data=e,this.invalidateAllRows(),this.updateRowCount(),t&&this.scrollTo(0)}getData(){return this.data}getDataLength(){return this.data.getLength?this.data.getLength():this.data?.length??0}getDataLengthIncludingAddNew(){return this.getDataLength()+(this._options.enableAddRow&&(!this.pagingActive||this.pagingIsLastPage)?1:0)}getDataItem(e){return this.data.getItem?this.data.getItem(e):this.data[e]}hasDataView(){return!Array.isArray(this.data)}getItemMetadaWhenExists(e){return"getItemMetadata"in this.data?this.data.getItemMetadata(e):null}getFormatter(e,t){let n=this.data?.getItemMetadata?.(e);return(n?.columns&&(n.columns[t.id]||n.columns[this.getColumnIndex(t.id)]))?.formatter||n?.formatter||t.formatter||this._options.formatterFactory?.getFormatter(t)||this._options.defaultFormatter}getEditor(e,t){let n=this.columns[t],o=this.getItemMetadaWhenExists(e)?.columns;return o?.[n.id]?.editor!==void 0?o[n.id].editor:o?.[t]?.editor!==void 0?o[t].editor:n.editor||this._options?.editorFactory?.getEditor(n)}getDataItemValueForColumn(e,t){return this._options.dataItemColumnValueExtractor?this._options.dataItemColumnValueExtractor(e,t):e[t.field]}resetActiveCell(){this.setActiveCellInternal(null,!1)}unsetActiveCell(){V.isDefined(this.activeCellNode)&&(this.makeActiveCellNormal(),this.activeCellNode.classList.remove("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(e=>e.classList.remove("active")))}focus(){this.setFocus()}setFocus(){this.tabbingDirection===-1?this._focusSink.focus():this._focusSink2.focus()}setActiveCellInternal(e,t,n,o,r){if(this.unsetActiveCell(),this.activeCellNode=e,V.isDefined(this.activeCellNode)){let i=V.offset(this.activeCellNode),a=Math.floor(V.offset(V.parents(this.activeCellNode,".grid-canvas")[0]).top),l=V.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&l&&(a-=this._options.frozenBottom?V.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(i.left,Math.ceil(i.top)-a);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!V.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(u=>u.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(u=>u.classList.add("active"))),this._options.editable&&t&&this.isCellPotentiallyEditable(this.activeRow,this.activeCell)&&(this._options.asyncEditorLoading?(window.clearTimeout(this.h_editorLoader),this.h_editorLoader=window.setTimeout(()=>{this.makeActiveCellEditable(void 0,n,r)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,n,r))}else this.activeRow=this.activeCell=null;o||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let n=this.getDataLength();return!(e<n&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=n||!this.columns[t]||this.columns[t].hidden||!this.getEditor(e,t))}makeActiveCellNormal(e=!1){if(this.currentEditor){if(this.trigger(this.onBeforeCellEditorDestroy,{editor:this.currentEditor}),this.currentEditor.destroy(),this.currentEditor=null,this.activeCellNode){let t=this.getDataItem(this.activeRow);if(this.activeCellNode.classList.remove("editable"),this.activeCellNode.classList.remove("invalid"),t){let n=this.columns[this.activeCell],o=this.getFormatter(this.activeRow,n)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,n),n,t,this);this.applyFormatResultToCellNode(o,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,n){this.makeActiveCellEditable(e,t,n)}makeActiveCellEditable(e,t,n){if(!this.activeCellNode)return;if(!this._options.editable)throw new Error("SlickGrid makeActiveCellEditable : should never get called when this._options.editable is false");if(window.clearTimeout(this.h_editorLoader),!this.isCellPotentiallyEditable(this.activeRow,this.activeCell))return;let o=this.columns[this.activeCell],r=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:r,column:o,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let i=e||this.getEditor(this.activeRow,this.activeCell);if(!i||typeof i!="function")return;!e&&!i.suppressClearOnEdit&&V.emptyElement(this.activeCellNode);let a=this.getItemMetadaWhenExists(this.activeRow);a=a?.columns;let l=a&&(a[o.id]||a[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:o,columnMetaData:l,item:r||{},event:n,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new i(d),r&&this.currentEditor&&(this.currentEditor.loadValue(r),t&&this.currentEditor?.preClick&&this.currentEditor.preClick()),this.serializedEditorValue=this.currentEditor?.serializeValue(),this.currentEditor?.position&&this.handleActiveCellPositionChange()}commitEditAndSetFocus(){this.getEditorLock()?.commitCurrentEdit()&&(this.setFocus(),this._options.autoEdit&&!this._options.autoCommitEdit&&this.navigateDown())}cancelEditAndSetFocus(){this.getEditorLock()?.cancelCurrentEdit()&&this.setFocus()}commitCurrentEdit(){let e=this,t=e.getDataItem(e.activeRow),n=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let o=e.currentEditor.validate();if(o.valid){let r=e.activeRow,i=e.activeCell,a=e.currentEditor,l=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let u={row:r,cell:i,editor:a,serializedValue:l,prevSerializedValue:d,execute:()=>{a.applyValue(t,l),e.updateRow(r),e.trigger(e.onCellChange,{command:"execute",row:r,cell:i,item:t,column:n})},undo:()=>{a.applyValue(t,d),e.updateRow(r),e.trigger(e.onCellChange,{command:"undo",row:r,cell:i,item:t,column:n})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,n,u)):(u.execute(),e.makeActiveCellNormal(!0))}else{let u={};e.currentEditor.applyValue(u,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:u,column:n})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),V.width(e.activeCellNode),e.activeCellNode.classList.add("invalid")),e.trigger(e.onValidationError,{editor:e.currentEditor,cellNode:e.activeCellNode,validationResults:o,row:e.activeRow,cell:e.activeCell,column:n}),e.currentEditor.focus(),!1}e.makeActiveCellNormal(!0)}return!0}cancelCurrentEdit(){return this.makeActiveCellNormal(),!0}getSelectedRows(){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");return this.selectedRows.slice(0)}setSelectedRows(e,t){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");this&&this.getEditorLock&&!this.getEditorLock()?.isActive()&&this.selectionModel.setSelectedRanges(this.rowsToRanges(e),t||"SlickGrid.setSelectedRows")}trigger(e,t,n){let o=n||new xi(n,t),r=t||{};return r.grid=this,e.notify(r,o,this)}handleCellMouseOut(e){this.trigger(this.onMouseLeave,{},e)}handleHeaderMouseHoverOn(e){e?.target.classList.add("ui-state-hover","slick-state-hover")}handleHeaderMouseHoverOff(e){e?.target.classList.remove("ui-state-hover","slick-state-hover")}handleSelectedRangesChanged(e,t){let n=e.getNativeEvent(),o=this.selectedRows.slice(0);this.selectedRows=[];let r={};for(let i=0;i<t.length;i++)for(let a=t[i].fromRow;a<=t[i].toRow;a++){r[a]||(this.selectedRows.push(a),r[a]={});for(let l=t[i].fromCell;l<=t[i].toCell;l++)this.canCellBeSelected(a,l)&&(r[a][this.columns[l].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",r),this.simpleArrayEquals(o,this.selectedRows)){let i=n?.detail?.caller??"click",a=new Set(this.getSelectedRows()),l=new Set(o),d=Array.from(a).filter(f=>!l.has(f)),u=Array.from(l).filter(f=>!a.has(f));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:o,caller:i,changedSelectedRows:d,changedUnselectedRows:u},e)}}handleMouseWheel(e,t,n,o){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-o*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragInit,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDragStart(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragStart,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDrag(e,t){return this.trigger(this.onDrag,t,e).getReturnValue()}handleDragEnd(e,t){this.trigger(this.onDragEnd,t,e)}handleKeyDown(e){let t=this.trigger(this.onKeyDown,{row:this.activeRow,cell:this.activeCell},e).isImmediatePropagationStopped();if(!t&&!e.shiftKey&&!e.altKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;e.ctrlKey&&e.key==="Home"?this.navigateTopStart():e.ctrlKey&&e.key==="End"?this.navigateBottomEnd():e.ctrlKey&&e.key==="ArrowUp"?this.navigateTop():e.ctrlKey&&e.key==="ArrowDown"?this.navigateBottom():e.ctrlKey&&e.key==="ArrowLeft"||!e.ctrlKey&&e.key==="Home"?this.navigateRowStart():(e.ctrlKey&&e.key==="ArrowRight"||!e.ctrlKey&&e.key==="End")&&this.navigateRowEnd()}if(!t)if(!e.shiftKey&&!e.altKey&&!e.ctrlKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which===Co.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===Co.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===Co.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===Co.LEFT?t=this.navigateLeft():e.which===Co.RIGHT?t=this.navigateRight():e.which===Co.UP?t=this.navigateUp():e.which===Co.DOWN?t=this.navigateDown():e.which===Co.TAB?t=this.navigateNext():e.which===Co.ENTER&&(this._options.editable&&(this.currentEditor?this.activeRow===this.getDataLength()?this.navigateDown():this.commitEditAndSetFocus():this.getEditorLock()?.commitCurrentEdit()&&this.makeActiveCellEditable(void 0,void 0,e)),t=!0)}else e.which===Co.TAB&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&(t=this.navigatePrev());if(t){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch{}}}handleClick(e){let t=e instanceof xi?e.getNativeEvent():e;if(!this.currentEditor&&(t.target!==document.activeElement||t.target.classList.contains("slick-cell"))){let o=this.getTextSelection();this.setFocus(),this.setTextSelection(o)}let n=this.getCellFromEvent(t);if(!(!n||this.currentEditor!==null&&this.activeRow===n.row&&this.activeCell===n.cell)&&(e=this.trigger(this.onClick,{row:n.row,cell:n.cell},e||t),!e.isImmediatePropagationStopped()&&this.canCellBeActive(n.row,n.cell)&&(!this.getEditorLock()?.isActive()||this.getEditorLock()?.commitCurrentEdit()))){this.scrollRowIntoView(n.row,!1);let o=t.target?.className===EB,r=this.columns[n.cell],i=!!(this._options.editable&&r?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(this.getCellNode(n.row,n.cell),null,o,i,t)}}handleContextMenu(e){let t=e.target.closest(".slick-cell");t&&(this.activeCellNode===t&&this.currentEditor!==null||this.trigger(this.onContextMenu,{},e))}handleDblClick(e){let t=this.getCellFromEvent(e);!t||this.currentEditor!==null&&this.activeRow===t.row&&this.activeCell===t.cell||(this.trigger(this.onDblClick,{row:t.row,cell:t.cell},e),!e.defaultPrevented&&this._options.editable&&this.gotoCell(t.row,t.cell,!0,e))}handleHeaderMouseEnter(e){let t=V.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=V.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=V.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=V.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseLeave,{column:t,grid:this},e)}handleHeaderContextMenu(e){let t=e.target.closest(".slick-header-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onHeaderContextMenu,{column:n},e)}handleHeaderClick(e){if(!this.columnResizeDragging){let t=e.target.closest(".slick-header-column"),n=t&&V.storage.get(t,"column");n&&this.trigger(this.onHeaderClick,{column:n},e)}}handlePreHeaderContextMenu(e){this.trigger(this.onPreHeaderContextMenu,{node:e.target},e)}handlePreHeaderClick(e){this.columnResizeDragging||this.trigger(this.onPreHeaderClick,{node:e.target},e)}handleFooterContextMenu(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:n},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onFooterClick,{column:n},e)}handleCellMouseOver(e){this.trigger(this.onMouseEnter,{},e)}handleActiveCellPositionChange(){if(this.activeCellNode&&(this.trigger(this.onActiveCellPositionChanged,{}),this.currentEditor)){let e=this.getActiveCellPosition();this.currentEditor.show&&this.currentEditor.hide&&(e.visible?this.currentEditor.show():this.currentEditor.hide()),this.currentEditor.position&&this.currentEditor.position(e)}}actionThrottle(e,t){let n=!1,o=!1,r=()=>{n?o=!0:a()},i=()=>{o=!1},a=()=>{n=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(l,t),e.call(this)},l=()=>{o?(i(),a()):n=!1};return{enqueue:r.bind(this),dequeue:i.bind(this)}}getCellFromEvent(e){let t=e instanceof xi?e.getNativeEvent():e,n=t.touches?t.touches[0]:t,o=t.target.closest(".slick-cell");if(!o)return null;let r=this.getRowFromNode(o.parentNode);if(this.hasFrozenRows){let a=0,l=V.offset(V.parents(o,".grid-canvas")[0]);V.parents(o,".grid-canvas-bottom").length&&(a=this._options.frozenBottom?V.height(this._canvasTopL):this.frozenRowsHeight),r=this.getCellFromPoint(n.clientX-l.left,n.clientY-l.top+a+document.documentElement.scrollTop).row}let i=this.getCellFromNode(o);return!V.isDefined(r)||!V.isDefined(i)?null:{row:r,cell:i}}applyHtmlCode(e,t,n){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)n?.emptyTarget!==!1&&V.emptyElement(e),e.appendChild(t);else{if(n?.skipEmptyReassignment!==!1&&!V.isDefined(t)&&!e.innerHTML)return;let o=t;typeof o=="number"||typeof o=="boolean"?e.textContent=o:(o=this.sanitizeHtmlString(t),this._options.enableHtmlRendering&&o?e.innerHTML=o:e.textContent=o)}}getCanvasNode(e,t){return this._getContainerElement(this.getCanvases(),e,t)}getActiveCanvasNode(e){return e===void 0?this._activeCanvasNode:(e instanceof xi&&(e=e.getNativeEvent()),this._activeCanvasNode=e?.target.closest(".grid-canvas"),this._activeCanvasNode)}getCanvases(){return this._canvas}getViewportNode(e,t){return this._getContainerElement(this.getViewports(),e,t)}getViewports(){return this._viewport}getActiveViewportNode(e){return this.setActiveViewportNode(e),this._activeViewportNode}setActiveViewportNode(e){return e instanceof xi&&(e=e.getNativeEvent()),this._activeViewportNode=e?.target.closest(".slick-viewport"),this._activeViewportNode}getHeadersWidth(){this.headersWidth=this.headersWidthL=this.headersWidthR=0;let e=!this._options.autoHeight,t=0,n=this.columns.length;for(t=0;t<n;t++){if(!this.columns[t]||this.columns[t].hidden)continue;let o=this.columns[t].width;this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=o||0:this.headersWidthL+=o||0}return e&&(this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=this.scrollbarDimensions?.width??0:this.headersWidthL+=this.scrollbarDimensions?.width??0),this.hasFrozenColumns()?(this.headersWidthL=this.headersWidthL+1e3,this.headersWidthR=Math.max(this.headersWidthR,this.viewportW)+this.headersWidthL,this.headersWidthR+=this.scrollbarDimensions?.width??0):(this.headersWidthL+=this.scrollbarDimensions?.width??0,this.headersWidthL=Math.max(this.headersWidthL,this.viewportW)+1e3),this.headersWidth=this.headersWidthL+this.headersWidthR,Math.max(this.headersWidth,this.viewportW)+1e3}getCanvasWidth(){let e=this.getViewportInnerWidth(),t=this.columns.length;for(this.canvasWidthL=this.canvasWidthR=0;t--;)!this.columns[t]||this.columns[t].hidden||(this.hasFrozenColumns()&&t>this._options.frozenColumn?this.canvasWidthR+=this.columns[t].width||0:this.canvasWidthL+=this.columns[t].width||0);let n=this.canvasWidthL+this.canvasWidthR;if(this._options.fullWidthRows){let o=Math.max(n,e)-n;o>0&&(n+=o,this.hasFrozenColumns()?this.canvasWidthR+=o:this.canvasWidthL+=o)}return n}updateCanvasWidth(e){let t=this.canvasWidth,n=this.canvasWidthL,o=this.canvasWidthR;this.canvasWidth=this.getCanvasWidth(),this._options.createTopHeaderPanel&&V.width(this._topHeaderPanel,this._options.topHeaderPanelWidth??this.canvasWidth);let r=this.canvasWidth!==t||this.canvasWidthL!==n||this.canvasWidthR!==o;if(r||this.hasFrozenColumns()||this.hasFrozenRows)if(V.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),V.width(this._headerL,this.headersWidthL),V.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let i=V.width(this._container)||0;if(i>0&&this.canvasWidthL>i&&this._options.throwWhenFrozenNotAllViewable)throw new Error("[SlickGrid] Frozen columns cannot be wider than the actual grid container width. Make sure to have less columns freezed or make your grid container wider");V.width(this._canvasTopR,this.canvasWidthR),V.width(this._paneHeaderL,this.canvasWidthL),V.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),V.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),V.width(this._paneTopL,this.canvasWidthL),V.setStyleSize(this._paneTopR,"left",this.canvasWidthL),V.width(this._paneTopR,this.viewportW-this.canvasWidthL),V.width(this._headerRowScrollerL,this.canvasWidthL),V.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),V.width(this._headerRowL,this.canvasWidthL),V.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(V.width(this._footerRowScrollerL,this.canvasWidthL),V.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),V.width(this._footerRowL,this.canvasWidthL),V.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&V.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),V.width(this._viewportTopL,this.canvasWidthL),V.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(V.width(this._paneBottomL,this.canvasWidthL),V.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),V.width(this._viewportBottomL,this.canvasWidthL),V.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),V.width(this._canvasBottomL,this.canvasWidthL),V.width(this._canvasBottomR,this.canvasWidthR))}else V.width(this._paneHeaderL,"100%"),V.width(this._paneTopL,"100%"),V.width(this._headerRowScrollerL,"100%"),V.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(V.width(this._footerRowScrollerL,"100%"),V.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&V.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),V.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(V.width(this._viewportBottomL,"100%"),V.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),V.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),V.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(V.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),V.width(this._footerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0))),(r||e)&&this.applyColumnWidths()}getPreHeaderPanel(){return this._preHeaderPanel}getPreHeaderPanelLeft(){return this._preHeaderPanel}getPreHeaderPanelRight(){return this._preHeaderPanelR}getTopHeaderPanel(){return this._topHeaderPanel}setPaneVisibility(){this.hasFrozenColumns()?(V.show(this._paneHeaderR),V.show(this._paneTopR),this.hasFrozenRows?(V.show(this._paneBottomL),V.show(this._paneBottomR)):(V.hide(this._paneBottomR),V.hide(this._paneBottomL))):(V.hide(this._paneHeaderR),V.hide(this._paneTopR),V.hide(this._paneBottomR),this.hasFrozenRows?V.show(this._paneBottomL):(V.hide(this._paneBottomR),V.hide(this._paneBottomL)))}setOverflow(){if(this._viewportTopL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportTopR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?this.hasFrozenRows?"scroll":"auto":this.hasFrozenRows?"scroll":"auto",this._viewportBottomL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportBottomR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"auto"):(this.hasFrozenRows,"auto"),this._options.viewportClass){let e=V.classNameToList(this._options.viewportClass);this._viewportTopL.classList.add(...e),this._viewportTopR.classList.add(...e),this._viewportBottomL.classList.add(...e),this._viewportBottomR.classList.add(...e)}}createCssRules(){this._style=document.createElement("style"),this._style.nonce=this._options.nonce||"",(this._options.shadowRoot||document.head).appendChild(this._style);let e=this._options.rowHeight-this.cellHeightDiff,t=[`.${this.uid} .slick-group-header-column { left: 1000px; }`,`.${this.uid} .slick-header-column { left: 1000px; }`,`.${this.uid} .slick-top-panel { height: ${this._options.topPanelHeight}px; }`,`.${this.uid} .slick-preheader-panel { height: ${this._options.preHeaderPanelHeight}px; }`,`.${this.uid} .slick-topheader-panel { height: ${this._options.topHeaderPanelHeight}px; }`,`.${this.uid} .slick-headerrow-columns { height: ${this._options.headerRowHeight}px; }`,`.${this.uid} .slick-footerrow-columns { height: ${this._options.footerRowHeight}px; }`,`.${this.uid} .slick-cell { height: ${e}px; }`,`.${this.uid} .slick-row { height: ${this._options.rowHeight}px; }`],n=this._style.sheet;if(n){t.forEach(o=>{n.insertRule(o)});for(let o=0;o<this.columns.length;o++)!this.columns[o]||this.columns[o].hidden||(n.insertRule(`.${this.uid} .l${o} { }`),n.insertRule(`.${this.uid} .r${o} { }`))}else this.createCssRulesAlternative(t)}createCssRulesAlternative(e){let t=document.createElement("template");t.innerHTML='<style type="text/css" rel="stylesheet" />',this._style=t.content.firstChild,(this._options.shadowRoot||document.head).appendChild(this._style);for(let n=0;n<this.columns.length;n++)!this.columns[n]||this.columns[n].hidden||(e.push(`.${this.uid} .l${n} { }`),e.push(`.${this.uid} .r${n} { }`));this._style.styleSheet?this._style.styleSheet.cssText=e.join(" "):this._style.appendChild(document.createTextNode(e.join(" ")))}getColumnCssRules(e){let t;if(!this.stylesheet){let n=(this._options.shadowRoot||document).styleSheets;for(this._options.devMode&&typeof this._options.devMode?.ownerNodeIndex=="number"&&this._options.devMode.ownerNodeIndex>=0&&(n[this._options.devMode.ownerNodeIndex].ownerNode=this._style),t=0;t<n.length;t++)if((n[t].ownerNode||n[t].owningElement)===this._style){this.stylesheet=n[t];break}if(!this.stylesheet)throw new Error("SlickGrid Cannot find stylesheet.");this.columnCssRulesL=[],this.columnCssRulesR=[];let o=this.stylesheet.cssRules||this.stylesheet.rules,r,i;for(t=0;t<o.length;t++){let a=o[t].selectorText;(r=/\.l\d+/.exec(a))?(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesL[i]=o[t]):(r=/\.r\d+/.exec(a))&&(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesR[i]=o[t])}}return{left:this.columnCssRulesL[e],right:this.columnCssRulesR[e]}}removeCssRules(){this._style?.remove(),this.stylesheet=null}getTopPanel(){return this._topPanels[0]}getTopPanels(){return this._topPanels}togglePanelVisibility(e,t,n,o){let r=o!==!1;if(this._options[e]!==n)if(this._options[e]=n,n){if(r){V.slideDown(t,this.resizeCanvas.bind(this));return}V.show(t),this.resizeCanvas()}else{if(r){V.slideUp(t,this.resizeCanvas.bind(this));return}V.hide(t),this.resizeCanvas()}}setTopPanelVisibility(e,t){this.togglePanelVisibility("showTopPanel",this._topPanelScrollers,e,t)}setHeaderRowVisibility(e,t){this.togglePanelVisibility("showHeaderRow",this._headerRowScroller,e,t)}setColumnHeaderVisibility(e,t){this.togglePanelVisibility("showColumnHeader",this._headerScroller,e,t)}setFooterRowVisibility(e,t){this.togglePanelVisibility("showFooterRow",this._footerRowScroller,e,t)}setPreHeaderPanelVisibility(e,t){this.togglePanelVisibility("showPreHeaderPanel",[this._preHeaderPanelScroller,this._preHeaderPanelScrollerR],e,t)}setTopHeaderPanelVisibility(e){this.togglePanelVisibility("showTopHeaderPanel",this._topHeaderPanelScroller,e)}getRowHeight(){return this._options.rowHeight}getRowTop(e){return Math.round(this._options.rowHeight*e-this.offset)}getRowBottom(e){return this.getRowTop(e)+this._options.rowHeight}getRowFromPosition(e){return Math.floor((e+this.offset)/this._options.rowHeight)}appendRowHtml(e,t,n,o,r){let i=this.getDataItem(n),a=n<r&&!i,l="slick-row"+(this.hasFrozenRows&&n<=this._options.frozenRow?" frozen":"")+(a?" loading":"")+(n===this.activeRow&&this._options.showCellSelection?" active":"")+(n%2===1?" odd":" even");i||(l+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(n);d?.cssClasses&&(l+=` ${d.cssClasses}`);let u=V.createDomElement("div",{className:`ui-widget-content ${l}`,role:"row",dataset:{row:`${n}`}}),f=this.getFrozenRowOffset(n),p=this.getRowTop(n)-f;this._options.rowTopOffsetRenderType==="transform"?u.style.transform=`translateY(${p}px)`:u.style.top=`${p}px`;let y;e.push(u),this.hasFrozenColumns()&&(y=u.cloneNode(!0),t.push(y));let w=this.columns.length,b,m,v,P,D=!0;for(let x=0,S=w;x<S;x++){if(D=!0,P=this.columns[x],!P||P.hidden)continue;m=1,v=1,b=null,d?.columns&&(b=d.columns[P.id]||d.columns[x],m=b?.colspan||1,v=b?.rowspan||1,m==="*"&&(m=S-x),v>r-n&&(v=r-n)),!this._options.enableCellRowSpan&&v>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let C=m;if(!this.getParentRowSpanByCell(n,x)){if(this.columnPosRight[Math.min(S-1,x+C-1)]>o.leftPx){if(!P.alwaysRenderColumn&&this.columnPosLeft[x]>o.rightPx&&(D=!1),D){let O=this.hasFrozenColumns()&&x>this._options.frozenColumn?y:u;this.appendCellHtml(O,n,x,C,v,b,i)}}else(P.alwaysRenderColumn||this.hasFrozenColumns()&&x<=this._options.frozenColumn)&&this.appendCellHtml(u,n,x,C,v,b,i);C>1&&(x+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let l=this.columns[n],d=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(l.cssClass?` ${l.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[l.id]&&(d+=` ${this.cellCssClasses[v][t][l.id]}`)});let u=null,f="";a&&(u=this.getDataItemValueForColumn(a,l),f=this.getFormatter(t,l)(t,n,u,l,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:u,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=V.classNameToList((y?" ":"")+f.addClasses).join(" "));let w=f?.toolTip?`${f.toolTip}`:"",b=V.createDomElement("div",{className:V.classNameToList(`${d} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});b.setAttribute("aria-describedby",this.uid+l.id),w&&b.setAttribute("title",w);let m=this.getCellHeight(t,r);if(r>1&&m!==this._options.rowHeight-this.cellHeightDiff&&(b.style.height=`${m||0}px`),l.hasOwnProperty("cellAttrs")&&l.cellAttrs instanceof Object&&Object.keys(l.cellAttrs).forEach(v=>{l.cellAttrs.hasOwnProperty(v)&&b.setAttribute(v,l.cellAttrs[v])}),a){let v=Object.prototype.toString.call(f)!=="[object Object]"?f:f.html||f.text;this.applyHtmlCode(b,v)}e.appendChild(b),f.insertElementAfterTarget&&V.insertAfterElement(b,f.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(n),this.rowsCache[t].cellColSpans[n]=o}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let n=e.top,o=e.bottom;n<=o;n++){let r=this.getRowSpanIntersect(n);r!==null&&t.add(r)}Object.keys(this.rowsCache).forEach(n=>{if(this.rowsCache){let o=+n,r=!0;this.hasFrozenRows&&(this._options.frozenBottom&&o>=this.actualFrozenRow||!this._options.frozenBottom&&o<=this.actualFrozenRow)&&(r=!1),(o=parseInt(n,10))!==this.activeRow&&(o<e.top||o>e.bottom)&&r&&!t.has(o)&&this.removeRowFromCache(o)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let n=e.length,o=new Set,r=new Set,i=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let a=0;a<n;a++)if(t=e[a],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!i){o.add(t);let l=this.getRowSpanIntersect(t);l!==null&&o.add(l)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let l=this.getRowSpanColumnIntersects(a);for(let d of l){let u=this.getParentRowSpanByCell(a,d);u&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(u.range),r.add(u.range.split(":").map(Number)[0]))}}for(let a of Array.from(r))this.remapRowSpanMetadataByRow(a)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let n=this.getRowSpanIntersect(e);n!==null&&t.push(n)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(n=>n.parentElement?.removeChild(n)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let n=this.getCellNode(e,t);if(!n)return;let o=this.columns[t],r=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(r);else{let i=r?this.getFormatter(e,o)(e,t,this.getDataItemValueForColumn(r,o),o,r,this):"";this.applyFormatResultToCellNode(i,n),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let n,o=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(r=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(r))return;let i=+r,a=this.columns[i],l=t.cellNodesByColumnIdx[i];e===this.activeRow&&i===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(o):o?(n=this.getFormatter(e,a)(e,i,this.getDataItemValueForColumn(o,a),a,o,this),this.applyFormatResultToCellNode(n,l)):V.emptyElement(l)}),this.invalidatePostProcessingResults(e)}getViewportRowCount(){let e=this.getViewportHeight(),t=this.getScrollbarDimensions()?.height??0;return Math.floor((e-t)/this._options.rowHeight)}getViewportHeight(){if((!this._options.autoHeight||this._options.frozenColumn!==-1)&&(this.topPanelH=this._options.showTopPanel?this._options.topPanelHeight+this.getVBoxDelta(this._topPanelScrollers[0]):0,this.headerRowH=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,this.footerRowH=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0),this._options.autoHeight){let e=this._paneHeaderL.offsetHeight;e+=this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,e+=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,e+=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0,e+=this.getCanvasWidth()>this.viewportW?this.scrollbarDimensions?.height??0:0,this.viewportH=this._options.rowHeight*this.getDataLengthIncludingAddNew()+(this._options.frozenColumn===-1?e:0)}else{let e=getComputedStyle(this._container),t=e.boxSizing!=="content-box"?this.getVBoxDelta(this._container):0,n=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,o=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,r=this._options.showColumnHeader?V.toFloat(V.height(this._headerScroller[0])):0;this.viewportH=V.toFloat(e.height)-V.toFloat(e.paddingTop)-V.toFloat(e.paddingBottom)-this.topPanelH-n-o-this.headerRowH-r-this.footerRowH-t}return this.numVisibleRows=Math.ceil(this.viewportH/this._options.rowHeight),this.viewportH}getViewportInnerWidth(){return this.viewportHasVScroll?this.viewportW-(this.scrollbarDimensions?.width||0):this.viewportW}getViewportWidth(){return this.viewportW=parseFloat(V.innerSize(this._container,"width"))||this._options.devMode&&this._options.devMode.containerClientWidth||0,this.viewportW}resizeCanvas(){if(!this.initialized)return;if(this.paneTopH=0,this.paneBottomH=0,this.viewportTopH=0,this.viewportBottomH=0,this.getViewportWidth(),this.getViewportHeight(),this.hasFrozenRows?this._options.frozenBottom?(this.paneTopH=this.viewportH-this.frozenRowsHeight-(this.scrollbarDimensions?.height??0),this.paneBottomH=this.frozenRowsHeight+(this.scrollbarDimensions?.height??0)):(this.paneTopH=this.frozenRowsHeight,this.paneBottomH=this.viewportH-this.frozenRowsHeight):this.paneTopH=this.viewportH,this.paneTopH+=this.topPanelH+this.headerRowH+this.footerRowH,this.hasFrozenColumns()&&this._options.autoHeight&&(this.paneTopH+=this.scrollbarDimensions?.height??0),this.viewportTopH=this.paneTopH-this.topPanelH-this.headerRowH-this.footerRowH,this._options.autoHeight){if(this.hasFrozenColumns()){let n=this.paneTopH+this._headerScrollerL.offsetHeight;n+=this.getVBoxDelta(this._container),this._options.showPreHeaderPanel&&(n+=this._options.preHeaderPanelHeight),V.height(this._container,n)}this._paneTopL.style.position="relative"}let e=V.height(this._paneHeaderL);e?e+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0:e=(this._options.showHeaderRow?this._options.headerRowHeight:0)+(this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight:0),V.setStyleSize(this._paneTopL,"top",e||e),V.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||V.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let n=V.height(this._paneHeaderL);n&&(n+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),V.setStyleSize(this._paneTopR,"top",n),V.height(this._paneTopR,this.paneTopH),V.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(V.setStyleSize(this._paneBottomL,"top",t),V.height(this._paneBottomL,this.paneBottomH),V.setStyleSize(this._paneBottomR,"top",t),V.height(this._paneBottomR,this.paneBottomH),V.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(V.width(this._paneBottomL,"100%"),V.height(this._paneBottomL,this.paneBottomH),V.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(V.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(V.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&V.height(this._canvasBottomR,this.frozenRowsHeight)):(V.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&V.height(this._canvasTopR,this.frozenRowsHeight))):V.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===kn.LegacyForceFit&&this.autosizeColumns(),this.updateRowCount(),this.handleScroll(),this.lastRenderedScrollLeft=-1,this.render()}updateRowCount(){if(!this.initialized)return;let e=this.getDataLength();e>0&&e!==this._prevDataLength&&(this._rowSpanIsCached=!1),this._options.enableCellRowSpan&&!this._rowSpanIsCached&&this.remapAllColumnsRowSpan(),this._prevDataLength=e;let t=this.getDataLengthIncludingAddNew(),n=0,o=this.hasFrozenRows&&!this._options.frozenBottom?V.height(this._canvasBottomL):V.height(this._canvasTopL);this.hasFrozenRows?n=this.getDataLength()-this._options.frozenRow:n=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let r=V.height(this._viewportScrollContainerY),i=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&n*this._options.rowHeight>r,this.makeActiveCellNormal();let a=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let u=+d;u>a&&this.removeRowFromCache(u)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>a&&this.resetActiveCell(),o=this.h,this._options.autoHeight?this.h=this._options.rowHeight*n:(this.th=Math.max(this._options.rowHeight*n,r-(this.scrollbarDimensions?.height??0)),this.th<this.maxSupportedCssHeight?(this.h=this.ph=this.th,this.n=1,this.cj=0):(this.h=this.maxSupportedCssHeight,this.ph=this.h/100,this.n=Math.floor(this.th/this.ph),this.cj=(this.th-this.h)/(this.n-1))),(this.h!==o||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(V.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&V.height(this._canvasBottomR,this.h)):(V.height(this._canvasTopL,this.h),V.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let l=this.scrollTop+this.offset<=this.th-r;this.th===0||this.scrollTop===0?this.page=this.offset=0:l?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-r+(this.scrollbarDimensions?.height??0)),this.h!==o&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===kn.LegacyForceFit&&i!==this.viewportHasVScroll&&this.autosizeColumns(),this.updateCanvasWidth(!1)}getViewport(e,t){return this.getVisibleRange(e,t)}getVisibleRange(e,t){return e??(e=this.scrollTop),t??(t=this.scrollLeft),{top:this.getRowFromPosition(e),bottom:this.getRowFromPosition(e+this.viewportH)+1,leftPx:t,rightPx:t+this.viewportW}}getRenderedRange(e,t){let n=this.getVisibleRange(e,t),o=Math.round(this.viewportH/this._options.rowHeight),r=this._options.minRowBuffer;return this.vScrollDir===-1?(n.top-=o,n.bottom+=r):this.vScrollDir===1?(n.top-=r,n.bottom+=o):(n.top-=r,n.bottom+=r),n.top=Math.max(0,n.top),n.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,n.bottom),n.leftPx-=this.viewportW,n.rightPx+=this.viewportW,n.leftPx=Math.max(0,n.leftPx),n.rightPx=Math.min(this.canvasWidth,n.rightPx),n}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let n=t.rowNode,o=Array.from(n[0].children);n.length>1&&(o=o.concat(Array.from(n[1].children)));let r=o.length-1;for(;t.cellRenderQueue.length;){let i=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[i]=o[r--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let n=this.rowsCache[t],o=[];Object.keys(n.cellNodesByColumnIdx).forEach(a=>{if(!n.cellNodesByColumnIdx.hasOwnProperty(a))return;let l=+a;if(l<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[l]?.alwaysRenderColumn)return;let d=n.cellColSpans[l];(this.columnPosLeft[l]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(l||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(l)===this.activeCell||o.push(l))});let r,i;for(;V.isDefined(r=o.pop());)i=n.cellNodesByColumnIdx[r],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[r]?this.queuePostProcessedCellForCleanup(i,r,t):i.parentElement?.removeChild(i),delete n.cellColSpans[r],delete n.cellNodesByColumnIdx[r],this.postProcessedRows[t]&&delete this.postProcessedRows[t][r]}cleanUpAndRenderCells(e){let t,n=document.createElement("div"),o=[],r,i,a,l=this.columns.length;for(let f=e.top,p=e.bottom;f<=p;f++){if(t=this.rowsCache[f],!t)continue;this.ensureCellNodesInRowsCache(f),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(f)===null)&&this.cleanUpCells(e,f),r=0;let y=this.getItemMetadaWhenExists(f);y=y?.columns;let w=this.getDataItem(f);for(let b=0,m=l;b<m;b++){if(!this.columns[b]||this.columns[b].hidden)continue;if(this.columnPosLeft[b]>e.rightPx)break;if(V.isDefined(i=t.cellColSpans[b])){b+=i>1?i-1:0;continue}i=1,a=null,y&&(a=y[this.columns[b].id]||y[b],i=a?.colspan??1,i==="*"&&(i=m-b));let v=i;if(!this.getParentRowSpanByCell(f,b)){if(this.columnPosRight[Math.min(m-1,b+v-1)]>e.leftPx){let P=this.getRowspan(f,b);this.appendCellHtml(n,f,b,v,P,a,w),r++}b+=v>1?v-1:0}}r&&o.push(f)}if(!n.children.length)return;let d,u;for(;V.isDefined(d=o.pop());){t=this.rowsCache[d];let f;for(;V.isDefined(f=t.cellRenderQueue.pop());)u=n.lastChild,u&&(this.hasFrozenColumns()&&f>this._options.frozenColumn?t.rowNode[1].appendChild(u):t.rowNode[0].appendChild(u),t.cellNodesByColumnIdx[f]=u)}}renderRows(e){let t=[],n=[],o=[],r=!1,i=this.getDataLength(),a=new Set,l=new Set;for(let u=e.top,f=e.bottom;u<=f;u++)if(!(this.rowsCache[u]||this.hasFrozenRows&&this._options.frozenBottom&&u===this.getDataLength())){if(this.renderedRows++,o.push(u),l.add(u),this.rowsCache[u]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let p=this.getRowSpanIntersect(u);p!==null&&l.add(p)}this.appendRowHtml(t,n,u,e,i),a.add(u),this.activeCellNode&&this.activeRow===u&&(r=!0),this.counter_rows_rendered++}let d=this.setDifference(l,a);if(d.size>0&&d.forEach(u=>{this.removeRowFromCache(u),o.push(u),this.rowsCache[u]=this.createEmptyCachingRow(),this.appendRowHtml(t,n,u,e,i)}),o.length){let u=document.createElement("div"),f=document.createElement("div");t.forEach(p=>u.appendChild(p)),n.forEach(p=>f.appendChild(p));for(let p=0,y=o.length;p<y;p++)this.hasFrozenRows&&o[p]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasBottomL.appendChild(u.firstChild),this._canvasBottomR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasBottomL.appendChild(u.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasTopL.appendChild(u.firstChild),this._canvasTopR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasTopL.appendChild(u.firstChild));r&&(this.activeCellNode=this.getCellNode(this.activeRow,this.activeCell))}}updateRowPositions(){for(let e in this.rowsCache)if(this.rowsCache){let t=e?parseInt(e,10):0,n=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?n.style.transform=`translateY(${this.getRowTop(t)}px)`:n.style.top=`${this.getRowTop(t)}px`}}render(){if(!this.initialized)return;this.scrollThrottle.dequeue();let e=this.getVisibleRange(),t=this.getRenderedRange();if(this.cleanupRows(t),this.lastRenderedScrollLeft!==this.scrollLeft){if(this.hasFrozenRows){let n=V.extend(!0,{},t);this._options.frozenBottom?(n.top=this.actualFrozenRow,n.bottom=this.getDataLength()):(n.top=0,n.bottom=this._options.frozenRow),this.cleanUpAndRenderCells(n)}this.cleanUpAndRenderCells(t)}this.renderRows(t),this.hasFrozenRows&&(this._options.frozenBottom?this.renderRows({top:this.actualFrozenRow,bottom:this.getDataLength()-1,leftPx:t.leftPx,rightPx:t.rightPx}):this.renderRows({top:0,bottom:this._options.frozenRow-1,leftPx:t.leftPx,rightPx:t.rightPx})),this.postProcessFromRow=e.top,this.postProcessToRow=Math.min(this.getDataLengthIncludingAddNew()-1,e.bottom),this.startPostProcessing(),this.lastRenderedScrollTop=this.scrollTop,this.lastRenderedScrollLeft=this.scrollLeft,this.trigger(this.onRendered,{startRow:e.top,endRow:e.bottom,grid:this})}getFrozenRowOffset(e){let t=0;return this.hasFrozenRows?this._options.frozenBottom?e>=this.actualFrozenRow?this.h<this.viewportTopH?t=this.actualFrozenRow*this._options.rowHeight:t=this.h:t=0:e>=this.actualFrozenRow?t=this.frozenRowsHeight:t=0:t=0,t}bindAncestorScrollEvents(){let e=this.hasFrozenRows&&!this._options.frozenBottom?this._canvasBottomL:this._canvasTopL;for(;(e=e.parentNode)!==document.body&&e;)(e===this._viewportTopL||e.scrollWidth!==e.clientWidth||e.scrollHeight!==e.clientHeight)&&(this._boundAncestors.push(e),this._bindingEventService.bind(e,"scroll",this.handleActiveCellPositionChange.bind(this)))}unbindAncestorScrollEvents(){this._boundAncestors.forEach(e=>{this._bindingEventService.unbindByEventName(e,"scroll")}),this._boundAncestors=[]}setScroller(){this.hasFrozenColumns()?(this._headerScrollContainer=this._headerScrollerR,this._headerRowScrollContainer=this._headerRowScrollerR,this._footerRowScrollContainer=this._footerRowScrollerR,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomR,this._viewportScrollContainerY=this._viewportTopR):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomR:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopR):(this._headerScrollContainer=this._headerScrollerL,this._headerRowScrollContainer=this._headerRowScrollerL,this._footerRowScrollContainer=this._footerRowScrollerL,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomL,this._viewportScrollContainerY=this._viewportTopL):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomL:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopL)}scrollTo(e){e=Math.max(e,0),e=Math.min(e,(this.th||0)-V.height(this._viewportScrollContainerY)+(this.viewportHasHScroll||this.hasFrozenColumns()?this.scrollbarDimensions?.height??0:0));let t=this.offset;this.offset=Math.round(this.page*(this.cj||0)),this.page=Math.min((this.n||0)-1,Math.floor(e/(this.ph||0)));let n=e-this.offset;if(this.offset!==t){let o=this.getVisibleRange(n);this.cleanupRows(o),this.updateRowPositions()}this.prevScrollTop!==n&&(this.vScrollDir=this.prevScrollTop+t<n+this.offset?1:-1,this.lastRenderedScrollTop=this.scrollTop=this.prevScrollTop=n,this.hasFrozenColumns()&&(this._viewportTopL.scrollTop=n),this.hasFrozenRows&&(this._viewportBottomL.scrollTop=this._viewportBottomR.scrollTop=n),this._viewportScrollContainerY&&(this._viewportScrollContainerY.scrollTop=n),this.trigger(this.onViewportChanged,{}))}handleHeaderRowScroll(){let e=this._headerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handleFooterRowScroll(){let e=this._footerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handlePreHeaderPanelScroll(){this.handleElementScroll(this._preHeaderPanelScroller)}handleTopHeaderPanelScroll(){this.handleElementScroll(this._topHeaderPanelScroller)}handleElementScroll(e){let t=e.scrollLeft;t!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=t)}handleScroll(e){return this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollLeft=this._viewportScrollContainerX.scrollLeft,this._handleScroll(e?"scroll":"system")}_handleScroll(e="system"){let t=this._viewportScrollContainerY.scrollHeight-this._viewportScrollContainerY.clientHeight,n=this._viewportScrollContainerY.scrollWidth-this._viewportScrollContainerY.clientWidth;t=Math.max(0,t),n=Math.max(0,n),this.scrollTop>t&&(this.scrollTop=t,this.scrollHeight=t),this.scrollLeft>n&&(this.scrollLeft=n);let o=Math.abs(this.scrollTop-this.prevScrollTop),r=Math.abs(this.scrollLeft-this.prevScrollLeft);if(r&&(this.prevScrollLeft=this.scrollLeft,this._viewportScrollContainerX.scrollLeft=this.scrollLeft,this._headerScrollContainer.scrollLeft=this.scrollLeft,this._topPanelScrollers[0].scrollLeft=this.scrollLeft,this._options.createFooterRow&&(this._footerRowScrollContainer.scrollLeft=this.scrollLeft),this._options.createPreHeaderPanel&&(this.hasFrozenColumns()?this._preHeaderPanelScrollerR.scrollLeft=this.scrollLeft:this._preHeaderPanelScroller.scrollLeft=this.scrollLeft),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller.scrollLeft=this.scrollLeft),this.hasFrozenColumns()?(this.hasFrozenRows&&(this._viewportTopR.scrollLeft=this.scrollLeft),this._headerRowScrollerR.scrollLeft=this.scrollLeft):(this.hasFrozenRows&&(this._viewportTopL.scrollLeft=this.scrollLeft),this._headerRowScrollerL.scrollLeft=this.scrollLeft)),o&&!this._options.autoHeight)if(this.vScrollDir=this.prevScrollTop<this.scrollTop?1:-1,this.prevScrollTop=this.scrollTop,e==="mousewheel"&&(this._viewportScrollContainerY.scrollTop=this.scrollTop),this.hasFrozenColumns()&&(this.hasFrozenRows&&!this._options.frozenBottom?this._viewportBottomL.scrollTop=this.scrollTop:this._viewportTopL.scrollTop=this.scrollTop),o<this.viewportH)this.scrollTo(this.scrollTop+this.offset);else{let i=this.offset;this.h===this.viewportH?this.page=0:this.page=Math.min(this.n-1,Math.floor(this.scrollTop*((this.th-this.viewportH)/(this.h-this.viewportH))*(1/this.ph))),this.offset=Math.round(this.page*this.cj),i!==this.offset&&this.invalidateAllRows()}if(r||o){let i=Math.abs(this.lastRenderedScrollLeft-this.scrollLeft),a=Math.abs(this.lastRenderedScrollTop-this.scrollTop);(i>20||a>20)&&(this._options.forceSyncScrolling||a<this.viewportH&&i<this.viewportW?this.render():this.scrollThrottle.enqueue(),this.trigger(this.onViewportChanged,{}))}return this.trigger(this.onScroll,{triggeredBy:e,scrollHeight:this.scrollHeight,scrollLeft:this.scrollLeft,scrollTop:this.scrollTop}),!!(r||o)}scrollCellIntoView(e,t,n){if(this.scrollRowIntoView(e,n),t<=this._options.frozenColumn)return;let o=this.getColspan(e,t);this.internalScrollColumnIntoView(this.columnPosLeft[t],this.columnPosRight[t+(o>1?o-1:0)])}internalScrollColumnIntoView(e,t){let n=this.scrollLeft+V.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>n&&(this._viewportScrollContainerX.scrollLeft=Math.min(e,t-this._viewportScrollContainerX.clientWidth),this.handleScroll(),this.render())}scrollColumnIntoView(e){this.internalScrollColumnIntoView(this.columnPosLeft[e],this.columnPosRight[e])}updatePagingStatusFromView(e){this.pagingActive=e.pageSize!==0,this.pagingIsLastPage=e.pageNum===e.totalPages-1}getRowSpanColumnIntersects(e){return this.getRowSpanIntersection(e,"columns")}getRowSpanIntersect(e){return this.getRowSpanIntersection(e)}getRowSpanIntersection(e,t){let n=[],o=null;for(let r=0,i=this.columns.length;r<i;r++){let a=this._colsWithRowSpanCache[r];if(a)for(let l of Array.from(a)){let[d,u]=l.split(":").map(Number);if(e>=d&&e<=u)if(t==="columns")n.push(r);else{o=d;break}}}return t==="columns"?n:o}getParentRowSpanByCell(e,t,n=!0){let o=null,r=this._colsWithRowSpanCache[t]||new Set;for(let i of Array.from(r)){let[a,l]=i.split(":").map(Number);if((n?e>a:e>=a)&&e<=l){o={start:a,end:l,range:i};break}}return o}remapAllColumnsRowSpan(){let e=this.getDataLength();if(e>0){this._colsWithRowSpanCache={};for(let t=0;t<e;t++)this.remapRowSpanMetadataByRow(t);this._rowSpanIsCached=!0}}remapRowSpanMetadataByRow(e){let t=this.getItemMetadaWhenExists(e);t?.columns&&Object.keys(t.columns).forEach(n=>{let o=+n,r=t.columns[o],i=+(r?.colspan||1),a=+(r?.rowspan||1);this.remapRowSpanMetadata(e,o,i,a)})}remapRowSpanMetadata(e,t,n,o){var r,i,a;if(o>1){let l=`${e}:${e+o-1}`;if((r=this._colsWithRowSpanCache)[t]??(r[t]=new Set),this._colsWithRowSpanCache[t].add(l),n>1)for(let d=1;d<n;d++)(i=this._colsWithRowSpanCache)[a=t+d]??(i[a]=new Set),this._colsWithRowSpanCache[t+d].add(l)}}createEmptyCachingRow(){return{rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]}}scrollRowIntoView(e,t){if(!this.hasFrozenRows||!this._options.frozenBottom&&e>this.actualFrozenRow-1||this._options.frozenBottom&&e<this.actualFrozenRow-1){let n=V.height(this._viewportScrollContainerY),o=this.hasFrozenRows&&!this._options.frozenBottom?e-this._options.frozenRow:e,r=o*this._options.rowHeight,i=(o+1)*this._options.rowHeight-n+(this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0);(o+1)*this._options.rowHeight>this.scrollTop+n+this.offset?(this.scrollTo(t?r:i),this.render()):o*this._options.rowHeight<this.scrollTop+this.offset&&(this.scrollTo(t?i:r),this.render())}}scrollRowToTop(e){this.scrollTo(e*this._options.rowHeight),this.render()}scrollPage(e){let t=e*this.numVisibleRows,n=this.scrollTop+this._options.rowHeight-1;if(this.scrollTo((this.getRowFromPosition(n)+t)*this._options.rowHeight),this.render(),this._options.enableCellNavigation&&V.isDefined(this.activeRow)){let o=this.activeRow+t,r=this.getDataLengthIncludingAddNew();o>=r&&(o=r-1),o<0&&(o=0);let i=e===1?this.gotoDown(o-1||0,this.activeCell,this.activePosY,this.activePosX):this.gotoUp(o+1,this.activeCell,this.activePosY,this.activePosX);this.navigateToPos(i)}}navigatePageDown(){this.scrollPage(1)}navigatePageUp(){this.scrollPage(-1)}navigateTop(){this.unsetActiveCell(),this.navigateToRow(0)}navigateBottom(){let e=this.getDataLength()-1,t=this.getParentRowSpanByCell(e,this.activeCell)?.start??e;do if(this._options.enableCellRowSpan&&this.setActiveRow(t),this.navigateToRow(t)&&this.activeCell===this.activePosX||!V.isDefined(this.activeCell))break;while(--t>0)}navigateToRow(e){let t=this.getDataLength();if(!t)return!1;e<0?e=0:e>=t&&(e=t-1),this.scrollCellIntoView(e,0,!0);let n=!V.isDefined(this.activeCell)||!V.isDefined(this.activeRow);if(this._options.enableCellNavigation&&V.isDefined(this.activeRow)){let o=0,r=null,i=this.activePosX;for(;o<=this.activePosX;)this.canCellBeActive(e,o)&&(r=o,(!V.isDefined(this.activeCell)||o===this.activeCell)&&(n=!0)),o+=this.getColspan(e,o);r!==null?(this.setActiveCellInternal(this.getCellNode(e,r)),this.activePosX=i):this.resetActiveCell()}return n}getColspan(e,t){let n=this.getItemMetadaWhenExists(e);if(!n||!n.columns)return 1;t>=this.columns.length&&(t=this.columns.length-1);let o=(n.columns[this.columns[t].id]||n.columns[t])?.colspan;return o==="*"?o=this.columns.length-t:o=o||1,o}queuePostProcessedRowForCleanup(e,t,n){this.postProcessgroupId++,typeof t=="object"&&Object.keys(t).forEach(o=>{t.hasOwnProperty(o)&&this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e.cellNodesByColumnIdx[+o],columnIdx:+o,rowIdx:n})}),e.rowNode||(e.rowNode=[]),this.postProcessedCleanupQueue.push({actionType:"R",groupId:this.postProcessgroupId,node:e.rowNode}),e.rowNode?.forEach(o=>o.remove())}queuePostProcessedCellForCleanup(e,t,n){this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e,columnIdx:t,rowIdx:n}),e.remove()}applyFormatResultToCellNode(e,t,n){if(e==null&&(e=""),Object.prototype.toString.call(e)!=="[object Object]"){this.applyHtmlCode(t,e);return}let o=e.html||e.text;this.applyHtmlCode(t,o),e.removeClasses&&!n&&t.classList.remove(...V.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(...V.classNameToList(e.addClasses)),e.toolTip&&t.setAttribute("title",e.toolTip)}startPostProcessing(){this._options.enableAsyncPostRender&&(window.clearTimeout(this.h_postrender),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay))}startPostProcessingCleanup(){this._options.enableAsyncPostRenderCleanup&&(window.clearTimeout(this.h_postrenderCleanup),this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay))}invalidatePostProcessingResults(e){typeof this.postProcessedRows[e]=="object"&&Object.keys(this.postProcessedRows[e]).forEach(t=>{this.postProcessedRows[e].hasOwnProperty(t)&&(this.postProcessedRows[e][t]="C")}),this.postProcessFromRow=Math.min(this.postProcessFromRow,e),this.postProcessToRow=Math.max(this.postProcessToRow,e),this.startPostProcessing()}asyncPostProcessRows(){let e=this.getDataLength();for(;this.postProcessFromRow<=this.postProcessToRow;){let t=this.vScrollDir>=0?this.postProcessFromRow++:this.postProcessToRow--,n=this.rowsCache[t];if(!(!n||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(n.cellNodesByColumnIdx).forEach(o=>{if(n.cellNodesByColumnIdx.hasOwnProperty(o)){let r=+o,i=this.columns[r],a=this.postProcessedRows[t][r];if(i.asyncPostRender&&a!=="R"){let l=n.cellNodesByColumnIdx[r];l&&i.asyncPostRender(l,t,this.getDataItem(t),i,a==="C"),this.postProcessedRows[t][r]="R"}}}),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay);return}}}asyncPostProcessCleanupRows(){if(this.postProcessedCleanupQueue.length>0){let e=this.postProcessedCleanupQueue[0].groupId;for(;this.postProcessedCleanupQueue.length>0&&this.postProcessedCleanupQueue[0].groupId===e;){let t=this.postProcessedCleanupQueue.shift();if(t?.actionType==="R"&&t.node.forEach(n=>{n.remove()}),t?.actionType==="C"){let n=this.columns[t.columnIdx];n.asyncPostRenderCleanup&&t.node&&n.asyncPostRenderCleanup(t.node,t.rowIdx,n)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let n,o,r;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(i=>{this.rowsCache&&(r=t?.[i],o=e?.[i],r&&Object.keys(r).forEach(a=>{(!o||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.remove(r[a]))}),o&&Object.keys(o).forEach(a=>{(!r||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.add(o[a]))}))})}addCellCssStyles(e,t){if(this.cellCssClasses[e])throw new Error(`SlickGrid addCellCssStyles: cell CSS hash with key "${e}" already exists.`);this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,null),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}removeCellCssStyles(e){this.cellCssClasses[e]&&(this.updateCellCssStylesOnRenderedRows(null,this.cellCssClasses[e]),delete this.cellCssClasses[e],this.trigger(this.onCellCssStylesChanged,{key:e,hash:null,grid:this}))}setCellCssStyles(e,t){let n=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,n),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,n=250){let o=(r,i)=>{i<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{i%2===0?r.classList.add(this._options.cellFlashingCssClass||""):r.classList.remove(this._options.cellFlashingCssClass||""),o(r,i-1)},n))};if(this.rowsCache[e]){let r=this.getCellNode(e,t);r&&o(r,5)}}highlightRow(e,t){let n=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(n?.rowNode)&&this._options.rowHighlightCssClass&&(n.rowNode.forEach(o=>o.classList.add(...V.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{n.rowNode?.forEach(o=>o.classList.remove(...V.classNameToList(this._options.rowHighlightCssClass)))},t))}_getContainerElement(e,t,n){if(!e)return;t||(t=0),n||(n=0);let o=typeof t=="number"?t:this.getColumnIndex(t),r=this.hasFrozenRows&&n>=this.actualFrozenRow+(this._options.frozenBottom?0:1),i=this.hasFrozenColumns()&&o>this._options.frozenColumn;return e[(r?2:0)+(i?1:0)]}measureScrollbar(){let e="";this._viewport.forEach(r=>e+=r.className);let t=V.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),n=V.createDomElement("div",{style:{width:"200px",height:"200px",overflow:"auto"}},t),o={width:t.offsetWidth-t.clientWidth,height:t.offsetHeight-t.clientHeight};return n.remove(),t.remove(),o}getMaxSupportedCssHeight(){let e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?this._options.ffMaxSupportedCssHeight:this._options.maxSupportedCssHeight,n=V.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let o=e*2;V.height(n,o);let r=V.height(n);if(o>t||r!==o)break;e=o}return n.remove(),e}getUID(){return this.uid}getHeaderColumnWidthDiff(){return this.headerColumnWidthDiff}getScrollbarDimensions(){return this.scrollbarDimensions}getDisplayedScrollbarDimensions(){return{width:this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0,height:this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0}}getAbsoluteColumnMinWidth(){return this.absoluteColumnMinWidth}getVBoxDelta(e){let t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=getComputedStyle(e),o=0;return t.forEach(r=>o+=V.toFloat(n[r])),o}measureCellPaddingAndBorder(){let e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=this._headers[0];this.headerColumnWidthDiff=this.headerColumnHeightDiff=0,this.cellWidthDiff=this.cellHeightDiff=0;let o=V.createDomElement("div",{className:"ui-state-default slick-state-default slick-header-column",style:{visibility:"hidden"},textContent:"-"},n),r=getComputedStyle(o);r.boxSizing!=="border-box"&&(e.forEach(a=>this.headerColumnWidthDiff+=V.toFloat(r[a])),t.forEach(a=>this.headerColumnHeightDiff+=V.toFloat(r[a]))),o.remove();let i=V.createDomElement("div",{className:"slick-row"},this._canvas[0]);o=V.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},i),r=getComputedStyle(o),r.boxSizing!=="border-box"&&(e.forEach(a=>this.cellWidthDiff+=V.toFloat(r[a])),t.forEach(a=>this.cellHeightDiff+=V.toFloat(r[a]))),i.remove(),this.absoluteColumnMinWidth=Math.max(this.headerColumnWidthDiff,this.cellWidthDiff)}clearAllTimers(){window.clearTimeout(this._columnResizeTimer),window.clearTimeout(this._executionBlockTimer),window.clearTimeout(this._flashCellTimer),window.clearTimeout(this._highlightRowTimer),window.clearTimeout(this.h_editorLoader)}LogColWidths(){let e="Col Widths:";for(let t=0;t<this.columns.length;t++)e+=" "+(this.columns[t].hidden?"H":this.columns[t].width);console.log(e)}simpleArrayEquals(e,t){return Array.isArray(e)&&Array.isArray(t)&&t.sort().toString()!==e.sort().toString()}defaultFormatter(e,t,n){return V.isDefined(n)?(n+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}cellExists(e,t){return!(e<0||e>=this.getDataLength()||t<0||t>=this.columns.length)}getCellFromNode(e){let t=/l\d+/.exec(e.className);if(!t)throw new Error(`SlickGrid getCellFromNode: cannot get cell - ${e.className}`);return parseInt(t[0].substr(1,t[0].length-1),10)}getRowFromNode(e){for(let t in this.rowsCache)if(this.rowsCache){for(let n in this.rowsCache[t].rowNode)if(this.rowsCache[t].rowNode?.[+n]===e)return t?parseInt(t,10):0}return null}clearTextSelection(){if(document.selection?.empty)try{document.selection.empty()}catch{}else if(window.getSelection){let e=window.getSelection();e?.removeAllRanges&&e.removeAllRanges()}}disableSelection(e){e.forEach(t=>{t.setAttribute("unselectable","on"),t.style.mozUserSelect="none",this._bindingEventService.bind(t,"selectstart",()=>!1)})}getPubSubService(){return this._pubSubService}getCellFromPoint(e,t){let n=this.getRowFromPosition(t),o=0,r=0;for(let i=0;i<this.columns.length&&r<=e;i++)this.columns[i]&&(r+=this.columns[i].width,o++);return o-=1,n<-1&&(n=-1),{row:n,cell:o}}getPluginByName(e){for(let t=this.plugins.length-1;t>=0;t--)if(this.plugins[t]?.pluginName===e)return this.plugins[t]}getContainerNode(){return this._container}getCellHeight(e,t){let n=this._options.rowHeight||0;if(t>1){let o=e+t-1;n=this.getRowBottom(o)-this.getRowTop(e)}else{let o=this.getRowHeight();o!==n-this.cellHeightDiff&&(n=o)}return n-=this.cellHeightDiff,Math.ceil(n)}setDifference(e,t){return new Set(Array.from(e).filter(n=>!t.has(n)))}getCellNodeBox(e,t){if(!this.cellExists(e,t))return null;let n=this.getFrozenRowOffset(e),o=this.getRowTop(e)-n,r=o+this._options.rowHeight-1,i=0;for(let l=0;l<t;l++)!this.columns[l]||this.columns[l].hidden||(i+=this.columns[l].width||0,this._options.frozenColumn===l&&(i=0));let a=i+(this.columns[t]?.width||0);return{top:o,left:i,bottom:r,right:a}}absBox(e){let t={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:e.offsetWidth,height:e.offsetWidth,visible:!0};t.bottom=t.top+t.height,t.right=t.left+t.width;let n=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let o=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&o.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&o.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===n&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,n=e.offsetParent),t.bottom=t.top+t.height,t.right=t.left+t.width}return t}getActiveCellPosition(){return this.absBox(this.activeCellNode)}getGridPosition(){return this.absBox(this._container)}getCellEditor(){return this.currentEditor}getActiveCell(){return this.activeCellNode?{row:this.activeRow,cell:this.activeCell}:null}getActiveCellNode(){return this.activeCellNode}getTextSelection(){let e=null;if(window.getSelection){let t=window.getSelection();(t?.rangeCount??0)>0&&(e=t.getRangeAt(0))}return e}setTextSelection(e){if(window.getSelection&&e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}}sanitizeHtmlString(e,t){if(!this._options.sanitizer||typeof e!="string")return e;let n=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&n!==e&&(console.log(`sanitizer altered html: ${e} --> ${n}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),n}getRowspan(e,t){let n=1,o=this.getItemMetadaWhenExists(e);return o?.columns&&Object.keys(o.columns).forEach(r=>{let i=Number(r);if(i===t){let a=o.columns[i];n=Number(a?.rowspan||1)}}),n}findFocusableRow(e,t,n){let o=e,r=this._colsWithRowSpanCache[t]||new Set,i=!1;return Array.from(r).forEach(a=>{let[l,d]=a.split(":").map(Number);!i&&e>=l&&e<=d&&(o=n==="up"?l:d,this.canCellBeActive(o,t)&&(i=!0))}),o<0&&(o=0),o}findFirstFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);if(n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)){o=t;break}t+=this.getColspan(n,t)}return{cell:o,row:n}}findLastFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)&&(o=t),t+=this.getColspan(n,t)}return{cell:o,row:n}}rowsToRanges(e){let t=[],n=this.columns.length-1;for(let o=0;o<e.length;o++)t.push(new kB(e[o],0,e[o],n));return t}findSpanStartingCell(e,t){let n=this.getParentRowSpanByCell(e,t),o=n!==null&&n.start!==e?n.start:e,r=0,i=0;for(;r<this.columns.length;){if(r+=this.getColspan(o,r),r>t)return r=i,{cell:r,row:o};i=r}return{cell:r,row:o}}gotoRight(e,t,n,o){if(t>=this.columns.length)return null;let r=t+1,i=n;do{let a=this.findSpanStartingCell(n,r);if(i=a.row,r=a.cell,this.canCellBeActive(i,r)&&r>t)break;r+=this.getColspan(i,a.cell)}while(r<this.columns.length);return r<this.columns.length?{row:i,cell:r,posX:r,posY:n}:null}gotoLeft(e,t,n,o){if(t<=0)return null;let r=this.findFirstFocusableCell(e);if(r.cell===null||r.cell>=t)return null;let i,a={row:e,cell:r.cell,posX:r.cell,posY:n};for(;;){if(i=this.gotoRight(a.row,a.cell,a.posY,a.posX),!i)return null;if(i.cell>=t){let l=this.findFocusableRow(n,a.cell,"up");return l!==a.row&&(a.row=l),a}a=i}}gotoDown(e,t,n,o){let r,i=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,o),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e<=i&&!this.canCellBeActive(e,r));return e<=i?{row:e,cell:r,posX:o,posY:e}:null}gotoUp(e,t,n,o){let r;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,o,"up"),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,r));return t<=this.columns.length?{row:e,cell:r,posX:o,posY:e}:null}gotoNext(e,t,n,o){if(!V.isDefined(e)&&!V.isDefined(t)&&(e=t=n=o=0,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoRight(e,t,n,o);if(!r){let i;for(;!r&&++n<this.getDataLength()+(this._options.enableAddRow?1:0);)i=this.findFirstFocusableCell(n),i.cell!==null&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoPrev(e,t,n,o){if(!V.isDefined(e)&&!V.isDefined(t)&&(e=n=this.getDataLengthIncludingAddNew()-1,t=o=this.columns.length-1,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoLeft(e,t,n,o);if(!r){let i;for(;!r&&--n>=0;)i=this.findLastFocusableCell(n),i.cell>-1&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoRowStart(e,t,n,o){let r=this.findFirstFocusableCell(e);return r.cell===null?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}gotoRowEnd(e,t,n,o){let r=this.findLastFocusableCell(e);return r.cell===-1?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}navigateRight(){return this.navigate("right")}navigateLeft(){return this.navigate("left")}navigateDown(){return this.navigate("down")}navigateUp(){return this.navigate("up")}navigateNext(){return this.navigate("next")}navigatePrev(){return this.navigate("prev")}navigateRowStart(){return this.navigate("home")}navigateRowEnd(){return this.navigate("end")}navigateTopStart(){return this.navigateToRow(0),this.navigate("home")}navigateBottomEnd(){return this.navigateBottom(),this.navigate("end")}navigate(e){if(!this._options.enableCellNavigation||!this.activeCellNode&&e!=="prev"&&e!=="next")return!1;if(!this.getEditorLock()?.commitCurrentEdit())return!0;this.setFocus(),this.unsetActiveCell();let t={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1};this.tabbingDirection=t[e];let n={up:this.gotoUp,down:this.gotoDown,left:this.gotoLeft,right:this.gotoRight,prev:this.gotoPrev,next:this.gotoNext,home:this.gotoRowStart,end:this.gotoRowEnd}[e].call(this,this.activeRow,this.activeCell,this.activePosY,this.activePosX);return this.navigateToPos(n)}navigateToPos(e){if(e){if(this.hasFrozenRows&&this._options.frozenBottom&&e.row===this.getDataLength())return;let t=e.row===this.getDataLength();return(!this._options.frozenBottom&&e.row>=this.actualFrozenRow||this._options.frozenBottom&&e.row<this.actualFrozenRow)&&this.scrollCellIntoView(e.row,e.cell,!t&&this._options.emulatePagingWhenScrolling),this.setActiveCellInternal(this.getCellNode(e.row,e.cell)),this.activePosX=e.posX,this.activePosY=e.posY,!0}else return this.setActiveCellInternal(this.getCellNode(this.activeRow,this.activeCell)),!1}getCellNode(e,t){if(this.rowsCache[e]){this.ensureCellNodesInRowsCache(e);try{return this.rowsCache[e].cellNodesByColumnIdx.length>t?this.rowsCache[e].cellNodesByColumnIdx[t]:null}catch{return this.rowsCache[e].cellNodesByColumnIdx[t]}}return null}setActiveCell(e,t,n,o,r){this.initialized&&(e>this.getDataLength()||e<0||t>=this.columns.length||t<0||this._options.enableCellNavigation&&(this.scrollCellIntoView(e,t,!1),this.setActiveCellInternal(this.getCellNode(e,t),n,o,r)))}setActiveRow(e,t,n){this.initialized&&(e>this.getDataLength()||e<0||(t??0)>=this.columns.length||(t??0)<0||(this.activeRow=e,n||this.scrollCellIntoView(e,t||0,!1)))}canCellBeActive(e,t){if(!this._options.enableCellNavigation||e>=this.getDataLengthIncludingAddNew()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden||(this.getParentRowSpanByCell(e,t)?.start??e)!==e)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.focusable!==void 0)return!!n.focusable;let o=n?.columns;return o?.[this.columns[t].id]?.focusable!==void 0?!!o[this.columns[t].id].focusable:o?.[t]?.focusable!==void 0?!!o[t].focusable:!!this.columns[t].focusable}canCellBeSelected(e,t){if(e>=this.getDataLength()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.selectable!==void 0)return!!n.selectable;let o=n?.columns&&(n.columns[this.columns[t].id]||n.columns[t]);return o?.selectable!==void 0?!!o.selectable:!!this.columns[t].selectable}gotoCell(e,t,n,o){if(!this.initialized||!this.canCellBeActive(e,t)||!this.getEditorLock()?.commitCurrentEdit())return;this.scrollCellIntoView(e,t,!1);let r=this.getCellNode(e,t),i=this.columns[t],a=!!(this._options.editable&&i?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(r,n||e===this.getDataLength()||this._options.autoEdit,null,a,o),this.currentEditor||this.setFocus()}};/**
287
+ `))},[JSON.stringify(p)]));const w=Ft(),b=Qr(),{isOpen:m,setIsOpen:v}=EF(e),{timezone:P,value:D,handleValueChange:x}=Ph({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=T.useState(()=>{let j;return D!==void 0?j=D:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:D,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:O}=Zv({props:e,validator:r,timezone:P,value:S.draft,onError:e.onError}),A=Te(j=>{const ee={action:j,dateState:S,hasChanged:H=>!t.areValuesEqual(w,j.value,H),isControlled:y,closeOnSelect:u},J=kF(ee),te=PF(ee),ce=DF(ee);C(H=>Q({},H,{draft:j.value,lastPublishedValue:J?j.value:H.lastPublishedValue,lastCommittedValue:te?j.value:H.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let le=null;const he=()=>(le||(le={validationError:j.name==="setValueFromField"?j.context.validationError:O(j.value)},j.name==="setValueFromShortcut"&&(le.shortcut=j.shortcut)),le);J&&x(j.value,he()),te&&i&&i(j.value,he()),ce&&v(!1)});if(D!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(w,S.lastControlledValue,D))){const j=t.areValuesEqual(w,S.draft,D);C(ee=>Q({},ee,{lastControlledValue:D},j?{}:{lastCommittedValue:D,lastPublishedValue:D,draft:D,hasBeenModifiedSinceMount:!0}))}const F=Te(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{A({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{A({value:t.getTodayValue(w,P,n),name:"setValueFromAction",pickerAction:"today"})}),G=Te(j=>{j.preventDefault(),v(!0)}),q=Te(j=>{j?.preventDefault(),v(!1)}),Y=Te((j,ee="partial")=>A({name:"setValueFromView",value:j,selectionState:ee})),z=Te((j,ee,J)=>A({name:"setValueFromShortcut",value:j,changeImportance:ee,shortcut:J})),ae=Te((j,ee)=>A({name:"setValueFromField",value:j,context:ee})),N={onClear:F,onAccept:B,onDismiss:R,onCancel:$,onSetToday:K,onOpen:G,onClose:q},M={value:S.draft,onChange:ae},L=T.useMemo(()=>t.cleanValue(w,S.draft),[w,t,S.draft]),W={value:L,onChange:Y,onClose:q,open:m},oe=Q({},N,{value:L,onChange:Y,onSelectShortcut:z,isValid:j=>{const ee=r({adapter:b,value:j,timezone:P,props:e});return!t.hasError(ee)}}),se=T.useMemo(()=>({onOpen:G,onClose:q,open:m}),[m,q,G]);return{open:m,fieldProps:M,viewProps:W,layoutProps:oe,actions:N,contextValue:se}};let Dd=!1;function Jv({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(Dd||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Dd=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Dd=!0)));const d=T.useRef(n),u=T.useRef(r),f=T.useRef(r.includes(n)?n:r[0]),[p,y]=po({name:"useViews",state:"view",controlled:o,default:f.current}),w=T.useRef(i?p:null),[b,m]=po({name:"useViews",state:"focusedView",controlled:a,default:w.current});T.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(A=>!r.includes(A)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),P=r[v-1]??null,D=r[v+1]??null,x=Te((A,F)=>{m(F?A:B=>A===B?null:B),l?.(A,F)}),S=Te(A=>{x(A,!0),A!==p&&(y(A),t&&t(A))}),C=Te(()=>{D&&S(D)}),O=Te((A,F,B)=>{const R=F==="finish",$=B?r.indexOf(B)<r.length-1:!!D;if(e(A,R&&$?"partial":F,B),B&&B!==p){const G=r[r.indexOf(B)+1];G&&S(G)}else R&&C()});return{view:p,setView:S,focusedView:b,setFocusedView:x,nextView:D,previousView:P,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:O}}const MF=["className","sx"],IF=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:w,timezone:b}=e,m=Ye(e,MF),{view:v,setView:P,defaultView:D,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=Jv({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:O,viewModeLookup:A}=T.useMemo(()=>f.reduce((q,Y)=>{let z;return w[Y]!=null?z="UI":z="field",q.viewModeLookup[Y]=z,z==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[w,f]),F=T.useMemo(()=>f.reduce((q,Y)=>w[Y]!=null&&DA(Y)?q+1:q,0),[w,f]),B=A[v],R=Te(()=>B==="UI"),[$,K]=T.useState(B==="UI"?v:null);return $!==v&&A[v]==="UI"&&K(v),cn(()=>{B==="field"&&l&&(d(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),cn(()=>{if(!l)return;let q=v;B==="field"&&$!=null&&(q=$),q!==D&&A[q]==="UI"&&A[D]==="UI"&&(q=D),q!==v&&P(q),S(q,!0)},[l]),{hasUIView:O,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:P},renderCurrentView:()=>{if($==null)return null;const q=w[$];if(q==null)return null;const Y=Q({},m,n,t,{views:f,timezone:b,onChange:C,view:$,onViewChange:P,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(w,$,Y):q(Y)}}};function Im(){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"}const NF=(e,t)=>{const[n,o]=T.useState(Im);return cn(()=>{const i=()=>{o(Im())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),fF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},AF=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=NF(n.views,r),a=oo();return{layoutProps:Q({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function FF(e){const{props:t,pickerValueResponse:n}=e;return T.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const eb=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:d})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&TF(["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)."]);const u=OF({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=IF({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=AF({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=FF({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:y}};function tb(e){return Me("MuiPickersLayout",e)}const Or=Pe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),LF=["onAccept","onClear","onCancel","onSetToday","actions"];function nb(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=Ye(e,LF),l=dr();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return E.jsx(Po,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return E.jsx(Po,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return E.jsx(Po,{onClick:t,children:l.okButtonLabel},u);case"today":return E.jsx(Po,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return E.jsx(Cy,Q({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(nb.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const aa=36,Ac=2,Fc=320,$F=280,Oh=336,VF=["items","changeImportance","isLandscape","onChange","isValid"],jF=["getValue"];function ob(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=Ye(e,VF);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=Ye(l,jF);const f=d({isValid:r});return Q({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return E.jsx(Xu,Q({dense:!0,sx:[{maxHeight:Oh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>E.jsx(Ty,{children:E.jsx(fy,Q({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(ob.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function BF(e){return e.view!==null}const WF=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},tb,t)},HF=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:w,disabled:b,readOnly:m,children:v,slots:P,slotProps:D}=e,x=WF(e),S=P?.actionBar??nb,C=pt({elementType:S,externalSlotProps:D?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Q({},e,{wrapperVariant:t})}),O=E.jsx(S,Q({},C)),A=P?.toolbar,F=pt({elementType:A,externalSlotProps:D?.toolbar,additionalProps:{isLandscape:w,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:b,readOnly:m},className:x.toolbar,ownerState:Q({},e,{wrapperVariant:t})}),B=BF(F)&&A?E.jsx(A,Q({},F)):null,R=v,$=P?.tabs,K=a&&$?E.jsx($,Q({view:a,onViewChange:d,className:x.tabs},D?.tabs)):null,G=P?.shortcuts??ob,q=pt({elementType:G,externalSlotProps:D?.shortcuts,additionalProps:{isValid:y,isLandscape:w,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:w,onChange:p,wrapperVariant:t}}),Y=a&&G?E.jsx(G,Q({},q)):null;return{toolbar:B,content:R,tabs:K,actionBar:O,shortcuts:Y}},zF=e=>{const{isLandscape:t,classes:n}=e;return Ie({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},tb,n)},YF=ie("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Or.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Or.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Or.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Or.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Or.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Or.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Or.shortcuts}`]:{gridColumn:3}}}]}),UF=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Mh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=HF(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,w=zF(o);return E.jsxs(YF,{ref:n,sx:u,className:Se(w.root,f),ownerState:o,children:[p?d:r,p?r:d,E.jsx(UF,{className:w.contentWrapper,children:y==="desktop"?E.jsxs(T.Fragment,{children:[i,a]}):E.jsxs(T.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Mh.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const qF=T.createContext(null);function rb(e){const{contextValue:t,localeText:n,children:o}=e;return E.jsx(qF.Provider,{value:t,children:E.jsx(Ic,{localeText:n,children:o})})}const GF=["props","getOpenDialogAriaText"],KF=["ownerState"],XF=["ownerState"],ZF=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,GF);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:P,disabled:D,autoFocus:x,localeText:S,reduceAnimations:C}=t,O=T.useRef(null),A=T.useRef(null),F=ar(),B=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:G,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:z,contextValue:ae,ownerState:N}=eb(Q({},o,{props:t,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=r.inputAdornment??Ku,L=pt({elementType:M,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),W=Ye(L,KF),ne=r.openPickerButton??Gs,oe=pt({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:D||P,onClick:R?$.onClose:$.onOpen,"aria-label":n(z.value),edge:W.position},ownerState:t}),se=Ye(oe,XF),j=r.openPickerIcon,ee=pt({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:N}),J=r.field,te=pt({elementType:J,externalSlotProps:i?.field,additionalProps:Q({},z,B&&{id:F},{readOnly:P,disabled:D,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Q({},te.InputProps,{ref:O},!t.disableOpenPicker&&{[`${W.position}Adornment`]:E.jsx(M,Q({},W,{children:E.jsx(ne,Q({},se,{children:E.jsx(j,Q({},ee))}))}))}));const ce=Q({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),le=r.layout??Mh;let he=F;B&&(m?he=`${F}-label`:he=void 0);const H=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:F}),popper:Q({"aria-labelledby":he},i?.popper)}),re=ct(A,te.unstableFieldRef);return{renderPicker:()=>E.jsxs(rb,{contextValue:ae,localeText:S,children:[E.jsx(J,Q({},te,{slots:ce,slotProps:H,unstableFieldRef:re})),E.jsx(RF,Q({role:"dialog",placement:"bottom-start",anchorEl:O.current},$,{open:R,slots:r,slotProps:H,shouldRestoreFocus:Y,reduceAnimations:C,children:E.jsx(le,Q({},G,H?.layout,{slots:r,slotProps:H,children:q()}))}))]})}},QF=pn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),JF=pn(E.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),eL=pn(E.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),tL=pn(E.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");pn(E.jsxs(T.Fragment,{children:[E.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"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");pn(E.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");pn(E.jsxs(T.Fragment,{children:[E.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"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const nL=pn(E.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"),oL=({utils:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),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 picker component.");return r},rL=({utils:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},sL=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},iL=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const d=Th(e,a),u=zv(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",w=null;if(f)if(u)w=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);w=d.maxLength,p&&(y=Eh(Bv(qr(y,r),w),r))}return Q({},d,{format:a,maxLength:w,value:y,placeholder:sL(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},aL=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((w,b)=>b.length-w.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=w=>o.find(b=>b.start<=w&&b.end>=w);let y=0;for(;y<n.length;){const w=p(y),b=w!=null,m=d.exec(n.slice(y))?.[1];if(!b&&m!=null&&u.test(m)){let v=m;for(;v.length>0;){const P=f.exec(v)[1];v=v.slice(P.length),i.push(iL(Q({},e,{now:r,token:P,startSeparator:a}))),a=""}y+=m.length}else{const v=n[y];b&&w?.start===y||w?.end===y||(i.length===0?a+=v:i[i.length-1].endSeparator+=v),y+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},lL=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),Nm=e=>{let t=oL(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=rL(Q({},e,{expandedFormat:t})),o=aL(Q({},e,{expandedFormat:t,escapedParts:n}));return lL(Q({},e,{sections:o}))},cL=e=>{const t=Ft(),n=dr(),o=Qr(),r=oo(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:w,format:b,formatDensity:m="dense",selectedSections:v,onSelectedSectionsChange:P,shouldRespectLeadingZeros:D=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:O,handleValueChange:A}=Ph({timezone:x,value:f,defaultValue:p,onChange:w,valueManager:i}),F=T.useMemo(()=>FA(t),[t]),B=T.useMemo(()=>BA(t,F,C),[t,F,C]),R=T.useCallback((j,ee=null)=>a.getSectionsFromValue(t,j,ee,J=>Nm({utils:t,localeText:n,localizedDigits:F,format:b,date:J,formatDensity:m,shouldRespectLeadingZeros:D,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,b,n,F,r,D,t,m,S]),[$,K]=T.useState(()=>{const j=R(O);Em(j,l);const ee={sections:j,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},J=MA(j),te=i.getInitialReferenceValue({referenceDate:y,value:O,utils:t,props:u,granularity:J,timezone:C});return Q({},ee,{referenceValue:te})}),[G,q]=po({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=j=>{q(j),P?.(j)},z=T.useMemo(()=>yu(G,$.sections),[G,$.sections]),ae=z==="all"?0:z,N=({value:j,referenceValue:ee,sections:J})=>{if(K(ce=>Q({},ce,{sections:J,value:j,referenceValue:ee,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,j))return;const te={validationError:d({adapter:o,value:j,timezone:C,props:u})};A(j,te)},M=(j,ee)=>{const J=[...$.sections];return J[j]=Q({},J[j],{value:ee,modified:!0}),J},L=()=>{N({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},W=()=>{if(ae==null)return;const j=$.sections[ae],ee=a.getActiveDateManager(t,$,j),te=ee.getSections($.sections).filter(H=>H.value!=="").length===(j.value===""?0:1),ce=M(ae,""),le=te?null:t.getInvalidDate(),he=ee.getNewValuesFromNewActiveDate(le);N(Q({},he,{sections:ce}))},ne=j=>{const ee=(ce,le)=>{const he=t.parse(ce,b);if(he==null||!t.isValid(he))return null;const H=Nm({utils:t,localeText:n,localizedDigits:F,format:b,date:he,formatDensity:m,shouldRespectLeadingZeros:D,enableAccessibleFieldDOMStructure:S,isRtl:r});return Pm(t,he,H,le,!1)},J=a.parseValueStr(j,$.referenceValue,ee),te=a.updateReferenceValue(t,J,$.referenceValue);N({value:J,referenceValue:te,sections:R(J,$.sections)})},oe=({activeSection:j,newSectionValue:ee,shouldGoToNextSection:J})=>{J&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,j),ce=M(ae,ee),le=te.getSections(ce),he=$A(t,le,F);let H,re;if(he!=null&&t.isValid(he)){const Z=Pm(t,he,le,te.referenceDate,!0);H=te.getNewValuesFromNewActiveDate(Z),re=!0}else H=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?N(Q({},H,{sections:ce})):K(Z=>Q({},Z,H,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(ee=>Q({},ee,{tempValueStrAndroid:j}));return T.useEffect(()=>{const j=R($.value);Em(j,l),K(ee=>Q({},ee,{sections:j}))},[b,t.locale,r]),T.useEffect(()=>{let j;i.areValuesEqual(t,$.value,O)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,O):j=!0,j&&K(ee=>Q({},ee,{value:O,referenceValue:a.updateReferenceValue(t,O,ee.referenceValue),sections:R(O)}))},[O]),{state:$,activeSectionIndex:ae,parsedSelectedSections:z,setSelectedSections:Y,clearValue:L,clearActiveSection:W,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:B,localizedDigits:F,timezone:C}},dL=5e3,ms=e=>e.saveQuery!=null,uL=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Ft(),[l,d]=T.useState(null),u=Te(()=>d(null));T.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),T.useEffect(()=>{if(l!=null){const b=setTimeout(()=>u(),dL);return()=>{clearTimeout(b)}}return()=>{}},[l,u]);const f=({keyPressed:b,sectionIndex:m},v,P)=>{const D=b.toLowerCase(),x=e[m];if(l!=null&&(!P||P(l.value))&&l.sectionIndex===m){const C=`${l.value}${D}`,O=v(C,x);if(!ms(O))return d({sectionIndex:m,value:C,sectionType:x.type}),O}const S=v(D,x);return ms(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:m,value:D,sectionType:x.type}),ms(S)?null:S)},p=b=>{const m=(D,x,S)=>{const C=x.filter(O=>O.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(D,x,S,C)=>{const O=A=>jv(a,i,x.type,A);if(x.contentType==="letter")return m(x.format,O(x.format),D);if(S&&C!=null&&Th(a,S).contentType==="letter"){const A=O(S),F=m(S,A,D);return ms(F)?{saveQuery:!1}:Q({},F,{sectionValue:C(F.sectionValue,A)})}return{saveQuery:!1}};return f(b,(D,x)=>{switch(x.type){case"month":{const S=C=>Rm(a,C,a.formats.month,x.format);return v(D,x,a.formats.month,S)}case"weekDay":{const S=(C,O)=>O.indexOf(C).toString();return v(D,x,a.formats.weekday,S)}case"meridiem":return v(D,x);default:return{saveQuery:!1}}})},y=b=>{const m=(P,D)=>{const x=qr(P,o),S=Number(x),C=n[D.type]({currentDate:null,format:D.format,contentType:D.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const O=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:Wv(a,S,C,o,D),shouldGoToNextSection:O}};return f(b,(P,D)=>{if(D.contentType==="digit"||D.contentType==="digit-with-letter")return m(P,D);if(D.type==="month"){zv(a,"digit","month","MM");const x=m(P,{type:D.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ms(x))return x;const S=Rm(a,x.sectionValue,"MM",D.format);return Q({},x,{sectionValue:S})}if(D.type==="weekDay"){const x=m(P,D);if(ms(x))return x;const S=Mc(a,D.format)[Number(x.sectionValue)-1];return Q({},x,{sectionValue:S})}return{saveQuery:!1}},P=>xm(P,o))};return{applyCharacterEditing:Te(b=>{const m=e[b.sectionIndex],P=xm(b.keyPressed,o)?y(Q({},b,{keyPressed:Eh(b.keyPressed,o)})):p(b);if(P==null){r(null);return}t({activeSection:m,newSectionValue:P.sectionValue,shouldGoToNextSection:P.shouldGoToNextSection})}),resetCharacterQuery:u}},hL=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:w,setSelectedSections:b,parsedSelectedSections:m,state:v,clearActiveSection:P,clearValue:D,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:O,sectionsValueBoundaries:A}=e,F=T.useRef(null),B=ct(o,F),R=dr(),$=Ft(),K=ar(),[G,q]=T.useState(!1),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(m==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),G&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains($n(document)))return;const Z=new window.Range;let fe;m==="all"?fe=F.current.getRoot():v.sections[m].type==="empty"?fe=F.current.getSectionContainer(m):fe=F.current.getSectionContent(m),Z.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Z)},getActiveSectionIndexFromDOM:()=>{const re=$n(document);return!re||!F.current||!F.current.getRoot().contains(re)?null:F.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!F.current)return;const Z=yu(re,v.sections);q(!0),F.current.getSectionContent(Z).focus()},setSelectedSections:re=>{if(!F.current)return;const Z=yu(re,v.sections);q((Z==="all"?0:Z)!==null),b(re)},isFieldFocused:()=>{const re=$n(document);return!!F.current&&F.current.getRoot().contains(re)}}),[m,b,v.sections,G]),z=Te(re=>{if(!F.current)return;const Z=v.sections[re];F.current.getSectionContent(re).innerHTML=Z.value||Z.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Z)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Z),m==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){b(C.startIndex);return}let pe=0,be=0;for(;be<fe&&pe<v.sections.length;){const ge=v.sections[pe];pe+=1,be+=`${ge.startSeparator}${ge.value||ge.placeholder}${ge.endSeparator}`.length}b(pe-1)}):G?F.current.getRoot().contains(re.target)||b(C.startIndex):(q(!0),b(C.startIndex)))}),N=Te(re=>{if(l?.(re),!F.current||m!=="all")return;const fe=re.target.textContent??"";F.current.getRoot().innerHTML=v.sections.map(pe=>`${pe.startSeparator}${pe.value||pe.placeholder}${pe.endSeparator}`).join(""),Y.syncSelectionToDOM(),fe.length===0||fe.charCodeAt(0)===10?(w(),D(),b("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),M=Te(re=>{if(d?.(re),n||m!=="all"){re.preventDefault();return}const Z=re.clipboardData.getData("text");re.preventDefault(),w(),S(Z)}),L=Te((...re)=>{if(a?.(...re),G||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement($n(document))!=null||b(C.startIndex)}),W=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Z=$n(document);!F.current.getRoot().contains(Z)&&(q(!1),b(null))})}),ne=Te(re=>Z=>{Z.isDefaultPrevented()||b(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{b(re)}),j=Te(re=>{if(re.preventDefault(),n||t||typeof m!="number")return;const Z=v.sections[m],fe=re.clipboardData.getData("text"),pe=/^[a-zA-Z]+$/.test(fe),be=/^[0-9]+$/.test(fe),ge=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);Z.contentType==="letter"&&pe||Z.contentType==="digit"&&be||Z.contentType==="digit-with-letter"&&ge?(w(),x({activeSection:Z,newSectionValue:fe,shouldGoToNextSection:!0})):!pe&&!be&&(w(),S(fe))}),ee=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),J=Te(re=>{if(!F.current)return;const Z=re.target,fe=Z.textContent??"",pe=F.current.getSectionIndexFromDOMElement(Z),be=v.sections[pe];if(n||!F.current){z(pe);return}if(fe.length===0){if(be.value===""){z(pe);return}const ge=re.nativeEvent.inputType;if(ge==="insertParagraph"||ge==="insertLineBreak"){z(pe);return}w(),P();return}y({keyPressed:fe,sectionIndex:pe}),z(pe)});cn(()=>{if(!(!G||!F.current)){if(m==="all")F.current.getRoot().focus();else if(typeof m=="number"){const re=F.current.getSectionContent(m);re&&re.focus()}}},[m,G]);const te=T.useMemo(()=>v.sections.reduce((re,Z)=>(re[Z.type]=A[Z.type]({currentDate:null,contentType:Z.contentType,format:Z.format}),re),{}),[A,v.sections]),ce=m==="all",le=T.useMemo(()=>v.sections.map((re,Z)=>{const fe=!ce&&!t&&!n;return{container:{"data-sectionindex":Z,onClick:ne(Z)},content:{tabIndex:ce||Z>0?-1:0,contentEditable:!ce&&!t&&!n,role:"spinbutton",id:`${K}-${re.type}`,"aria-labelledby":`${K}-${re.type}`,"aria-readonly":n,"aria-valuenow":UA(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?YA(re,$):R.empty,"aria-label":R[re.type],"aria-disabled":t,spellCheck:fe?!1:void 0,autoCapitalize:fe?"off":void 0,autoCorrect:fe?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:J,onPaste:j,onFocus:se(Z),onDragOver:ee,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,j,ee,J,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{S(re.target.value)}),H=T.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(v.sections),[O,v.sections,p]);return T.useEffect(()=>{if(F.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 remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker 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(`
288
+ `));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??G,sectionListRef:B,onBlur:W,onClick:ae,onFocus:L,onInput:N,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:le,tabIndex:m===0?-1:0,contentEditable:ce,value:H,onChange:he,areAllSectionsEmpty:O}}},xs=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),fL=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=kh(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=xs(u).length,p=u.length,y=xs(d),w=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=w+y.length;i.push(Q({},l,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},pL=e=>{const t=oo(),n=T.useRef(),o=T.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:m,valueManager:v,applyCharacterEditing:P,resetCharacterQuery:D,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:O,setTempAndroidValueStr:A,setSelectedSections:F,getSectionsFromValue:B,areAllSectionsEmpty:R,localizedDigits:$}=e,K=T.useRef(null),G=ct(d,K),q=T.useMemo(()=>fL(b.sections,$,t),[b.sections,$,t]),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==$n(document))return;const J=K.current.scrollTop;if(y==="all")K.current.select();else{const te=q[y],ce=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,le=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ce!==K.current.selectionStart||le!==K.current.selectionEnd)&&K.current===$n(document)&&K.current.setSelectionRange(ce,le),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===$n(document)&&K.current.selectionStart===K.current.selectionEnd&&(K.current.selectionStart!==ce||K.current.selectionEnd!==le)&&Y.syncSelectionToDOM()})}K.current.scrollTop=J},getActiveSectionIndexFromDOM:()=>{const J=K.current.selectionStart??0,te=K.current.selectionEnd??0;if(J===0&&te===0)return null;const ce=J<=q[0].startInInput?1:q.findIndex(le=>le.startInInput-le.startSeparator.length>J);return ce===-1?q.length-1:ce-1},focusField:(J=0)=>{K.current?.focus(),F(J)},setSelectedSections:J=>F(J),isFieldFocused:()=>K.current===$n(document)}),[K,y,q,F]),z=()=>{const J=K.current.selectionStart??0;let te;J<=q[0].startInInput||J>=q[q.length-1].endInInput?te=1:te=q.findIndex(le=>le.startInInput-le.startSeparator.length>J);const ce=te===-1?q.length-1:te-1;F(ce)},ae=Te((...J)=>{r?.(...J);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||w==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):z())})}),N=Te((J,...te)=>{J.isDefaultPrevented()||(i?.(J,...te),z())}),M=Te(J=>{if(a?.(J),J.preventDefault(),f||p)return;const te=J.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],le=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),H=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&le||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&H){D(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(le||he)return}D(),S(te)}),L=Te((...J)=>{l?.(...J),F(null)}),W=Te(J=>{if(f)return;const te=J.target.value;if(te===""){D(),O();return}const ce=J.nativeEvent.data,le=ce&&ce.length>1,he=le?ce:te,H=xs(he);if(w==null||le){S(le?ce:H);return}let re;if(y==="all"&&H.length===1)re=H;else{const Z=xs(m.getV6InputValueFromSections(q,$,t));let fe=-1,pe=-1;for(let Ve=0;Ve<Z.length;Ve+=1)fe===-1&&Z[Ve]!==H[Ve]&&(fe=Ve),pe===-1&&Z[Z.length-Ve-1]!==H[H.length-Ve-1]&&(pe=Ve);const be=q[w];if(fe<be.start||Z.length-pe-1>be.end)return;const Re=H.length-Z.length+be.end-xs(be.endSeparator||"").length;re=H.slice(be.start+xs(be.startSeparator||"").length,Re)}if(re.length===0){HA()&&A(he),D(),C();return}P({keyPressed:re,sectionIndex:w})}),ne=T.useMemo(()=>u!==void 0?u:m.getV6InputValueFromSections(B(v.emptyValue),$,t),[u,m,B,v.emptyValue,$,t]),oe=T.useMemo(()=>b.tempValueStrAndroid??m.getV6InputValueFromSections(b.sections,$,t),[b.sections,m,b.tempValueStrAndroid,$,t]);T.useEffect(()=>(K.current&&K.current===$n(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=T.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),ee=!(K.current&&K.current===$n(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:L,onClick:N,onFocus:ae,onPaste:M,inputRef:G,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:ee?"":oe,onChange:W}}},mL=e=>{const t=Ft(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:w,validator:b}=e,m=oo(),v=cL(e),{state:P,activeSectionIndex:D,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:O,updateSectionValue:A,setTempAndroidValueStr:F,sectionsValueBoundaries:B,localizedDigits:R,timezone:$}=v,K=uL({sections:P.sections,updateSectionValue:A,sectionsValueBoundaries:B,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:G}=K,q=w.areValuesEqual(t,P.value,w.emptyValue),Y=i?hL:pL,z=T.useMemo(()=>zA(P.sections,m&&!i),[P.sections,m,i]),{returnedValue:ae,interactions:N}=Y(Q({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:z})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(z.startIndex);else if(x==="all")S(z.endIndex);else{const ee=z.neighbors[x].rightIndex;ee!==null&&S(ee)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(z.endIndex);else if(x==="all")S(z.startIndex);else{const ee=z.neighbors[x].leftIndex;ee!==null&&S(ee)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():O(),G();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||D==null)break;const ee=P.sections[D],J=y.getActiveDateManager(t,P,ee),te=LA(t,$,ee,j.key,B,R,J.date,{minutesStep:r});A({activeSection:ee,newSectionValue:te,shouldGoToNextSection:!1});break}}});cn(()=>{N.syncSelectionToDOM()});const{hasValidationError:L}=Zv({props:n,validator:b,timezone:$,value:P.value,onError:n.onError}),W=T.useMemo(()=>u!==void 0?u:L,[L,u]);T.useEffect(()=>{!W&&D==null&&G()},[P.referenceValue,D,W]),T.useEffect(()=>{P.tempValueStrAndroid!=null&&D!=null&&(G(),O())},[P.sections]),T.useImperativeHandle(o,()=>({getSections:()=>P.sections,getActiveSectionIndex:N.getActiveSectionIndexFromDOM,setSelectedSections:N.setSelectedSections,focusField:N.focusField,isFieldFocused:N.isFieldFocused}));const ne=Te((j,...ee)=>{j.preventDefault(),p?.(j,...ee),C(),N.isFieldFocused()?S(z.startIndex):N.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:W,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Q({},e.forwardedProps,oe,se,ae)},gL=["clearable","onClear","InputProps","sx","slots","slotProps"],yL=["ownerState"],vL=e=>{const t=dr(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=Ye(e,gL),u=a?.clearButton??Gs,f=pt({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=Ye(f,yL),y=a?.clearIcon??nL,w=pt({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Q({},d,{InputProps:Q({},r,{endAdornment:E.jsxs(T.Fragment,{children:[n&&E.jsx(Ku,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:E.jsx(u,Q({},p,{onClick:o,children:E.jsx(y,Q({fontSize:"small"},w))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},bL=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],wL=(e,t)=>T.useMemo(()=>{const n=Q({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return bL.forEach(r),Kv.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),CL=e=>{const t=Ft(),n=Ra();return Q({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:to(t,e.minDate,n.minDate),maxDate:to(t,e.maxDate,n.maxDate)})},SL=e=>{const t=CL(e),{forwardedProps:n,internalProps:o}=wL(t,"date");return mL({forwardedProps:n,internalProps:o,valueManager:Lo,fieldValueManager:GA,validator:Ta,valueType:"date"})};function _L(e){return Me("MuiPickersTextField",e)}Pe("MuiPickersTextField",["root","focused","disabled","error","required"]);function xL(e){return Me("MuiPickersInputBase",e)}const Ms=Pe("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function RL(e){return Me("MuiPickersSectionList",e)}const bi=Pe("MuiPickersSectionList",["root","section","sectionContent"]),TL=["slots","slotProps","elements","sectionListRef"],sb=ie("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),ib=ie("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),ab=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),lb=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),EL=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},RL,t)};function cb(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??ib,a=pt({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??lb,d=pt({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??ab,f=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return E.jsxs(i,Q({},a,{children:[E.jsx(u,Q({},f)),E.jsx(l,Q({},d)),E.jsx(u,Q({},p))]}))}process.env.NODE_ENV!=="production"&&(cb.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const db=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=Ye(o,TL),u=EL(o),f=T.useRef(null),p=ct(n,f),y=m=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return f.current};T.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(m){return y("getSectionContainer").querySelector(`.${bi.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return y("getSectionContent").querySelector(`.${bi.section}[data-sectionindex="${m}"] .${bi.sectionContent}`)},getSectionIndexFromDOMElement(m){const v=y("getSectionIndexFromDOMElement");if(m==null||!v.contains(m))return null;let P=null;return m.classList.contains(bi.section)?P=m:m.classList.contains(bi.sectionContent)&&(P=m.parentElement),P==null?null:Number(P.dataset.sectionindex)}}));const w=r?.root??sb,b=pt({elementType:w,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return E.jsx(w,Q({},b,{children:b.contentEditable?a.map(({content:m,before:v,after:P})=>`${v.children}${m.children}${P.children}`).join(""):E.jsx(T.Fragment,{children:a.map((m,v)=>E.jsx(cb,{slots:r,slotProps:i,element:m,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(db.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const kL=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],PL=e=>Math.round(e*1e5)/1e5,Lc=ie("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Q({},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:`${PL(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Ih=ie(sb,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.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:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:o,label:r})=>!t&&!n&&!o&&r==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),DL=ie(ib,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),OL=ie(lb,{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"})),ML=ie(ab,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),IL=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Q({},sR)),NL=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${we(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(p,xL,r)},$c=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:w,contentEditable:b,tabIndex:m,onInput:v,onPaste:P,onKeyDown:D,name:x,readOnly:S,inputProps:C,inputRef:O,sectionListRef:A}=o,F=Ye(o,kL),B=T.useRef(null),R=ct(n,B),$=ct(C?.ref,O),K=oo(),G=Nn();if(!G)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=L=>{if(G.disabled){L.stopPropagation();return}G.onFocus?.(L)};T.useEffect(()=>{G&&G.setAdornedStart(!!f)},[G,f]),T.useEffect(()=>{G&&(i?G.onEmpty():G.onFilled())},[G,i]);const Y=Q({},o,G,{isRtl:K}),z=NL(Y),ae=y?.root||Lc,N=pt({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":G.error,ref:R},className:z.root,ownerState:Y}),M=y?.input||Ih;return E.jsxs(ae,Q({},N,{children:[f,E.jsx(db,{sectionListRef:A,elements:r,contentEditable:b,tabIndex:m,className:z.sectionsContainer,onFocus:q,onBlur:G.onBlur,onInput:v,onPaste:P,onKeyDown:D,slots:{root:M,section:DL,sectionContent:OL,sectionSeparator:ML},slotProps:{root:{ownerState:Y},sectionContent:{className:Ms.sectionContent},sectionSeparator:({position:L})=>({className:L==="before"?Ms.sectionBefore:Ms.sectionAfter})}}),u,p?p(Q({},G)):null,E.jsx(IL,Q({name:x,className:z.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:G.required,disabled:G.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&($c.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function AL(e){return Me("MuiPickersOutlinedInput",e)}const lo=Q({},Ms,Pe("MuiPickersOutlinedInput",["root","notchedOutline","input"])),FL=["children","className","label","notched","shrink"],LL=ie("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.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}}),Am=ie("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),$L=ie("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!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:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function VL(e){const{className:t,label:n}=e,o=Ye(e,FL),r=n!=null&&n!=="",i=Q({},e,{withLabel:r});return E.jsx(LL,Q({"aria-hidden":!0,className:t},o,{ownerState:i,children:E.jsx($L,{ownerState:i,children:r?E.jsx(Am,{children:n}):E.jsx(Am,{className:"notranslate",children:"​"})})}))}const jL=["label","autoFocus","ownerState","notched"],BL=ie(Lc,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.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 .${lo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${lo.focused} .${lo.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${lo.disabled}`]:{[`& .${lo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${lo.error} .${lo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${lo.focused}:not(.${lo.error}) .${lo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),WL=ie(Ih,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),HL=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AL,t);return Q({},t,o)},Nh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=Ye(o,jL),d=Nn(),u=Q({},o,i,d,{color:d?.color||"primary"}),f=HL(u);return E.jsx($c,Q({slots:{root:BL,input:WL},renderSuffix:p=>E.jsx(VL,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?E.jsxs(T.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Nh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Nh.muiName="Input";function zL(e){return Me("MuiPickersFilledInput",e)}const Mr=Q({},Ms,Pe("MuiPickersFilledInput",["root","underline","input"])),YL=["label","autoFocus","disableUnderline","ownerState"],UL=ie(Lc,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dl(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)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Mr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Mr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.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"},[`&.${Mr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mr.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(.${Mr.disabled}, .${Mr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Mr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),qL=ie(Ih,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),GL=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},zL,t);return Q({},t,r)},Ah=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,YL),d=Nn(),u=Q({},o,a,d,{color:d?.color||"primary"}),f=GL(u);return E.jsx($c,Q({slots:{root:UL,input:qL},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Ah.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Ah.muiName="Input";function KL(e){return Me("MuiPickersFilledInput",e)}const wi=Q({},Ms,Pe("MuiPickersInput",["root","input"])),XL=["label","autoFocus","disableUnderline","ownerState"],ZL=ie(Lc,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({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(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},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"},[`&.${wi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wi.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(.${wi.disabled}, .${wi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${wi.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),QL=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},KL,t);return Q({},t,r)},Fh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,XL),d=Nn(),u=Q({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=QL(u);return E.jsx($c,Q({slots:{root:ZL}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Fh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Fh.muiName="Input";const JL=["onFocus","onBlur","className","color","disabled","error","variant","required","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"],e$={standard:Fh,filled:Ah,outlined:Nh},t$=ie(mc,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n$=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},_L,o)},ub=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:w,inputRef:b,sectionListRef:m,elements:v,areAllSectionsEmpty:P,onClick:D,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:O,endAdornment:A,startAdornment:F,tabIndex:B,contentEditable:R,focused:$,value:K,onChange:G,fullWidth:q,id:Y,name:z,helperText:ae,FormHelperTextProps:N,label:M,InputLabelProps:L}=o,W=Ye(o,JL),ne=T.useRef(null),oe=ct(n,ne),se=ar(Y),j=ae&&se?`${se}-helper-text`:void 0,ee=M&&se?`${se}-label`:void 0,J=Q({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=n$(J),ce=e$[f];return E.jsxs(t$,Q({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:J},W,{children:[E.jsx(gc,Q({htmlFor:se,id:ee},L,{children:M})),E.jsx(ce,Q({elements:v,areAllSectionsEmpty:P,onClick:D,onKeyDown:x,onKeyUp:S,onInput:O,onPaste:C,endAdornment:A,startAdornment:F,tabIndex:B,contentEditable:R,value:K,onChange:G,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:m,label:M,name:z,role:"group","aria-labelledby":ee},y)),ae&&E.jsx(Gu,Q({id:j},N,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(ub.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const o$=["enableAccessibleFieldDOMStructure"],r$=["InputProps","readOnly"],s$=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],i$=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ye(e,o$);if(t){const{InputProps:p,readOnly:y}=n,w=Ye(n,r$);return Q({},w,{InputProps:Q({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=Ye(n,s$);return Q({},f,{InputProps:Q({},l??{},{readOnly:a}),inputProps:Q({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},a$=["slots","slotProps","InputProps","inputProps"],Lh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=Ye(o,a$),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?ub:Bs),p=pt({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Q({},l,p.inputProps),p.InputProps=Q({},a,p.InputProps);const y=SL(p),w=i$(y),b=vL(Q({},w,{slots:r,slotProps:i}));return E.jsx(f,Q({},b))});process.env.NODE_ENV!=="production"&&(Lh.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const hb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=Qr();return T.useCallback(u=>Ta({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},l$=(e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return Q({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=r.newTimezone;if(n.getTimezone(o.currentMonth)===i)return o;let a=n.setTimezone(o.currentMonth,i);return n.getMonth(a)!==n.getMonth(o.currentMonth)&&(a=n.setMonth(a,n.getMonth(o.currentMonth))),Q({},o,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Q({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&r.focusedDay!=null&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const i=r.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return Q({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:i&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:r.focusedDay!=null&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},c$=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Ft(),w=T.useRef(l$(!!u,i,y)).current,b=T.useMemo(()=>Lo.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:To.day}),[n,p]),[m,v]=T.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});T.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const P=T.useCallback(O=>{v(Q({type:"changeMonth"},O)),d&&d(O.newMonth)},[d]),D=T.useCallback(O=>{const A=O;y.isSameMonth(A,m.currentMonth)||P({newMonth:y.startOfMonth(A),direction:y.isAfterDay(A,m.currentMonth)?"left":"right"})},[m.currentMonth,P,y]),x=hb({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=T.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((O,A)=>{x(O)||v({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:A})});return{referenceDate:b,calendarState:m,changeMonth:D,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:P}},d$=e=>Me("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const u$=e=>{const{classes:t}=e;return Ie({root:["root"]},d$,t)},h$=ie(ma,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function fb(e){const t=Nt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=u$(t),l=Gr();return r?n:E.jsx(h$,{className:Se(a.root,o),children:E.jsx(Kr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function f$(e){return Me("MuiPickersDay",e)}const Ir=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),p$=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],m$=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Ie({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},f$,d)},pb=({theme:e})=>Q({},e.typography.caption,{width:aa,height:aa,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})`:tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Ir.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ir.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}},[`&.${Ir.disabled}:not(.${Ir.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ir.disabled}&.${Ir.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Ac}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Ir.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),mb=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},g$=ie(Cr,{name:"MuiPickersDay",slot:"Root",overridesResolver:mb})(pb),y$=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:mb})(({theme:e})=>Q({},pb({theme:e}),{opacity:0,pointerEvents:"none"})),Ci=()=>{},gb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:w=Ci,onBlur:b=Ci,onKeyDown:m=Ci,onMouseDown:v=Ci,onMouseEnter:P=Ci,outsideCurrentMonth:D,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:O=!1}=o,A=Ye(o,p$),F=Q({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:O}),B=m$(F),R=Ft(),$=T.useRef(null),K=ct($,n);cn(()=>{r&&!l&&!f&&!D&&$.current.focus()},[r,l,f,D]);const G=Y=>{v(Y),D&&Y.preventDefault()},q=Y=>{l||y(a),D&&Y.currentTarget.focus(),p&&p(Y)};return D&&!S?E.jsx(y$,{className:Se(B.root,B.hiddenDaySpacingFiller,i),ownerState:F,role:A.role}):E.jsx(g$,Q({className:Se(B.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>m(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>P(Y,a),onClick:q,onMouseDown:G},A,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(gb.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const v$=T.memo(gb),b$=e=>Me("MuiPickersSlideTransition",e),Un=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),w$=["children","className","reduceAnimations","slideDirection","transKey","classes"],C$=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,b$,t)},S$=ie(ma,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Un["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Un["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Un.slideEnterActive}`]:t.slideEnterActive},{[`.${Un.slideExit}`]:t.slideExit},{[`.${Un["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Un["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},[`& .${Un["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Un["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Un.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Un.slideExit}`]:{transform:"translate(0%)"},[`& .${Un["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Un["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function _$(e){const t=Nt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=Ye(t,w$),l=C$(t),d=Gr();if(r)return E.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return E.jsx(S$,{className:Se(l.root,o),childFactory:f=>T.cloneElement(f,{classNames:u}),role:"presentation",children:E.jsx(Lu,Q({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const x$=e=>Me("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const R$=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],T$=["ownerState"],E$=e=>{const{classes:t}=e;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},x$,t)},yb=(aa+Ac*2)*6,k$=ie("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),P$=ie("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),D$=ie(Cn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.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})),O$=ie(Cn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),M$=ie(Cn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Q({},e.typography.caption,{width:aa,height:aa,padding:0,margin:`0 ${Ac}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),I$=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:yb}),N$=ie(_$,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:yb}),A$=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),F$=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ac}px 0`,display:"flex",justifyContent:"center"});function L$(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=Ye(e,R$);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:m}=t,v=Ft(),P=Nc(m),D=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,P),C=w?.day??v$,O=pt({elementType:C,externalSlotProps:b?.day,additionalProps:Q({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Q({},t,{day:n,selected:x})}),A=Ye(O,T$),F=T.useMemo(()=>u||i(n),[u,i,n]),B=T.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=T.useMemo(()=>{const K=v.startOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.startOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]),$=T.useMemo(()=>{const K=v.endOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.endOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]);return E.jsx(C,Q({},A,{day:n,disabled:F,autoFocus:l&&D,today:S,outsideCurrentMonth:B,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:D?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function $$(e){const t=Nt({props:e,name:"MuiDayCalendar"}),n=Ft(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:w=()=>E.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:m,disablePast:v,disableFuture:P,minDate:D,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,dayOfWeekFormatter:A=pe=>n.format(pe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:B,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:G,timezone:q}=t,Y=Nc(q),z=E$(t),ae=oo(),N=hb({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,minDate:D,maxDate:x,disablePast:v,disableFuture:P,timezone:q}),M=dr(),[L,W]=po({name:"DayCalendar",state:"hasFocus",controlled:F,default:G??!1}),[ne,oe]=T.useState(()=>l||Y),se=Te(pe=>{p||u(pe)}),j=pe=>{N(pe)||(o(pe),oe(pe),B?.(!0),W(!0))},ee=Te((pe,be)=>{switch(pe.key){case"ArrowUp":j(n.addDays(be,-7)),pe.preventDefault();break;case"ArrowDown":j(n.addDays(be,7)),pe.preventDefault();break;case"ArrowLeft":{const ge=n.addDays(be,ae?1:-1),Re=n.addMonths(be,ae?1:-1),Ve=Bi({utils:n,date:ge,minDate:ae?ge:n.startOfMonth(Re),maxDate:ae?n.endOfMonth(Re):ge,isDateDisabled:N,timezone:q});j(Ve||ge),pe.preventDefault();break}case"ArrowRight":{const ge=n.addDays(be,ae?-1:1),Re=n.addMonths(be,ae?-1:1),Ve=Bi({utils:n,date:ge,minDate:ae?n.startOfMonth(Re):ge,maxDate:ae?ge:n.endOfMonth(Re),isDateDisabled:N,timezone:q});j(Ve||ge),pe.preventDefault();break}case"Home":j(n.startOfWeek(be)),pe.preventDefault();break;case"End":j(n.endOfWeek(be)),pe.preventDefault();break;case"PageUp":j(n.addMonths(be,1)),pe.preventDefault();break;case"PageDown":j(n.addMonths(be,-1)),pe.preventDefault();break}}),J=Te((pe,be)=>j(be)),te=Te((pe,be)=>{L&&n.isSameDay(ne,be)&&B?.(!1)}),ce=n.getMonth(i),le=n.getYear(i),he=T.useMemo(()=>a.filter(pe=>!!pe).map(pe=>n.startOfDay(pe)),[n,a]),H=`${le}-${ce}`,re=T.useMemo(()=>T.createRef(),[H]),Z=T.useMemo(()=>{const pe=n.startOfMonth(i),be=n.endOfMonth(i);return N(ne)||n.isAfterDay(ne,be)||n.isBeforeDay(ne,pe)?Bi({utils:n,date:ne,minDate:pe,maxDate:be,disablePast:v,disableFuture:P,isDateDisabled:N,timezone:q}):ne},[i,P,v,ne,N,n,q]),fe=T.useMemo(()=>{const pe=n.getWeekArray(i);let be=n.addMonths(i,1);for(;K&&pe.length<K;){const ge=n.getWeekArray(be),Re=n.isSameDay(pe[pe.length-1][0],ge[0][0]);ge.slice(Re?1:0).forEach(Ve=>{pe.length<K&&pe.push(Ve)}),be=n.addMonths(be,1)}return pe},[i,K,n]);return E.jsxs(k$,{role:"grid","aria-labelledby":R,className:z.root,children:[E.jsxs(P$,{role:"row",className:z.header,children:[$&&E.jsx(O$,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:z.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),kA(n,Y).map((pe,be)=>E.jsx(D$,{variant:"caption",role:"columnheader","aria-label":n.format(pe,"weekday"),className:z.weekDayLabel,children:A(pe)},be.toString()))]}),d?E.jsx(I$,{className:z.loadingContainer,children:w()}):E.jsx(N$,Q({transKey:H,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,z.slideTransition)},m,{nodeRef:re,children:E.jsx(A$,{ref:re,role:"rowgroup",className:z.monthContainer,children:fe.map((pe,be)=>E.jsxs(F$,{role:"row",className:z.weekContainer,"aria-rowindex":be+1,children:[$&&E.jsx(M$,{className:z.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(pe[0])),children:M.calendarWeekNumberText(n.getWeekNumber(pe[0]))}),pe.map((ge,Re)=>E.jsx(L$,{parentProps:t,day:ge,selectedDays:he,focusableDay:Z,onKeyDown:ee,onFocus:J,onBlur:te,onDaySelect:se,isDateDisabled:N,currentMonthNumber:ce,isViewFocused:L,"aria-colindex":Re+1},ge.toString()))]},`week-${pe[0]}`))})}))]})}function V$(e){return Me("MuiPickersMonth",e)}const ol=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),j$=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],B$=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},V$,o)},W$=ie("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),H$=ie("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${ol.disabled}`]:t.disabled},{[`&.${ol.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ol.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ol.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),z$=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,"aria-label":m,slots:v,slotProps:P}=n,D=Ye(n,j$),x=T.useRef(null),S=B$(n);cn(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??H$,O=pt({elementType:C,externalSlotProps:P?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":b,"aria-checked":l,"aria-label":m,onClick:A=>f(A,d),onKeyDown:A=>p(A,d),onFocus:A=>y(A,d),onBlur:A=>w(A,d)},ownerState:n,className:S.monthButton});return E.jsx(W$,Q({className:Se(S.root,r),ownerState:n},D,{children:E.jsx(C,Q({},O))}))});function Y$(e){return Me("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const U$=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],q$=e=>{const{classes:t}=e;return Ie({root:["root"]},Y$,t)};function G$(e,t){const n=Ft(),o=Ra(),r=Nt({props:e,name:t});return Q({disableFuture:!1,disablePast:!1},r,{minDate:to(n,r.minDate,o.minDate),maxDate:to(n,r.maxDate,o.maxDate)})}const K$=ie("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Fc,boxSizing:"border-box"}),vb=T.forwardRef(function(t,n){const o=G$(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:m,autoFocus:v=!1,onMonthFocus:P,hasFocus:D,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:O,slots:A,slotProps:F}=o,B=Ye(o,U$),{value:R,handleValueChange:$,timezone:K}=Dh({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:Lo}),G=Nc(K),q=oo(),Y=Ft(),z=T.useMemo(()=>Lo.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:To.month}),[]),ae=o,N=q$(ae),M=T.useMemo(()=>Y.getMonth(G),[Y,G]),L=T.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[W,ne]=T.useState(()=>L||Y.getMonth(z)),[oe,se]=po({name:"MonthCalendar",state:"hasFocus",controlled:D,default:v??!1}),j=Te(H=>{se(H),x&&x(H)}),ee=T.useCallback(H=>{const re=Y.startOfMonth(f&&Y.isAfter(G,y)?G:y),Z=Y.startOfMonth(u&&Y.isBefore(G,p)?G:p),fe=Y.startOfMonth(H);return Y.isBefore(fe,re)||Y.isAfter(fe,Z)?!0:b?b(fe):!1},[u,f,p,y,G,b,Y]),J=Te((H,re)=>{if(m)return;const Z=Y.setMonth(R??z,re);$(Z)}),te=Te(H=>{ee(Y.setMonth(R??z,H))||(ne(H),j(!0),P&&P(H))});T.useEffect(()=>{ne(H=>L!==null&&H!==L?L:H)},[L]);const ce=Te((H,re)=>{switch(H.key){case"ArrowUp":te((12+re-3)%12),H.preventDefault();break;case"ArrowDown":te((12+re+3)%12),H.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),H.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),H.preventDefault();break}}),le=Te((H,re)=>{te(re)}),he=Te((H,re)=>{W===re&&j(!1)});return E.jsx(K$,Q({ref:n,className:Se(N.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":O},B,{children:xh(Y,R??z).map(H=>{const re=Y.getMonth(H),Z=Y.format(H,"monthShort"),fe=Y.format(H,"month"),pe=re===L,be=d||ee(H);return E.jsx(z$,{selected:pe,value:re,onClick:J,onKeyDown:ce,autoFocus:oe&&re===W,disabled:be,tabIndex:re===W&&!be?0:-1,onFocus:le,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:A,slotProps:F,children:Z},Z)})}))});process.env.NODE_ENV!=="production"&&(vb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function X$(e){return Me("MuiPickersYear",e)}const rl=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),Z$=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Q$=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},X$,o)},J$=ie("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),eV=ie("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${rl.disabled}`]:t.disabled},{[`&.${rl.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${rl.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${rl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),tV=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,slots:m,slotProps:v}=n,P=Ye(n,Z$),D=T.useRef(null),x=Q$(n);cn(()=>{o&&D.current?.focus()},[o]);const S=m?.yearButton??eV,C=pt({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:D,type:"button",role:"radio","aria-current":b,"aria-checked":l,onClick:O=>f(O,d),onKeyDown:O=>p(O,d),onFocus:O=>y(O,d),onBlur:O=>w(O,d)},ownerState:n,className:x.yearButton});return E.jsx(J$,Q({className:Se(x.root,r),ownerState:n},P,{children:E.jsx(S,Q({},C))}))});function nV(e){return Me("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const oV=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],rV=e=>{const{classes:t}=e;return Ie({root:["root"]},nV,t)};function sV(e,t){const n=Ft(),o=Ra(),r=Nt({props:e,name:t});return Q({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:to(n,r.minDate,o.minDate),maxDate:to(n,r.maxDate,o.maxDate)})}const iV=ie("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Fc,maxHeight:$F,boxSizing:"border-box",position:"relative"}),bb=T.forwardRef(function(t,n){const o=sV(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:m,shouldDisableYear:v,onYearFocus:P,hasFocus:D,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:O,gridLabelId:A,slots:F,slotProps:B}=o,R=Ye(o,oV),{value:$,handleValueChange:K,timezone:G}=Dh({name:"YearCalendar",timezone:O,value:a,defaultValue:l,onChange:b,valueManager:Lo}),q=Nc(G),Y=oo(),z=Ft(),ae=T.useMemo(()=>Lo.getInitialReferenceValue({value:$,utils:z,props:o,timezone:G,referenceDate:d,granularity:To.year}),[]),N=o,M=rV(N),L=T.useMemo(()=>z.getYear(q),[z,q]),W=T.useMemo(()=>$!=null?z.getYear($):null,[$,z]),[ne,oe]=T.useState(()=>W||z.getYear(ae)),[se,j]=po({name:"YearCalendar",state:"hasFocus",controlled:D,default:r??!1}),ee=Te(ge=>{j(ge),x&&x(ge)}),J=T.useCallback(ge=>{if(p&&z.isBeforeYear(ge,q)||f&&z.isAfterYear(ge,q)||w&&z.isBeforeYear(ge,w)||y&&z.isAfterYear(ge,y))return!0;if(!v)return!1;const Re=z.startOfYear(ge);return v(Re)},[f,p,y,w,q,v,z]),te=Te((ge,Re)=>{if(m)return;const Ve=z.setYear($??ae,Re);K(Ve)}),ce=Te(ge=>{J(z.setYear($??ae,ge))||(oe(ge),ee(!0),P?.(ge))});T.useEffect(()=>{oe(ge=>W!==null&&ge!==W?W:ge)},[W]);const le=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,H=Te((ge,Re)=>{switch(ge.key){case"ArrowUp":ce(Re-le),ge.preventDefault();break;case"ArrowDown":ce(Re+le),ge.preventDefault();break;case"ArrowLeft":ce(Re-he),ge.preventDefault();break;case"ArrowRight":ce(Re+he),ge.preventDefault();break}}),re=Te((ge,Re)=>{ce(Re)}),Z=Te((ge,Re)=>{ne===Re&&ee(!1)}),fe=T.useRef(null),pe=ct(n,fe);T.useEffect(()=>{if(r||fe.current===null)return;const ge=fe.current.querySelector('[tabindex="0"]');if(!ge)return;const Re=ge.offsetHeight,Ve=ge.offsetTop,Ne=fe.current.clientHeight,Je=fe.current.scrollTop,Ee=Ve+Re;Re>Ne||Ve<Je||(fe.current.scrollTop=Ee-Ne/2-Re/2)},[r]);const be=z.getYearRange([w,y]);return S==="desc"&&be.reverse(),E.jsx(iV,Q({ref:pe,className:Se(M.root,i),ownerState:N,role:"radiogroup","aria-labelledby":A},R,{children:be.map(ge=>{const Re=z.getYear(ge),Ve=Re===W,Ne=u||J(ge);return E.jsx(tV,{selected:Ve,value:Re,onClick:te,onKeyDown:H,autoFocus:se&&Re===ne,disabled:Ne,tabIndex:Re===ne&&!Ne?0:-1,onFocus:re,onBlur:Z,"aria-current":L===Re?"date":void 0,yearsPerRow:C,slots:F,slotProps:B,children:z.format(ge,"year")},z.format(ge,"year"))})}))});process.env.NODE_ENV!=="production"&&(bb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const aV=e=>Me("MuiPickersCalendarHeader",e),lV=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function cV(e){return Me("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const dV=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],uV=["ownerState"],hV=["ownerState"],fV=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),pV=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Fm=ie(Gs,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),mV=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},cV,t)},gV=T.forwardRef(function(t,n){const o=oo(),r=Nt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:m,previousLabel:v,labelId:P}=r,D=Ye(r,dV),x=r,S=mV(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},O={isDisabled:w,isHidden:b,goTo:m,label:v},A=l?.previousIconButton??Fm,F=pt({elementType:A,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Q({},x,{hidden:O.isHidden}),className:Se(S.button,S.previousIconButton)}),B=l?.nextIconButton??Fm,R=pt({elementType:B,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Q({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??JF,K=pt({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),G=Ye(K,uV),q=l?.rightArrowIcon??eL,Y=pt({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),z=Ye(Y,hV);return E.jsxs(fV,Q({ref:n,className:Se(S.root,a),ownerState:x},D,{children:[E.jsx(A,Q({},F,{children:o?E.jsx(q,Q({},z)):E.jsx($,Q({},G))})),i?E.jsx(Cn,{variant:"subtitle1",component:"span",id:P,children:i}):E.jsx(pV,{className:S.spacer,ownerState:x}),E.jsx(B,Q({},R,{children:o?E.jsx($,Q({},G)):E.jsx(q,Q({},z))}))]}))});function yV(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function vV(e,{disablePast:t,minDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const bV=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],wV=["ownerState"],CV=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},aV,t)},SV=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),_V=ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Q({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),xV=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),RV=ie(Gs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${lV.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),TV=ie(QF,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),wb=T.forwardRef(function(t,n){const o=dr(),r=Ft(),i=Nt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:m,view:v,reduceAnimations:P,views:D,labelId:x,className:S,timezone:C,format:O=`${r.formats.month} ${r.formats.year}`}=i,A=Ye(i,bV),F=i,B=CV(i),R=a?.switchViewButton??RV,$=pt({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:B.switchViewButton}),K=a?.switchViewIcon??TV,G=pt({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:B.switchViewIcon}),q=Ye(G,wV),Y=()=>b(r.addMonths(d,1),"left"),z=()=>b(r.addMonths(d,-1),"right"),ae=yV(d,{disableFuture:f,maxDate:y,timezone:C}),N=vV(d,{disablePast:p,minDate:w,timezone:C}),M=()=>{if(!(D.length===1||!m||u))if(D.length===2)m(D.find(W=>W!==v)||D[0]);else{const W=D.indexOf(v)!==0?0:1;m(D[W])}};if(D.length===1&&D[0]==="year")return null;const L=r.formatByString(d,O);return E.jsxs(SV,Q({},A,{ownerState:F,className:Se(B.root,S),ref:n,children:[E.jsxs(_V,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:B.labelContainer,children:[E.jsx(fb,{reduceAnimations:P,transKey:L,children:E.jsx(xV,{id:x,ownerState:F,className:B.label,children:L})}),D.length>1&&!u&&E.jsx(R,Q({},$,{children:E.jsx(K,Q({},q))}))]}),E.jsx(Kr,{in:v==="day",children:E.jsx(gV,{slots:a,slotProps:l,onGoToPrevious:z,isPreviousDisabled:N,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(wb.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const EV=ie("div")({overflow:"hidden",width:Fc,maxHeight:Oh,display:"flex",flexDirection:"column",margin:"0 auto"}),kV=e=>Me("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const PV=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],DV=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},kV,t)};function OV(e,t){const n=Ft(),o=Ra(),r=Qv(),i=Nt({props:e,name:t});return Q({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??r,renderLoading:i.renderLoading??(()=>E.jsx("span",{children:"..."})),minDate:to(n,i.minDate,o.minDate),maxDate:to(n,i.maxDate,o.maxDate)})}const MV=ie(EV,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Oh}),IV=ie(fb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Cb=T.forwardRef(function(t,n){const o=Ft(),r=ar(),i=OV(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:m,reduceAnimations:v,shouldDisableDate:P,shouldDisableMonth:D,shouldDisableYear:x,view:S,views:C,openTo:O,className:A,disabled:F,readOnly:B,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:G,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:z,dayOfWeekFormatter:ae,slots:N,slotProps:M,loading:L,renderLoading:W,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:ee}=i,J=Ye(i,PV),{value:te,handleValueChange:ce,timezone:le}=Dh({name:"DateCalendar",timezone:ee,value:d,defaultValue:u,onChange:w,valueManager:Lo}),{view:he,setView:H,focusedView:re,setFocusedView:Z,goToNextView:fe,setValueAndGoToNextView:pe}=Jv({view:S,views:C,openTo:O,onChange:ce,onViewChange:l,autoFocus:a,focusedView:G,onFocusedViewChange:q}),{referenceDate:be,calendarState:ge,changeFocusedDay:Re,changeMonth:Ve,handleChangeMonth:Ne,isDateDisabled:Je,onMonthSwitchingAnimationEnd:Ee}=c$({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:m,minDate:R,maxDate:$,shouldDisableDate:P,disablePast:y,disableFuture:p,timezone:le}),ut=F&&te||R,Yt=F&&te||$,rt=`${r}-grid-label`,Ot=re!==null,Ut=N?.calendarHeader??wb,Lt=pt({elementType:Ut,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ge.currentMonth,onViewChange:H,onMonthChange:(at,Zt)=>Ne({newMonth:at,direction:Zt}),minDate:ut,maxDate:Yt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:le,labelId:rt},ownerState:i}),Ue=Te(at=>{const Zt=o.startOfMonth(at),mn=o.endOfMonth(at),Qt=Je(at)?Bi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,mn)?mn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),m?.(Zt)):(fe(),Ve(Zt)),Re(Qt,!0)}),Be=Te(at=>{const Zt=o.startOfYear(at),mn=o.endOfYear(at),Qt=Je(at)?Bi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,mn)?mn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),b?.(Qt)):(fe(),Ve(Zt)),Re(Qt,!0)}),rn=Te(at=>ce(at&&Ll(o,at,te??be),"finish",he));T.useEffect(()=>{te!=null&&o.isValid(te)&&Ve(te)},[te]);const un=i,Oe=DV(un),We={disablePast:y,disableFuture:p,maxDate:$,minDate:R},ht={disableHighlightToday:K,readOnly:B,disabled:F,timezone:le,gridLabelId:rt,slots:N,slotProps:M},nn=T.useRef(he);T.useEffect(()=>{nn.current!==he&&(re===nn.current&&Z(he,!0),nn.current=he)},[re,Z,he]);const Fn=T.useMemo(()=>[te],[te]);return E.jsxs(MV,Q({ref:n,className:Se(Oe.root,A),ownerState:un},J,{children:[E.jsx(Ut,Q({},Lt,{slots:N,slotProps:M})),E.jsx(IV,{reduceAnimations:v,className:Oe.viewTransitionContainer,transKey:he,ownerState:un,children:E.jsxs("div",{children:[he==="year"&&E.jsx(bb,Q({},We,ht,{value:te,onChange:Be,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("year",at),yearsOrder:oe,yearsPerRow:se,referenceDate:be})),he==="month"&&E.jsx(vb,Q({},We,ht,{hasFocus:Ot,className:A,value:te,onChange:Ue,shouldDisableMonth:D,onFocusedViewChange:at=>Z("month",at),monthsPerRow:j,referenceDate:be})),he==="day"&&E.jsx($$,Q({},ge,We,ht,{onMonthSwitchingAnimationEnd:Ee,onFocusedDayChange:Re,reduceAnimations:v,selectedDays:Fn,onSelectedDaysChange:rn,shouldDisableDate:P,shouldDisableMonth:D,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("day",at),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:z,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:L,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(Cb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Is=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:P,reduceAnimations:D,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:A,slots:F,slotProps:B,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:z,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:L,timezone:W})=>E.jsx(Cb,{view:e,onViewChange:t,views:n.filter(Cm),focusedView:o&&Cm(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:P,reduceAnimations:D,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:A,slots:F,slotProps:B,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:z,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:L,timezone:W}),Sb=T.forwardRef(function(t,n){const o=dr(),r=Ft(),i=Gv(t,"MuiDesktopDatePicker"),a=Q({day:Is,month:Is,year:Is},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Rh(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Q({openPickerIcon:tL,field:Lh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},rc(i.slotProps?.field,u),Xv(i),{ref:n}),toolbar:Q({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=ZF({props:l,valueManager:Lo,valueType:"date",getOpenDialogAriaText:Yv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:Ta});return d()});Sb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const NV=ie(wy)({[`& .${Li.container}`]:{outline:0},[`& .${Li.paper}`]:{outline:0,minWidth:Fc}}),AV=ie(Sy)({"&:first-of-type":{padding:0}});function FV(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??NV,l=r?.mobileTransition??Kr;return E.jsx(a,Q({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:E.jsx(AV,{children:t})}))}const LV=["props","getOpenDialogAriaText"],$V=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,LV);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:P,disabled:D,localeText:x}=t,S=T.useRef(null),C=ar(),O=i?.toolbar?.hidden??!1,{open:A,actions:F,layoutProps:B,renderCurrentView:R,fieldProps:$,contextValue:K}=eb(Q({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),G=r.field,q=pt({elementType:G,externalSlotProps:i?.field,additionalProps:Q({},$,O&&{id:C},!(D||P)&&{onClick:F.onOpen,onKeyDown:pF(F.onOpen)},{readOnly:P??!0,disabled:D,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Q({},q.inputProps,{"aria-label":n($.value)});const Y=Q({textField:r.textField},q.slots),z=r.layout??Mh;let ae=C;O&&(m?ae=`${C}-label`:ae=void 0);const N=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:C}),mobilePaper:Q({"aria-labelledby":ae},i?.mobilePaper)}),M=ct(S,q.unstableFieldRef);return{renderPicker:()=>E.jsxs(rb,{contextValue:K,localeText:x,children:[E.jsx(G,Q({},q,{slots:Y,slotProps:N,unstableFieldRef:M})),E.jsx(FV,Q({},F,{open:A,slots:r,slotProps:N,children:E.jsx(z,Q({},B,N?.layout,{slots:r,slotProps:N,children:R()}))}))]})}},_b=T.forwardRef(function(t,n){const o=dr(),r=Ft(),i=Gv(t,"MuiMobileDatePicker"),a=Q({day:Is,month:Is,year:Is},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Rh(r,i,!1),slots:Q({field:Lh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},rc(i.slotProps?.field,u),Xv(i),{ref:n}),toolbar:Q({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=$V({props:l,valueManager:Lo,valueType:"date",getOpenDialogAriaText:Yv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:Ta});return d()});_b.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const VV=["desktopModeMediaQuery"],Vl=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=mF}=o,i=Ye(o,VV);return Mg(r,{defaultMatches:!0})?E.jsx(Sb,Q({ref:n},i)):E.jsx(_b,Q({ref:n},i))});process.env.NODE_ENV!=="production"&&(Vl.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const vu=ie(An)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),jV=({setValue:e,value:t})=>{function n(r){const i=r?.format(Ur.db)||"",a={...t,1:i===mu?Ws[1]:i};e(a),ir(a)}function o(r){const i=r?.format(Ur.db)||"",a={...t,2:i===mu?Ws[2]:i};e(a),ir(a)}return E.jsxs(Ic,{dateAdapter:$v,children:[E.jsx(vu,{children:E.jsx(Vl,{label:co.from,onChange:n,...gu(t[1])})}),E.jsx(vu,{children:E.jsx(Vl,{label:co.to,onChange:o,...gu(t[2])})})]})},Od=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Ur.db)||"",a={...n,1:i===mu?Ws[1]:i};t(a),ir(a)}return E.jsx(Ic,{dateAdapter:$v,children:E.jsx(vu,{children:E.jsx(Vl,{label:e,onChange:o,...gu(n[1])})})})},Lm={label:"",options:[]};function BV(){const{columnId:e,table:t}=wn,n=t?.grid;if(!n)return Lm;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return Lm;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function WV(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const HV=ie(pc)({padding:0}),$m={Checkbox:HV},zV=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=BV(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),ir(d)};return E.jsxs(mc,{size:"small",children:[E.jsx(gc,{id:"column-filter-multiple-select-label",children:o}),E.jsxs(ba,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:E.jsx(js,{label:o}),renderValue:a=>a.join(", "),children:[E.jsxs(Ol,{value:"All",children:[E.jsx($m.Checkbox,{checked:n.indexOf("All")>-1}),E.jsx(ou,{primary:"All"})]},0),r.sort(WV).map(a=>E.jsxs(Ol,{value:a,children:[E.jsx($m.Checkbox,{checked:n.indexOf(a)>-1}),E.jsx(ou,{primary:a})]},a))]})]})},YV=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),ir(i)}function o(r){const i={...t,2:r.target.value};e(i),ir(i)}return E.jsxs(Ae.Fragment,{children:[E.jsx(Bs,{label:co.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),E.jsx(Bs,{label:co.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},Md=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),ir(i)}return E.jsx(Bs,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},sl=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),ir(r)}return E.jsx(Bs,{label:co.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},UV=({filterId:e,setValue:t,value:n})=>E.jsxs(Ae.Fragment,{children:[e===je.Boolean&&E.jsx(CA,{setValue:t,value:n}),e===je.TextEqual&&E.jsx(sl,{setValue:t,value:n}),e===je.TextNotEqual&&E.jsx(sl,{setValue:t,value:n}),e===je.TextContain&&E.jsx(sl,{setValue:t,value:n}),e===je.TextNotContain&&E.jsx(sl,{setValue:t,value:n}),e===je.MultipleSelect&&E.jsx(zV,{setValue:t,value:n}),e===je.NumberEqual&&E.jsx(Md,{label:co.filter,setValue:t,value:n}),e===je.NumberFrom&&E.jsx(Md,{label:co.from,setValue:t,value:n}),e===je.NumberTo&&E.jsx(Md,{label:co.to,setValue:t,value:n}),e===je.NumberBetween&&E.jsx(YV,{setValue:t,value:n}),e===je.DateEqual&&E.jsx(Od,{label:co.filter,setValue:t,value:n}),e===je.DateFrom&&E.jsx(Od,{label:co.from,setValue:t,value:n}),e===je.DateTo&&E.jsx(Od,{label:co.to,setValue:t,value:n}),e===je.DateBetween&&E.jsx(jV,{setValue:t,value:n})]}),qV={id:je.DateBetween,name:"Between"},GV={id:je.DateEqual,name:"Equal"},KV={id:je.DateFrom,name:"From"},XV={id:je.DateTo,name:"To"},ZV={id:je.NumberBetween,name:"Between"},QV={id:je.NumberEqual,name:"Equal"},JV={id:je.NumberFrom,name:"From"},ej={id:je.NumberTo,name:"To"},tj={id:je.TextContain,name:"Contains"},nj={id:je.TextEqual,name:"Equal"},oj={id:je.TextNotContain,name:"Does not contain"},rj={id:je.TextNotEqual,name:"Not equal"},Vm=[QV,JV,ej,ZV],sj={[fn.Boolean]:[],[fn.Date]:[GV,KV,XV,qV],[fn.MultipleSelect]:[],[fn.Number]:Vm,[fn.NumberFormatted]:Vm,[fn.Text]:[tj,oj,nj,rj]},ij=({filterId:e,setFilterId:t})=>{const n=Ae.useRef(null),o=sj[wn.group],r=o.some(({id:a})=>a===e)?e:o[0]?.id;function i(a){const{columnId:l,table:d}=wn;if(!l||!d)return;const u=d.filter.args,f=a.target.value;u.columnFilters&&(d.filter.args={...u,columnFilters:{...u.columnFilters,[l]:{...u.columnFilters[l],filterId:f}}},t(f))}return r?E.jsx(ba,{value:r,onChange:i,ref:n,size:"small",MenuProps:{container:()=>n.current},children:o.map(({id:a,name:l})=>E.jsx(Ol,{value:a,children:l},a))}):null},aj=ie(An)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),lj={Wrapper:aj},cj=({tableId:e})=>{const[t,n]=Ae.useState(Ws),[o,r]=Ae.useState(je.TextContain),[i,a]=Ae.useState(!1);return mA(a,e),pA(i,r,n),i?E.jsxs(Ae.Fragment,{children:[E.jsx(Pc,{setIsOpened:a}),E.jsx(Dc,{id:Lv,children:E.jsxs(lj.Wrapper,{children:[E.jsx(ij,{filterId:o,setFilterId:r}),E.jsx(UV,{filterId:o,setValue:n,value:t}),E.jsx(vA,{setIsOpened:a,setValue:n,value:t})]})})]}):null},xb="context-menu";function dj(e,t){Ae.useEffect(()=>{function n(){const{table:o,x:r,y:i}=ln;o?.id===t&&(e(!0),setTimeout(()=>{const a=document.getElementById(xb);a&&_h(a,r,i)},0))}return ln.subscribe(n),()=>{ln.unsubscribe(n)}},[t])}const uj=ie("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),hj=ie("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),fj=ie("span")({backgroundColor:"#1E456F"}),dn={Ul:uj,Li:hj,Icon:fj},pj=({setIsOpened:e})=>{const t=()=>{const{clientId:n,clientName:o,table:r}=ln,i=r?.grid;if(!r||!i){e(!1);return}r.downloadManager.download(r,n,o),e(!1)};return E.jsxs(dn.Li,{onClick:t,children:[E.jsx(dn.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},mj=({setIsOpened:e})=>{const t=ln.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-link"}),"Group"]})};function gj(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const yj=({setIsOpened:e})=>{const t=ln.table;function n(){if(!t){e(!1);return}const o=t.filter.args;delete o.columnFilters,t.filter.args=o,Fo.highlightAllColumns(o,t.id),e(!1)}return gj(t)?E.jsxs(Ae.Fragment,{children:[E.jsx(Dl,{}),E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},vj=({setIsOpened:e})=>{const t=ln.table,o=t?.grid?.getSelectedRows();function r(){t&&(e(!1),jn.table=t,jn.open=!0,jn.x=ln.x,jn.y=ln.y)}return!t?.summaryColumnIds.length||Number(o?.length)<2?null:E.jsxs(dn.Li,{onClick:r,children:[E.jsx(dn.Icon,{className:"sgi sgi-checkbox-multiple-outline"}),"Summary"]})},bj=({setIsOpened:e})=>{const t=ln.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},wj=({setIsOpened:e})=>{const t=ln.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},Cj=({setIsOpened:e})=>{function t(){const n=ln.table,o=n?.grid;if(!o||!n){e(!1);return}window.navigator.clipboard.writeText(n.downloadManager.createCSV(n)).then(()=>{}).catch(()=>{}),o.getSelectionModel()&&o.setSelectedRows([]),e(!1)}return E.jsxs(dn.Li,{onClick:t,children:[E.jsx(dn.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},Sj=({setIsOpened:e})=>{const t=ln.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(dn.Li,{onClick:n,children:[E.jsx(dn.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},_j=({setIsOpened:e})=>{function t(){const{clientId:n,clientName:o,table:r}=ln;r?.printer.print(r,n,o),e(!1)}return E.jsxs(dn.Li,{onClick:t,children:[E.jsx(dn.Icon,{className:"sgi sgi-printer"}),"Print"]})},xj=({tableId:e})=>{const[t,n]=Ae.useState(!1);return dj(n,e),t?E.jsxs(Ae.Fragment,{children:[E.jsx(Pc,{setIsOpened:n}),E.jsx(Dc,{id:xb,children:E.jsxs(dn.Ul,{children:[E.jsx(_j,{setIsOpened:n}),E.jsx(Cj,{setIsOpened:n}),E.jsx(pj,{setIsOpened:n}),E.jsx(yj,{setIsOpened:n}),E.jsx(bj,{setIsOpened:n}),E.jsx(mj,{setIsOpened:n}),E.jsx(Sj,{setIsOpened:n}),E.jsx(wj,{setIsOpened:n}),E.jsx(vj,{setIsOpened:n})]})})]}):null},Rb="header-context-menu";function Rj(e,t){Ae.useEffect(()=>{function n(){const{table:o,x:r,y:i}=fo;o?.id===t&&(e(!0),setTimeout(()=>{const a=document.getElementById(Rb);a&&_h(a,r,i)},0))}return fo.subscribe(n),()=>{fo.unsubscribe(n)}},[t])}function $h(e){const t=fo.table;if(!t?.columnPicker)return;t.columnPicker.hiddenColumnIds=[...e];const n=t.grid;if(!n)return;n.setColumns(t.columnPicker.getInitialColumns().filter(({id:r})=>!e.includes(r)));const o=t.filter.args;t.filter.register(n,t.id),Fo.highlightAllColumns(o,t.id),t.totalCalculator?.calculate(n)}function Tb(e){return e?.columnPicker?e.columnPicker.getInitialColumns().filter(({id:t})=>t!=="_checkbox_selector"&&t!=="isEdited"):[]}const Tj=({setHidden:e})=>{function t(){e([]),$h([])}return E.jsx(Po,{onClick:t,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Check all"})},Ej=({setHidden:e})=>{function t(){const n=fo.table;if(!n)return;const r=Tb(n).map(({id:i})=>i);e(r),$h(r)}return E.jsx(Po,{onClick:t,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Uncheck all"})},kj=ie(Po)({display:"flex",alignItems:"center",justifyContent:"flex-start",columnGap:"0.5em",textTransform:"none",color:"#1E456F",padding:"0"}),Pj=ie(pc)({padding:0}),jm={Checkbox:Pj,Button:kj},Dj=({hidden:e,columnId:t,columnName:n,setHidden:o})=>{function r(){const i=e.indexOf(t),a=[...e];~i?a.splice(i,1):a.push(t),o(a),$h(a)}return E.jsxs(jm.Button,{onClick:r,children:[E.jsx(jm.Checkbox,{checked:!e.includes(t),size:"small"}),E.jsx(An,{children:n})]})},Oj=ie(An)({color:"#1e456f",marginBottom:"0.6em",fontSize:"1rem"}),Mj={Wrapper:Oj},Ij=()=>E.jsx(Mj.Wrapper,{className:"header-context-menu-header",children:"Columns"}),Nj=ie(An)({columnGap:"0.5em",display:"flex",justifyContent:"flex-end",marginTop:"0.5em"}),Aj=ie(An)({maxHeight:"35em",overflowY:"auto"}),Bm={ButtonsGroup:Nj,ItemsGroup:Aj},Fj=({tableId:e})=>{const[t,n]=Ae.useState(Es.hiddenColumns.get(e)),[o,r]=Ae.useState(!1);if(Rj(r,e),Ae.useEffect(()=>{if(!o)return;const a=fo.table;a?.columnPicker&&n([...a.columnPicker.hiddenColumnIds])},[o]),!o)return null;const i=fo.table;return i?.columnPicker?E.jsxs(Ae.Fragment,{children:[E.jsx(Pc,{setIsOpened:r}),E.jsxs(Dc,{id:Rb,children:[E.jsx(Ij,{}),E.jsx(Bm.ItemsGroup,{children:Tb(i).map(({id:a,name:l})=>E.jsx(Ae.Fragment,{children:E.jsx(Dj,{columnId:a,columnName:l,hidden:t,setHidden:n})},a))}),E.jsxs(Bm.ButtonsGroup,{className:"header-context-menu-footer",children:[E.jsx(Tj,{setHidden:n}),E.jsx(Ej,{setHidden:n})]})]})]}):null};var Lj=Object.defineProperty,$j=(e,t,n)=>t in e?Lj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t,n)=>$j(e,typeof t!="symbol"?t+"":t,n),la=class{constructor(e,t){this.event=e,this.args=t,k(this,"_isPropagationStopped",!1),k(this,"_isImmediatePropagationStopped",!1),k(this,"_isDefaultPrevented",!1),k(this,"returnValues",[]),k(this,"returnValue"),k(this,"_eventTarget"),k(this,"nativeEvent"),k(this,"arguments_"),k(this,"altKey"),k(this,"ctrlKey"),k(this,"metaKey"),k(this,"shiftKey"),k(this,"key"),k(this,"keyCode"),k(this,"clientX"),k(this,"clientY"),k(this,"offsetX"),k(this,"offsetY"),k(this,"pageX"),k(this,"pageY"),k(this,"bubbles"),k(this,"target"),k(this,"type"),k(this,"which"),k(this,"x"),k(this,"y"),this.nativeEvent=e,this.arguments_=t,e&&["altKey","ctrlKey","metaKey","shiftKey","key","keyCode","clientX","clientY","offsetX","offsetY","pageX","pageY","bubbles","target","type","which","x","y"].forEach(n=>this[n]=e[n]),this._eventTarget=this.nativeEvent?this.nativeEvent.target:void 0}get defaultPrevented(){return this._isDefaultPrevented}stopPropagation(){this._isPropagationStopped=!0,this.nativeEvent?.stopPropagation()}isPropagationStopped(){return this._isPropagationStopped}stopImmediatePropagation(){this._isImmediatePropagationStopped=!0,this.nativeEvent&&this.nativeEvent.stopImmediatePropagation()}isImmediatePropagationStopped(){return this._isImmediatePropagationStopped}getNativeEvent(){return this.nativeEvent}preventDefault(){this.nativeEvent&&this.nativeEvent.preventDefault(),this._isDefaultPrevented=!0}isDefaultPrevented(){return this.nativeEvent?this.nativeEvent.defaultPrevented:this._isDefaultPrevented}addReturnValue(e){this.returnValues.push(e),this.returnValue===void 0&&e!==void 0&&(this.returnValue=e)}getReturnValue(){return this.returnValue}getArguments(){return this.arguments_}},Jr=class{constructor(e,t){this.eventName=e,this.pubSub=t,k(this,"_handlers",[]),k(this,"_pubSubService"),this._pubSubService=t}get subscriberCount(){return this._handlers.length}subscribe(e){this._handlers.push(e)}unsubscribe(e){for(let t=this._handlers.length-1;t>=0;t--)this._handlers[t]===e&&this._handlers.splice(t,1)}notify(e,t,n){let o=t instanceof la?t:new la(t,e);n=n||this;for(let r=0;r<this._handlers.length&&!(o.isPropagationStopped()||o.isImmediatePropagationStopped());r++){let i=this._handlers[r].call(n,o,e);o.addReturnValue(i)}if(typeof this._pubSubService?.publish=="function"&&this.eventName){let r=this._pubSubService.publish(this.eventName,{args:e,eventData:o});o.addReturnValue(r)}return o}setPubSubService(e){this._pubSubService=e}},Ea=class{constructor(){k(this,"handlers",[])}subscribe(e,t){return this.handlers.push({event:e,handler:t}),e.subscribe(t),this}unsubscribe(e,t){let n=this.handlers.length;for(;n--;)if(this.handlers[n].event===e&&this.handlers[n].handler===t){this.handlers.splice(n,1),e.unsubscribe(t);return}return this}unsubscribeAll(){let e=this.handlers.length;for(;e--;)this.handlers[e].event.unsubscribe(this.handlers[e].handler);return this.handlers=[],this}},Vh=class{constructor(e,t,n,o){k(this,"fromRow"),k(this,"fromCell"),k(this,"toCell"),k(this,"toRow"),n===void 0&&o===void 0&&(n=e,o=t),this.fromRow=Math.min(e,n),this.fromCell=Math.min(t,o),this.toCell=Math.max(t,o),this.toRow=Math.max(e,n)}isSingleRow(){return this.fromRow===this.toRow}isSingleCell(){return this.fromRow===this.toRow&&this.fromCell===this.toCell}contains(e,t){return e>=this.fromRow&&e<=this.toRow&&t>=this.fromCell&&t<=this.toCell}toString(){return this.isSingleCell()?`(${this.fromRow}:${this.fromCell})`:`(${this.fromRow}:${this.fromCell} - ${this.toRow}:${this.toCell})`}},Eb=class{constructor(){k(this,"__nonDataRow",!0)}},kb=class extends Eb{constructor(){super(),k(this,"__group",!0),k(this,"level",0),k(this,"count",0),k(this,"value",null),k(this,"title",null),k(this,"collapsed",!1),k(this,"selectChecked",!1),k(this,"totals",null),k(this,"rows",[]),k(this,"groups",null),k(this,"groupingKey",null)}equals(e){return this.value===e.value&&this.count===e.count&&this.collapsed===e.collapsed&&this.title===e.title}},Vj=class extends Eb{constructor(){super(),k(this,"__groupTotals",!0),k(this,"group",null),k(this,"initialized",!1)}},jj=class{constructor(){k(this,"activeEditController",null)}isActive(e){return e?this.activeEditController===e:this.activeEditController!==null}activate(e){if(e!==this.activeEditController){if(this.activeEditController!==null)throw new Error("Slick.EditorLock.activate: an editController is still active, can't activate another editController");if(!e.commitCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!e.cancelCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .cancelCurrentEdit()");this.activeEditController=e}}deactivate(e){if(this.activeEditController){if(this.activeEditController!==e)throw new Error("Slick.EditorLock.deactivate: specified editController is not the currently active one");this.activeEditController=null}}commitCurrentEdit(){return this.activeEditController?this.activeEditController.commitCurrentEdit():!0}cancelCurrentEdit(){return this.activeEditController?this.activeEditController.cancelCurrentEdit():!0}},Vc=class{constructor(){k(this,"_boundedEvents",[])}getBoundedEvents(){return this._boundedEvents}destroy(){this.unbindAll()}bind(e,t,n,o,r=""){e&&(e.addEventListener(t,n,o),this._boundedEvents.push({element:e,eventName:t,listener:n,groupName:r}))}unbind(e,t,n){e?.removeEventListener&&e.removeEventListener(t,n)}unbindByEventName(e,t){let n=this._boundedEvents.find(o=>o.element===e&&o.eventName===t);n&&this.unbind(n.element,n.eventName,n.listener)}unbindAll(e){if(e){let t=Array.isArray(e)?e:[e];for(let n=this._boundedEvents.length-1;n>=0;--n){let o=this._boundedEvents[n];if(t.some(r=>r===o.groupName)){let{element:r,eventName:i,listener:a}=o;this.unbind(r,i,a),this._boundedEvents.splice(n,1)}}}else for(;this._boundedEvents.length>0;){let t=this._boundedEvents.pop(),{element:n,eventName:o,listener:r}=t;this.unbind(n,o,r)}}},Gn=class Ht{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||Ht.toString.call(t)!=="[object Object]")return!1;let n=Ht.getProto(t);if(!n)return!0;let o=Ht.hasOwn.call(n,"constructor")&&n.constructor;return typeof o=="function"&&Ht.fnToString.call(o)===Ht.ObjectFunctionString}static calculateAvailableSpace(t){let n=0,o=0,r=0,i=0,a=window.innerHeight||0,l=window.innerWidth||0,d=Ht.windowScrollPosition(),u=d.top,f=d.left,p=Ht.offset(t);if(p){let y=p.top||0,w=p.left||0;o=y-u,n=a-(y-u),r=w-f,i=l-(w-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,l,d=t[0],u=1,f=!1,p=t.length;for(typeof d=="boolean"?(f=d,d=t[u]||{},u++):d=d||{},typeof d!="object"&&!Ht.isFunction(d)&&(d={}),u===p&&(d=this,u--);u<p;u++)if(Ht.isDefined(n=t[u]))for(o in n)i=n[o],!(o==="__proto__"||d===i)&&(f&&i&&(Ht.isPlainObject(i)||(a=Array.isArray(i)))?(r=d[o],a&&!Array.isArray(r)?l=[]:!a&&!Ht.isPlainObject(r)?l={}:l=r,a=!1,d[o]=Ht.extend(f,l,i)):i!==void 0&&(d[o]=i));return d}static createDomElement(t,n,o){let r=document.createElement(t);return n&&Object.keys(n).forEach(i=>{i==="innerHTML"&&console.warn(`[SlickGrid] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${t}', { innerHTML: 'some html'})", it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);let a=n[i];typeof a=="object"?Object.assign(r[i],a):r[i]=n[i]}),o?.appendChild&&o.appendChild(r),r}static getHtmlStringOutput(t,n="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,o=>o[n]).join("")||t.textContent||"":t instanceof HTMLElement?t[n]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(n=>n)}static innerSize(t,n){let o=0;if(t){let r=n==="height"?"clientHeight":"clientWidth",i=n==="height"?["top","bottom"]:["left","right"];o=t[r];for(let a of i){let l=parseFloat(Ht.getElementProp(t,`padding-${a}`)||"")||0;o-=l}}return o}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,n){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(n):null}static getFunctionDetails(t,n=!0){let o=!1,r=i=>{let a=i.toString();if(o=a.includes("async "),a.replaceAll(" ","").includes("=>({")){let u=a.match(/(({.*}))/g)||[];return u.length>=1?`return ${u[0].trimStart()}`:a}let l=!a.includes("{")&&a.includes("=>"),d=a.substring(a.indexOf("{")+1||a.indexOf("=>")+2,a.includes("}")?a.lastIndexOf("}"):a.length);return n&&l&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(i=>{let a=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,l=/([^\s,]+)/g,d=i.toString().replace(a,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(l)??[]})(t),body:r(t),isAsync:o}}static insertAfterElement(t,n){t.parentNode?.insertBefore(n,t.nextSibling)}static isEmptyObject(t){return t==null?!0:Object.entries(t).length===0}static noop(){}static offset(t){if(!t||!t.getBoundingClientRect)return;let n=t.getBoundingClientRect(),o=document.documentElement;return{top:n.top+window.pageYOffset-o.clientTop,left:n.left+window.pageXOffset-o.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,n){if(!(!t||!t.getBoundingClientRect)){if(n===void 0)return t.getBoundingClientRect().width;Ht.setStyleSize(t,"width",n)}}static height(t,n){if(t){if(n===void 0)return t.getBoundingClientRect().height;Ht.setStyleSize(t,"height",n)}}static setStyleSize(t,n,o){typeof o=="function"?o=o():typeof o=="string"?t.style[n]=o:t.style[n]=o+"px"}static contains(t,n){return!t||!n?!1:!Ht.parents(n).every(o=>t!==o)}static isHidden(t){return t.offsetWidth===0&&t.offsetHeight===0}static parents(t,n){let o=[],r=n===":visible",i=n===":hidden";for(;(t=t.parentNode)&&t!==document&&!(!t||!t.parentNode);)i?Ht.isHidden(t)&&o.push(t):r?Ht.isHidden(t)||o.push(t):(!n||t.matches(n))&&o.push(t);return o}static toFloat(t){let n=parseFloat(t);return isNaN(n)?0:n}static show(t,n=""){Array.isArray(t)?t.forEach(o=>o.style.display=n):t.style.display=n}static hide(t){Array.isArray(t)?t.forEach(n=>n.style.display="none"):t.style.display="none"}static slideUp(t,n){return Ht.slideAnimation(t,"slideUp",n)}static slideDown(t,n){return Ht.slideAnimation(t,"slideDown",n)}static slideAnimation(t,n,o){if(window.jQuery!==void 0){window.jQuery(t)[n]("fast",o);return}n==="slideUp"?Ht.hide(t):Ht.show(t),o()}static applyDefaults(t,n){typeof n=="object"&&Object.keys(n).forEach(o=>{n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n[o])})}static addSlickEventPubSubWhenDefined(t,n){if(t)for(let o in n)n[o]instanceof Jr&&typeof n[o].setPubSubService=="function"&&n[o].setPubSubService(t)}};k(Gn,"getProto",Object.getPrototypeOf),k(Gn,"class2type",{}),k(Gn,"toString",Gn.class2type.toString),k(Gn,"hasOwn",Gn.class2type.hasOwnProperty),k(Gn,"fnToString",Gn.hasOwn.toString),k(Gn,"ObjectFunctionString",Gn.fnToString.call(Object)),k(Gn,"storage",{_storage:new WeakMap,put:function(e,t,n){this._storage.has(e)||this._storage.set(e,new Map),this._storage.get(e).set(t,n)},get:function(e,t){let n=this._storage.get(e);return n?n.get(t):null},remove:function(e,t){let n=this._storage.get(e).delete(t);return this._storage.get(e).size!==0&&this._storage.delete(e),n}});var vo=Gn,Pb=new jj,Bj={Event:Jr,EventHandler:Ea,GlobalEditorLock:Pb,keyCode:{SPACE:8,DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38},preClickClassName:"slick-edit-preclick",GridAutosizeColsMode:{None:"NOA",LegacyOff:"LOF",LegacyForceFit:"LFF",IgnoreViewport:"IGV",FitColsToViewport:"FCV",FitViewportToCols:"FVC"},ColAutosizeMode:{Locked:"LCK",Guide:"GUI",ContentExpandOnly:"CXO",ContentIntelligent:"CTI"},RowSelectionMode:{FirstRow:"FS1",FirstNRows:"FSN",AllRows:"ALL",LastRow:"LS1"},ValueFilterMode:{None:"NONE",DeDuplicate:"DEDP",GetGreatestAndSub:"GR8T",GetLongestTextAndSub:"LNSB",GetLongestText:"LNSC"},WidthEvalMode:{Auto:"AUTO",TextOnly:"CANV"}},{Event:Wj,EventHandler:Hj,GlobalEditorLock:zj,keyCode:Mo,preClickClassName:Yj,GridAutosizeColsMode:Db,ColAutosizeMode:Uj,RowSelectionMode:qj,ValueFilterMode:Gj,WidthEvalMode:Kj}=Bj,Xj=vo,Ob=class{constructor(e,t){this.grid=e,k(this,"pluginName","CellRangeDecorator"),k(this,"_options"),k(this,"_elem"),k(this,"_defaults",{selectionCssClass:"slick-range-decorator",selectionCss:{zIndex:"9999",border:"2px dashed red"},offset:{top:-1,left:-1,height:-2,width:-2}}),this._options=Xj.extend(!0,{},this._defaults,t)}destroy(){this.hide()}init(){}hide(){this._elem?.remove(),this._elem=null}show(e){if(!this._elem){this._elem=document.createElement("div"),this._elem.className=this._options.selectionCssClass,Object.keys(this._options.selectionCss).forEach(r=>{this._elem.style[r]=this._options.selectionCss[r]}),this._elem.style.position="absolute";let o=this.grid.getActiveCanvasNode();o&&o.appendChild(this._elem)}let t=this.grid.getCellNodeBox(e.fromRow,e.fromCell),n=this.grid.getCellNodeBox(e.toRow,e.toCell);return t&&n&&this._options?.offset&&(this._elem.style.top=`${t.top+this._options.offset.top}px`,this._elem.style.left=`${t.left+this._options.offset.left}px`,this._elem.style.height=`${n.bottom-t.top+this._options.offset.height}px`,this._elem.style.width=`${n.right-t.left+this._options.offset.width}px`),this._elem}},Zj=vo;function jh(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,l,d,u,f,p,y;t||(t=document.body);let w={dragSource:t,dragHandle:null};function b(){t&&(t.addEventListener("mousedown",D),t.addEventListener("touchstart",D))}function m(C,O,A){if(typeof C=="function")return C(O,A)}function v(){t&&(t.removeEventListener("mousedown",D),t.removeEventListener("touchstart",D))}function P(C){let O=!1;return a&&a.forEach(A=>{C[A]&&(O=!0)}),O}function D(C){if(!P(C)){l=C.target;let O=C?.touches?.[0]??C,{target:A}=O;if(!e.allowDragFrom||e.allowDragFrom&&l.matches(e.allowDragFrom)||e.allowDragFromClosest&&l.closest(e.allowDragFromClosest)){w.dragHandle=l;let F=Zj.windowScrollPosition();d=F.left+O.clientX,u=F.top+O.clientY,f=O.clientX-O.clientX,p=O.clientY-O.clientY,w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),m(n,C,w)!==!1&&(document.body.addEventListener("mousemove",x),document.body.addEventListener("touchmove",x),document.body.addEventListener("mouseup",S),document.body.addEventListener("touchend",S),document.body.addEventListener("touchcancel",S))}}}function x(C){if(!P(C)){let O=C?.touches?.[0]??C;f=O.clientX-d,p=O.clientY-u;let{target:A}=O;y||(w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),m(o,C,w),y=!0),w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),m(r,C,w)}}function S(C){if(document.body.removeEventListener("mousemove",x),document.body.removeEventListener("touchmove",x),document.body.removeEventListener("mouseup",S),document.body.removeEventListener("touchend",S),document.body.removeEventListener("touchcancel",S),y){let{target:O}=C;w=Object.assign(w,{target:O}),m(i,C,w),y=!1}}return b(),{destroy:v}}function Qj(e){let{element:t,onMouseWheel:n}=e;function o(){t.removeEventListener("wheel",i),t.removeEventListener("mousewheel",i)}function r(){t.addEventListener("wheel",i),t.addEventListener("mousewheel",i)}function i(a){let l=a||window.event,d=0,u=0,f=0;l.wheelDelta&&(d=l.wheelDelta/120),l.detail&&(d=-l.detail/3),f=d,l.axis!==void 0&&l.axis===l.HORIZONTAL_AXIS&&(f=0,u=-1*d),l.wheelDeltaY!==void 0&&(f=l.wheelDeltaY/120),l.wheelDeltaX!==void 0&&(u=-1*l.wheelDeltaX/120),typeof n=="function"&&n(a,d,u,f)}return r(),{destroy:o}}function Jj(e){let{resizeableElement:t,resizeableHandleElement:n,onResizeStart:o,onResize:r,onResizeEnd:i}=e;if(!n||typeof n.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function a(){n.addEventListener("mousedown",u),n.addEventListener("touchstart",u)}function l(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",u),n.removeEventListener("touchstart",u))}function d(y,w){if(typeof y=="function")return y(w,{resizeableElement:t,resizeableHandleElement:n})}function u(y){y.preventDefault();let w=y.touches?y.changedTouches[0]:y;d(o,w)!==!1&&(document.body.addEventListener("mousemove",f),document.body.addEventListener("mouseup",p),document.body.addEventListener("touchmove",f),document.body.addEventListener("touchend",p))}function f(y){y.preventDefault&&y.type!=="touchmove"&&y.preventDefault();let w=y.touches?y.changedTouches[0]:y;typeof r=="function"&&r(w,{resizeableElement:t,resizeableHandleElement:n})}function p(y){let w=y.touches?y.changedTouches[0]:y;d(i,w),document.body.removeEventListener("mousemove",f),document.body.removeEventListener("mouseup",p),document.body.removeEventListener("touchmove",f),document.body.removeEventListener("touchend",p)}return a(),{destroy:l}}var Id=Jr,eB=Ea,Nd=Vh,tB=jh,nB=Ob,Si=vo,oB=class{constructor(e){k(this,"pluginName","CellRangeSelector"),k(this,"onBeforeCellRangeSelected",new Id("onBeforeCellRangeSelected")),k(this,"onCellRangeSelected",new Id("onCellRangeSelected")),k(this,"onCellRangeSelecting",new Id("onCellRangeSelecting")),k(this,"_grid"),k(this,"_currentlySelectedRange",null),k(this,"_canvas",null),k(this,"_decorator"),k(this,"_gridOptions"),k(this,"_activeCanvas"),k(this,"_dragging",!1),k(this,"_handler",new eB),k(this,"_options"),k(this,"_defaults",{autoScroll:!0,minIntervalToShowNextCell:30,maxIntervalToShowNextCell:600,accelerateInterval:5,selectionCss:{border:"2px dashed blue"}}),k(this,"_rowOffset",0),k(this,"_columnOffset",0),k(this,"_isRightCanvas",!1),k(this,"_isBottomCanvas",!1),k(this,"_activeViewport"),k(this,"_autoScrollTimerId"),k(this,"_draggingMouseOffset"),k(this,"_moveDistanceForOneCell"),k(this,"_xDelayForNextCell",0),k(this,"_yDelayForNextCell",0),k(this,"_viewportHeight",0),k(this,"_viewportWidth",0),k(this,"_isRowMoveRegistered",!1),k(this,"_scrollLeft",0),k(this,"_scrollTop",0),this._options=Si.extend(!0,{},this._defaults,e)}init(e){if(tB===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');this._decorator=this._options.cellDecorator||new nB(e,this._options),this._grid=e,Si.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._canvas=this._grid.getCanvasNode(),this._gridOptions=this._grid.getOptions(),this._handler.subscribe(this._grid.onScroll,this.handleScroll.bind(this)).subscribe(this._grid.onDragInit,this.handleDragInit.bind(this)).subscribe(this._grid.onDragStart,this.handleDragStart.bind(this)).subscribe(this._grid.onDrag,this.handleDrag.bind(this)).subscribe(this._grid.onDragEnd,this.handleDragEnd.bind(this))}destroy(){this._handler.unsubscribeAll(),this._activeCanvas=null,this._activeViewport=null,this._canvas=null,this._decorator?.destroy()}getCellDecorator(){return this._decorator}handleScroll(e,t){this._scrollTop=t.scrollTop,this._scrollLeft=t.scrollLeft}handleDragInit(e){this._activeCanvas=this._grid.getActiveCanvasNode(e),this._activeViewport=this._grid.getActiveViewportNode(e);let t=this._grid.getDisplayedScrollbarDimensions();if(this._viewportWidth=this._activeViewport.offsetWidth-t.width,this._viewportHeight=this._activeViewport.offsetHeight-t.height,this._moveDistanceForOneCell={x:this._grid.getAbsoluteColumnMinWidth()/2,y:this._grid.getOptions().rowHeight/2},this._isRowMoveRegistered=this.hasRowMoveManager(),this._rowOffset=0,this._columnOffset=0,this._isBottomCanvas=this._activeCanvas.classList.contains("grid-canvas-bottom"),this._gridOptions.frozenRow>-1&&this._isBottomCanvas){let n=`.${this._grid.getUID()} .grid-canvas-${this._gridOptions.frozenBottom?"bottom":"top"}`,o=document.querySelector(n);o&&(this._rowOffset=o.clientHeight||0)}if(this._isRightCanvas=this._activeCanvas.classList.contains("grid-canvas-right"),this._gridOptions.frozenColumn>-1&&this._isRightCanvas){let n=document.querySelector(`.${this._grid.getUID()} .grid-canvas-left`);n&&(this._columnOffset=n.clientWidth||0)}e.stopImmediatePropagation(),e.preventDefault()}handleDragStart(e,t){let n=this._grid.getCellFromEvent(e);if(n&&this.onBeforeCellRangeSelected.notify(n).getReturnValue()!==!1&&this._grid.canCellBeSelected(n.row,n.cell)&&(this._dragging=!0,e.stopImmediatePropagation()),!this._dragging)return;this._grid.focus();let o=Si.offset(this._canvas),r=t.startX-(o?.left??0);this._gridOptions.frozenColumn>=0&&this._isRightCanvas&&(r+=this._scrollLeft);let i=t.startY-(o?.top??0);this._gridOptions.frozenRow>=0&&this._isBottomCanvas&&(i+=this._scrollTop);let a=this._grid.getCellFromPoint(r,i);return t.range={start:a,end:{}},this._currentlySelectedRange=t.range,this._decorator.show(new Nd(a.row,a.cell))}handleDrag(e,t){if(!this._dragging&&!this._isRowMoveRegistered)return;this._isRowMoveRegistered||e.stopImmediatePropagation();let n=e.getNativeEvent();if(this._options.autoScroll&&(this._draggingMouseOffset=this.getMouseOffsetViewport(n,t),this._draggingMouseOffset.isOutsideViewport))return this.handleDragOutsideViewport();this.stopIntervalTimer(),this.handleDragTo(n,t)}getMouseOffsetViewport(e,t){let n=e?.touches?.[0]??e,o=this._activeViewport.scrollLeft,r=this._activeViewport.scrollTop,i=o+this._viewportWidth,a=r+this._viewportHeight,l=Si.offset(this._activeViewport),d=l?.left??0,u=l?.top??0,f=d+this._viewportWidth,p=u+this._viewportHeight,y={e,dd:t,viewport:{left:o,top:r,right:i,bottom:a,offset:{left:d,top:u,right:f,bottom:p}},offset:{x:0,y:0},isOutsideViewport:!1};return n.pageX<d?y.offset.x=n.pageX-d:n.pageX>f&&(y.offset.x=n.pageX-f),n.pageY<u?y.offset.y=u-n.pageY:n.pageY>p&&(y.offset.y=p-n.pageY),y.isOutsideViewport=!!y.offset.x||!!y.offset.y,y}handleDragOutsideViewport(){if(this._xDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.x)*this._options.accelerateInterval,this._yDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.y)*this._options.accelerateInterval,!this._autoScrollTimerId){let e=0,t=0;this._autoScrollTimerId=window.setInterval(()=>{let n=!1,o=!1;this._draggingMouseOffset.offset.x?(e+=this._options.minIntervalToShowNextCell,n=e>=this._xDelayForNextCell):e=0,this._draggingMouseOffset.offset.y?(t+=this._options.minIntervalToShowNextCell,o=t>=this._yDelayForNextCell):t=0,(n||o)&&(n&&(e=0),o&&(t=0),this.handleDragToNewPosition(n,o))},this._options.minIntervalToShowNextCell)}}handleDragToNewPosition(e,t){let n=this._draggingMouseOffset.e.pageX,o=this._draggingMouseOffset.e.pageY,r=this._draggingMouseOffset.offset.x,i=this._draggingMouseOffset.offset.y,a=this._draggingMouseOffset.viewport.offset;e&&r&&(r>0?n=a.right+this._moveDistanceForOneCell.x:n=a.left-this._moveDistanceForOneCell.x),t&&i&&(i>0?o=a.top-this._moveDistanceForOneCell.y:o=a.bottom+this._moveDistanceForOneCell.y),this.handleDragTo({pageX:n,pageY:o},this._draggingMouseOffset.dd)}stopIntervalTimer(){this._autoScrollTimerId&&(window.clearInterval(this._autoScrollTimerId),this._autoScrollTimerId=void 0)}handleDragTo(e,t){let n=e?.touches?.[0]??e,o=Si.offset(this._activeCanvas),r=this._grid.getCellFromPoint(n.pageX-(o?.left??0)+this._columnOffset,n.pageY-(o?.top??0)+this._rowOffset);if(!(this._gridOptions.frozenColumn>=0&&!this._isRightCanvas&&r.cell>this._gridOptions.frozenColumn||this._isRightCanvas&&r.cell<=this._gridOptions.frozenColumn)&&!(this._gridOptions.frozenRow>=0&&!this._isBottomCanvas&&r.row>=this._gridOptions.frozenRow||this._isBottomCanvas&&r.row<this._gridOptions.frozenRow)){if(this._options.autoScroll&&this._draggingMouseOffset){let i=this._grid.getCellNodeBox(r.row,r.cell);if(!i)return;let a=this._draggingMouseOffset.viewport;(i.left<a.left||i.right>a.right||i.top<a.top||i.bottom>a.bottom)&&this._grid.scrollCellIntoView(r.row,r.cell)}if(this._grid.canCellBeSelected(r.row,r.cell)&&t?.range){t.range.end=r;let i=new Nd(t.range.start.row??0,t.range.start.cell??0,r.row,r.cell);this._decorator.show(i),this.onCellRangeSelecting.notify({range:i})}}}hasRowMoveManager(){return!!(this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager"))}handleDragEnd(e,t){this._decorator.hide(),this._dragging&&(this._dragging=!1,e.stopImmediatePropagation(),this.stopIntervalTimer(),this.onCellRangeSelected.notify({range:new Nd(t.range.start.row??0,t.range.start.cell??0,t.range.end.row,t.range.end.cell)}))}getCurrentRange(){return this._currentlySelectedRange}},rB=Vc,sB=Ea,mr=vo,iB=class{constructor(e){k(this,"pluginName","CheckboxSelectColumn"),k(this,"_dataView"),k(this,"_grid"),k(this,"_isUsingDataView",!1),k(this,"_selectableOverride",null),k(this,"_headerRowNode"),k(this,"_selectAll_UID"),k(this,"_handler",new sB),k(this,"_selectedRowsLookup",{}),k(this,"_checkboxColumnCellIndex",null),k(this,"_options"),k(this,"_defaults",{columnId:"_checkbox_selector",cssClass:void 0,hideSelectAllCheckbox:!1,name:"",toolTip:"Select/Deselect All",width:30,reorderable:!1,applySelectOnAllPages:!1,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0}),k(this,"_isSelectAllChecked",!1),k(this,"_bindingEventService"),this._bindingEventService=new rB,this._options=mr.extend(!0,{},this._defaults,e),this._selectAll_UID=this.createUID(),typeof this._options.selectableOverride=="function"&&this.selectableOverride(this._options.selectableOverride)}init(e){this._grid=e,this._isUsingDataView=!Array.isArray(e.getData()),this._isUsingDataView&&(this._dataView=e.getData()),this._handler.subscribe(this._grid.onSelectedRowsChanged,this.handleSelectedRowsChanged.bind(this)).subscribe(this._grid.onClick,this.handleClick.bind(this)).subscribe(this._grid.onKeyDown,this.handleKeyDown.bind(this)).subscribe(this._grid.onAfterSetColumns,()=>this.renderSelectAllCheckbox(this._isSelectAllChecked)),this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages&&this._handler.subscribe(this._dataView.onSelectedRowIdsChanged,this.handleDataViewSelectedIdsChanged.bind(this)).subscribe(this._dataView.onPagingInfoChanged,this.handleDataViewSelectedIdsChanged.bind(this)),this._options.hideInFilterHeaderRow||this.addCheckboxToFilterHeaderRow(e),this._options.hideInColumnTitleRow||this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}getOptions(){return this._options}setOptions(e){if(this._options=mr.extend(!0,{},this._options,e),this._options.hideSelectAllCheckbox)this.hideSelectAllFromColumnHeaderTitleRow(),this.hideSelectAllFromColumnHeaderFilterRow();else if(this._options.hideInColumnTitleRow?(this.hideSelectAllFromColumnHeaderTitleRow(),this._options.name&&this._grid.updateColumnHeader(this._options.columnId||"",this._options.name,"")):(this.renderSelectAllCheckbox(this._isSelectAllChecked),this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))),this._options.hideInFilterHeaderRow)this.hideSelectAllFromColumnHeaderFilterRow();else{let t=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");if(t){t.style.display="flex";let n=t.querySelector('input[type="checkbox"]');n&&(n.checked=this._isSelectAllChecked)}}}hideSelectAllFromColumnHeaderTitleRow(){this._grid.updateColumnHeader(this._options.columnId||"",this._options.name||"","")}hideSelectAllFromColumnHeaderFilterRow(){let e=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");e&&(e.style.display="none")}handleSelectedRowsChanged(){let e=this._grid.getSelectedRows(),t={},n=0,o=0,r=0,i=0;if(typeof this._selectableOverride=="function")for(r=0;r<this._grid.getDataLength();r++){let l=this._grid.getDataItem(r);this.checkSelectableOverride(o,l,this._grid)||i++}let a=[];for(o=0;o<e.length;o++){n=e[o];let l=this._grid.getDataItem(n);this.checkSelectableOverride(o,l,this._grid)?(t[n]=!0,t[n]!==this._selectedRowsLookup[n]&&(this._grid.invalidateRow(n),delete this._selectedRowsLookup[n])):a.push(n)}if(typeof this._selectedRowsLookup=="object"&&Object.keys(this._selectedRowsLookup).forEach(l=>{l!==void 0&&this._grid.invalidateRow(+l)}),this._selectedRowsLookup=t,this._grid.render(),this._isSelectAllChecked=(e?.length??0)+i>=this._grid.getDataLength(),(!this._isUsingDataView||!this._options.applySelectOnAllPages)&&(!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow)){let l=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);l&&(l.checked=this._isSelectAllChecked)}if(a.length>0){for(o=0;o<a.length;o++){let l=e.indexOf(a[o]);e.splice(l,1)}this._grid.setSelectedRows(e,"click.cleanup")}}handleDataViewSelectedIdsChanged(){let e=this._dataView.getAllSelectedFilteredIds(),t=this._dataView.getFilteredItems(),n=0;if(typeof this._selectableOverride=="function"&&e.length>0)for(let o=0;o<this._dataView.getItemCount();o++){let r=this._dataView.getItemByIdx(o),i=this._dataView.getIdPropertyName(),a=r[i];t.findIndex(function(l){return l[i]===a})>=0&&!this.checkSelectableOverride(o,r,this._grid)&&n++}if(this._isSelectAllChecked=(e&&e.length)+n>=t.length,!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow){let o=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);o&&(o.checked=this._isSelectAllChecked)}}handleKeyDown(e,t){e.which===32&&this._grid.getColumns()[t.cell].id===this._options.columnId&&((!this._grid.getEditorLock().isActive()||this._grid.getEditorLock().commitCurrentEdit())&&this.toggleRowSelection(t.row),e.preventDefault(),e.stopImmediatePropagation())}handleClick(e,t){if(this._grid.getColumns()[t.cell].id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}this.toggleRowSelection(t.row),e.stopPropagation(),e.stopImmediatePropagation()}}toggleRowSelection(e){let t=this._grid.getDataItem(e);if(this.checkSelectableOverride(e,t,this._grid)){if(this._selectedRowsLookup[e]){let n=this._grid.getSelectedRows().filter(o=>o!==e);this._grid.setSelectedRows(n,"click.toggle")}else this._grid.setSelectedRows(this._grid.getSelectedRows().concat(e),"click.toggle");this._grid.setActiveCell(e,this.getCheckboxColumnCellIndex())}}selectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]||(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().concat(t),"SlickCheckboxSelectColumn.selectRows")}deSelectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]&&(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().filter(n=>t.indexOf(n)<0),"SlickCheckboxSelectColumn.deSelectRows")}handleHeaderClick(e,t){if(t.column.id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}let n=e.target.checked,o=n?"click.selectAll":"click.unselectAll",r=[];if(n){for(let i=0;i<this._grid.getDataLength();i++){let a=this._grid.getDataItem(i);!a.__group&&!a.__groupTotals&&this.checkSelectableOverride(i,a,this._grid)&&r.push(i)}n=!0}if(this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages){let i=[],a=this._dataView.getFilteredItems();for(let l=0;l<a.length;l++){let d=a[l];this.checkSelectableOverride(l,d,this._grid)&&i.push(d[this._dataView.getIdPropertyName()])}this._dataView.setSelectedIds(i,{isRowBeingAdded:n})}this._grid.setSelectedRows(r,o),e.stopPropagation(),e.stopImmediatePropagation()}}getCheckboxColumnCellIndex(){if(this._checkboxColumnCellIndex===null){this._checkboxColumnCellIndex=0;let e=this._grid.getColumns();for(let t=0;t<e.length;t++)e[t].id===this._options.columnId&&(this._checkboxColumnCellIndex=t)}return this._checkboxColumnCellIndex}createCheckboxElement(e,t=!1){let n=new DocumentFragment;return n.appendChild(mr.createDomElement("input",{id:e,type:"checkbox",checked:t,ariaChecked:String(t)})),n.appendChild(mr.createDomElement("label",{htmlFor:e})),n}getColumnDefinition(){return{id:this._options.columnId,reorderable:this._options.reorderable,name:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?this._options.name||"":this.createCheckboxElement(`header-selector${this._selectAll_UID}`),toolTip:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?"":this._options.toolTip,field:"sel",width:this._options.width,resizable:!1,sortable:!1,cssClass:this._options.cssClass,hideSelectAllCheckbox:this._options.hideSelectAllCheckbox,formatter:this.checkboxSelectionFormatter.bind(this),excludeFromColumnPicker:this._options.excludeFromColumnPicker??!0,excludeFromGridMenu:this._options.excludeFromGridMenu??!0,excludeFromHeaderMenu:this._options.excludeFromHeaderMenu??!0}}addCheckboxToFilterHeaderRow(e){this._handler.subscribe(e.onHeaderRowCellRendered,(t,n)=>{if(n.column.field==="sel"){mr.emptyElement(n.node);let o=mr.createDomElement("span",{id:"filter-checkbox-selectall-container",ariaChecked:"false"});o.appendChild(mr.createDomElement("input",{type:"checkbox",id:`header-filter-selector${this._selectAll_UID}`})),o.appendChild(mr.createDomElement("label",{htmlFor:`header-filter-selector${this._selectAll_UID}`})),n.node.appendChild(o),this._headerRowNode=n.node,this._bindingEventService.bind(o,"click",r=>this.handleHeaderClick(r,n))}})}createUID(){return Math.round(1e7*Math.random())}checkboxSelectionFormatter(e,t,n,o,r,i){if(r&&this.checkSelectableOverride(e,r,i)){let a=this.createUID()+e;return this.createCheckboxElement(`selector${a}`,!!this._selectedRowsLookup[e])}return null}checkSelectableOverride(e,t,n){return typeof this._selectableOverride=="function"?this._selectableOverride(e,t,n):!0}renderSelectAllCheckbox(e){this._grid.updateColumnHeader(this._options.columnId||"",this.createCheckboxElement(`header-selector${this._selectAll_UID}`,!!e),this._options.toolTip)}selectableOverride(e){this._selectableOverride=e}},aB=Vc,lB=Jr,cB=Hj,Ad=vo,dB=class{constructor(e){k(this,"pluginName","HeaderButtons"),k(this,"onCommand",new lB("onCommand")),k(this,"_grid"),k(this,"_handler",new cB),k(this,"_bindingEventService",new aB),k(this,"_defaults",{buttonCssClass:"slick-header-button"}),k(this,"_options"),this._options=Ad.extend(!0,{},this._defaults,e)}init(e){this._grid=e,Ad.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns())}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}handleHeaderCellRendered(e,t){let n=t.column;if(n.header?.buttons){let o=n.header.buttons.length;for(;o--;){let r=n.header.buttons[o],i=this.runOverrideFunctionWhenExists(r.itemVisibilityOverride,t),a=this.runOverrideFunctionWhenExists(r.itemUsabilityOverride,t);if(!i)continue;Object.prototype.hasOwnProperty.call(r,"itemUsabilityOverride")&&(r.disabled=!a);let l=document.createElement("div");l.className=this._options.buttonCssClass||"",l.ariaLabel="Header Button",l.role="button",r.disabled&&l.classList.add("slick-header-button-disabled"),r.showOnHover&&l.classList.add("slick-header-button-hidden"),r.image&&(l.style.backgroundImage=`url(${r.image})`),r.cssClass&&l.classList.add(...Ad.classNameToList(r.cssClass)),r.tooltip&&(l.title=r.tooltip),r.handler&&!r.disabled&&this._bindingEventService.bind(l,"click",r.handler),this._bindingEventService.bind(l,"click",this.handleButtonClick.bind(this,r,t.column)),t.node.appendChild(l)}}}handleBeforeHeaderCellDestroy(e,t){if(t.column.header?.buttons){let n=(this._options.buttonCssClass||"").replace(/(\s+)/g,".");n&&t.node.querySelectorAll(`.${n}`).forEach(o=>o.remove())}}handleButtonClick(e,t,n){let o=e.command||"",r={grid:this._grid,column:t,button:e};o&&(r.command=o),typeof e.action=="function"&&e.action.call(this,n,r),o&&!e.disabled&&(this.onCommand.notify(r,n,this),this._grid.updateColumnHeader(t.id)),n.preventDefault(),n.stopPropagation()}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},uB=Vc,Fd=Wj,hB=Ea,Ln=vo,fB=class{constructor(e){k(this,"pluginName","HeaderMenu"),k(this,"onAfterMenuShow",new Fd("onAfterMenuShow")),k(this,"onBeforeMenuShow",new Fd("onBeforeMenuShow")),k(this,"onCommand",new Fd("onCommand")),k(this,"_grid"),k(this,"_gridUid",""),k(this,"_handler",new hB),k(this,"_bindingEventService",new uB),k(this,"_defaults",{buttonCssClass:void 0,buttonImage:void 0,minWidth:100,autoAlign:!0,autoAlignOffset:0,subMenuOpenByEvent:"mouseover"}),k(this,"_options"),k(this,"_activeHeaderColumnElm"),k(this,"_menuElm"),k(this,"_subMenuParentId",""),this._options=Ln.extend(!0,{},e,this._defaults)}init(e){this._grid=e,this._gridUid=e?.getUID()||"",Ln.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns()),this._bindingEventService.bind(document.body,"click",this.handleBodyMouseDown.bind(this))}setOptions(e){this._options=Ln.extend(!0,{},this._options,e)}getGridUidSelector(){let e=this._grid.getUID()||"";return e?`.${e}`:""}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll(),this._menuElm=this._menuElm||document.body.querySelector(`.slick-header-menu${this.getGridUidSelector()}`),this._menuElm?.remove(),this._activeHeaderColumnElm=void 0}destroyAllMenus(){this.destroySubMenus(),this._bindingEventService.unbindAll("parent-menu"),document.querySelectorAll(`.slick-header-menu${this.getGridUidSelector()}`).forEach(e=>e.remove())}destroySubMenus(){this._bindingEventService.unbindAll("sub-menu"),document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(e=>e.remove())}handleBodyMouseDown(e){let t=!1;this._menuElm?.contains(e.target)&&(t=!0),t||document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(n=>{n.contains(e.target)&&(t=!0)}),(this._menuElm!==e.target&&!t&&!e.defaultPrevented||e.target.className==="close")&&this.hideMenu()}hideMenu(){this._menuElm&&(this._menuElm.remove(),this._menuElm=void 0),this._activeHeaderColumnElm?.classList.remove("slick-header-column-active"),this.destroySubMenus()}handleHeaderCellRendered(e,t){let n=t.column?.header?.menu;if(n?.items&&console.warn('[SlickGrid] Header Menu "items" property was deprecated in favor of "commandItems" to align with all other Menu plugins.'),n){if(!this.runOverrideFunctionWhenExists(this._options.menuUsabilityOverride,t))return;let o=document.createElement("div");if(o.className="slick-header-menubutton",o.ariaLabel="Header Menu",o.role="button",!this._options.buttonCssClass&&!this._options.buttonImage&&(this._options.buttonCssClass="caret"),this._options.buttonCssClass){let r=document.createElement("span");r.classList.add(...Ln.classNameToList(this._options.buttonCssClass)),o.appendChild(r)}this._options.buttonImage&&(o.style.backgroundImage=`url(${this._options.buttonImage})`),this._options.tooltip&&(o.title=this._options.tooltip),this._bindingEventService.bind(o,"click",r=>{this.destroyAllMenus(),this.createParentMenu(r,n,t.column)}),t.node.appendChild(o)}}handleBeforeHeaderCellDestroy(e,t){t.column.header?.menu&&t.node.querySelectorAll(".slick-header-menubutton").forEach(n=>n.remove())}addSubMenuTitleWhenExists(e,t){if(e!=="divider"&&e?.subMenuTitle){let n=document.createElement("div");n.className="slick-menu-title",n.textContent=e.subMenuTitle;let o=e.subMenuTitleCssClass;o&&n.classList.add(...Ln.classNameToList(o)),t.appendChild(n)}}createParentMenu(e,t,n){let o={grid:this._grid,column:n,menu:t};if(this.onBeforeMenuShow.notify(o,e,this).getReturnValue()===!1)return;this._menuElm=this.createMenu(t.commandItems||t.items,n);let r=this._grid.getContainerNode();r&&r.appendChild(this._menuElm),this.repositionMenu(e,this._menuElm),this.onAfterMenuShow.notify(o,e,this).getReturnValue()!==!1&&(e.preventDefault(),e.stopPropagation())}createMenu(e,t,n=0,o){let r=n>0,i=o?.command,a=n===1&&i?i.replaceAll(" ",""):"";a&&(this._subMenuParentId=a),r&&(a=this._subMenuParentId);let l=`slick-header-menu slick-menu-level-${n} ${this._gridUid}`,d=document.body.querySelector(`.slick-header-menu.slick-menu-level-${n}${this.getGridUidSelector()}`);if(d){if(d.dataset.subMenuParent===a)return d;this.destroySubMenus()}let u=document.createElement("div");u.className=l,n>0&&(u.classList.add("slick-submenu"),a&&(u.dataset.subMenuParent=a)),u.classList.add(this._gridUid),u.role="menu",u.ariaLabel=n>1?"SubMenu":"Header Menu",u.style.minWidth=`${this._options.minWidth}px`,u.setAttribute("aria-expanded","true");let f={grid:this._grid,column:t,menu:{items:e}};o&&n>0&&this.addSubMenuTitleWhenExists(o,u);for(let p=0;p<e.length;p++){let y=!0,w=e[p],b=this.runOverrideFunctionWhenExists(w.itemVisibilityOverride,f),m=this.runOverrideFunctionWhenExists(w.itemUsabilityOverride,f);if(!b)continue;Object.prototype.hasOwnProperty.call(w,"itemUsabilityOverride")&&(w.disabled=!m);let v=document.createElement("div");v.className="slick-header-menuitem",v.role="menuitem",(w.divider||w==="divider")&&(v.classList.add("slick-header-menuitem-divider"),y=!1),w.disabled&&v.classList.add("slick-header-menuitem-disabled"),w.hidden&&v.classList.add("slick-header-menuitem-hidden"),w.cssClass&&v.classList.add(...Ln.classNameToList(w.cssClass)),w.tooltip&&(v.title=w.tooltip||"");let P=document.createElement("div");P.className="slick-header-menuicon",v.appendChild(P),w.iconCssClass&&P.classList.add(...Ln.classNameToList(w.iconCssClass)),w.iconImage&&(P.style.backgroundImage="url("+w.iconImage+")");let D=document.createElement("span");if(D.className="slick-header-menucontent",D.textContent=w.title||"",v.appendChild(D),w.textCssClass&&D.classList.add(...Ln.classNameToList(w.textCssClass)),u.appendChild(v),y){let x=r?"sub-menu":"parent-menu";this._bindingEventService.bind(v,"click",this.handleMenuItemClick.bind(this,w,t,n),void 0,x)}if(this._options.subMenuOpenByEvent==="mouseover"&&this._bindingEventService.bind(v,"mouseover",x=>{w.commandItems||w.items?this.repositionSubMenu(w,t,n,x):r||this.destroySubMenus()}),w.commandItems||w.items){let x=document.createElement("div");x.className="sub-item-chevron",this._options.subItemChevronClass?x.classList.add(...Ln.classNameToList(this._options.subItemChevronClass)):x.textContent="⮞",v.classList.add("slick-submenu-item"),v.appendChild(x)}}return u}handleMenuItemClick(e,t,n=0,o){if(e!=="divider"&&!e.disabled&&!e.divider){let r=e.command||"";if(Ln.isDefined(r)&&!e.commandItems&&!e.items){let i={grid:this._grid,column:t,command:r,item:e};this.onCommand.notify(i,o,this),typeof e.action=="function"&&e.action.call(this,o,i),o.defaultPrevented||this.hideMenu()}else e.commandItems||e.items?this.repositionSubMenu(e,t,n,o):this.destroySubMenus()}}repositionSubMenu(e,t,n,o){o.target.classList.contains("slick-header-menubutton")&&this.destroySubMenus();let r=this.createMenu(e.commandItems||e.items||[],t,n+1,e);document.body.appendChild(r),this.repositionMenu(o,r)}repositionMenu(e,t){let n=e.target,o=t.classList.contains("slick-submenu"),r=o?e.target.closest(".slick-header-menuitem"):n,i=Ln.offset(n),a=this._grid.getGridPosition(),l=t.offsetWidth,d=Ln.offset(this._menuElm),u=Ln.offset(r),f=o?u?.top??0:n.clientHeight??i?.top??0+(this._options?.menuOffsetTop??0),p=o?u?.left??0:i?.left??0;if(o&&r){let y=p+Number(l);o&&(y+=r.clientWidth);let w=document.documentElement.clientWidth;(y>=a.width||y>=w?"left":"right")=="left"?(t.classList.remove("dropright"),t.classList.add("dropleft"),p-=l):(t.classList.remove("dropleft"),t.classList.add("dropright"),o&&(p+=r.offsetWidth))}else p+t.offsetWidth>=a.width&&(p=p+n.clientWidth-t.clientWidth+(this._options.autoAlignOffset||0)),p-=d?.left??0;t.style.top=`${f}px`,t.style.left=`${p}px`,this._activeHeaderColumnElm=t.closest(".slick-header-column"),this._activeHeaderColumnElm&&this._activeHeaderColumnElm.classList.add("slick-header-column-active")}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},pB=jh,Ld=Mo,mB=Ob,gB=oB,yB=Jr,vB=la,bB=Ea,$d=Vh,il=vo,wB=class{constructor(e){k(this,"pluginName","RowSelectionModel"),k(this,"onSelectedRangesChanged",new yB("onSelectedRangesChanged")),k(this,"_grid"),k(this,"_ranges",[]),k(this,"_eventHandler",new bB),k(this,"_inHandler",!1),k(this,"_selector"),k(this,"_isRowMoveManagerHandler"),k(this,"_options"),k(this,"_defaults",{selectActiveRow:!0,dragToSelect:!1,autoScrollWhenDrag:!0,cellRangeSelector:void 0}),this._options=il.extend(!0,{},this._defaults,e)}init(e){if(pB===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');if(this._selector=this._options.cellRangeSelector,this._grid=e,il.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),!this._selector&&this._options.dragToSelect){if(!mB)throw new Error("Slick.CellRangeDecorator is required when option dragToSelect set to true");this._selector=new gB({selectionCss:{border:"none"},autoScroll:this._options.autoScrollWhenDrag})}this._eventHandler.subscribe(this._grid.onActiveCellChanged,this.wrapHandler(this.handleActiveCellChange).bind(this)),this._eventHandler.subscribe(this._grid.onKeyDown,this.wrapHandler(this.handleKeyDown).bind(this)),this._eventHandler.subscribe(this._grid.onClick,this.wrapHandler(this.handleClick).bind(this)),this._selector&&(e.registerPlugin(this._selector),this._selector.onCellRangeSelecting.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.subscribe(this.handleBeforeCellRangeSelected.bind(this)))}destroy(){this._eventHandler.unsubscribeAll(),this._selector&&(this._selector.onCellRangeSelecting.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.unsubscribe(this.handleBeforeCellRangeSelected.bind(this)),this._grid.unregisterPlugin(this._selector),this._selector.destroy&&this._selector.destroy())}wrapHandler(e){return(...t)=>{this._inHandler||(this._inHandler=!0,e.apply(this,t),this._inHandler=!1)}}rangesToRows(e){let t=[];for(let n=0;n<e.length;n++)for(let o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}rowsToRanges(e){let t=[],n=this._grid.getColumns().length-1;return e.forEach(o=>t.push(new $d(o,0,o,n))),t}getRowsRange(e,t){let n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}getSelectedRows(){return this.rangesToRows(this._ranges)}setSelectedRows(e){this.setSelectedRanges(this.rowsToRanges(e),"SlickRowSelectionModel.setSelectedRows")}setSelectedRanges(e,t="SlickRowSelectionModel.setSelectedRanges"){if((!this._ranges||this._ranges.length===0)&&(!e||e.length===0))return;this._ranges=e;let n=new vB(new CustomEvent("click",{detail:{caller:t}}),this._ranges);this.onSelectedRangesChanged.notify(this._ranges,n)}getSelectedRanges(){return this._ranges}refreshSelections(){this.setSelectedRows(this.getSelectedRows())}handleActiveCellChange(e,t){this._options.selectActiveRow&&il.isDefined(t.row)&&this.setSelectedRanges([new $d(t.row,0,t.row,this._grid.getColumns().length-1)])}handleKeyDown(e){let t=this._grid.getActiveCell();if(this._grid.getOptions().multiSelect&&t&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which===Ld.UP||e.which===Ld.DOWN)){let n=this.getSelectedRows();n.sort(function(a,l){return a-l}),n.length||(n=[t.row]);let o=n[0],r=n[n.length-1],i;if(e.which===Ld.DOWN?i=t.row<r||o===r?++r:++o:i=t.row<r?--r:--o,i>=0&&i<this._grid.getDataLength()){this._grid.scrollRowIntoView(i);let a=this.rowsToRanges(this.getRowsRange(o,r));this.setSelectedRanges(a)}e.preventDefault(),e.stopPropagation()}}handleClick(e){let t=this._grid.getCellFromEvent(e);if(!t||!this._grid.canCellBeActive(t.row,t.cell)||!this._grid.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;let n=this.rangesToRows(this._ranges),o=n.indexOf(t.row);if(o===-1&&(e.ctrlKey||e.metaKey))n.push(t.row),this._grid.setActiveCell(t.row,t.cell);else if(o!==-1&&(e.ctrlKey||e.metaKey))n=n.filter(i=>i!==t.row),this._grid.setActiveCell(t.row,t.cell);else if(n.length&&e.shiftKey){let i=n.pop(),a=Math.min(t.row,i),l=Math.max(t.row,i);n=[];for(let d=a;d<=l;d++)d!==i&&n.push(d);n.push(i),this._grid.setActiveCell(t.row,t.cell)}let r=this.rowsToRanges(n);return this.setSelectedRanges(r),e.stopImmediatePropagation(),!0}handleBeforeCellRangeSelected(e,t){if(!this._isRowMoveManagerHandler){let n=this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager");this._isRowMoveManagerHandler=n?n.isHandlerColumn:il.noop}if(this._grid.getEditorLock().isActive()||this._isRowMoveManagerHandler(t.cell))return e.stopPropagation(),!1;this._grid.setActiveCell(t.row,t.cell)}handleCellRangeSelected(e,t){if(!this._grid.getOptions().multiSelect||!this._options.selectActiveRow)return!1;this.setSelectedRanges([new $d(t.range.fromRow,0,t.range.toRow,this._grid.getColumns().length-1)])}},CB=Mo,Vd=kb,_i=vo,Mb=class{constructor(e){k(this,"pluginName","GroupItemMetadataProvider"),k(this,"_grid"),k(this,"_options"),k(this,"_defaults",{checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:this.defaultGroupCellFormatter.bind(this),totalsFormatter:this.defaultTotalsCellFormatter.bind(this),includeHeaderTotals:!1}),this._options=_i.extend(!0,{},this._defaults,e)}get dataView(){return this._grid?.getData?.()??{}}getOptions(){return this._options}setOptions(e){_i.extend(!0,this._options,e)}defaultGroupCellFormatter(e,t,n,o,r){if(!this._options.enableExpandCollapse)return r.title;let i=`${r.level*15}px`,a=r.collapsed?this._options.toggleCollapsedCssClass:this._options.toggleExpandedCssClass,l=document.createDocumentFragment();this._options.checkboxSelect&&l.appendChild(_i.createDomElement("span",{className:`${this._options.checkboxSelectCssClass} ${r.selectChecked?"checked":"unchecked"}`})),l.appendChild(_i.createDomElement("span",{className:`${this._options.toggleCssClass} ${a}`,ariaExpanded:String(!r.collapsed),style:{marginLeft:i}}));let d=_i.createDomElement("span",{className:this._options.groupTitleCssClass||""});return d.setAttribute("level",r.level),r.title instanceof HTMLElement?d.appendChild(r.title):this._grid.applyHtmlCode(d,r.title??""),l.appendChild(d),l}defaultTotalsCellFormatter(e,t,n,o,r,i){return o?.groupTotalsFormatter?.(r,o,i)??""}init(e){this._grid=e,this._grid.onClick.subscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.subscribe(this.handleGridKeyDown.bind(this))}destroy(){this._grid&&(this._grid.onClick.unsubscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.unsubscribe(this.handleGridKeyDown.bind(this)))}handleGridClick(e,t){let n=e.target,o=this._grid.getDataItem(t.row);if(o&&o instanceof Vd&&n.classList.contains(this._options.toggleCssClass||"")&&(this.handleDataViewExpandOrCollapse(o),e.stopImmediatePropagation(),e.preventDefault()),o&&o instanceof Vd&&n.classList.contains(this._options.checkboxSelectCssClass||"")){o.selectChecked=!o.selectChecked,n.classList.remove(o.selectChecked?"unchecked":"checked"),n.classList.add(o.selectChecked?"checked":"unchecked");let r=this.dataView.mapItemsToRows(o.rows);o.selectChecked?this._options.checkboxSelectPlugin.selectRows(r):this._options.checkboxSelectPlugin.deSelectRows(r)}}handleGridKeyDown(e){if(this._options.enableExpandCollapse&&e.which===CB.SPACE){let t=this._grid.getActiveCell();if(t){let n=this._grid.getDataItem(t.row);n&&n instanceof Vd&&(this.handleDataViewExpandOrCollapse(n),e.stopImmediatePropagation(),e.preventDefault())}}}handleDataViewExpandOrCollapse(e){let t=this._grid.getRenderedRange();this.dataView.setRefreshHints({ignoreDiffsBefore:t.top,ignoreDiffsAfter:t.bottom+1}),e.collapsed?this.dataView.expandGroup(e.groupingKey):this.dataView.collapseGroup(e.groupingKey)}getGroupRowMetadata(e,t,n){let o=e?.level;return{selectable:!1,focusable:this._options.groupFocusable,cssClasses:`${this._options.groupCssClass} slick-group-level-${o}`,formatter:this._options.includeHeaderTotals&&this._options.totalsFormatter||void 0,columns:{0:{colspan:this._options.includeHeaderTotals?"1":"*",formatter:this._options.groupFormatter,editor:null}}}}getTotalsRowMetadata(e,t,n){let o=e?.group?.level;return{selectable:!1,focusable:this._options.totalsFocusable,cssClasses:`${this._options.totalsCssClass} slick-group-level-${o}`,formatter:this._options.totalsFormatter,editor:null}}},Go=Jr,jd=la,Wm=kb,SB=Vj,qn=vo,_B=Mb,xB=class{constructor(e,t){this.externalPubSub=t,k(this,"defaults",{globalItemMetadataProvider:null,groupItemMetadataProvider:null,inlineFilters:!1,useCSPSafeFilter:!1}),k(this,"idProperty","id"),k(this,"items",[]),k(this,"rows",[]),k(this,"idxById",new Map),k(this,"rowsById"),k(this,"filter",null),k(this,"filterCSPSafe",null),k(this,"updated",null),k(this,"suspend",!1),k(this,"isBulkSuspend",!1),k(this,"bulkDeleteIds",new Map),k(this,"sortAsc",!0),k(this,"fastSortField"),k(this,"sortComparer"),k(this,"refreshHints",{}),k(this,"prevRefreshHints",{}),k(this,"filterArgs"),k(this,"filteredItems",[]),k(this,"compiledFilter"),k(this,"compiledFilterCSPSafe"),k(this,"compiledFilterWithCaching"),k(this,"compiledFilterWithCachingCSPSafe"),k(this,"filterCache",[]),k(this,"_grid"),k(this,"groupingInfoDefaults",{getter:void 0,formatter:void 0,comparer:(n,o)=>n.value===o.value?0:n.value>o.value?1:-1,predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1}),k(this,"groupingInfos",[]),k(this,"groups",[]),k(this,"toggledGroupsByLevel",[]),k(this,"groupingDelimiter",":|:"),k(this,"selectedRowIds",[]),k(this,"preSelectedRowIdsChangeFn"),k(this,"pagesize",0),k(this,"pagenum",0),k(this,"totalRows",0),k(this,"_options"),k(this,"_container"),k(this,"onBeforePagingInfoChanged"),k(this,"onGroupExpanded"),k(this,"onGroupCollapsed"),k(this,"onPagingInfoChanged"),k(this,"onRowCountChanged"),k(this,"onRowsChanged"),k(this,"onRowsOrCountChanged"),k(this,"onSelectedRowIdsChanged"),k(this,"onSetItemsCalled"),this.onBeforePagingInfoChanged=new Go("onBeforePagingInfoChanged",t),this.onGroupExpanded=new Go("onGroupExpanded",t),this.onGroupCollapsed=new Go("onGroupCollapsed",t),this.onPagingInfoChanged=new Go("onPagingInfoChanged",t),this.onRowCountChanged=new Go("onRowCountChanged",t),this.onRowsChanged=new Go("onRowsChanged",t),this.onRowsOrCountChanged=new Go("onRowsOrCountChanged",t),this.onSelectedRowIdsChanged=new Go("onSelectedRowIdsChanged",t),this.onSetItemsCalled=new Go("onSetItemsCalled",t),this._options=qn.extend(!0,{},this.defaults,e)}beginUpdate(e){this.suspend=!0,this.isBulkSuspend=e===!0}endUpdate(){let e=this.isBulkSuspend;this.isBulkSuspend=!1,this.suspend=!1,e&&(this.processBulkDelete(),this.ensureIdUniqueness()),this.refresh()}destroy(){this.items=[],this.idxById=null,this.rowsById=null,this.filter=null,this.filterCSPSafe=null,this.updated=null,this.sortComparer=null,this.filterCache=[],this.filteredItems=[],this.compiledFilter=null,this.compiledFilterCSPSafe=null,this.compiledFilterWithCaching=null,this.compiledFilterWithCachingCSPSafe=null,this._grid&&this._grid.onSelectedRowsChanged&&this._grid.onCellCssStylesChanged&&(this._grid.onSelectedRowsChanged.unsubscribe(),this._grid.onCellCssStylesChanged.unsubscribe()),this.onRowsOrCountChanged&&this.onRowsOrCountChanged.unsubscribe()}setRefreshHints(e){this.refreshHints=e}getFilterArgs(){return this.filterArgs}setFilterArgs(e){this.filterArgs=e}processBulkDelete(){if(!this.idxById)return;let e,t,n=0;for(let o=0,r=this.items.length;o<r;o++){if(t=this.items[o],e=t[this.idProperty],e===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.bulkDeleteIds.has(e)?this.idxById.delete(e):(this.items[n]=t,this.idxById.set(e,n),++n)}this.items.length=n,this.bulkDeleteIds=new Map}updateIdxById(e){if(this.isBulkSuspend||!this.idxById)return;e=e||0;let t;for(let n=e,o=this.items.length;n<o;n++){if(t=this.items[n][this.idProperty],t===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.idxById.set(t,n)}}ensureIdUniqueness(){if(this.isBulkSuspend||!this.idxById)return;let e;for(let t=0,n=this.items.length;t<n;t++)if(e=this.items[t][this.idProperty],e===void 0||this.idxById.get(e)!==t)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property")}getItems(){return this.items}getIdPropertyName(){return this.idProperty}setItems(e,t){t!==void 0&&(this.idProperty=t),this.items=this.filteredItems=e,this.onSetItemsCalled.notify({idProperty:this.idProperty,itemCount:this.items.length},null,this),this.idxById=new Map,this.updateIdxById(),this.ensureIdUniqueness(),this.refresh()}setPagingOptions(e){this.onBeforePagingInfoChanged.notify(this.getPagingInfo(),null,this).getReturnValue()!==!1&&(qn.isDefined(e.pageSize)&&(this.pagesize=e.pageSize,this.pagenum=this.pagesize?Math.min(this.pagenum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1)):0),qn.isDefined(e.pageNum)&&(this.pagenum=Math.min(e.pageNum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1))),this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),this.refresh())}getPagingInfo(){let e=this.pagesize?Math.max(1,Math.ceil(this.totalRows/this.pagesize)):1;return{pageSize:this.pagesize,pageNum:this.pagenum,totalRows:this.totalRows,totalPages:e,dataView:this}}sort(e,t){this.sortAsc=t,this.sortComparer=e,this.fastSortField=null,t===!1&&this.items.reverse(),this.items.sort(e),t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}fastSort(e,t){this.sortAsc=t,this.fastSortField=e,this.sortComparer=null;let n=Object.prototype.toString;Object.prototype.toString=typeof e=="function"?e:function(){return this[e]},t===!1&&this.items.reverse(),this.items.sort(),Object.prototype.toString=n,t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}reSort(){this.sortComparer?this.sort(this.sortComparer,this.sortAsc):this.fastSortField&&this.fastSort(this.fastSortField,this.sortAsc)}getFilteredItems(){return this.filteredItems}getFilteredItemCount(){return this.filteredItems.length}getFilter(){return this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter}setFilter(e){this.filterCSPSafe=e,this.filter=e,this._options.inlineFilters&&(this.compiledFilterCSPSafe=this.compileFilterCSPSafe,this.compiledFilterWithCachingCSPSafe=this.compileFilterWithCachingCSPSafe,this.compiledFilter=this.compileFilter(this._options.useCSPSafeFilter),this.compiledFilterWithCaching=this.compileFilterWithCaching(this._options.useCSPSafeFilter)),this.refresh()}getGrouping(){return this.groupingInfos}setGrouping(e){this._options.groupItemMetadataProvider||(this._options.groupItemMetadataProvider=new _B),this.groups=[],this.toggledGroupsByLevel=[],e=e||[],this.groupingInfos=e instanceof Array?e:[e];for(let t=0;t<this.groupingInfos.length;t++){let n=this.groupingInfos[t]=qn.extend(!0,{},this.groupingInfoDefaults,this.groupingInfos[t]);n.getterIsAFn=typeof n.getter=="function",n.compiledAccumulators=[];let o=n.aggregators.length;for(;o--;)n.compiledAccumulators[o]=this.compileAccumulatorLoopCSPSafe(n.aggregators[o]);this.toggledGroupsByLevel[t]={}}this.refresh()}getItemByIdx(e){return this.items[e]}getIdxById(e){return this.idxById?.get(e)}ensureRowsByIdCache(){if(!this.rowsById){this.rowsById={};for(let e=0,t=this.rows.length;e<t;e++)this.rowsById[this.rows[e][this.idProperty]]=e}}getRowByItem(e){return this.ensureRowsByIdCache(),this.rowsById?.[e[this.idProperty]]}getRowById(e){return this.ensureRowsByIdCache(),this.rowsById?.[e]}getItemById(e){return this.items[this.idxById.get(e)]}mapItemsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n][this.idProperty]];qn.isDefined(r)&&(t[t.length]=r)}return t}mapIdsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n]];qn.isDefined(r)&&(t[t.length]=r)}return t}mapRowsToIds(e){let t=[];for(let n=0,o=e.length;n<o;n++)if(e[n]<this.rows.length){let r=this.rows[e[n]];t[t.length]=r[this.idProperty]}return t}updateSingleItem(e,t){if(this.idxById){if(!this.idxById.has(e))throw new Error("[SlickGrid DataView] Invalid id");if(e!==t[this.idProperty]){let n=t[this.idProperty];if(!qn.isDefined(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a null id");if(this.idxById.has(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a non-unique id");this.idxById.set(n,this.idxById.get(e)),this.idxById.delete(e),this.updated?.[e]&&delete this.updated[e],e=n}this.items[this.idxById.get(e)]=t,this.updated||(this.updated={}),this.updated[e]=!0}}updateItem(e,t){this.updateSingleItem(e,t),this.refresh()}updateItems(e,t){if(e.length!==t.length)throw new Error("[SlickGrid DataView] Mismatch on the length of ids and items provided to update");for(let n=0,o=t.length;n<o;n++)this.updateSingleItem(e[n],t[n]);this.refresh()}insertItem(e,t){this.items.splice(e,0,t),this.updateIdxById(e),this.refresh()}insertItems(e,t){Array.prototype.splice.apply(this.items,[e,0].concat(t)),this.updateIdxById(e),this.refresh()}addItem(e){this.items.push(e),this.updateIdxById(this.items.length-1),this.refresh()}addItems(e){this.items=this.items.concat(e),this.updateIdxById(this.items.length-e.length),this.refresh()}deleteItem(e){if(this.idxById)if(this.isBulkSuspend)this.bulkDeleteIds.set(e,!0);else{let t=this.idxById.get(e);if(t===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(e),this.items.splice(t,1),this.updateIdxById(t),this.refresh()}}deleteItems(e){if(!(e.length===0||!this.idxById))if(this.isBulkSuspend)for(let t=0,n=e.length;t<n;t++){let o=e[t];if(this.idxById.get(o)===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.bulkDeleteIds.set(o,!0)}else{let t=[];for(let n=0,o=e.length;n<o;n++){let r=e[n],i=this.idxById.get(r);if(i===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(r),t.push(i)}t.sort();for(let n=t.length-1;n>=0;--n)this.items.splice(t[n],1);this.updateIdxById(t[0]),this.refresh()}}sortedAddItem(e){if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedAddItem() requires a sort comparer, use sort()");this.insertItem(this.sortedIndex(e),e)}sortedUpdateItem(e,t){if(!this.idxById)return;if(!this.idxById.has(e)||e!==t[this.idProperty])throw new Error("[SlickGrid DataView] Invalid or non-matching id "+this.idxById.get(e));if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedUpdateItem() requires a sort comparer, use sort()");let n=this.getItemById(e);this.sortComparer(n,t)!==0?(this.deleteItem(e),this.sortedAddItem(t)):this.updateItem(e,t)}sortedIndex(e){let t=0,n=this.items.length;for(;t<n;){let o=t+n>>>1;this.sortComparer(this.items[o],e)===-1?t=o+1:n=o}return t}getItemCount(){return this.items.length}getLength(){return this.rows.length}getItem(e){let t=this.rows[e];if(t?.__group&&t.totals&&!t.totals?.initialized){let n=this.groupingInfos[t.level];n.displayTotalsRow||(this.calculateTotals(t.totals),t.title=n.formatter?n.formatter(t):t.value)}else t?.__groupTotals&&!t.initialized&&this.calculateTotals(t);return t}getItemMetadata(e){let t=this.rows[e];return t===void 0?null:this._options.globalItemMetadataProvider?.getRowMetadata?this._options.globalItemMetadataProvider.getRowMetadata(t,e):t.__group&&this._options.groupItemMetadataProvider?.getGroupRowMetadata?this._options.groupItemMetadataProvider.getGroupRowMetadata(t,e):t.__groupTotals&&this._options.groupItemMetadataProvider?.getTotalsRowMetadata?this._options.groupItemMetadataProvider.getTotalsRowMetadata(t,e):null}expandCollapseAllGroups(e,t){if(qn.isDefined(e))this.toggledGroupsByLevel[e]={},this.groupingInfos[e].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:e,groupingKey:null}):this.onGroupExpanded.notify({level:e,groupingKey:null});else for(let n=0;n<this.groupingInfos.length;n++)this.toggledGroupsByLevel[n]={},this.groupingInfos[n].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:n,groupingKey:null}):this.onGroupExpanded.notify({level:n,groupingKey:null});this.refresh()}collapseAllGroups(e){this.expandCollapseAllGroups(e,!0)}expandAllGroups(e){this.expandCollapseAllGroups(e,!1)}expandCollapseGroup(e,t,n){this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed^n,this.refresh()}collapseGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(n=t,o=t.split(this.groupingDelimiter).length-1):(n=e.join(this.groupingDelimiter),o=e.length-1),this.expandCollapseGroup(o,n,!0),this.onGroupCollapsed.notify({level:o,groupingKey:n})}expandGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(o=t.split(this.groupingDelimiter).length-1,n=t):(o=e.length-1,n=e.join(this.groupingDelimiter)),this.expandCollapseGroup(o,n,!1),this.onGroupExpanded.notify({level:o,groupingKey:n})}getGroups(){return this.groups}extractGroups(e,t){let n,o,r=[],i={},a,l=t?t.level+1:0,d=this.groupingInfos[l];for(let u=0,f=d.predefinedValues?.length??0;u<f;u++)o=d.predefinedValues?.[u],n=i[o],n||(n=new Wm,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n);for(let u=0,f=e.length;u<f;u++)a=e[u],o=d.getterIsAFn?d.getter(a):a[d.getter],n=i[o],n||(n=new Wm,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n),n.rows[n.count++]=a;if(l<this.groupingInfos.length-1)for(let u=0;u<r.length;u++)n=r[u],n.groups=this.extractGroups(n.rows,n);return r.length&&this.addTotals(r,l),r.sort(this.groupingInfos[l].comparer),r}calculateTotals(e){let t=e.group,n=this.groupingInfos[t.level??0],o=t.level===this.groupingInfos.length,r,i=n.aggregators.length;if(!o&&n.aggregateChildGroups){let a=t.groups?.length??0;for(;a--;)t.groups[a].totals.initialized||this.calculateTotals(t.groups[a].totals)}for(;i--;)r=n.aggregators[i],r.init(),!o&&n.aggregateChildGroups?n.compiledAccumulators[i].call(r,t.groups):n.compiledAccumulators[i].call(r,t.rows),r.storeResult(e);e.initialized=!0}addGroupTotals(e){let t=this.groupingInfos[e.level],n=new SB;n.group=e,e.totals=n,t.lazyTotalsCalculation||this.calculateTotals(n)}addTotals(e,t){t=t||0;let n=this.groupingInfos[t],o=n.collapsed,r=this.toggledGroupsByLevel[t],i=e.length,a;for(;i--;)a=e[i],!(a.collapsed&&!n.aggregateCollapsed)&&(a.groups&&this.addTotals(a.groups,t+1),n.aggregators?.length&&(n.aggregateEmpty||a.rows.length||a.groups?.length)&&this.addGroupTotals(a),a.collapsed=o^r[a.groupingKey],a.title=n.formatter?n.formatter(a):a.value)}flattenGroupedRows(e,t){t=t||0;let n=this.groupingInfos[t],o=[],r,i=0,a;for(let l=0,d=e.length;l<d;l++){if(a=e[l],o[i++]=a,!a.collapsed){r=a.groups?this.flattenGroupedRows(a.groups,t+1):a.rows;for(let u=0,f=r.length;u<f;u++)o[i++]=r[u]}a.totals&&n.displayTotalsRow&&(!a.collapsed||n.aggregateCollapsed)&&(o[i++]=a.totals)}return o}compileAccumulatorLoopCSPSafe(e){return e.accumulate?function(t){let n;for(let o=0;o<t.length;o++){let r=t[o];n=e.accumulate.call(e,r)}return n}:function(){}}compileFilterCSPSafe(e,t){if(typeof this.filterCSPSafe!="function")return[];let n=[],o=e.length;for(let r=0;r<o;r++)this.filterCSPSafe(e[r],t)&&n.push(e[r]);return n}compileFilter(e=!1){if(e)return null;let t=qn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args",i),l="compiledFilter";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCaching(e=!1){if(e)return null;let t=qn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args,_cache",i),l="compiledFilterWithCaching";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCachingCSPSafe(e,t,n){if(typeof this.filterCSPSafe!="function")return[];let o=[],r=e.length;for(let i=0;i<r;i++)(n[i]||this.filterCSPSafe(e[i],t))&&o.push(e[i]);return o}setFunctionName(e,t){try{Object.defineProperty(e,"name",{writable:!0,value:t})}catch{e.name=t}}uncompiledFilter(e,t){let n=[],o=0;for(let r=0,i=e.length;r<i;r++)this.filter?.(e[r],t)&&(n[o++]=e[r]);return n}uncompiledFilterWithCaching(e,t,n){let o=[],r=0,i;for(let a=0,l=e.length;a<l;a++)i=e[a],n[a]?o[r++]=i:this.filter?.(i,t)&&(o[r++]=i,n[a]=!0);return o}getFilteredAndPagedItems(e){if(this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter){let n,o;this._options.useCSPSafeFilter?(n=this._options.inlineFilters?this.compiledFilterCSPSafe:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCachingCSPSafe:this.uncompiledFilterWithCaching):(n=this._options.inlineFilters?this.compiledFilter:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCaching:this.uncompiledFilterWithCaching),this.refreshHints.isFilterNarrowing?this.filteredItems=n.call(this,this.filteredItems,this.filterArgs):this.refreshHints.isFilterExpanding?this.filteredItems=o.call(this,e,this.filterArgs,this.filterCache):this.refreshHints.isFilterUnchanged||(this.filteredItems=n.call(this,e,this.filterArgs))}else this.filteredItems=this.pagesize?e:e.concat();let t;return this.pagesize?(this.filteredItems.length<=this.pagenum*this.pagesize&&(this.filteredItems.length===0?this.pagenum=0:this.pagenum=Math.floor((this.filteredItems.length-1)/this.pagesize)),t=this.filteredItems.slice(this.pagesize*this.pagenum,this.pagesize*this.pagenum+this.pagesize)):t=this.filteredItems,{totalRows:this.filteredItems.length,rows:t}}getRowDiffs(e,t){let n,o,r,i=[],a=0,l=Math.max(t.length,e.length);this.refreshHints?.ignoreDiffsBefore&&(a=Math.max(0,Math.min(t.length,this.refreshHints.ignoreDiffsBefore))),this.refreshHints?.ignoreDiffsAfter&&(l=Math.min(t.length,Math.max(0,this.refreshHints.ignoreDiffsAfter)));for(let d=a,u=e.length;d<l;d++)d>=u?i[i.length]=d:(n=t[d],o=e[d],(!n||this.groupingInfos.length&&(r=n.__nonDataRow||o.__nonDataRow)&&n.__group!==o.__group||n.__group&&!n.equals(o)||r&&(n.__groupTotals||o.__groupTotals)||n[this.idProperty]!==o[this.idProperty]||this.updated?.[n[this.idProperty]])&&(i[i.length]=d));return i}recalc(e){this.rowsById=void 0,(this.refreshHints.isFilterNarrowing!==this.prevRefreshHints.isFilterNarrowing||this.refreshHints.isFilterExpanding!==this.prevRefreshHints.isFilterExpanding)&&(this.filterCache=[]);let t=this.getFilteredAndPagedItems(e);this.totalRows=t.totalRows;let n=t.rows;this.groups=[],this.groupingInfos.length&&(this.groups=this.extractGroups(n),this.groups.length&&(n=this.flattenGroupedRows(this.groups)));let o=this.getRowDiffs(this.rows,n);return this.rows=n,o}refresh(){if(this.suspend)return;let e=qn.extend(!0,{},this.getPagingInfo()),t=this.rows.length,n=this.totalRows,o=this.recalc(this.items);this.pagesize&&this.totalRows<this.pagenum*this.pagesize&&(this.pagenum=Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1),o=this.recalc(this.items)),this.updated=null,this.prevRefreshHints=this.refreshHints,this.refreshHints={},n!==this.totalRows&&this.onBeforePagingInfoChanged.notify(e,null,this).getReturnValue()!==!1&&this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),t!==this.rows.length&&this.onRowCountChanged.notify({previous:t,current:this.rows.length,itemCount:this.items.length,dataView:this,callingOnRowsChanged:o.length>0},null,this),o.length>0&&this.onRowsChanged.notify({rows:o,itemCount:this.items.length,dataView:this,calledOnRowCountChanged:t!==this.rows.length},null,this),(t!==this.rows.length||o.length>0)&&this.onRowsOrCountChanged.notify({rowsDiff:o,previousRowCount:t,currentRowCount:this.rows.length,itemCount:this.items.length,rowCountChanged:t!==this.rows.length,rowsChanged:o.length>0,dataView:this},null,this)}syncGridSelection(e,t,n){this._grid=e;let o;this.selectedRowIds=this.mapRowsToIds(e.getSelectedRows());let r=a=>{a===!1?this.selectedRowIds=[]:this.selectedRowIds.sort().join(",")!==a.sort().join(",")&&(this.selectedRowIds=a)},i=()=>{if((this.selectedRowIds||[]).length>0&&!o){o=!0;let a=this.mapIdsToRows(this.selectedRowIds||[]);if(!t){let l={grid:this._grid,ids:this.mapRowsToIds(a),rows:a,dataView:this};this.preSelectedRowIdsChangeFn(l),this.onSelectedRowIdsChanged.notify(Object.assign(l,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new jd,this)}e.setSelectedRows(a),o=!1}};return e.onSelectedRowsChanged.subscribe((a,l)=>{if(!o){let d=this.mapRowsToIds(l.rows),u={grid:this._grid,ids:d,rows:l.rows,added:!0,dataView:this};this.preSelectedRowIdsChangeFn(u),this.onSelectedRowIdsChanged.notify(Object.assign(u,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new jd,this)}}),this.preSelectedRowIdsChangeFn=a=>{if(!o){if(o=!0,typeof a.added>"u")r(a.ids);else{let l;if(a.added)n&&e.getOptions().multiSelect?l=(this.selectedRowIds?.filter(d=>this.getRowById(d)===void 0)).concat(a.ids):l=a.ids;else if(n&&e.getOptions().multiSelect){let d=new Set(a.ids);l=this.selectedRowIds?.filter(u=>!d.has(u))}else l=[];r(l)}o=!1}},this.onRowsOrCountChanged.subscribe(i.bind(this)),this.onSelectedRowIdsChanged}getAllSelectedIds(){return this.selectedRowIds}getAllSelectedFilteredIds(){return this.getAllSelectedFilteredItems().map(e=>e[this.idProperty])}setSelectedIds(e,t){let n=t?.isRowBeingAdded,o=t?.shouldTriggerEvent,r=t?.applyRowSelectionToGrid;n!==!1&&(n=!0);let i=this.mapIdsToRows(e),a={grid:this._grid,ids:e,rows:i,added:n,dataView:this};this.preSelectedRowIdsChangeFn?.(a),o!==!1&&this.onSelectedRowIdsChanged.notify(Object.assign(a,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new jd,this),r!==!1&&this._grid&&this._grid.setSelectedRows(i)}getAllSelectedItems(){let e=[];return this.getAllSelectedIds().forEach(t=>{e.push(this.getItemById(t))}),e}getAllSelectedFilteredItems(){if(!Array.isArray(this.selectedRowIds))return[];let e=new Set(this.selectedRowIds);return this.filteredItems.filter(t=>e.has(t[this.idProperty]))||[]}syncGridCellCssStyles(e,t){let n,o,r=a=>{n={},typeof a=="object"&&Object.keys(a).forEach(l=>{if(a){let d=this.rows[l][this.idProperty];n[d]=a[l]}})};r(e.getCellCssStyles(t));let i=()=>{if(typeof n=="object"){o=!0,this.ensureRowsByIdCache();let a={};Object.keys(n).forEach(l=>{let d=this.rowsById?.[l];qn.isDefined(d)&&(a[d]=n[l])}),e.setCellCssStyles(t,a),o=!1}};e.onCellCssStylesChanged.subscribe((a,l)=>{o||t===l.key&&(l.hash?r(l.hash):(e.onCellCssStylesChanged.unsubscribe(),this.onRowsOrCountChanged.unsubscribe(i)))}),this.onRowsOrCountChanged.subscribe(i.bind(this))}},jl=Mo,Bd=vo,bu=class wu{constructor(t){this.args=t,k(this,"input"),k(this,"defaultValue"),k(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=Bd.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?zm:Ym),this.input.focus(),this.input.select(),this.args.compositeEditorOptions&&this.input.addEventListener("change",this.onChange.bind(this))}onChange(){let t=this.args.grid.getActiveCell();this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(this.args.compositeEditorOptions.formValues,this.serializeValue()),this.args.grid.onCompositeEditorChange.notify({row:t?.row??0,cell:t?.cell??0,item:this.args.item,column:this.args.column,formValues:this.args.compositeEditorOptions.formValues,grid:this.args.grid,editors:this.args.compositeEditorOptions.editors})}destroy(){this.input.removeEventListener("keydown",this.navOnLR?zm:Ym),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return Bd.isDefined(t)||(t=wu.DefaultDecimalPlaces),!t&&t!==0?null:t}loadValue(t){this.defaultValue=t[this.args.column.field];let n=this.getDecimalPlaces();n!==null&&(this.defaultValue||this.defaultValue===0)&&this.defaultValue?.toFixed&&(this.defaultValue=this.defaultValue.toFixed(n)),this.input.value=String(this.defaultValue??""),this.input.defaultValue=String(this.defaultValue??""),this.input.select()}serializeValue(){let t=parseFloat(this.input.value);wu.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;let n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!(this.input.value===""&&!Bd.isDefined(this.defaultValue))&&this.input.value!==this.defaultValue}validate(){if(isNaN(this.input.value))return{valid:!1,msg:"Please enter a valid number"};if(this.args.column.validator){let t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}};k(bu,"DefaultDecimalPlaces"),k(bu,"AllowEmptyValue",!1);var Hm=bu;function zm(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===jl.LEFT&&t>0||e.keyCode===jl.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function Ym(e){(e.keyCode===jl.LEFT||e.keyCode===jl.RIGHT)&&e.stopImmediatePropagation()}var RB=Vc,gr=Uj,Le=Jr,xi=la,TB=zj,kn=Db,So=Mo,EB=Yj,kB=Vh,gs=qj,Nr=Gj,V=vo,Wd=Kj,Um=jh,qm=Qj,Gm=Jj,PB=class{constructor(e,t,n,o,r){if(this.container=e,this.data=t,this.columns=n,this.externalPubSub=r,k(this,"slickGridVersion","5.15.5"),k(this,"cid",""),k(this,"onActiveCellChanged"),k(this,"onActiveCellPositionChanged"),k(this,"onAddNewRow"),k(this,"onAfterSetColumns"),k(this,"onAutosizeColumns"),k(this,"onBeforeAppendCell"),k(this,"onBeforeCellEditorDestroy"),k(this,"onBeforeColumnsResize"),k(this,"onBeforeDestroy"),k(this,"onBeforeEditCell"),k(this,"onBeforeFooterRowCellDestroy"),k(this,"onBeforeHeaderCellDestroy"),k(this,"onBeforeHeaderRowCellDestroy"),k(this,"onBeforeRemoveCachedRow"),k(this,"onBeforeSetColumns"),k(this,"onBeforeSort"),k(this,"onBeforeUpdateColumns"),k(this,"onCellChange"),k(this,"onCellCssStylesChanged"),k(this,"onClick"),k(this,"onColumnsReordered"),k(this,"onColumnsDrag"),k(this,"onColumnsResized"),k(this,"onColumnsResizeDblClick"),k(this,"onCompositeEditorChange"),k(this,"onContextMenu"),k(this,"onDrag"),k(this,"onDblClick"),k(this,"onDragInit"),k(this,"onDragStart"),k(this,"onDragEnd"),k(this,"onFooterClick"),k(this,"onFooterContextMenu"),k(this,"onFooterRowCellRendered"),k(this,"onHeaderCellRendered"),k(this,"onHeaderClick"),k(this,"onHeaderContextMenu"),k(this,"onHeaderMouseEnter"),k(this,"onHeaderMouseLeave"),k(this,"onHeaderRowCellRendered"),k(this,"onHeaderRowMouseEnter"),k(this,"onHeaderRowMouseLeave"),k(this,"onPreHeaderContextMenu"),k(this,"onPreHeaderClick"),k(this,"onKeyDown"),k(this,"onMouseEnter"),k(this,"onMouseLeave"),k(this,"onRendered"),k(this,"onScroll"),k(this,"onSelectedRowsChanged"),k(this,"onSetOptions"),k(this,"onActivateChangedOptions"),k(this,"onSort"),k(this,"onValidationError"),k(this,"onViewportChanged"),k(this,"scrollbarDimensions"),k(this,"maxSupportedCssHeight"),k(this,"canvas",null),k(this,"canvas_context",null),k(this,"_options"),k(this,"_defaults",{alwaysShowVerticalScroll:!1,alwaysAllowHorizontalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableHtmlRendering:!0,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,autoEditNewRow:!0,autoCommitEdit:!1,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,unorderableColumnCssClass:"unorderable",asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,auto:!1,nonce:"",editorLock:TB,showColumnHeader:!0,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,createTopHeaderPanel:!1,showPreHeaderPanel:!1,showTopHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,preHeaderPanelWidth:"auto",topHeaderPanelHeight:25,topHeaderPanelWidth:"auto",formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",rowHighlightCssClass:"highlight-animate",rowHighlightDuration:400,selectedCellCssClass:"selected",multiSelect:!0,enableCellRowSpan:!1,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,frozenBottom:!1,frozenColumn:-1,frozenRow:-1,frozenRightViewportMinWidth:100,throwWhenFrozenNotAllViewable:!1,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter:this.defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,preventDragFromKeys:["ctrlKey","metaKey"],showCellSelection:!0,viewportClass:void 0,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1,enableMouseWheelScrollHandler:!0,doPaging:!0,autosizeColsMode:kn.LegacyOff,autosizeColPaddingPx:4,rowTopOffsetRenderType:"top",scrollRenderThrottling:10,autosizeTextAvgToMWidthRatio:.75,viewportSwitchToScrollModeWidthPercent:void 0,viewportMinWidthPx:void 0,viewportMaxWidthPx:void 0,suppressCssChangesOnHiddenInit:!1,ffMaxSupportedCssHeight:6e6,maxSupportedCssHeight:1e9,maxPartialRowSpanRemap:5e3,sanitizer:void 0,logSanitizedHtml:!1,mixinDefaults:!0,shadowRoot:void 0}),k(this,"_columnDefaults",{name:"",headerCssClass:null,defaultSortAsc:!0,focusable:!0,hidden:!1,minWidth:30,maxWidth:void 0,rerenderOnResize:!1,reorderable:!0,resizable:!0,sortable:!1,selectable:!0}),k(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:gr.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:gs.FirstNRows,rowSelectionCount:100,valueFilterMode:Nr.None,widthEvalMode:Wd.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),k(this,"_columnResizeTimer"),k(this,"_executionBlockTimer"),k(this,"_flashCellTimer"),k(this,"_highlightRowTimer"),k(this,"th"),k(this,"h"),k(this,"ph"),k(this,"n"),k(this,"cj"),k(this,"page",0),k(this,"offset",0),k(this,"vScrollDir",1),k(this,"_bindingEventService",new RB),k(this,"initialized",!1),k(this,"_container"),k(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),k(this,"_focusSink"),k(this,"_focusSink2"),k(this,"_groupHeaders",[]),k(this,"_headerScroller",[]),k(this,"_headers",[]),k(this,"_headerRows"),k(this,"_headerRowScroller"),k(this,"_headerRowSpacerL"),k(this,"_headerRowSpacerR"),k(this,"_footerRow"),k(this,"_footerRowScroller"),k(this,"_footerRowSpacerL"),k(this,"_footerRowSpacerR"),k(this,"_preHeaderPanel"),k(this,"_preHeaderPanelScroller"),k(this,"_preHeaderPanelSpacer"),k(this,"_preHeaderPanelR"),k(this,"_preHeaderPanelScrollerR"),k(this,"_preHeaderPanelSpacerR"),k(this,"_topHeaderPanel"),k(this,"_topHeaderPanelScroller"),k(this,"_topHeaderPanelSpacer"),k(this,"_topPanelScrollers"),k(this,"_topPanels"),k(this,"_viewport"),k(this,"_canvas"),k(this,"_style"),k(this,"_boundAncestors",[]),k(this,"stylesheet"),k(this,"columnCssRulesL"),k(this,"columnCssRulesR"),k(this,"viewportH",0),k(this,"viewportW",0),k(this,"canvasWidth",0),k(this,"canvasWidthL",0),k(this,"canvasWidthR",0),k(this,"headersWidth",0),k(this,"headersWidthL",0),k(this,"headersWidthR",0),k(this,"viewportHasHScroll",!1),k(this,"viewportHasVScroll",!1),k(this,"headerColumnWidthDiff",0),k(this,"headerColumnHeightDiff",0),k(this,"cellWidthDiff",0),k(this,"cellHeightDiff",0),k(this,"absoluteColumnMinWidth"),k(this,"hasFrozenRows",!1),k(this,"frozenRowsHeight",0),k(this,"actualFrozenRow",-1),k(this,"paneTopH",0),k(this,"paneBottomH",0),k(this,"viewportTopH",0),k(this,"viewportBottomH",0),k(this,"topPanelH",0),k(this,"headerRowH",0),k(this,"footerRowH",0),k(this,"tabbingDirection",1),k(this,"_activeCanvasNode"),k(this,"_activeViewportNode"),k(this,"activePosX"),k(this,"activePosY"),k(this,"activeRow"),k(this,"activeCell"),k(this,"activeCellNode",null),k(this,"currentEditor",null),k(this,"serializedEditorValue"),k(this,"editController"),k(this,"_prevDataLength",0),k(this,"_prevInvalidatedRowsCount",0),k(this,"_rowSpanIsCached",!1),k(this,"_colsWithRowSpanCache",{}),k(this,"rowsCache",{}),k(this,"renderedRows",0),k(this,"numVisibleRows",0),k(this,"prevScrollTop",0),k(this,"scrollHeight",0),k(this,"scrollTop",0),k(this,"lastRenderedScrollTop",0),k(this,"lastRenderedScrollLeft",0),k(this,"prevScrollLeft",0),k(this,"scrollLeft",0),k(this,"selectionModel"),k(this,"selectedRows",[]),k(this,"plugins",[]),k(this,"cellCssClasses",{}),k(this,"columnsById",{}),k(this,"sortColumns",[]),k(this,"columnPosLeft",[]),k(this,"columnPosRight",[]),k(this,"pagingActive",!1),k(this,"pagingIsLastPage",!1),k(this,"scrollThrottle"),k(this,"h_editorLoader"),k(this,"h_postrender"),k(this,"h_postrenderCleanup"),k(this,"postProcessedRows",{}),k(this,"postProcessToRow",null),k(this,"postProcessFromRow",null),k(this,"postProcessedCleanupQueue",[]),k(this,"postProcessgroupId",0),k(this,"counter_rows_rendered",0),k(this,"counter_rows_removed",0),k(this,"_paneHeaderL"),k(this,"_paneHeaderR"),k(this,"_paneTopL"),k(this,"_paneTopR"),k(this,"_paneBottomL"),k(this,"_paneBottomR"),k(this,"_headerScrollerL"),k(this,"_headerScrollerR"),k(this,"_headerL"),k(this,"_headerR"),k(this,"_groupHeadersL"),k(this,"_groupHeadersR"),k(this,"_headerRowScrollerL"),k(this,"_headerRowScrollerR"),k(this,"_footerRowScrollerL"),k(this,"_footerRowScrollerR"),k(this,"_headerRowL"),k(this,"_headerRowR"),k(this,"_footerRowL"),k(this,"_footerRowR"),k(this,"_topPanelScrollerL"),k(this,"_topPanelScrollerR"),k(this,"_topPanelL"),k(this,"_topPanelR"),k(this,"_viewportTopL"),k(this,"_viewportTopR"),k(this,"_viewportBottomL"),k(this,"_viewportBottomR"),k(this,"_canvasTopL"),k(this,"_canvasTopR"),k(this,"_canvasBottomL"),k(this,"_canvasBottomR"),k(this,"_viewportScrollContainerX"),k(this,"_viewportScrollContainerY"),k(this,"_headerScrollContainer"),k(this,"_headerRowScrollContainer"),k(this,"_footerRowScrollContainer"),k(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),k(this,"_hiddenParents",[]),k(this,"oldProps",[]),k(this,"enforceFrozenRowHeightRecalc",!1),k(this,"columnResizeDragging",!1),k(this,"slickDraggableInstance",null),k(this,"slickMouseWheelInstances",[]),k(this,"slickResizableInstances",[]),k(this,"sortableSideLeftInstance"),k(this,"sortableSideRightInstance"),k(this,"logMessageCount",0),k(this,"logMessageMaxCount",30),k(this,"_pubSubService"),this._container=typeof this.container=="string"?document.querySelector(this.container):this.container,!this._container)throw new Error(`SlickGrid requires a valid container, ${this.container} does not exist in the DOM.`);this._pubSubService=r,this.onActiveCellChanged=new Le("onActiveCellChanged",r),this.onActiveCellPositionChanged=new Le("onActiveCellPositionChanged",r),this.onAddNewRow=new Le("onAddNewRow",r),this.onAfterSetColumns=new Le("onAfterSetColumns",r),this.onAutosizeColumns=new Le("onAutosizeColumns",r),this.onBeforeAppendCell=new Le("onBeforeAppendCell",r),this.onBeforeCellEditorDestroy=new Le("onBeforeCellEditorDestroy",r),this.onBeforeColumnsResize=new Le("onBeforeColumnsResize",r),this.onBeforeDestroy=new Le("onBeforeDestroy",r),this.onBeforeEditCell=new Le("onBeforeEditCell",r),this.onBeforeFooterRowCellDestroy=new Le("onBeforeFooterRowCellDestroy",r),this.onBeforeHeaderCellDestroy=new Le("onBeforeHeaderCellDestroy",r),this.onBeforeHeaderRowCellDestroy=new Le("onBeforeHeaderRowCellDestroy",r),this.onBeforeRemoveCachedRow=new Le("onRowRemovedFromCache",r),this.onBeforeSetColumns=new Le("onBeforeSetColumns",r),this.onBeforeSort=new Le("onBeforeSort",r),this.onBeforeUpdateColumns=new Le("onBeforeUpdateColumns",r),this.onCellChange=new Le("onCellChange",r),this.onCellCssStylesChanged=new Le("onCellCssStylesChanged",r),this.onClick=new Le("onClick",r),this.onColumnsReordered=new Le("onColumnsReordered",r),this.onColumnsDrag=new Le("onColumnsDrag",r),this.onColumnsResized=new Le("onColumnsResized",r),this.onColumnsResizeDblClick=new Le("onColumnsResizeDblClick",r),this.onCompositeEditorChange=new Le("onCompositeEditorChange",r),this.onContextMenu=new Le("onContextMenu",r),this.onDrag=new Le("onDrag",r),this.onDblClick=new Le("onDblClick",r),this.onDragInit=new Le("onDragInit",r),this.onDragStart=new Le("onDragStart",r),this.onDragEnd=new Le("onDragEnd",r),this.onFooterClick=new Le("onFooterClick",r),this.onFooterContextMenu=new Le("onFooterContextMenu",r),this.onFooterRowCellRendered=new Le("onFooterRowCellRendered",r),this.onHeaderCellRendered=new Le("onHeaderCellRendered",r),this.onHeaderClick=new Le("onHeaderClick",r),this.onHeaderContextMenu=new Le("onHeaderContextMenu",r),this.onHeaderMouseEnter=new Le("onHeaderMouseEnter",r),this.onHeaderMouseLeave=new Le("onHeaderMouseLeave",r),this.onHeaderRowCellRendered=new Le("onHeaderRowCellRendered",r),this.onHeaderRowMouseEnter=new Le("onHeaderRowMouseEnter",r),this.onHeaderRowMouseLeave=new Le("onHeaderRowMouseLeave",r),this.onPreHeaderClick=new Le("onPreHeaderClick",r),this.onPreHeaderContextMenu=new Le("onPreHeaderContextMenu",r),this.onKeyDown=new Le("onKeyDown",r),this.onMouseEnter=new Le("onMouseEnter",r),this.onMouseLeave=new Le("onMouseLeave",r),this.onRendered=new Le("onRendered",r),this.onScroll=new Le("onScroll",r),this.onSelectedRowsChanged=new Le("onSelectedRowsChanged",r),this.onSetOptions=new Le("onSetOptions",r),this.onActivateChangedOptions=new Le("onActivateChangedOptions",r),this.onSort=new Le("onSort",r),this.onValidationError=new Le("onValidationError",r),this.onViewportChanged=new Le("onViewportChanged",r),this.initialize(o)}init(){this.finishInitialization()}initialize(e){if(e?.mixinDefaults?(this._options||(this._options=e),V.applyDefaults(this._options,this._defaults)):this._options=V.extend(!0,{},this._defaults,e),this.scrollThrottle=this.actionThrottle(this.render.bind(this),this._options.scrollRenderThrottling),this.maxSupportedCssHeight=this.maxSupportedCssHeight||this.getMaxSupportedCssHeight(),this.validateAndEnforceOptions(),this._columnDefaults.width=this._options.defaultColumnWidth,this._options.suppressCssChangesOnHiddenInit||this.cacheCssForHiddenInit(),this.updateColumnProps(),this._options.enableColumnReorder&&(!Sortable||!Sortable.create))throw new Error("SlickGrid requires Sortable.js module to be loaded");this.editController={commitCurrentEdit:this.commitCurrentEdit.bind(this),cancelCurrentEdit:this.cancelCurrentEdit.bind(this)},V.emptyElement(this._container),this._container.style.outline=String(0),this._container.classList.add(this.uid),this._container.classList.add("ui-widget"),this._container.setAttribute("role","grid");let t=window.getComputedStyle(this._container);/relative|absolute|fixed/.test(t.position)||(this._container.style.position="relative"),this._focusSink=V.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=V.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=V.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||V.hide(this._topHeaderPanelScroller)),this._paneHeaderL=V.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=V.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=V.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=V.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=V.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=V.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=V.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderL),this._preHeaderPanelScroller.appendChild(document.createElement("div")),this._preHeaderPanel=V.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=V.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=V.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(V.hide(this._preHeaderPanelScroller),V.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=V.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=V.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-right"},this._paneHeaderR),this._headerScroller.push(this._headerScrollerL),this._headerScroller.push(this._headerScrollerR),this._headerL=V.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=V.createDomElement("div",{className:"slick-header-columns slick-header-columns-right",role:"row",style:{left:"-1000px"}},this._headerScrollerR),this._headers=[this._headerL,this._headerR],this._headerRowScrollerL=V.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=V.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=V.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=V.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=V.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=V.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=V.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=V.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(o=>{V.hide(o)}),this._options.showTopPanel||this._topPanelScrollers.forEach(o=>{V.hide(o)}),this._options.showHeaderRow||this._headerRowScroller.forEach(o=>{V.hide(o)}),this._viewportTopL=V.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=V.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=V.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=V.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-right",tabIndex:0},this._paneBottomR),this._viewport=[this._viewportTopL,this._viewportTopR,this._viewportBottomL,this._viewportBottomR],this._options.viewportClass&&this._viewport.forEach(o=>{o.classList.add(...V.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=V.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=V.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=V.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=V.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-right",tabIndex:0},this._viewportBottomR),this._canvas=[this._canvasTopL,this._canvasTopR,this._canvasBottomL,this._canvasBottomR],this.scrollbarDimensions=this.scrollbarDimensions||this.measureScrollbar();let n=this.getCanvasWidth()+this.scrollbarDimensions.width;this._activeCanvasNode=this._canvasTopL,this._topHeaderPanelSpacer&&V.width(this._topHeaderPanelSpacer,n),this._preHeaderPanelSpacer&&V.width(this._preHeaderPanelSpacer,n),this._headers.forEach(o=>{V.width(o,this.getHeadersWidth())}),V.width(this._headerRowSpacerL,n),V.width(this._headerRowSpacerR,n),this._options.createFooterRow&&(this._footerRowScrollerR=V.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=V.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),V.width(this._footerRowSpacerL,n),this._footerRowSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),V.width(this._footerRowSpacerR,n),this._footerRowL=V.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=V.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-right"},this._footerRowScrollerR),this._footerRow=[this._footerRowL,this._footerRowR],this._options.showFooterRow||this._footerRowScroller.forEach(o=>{V.hide(o)})),this._focusSink2=this._focusSink.cloneNode(!0),this._container.appendChild(this._focusSink2),this._options.explicitInitialization||this.finishInitialization()}finishInitialization(){this.initialized||(this.initialized=!0,this.getViewportWidth(),this.getViewportHeight(),this.measureCellPaddingAndBorder(),this.disableSelection(this._headers),this._options.enableTextSelectionOnCells||this._viewport.forEach(e=>{this._bindingEventService.bind(e,"selectstart",t=>{t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement})}),this.setFrozenOptions(),this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setScroller(),this.setOverflow(),this.updateColumnCaches(),this.createColumnHeaders(),this.createColumnFooter(),this.setupColumnSort(),this.createCssRules(),this.resizeCanvas(),this.bindAncestorScrollEvents(),this._bindingEventService.bind(this._container,"resize",this.resizeCanvas.bind(this)),this._viewport.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleScroll.bind(this))}),this._options.enableMouseWheelScrollHandler&&this._viewport.forEach(e=>{this.slickMouseWheelInstances.push(qm({element:e,onMouseWheel:this.handleMouseWheel.bind(this)}))}),this._headerScroller.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleHeaderContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleHeaderClick.bind(this))}),this._headerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleHeaderRowScroll.bind(this))}),this._options.createFooterRow&&(this._footerRow.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleFooterContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleFooterClick.bind(this))}),this._footerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleFooterRowScroll.bind(this))})),this._options.createTopHeaderPanel&&this._bindingEventService.bind(this._topHeaderPanelScroller,"scroll",this.handleTopHeaderPanelScroll.bind(this)),this._options.createPreHeaderPanel&&(this._bindingEventService.bind(this._preHeaderPanelScroller,"scroll",this.handlePreHeaderPanelScroll.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"click",this.handlePreHeaderClick.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"click",this.handlePreHeaderClick.bind(this))),this._bindingEventService.bind(this._focusSink,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(this._focusSink2,"keydown",this.handleKeyDown.bind(this)),this._canvas.forEach(e=>{this._bindingEventService.bind(e,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(e,"click",this.handleClick.bind(this)),this._bindingEventService.bind(e,"dblclick",this.handleDblClick.bind(this)),this._bindingEventService.bind(e,"contextmenu",this.handleContextMenu.bind(this)),this._bindingEventService.bind(e,"mouseover",this.handleCellMouseOver.bind(this)),this._bindingEventService.bind(e,"mouseout",this.handleCellMouseOut.bind(this))}),Um&&(this.slickDraggableInstance=Um({containerElement:this._container,allowDragFrom:"div.slick-cell",allowDragFromClosest:"div.slick-cell.dnd, div.slick-cell.cell-reorder",preventDragFromKeys:this._options.preventDragFromKeys,onDragInit:this.handleDragInit.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})),this._options.suppressCssChangesOnHiddenInit||this.restoreCssFromHiddenInit())}cacheCssForHiddenInit(){this._hiddenParents=V.parents(this._container,":hidden"),this.oldProps=[],this._hiddenParents.forEach(e=>{let t={};Object.keys(this.cssShow).forEach(n=>{this.cssShow&&(t[n]=e.style[n],e.style[n]=this.cssShow[n])}),this.oldProps.push(t)})}restoreCssFromHiddenInit(){let e=0;this._hiddenParents&&(this._hiddenParents.forEach(t=>{let n=this.oldProps[e++];Object.keys(this.cssShow).forEach(o=>{this.cssShow&&(t.style[o]=n[o])})}),this._hiddenParents=[])}registerPlugin(e){this.plugins.unshift(e),e.init(this)}unregisterPlugin(e){for(let t=this.plugins.length;t>=0;t--)if(this.plugins[t]===e){this.plugins[t]?.destroy(),this.plugins.splice(t,1);break}}destroy(e){this._bindingEventService.unbindAll(),this.slickDraggableInstance=this.destroyAllInstances(this.slickDraggableInstance),this.slickMouseWheelInstances=this.destroyAllInstances(this.slickMouseWheelInstances),this.slickResizableInstances=this.destroyAllInstances(this.slickResizableInstances),this.getEditorLock()?.cancelCurrentEdit(),this.trigger(this.onBeforeDestroy,{});let t=this.plugins.length;for(;t--;)this.unregisterPlugin(this.plugins[t]);this._options.enableColumnReorder&&typeof this.sortableSideLeftInstance?.destroy=="function"&&(this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy()),this.unbindAncestorScrollEvents(),this._bindingEventService.unbindByEventName(this._container,"resize"),this.removeCssRules(),this._canvas.forEach(r=>{this._bindingEventService.unbindByEventName(r,"keydown"),this._bindingEventService.unbindByEventName(r,"click"),this._bindingEventService.unbindByEventName(r,"dblclick"),this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"mouseover"),this._bindingEventService.unbindByEventName(r,"mouseout")}),this._viewport.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._headerScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._headerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._footerRow&&this._footerRow.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._footerRowScroller&&this._footerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._preHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._preHeaderPanelScroller,"scroll"),this._topHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._topHeaderPanelScroller,"scroll"),this._bindingEventService.unbindByEventName(this._focusSink,"keydown"),this._bindingEventService.unbindByEventName(this._focusSink2,"keydown");let n=this._container.querySelectorAll(".slick-resizable-handle");[].forEach.call(n,r=>{this._bindingEventService.unbindByEventName(r,"dblclick")});let o=this._container.querySelectorAll(".slick-header-column");[].forEach.call(o,r=>{this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave"),this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave")}),V.emptyElement(this._container),this._container.classList.remove(this.uid),this.clearAllTimers(),e&&this.destroyAllElements()}destroyAllInstances(e){if(e){let t=Array.isArray(e)?e:[e],n;for(;V.isDefined(n=t.pop());)n&&typeof n.destroy=="function"&&n.destroy()}return e=Array.isArray(e)?[]:null,e}destroyAllElements(){this._activeCanvasNode=null,this._activeViewportNode=null,this._boundAncestors=null,this._canvas=null,this._canvasTopL=null,this._canvasTopR=null,this._canvasBottomL=null,this._canvasBottomR=null,this._container=null,this._focusSink=null,this._focusSink2=null,this._groupHeaders=null,this._groupHeadersL=null,this._groupHeadersR=null,this._headerL=null,this._headerR=null,this._headers=null,this._headerRows=null,this._headerRowL=null,this._headerRowR=null,this._headerRowSpacerL=null,this._headerRowSpacerR=null,this._headerRowScrollContainer=null,this._headerRowScroller=null,this._headerRowScrollerL=null,this._headerRowScrollerR=null,this._headerScrollContainer=null,this._headerScroller=null,this._headerScrollerL=null,this._headerScrollerR=null,this._hiddenParents=null,this._footerRow=null,this._footerRowL=null,this._footerRowR=null,this._footerRowSpacerL=null,this._footerRowSpacerR=null,this._footerRowScroller=null,this._footerRowScrollerL=null,this._footerRowScrollerR=null,this._footerRowScrollContainer=null,this._preHeaderPanel=null,this._preHeaderPanelR=null,this._preHeaderPanelScroller=null,this._preHeaderPanelScrollerR=null,this._preHeaderPanelSpacer=null,this._preHeaderPanelSpacerR=null,this._topPanels=null,this._topPanelScrollers=null,this._style=null,this._topPanelScrollerL=null,this._topPanelScrollerR=null,this._topPanelL=null,this._topPanelR=null,this._paneHeaderL=null,this._paneHeaderR=null,this._paneTopL=null,this._paneTopR=null,this._paneBottomL=null,this._paneBottomR=null,this._viewport=null,this._viewportTopL=null,this._viewportTopR=null,this._viewportBottomL=null,this._viewportBottomR=null,this._viewportScrollContainerX=null,this._viewportScrollContainerY=null}getOptions(){return this._options}setOptions(e,t,n,o){this.prepareForOptionsChange(),this._options.enableAddRow!==e.enableAddRow&&this.invalidateRow(this.getDataLength()),e.frozenColumn!==void 0&&e.frozenColumn>=0&&(this.getViewports().forEach(i=>i.scrollLeft=0),this.handleScroll());let r=V.extend(!0,{},this._options);this._options=V.extend(this._options,e),this.trigger(this.onSetOptions,{optionsBefore:r,optionsAfter:this._options}),this.internal_setOptions(t,n,o)}activateChangedOptions(e,t,n){this.prepareForOptionsChange(),this.invalidateRow(this.getDataLength()),this.trigger(this.onActivateChangedOptions,{options:this._options}),this.internal_setOptions(e,t,n)}prepareForOptionsChange(){this.getEditorLock().commitCurrentEdit()&&this.makeActiveCellNormal()}internal_setOptions(e,t,n){this._options.showColumnHeader!==void 0&&this.setColumnHeaderVisibility(this._options.showColumnHeader),this.validateAndEnforceOptions(),this.setFrozenOptions(),this._options.frozenBottom!==void 0&&(this.enforceFrozenRowHeightRecalc=!0),this._viewport.forEach(o=>{o.style.overflowY=this._options.autoHeight?"hidden":"auto"}),e||this.render(),this.setScroller(),n||this.setOverflow(),t||this.setColumns(this.columns),this._options.enableMouseWheelScrollHandler&&this._viewport&&(!this.slickMouseWheelInstances||this.slickMouseWheelInstances.length===0)?this._viewport.forEach(o=>{this.slickMouseWheelInstances.push(qm({element:o,onMouseWheel:this.handleMouseWheel.bind(this)}))}):this._options.enableMouseWheelScrollHandler===!1&&this.destroyAllInstances(this.slickMouseWheelInstances)}validateAndEnforceOptions(){this._options.autoHeight&&(this._options.leaveSpaceForNewRows=!1),this._options.forceFitColumns&&(this._options.autosizeColsMode=kn.LegacyForceFit)}setSelectionModel(e){this.selectionModel&&(this.selectionModel.onSelectedRangesChanged.unsubscribe(this.handleSelectedRangesChanged.bind(this)),this.selectionModel.destroy&&this.selectionModel.destroy()),this.selectionModel=e,this.selectionModel&&(this.selectionModel.init(this),this.selectionModel.onSelectedRangesChanged.subscribe(this.handleSelectedRangesChanged.bind(this)))}getSelectionModel(){return this.selectionModel}setPaneFrozenClasses(){let e=this.hasFrozenColumns()?"add":"remove";for(let t of[this._paneHeaderL,this._paneTopL,this._paneBottomL])t.classList[e]("frozen")}hasFrozenColumns(){return this._options.frozenColumn>-1}updateColumnHeader(e,t,n){if(this.initialized){let o=this.getColumnIndex(e);if(!V.isDefined(o))return;let r=this.columns[o],i=this.getColumnByIndex(o);i&&(t!==void 0&&(this.columns[o].name=t),n!==void 0&&(this.columns[o].toolTip=n),this.trigger(this.onBeforeHeaderCellDestroy,{node:i,column:r,grid:this}),i.setAttribute("title",n||""),t!==void 0&&this.applyHtmlCode(i.children[0],t),this.trigger(this.onHeaderCellRendered,{node:i,column:r,grid:this}))}}getHeader(e){if(!e)return this.hasFrozenColumns()?this._headers:this._headerL;let t=this.getColumnIndex(e.id);return this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL}getHeaderColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n=this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?t<=this._options.frozenColumn?t:t-this._options.frozenColumn-1:t;return n.children[o]}getHeaderRow(){return this.hasFrozenColumns()?this._headerRows:this._headerRows[0]}getFooterRow(){return this.hasFrozenColumns()?this._footerRow:this._footerRow[0]}getHeaderRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._headerRowL:(n=this._headerRowR,t-=this._options.frozenColumn+1):n=this._headerRowL,n.children[t]}getFooterRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._footerRowL:(n=this._footerRowR,t-=this._options.frozenColumn+1):n=this._footerRowL,n.children[t]}createColumnFooter(){if(this._options.createFooterRow){this._footerRow.forEach(e=>{e.querySelectorAll(".slick-footerrow-column").forEach(t=>{let n=V.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:n,grid:this})})}),V.emptyElement(this._footerRowL),V.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let n=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},this.hasFrozenColumns()&&e>this._options.frozenColumn?this._footerRowR:this._footerRowL),o=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;o&&n.classList.add(o),V.storage.put(n,"column",t),this.trigger(this.onFooterRowCellRendered,{node:n,column:t,grid:this})}}}setupColumnSort(){this._headers.forEach(e=>{this._bindingEventService.bind(e,"click",t=>{if(this.columnResizeDragging||t.target.classList.contains("slick-resizable-handle"))return;let n=t.target.closest(".slick-header-column");if(!n)return;let o=V.storage.get(n,"column");if(o.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let r=this.sortColumns.slice(),i=null,a=0;for(;a<this.sortColumns.length;a++)if(this.sortColumns[a].columnId===o.id){i=this.sortColumns[a],i.sortAsc=!i.sortAsc;break}let l=!!i;this._options.tristateMultiColumnSort?(i||(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o}),l&&i.sortAsc&&(this.sortColumns.splice(a,1),i=null),this._options.multiColumnSort||(this.sortColumns=[]),i&&(!l||!this._options.multiColumnSort)&&this.sortColumns.push(i)):t.metaKey&&this._options.multiColumnSort?i&&this.sortColumns.splice(a,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),i?this.sortColumns.length===0&&this.sortColumns.push(i):(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o},this.sortColumns.push(i)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:r,sortCols:this.sortColumns.map(u=>{let f=this.columns[this.getColumnIndex(u.columnId)];return!f||f.hidden?null:{columnId:f.id,sortCol:f,sortAsc:u.sortAsc}}).filter(u=>u)}:d={multiColumnSort:!1,previousSortColumns:r,columnId:this.sortColumns.length>0?o.id:null,sortCol:this.sortColumns.length>0?o:null,sortAsc:this.sortColumns.length>0?this.sortColumns[0].sortAsc:!0},this.trigger(this.onBeforeSort,d,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,d,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let n=V.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:n,grid:this})})}),V.emptyElement(this._headerL),V.emptyElement(this._headerR),this.getHeadersWidth(),V.width(this._headerL,this.headersWidthL),V.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let n=V.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:n,grid:this})})}),V.emptyElement(this._headerRowL),V.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=V.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),V.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=V.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),V.emptyElement(this._footerRowR)));for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(t.hidden)continue;let n=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerRowL:this._headerRowR:this._headerRowL,r=V.createDomElement("div",{id:`${this.uid+t.id}`,dataset:{id:String(t.id)},role:"columnheader",className:"ui-state-default slick-state-default slick-header-column"},n);t.toolTip&&(r.title=t.toolTip),t.reorderable||r.classList.add(this._options.unorderableColumnCssClass);let i=V.createDomElement("span",{className:"slick-column-name"},r);this.applyHtmlCode(i,t.name),V.width(r,t.width-this.headerColumnWidthDiff);let a=t.headerCssClass||null;if(a&&r.classList.add(...V.classNameToList(a)),a=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null,a&&r.classList.add(a),this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseEnter.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseLeave.bind(this)),V.storage.put(r,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(l=>{t.headerCellAttrs.hasOwnProperty(l)&&r.setAttribute(l,t.headerCellAttrs[l])}),t.sortable&&(r.classList.add("slick-header-sortable"),V.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},r),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&V.createDomElement("div",{className:"slick-sort-indicator-numbered"},r)),this.trigger(this.onHeaderCellRendered,{node:r,column:t,grid:this}),this._options.showHeaderRow){let l=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},o),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&l.classList.add(d),this._bindingEventService.bind(l,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(l,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),V.storage.put(l,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:l,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let l=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},l);V.storage.put(d,"column",t),this.trigger(this.onFooterRowCellRendered,{node:d,column:t,grid:this})}}this.setSortColumns(this.sortColumns),this.setupColumnResize(),this._options.enableColumnReorder&&(typeof this._options.enableColumnReorder=="function"?this._options.enableColumnReorder(this,this._headers,this.headerColumnWidthDiff,this.setColumns,this.setupColumnResize,this.columns,this.getColumnIndex,this.uid,this.trigger):this.setupColumnReorder())}setupColumnReorder(){this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy();let e=null,t=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft+10,n=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,o=!1,r={animation:50,direction:"horizontal",chosenClass:"slick-header-column-active",ghostClass:"slick-sortable-placeholder",draggable:".slick-header-column",dragoverBubble:!1,revertClone:!0,scroll:!this.hasFrozenColumns(),filter:`.${this._options.unorderableColumnCssClass}`,onMove:i=>!i.related.classList.contains(this._options.unorderableColumnCssClass),onStart:i=>{i.item.classList.add("slick-header-column-active"),o=!this.hasFrozenColumns()||V.offset(i.item).left>V.offset(this._viewportScrollContainerX).left,o&&i.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):o&&i.originalEvent.pageX<V.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(n,100)):(window.clearInterval(e),e=null)},onEnd:i=>{if(i.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let a=this.sortableSideLeftInstance?.toArray()??[];a=a.concat(this.sortableSideRightInstance?.toArray()??[]);let l=[];for(let d=0;d<a.length;d++)l.push(this.columns[this.getColumnIndex(a[d])]);this.setColumns(l),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),i.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,r),this.sortableSideRightInstance=Sortable.create(this._headerR,r)}getHeaderChildren(){let e=Array.from(this._headers[0].children),t=Array.from(this._headers[1].children);return e.concat(t)}handleResizeableDoubleClick(e){let t=e.target.parentElement.id.replace(this.uid,"");this.trigger(this.onColumnsResizeDblClick,{triggeredByColumn:t})}setupColumnResize(){if(typeof Gm>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,l=-1,d=0,u=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<u.length;p++)u[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),l=p);if(a!==void 0)for(let p=0;p<u.length;p++){let y=u[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=l)continue;let w=V.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(w,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(Gm({resizeableElement:y,resizeableHandleElement:w,onResizeStart:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,d=0,m.resizeableElement.classList.add("slick-header-column-active");let P=null,D=null;for(let C=0;C<u.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=u[C].offsetWidth);if(this._options.forceFitColumns)for(P=0,D=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(D!==null&&(n.maxWidth?D+=n.maxWidth-(n.previousWidth||0):D=null),P+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));let x=0,S=0;for(e=0;e<=p;e++)n=f[e],n?.resizable&&(S!==null&&(n.maxWidth?S+=n.maxWidth-(n.previousWidth||0):S=null),x+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));P===null&&(P=1e5),x===null&&(x=1e5),D===null&&(D=1e5),S===null&&(S=1e5),i=o+Math.min(P,S),r=o-Math.min(x,D)},onResize:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;this.columnResizeDragging=!0;let P,D=Math.min(i,Math.max(r,v.pageX))-o,x,S=0,C=0,O=this.getViewportInnerWidth();if(D<0){for(x=D,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(P=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<P?(x+=(n.previousWidth||0)-P,n.width=P):(n.width=(n.previousWidth||0)+x,x=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-D,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-D,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0))}else{for(x=D,S=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x)x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let A=(n.previousWidth||0)+x,F=this.canvasWidthL+x;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(A>d&&F<O-this._options.frozenRightViewportMinWidth&&(d=A),n.width=F+this._options.frozenRightViewportMinWidth>O?d:A):n.width=A,x=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-D,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(P=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<P?(x+=(n.previousWidth||0)-P,n.width=P):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0)}this.hasFrozenColumns()&&S!==this.canvasWidthL&&(V.width(this._headerL,S+1e3),V.setStyleSize(this._paneHeaderR,"left",S)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:m.resizeableElement,resizeHandle:m.resizeableHandleElement})},onResizeEnd:(b,m)=>{m.resizeableElement.classList.remove("slick-header-column-active");let v=m.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:v}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let P;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(P=u[e].offsetWidth,n.previousWidth!==P&&n.rerenderOnResize&&this.invalidateAllRows());this.updateCanvasWidth(!0),this.render(),this.trigger(this.onColumnsResized,{triggeredByColumn:v}),window.clearTimeout(this._columnResizeTimer),this._columnResizeTimer=window.setTimeout(()=>{this.columnResizeDragging=!1},300)}}))}}setFrozenOptions(){if(this._options.frozenColumn=this._options.frozenColumn>=0&&this._options.frozenColumn<this.columns.length?parseInt(this._options.frozenColumn,10):-1,this._options.frozenRow>-1){this.hasFrozenRows=!0,this.frozenRowsHeight=this._options.frozenRow*this._options.rowHeight;let e=this.getDataLength();this.actualFrozenRow=this._options.frozenBottom?e-this._options.frozenRow:this._options.frozenRow}else this.hasFrozenRows=!1}autosizeColumn(e,t){let n=null,o=-1;if(typeof e=="number")n=this.columns[e],o=e;else if(typeof e=="string")for(let i=0;i<this.columns.length;i++)this.columns[i].id===e&&(n=this.columns[i],o=i);if(!n)return;let r=this.getCanvasNode(0,0);this.getColAutosizeWidth(n,o,r,t||!1,o)}treatAsLocked(e={}){return!e.ignoreHeaderText&&!e.sizeToRemaining&&e.contentSizePx===e.headerWidthPx&&(e.widthPx??0)<100}autosizeColumns(e,t){let n=!this._hiddenParents?.length;n&&this.cacheCssForHiddenInit(),this.internalAutosizeColumns(e,t),n&&this.restoreCssFromHiddenInit()}internalAutosizeColumns(e,t){if(e=e||this._options.autosizeColsMode,e===kn.LegacyForceFit||e===kn.LegacyOff){this.legacyAutosizeColumns();return}if(e===kn.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let n=this.getCanvasNode(0,0),o=this.getViewportInnerWidth(),r,i,a,l=!1,d=0,u=0,f=0,p=0,y=0;for(r=0;r<this.columns.length;r++)i=this.columns[r],this.getColAutosizeWidth(i,r,n,t||!1,r),y+=i.autoSize?.autosizeMode===gr.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===gr.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,d+=i.autoSize?.widthPx||0,u+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let w=d-u;if(e===kn.FitViewportToCols){let b=d+(this.scrollbarDimensions?.width??0);e=kn.IgnoreViewport,this._options.viewportMaxWidthPx&&b>this._options.viewportMaxWidthPx?(b=this._options.viewportMaxWidthPx,e=kn.FitColsToViewport):this._options.viewportMinWidthPx&&b<this._options.viewportMinWidthPx&&(b=this._options.viewportMinWidthPx,e=kn.FitColsToViewport),V.width(this._container,b)}if(e===kn.FitColsToViewport)if(w>0&&u<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let b=o-u;i.autoSize?.sizeToRemaining?a=b*(i.autoSize?.widthPx||0)/w:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(l=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&u+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=kn.IgnoreViewport;else{let b=u-y,m=o-y-f;for(r=0;r<this.columns.length;r++)i=this.columns[r],!(!i||i.hidden)&&(a=i.width||0,i.autoSize?.autosizeMode!==gr.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=m/b*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),b-=i.autoSize?.widthPx||0,m-=a)),this.treatAsLocked(i.autoSize)&&(a=i.autoSize?.widthPx||0,a<(i.minWidth||0)&&(a=i.minWidth||0)),i.rerenderOnResize&&i.width!==a&&(l=!0),i.width=a)}if(e===kn.IgnoreViewport)for(r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(a=this.columns[r].autoSize?.widthPx||0,this.columns[r].rerenderOnResize&&this.columns[r].width!==a&&(l=!0),this.columns[r].width=a);this.reRenderColumns(l)}getColAutosizeWidth(e,t,n,o,r){let i=e.autoSize;if(i.widthPx=e.width,i.autosizeMode===gr.Locked||i.autosizeMode===gr.Guide)return;let a=this.getDataLength(),l=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(i.autosizeMode===gr.ContentIntelligent){let f=i.colDataTypeOf,p;if(a>0){let y=this.getDataItem(0);y&&(p=y[e.field],l.test(p)&&(p=Date.parse(p)),f=typeof p,f==="object"&&(p instanceof Date&&(f="date"),typeof moment<"u"&&p instanceof moment&&(f="moment")))}f==="boolean"&&(i.colValueArray=[!0,!1]),f==="number"&&(i.valueFilterMode=Nr.GetGreatestAndSub,i.rowSelectionMode=gs.AllRows),f==="string"&&(i.valueFilterMode=Nr.GetLongestText,i.rowSelectionMode=gs.AllRows,i.allowAddlPercent=5),f==="date"&&(i.colValueArray=[new Date(2009,8,30,12,20,20)]),f==="moment"&&typeof moment<"u"&&(i.colValueArray=[moment([2009,8,30,12,20,20])])}let d=i.contentSizePx=this.getColContentSize(e,t,n,o,r);d===0&&(d=i.widthPx||0);let u=i.allowAddlPercent?1+i.allowAddlPercent/100:1;d=d*u+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(i.autosizeMode===gr.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),i.widthPx=d}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,l,d,u=0,f=0;if(i.headerWidthPx=0,i.ignoreHeaderText||(i.headerWidthPx=this.getColHeaderWidth(e)),i.headerWidthPx===0&&(i.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),i.colValueArray)return f=this.getColWidth(e,n,i.colValueArray),Math.max(i.headerWidthPx,f);let p={};p.colIndex=t,p.rowCount=this.getDataLength(),p.startIndex=0,p.endIndex=p.rowCount-1,p.valueArr=null,p.getRowVal=w=>this.getDataItem(w)[e.field];let y=(o?i.rowSelectionModeOnInit:void 0)||i.rowSelectionMode;if(y===gs.FirstRow&&(p.endIndex=0),y===gs.LastRow&&(p.endIndex=p.startIndex=p.rowCount-1),y===gs.FirstNRows&&(p.endIndex=Math.min(i.rowSelectionCount||0,p.rowCount)-1),i.valueFilterMode===Nr.DeDuplicate){let w={};for(l=p.startIndex;l<=p.endIndex;l++)w[p.getRowVal(l)]=!0;if(Object.keys)p.valueArr=Object.keys(w);else{p.valueArr=[];for(let b in w)w&&p.valueArr.push(b)}p.startIndex=0,p.endIndex=p.length-1}if(i.valueFilterMode===Nr.GetGreatestAndSub){let w,b=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),Math.abs(d)>b&&(w=d,b=Math.abs(d));w=""+w,w=Array(w.length+1).join("9"),w=+w,p.valueArr=[w],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Nr.GetLongestTextAndSub){for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length);d=Array(u+1).join("m"),a=this._options.autosizeTextAvgToMWidthRatio||0,p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Nr.GetLongestText){u=0;let w=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length,w=l);d=p.getRowVal(w),p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}return p.maxLen&&p.maxLen>30&&r>1&&(i.sizeToRemaining=!0),f=this.getColWidth(e,n,p)*a,Math.max(i.headerWidthPx,f)}getColWidth(e,t,n){let o=V.createDomElement("div",{className:"slick-row ui-widget-content"},t),r=V.createDomElement("div",{className:"slick-cell"},o);r.style.position="absolute",r.style.visibility="hidden",r.style.textOverflow="initial",r.style.whiteSpace="nowrap";let i,a,l=0,d="",u,f,p=e.autoSize.widthEvalMode===Wd.TextOnly;if(e.autoSize?.widthEvalMode===Wd.Auto){let y=!e.formatterOverride&&!e.formatter,w=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;p=y||w}if(this.canvas_context&&p){let y=getComputedStyle(r);for(this.canvas_context.font=y.fontSize+" "+y.fontFamily,i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,a=u?this.canvas_context.measureText(u).width:0,a>l&&(l=a,d=u);return r.textContent=d,a=r.offsetWidth,o.remove(),a}for(i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,this.applyFormatResultToCellNode(u,r),a=r.offsetWidth,a>l&&(l=a);return o.remove(),l}getColHeaderWidth(e){let t=0,n=this.getUID()+e.id,o=document.getElementById(n),r=`${n}_`,i=o.cloneNode(!0);if(o)i.id=r,i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",o.parentNode.insertBefore(i,o),t=i.offsetWidth,i.parentNode.removeChild(i);else{let a=this.getHeader(e);o=V.createDomElement("div",{id:r,className:"ui-state-default slick-state-default slick-header-column"},a);let l=V.createDomElement("span",{className:"slick-column-name"},o);this.applyHtmlCode(l,e.name),i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&o.classList.add(...V.classNameToList(e.headerCssClass)),t=o.offsetWidth,a.removeChild(o)}return t}legacyAutosizeColumns(){let e,t,n=0,o=0,r=0,i=[],a=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){i.push(0);continue}i.push(t.width||0),o+=t.width||0,t.resizable&&(n+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(r=o;o>a&&n;){let d=(o-a)/n;for(e=0;e<this.columns.length&&o>a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e];if(!t.resizable||u<=t.minWidth||u<=this.absoluteColumnMinWidth)continue;let f=Math.max(t.minWidth,this.absoluteColumnMinWidth),p=Math.floor(d*(u-f))||1;p=Math.min(p,u-f),o-=p,n-=p,i[e]-=p}if(r<=o)break;r=o}for(r=o;o<a;){let d=a/o;for(e=0;e<this.columns.length&&o<a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e],f;!t.resizable||t.maxWidth<=u?f=0:f=Math.min(Math.floor(d*u)-u,t.maxWidth-u||1e6)||1,o+=f,i[e]+=o<=a?f:0}if(r>=o)break;r=o}let l=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==i[e]&&(l=!0),this.columns[e].width=i[e]);this.reRenderColumns(l)}reRenderColumns(e){this.applyColumnHeaderWidths(),this.updateCanvasWidth(!0),this.trigger(this.onAutosizeColumns,{columns:this.columns}),e&&(this.invalidateAllRows(),this.render())}getVisibleColumns(){return this.columns.filter(e=>!e.hidden)}getColumnIndex(e){return this.columnsById[e]}applyColumnHeaderWidths(){if(!this.initialized)return;let e=0,t=this.getVisibleColumns();this._headers.forEach(n=>{for(let o=0;o<n.children.length;o++,e++){let r=n.children[o],i=((t[e]||{}).width||0)-this.headerColumnWidthDiff;V.width(r)!==i&&V.width(r,i)}}),this.updateColumnCaches()}applyColumnWidths(){let e=0,t=0,n;for(let o=0;o<this.columns.length;o++)this.columns[o]?.hidden||(t=this.columns[o].width||0,n=this.getColumnCssRules(o),n.left.style.left=`${e}px`,n.right.style.right=(this._options.frozenColumn!==-1&&o>this._options.frozenColumn?this.canvasWidthR:this.canvasWidthL)-e-t+"px",this._options.frozenColumn!==o&&(e+=this.columns[o].width)),this._options.frozenColumn===o&&(e=0)}setSortColumn(e,t){this.setSortColumns([{columnId:e,sortAsc:t}])}getColumnByIndex(e){let t;return this._headers.every(n=>{let o=n.children.length;return e<o?(t=n.children[e],!1):(e-=o,!0)}),t}setSortColumns(e){this.sortColumns=e;let t=this._options.numberedMultiColumnSort&&this.sortColumns.length>1;this._headers.forEach(o=>{let r=o.querySelectorAll(".slick-header-column-sorted");r.forEach(i=>{i.classList.remove("slick-header-column-sorted")}),r=o.querySelectorAll(".slick-sort-indicator"),r.forEach(i=>{i.classList.remove("slick-sort-indicator-asc"),i.classList.remove("slick-sort-indicator-desc")}),r=o.querySelectorAll(".slick-sort-indicator-numbered"),r.forEach(i=>{i.textContent=""})});let n=1;this.sortColumns.forEach(o=>{V.isDefined(o.sortAsc)||(o.sortAsc=!0);let r=this.getColumnIndex(o.columnId);if(V.isDefined(r)){let i=this.getColumnByIndex(r);if(i){i.classList.add("slick-header-column-sorted");let a=i.querySelector(".slick-sort-indicator");a?.classList.add(o.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),t&&(a=i.querySelector(".slick-sort-indicator-numbered"),a&&(a.textContent=String(n)))}}n++})}getColumns(){return this.columns}getSortColumns(){return this.sortColumns}updateColumnCaches(){this.columnPosLeft=[],this.columnPosRight=[];let e=0;for(let t=0,n=this.columns.length;t<n;t++)!this.columns[t]||this.columns[t].hidden||(this.columnPosLeft[t]=e,this.columnPosRight[t]=e+(this.columns[t].width||0),this._options.frozenColumn===t?e=0:e+=this.columns[t].width||0)}updateColumnProps(){this.columnsById={};for(let e=0;e<this.columns.length;e++){let t=this.columns[e];t.width&&(t.widthRequest=t.width),this._options.mixinDefaults?(V.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),V.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=V.extend({},this._columnDefaults,t),t.autoSize=V.extend({},this._columnAutosizeDefaults,t.autoSize)),this.columnsById[t.id]=e,t.minWidth&&(t.width||0)<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&(t.width||0)>t.maxWidth&&(t.width=t.maxWidth)}}setColumns(e){this.trigger(this.onBeforeSetColumns,{previousColumns:this.columns,newColumns:e,grid:this}),this.columns=e,this.updateColumnsInternal(),this.trigger(this.onAfterSetColumns,{newColumns:e,grid:this})}updateColumns(){this.trigger(this.onBeforeUpdateColumns,{columns:this.columns,grid:this}),this.updateColumnsInternal()}updateColumnsInternal(){this.updateColumnProps(),this.updateColumnCaches(),this.initialized&&(this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setOverflow(),this.invalidateAllRows(),this.createColumnHeaders(),this.createColumnFooter(),this.removeCssRules(),this.createCssRules(),this.resizeCanvas(),this.updateCanvasWidth(),this.applyColumnHeaderWidths(),this.applyColumnWidths(),this.handleScroll(),this.getSelectionModel()?.refreshSelections())}getEditorLock(){return this._options.editorLock}getEditController(){return this.editController}setData(e,t){this.data=e,this.invalidateAllRows(),this.updateRowCount(),t&&this.scrollTo(0)}getData(){return this.data}getDataLength(){return this.data.getLength?this.data.getLength():this.data?.length??0}getDataLengthIncludingAddNew(){return this.getDataLength()+(this._options.enableAddRow&&(!this.pagingActive||this.pagingIsLastPage)?1:0)}getDataItem(e){return this.data.getItem?this.data.getItem(e):this.data[e]}hasDataView(){return!Array.isArray(this.data)}getItemMetadaWhenExists(e){return"getItemMetadata"in this.data?this.data.getItemMetadata(e):null}getFormatter(e,t){let n=this.data?.getItemMetadata?.(e);return(n?.columns&&(n.columns[t.id]||n.columns[this.getColumnIndex(t.id)]))?.formatter||n?.formatter||t.formatter||this._options.formatterFactory?.getFormatter(t)||this._options.defaultFormatter}getEditor(e,t){let n=this.columns[t],o=this.getItemMetadaWhenExists(e)?.columns;return o?.[n.id]?.editor!==void 0?o[n.id].editor:o?.[t]?.editor!==void 0?o[t].editor:n.editor||this._options?.editorFactory?.getEditor(n)}getDataItemValueForColumn(e,t){return this._options.dataItemColumnValueExtractor?this._options.dataItemColumnValueExtractor(e,t):e[t.field]}resetActiveCell(){this.setActiveCellInternal(null,!1)}unsetActiveCell(){V.isDefined(this.activeCellNode)&&(this.makeActiveCellNormal(),this.activeCellNode.classList.remove("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(e=>e.classList.remove("active")))}focus(){this.setFocus()}setFocus(){this.tabbingDirection===-1?this._focusSink.focus():this._focusSink2.focus()}setActiveCellInternal(e,t,n,o,r){if(this.unsetActiveCell(),this.activeCellNode=e,V.isDefined(this.activeCellNode)){let i=V.offset(this.activeCellNode),a=Math.floor(V.offset(V.parents(this.activeCellNode,".grid-canvas")[0]).top),l=V.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&l&&(a-=this._options.frozenBottom?V.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(i.left,Math.ceil(i.top)-a);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!V.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(u=>u.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(u=>u.classList.add("active"))),this._options.editable&&t&&this.isCellPotentiallyEditable(this.activeRow,this.activeCell)&&(this._options.asyncEditorLoading?(window.clearTimeout(this.h_editorLoader),this.h_editorLoader=window.setTimeout(()=>{this.makeActiveCellEditable(void 0,n,r)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,n,r))}else this.activeRow=this.activeCell=null;o||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let n=this.getDataLength();return!(e<n&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=n||!this.columns[t]||this.columns[t].hidden||!this.getEditor(e,t))}makeActiveCellNormal(e=!1){if(this.currentEditor){if(this.trigger(this.onBeforeCellEditorDestroy,{editor:this.currentEditor}),this.currentEditor.destroy(),this.currentEditor=null,this.activeCellNode){let t=this.getDataItem(this.activeRow);if(this.activeCellNode.classList.remove("editable"),this.activeCellNode.classList.remove("invalid"),t){let n=this.columns[this.activeCell],o=this.getFormatter(this.activeRow,n)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,n),n,t,this);this.applyFormatResultToCellNode(o,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,n){this.makeActiveCellEditable(e,t,n)}makeActiveCellEditable(e,t,n){if(!this.activeCellNode)return;if(!this._options.editable)throw new Error("SlickGrid makeActiveCellEditable : should never get called when this._options.editable is false");if(window.clearTimeout(this.h_editorLoader),!this.isCellPotentiallyEditable(this.activeRow,this.activeCell))return;let o=this.columns[this.activeCell],r=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:r,column:o,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let i=e||this.getEditor(this.activeRow,this.activeCell);if(!i||typeof i!="function")return;!e&&!i.suppressClearOnEdit&&V.emptyElement(this.activeCellNode);let a=this.getItemMetadaWhenExists(this.activeRow);a=a?.columns;let l=a&&(a[o.id]||a[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:o,columnMetaData:l,item:r||{},event:n,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new i(d),r&&this.currentEditor&&(this.currentEditor.loadValue(r),t&&this.currentEditor?.preClick&&this.currentEditor.preClick()),this.serializedEditorValue=this.currentEditor?.serializeValue(),this.currentEditor?.position&&this.handleActiveCellPositionChange()}commitEditAndSetFocus(){this.getEditorLock()?.commitCurrentEdit()&&(this.setFocus(),this._options.autoEdit&&!this._options.autoCommitEdit&&this.navigateDown())}cancelEditAndSetFocus(){this.getEditorLock()?.cancelCurrentEdit()&&this.setFocus()}commitCurrentEdit(){let e=this,t=e.getDataItem(e.activeRow),n=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let o=e.currentEditor.validate();if(o.valid){let r=e.activeRow,i=e.activeCell,a=e.currentEditor,l=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let u={row:r,cell:i,editor:a,serializedValue:l,prevSerializedValue:d,execute:()=>{a.applyValue(t,l),e.updateRow(r),e.trigger(e.onCellChange,{command:"execute",row:r,cell:i,item:t,column:n})},undo:()=>{a.applyValue(t,d),e.updateRow(r),e.trigger(e.onCellChange,{command:"undo",row:r,cell:i,item:t,column:n})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,n,u)):(u.execute(),e.makeActiveCellNormal(!0))}else{let u={};e.currentEditor.applyValue(u,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:u,column:n})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),V.width(e.activeCellNode),e.activeCellNode.classList.add("invalid")),e.trigger(e.onValidationError,{editor:e.currentEditor,cellNode:e.activeCellNode,validationResults:o,row:e.activeRow,cell:e.activeCell,column:n}),e.currentEditor.focus(),!1}e.makeActiveCellNormal(!0)}return!0}cancelCurrentEdit(){return this.makeActiveCellNormal(),!0}getSelectedRows(){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");return this.selectedRows.slice(0)}setSelectedRows(e,t){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");this&&this.getEditorLock&&!this.getEditorLock()?.isActive()&&this.selectionModel.setSelectedRanges(this.rowsToRanges(e),t||"SlickGrid.setSelectedRows")}trigger(e,t,n){let o=n||new xi(n,t),r=t||{};return r.grid=this,e.notify(r,o,this)}handleCellMouseOut(e){this.trigger(this.onMouseLeave,{},e)}handleHeaderMouseHoverOn(e){e?.target.classList.add("ui-state-hover","slick-state-hover")}handleHeaderMouseHoverOff(e){e?.target.classList.remove("ui-state-hover","slick-state-hover")}handleSelectedRangesChanged(e,t){let n=e.getNativeEvent(),o=this.selectedRows.slice(0);this.selectedRows=[];let r={};for(let i=0;i<t.length;i++)for(let a=t[i].fromRow;a<=t[i].toRow;a++){r[a]||(this.selectedRows.push(a),r[a]={});for(let l=t[i].fromCell;l<=t[i].toCell;l++)this.canCellBeSelected(a,l)&&(r[a][this.columns[l].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",r),this.simpleArrayEquals(o,this.selectedRows)){let i=n?.detail?.caller??"click",a=new Set(this.getSelectedRows()),l=new Set(o),d=Array.from(a).filter(f=>!l.has(f)),u=Array.from(l).filter(f=>!a.has(f));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:o,caller:i,changedSelectedRows:d,changedUnselectedRows:u},e)}}handleMouseWheel(e,t,n,o){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-o*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragInit,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDragStart(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragStart,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDrag(e,t){return this.trigger(this.onDrag,t,e).getReturnValue()}handleDragEnd(e,t){this.trigger(this.onDragEnd,t,e)}handleKeyDown(e){let t=this.trigger(this.onKeyDown,{row:this.activeRow,cell:this.activeCell},e).isImmediatePropagationStopped();if(!t&&!e.shiftKey&&!e.altKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;e.ctrlKey&&e.key==="Home"?this.navigateTopStart():e.ctrlKey&&e.key==="End"?this.navigateBottomEnd():e.ctrlKey&&e.key==="ArrowUp"?this.navigateTop():e.ctrlKey&&e.key==="ArrowDown"?this.navigateBottom():e.ctrlKey&&e.key==="ArrowLeft"||!e.ctrlKey&&e.key==="Home"?this.navigateRowStart():(e.ctrlKey&&e.key==="ArrowRight"||!e.ctrlKey&&e.key==="End")&&this.navigateRowEnd()}if(!t)if(!e.shiftKey&&!e.altKey&&!e.ctrlKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which===So.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===So.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===So.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===So.LEFT?t=this.navigateLeft():e.which===So.RIGHT?t=this.navigateRight():e.which===So.UP?t=this.navigateUp():e.which===So.DOWN?t=this.navigateDown():e.which===So.TAB?t=this.navigateNext():e.which===So.ENTER&&(this._options.editable&&(this.currentEditor?this.activeRow===this.getDataLength()?this.navigateDown():this.commitEditAndSetFocus():this.getEditorLock()?.commitCurrentEdit()&&this.makeActiveCellEditable(void 0,void 0,e)),t=!0)}else e.which===So.TAB&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&(t=this.navigatePrev());if(t){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch{}}}handleClick(e){let t=e instanceof xi?e.getNativeEvent():e;if(!this.currentEditor&&(t.target!==document.activeElement||t.target.classList.contains("slick-cell"))){let o=this.getTextSelection();this.setFocus(),this.setTextSelection(o)}let n=this.getCellFromEvent(t);if(!(!n||this.currentEditor!==null&&this.activeRow===n.row&&this.activeCell===n.cell)&&(e=this.trigger(this.onClick,{row:n.row,cell:n.cell},e||t),!e.isImmediatePropagationStopped()&&this.canCellBeActive(n.row,n.cell)&&(!this.getEditorLock()?.isActive()||this.getEditorLock()?.commitCurrentEdit()))){this.scrollRowIntoView(n.row,!1);let o=t.target?.className===EB,r=this.columns[n.cell],i=!!(this._options.editable&&r?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(this.getCellNode(n.row,n.cell),null,o,i,t)}}handleContextMenu(e){let t=e.target.closest(".slick-cell");t&&(this.activeCellNode===t&&this.currentEditor!==null||this.trigger(this.onContextMenu,{},e))}handleDblClick(e){let t=this.getCellFromEvent(e);!t||this.currentEditor!==null&&this.activeRow===t.row&&this.activeCell===t.cell||(this.trigger(this.onDblClick,{row:t.row,cell:t.cell},e),!e.defaultPrevented&&this._options.editable&&this.gotoCell(t.row,t.cell,!0,e))}handleHeaderMouseEnter(e){let t=V.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=V.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=V.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=V.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseLeave,{column:t,grid:this},e)}handleHeaderContextMenu(e){let t=e.target.closest(".slick-header-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onHeaderContextMenu,{column:n},e)}handleHeaderClick(e){if(!this.columnResizeDragging){let t=e.target.closest(".slick-header-column"),n=t&&V.storage.get(t,"column");n&&this.trigger(this.onHeaderClick,{column:n},e)}}handlePreHeaderContextMenu(e){this.trigger(this.onPreHeaderContextMenu,{node:e.target},e)}handlePreHeaderClick(e){this.columnResizeDragging||this.trigger(this.onPreHeaderClick,{node:e.target},e)}handleFooterContextMenu(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:n},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onFooterClick,{column:n},e)}handleCellMouseOver(e){this.trigger(this.onMouseEnter,{},e)}handleActiveCellPositionChange(){if(this.activeCellNode&&(this.trigger(this.onActiveCellPositionChanged,{}),this.currentEditor)){let e=this.getActiveCellPosition();this.currentEditor.show&&this.currentEditor.hide&&(e.visible?this.currentEditor.show():this.currentEditor.hide()),this.currentEditor.position&&this.currentEditor.position(e)}}actionThrottle(e,t){let n=!1,o=!1,r=()=>{n?o=!0:a()},i=()=>{o=!1},a=()=>{n=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(l,t),e.call(this)},l=()=>{o?(i(),a()):n=!1};return{enqueue:r.bind(this),dequeue:i.bind(this)}}getCellFromEvent(e){let t=e instanceof xi?e.getNativeEvent():e,n=t.touches?t.touches[0]:t,o=t.target.closest(".slick-cell");if(!o)return null;let r=this.getRowFromNode(o.parentNode);if(this.hasFrozenRows){let a=0,l=V.offset(V.parents(o,".grid-canvas")[0]);V.parents(o,".grid-canvas-bottom").length&&(a=this._options.frozenBottom?V.height(this._canvasTopL):this.frozenRowsHeight),r=this.getCellFromPoint(n.clientX-l.left,n.clientY-l.top+a+document.documentElement.scrollTop).row}let i=this.getCellFromNode(o);return!V.isDefined(r)||!V.isDefined(i)?null:{row:r,cell:i}}applyHtmlCode(e,t,n){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)n?.emptyTarget!==!1&&V.emptyElement(e),e.appendChild(t);else{if(n?.skipEmptyReassignment!==!1&&!V.isDefined(t)&&!e.innerHTML)return;let o=t;typeof o=="number"||typeof o=="boolean"?e.textContent=o:(o=this.sanitizeHtmlString(t),this._options.enableHtmlRendering&&o?e.innerHTML=o:e.textContent=o)}}getCanvasNode(e,t){return this._getContainerElement(this.getCanvases(),e,t)}getActiveCanvasNode(e){return e===void 0?this._activeCanvasNode:(e instanceof xi&&(e=e.getNativeEvent()),this._activeCanvasNode=e?.target.closest(".grid-canvas"),this._activeCanvasNode)}getCanvases(){return this._canvas}getViewportNode(e,t){return this._getContainerElement(this.getViewports(),e,t)}getViewports(){return this._viewport}getActiveViewportNode(e){return this.setActiveViewportNode(e),this._activeViewportNode}setActiveViewportNode(e){return e instanceof xi&&(e=e.getNativeEvent()),this._activeViewportNode=e?.target.closest(".slick-viewport"),this._activeViewportNode}getHeadersWidth(){this.headersWidth=this.headersWidthL=this.headersWidthR=0;let e=!this._options.autoHeight,t=0,n=this.columns.length;for(t=0;t<n;t++){if(!this.columns[t]||this.columns[t].hidden)continue;let o=this.columns[t].width;this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=o||0:this.headersWidthL+=o||0}return e&&(this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=this.scrollbarDimensions?.width??0:this.headersWidthL+=this.scrollbarDimensions?.width??0),this.hasFrozenColumns()?(this.headersWidthL=this.headersWidthL+1e3,this.headersWidthR=Math.max(this.headersWidthR,this.viewportW)+this.headersWidthL,this.headersWidthR+=this.scrollbarDimensions?.width??0):(this.headersWidthL+=this.scrollbarDimensions?.width??0,this.headersWidthL=Math.max(this.headersWidthL,this.viewportW)+1e3),this.headersWidth=this.headersWidthL+this.headersWidthR,Math.max(this.headersWidth,this.viewportW)+1e3}getCanvasWidth(){let e=this.getViewportInnerWidth(),t=this.columns.length;for(this.canvasWidthL=this.canvasWidthR=0;t--;)!this.columns[t]||this.columns[t].hidden||(this.hasFrozenColumns()&&t>this._options.frozenColumn?this.canvasWidthR+=this.columns[t].width||0:this.canvasWidthL+=this.columns[t].width||0);let n=this.canvasWidthL+this.canvasWidthR;if(this._options.fullWidthRows){let o=Math.max(n,e)-n;o>0&&(n+=o,this.hasFrozenColumns()?this.canvasWidthR+=o:this.canvasWidthL+=o)}return n}updateCanvasWidth(e){let t=this.canvasWidth,n=this.canvasWidthL,o=this.canvasWidthR;this.canvasWidth=this.getCanvasWidth(),this._options.createTopHeaderPanel&&V.width(this._topHeaderPanel,this._options.topHeaderPanelWidth??this.canvasWidth);let r=this.canvasWidth!==t||this.canvasWidthL!==n||this.canvasWidthR!==o;if(r||this.hasFrozenColumns()||this.hasFrozenRows)if(V.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),V.width(this._headerL,this.headersWidthL),V.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let i=V.width(this._container)||0;if(i>0&&this.canvasWidthL>i&&this._options.throwWhenFrozenNotAllViewable)throw new Error("[SlickGrid] Frozen columns cannot be wider than the actual grid container width. Make sure to have less columns freezed or make your grid container wider");V.width(this._canvasTopR,this.canvasWidthR),V.width(this._paneHeaderL,this.canvasWidthL),V.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),V.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),V.width(this._paneTopL,this.canvasWidthL),V.setStyleSize(this._paneTopR,"left",this.canvasWidthL),V.width(this._paneTopR,this.viewportW-this.canvasWidthL),V.width(this._headerRowScrollerL,this.canvasWidthL),V.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),V.width(this._headerRowL,this.canvasWidthL),V.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(V.width(this._footerRowScrollerL,this.canvasWidthL),V.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),V.width(this._footerRowL,this.canvasWidthL),V.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&V.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),V.width(this._viewportTopL,this.canvasWidthL),V.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(V.width(this._paneBottomL,this.canvasWidthL),V.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),V.width(this._viewportBottomL,this.canvasWidthL),V.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),V.width(this._canvasBottomL,this.canvasWidthL),V.width(this._canvasBottomR,this.canvasWidthR))}else V.width(this._paneHeaderL,"100%"),V.width(this._paneTopL,"100%"),V.width(this._headerRowScrollerL,"100%"),V.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(V.width(this._footerRowScrollerL,"100%"),V.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&V.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),V.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(V.width(this._viewportBottomL,"100%"),V.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),V.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),V.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(V.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),V.width(this._footerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0))),(r||e)&&this.applyColumnWidths()}getPreHeaderPanel(){return this._preHeaderPanel}getPreHeaderPanelLeft(){return this._preHeaderPanel}getPreHeaderPanelRight(){return this._preHeaderPanelR}getTopHeaderPanel(){return this._topHeaderPanel}setPaneVisibility(){this.hasFrozenColumns()?(V.show(this._paneHeaderR),V.show(this._paneTopR),this.hasFrozenRows?(V.show(this._paneBottomL),V.show(this._paneBottomR)):(V.hide(this._paneBottomR),V.hide(this._paneBottomL))):(V.hide(this._paneHeaderR),V.hide(this._paneTopR),V.hide(this._paneBottomR),this.hasFrozenRows?V.show(this._paneBottomL):(V.hide(this._paneBottomR),V.hide(this._paneBottomL)))}setOverflow(){if(this._viewportTopL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportTopR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?this.hasFrozenRows?"scroll":"auto":this.hasFrozenRows?"scroll":"auto",this._viewportBottomL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportBottomR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"auto"):(this.hasFrozenRows,"auto"),this._options.viewportClass){let e=V.classNameToList(this._options.viewportClass);this._viewportTopL.classList.add(...e),this._viewportTopR.classList.add(...e),this._viewportBottomL.classList.add(...e),this._viewportBottomR.classList.add(...e)}}createCssRules(){this._style=document.createElement("style"),this._style.nonce=this._options.nonce||"",(this._options.shadowRoot||document.head).appendChild(this._style);let e=this._options.rowHeight-this.cellHeightDiff,t=[`.${this.uid} .slick-group-header-column { left: 1000px; }`,`.${this.uid} .slick-header-column { left: 1000px; }`,`.${this.uid} .slick-top-panel { height: ${this._options.topPanelHeight}px; }`,`.${this.uid} .slick-preheader-panel { height: ${this._options.preHeaderPanelHeight}px; }`,`.${this.uid} .slick-topheader-panel { height: ${this._options.topHeaderPanelHeight}px; }`,`.${this.uid} .slick-headerrow-columns { height: ${this._options.headerRowHeight}px; }`,`.${this.uid} .slick-footerrow-columns { height: ${this._options.footerRowHeight}px; }`,`.${this.uid} .slick-cell { height: ${e}px; }`,`.${this.uid} .slick-row { height: ${this._options.rowHeight}px; }`],n=this._style.sheet;if(n){t.forEach(o=>{n.insertRule(o)});for(let o=0;o<this.columns.length;o++)!this.columns[o]||this.columns[o].hidden||(n.insertRule(`.${this.uid} .l${o} { }`),n.insertRule(`.${this.uid} .r${o} { }`))}else this.createCssRulesAlternative(t)}createCssRulesAlternative(e){let t=document.createElement("template");t.innerHTML='<style type="text/css" rel="stylesheet" />',this._style=t.content.firstChild,(this._options.shadowRoot||document.head).appendChild(this._style);for(let n=0;n<this.columns.length;n++)!this.columns[n]||this.columns[n].hidden||(e.push(`.${this.uid} .l${n} { }`),e.push(`.${this.uid} .r${n} { }`));this._style.styleSheet?this._style.styleSheet.cssText=e.join(" "):this._style.appendChild(document.createTextNode(e.join(" ")))}getColumnCssRules(e){let t;if(!this.stylesheet){let n=(this._options.shadowRoot||document).styleSheets;for(this._options.devMode&&typeof this._options.devMode?.ownerNodeIndex=="number"&&this._options.devMode.ownerNodeIndex>=0&&(n[this._options.devMode.ownerNodeIndex].ownerNode=this._style),t=0;t<n.length;t++)if((n[t].ownerNode||n[t].owningElement)===this._style){this.stylesheet=n[t];break}if(!this.stylesheet)throw new Error("SlickGrid Cannot find stylesheet.");this.columnCssRulesL=[],this.columnCssRulesR=[];let o=this.stylesheet.cssRules||this.stylesheet.rules,r,i;for(t=0;t<o.length;t++){let a=o[t].selectorText;(r=/\.l\d+/.exec(a))?(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesL[i]=o[t]):(r=/\.r\d+/.exec(a))&&(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesR[i]=o[t])}}return{left:this.columnCssRulesL[e],right:this.columnCssRulesR[e]}}removeCssRules(){this._style?.remove(),this.stylesheet=null}getTopPanel(){return this._topPanels[0]}getTopPanels(){return this._topPanels}togglePanelVisibility(e,t,n,o){let r=o!==!1;if(this._options[e]!==n)if(this._options[e]=n,n){if(r){V.slideDown(t,this.resizeCanvas.bind(this));return}V.show(t),this.resizeCanvas()}else{if(r){V.slideUp(t,this.resizeCanvas.bind(this));return}V.hide(t),this.resizeCanvas()}}setTopPanelVisibility(e,t){this.togglePanelVisibility("showTopPanel",this._topPanelScrollers,e,t)}setHeaderRowVisibility(e,t){this.togglePanelVisibility("showHeaderRow",this._headerRowScroller,e,t)}setColumnHeaderVisibility(e,t){this.togglePanelVisibility("showColumnHeader",this._headerScroller,e,t)}setFooterRowVisibility(e,t){this.togglePanelVisibility("showFooterRow",this._footerRowScroller,e,t)}setPreHeaderPanelVisibility(e,t){this.togglePanelVisibility("showPreHeaderPanel",[this._preHeaderPanelScroller,this._preHeaderPanelScrollerR],e,t)}setTopHeaderPanelVisibility(e){this.togglePanelVisibility("showTopHeaderPanel",this._topHeaderPanelScroller,e)}getRowHeight(){return this._options.rowHeight}getRowTop(e){return Math.round(this._options.rowHeight*e-this.offset)}getRowBottom(e){return this.getRowTop(e)+this._options.rowHeight}getRowFromPosition(e){return Math.floor((e+this.offset)/this._options.rowHeight)}appendRowHtml(e,t,n,o,r){let i=this.getDataItem(n),a=n<r&&!i,l="slick-row"+(this.hasFrozenRows&&n<=this._options.frozenRow?" frozen":"")+(a?" loading":"")+(n===this.activeRow&&this._options.showCellSelection?" active":"")+(n%2===1?" odd":" even");i||(l+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(n);d?.cssClasses&&(l+=` ${d.cssClasses}`);let u=V.createDomElement("div",{className:`ui-widget-content ${l}`,role:"row",dataset:{row:`${n}`}}),f=this.getFrozenRowOffset(n),p=this.getRowTop(n)-f;this._options.rowTopOffsetRenderType==="transform"?u.style.transform=`translateY(${p}px)`:u.style.top=`${p}px`;let y;e.push(u),this.hasFrozenColumns()&&(y=u.cloneNode(!0),t.push(y));let w=this.columns.length,b,m,v,P,D=!0;for(let x=0,S=w;x<S;x++){if(D=!0,P=this.columns[x],!P||P.hidden)continue;m=1,v=1,b=null,d?.columns&&(b=d.columns[P.id]||d.columns[x],m=b?.colspan||1,v=b?.rowspan||1,m==="*"&&(m=S-x),v>r-n&&(v=r-n)),!this._options.enableCellRowSpan&&v>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let C=m;if(!this.getParentRowSpanByCell(n,x)){if(this.columnPosRight[Math.min(S-1,x+C-1)]>o.leftPx){if(!P.alwaysRenderColumn&&this.columnPosLeft[x]>o.rightPx&&(D=!1),D){let O=this.hasFrozenColumns()&&x>this._options.frozenColumn?y:u;this.appendCellHtml(O,n,x,C,v,b,i)}}else(P.alwaysRenderColumn||this.hasFrozenColumns()&&x<=this._options.frozenColumn)&&this.appendCellHtml(u,n,x,C,v,b,i);C>1&&(x+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let l=this.columns[n],d=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(l.cssClass?` ${l.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[l.id]&&(d+=` ${this.cellCssClasses[v][t][l.id]}`)});let u=null,f="";a&&(u=this.getDataItemValueForColumn(a,l),f=this.getFormatter(t,l)(t,n,u,l,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:u,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=V.classNameToList((y?" ":"")+f.addClasses).join(" "));let w=f?.toolTip?`${f.toolTip}`:"",b=V.createDomElement("div",{className:V.classNameToList(`${d} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});b.setAttribute("aria-describedby",this.uid+l.id),w&&b.setAttribute("title",w);let m=this.getCellHeight(t,r);if(r>1&&m!==this._options.rowHeight-this.cellHeightDiff&&(b.style.height=`${m||0}px`),l.hasOwnProperty("cellAttrs")&&l.cellAttrs instanceof Object&&Object.keys(l.cellAttrs).forEach(v=>{l.cellAttrs.hasOwnProperty(v)&&b.setAttribute(v,l.cellAttrs[v])}),a){let v=Object.prototype.toString.call(f)!=="[object Object]"?f:f.html||f.text;this.applyHtmlCode(b,v)}e.appendChild(b),f.insertElementAfterTarget&&V.insertAfterElement(b,f.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(n),this.rowsCache[t].cellColSpans[n]=o}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let n=e.top,o=e.bottom;n<=o;n++){let r=this.getRowSpanIntersect(n);r!==null&&t.add(r)}Object.keys(this.rowsCache).forEach(n=>{if(this.rowsCache){let o=+n,r=!0;this.hasFrozenRows&&(this._options.frozenBottom&&o>=this.actualFrozenRow||!this._options.frozenBottom&&o<=this.actualFrozenRow)&&(r=!1),(o=parseInt(n,10))!==this.activeRow&&(o<e.top||o>e.bottom)&&r&&!t.has(o)&&this.removeRowFromCache(o)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let n=e.length,o=new Set,r=new Set,i=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let a=0;a<n;a++)if(t=e[a],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!i){o.add(t);let l=this.getRowSpanIntersect(t);l!==null&&o.add(l)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let l=this.getRowSpanColumnIntersects(a);for(let d of l){let u=this.getParentRowSpanByCell(a,d);u&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(u.range),r.add(u.range.split(":").map(Number)[0]))}}for(let a of Array.from(r))this.remapRowSpanMetadataByRow(a)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let n=this.getRowSpanIntersect(e);n!==null&&t.push(n)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(n=>n.parentElement?.removeChild(n)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let n=this.getCellNode(e,t);if(!n)return;let o=this.columns[t],r=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(r);else{let i=r?this.getFormatter(e,o)(e,t,this.getDataItemValueForColumn(r,o),o,r,this):"";this.applyFormatResultToCellNode(i,n),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let n,o=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(r=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(r))return;let i=+r,a=this.columns[i],l=t.cellNodesByColumnIdx[i];e===this.activeRow&&i===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(o):o?(n=this.getFormatter(e,a)(e,i,this.getDataItemValueForColumn(o,a),a,o,this),this.applyFormatResultToCellNode(n,l)):V.emptyElement(l)}),this.invalidatePostProcessingResults(e)}getViewportRowCount(){let e=this.getViewportHeight(),t=this.getScrollbarDimensions()?.height??0;return Math.floor((e-t)/this._options.rowHeight)}getViewportHeight(){if((!this._options.autoHeight||this._options.frozenColumn!==-1)&&(this.topPanelH=this._options.showTopPanel?this._options.topPanelHeight+this.getVBoxDelta(this._topPanelScrollers[0]):0,this.headerRowH=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,this.footerRowH=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0),this._options.autoHeight){let e=this._paneHeaderL.offsetHeight;e+=this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,e+=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,e+=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0,e+=this.getCanvasWidth()>this.viewportW?this.scrollbarDimensions?.height??0:0,this.viewportH=this._options.rowHeight*this.getDataLengthIncludingAddNew()+(this._options.frozenColumn===-1?e:0)}else{let e=getComputedStyle(this._container),t=e.boxSizing!=="content-box"?this.getVBoxDelta(this._container):0,n=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,o=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,r=this._options.showColumnHeader?V.toFloat(V.height(this._headerScroller[0])):0;this.viewportH=V.toFloat(e.height)-V.toFloat(e.paddingTop)-V.toFloat(e.paddingBottom)-this.topPanelH-n-o-this.headerRowH-r-this.footerRowH-t}return this.numVisibleRows=Math.ceil(this.viewportH/this._options.rowHeight),this.viewportH}getViewportInnerWidth(){return this.viewportHasVScroll?this.viewportW-(this.scrollbarDimensions?.width||0):this.viewportW}getViewportWidth(){return this.viewportW=parseFloat(V.innerSize(this._container,"width"))||this._options.devMode&&this._options.devMode.containerClientWidth||0,this.viewportW}resizeCanvas(){if(!this.initialized)return;if(this.paneTopH=0,this.paneBottomH=0,this.viewportTopH=0,this.viewportBottomH=0,this.getViewportWidth(),this.getViewportHeight(),this.hasFrozenRows?this._options.frozenBottom?(this.paneTopH=this.viewportH-this.frozenRowsHeight-(this.scrollbarDimensions?.height??0),this.paneBottomH=this.frozenRowsHeight+(this.scrollbarDimensions?.height??0)):(this.paneTopH=this.frozenRowsHeight,this.paneBottomH=this.viewportH-this.frozenRowsHeight):this.paneTopH=this.viewportH,this.paneTopH+=this.topPanelH+this.headerRowH+this.footerRowH,this.hasFrozenColumns()&&this._options.autoHeight&&(this.paneTopH+=this.scrollbarDimensions?.height??0),this.viewportTopH=this.paneTopH-this.topPanelH-this.headerRowH-this.footerRowH,this._options.autoHeight){if(this.hasFrozenColumns()){let n=this.paneTopH+this._headerScrollerL.offsetHeight;n+=this.getVBoxDelta(this._container),this._options.showPreHeaderPanel&&(n+=this._options.preHeaderPanelHeight),V.height(this._container,n)}this._paneTopL.style.position="relative"}let e=V.height(this._paneHeaderL);e?e+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0:e=(this._options.showHeaderRow?this._options.headerRowHeight:0)+(this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight:0),V.setStyleSize(this._paneTopL,"top",e||e),V.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||V.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let n=V.height(this._paneHeaderL);n&&(n+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),V.setStyleSize(this._paneTopR,"top",n),V.height(this._paneTopR,this.paneTopH),V.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(V.setStyleSize(this._paneBottomL,"top",t),V.height(this._paneBottomL,this.paneBottomH),V.setStyleSize(this._paneBottomR,"top",t),V.height(this._paneBottomR,this.paneBottomH),V.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(V.width(this._paneBottomL,"100%"),V.height(this._paneBottomL,this.paneBottomH),V.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(V.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(V.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&V.height(this._canvasBottomR,this.frozenRowsHeight)):(V.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&V.height(this._canvasTopR,this.frozenRowsHeight))):V.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===kn.LegacyForceFit&&this.autosizeColumns(),this.updateRowCount(),this.handleScroll(),this.lastRenderedScrollLeft=-1,this.render()}updateRowCount(){if(!this.initialized)return;let e=this.getDataLength();e>0&&e!==this._prevDataLength&&(this._rowSpanIsCached=!1),this._options.enableCellRowSpan&&!this._rowSpanIsCached&&this.remapAllColumnsRowSpan(),this._prevDataLength=e;let t=this.getDataLengthIncludingAddNew(),n=0,o=this.hasFrozenRows&&!this._options.frozenBottom?V.height(this._canvasBottomL):V.height(this._canvasTopL);this.hasFrozenRows?n=this.getDataLength()-this._options.frozenRow:n=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let r=V.height(this._viewportScrollContainerY),i=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&n*this._options.rowHeight>r,this.makeActiveCellNormal();let a=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let u=+d;u>a&&this.removeRowFromCache(u)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>a&&this.resetActiveCell(),o=this.h,this._options.autoHeight?this.h=this._options.rowHeight*n:(this.th=Math.max(this._options.rowHeight*n,r-(this.scrollbarDimensions?.height??0)),this.th<this.maxSupportedCssHeight?(this.h=this.ph=this.th,this.n=1,this.cj=0):(this.h=this.maxSupportedCssHeight,this.ph=this.h/100,this.n=Math.floor(this.th/this.ph),this.cj=(this.th-this.h)/(this.n-1))),(this.h!==o||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(V.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&V.height(this._canvasBottomR,this.h)):(V.height(this._canvasTopL,this.h),V.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let l=this.scrollTop+this.offset<=this.th-r;this.th===0||this.scrollTop===0?this.page=this.offset=0:l?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-r+(this.scrollbarDimensions?.height??0)),this.h!==o&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===kn.LegacyForceFit&&i!==this.viewportHasVScroll&&this.autosizeColumns(),this.updateCanvasWidth(!1)}getViewport(e,t){return this.getVisibleRange(e,t)}getVisibleRange(e,t){return e??(e=this.scrollTop),t??(t=this.scrollLeft),{top:this.getRowFromPosition(e),bottom:this.getRowFromPosition(e+this.viewportH)+1,leftPx:t,rightPx:t+this.viewportW}}getRenderedRange(e,t){let n=this.getVisibleRange(e,t),o=Math.round(this.viewportH/this._options.rowHeight),r=this._options.minRowBuffer;return this.vScrollDir===-1?(n.top-=o,n.bottom+=r):this.vScrollDir===1?(n.top-=r,n.bottom+=o):(n.top-=r,n.bottom+=r),n.top=Math.max(0,n.top),n.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,n.bottom),n.leftPx-=this.viewportW,n.rightPx+=this.viewportW,n.leftPx=Math.max(0,n.leftPx),n.rightPx=Math.min(this.canvasWidth,n.rightPx),n}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let n=t.rowNode,o=Array.from(n[0].children);n.length>1&&(o=o.concat(Array.from(n[1].children)));let r=o.length-1;for(;t.cellRenderQueue.length;){let i=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[i]=o[r--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let n=this.rowsCache[t],o=[];Object.keys(n.cellNodesByColumnIdx).forEach(a=>{if(!n.cellNodesByColumnIdx.hasOwnProperty(a))return;let l=+a;if(l<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[l]?.alwaysRenderColumn)return;let d=n.cellColSpans[l];(this.columnPosLeft[l]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(l||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(l)===this.activeCell||o.push(l))});let r,i;for(;V.isDefined(r=o.pop());)i=n.cellNodesByColumnIdx[r],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[r]?this.queuePostProcessedCellForCleanup(i,r,t):i.parentElement?.removeChild(i),delete n.cellColSpans[r],delete n.cellNodesByColumnIdx[r],this.postProcessedRows[t]&&delete this.postProcessedRows[t][r]}cleanUpAndRenderCells(e){let t,n=document.createElement("div"),o=[],r,i,a,l=this.columns.length;for(let f=e.top,p=e.bottom;f<=p;f++){if(t=this.rowsCache[f],!t)continue;this.ensureCellNodesInRowsCache(f),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(f)===null)&&this.cleanUpCells(e,f),r=0;let y=this.getItemMetadaWhenExists(f);y=y?.columns;let w=this.getDataItem(f);for(let b=0,m=l;b<m;b++){if(!this.columns[b]||this.columns[b].hidden)continue;if(this.columnPosLeft[b]>e.rightPx)break;if(V.isDefined(i=t.cellColSpans[b])){b+=i>1?i-1:0;continue}i=1,a=null,y&&(a=y[this.columns[b].id]||y[b],i=a?.colspan??1,i==="*"&&(i=m-b));let v=i;if(!this.getParentRowSpanByCell(f,b)){if(this.columnPosRight[Math.min(m-1,b+v-1)]>e.leftPx){let P=this.getRowspan(f,b);this.appendCellHtml(n,f,b,v,P,a,w),r++}b+=v>1?v-1:0}}r&&o.push(f)}if(!n.children.length)return;let d,u;for(;V.isDefined(d=o.pop());){t=this.rowsCache[d];let f;for(;V.isDefined(f=t.cellRenderQueue.pop());)u=n.lastChild,u&&(this.hasFrozenColumns()&&f>this._options.frozenColumn?t.rowNode[1].appendChild(u):t.rowNode[0].appendChild(u),t.cellNodesByColumnIdx[f]=u)}}renderRows(e){let t=[],n=[],o=[],r=!1,i=this.getDataLength(),a=new Set,l=new Set;for(let u=e.top,f=e.bottom;u<=f;u++)if(!(this.rowsCache[u]||this.hasFrozenRows&&this._options.frozenBottom&&u===this.getDataLength())){if(this.renderedRows++,o.push(u),l.add(u),this.rowsCache[u]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let p=this.getRowSpanIntersect(u);p!==null&&l.add(p)}this.appendRowHtml(t,n,u,e,i),a.add(u),this.activeCellNode&&this.activeRow===u&&(r=!0),this.counter_rows_rendered++}let d=this.setDifference(l,a);if(d.size>0&&d.forEach(u=>{this.removeRowFromCache(u),o.push(u),this.rowsCache[u]=this.createEmptyCachingRow(),this.appendRowHtml(t,n,u,e,i)}),o.length){let u=document.createElement("div"),f=document.createElement("div");t.forEach(p=>u.appendChild(p)),n.forEach(p=>f.appendChild(p));for(let p=0,y=o.length;p<y;p++)this.hasFrozenRows&&o[p]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasBottomL.appendChild(u.firstChild),this._canvasBottomR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasBottomL.appendChild(u.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasTopL.appendChild(u.firstChild),this._canvasTopR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasTopL.appendChild(u.firstChild));r&&(this.activeCellNode=this.getCellNode(this.activeRow,this.activeCell))}}updateRowPositions(){for(let e in this.rowsCache)if(this.rowsCache){let t=e?parseInt(e,10):0,n=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?n.style.transform=`translateY(${this.getRowTop(t)}px)`:n.style.top=`${this.getRowTop(t)}px`}}render(){if(!this.initialized)return;this.scrollThrottle.dequeue();let e=this.getVisibleRange(),t=this.getRenderedRange();if(this.cleanupRows(t),this.lastRenderedScrollLeft!==this.scrollLeft){if(this.hasFrozenRows){let n=V.extend(!0,{},t);this._options.frozenBottom?(n.top=this.actualFrozenRow,n.bottom=this.getDataLength()):(n.top=0,n.bottom=this._options.frozenRow),this.cleanUpAndRenderCells(n)}this.cleanUpAndRenderCells(t)}this.renderRows(t),this.hasFrozenRows&&(this._options.frozenBottom?this.renderRows({top:this.actualFrozenRow,bottom:this.getDataLength()-1,leftPx:t.leftPx,rightPx:t.rightPx}):this.renderRows({top:0,bottom:this._options.frozenRow-1,leftPx:t.leftPx,rightPx:t.rightPx})),this.postProcessFromRow=e.top,this.postProcessToRow=Math.min(this.getDataLengthIncludingAddNew()-1,e.bottom),this.startPostProcessing(),this.lastRenderedScrollTop=this.scrollTop,this.lastRenderedScrollLeft=this.scrollLeft,this.trigger(this.onRendered,{startRow:e.top,endRow:e.bottom,grid:this})}getFrozenRowOffset(e){let t=0;return this.hasFrozenRows?this._options.frozenBottom?e>=this.actualFrozenRow?this.h<this.viewportTopH?t=this.actualFrozenRow*this._options.rowHeight:t=this.h:t=0:e>=this.actualFrozenRow?t=this.frozenRowsHeight:t=0:t=0,t}bindAncestorScrollEvents(){let e=this.hasFrozenRows&&!this._options.frozenBottom?this._canvasBottomL:this._canvasTopL;for(;(e=e.parentNode)!==document.body&&e;)(e===this._viewportTopL||e.scrollWidth!==e.clientWidth||e.scrollHeight!==e.clientHeight)&&(this._boundAncestors.push(e),this._bindingEventService.bind(e,"scroll",this.handleActiveCellPositionChange.bind(this)))}unbindAncestorScrollEvents(){this._boundAncestors.forEach(e=>{this._bindingEventService.unbindByEventName(e,"scroll")}),this._boundAncestors=[]}setScroller(){this.hasFrozenColumns()?(this._headerScrollContainer=this._headerScrollerR,this._headerRowScrollContainer=this._headerRowScrollerR,this._footerRowScrollContainer=this._footerRowScrollerR,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomR,this._viewportScrollContainerY=this._viewportTopR):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomR:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopR):(this._headerScrollContainer=this._headerScrollerL,this._headerRowScrollContainer=this._headerRowScrollerL,this._footerRowScrollContainer=this._footerRowScrollerL,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomL,this._viewportScrollContainerY=this._viewportTopL):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomL:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopL)}scrollTo(e){e=Math.max(e,0),e=Math.min(e,(this.th||0)-V.height(this._viewportScrollContainerY)+(this.viewportHasHScroll||this.hasFrozenColumns()?this.scrollbarDimensions?.height??0:0));let t=this.offset;this.offset=Math.round(this.page*(this.cj||0)),this.page=Math.min((this.n||0)-1,Math.floor(e/(this.ph||0)));let n=e-this.offset;if(this.offset!==t){let o=this.getVisibleRange(n);this.cleanupRows(o),this.updateRowPositions()}this.prevScrollTop!==n&&(this.vScrollDir=this.prevScrollTop+t<n+this.offset?1:-1,this.lastRenderedScrollTop=this.scrollTop=this.prevScrollTop=n,this.hasFrozenColumns()&&(this._viewportTopL.scrollTop=n),this.hasFrozenRows&&(this._viewportBottomL.scrollTop=this._viewportBottomR.scrollTop=n),this._viewportScrollContainerY&&(this._viewportScrollContainerY.scrollTop=n),this.trigger(this.onViewportChanged,{}))}handleHeaderRowScroll(){let e=this._headerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handleFooterRowScroll(){let e=this._footerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handlePreHeaderPanelScroll(){this.handleElementScroll(this._preHeaderPanelScroller)}handleTopHeaderPanelScroll(){this.handleElementScroll(this._topHeaderPanelScroller)}handleElementScroll(e){let t=e.scrollLeft;t!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=t)}handleScroll(e){return this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollLeft=this._viewportScrollContainerX.scrollLeft,this._handleScroll(e?"scroll":"system")}_handleScroll(e="system"){let t=this._viewportScrollContainerY.scrollHeight-this._viewportScrollContainerY.clientHeight,n=this._viewportScrollContainerY.scrollWidth-this._viewportScrollContainerY.clientWidth;t=Math.max(0,t),n=Math.max(0,n),this.scrollTop>t&&(this.scrollTop=t,this.scrollHeight=t),this.scrollLeft>n&&(this.scrollLeft=n);let o=Math.abs(this.scrollTop-this.prevScrollTop),r=Math.abs(this.scrollLeft-this.prevScrollLeft);if(r&&(this.prevScrollLeft=this.scrollLeft,this._viewportScrollContainerX.scrollLeft=this.scrollLeft,this._headerScrollContainer.scrollLeft=this.scrollLeft,this._topPanelScrollers[0].scrollLeft=this.scrollLeft,this._options.createFooterRow&&(this._footerRowScrollContainer.scrollLeft=this.scrollLeft),this._options.createPreHeaderPanel&&(this.hasFrozenColumns()?this._preHeaderPanelScrollerR.scrollLeft=this.scrollLeft:this._preHeaderPanelScroller.scrollLeft=this.scrollLeft),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller.scrollLeft=this.scrollLeft),this.hasFrozenColumns()?(this.hasFrozenRows&&(this._viewportTopR.scrollLeft=this.scrollLeft),this._headerRowScrollerR.scrollLeft=this.scrollLeft):(this.hasFrozenRows&&(this._viewportTopL.scrollLeft=this.scrollLeft),this._headerRowScrollerL.scrollLeft=this.scrollLeft)),o&&!this._options.autoHeight)if(this.vScrollDir=this.prevScrollTop<this.scrollTop?1:-1,this.prevScrollTop=this.scrollTop,e==="mousewheel"&&(this._viewportScrollContainerY.scrollTop=this.scrollTop),this.hasFrozenColumns()&&(this.hasFrozenRows&&!this._options.frozenBottom?this._viewportBottomL.scrollTop=this.scrollTop:this._viewportTopL.scrollTop=this.scrollTop),o<this.viewportH)this.scrollTo(this.scrollTop+this.offset);else{let i=this.offset;this.h===this.viewportH?this.page=0:this.page=Math.min(this.n-1,Math.floor(this.scrollTop*((this.th-this.viewportH)/(this.h-this.viewportH))*(1/this.ph))),this.offset=Math.round(this.page*this.cj),i!==this.offset&&this.invalidateAllRows()}if(r||o){let i=Math.abs(this.lastRenderedScrollLeft-this.scrollLeft),a=Math.abs(this.lastRenderedScrollTop-this.scrollTop);(i>20||a>20)&&(this._options.forceSyncScrolling||a<this.viewportH&&i<this.viewportW?this.render():this.scrollThrottle.enqueue(),this.trigger(this.onViewportChanged,{}))}return this.trigger(this.onScroll,{triggeredBy:e,scrollHeight:this.scrollHeight,scrollLeft:this.scrollLeft,scrollTop:this.scrollTop}),!!(r||o)}scrollCellIntoView(e,t,n){if(this.scrollRowIntoView(e,n),t<=this._options.frozenColumn)return;let o=this.getColspan(e,t);this.internalScrollColumnIntoView(this.columnPosLeft[t],this.columnPosRight[t+(o>1?o-1:0)])}internalScrollColumnIntoView(e,t){let n=this.scrollLeft+V.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>n&&(this._viewportScrollContainerX.scrollLeft=Math.min(e,t-this._viewportScrollContainerX.clientWidth),this.handleScroll(),this.render())}scrollColumnIntoView(e){this.internalScrollColumnIntoView(this.columnPosLeft[e],this.columnPosRight[e])}updatePagingStatusFromView(e){this.pagingActive=e.pageSize!==0,this.pagingIsLastPage=e.pageNum===e.totalPages-1}getRowSpanColumnIntersects(e){return this.getRowSpanIntersection(e,"columns")}getRowSpanIntersect(e){return this.getRowSpanIntersection(e)}getRowSpanIntersection(e,t){let n=[],o=null;for(let r=0,i=this.columns.length;r<i;r++){let a=this._colsWithRowSpanCache[r];if(a)for(let l of Array.from(a)){let[d,u]=l.split(":").map(Number);if(e>=d&&e<=u)if(t==="columns")n.push(r);else{o=d;break}}}return t==="columns"?n:o}getParentRowSpanByCell(e,t,n=!0){let o=null,r=this._colsWithRowSpanCache[t]||new Set;for(let i of Array.from(r)){let[a,l]=i.split(":").map(Number);if((n?e>a:e>=a)&&e<=l){o={start:a,end:l,range:i};break}}return o}remapAllColumnsRowSpan(){let e=this.getDataLength();if(e>0){this._colsWithRowSpanCache={};for(let t=0;t<e;t++)this.remapRowSpanMetadataByRow(t);this._rowSpanIsCached=!0}}remapRowSpanMetadataByRow(e){let t=this.getItemMetadaWhenExists(e);t?.columns&&Object.keys(t.columns).forEach(n=>{let o=+n,r=t.columns[o],i=+(r?.colspan||1),a=+(r?.rowspan||1);this.remapRowSpanMetadata(e,o,i,a)})}remapRowSpanMetadata(e,t,n,o){var r,i,a;if(o>1){let l=`${e}:${e+o-1}`;if((r=this._colsWithRowSpanCache)[t]??(r[t]=new Set),this._colsWithRowSpanCache[t].add(l),n>1)for(let d=1;d<n;d++)(i=this._colsWithRowSpanCache)[a=t+d]??(i[a]=new Set),this._colsWithRowSpanCache[t+d].add(l)}}createEmptyCachingRow(){return{rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]}}scrollRowIntoView(e,t){if(!this.hasFrozenRows||!this._options.frozenBottom&&e>this.actualFrozenRow-1||this._options.frozenBottom&&e<this.actualFrozenRow-1){let n=V.height(this._viewportScrollContainerY),o=this.hasFrozenRows&&!this._options.frozenBottom?e-this._options.frozenRow:e,r=o*this._options.rowHeight,i=(o+1)*this._options.rowHeight-n+(this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0);(o+1)*this._options.rowHeight>this.scrollTop+n+this.offset?(this.scrollTo(t?r:i),this.render()):o*this._options.rowHeight<this.scrollTop+this.offset&&(this.scrollTo(t?i:r),this.render())}}scrollRowToTop(e){this.scrollTo(e*this._options.rowHeight),this.render()}scrollPage(e){let t=e*this.numVisibleRows,n=this.scrollTop+this._options.rowHeight-1;if(this.scrollTo((this.getRowFromPosition(n)+t)*this._options.rowHeight),this.render(),this._options.enableCellNavigation&&V.isDefined(this.activeRow)){let o=this.activeRow+t,r=this.getDataLengthIncludingAddNew();o>=r&&(o=r-1),o<0&&(o=0);let i=e===1?this.gotoDown(o-1||0,this.activeCell,this.activePosY,this.activePosX):this.gotoUp(o+1,this.activeCell,this.activePosY,this.activePosX);this.navigateToPos(i)}}navigatePageDown(){this.scrollPage(1)}navigatePageUp(){this.scrollPage(-1)}navigateTop(){this.unsetActiveCell(),this.navigateToRow(0)}navigateBottom(){let e=this.getDataLength()-1,t=this.getParentRowSpanByCell(e,this.activeCell)?.start??e;do if(this._options.enableCellRowSpan&&this.setActiveRow(t),this.navigateToRow(t)&&this.activeCell===this.activePosX||!V.isDefined(this.activeCell))break;while(--t>0)}navigateToRow(e){let t=this.getDataLength();if(!t)return!1;e<0?e=0:e>=t&&(e=t-1),this.scrollCellIntoView(e,0,!0);let n=!V.isDefined(this.activeCell)||!V.isDefined(this.activeRow);if(this._options.enableCellNavigation&&V.isDefined(this.activeRow)){let o=0,r=null,i=this.activePosX;for(;o<=this.activePosX;)this.canCellBeActive(e,o)&&(r=o,(!V.isDefined(this.activeCell)||o===this.activeCell)&&(n=!0)),o+=this.getColspan(e,o);r!==null?(this.setActiveCellInternal(this.getCellNode(e,r)),this.activePosX=i):this.resetActiveCell()}return n}getColspan(e,t){let n=this.getItemMetadaWhenExists(e);if(!n||!n.columns)return 1;t>=this.columns.length&&(t=this.columns.length-1);let o=(n.columns[this.columns[t].id]||n.columns[t])?.colspan;return o==="*"?o=this.columns.length-t:o=o||1,o}queuePostProcessedRowForCleanup(e,t,n){this.postProcessgroupId++,typeof t=="object"&&Object.keys(t).forEach(o=>{t.hasOwnProperty(o)&&this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e.cellNodesByColumnIdx[+o],columnIdx:+o,rowIdx:n})}),e.rowNode||(e.rowNode=[]),this.postProcessedCleanupQueue.push({actionType:"R",groupId:this.postProcessgroupId,node:e.rowNode}),e.rowNode?.forEach(o=>o.remove())}queuePostProcessedCellForCleanup(e,t,n){this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e,columnIdx:t,rowIdx:n}),e.remove()}applyFormatResultToCellNode(e,t,n){if(e==null&&(e=""),Object.prototype.toString.call(e)!=="[object Object]"){this.applyHtmlCode(t,e);return}let o=e.html||e.text;this.applyHtmlCode(t,o),e.removeClasses&&!n&&t.classList.remove(...V.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(...V.classNameToList(e.addClasses)),e.toolTip&&t.setAttribute("title",e.toolTip)}startPostProcessing(){this._options.enableAsyncPostRender&&(window.clearTimeout(this.h_postrender),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay))}startPostProcessingCleanup(){this._options.enableAsyncPostRenderCleanup&&(window.clearTimeout(this.h_postrenderCleanup),this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay))}invalidatePostProcessingResults(e){typeof this.postProcessedRows[e]=="object"&&Object.keys(this.postProcessedRows[e]).forEach(t=>{this.postProcessedRows[e].hasOwnProperty(t)&&(this.postProcessedRows[e][t]="C")}),this.postProcessFromRow=Math.min(this.postProcessFromRow,e),this.postProcessToRow=Math.max(this.postProcessToRow,e),this.startPostProcessing()}asyncPostProcessRows(){let e=this.getDataLength();for(;this.postProcessFromRow<=this.postProcessToRow;){let t=this.vScrollDir>=0?this.postProcessFromRow++:this.postProcessToRow--,n=this.rowsCache[t];if(!(!n||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(n.cellNodesByColumnIdx).forEach(o=>{if(n.cellNodesByColumnIdx.hasOwnProperty(o)){let r=+o,i=this.columns[r],a=this.postProcessedRows[t][r];if(i.asyncPostRender&&a!=="R"){let l=n.cellNodesByColumnIdx[r];l&&i.asyncPostRender(l,t,this.getDataItem(t),i,a==="C"),this.postProcessedRows[t][r]="R"}}}),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay);return}}}asyncPostProcessCleanupRows(){if(this.postProcessedCleanupQueue.length>0){let e=this.postProcessedCleanupQueue[0].groupId;for(;this.postProcessedCleanupQueue.length>0&&this.postProcessedCleanupQueue[0].groupId===e;){let t=this.postProcessedCleanupQueue.shift();if(t?.actionType==="R"&&t.node.forEach(n=>{n.remove()}),t?.actionType==="C"){let n=this.columns[t.columnIdx];n.asyncPostRenderCleanup&&t.node&&n.asyncPostRenderCleanup(t.node,t.rowIdx,n)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let n,o,r;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(i=>{this.rowsCache&&(r=t?.[i],o=e?.[i],r&&Object.keys(r).forEach(a=>{(!o||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.remove(r[a]))}),o&&Object.keys(o).forEach(a=>{(!r||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.add(o[a]))}))})}addCellCssStyles(e,t){if(this.cellCssClasses[e])throw new Error(`SlickGrid addCellCssStyles: cell CSS hash with key "${e}" already exists.`);this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,null),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}removeCellCssStyles(e){this.cellCssClasses[e]&&(this.updateCellCssStylesOnRenderedRows(null,this.cellCssClasses[e]),delete this.cellCssClasses[e],this.trigger(this.onCellCssStylesChanged,{key:e,hash:null,grid:this}))}setCellCssStyles(e,t){let n=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,n),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,n=250){let o=(r,i)=>{i<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{i%2===0?r.classList.add(this._options.cellFlashingCssClass||""):r.classList.remove(this._options.cellFlashingCssClass||""),o(r,i-1)},n))};if(this.rowsCache[e]){let r=this.getCellNode(e,t);r&&o(r,5)}}highlightRow(e,t){let n=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(n?.rowNode)&&this._options.rowHighlightCssClass&&(n.rowNode.forEach(o=>o.classList.add(...V.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{n.rowNode?.forEach(o=>o.classList.remove(...V.classNameToList(this._options.rowHighlightCssClass)))},t))}_getContainerElement(e,t,n){if(!e)return;t||(t=0),n||(n=0);let o=typeof t=="number"?t:this.getColumnIndex(t),r=this.hasFrozenRows&&n>=this.actualFrozenRow+(this._options.frozenBottom?0:1),i=this.hasFrozenColumns()&&o>this._options.frozenColumn;return e[(r?2:0)+(i?1:0)]}measureScrollbar(){let e="";this._viewport.forEach(r=>e+=r.className);let t=V.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),n=V.createDomElement("div",{style:{width:"200px",height:"200px",overflow:"auto"}},t),o={width:t.offsetWidth-t.clientWidth,height:t.offsetHeight-t.clientHeight};return n.remove(),t.remove(),o}getMaxSupportedCssHeight(){let e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?this._options.ffMaxSupportedCssHeight:this._options.maxSupportedCssHeight,n=V.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let o=e*2;V.height(n,o);let r=V.height(n);if(o>t||r!==o)break;e=o}return n.remove(),e}getUID(){return this.uid}getHeaderColumnWidthDiff(){return this.headerColumnWidthDiff}getScrollbarDimensions(){return this.scrollbarDimensions}getDisplayedScrollbarDimensions(){return{width:this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0,height:this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0}}getAbsoluteColumnMinWidth(){return this.absoluteColumnMinWidth}getVBoxDelta(e){let t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=getComputedStyle(e),o=0;return t.forEach(r=>o+=V.toFloat(n[r])),o}measureCellPaddingAndBorder(){let e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=this._headers[0];this.headerColumnWidthDiff=this.headerColumnHeightDiff=0,this.cellWidthDiff=this.cellHeightDiff=0;let o=V.createDomElement("div",{className:"ui-state-default slick-state-default slick-header-column",style:{visibility:"hidden"},textContent:"-"},n),r=getComputedStyle(o);r.boxSizing!=="border-box"&&(e.forEach(a=>this.headerColumnWidthDiff+=V.toFloat(r[a])),t.forEach(a=>this.headerColumnHeightDiff+=V.toFloat(r[a]))),o.remove();let i=V.createDomElement("div",{className:"slick-row"},this._canvas[0]);o=V.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},i),r=getComputedStyle(o),r.boxSizing!=="border-box"&&(e.forEach(a=>this.cellWidthDiff+=V.toFloat(r[a])),t.forEach(a=>this.cellHeightDiff+=V.toFloat(r[a]))),i.remove(),this.absoluteColumnMinWidth=Math.max(this.headerColumnWidthDiff,this.cellWidthDiff)}clearAllTimers(){window.clearTimeout(this._columnResizeTimer),window.clearTimeout(this._executionBlockTimer),window.clearTimeout(this._flashCellTimer),window.clearTimeout(this._highlightRowTimer),window.clearTimeout(this.h_editorLoader)}LogColWidths(){let e="Col Widths:";for(let t=0;t<this.columns.length;t++)e+=" "+(this.columns[t].hidden?"H":this.columns[t].width);console.log(e)}simpleArrayEquals(e,t){return Array.isArray(e)&&Array.isArray(t)&&t.sort().toString()!==e.sort().toString()}defaultFormatter(e,t,n){return V.isDefined(n)?(n+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}cellExists(e,t){return!(e<0||e>=this.getDataLength()||t<0||t>=this.columns.length)}getCellFromNode(e){let t=/l\d+/.exec(e.className);if(!t)throw new Error(`SlickGrid getCellFromNode: cannot get cell - ${e.className}`);return parseInt(t[0].substr(1,t[0].length-1),10)}getRowFromNode(e){for(let t in this.rowsCache)if(this.rowsCache){for(let n in this.rowsCache[t].rowNode)if(this.rowsCache[t].rowNode?.[+n]===e)return t?parseInt(t,10):0}return null}clearTextSelection(){if(document.selection?.empty)try{document.selection.empty()}catch{}else if(window.getSelection){let e=window.getSelection();e?.removeAllRanges&&e.removeAllRanges()}}disableSelection(e){e.forEach(t=>{t.setAttribute("unselectable","on"),t.style.mozUserSelect="none",this._bindingEventService.bind(t,"selectstart",()=>!1)})}getPubSubService(){return this._pubSubService}getCellFromPoint(e,t){let n=this.getRowFromPosition(t),o=0,r=0;for(let i=0;i<this.columns.length&&r<=e;i++)this.columns[i]&&(r+=this.columns[i].width,o++);return o-=1,n<-1&&(n=-1),{row:n,cell:o}}getPluginByName(e){for(let t=this.plugins.length-1;t>=0;t--)if(this.plugins[t]?.pluginName===e)return this.plugins[t]}getContainerNode(){return this._container}getCellHeight(e,t){let n=this._options.rowHeight||0;if(t>1){let o=e+t-1;n=this.getRowBottom(o)-this.getRowTop(e)}else{let o=this.getRowHeight();o!==n-this.cellHeightDiff&&(n=o)}return n-=this.cellHeightDiff,Math.ceil(n)}setDifference(e,t){return new Set(Array.from(e).filter(n=>!t.has(n)))}getCellNodeBox(e,t){if(!this.cellExists(e,t))return null;let n=this.getFrozenRowOffset(e),o=this.getRowTop(e)-n,r=o+this._options.rowHeight-1,i=0;for(let l=0;l<t;l++)!this.columns[l]||this.columns[l].hidden||(i+=this.columns[l].width||0,this._options.frozenColumn===l&&(i=0));let a=i+(this.columns[t]?.width||0);return{top:o,left:i,bottom:r,right:a}}absBox(e){let t={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:e.offsetWidth,height:e.offsetWidth,visible:!0};t.bottom=t.top+t.height,t.right=t.left+t.width;let n=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let o=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&o.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&o.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===n&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,n=e.offsetParent),t.bottom=t.top+t.height,t.right=t.left+t.width}return t}getActiveCellPosition(){return this.absBox(this.activeCellNode)}getGridPosition(){return this.absBox(this._container)}getCellEditor(){return this.currentEditor}getActiveCell(){return this.activeCellNode?{row:this.activeRow,cell:this.activeCell}:null}getActiveCellNode(){return this.activeCellNode}getTextSelection(){let e=null;if(window.getSelection){let t=window.getSelection();(t?.rangeCount??0)>0&&(e=t.getRangeAt(0))}return e}setTextSelection(e){if(window.getSelection&&e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}}sanitizeHtmlString(e,t){if(!this._options.sanitizer||typeof e!="string")return e;let n=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&n!==e&&(console.log(`sanitizer altered html: ${e} --> ${n}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),n}getRowspan(e,t){let n=1,o=this.getItemMetadaWhenExists(e);return o?.columns&&Object.keys(o.columns).forEach(r=>{let i=Number(r);if(i===t){let a=o.columns[i];n=Number(a?.rowspan||1)}}),n}findFocusableRow(e,t,n){let o=e,r=this._colsWithRowSpanCache[t]||new Set,i=!1;return Array.from(r).forEach(a=>{let[l,d]=a.split(":").map(Number);!i&&e>=l&&e<=d&&(o=n==="up"?l:d,this.canCellBeActive(o,t)&&(i=!0))}),o<0&&(o=0),o}findFirstFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);if(n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)){o=t;break}t+=this.getColspan(n,t)}return{cell:o,row:n}}findLastFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)&&(o=t),t+=this.getColspan(n,t)}return{cell:o,row:n}}rowsToRanges(e){let t=[],n=this.columns.length-1;for(let o=0;o<e.length;o++)t.push(new kB(e[o],0,e[o],n));return t}findSpanStartingCell(e,t){let n=this.getParentRowSpanByCell(e,t),o=n!==null&&n.start!==e?n.start:e,r=0,i=0;for(;r<this.columns.length;){if(r+=this.getColspan(o,r),r>t)return r=i,{cell:r,row:o};i=r}return{cell:r,row:o}}gotoRight(e,t,n,o){if(t>=this.columns.length)return null;let r=t+1,i=n;do{let a=this.findSpanStartingCell(n,r);if(i=a.row,r=a.cell,this.canCellBeActive(i,r)&&r>t)break;r+=this.getColspan(i,a.cell)}while(r<this.columns.length);return r<this.columns.length?{row:i,cell:r,posX:r,posY:n}:null}gotoLeft(e,t,n,o){if(t<=0)return null;let r=this.findFirstFocusableCell(e);if(r.cell===null||r.cell>=t)return null;let i,a={row:e,cell:r.cell,posX:r.cell,posY:n};for(;;){if(i=this.gotoRight(a.row,a.cell,a.posY,a.posX),!i)return null;if(i.cell>=t){let l=this.findFocusableRow(n,a.cell,"up");return l!==a.row&&(a.row=l),a}a=i}}gotoDown(e,t,n,o){let r,i=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,o),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e<=i&&!this.canCellBeActive(e,r));return e<=i?{row:e,cell:r,posX:o,posY:e}:null}gotoUp(e,t,n,o){let r;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,o,"up"),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,r));return t<=this.columns.length?{row:e,cell:r,posX:o,posY:e}:null}gotoNext(e,t,n,o){if(!V.isDefined(e)&&!V.isDefined(t)&&(e=t=n=o=0,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoRight(e,t,n,o);if(!r){let i;for(;!r&&++n<this.getDataLength()+(this._options.enableAddRow?1:0);)i=this.findFirstFocusableCell(n),i.cell!==null&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoPrev(e,t,n,o){if(!V.isDefined(e)&&!V.isDefined(t)&&(e=n=this.getDataLengthIncludingAddNew()-1,t=o=this.columns.length-1,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoLeft(e,t,n,o);if(!r){let i;for(;!r&&--n>=0;)i=this.findLastFocusableCell(n),i.cell>-1&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoRowStart(e,t,n,o){let r=this.findFirstFocusableCell(e);return r.cell===null?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}gotoRowEnd(e,t,n,o){let r=this.findLastFocusableCell(e);return r.cell===-1?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}navigateRight(){return this.navigate("right")}navigateLeft(){return this.navigate("left")}navigateDown(){return this.navigate("down")}navigateUp(){return this.navigate("up")}navigateNext(){return this.navigate("next")}navigatePrev(){return this.navigate("prev")}navigateRowStart(){return this.navigate("home")}navigateRowEnd(){return this.navigate("end")}navigateTopStart(){return this.navigateToRow(0),this.navigate("home")}navigateBottomEnd(){return this.navigateBottom(),this.navigate("end")}navigate(e){if(!this._options.enableCellNavigation||!this.activeCellNode&&e!=="prev"&&e!=="next")return!1;if(!this.getEditorLock()?.commitCurrentEdit())return!0;this.setFocus(),this.unsetActiveCell();let t={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1};this.tabbingDirection=t[e];let n={up:this.gotoUp,down:this.gotoDown,left:this.gotoLeft,right:this.gotoRight,prev:this.gotoPrev,next:this.gotoNext,home:this.gotoRowStart,end:this.gotoRowEnd}[e].call(this,this.activeRow,this.activeCell,this.activePosY,this.activePosX);return this.navigateToPos(n)}navigateToPos(e){if(e){if(this.hasFrozenRows&&this._options.frozenBottom&&e.row===this.getDataLength())return;let t=e.row===this.getDataLength();return(!this._options.frozenBottom&&e.row>=this.actualFrozenRow||this._options.frozenBottom&&e.row<this.actualFrozenRow)&&this.scrollCellIntoView(e.row,e.cell,!t&&this._options.emulatePagingWhenScrolling),this.setActiveCellInternal(this.getCellNode(e.row,e.cell)),this.activePosX=e.posX,this.activePosY=e.posY,!0}else return this.setActiveCellInternal(this.getCellNode(this.activeRow,this.activeCell)),!1}getCellNode(e,t){if(this.rowsCache[e]){this.ensureCellNodesInRowsCache(e);try{return this.rowsCache[e].cellNodesByColumnIdx.length>t?this.rowsCache[e].cellNodesByColumnIdx[t]:null}catch{return this.rowsCache[e].cellNodesByColumnIdx[t]}}return null}setActiveCell(e,t,n,o,r){this.initialized&&(e>this.getDataLength()||e<0||t>=this.columns.length||t<0||this._options.enableCellNavigation&&(this.scrollCellIntoView(e,t,!1),this.setActiveCellInternal(this.getCellNode(e,t),n,o,r)))}setActiveRow(e,t,n){this.initialized&&(e>this.getDataLength()||e<0||(t??0)>=this.columns.length||(t??0)<0||(this.activeRow=e,n||this.scrollCellIntoView(e,t||0,!1)))}canCellBeActive(e,t){if(!this._options.enableCellNavigation||e>=this.getDataLengthIncludingAddNew()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden||(this.getParentRowSpanByCell(e,t)?.start??e)!==e)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.focusable!==void 0)return!!n.focusable;let o=n?.columns;return o?.[this.columns[t].id]?.focusable!==void 0?!!o[this.columns[t].id].focusable:o?.[t]?.focusable!==void 0?!!o[t].focusable:!!this.columns[t].focusable}canCellBeSelected(e,t){if(e>=this.getDataLength()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.selectable!==void 0)return!!n.selectable;let o=n?.columns&&(n.columns[this.columns[t].id]||n.columns[t]);return o?.selectable!==void 0?!!o.selectable:!!this.columns[t].selectable}gotoCell(e,t,n,o){if(!this.initialized||!this.canCellBeActive(e,t)||!this.getEditorLock()?.commitCurrentEdit())return;this.scrollCellIntoView(e,t,!1);let r=this.getCellNode(e,t),i=this.columns[t],a=!!(this._options.editable&&i?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(r,n||e===this.getDataLength()||this._options.autoEdit,null,a,o),this.currentEditor||this.setFocus()}};/**
289
289
  * @license
290
290
  * (c) 2009-present Michael Leibman
291
291
  * michael{dot}leibman{at}gmail{dot}com
@@ -301,14 +301,14 @@ xe.version="2.30.1";VD(It);xe.fn=ve;xe.min=EM;xe.max=kM;xe.now=PM;xe.utc=$o;xe.u
301
301
  * This increases the speed dramatically, but can only be done safely because there are no event handlers
302
302
  * or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()
303
303
  * and do proper cleanup.
304
- */const DB={asyncEditorLoading:!1,autosizeColsMode:Db.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function OB({SlickDataView:e=xB,applyCellCssStyles:t,assignIds:n=!1,columnSorter:o=FW,columns:r,getItemMetadata:i,groups:a,idPropertyName:l="id",items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P=ED,onSelectedRowsChanged:D,options:x={},table:S}){Fe.useEffect(()=>{const C=new Mb,O=new dB({}),A=new fB({}),F=new e({groupItemMetadataProvider:a?C:void 0}),B=S.createGrid(F,[],x);B.setSelectionModel(new wB({selectActiveRow:!1})),B.registerPlugin(O),B.registerPlugin(C),i&&(F.getItemMetadata=i(B)),F.setItems(n?d.map(($,K)=>({...$,[l]:++K})):d.map($=>({...$})),l),B.invalidate(),F.onRowCountChanged.subscribe(P(S)),F.onRowsChanged.subscribe(TD(B)),B.onAddNewRow.subscribe(u),B.onCellChange.subscribe(p),m&&B.onMouseEnter.subscribe(m),v&&B.onMouseLeave.subscribe(v),D&&B.onSelectedRowsChanged.subscribe(D),f&&B.onBeforeEditCell.subscribe(f),y&&B.onClick.subscribe(y),w&&B.onDblClick.subscribe(w),B.onSort.subscribe(o.getSortFunction(S.id)),B.onContextMenu.subscribe(lW(S)),S.columnPicker&&B.onHeaderContextMenu.subscribe(cW(S));const R=Nv(S);return O.onCommand.subscribe(R),b&&(A.onCommand.subscribe(b),B.registerPlugin(A)),a&&(S.grouping={groups:a,isGrouped:S.grouping.isGrouped??!0}),t?.(B),()=>{O.onCommand.unsubscribe(R),b&&A.onCommand.unsubscribe(b),B.onAddNewRow.unsubscribe(u),B.onCellChange.unsubscribe(p),D&&B.onSelectedRowsChanged.unsubscribe(D),f&&B.onBeforeEditCell.unsubscribe(f),y&&B.onClick.unsubscribe(y),w&&B.onDblClick.unsubscribe(w),m&&B.onMouseEnter.unsubscribe(m),v&&B.onMouseLeave.unsubscribe(v),S.reset()}},[d]),Fe.useEffect(()=>{const C=S.grid;!C||!x||setTimeout(()=>{C.setOptions({...DB,...x}),C.render(),Fo.highlightAllColumns(S.filter.args,S.id),S.totalCalculator?.calculate(C),S.notifyObservers(),o.restoreSorting(S)},0)},[x,d]),Fe.useEffect(()=>{const C=S.grid;if(C&&r.length){if(r[0].id===au){const O=new iB;C.setColumns([{...O.getColumnDefinition(),focusable:!1},...r.slice(1)]),C.registerPlugin(O)}else C.setColumns(r);return S.columnPicker&&(S.columnPicker.setInitialColumns(C.getColumns(),S.id),C.setColumns(C.getColumns().filter(({id:O})=>S.columnPicker?!S.columnPicker.hiddenColumnIds.includes(O):!0))),Fo.highlightAllColumns(S.filter.args,S.id),S.filter.register(C,S.id),C.invalidate(),S.totalCalculator?.calculate(C),S.notifyObservers(),o.restoreSorting(S),S.hotKeysBehavior.pushToCommandQueue(C),()=>{S.hotKeysBehavior.resetQueue()}}},[r,d])}const MB=e=>(t,{grid:n,item:o})=>{IB(n,o),n.updateRowCount(),n.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(n)},IB=(e,t)=>{const n=e.getData(),o=n.getIdPropertyName(),i={...oW(n),...t,[o]:Bh(e),isEdited:!0,isNew:!0};n.addItem(i)};ie(An)(()=>({}));const Km=zs`
304
+ */const DB={asyncEditorLoading:!1,autosizeColsMode:Db.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function OB({SlickDataView:e=xB,applyCellCssStyles:t,assignIds:n=!1,columnSorter:o=FW,columns:r,getItemMetadata:i,groups:a,idPropertyName:l="id",items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P=ED,onSelectedRowsChanged:D,options:x={},table:S}){Ae.useEffect(()=>{const C=new Mb,O=new dB({}),A=new fB({}),F=new e({groupItemMetadataProvider:a?C:void 0}),B=S.createGrid(F,[],x);B.setSelectionModel(new wB({selectActiveRow:!1})),B.registerPlugin(O),B.registerPlugin(C),i&&(F.getItemMetadata=i(B)),F.setItems(n?d.map(($,K)=>({...$,[l]:++K})):d.map($=>({...$})),l),B.invalidate(),F.onRowCountChanged.subscribe(P(S)),F.onRowsChanged.subscribe(TD(B)),B.onAddNewRow.subscribe(u),B.onCellChange.subscribe(p),m&&B.onMouseEnter.subscribe(m),v&&B.onMouseLeave.subscribe(v),D&&B.onSelectedRowsChanged.subscribe(D),f&&B.onBeforeEditCell.subscribe(f),y&&B.onClick.subscribe(y),w&&B.onDblClick.subscribe(w),B.onSort.subscribe(o.getSortFunction(S.id)),B.onContextMenu.subscribe(lW(S)),S.columnPicker&&B.onHeaderContextMenu.subscribe(cW(S));const R=Nv(S);return O.onCommand.subscribe(R),b&&(A.onCommand.subscribe(b),B.registerPlugin(A)),a&&(S.grouping={groups:a,isGrouped:S.grouping.isGrouped??!0}),t?.(B),()=>{O.onCommand.unsubscribe(R),b&&A.onCommand.unsubscribe(b),B.onAddNewRow.unsubscribe(u),B.onCellChange.unsubscribe(p),D&&B.onSelectedRowsChanged.unsubscribe(D),f&&B.onBeforeEditCell.unsubscribe(f),y&&B.onClick.unsubscribe(y),w&&B.onDblClick.unsubscribe(w),m&&B.onMouseEnter.unsubscribe(m),v&&B.onMouseLeave.unsubscribe(v),S.reset()}},[d]),Ae.useEffect(()=>{const C=S.grid;!C||!x||setTimeout(()=>{C.setOptions({...DB,...x}),C.render(),Fo.highlightAllColumns(S.filter.args,S.id),S.totalCalculator?.calculate(C),S.notifyObservers(),o.restoreSorting(S)},0)},[x,d]),Ae.useEffect(()=>{const C=S.grid;if(C&&r.length){if(r[0].id===au){const O=new iB;C.setColumns([{...O.getColumnDefinition(),focusable:!1},...r.slice(1)]),C.registerPlugin(O)}else C.setColumns(r);return S.columnPicker&&(S.columnPicker.setInitialColumns(C.getColumns(),S.id),C.setColumns(C.getColumns().filter(({id:O})=>S.columnPicker?!S.columnPicker.hiddenColumnIds.includes(O):!0))),Fo.highlightAllColumns(S.filter.args,S.id),S.filter.register(C,S.id),C.invalidate(),S.totalCalculator?.calculate(C),S.notifyObservers(),o.restoreSorting(S),S.hotKeysBehavior.pushToCommandQueue(C),()=>{S.hotKeysBehavior.resetQueue()}}},[r,d])}const MB=e=>(t,{grid:n,item:o})=>{IB(n,o),n.updateRowCount(),n.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(n)},IB=(e,t)=>{const n=e.getData(),o=n.getIdPropertyName(),i={...oW(n),...t,[o]:Bh(e),isEdited:!0,isNew:!0};n.addItem(i)};ie(An)(()=>({}));const Km=zs`
305
305
  50% {
306
306
  background-color: #ffb1b1;
307
307
  }
308
- `,Ri="0.75rem",NB="24px",AB=ie(An)({backgroundColor:"transparent",fontFamily:"inherit",height:"100%",maxHeight:"100%",maxWidth:"100%",userSelect:"none","& .slick-header":{borderTopColor:"transparent","& .slick-header-column":{"&:last-child":{borderRightColor:"transparent"},"&.filter-active .slick-header-button::after":{width:"7px",height:"7px",content:"''",backgroundColor:"#2196f3",position:"absolute",borderRadius:"50%",border:"2px solid #f8f8f8",top:"3px",right:"3px"},"&:not([data-id=_checkbox_selector]):not([data-id=isEdited])":{"& .slick-column-name":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 16px)"}},"& .slick-column-name":{fontSize:Ri},"& .slick-header-button":{width:"19px",height:"12px","&::before":{position:"absolute",content:"''",width:"19px",height:"12px",top:"6px",right:"5px",backgroundImage:"repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",clipPath:"polygon(0% 0%, 100% 0%, 50% 110%)",backgroundColor:"transparent"}},"& .slick-resizable-handle":{boxShadow:"none"}}},"& .slick-viewport":{overflowX:"hidden !important",scrollbarWidth:"thin","& .slick-cell":{borderTop:"none",borderRightStyle:"solid",borderLeft:"none",borderWidth:"1px",display:"flex",fontSize:Ri,"&:last-child":{borderRight:"none"},"&.text-center":{justifyContent:"center",textAlign:"center"},"&.text-right":{justifyContent:"end",textAlign:"right"},"&.bold":{fontWeight:"bold"},"&.wink":{animation:`${Km} infinite 0.5s linear`,"& input":{animation:`${Km} infinite 0.5s linear`}},"& input.editor-text":{textAlign:"inherit"},"& #autocomplete":{boxShadow:"0 0 5px 1px gray",fontSize:Ri,margin:0,maxHeight:"300px",minWidth:"100%",overflow:"auto",padding:0,position:"absolute",top:NB,"& div":{fontSize:Ri,"&:hover":{cursor:"pointer"},"& strong":{color:"#007bff"}}}}},"& .slick-footerrow":{borderTop:"1px solid silver","& .slick-footerrow-column":{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",fontSize:Ri,paddingRight:"5px",borderBottom:"none",fontWeight:"bold","&:last-child":{borderRight:"none"}}}}),FB={Container:AB},LB=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P,onSelectedRowsChanged:D,options:x,table:S})=>(OB({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u||MB(S),onBeforeEditCell:f,onCellChange:p||RD(S),onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P,onSelectedRowsChanged:D,options:x,table:S}),uW(S),mW(S),pW(S),E.jsx(FB.Container,{id:S.id,className:"slick-container"})),$B=ie(An)({height:"100%",width:"100%"}),VB=ie(eh)({borderRadius:"10px",height:"100%",width:"100%"}),Xm={Skeleton:VB,Wrapper:$B},jB=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,isLoading:d,items:u,onAddNewRow:f,onBeforeEditCell:p,onCellChange:y,onClick:w,onDblClick:b,onHeaderMenuCommand:m,onMouseEnter:v,onMouseLeave:P,onRowCountChanged:D,onSelectedRowsChanged:x,options:S,table:C})=>d?E.jsx(Xm.Skeleton,{animation:"wave",variant:"rectangular"}):E.jsxs(Xm.Wrapper,{className:"slick-table",children:[E.jsx(LB,{SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:u,onAddNewRow:f,onBeforeEditCell:p,onCellChange:y,onClick:w,onDblClick:b,onHeaderMenuCommand:m,onMouseEnter:v,onMouseLeave:P,onRowCountChanged:D,onSelectedRowsChanged:x,options:S,table:C}),E.jsx(Fj,{tableId:C.id}),E.jsx(cj,{tableId:C.id}),E.jsx(xj,{tableId:C.id}),E.jsx(uA,{tableId:C.id})]}),BB={cssClass:"text-center",id:au,field:au};function WB(e,t,n){return n?"<span>&#9998;</span>":""}const HB={id:"isEdited",name:"&#9998;",field:"isEdited",formatter:WB,focusable:!1,sortable:!0,sortAs:So.NUMBER,cssClass:"text-center",maxWidth:30};class zB{passed(t,n,o){if(!n[1]&&!n[2])return!0;switch(o){case je.Boolean:return this.boolean(t,n);case je.DateBetween:return this.dateBetween(t,n);case je.DateEqual:return this.dateEqual(t,n[1]);case je.DateFrom:return this.dateFrom(t,n[1]);case je.DateTo:return this.dateTo(t,n[1]);case je.MultipleSelect:return this.multipleSelect(t,n[1]);case je.NumberBetween:return this.numberBetween(t,n);case je.NumberEqual:return this.numberEqual(t,n[1]);case je.NumberFrom:return this.numberFrom(t,n[1]);case je.NumberTo:return this.numberTo(t,n[1]);case je.TextContain:return this.textContain(t,n[1]);case je.TextEqual:return this.textEqual(t,n[1]);case je.TextNotContain:return!this.textContain(t,n[1]);case je.TextNotEqual:return!this.textEqual(t,n[1])}}boolean(t,n){return n[1]?!!t:n[2]?!t:!0}dateBetween(t,n){const o=n[1],r=n[2];return o?r?this.dateFrom(t,o)&&this.dateTo(t,r):this.dateFrom(t,o):this.dateTo(t,r)}dateEqual(t,n){return n===t}dateFrom(t,n){return _s(t)>=_s(n)}dateTo(t,n){return _s(t)<=_s(n)}multipleSelect(t,n){const o=JSON.parse(n);return o.includes("All")?!0:o.includes(t)}numberBetween(t,n){const o=n[1]||0,r=n[2]||0;return o?r?this.numberFrom(t,o)&&this.numberTo(t,r):Number(t)>=Number(o):Number(t)<=Number(r)}numberEqual(t,n){return Number(n)===Number(t)}numberFrom(t,n){return Number(t)>=Number(n)}numberTo(t,n){return Number(t)<=Number(n)}textEqual(t,n){return(t||"").toLowerCase()===n.toLowerCase()}textContain(t,n){return(t||"").toLowerCase().match(n.toLowerCase())}}const YB=new zB,UB=[fn.Date,fn.Boolean,fn.Number];class qB extends Iv{filterFn(t,n){if(!n.columnFilters)return!0;const o=this.grid;if(!o)return!0;const r=o.getColumns(),i=Object.keys(n.columnFilters);for(let a=0;a<i.length;a++){const l=i[a],d=r[o.getColumnIndex(l)];if(!d)continue;const{filterId:u,group:f,value:p}=n.columnFilters[l];let y=t[d?.field];if(!UB.includes(f)){const w=d?.formatter;w&&(y=w(0,0,y,d,t,o))}if(!YB.passed(y,p,u))return!1}return!0}reset(){this.filter.reset(),this.tableId&&Fo.highlightAllColumns(this.args,this.tableId)}}function GB(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vl={exports:{}},KB=vl.exports,Zm;function XB(){return Zm||(Zm=1,function(e,t){(function(n,o){e.exports=o()})(KB,function(){var n;function o(){return n.apply(null,arguments)}function r(c){n=c}function i(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function a(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function l(c,h){return Object.prototype.hasOwnProperty.call(c,h)}function d(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var h;for(h in c)if(l(c,h))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function p(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function y(c,h){var g=[],_,I=c.length;for(_=0;_<I;++_)g.push(h(c[_],_));return g}function w(c,h){for(var g in h)l(h,g)&&(c[g]=h[g]);return l(h,"toString")&&(c.toString=h.toString),l(h,"valueOf")&&(c.valueOf=h.valueOf),c}function b(c,h,g,_){return lf(c,h,g,_,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(c){return c._pf==null&&(c._pf=m()),c._pf}var P;Array.prototype.some?P=Array.prototype.some:P=function(c){var h=Object(this),g=h.length>>>0,_;for(_=0;_<g;_++)if(_ in h&&c.call(this,h[_],_,h))return!0;return!1};function D(c){var h=null,g=!1,_=c._d&&!isNaN(c._d.getTime());if(_&&(h=v(c),g=P.call(h.parsedDateParts,function(I){return I!=null}),_=h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&g),c._strict&&(_=_&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=_;else return _;return c._isValid}function x(c){var h=b(NaN);return c!=null?w(v(h),c):v(h).userInvalidated=!0,h}var S=o.momentProperties=[],C=!1;function O(c,h){var g,_,I,X=S.length;if(u(h._isAMomentObject)||(c._isAMomentObject=h._isAMomentObject),u(h._i)||(c._i=h._i),u(h._f)||(c._f=h._f),u(h._l)||(c._l=h._l),u(h._strict)||(c._strict=h._strict),u(h._tzm)||(c._tzm=h._tzm),u(h._isUTC)||(c._isUTC=h._isUTC),u(h._offset)||(c._offset=h._offset),u(h._pf)||(c._pf=v(h)),u(h._locale)||(c._locale=h._locale),X>0)for(g=0;g<X;g++)_=S[g],I=h[_],u(I)||(c[_]=I);return c}function A(c){O(this,c),this._d=new Date(c._d!=null?c._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,o.updateOffset(this),C=!1)}function F(c){return c instanceof A||c!=null&&c._isAMomentObject!=null}function B(c){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+c)}function R(c,h){var g=!0;return w(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,c),g){var _=[],I,X,de,ke=arguments.length;for(X=0;X<ke;X++){if(I="",typeof arguments[X]=="object"){I+=`
308
+ `,Ri="0.75rem",NB="24px",AB=ie(An)({backgroundColor:"transparent",fontFamily:"inherit",height:"100%",maxHeight:"100%",maxWidth:"100%",userSelect:"none","& .slick-header":{borderTopColor:"transparent","& .slick-header-column":{"&:last-child":{borderRightColor:"transparent"},"&.filter-active .slick-header-button::after":{width:"7px",height:"7px",content:"''",backgroundColor:"#2196f3",position:"absolute",borderRadius:"50%",border:"2px solid #f8f8f8",top:"3px",right:"3px"},"&:not([data-id=_checkbox_selector]):not([data-id=isEdited])":{"& .slick-column-name":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 16px)"}},"& .slick-column-name":{fontSize:Ri},"& .slick-header-button":{width:"19px",height:"12px","&::before":{position:"absolute",content:"''",width:"19px",height:"12px",top:"6px",right:"5px",backgroundImage:"repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",clipPath:"polygon(0% 0%, 100% 0%, 50% 110%)",backgroundColor:"transparent"}},"& .slick-resizable-handle":{boxShadow:"none"}}},"& .slick-viewport":{overflowX:"hidden !important",scrollbarWidth:"thin","& .slick-cell":{borderTop:"none",borderRightStyle:"solid",borderLeft:"none",borderWidth:"1px",display:"flex",fontSize:Ri,"&:last-child":{borderRight:"none"},"&.text-center":{justifyContent:"center",textAlign:"center"},"&.text-right":{justifyContent:"end",textAlign:"right"},"&.bold":{fontWeight:"bold"},"&.wink":{animation:`${Km} infinite 0.5s linear`,"& input":{animation:`${Km} infinite 0.5s linear`}},"& input.editor-text":{textAlign:"inherit"},"& #autocomplete":{boxShadow:"0 0 5px 1px gray",fontSize:Ri,margin:0,maxHeight:"300px",minWidth:"100%",overflow:"auto",padding:0,position:"absolute",top:NB,"& div":{fontSize:Ri,"&:hover":{cursor:"pointer"},"& strong":{color:"#007bff"}}}}},"& .slick-footerrow":{borderTop:"1px solid silver","& .slick-footerrow-column":{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",fontSize:Ri,paddingRight:"5px",borderBottom:"none",fontWeight:"bold","&:last-child":{borderRight:"none"}}}}),FB={Container:AB},LB=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P,onSelectedRowsChanged:D,options:x,table:S})=>(OB({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u||MB(S),onBeforeEditCell:f,onCellChange:p||RD(S),onClick:y,onDblClick:w,onHeaderMenuCommand:b,onMouseEnter:m,onMouseLeave:v,onRowCountChanged:P,onSelectedRowsChanged:D,options:x,table:S}),uW(S),mW(S),pW(S),E.jsx(FB.Container,{id:S.id,className:"slick-container"})),$B=ie(An)({height:"100%",width:"100%"}),VB=ie(eh)({borderRadius:"10px",height:"100%",width:"100%"}),Xm={Skeleton:VB,Wrapper:$B},jB=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,isLoading:d,items:u,onAddNewRow:f,onBeforeEditCell:p,onCellChange:y,onClick:w,onDblClick:b,onHeaderMenuCommand:m,onMouseEnter:v,onMouseLeave:P,onRowCountChanged:D,onSelectedRowsChanged:x,options:S,table:C})=>d?E.jsx(Xm.Skeleton,{animation:"wave",variant:"rectangular"}):E.jsxs(Xm.Wrapper,{className:"slick-table",children:[E.jsx(LB,{SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:u,onAddNewRow:f,onBeforeEditCell:p,onCellChange:y,onClick:w,onDblClick:b,onHeaderMenuCommand:m,onMouseEnter:v,onMouseLeave:P,onRowCountChanged:D,onSelectedRowsChanged:x,options:S,table:C}),E.jsx(Fj,{tableId:C.id}),E.jsx(cj,{tableId:C.id}),E.jsx(xj,{tableId:C.id}),E.jsx(uA,{tableId:C.id})]}),BB={cssClass:"text-center",id:au,field:au};function WB(e,t,n){return n?"<span>&#9998;</span>":""}const HB={id:"isEdited",name:"&#9998;",field:"isEdited",formatter:WB,focusable:!1,sortable:!0,sortAs:_o.NUMBER,cssClass:"text-center",maxWidth:30};class zB{passed(t,n,o){if(!n[1]&&!n[2])return!0;switch(o){case je.Boolean:return this.boolean(t,n);case je.DateBetween:return this.dateBetween(t,n);case je.DateEqual:return this.dateEqual(t,n[1]);case je.DateFrom:return this.dateFrom(t,n[1]);case je.DateTo:return this.dateTo(t,n[1]);case je.MultipleSelect:return this.multipleSelect(t,n[1]);case je.NumberBetween:return this.numberBetween(t,n);case je.NumberEqual:return this.numberEqual(t,n[1]);case je.NumberFrom:return this.numberFrom(t,n[1]);case je.NumberTo:return this.numberTo(t,n[1]);case je.TextContain:return this.textContain(t,n[1]);case je.TextEqual:return this.textEqual(t,n[1]);case je.TextNotContain:return!this.textContain(t,n[1]);case je.TextNotEqual:return!this.textEqual(t,n[1])}}boolean(t,n){return n[1]?!!t:n[2]?!t:!0}dateBetween(t,n){const o=n[1],r=n[2];return o?r?this.dateFrom(t,o)&&this.dateTo(t,r):this.dateFrom(t,o):this.dateTo(t,r)}dateEqual(t,n){return n===t}dateFrom(t,n){return _s(t)>=_s(n)}dateTo(t,n){return _s(t)<=_s(n)}multipleSelect(t,n){const o=JSON.parse(n);return o.includes("All")?!0:o.includes(t)}numberBetween(t,n){const o=n[1]||0,r=n[2]||0;return o?r?this.numberFrom(t,o)&&this.numberTo(t,r):Number(t)>=Number(o):Number(t)<=Number(r)}numberEqual(t,n){return Number(n)===Number(t)}numberFrom(t,n){return Number(t)>=Number(n)}numberTo(t,n){return Number(t)<=Number(n)}textEqual(t,n){return(t||"").toLowerCase()===n.toLowerCase()}textContain(t,n){return(t||"").toLowerCase().match(n.toLowerCase())}}const YB=new zB,UB=[fn.Date,fn.Boolean,fn.Number];class qB extends Iv{filterFn(t,n){if(!n.columnFilters)return!0;const o=this.grid;if(!o)return!0;const r=o.getColumns(),i=Object.keys(n.columnFilters);for(let a=0;a<i.length;a++){const l=i[a],d=r[o.getColumnIndex(l)];if(!d)continue;const{filterId:u,group:f,value:p}=n.columnFilters[l];let y=t[d?.field];if(!UB.includes(f)){const w=d?.formatter;w&&(y=w(0,0,y,d,t,o))}if(!YB.passed(y,p,u))return!1}return!0}reset(){this.filter.reset(),this.tableId&&Fo.highlightAllColumns(this.args,this.tableId)}}function GB(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vl={exports:{}},KB=vl.exports,Zm;function XB(){return Zm||(Zm=1,function(e,t){(function(n,o){e.exports=o()})(KB,function(){var n;function o(){return n.apply(null,arguments)}function r(c){n=c}function i(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function a(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function l(c,h){return Object.prototype.hasOwnProperty.call(c,h)}function d(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var h;for(h in c)if(l(c,h))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function p(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function y(c,h){var g=[],_,I=c.length;for(_=0;_<I;++_)g.push(h(c[_],_));return g}function w(c,h){for(var g in h)l(h,g)&&(c[g]=h[g]);return l(h,"toString")&&(c.toString=h.toString),l(h,"valueOf")&&(c.valueOf=h.valueOf),c}function b(c,h,g,_){return lf(c,h,g,_,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(c){return c._pf==null&&(c._pf=m()),c._pf}var P;Array.prototype.some?P=Array.prototype.some:P=function(c){var h=Object(this),g=h.length>>>0,_;for(_=0;_<g;_++)if(_ in h&&c.call(this,h[_],_,h))return!0;return!1};function D(c){var h=null,g=!1,_=c._d&&!isNaN(c._d.getTime());if(_&&(h=v(c),g=P.call(h.parsedDateParts,function(I){return I!=null}),_=h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&g),c._strict&&(_=_&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=_;else return _;return c._isValid}function x(c){var h=b(NaN);return c!=null?w(v(h),c):v(h).userInvalidated=!0,h}var S=o.momentProperties=[],C=!1;function O(c,h){var g,_,I,X=S.length;if(u(h._isAMomentObject)||(c._isAMomentObject=h._isAMomentObject),u(h._i)||(c._i=h._i),u(h._f)||(c._f=h._f),u(h._l)||(c._l=h._l),u(h._strict)||(c._strict=h._strict),u(h._tzm)||(c._tzm=h._tzm),u(h._isUTC)||(c._isUTC=h._isUTC),u(h._offset)||(c._offset=h._offset),u(h._pf)||(c._pf=v(h)),u(h._locale)||(c._locale=h._locale),X>0)for(g=0;g<X;g++)_=S[g],I=h[_],u(I)||(c[_]=I);return c}function A(c){O(this,c),this._d=new Date(c._d!=null?c._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,o.updateOffset(this),C=!1)}function F(c){return c instanceof A||c!=null&&c._isAMomentObject!=null}function B(c){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+c)}function R(c,h){var g=!0;return w(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,c),g){var _=[],I,X,de,ke=arguments.length;for(X=0;X<ke;X++){if(I="",typeof arguments[X]=="object"){I+=`
309
309
  [`+X+"] ";for(de in arguments[0])l(arguments[0],de)&&(I+=de+": "+arguments[0][de]+", ");I=I.slice(0,-2)}else I=arguments[X];_.push(I)}B(c+`
310
310
  Arguments: `+Array.prototype.slice.call(_).join("")+`
311
- `+new Error().stack),g=!1}return h.apply(this,arguments)},h)}var $={};function K(c,h){o.deprecationHandler!=null&&o.deprecationHandler(c,h),$[c]||(B(h),$[c]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function G(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function q(c){var h,g;for(g in c)l(c,g)&&(h=c[g],G(h)?this[g]=h:this["_"+g]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var g=w({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(g[_]={},w(g[_],c[_]),w(g[_],h[_])):h[_]!=null?g[_]=h[_]:delete g[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(g[_]=w({},g[_]));return g}function z(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,g=[];for(h in c)l(c,h)&&g.push(h);return g};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(c,h,g){var _=this._calendar[c]||this._calendar.sameElse;return G(_)?_.call(h,g):_}function L(c,h,g){var _=""+Math.abs(c),I=h-_.length,X=c>=0;return(X?g?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+_}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,g,_){var I=_;typeof _=="string"&&(I=function(){return this[_]()}),c&&(se[c]=I),h&&(se[h[0]]=function(){return L(I.apply(this,arguments),h[1],h[2])}),g&&(se[g]=function(){return this.localeData().ordinal(I.apply(this,arguments),c)})}function ee(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function J(c){var h=c.match(W),g,_;for(g=0,_=h.length;g<_;g++)se[h[g]]?h[g]=se[h[g]]:h[g]=ee(h[g]);return function(I){var X="",de;for(de=0;de<_;de++)X+=G(h[de])?h[de].call(I,c):h[de];return X}}function te(c,h){return c.isValid()?(h=ce(h,c.localeData()),oe[h]=oe[h]||J(h),oe[h](c)):c.localeData().invalidDate()}function ce(c,h){var g=5;function _(I){return h.longDateFormat(I)||I}for(ne.lastIndex=0;g>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,g-=1;return c}var le={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"};function he(c){var h=this._longDateFormat[c],g=this._longDateFormat[c.toUpperCase()];return h||!g?h:(this._longDateFormat[c]=g.match(W).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var H="Invalid date";function re(){return this._invalidDate}var Z="%d",fe=/\d{1,2}/;function pe(c){return this._ordinal.replace("%d",c)}var be={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ge(c,h,g,_){var I=this._relativeTime[g];return G(I)?I(c,h,g,_):I.replace(/%d/i,c)}function Re(c,h){var g=this._relativeTime[c>0?"future":"past"];return G(g)?g(h):g.replace(/%s/i,h)}var Ve={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ne(c){return typeof c=="string"?Ve[c]||Ve[c.toLowerCase()]:void 0}function Je(c){var h={},g,_;for(_ in c)l(c,_)&&(g=Ne(_),g&&(h[g]=c[_]));return h}var Ee={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ut(c){var h=[],g;for(g in c)l(c,g)&&h.push({unit:g,priority:Ee[g]});return h.sort(function(_,I){return _.priority-I.priority}),h}var Yt=/\d/,rt=/\d\d/,Ot=/\d{3}/,Ut=/\d{4}/,Lt=/[+-]?\d{6}/,Ue=/\d\d?/,Be=/\d\d\d\d?/,rn=/\d\d\d\d\d\d?/,un=/\d{1,3}/,Oe=/\d{1,4}/,We=/[+-]?\d{1,6}/,ht=/\d+/,nn=/[+-]?\d+/,Fn=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,Zt=/[+-]?\d+(\.\d{1,3})?/,mn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Qt=/^[1-9]\d?/,ur=/^([1-9]\d|\d)/,He;He={};function _e(c,h,g){He[c]=G(h)?h:function(_,I){return _&&g?g:h}}function Bc(c,h){return l(He,c)?He[c](h._strict,h._locale):new RegExp(ka(c))}function ka(c){return zn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,g,_,I,X){return g||_||I||X}))}function zn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function En(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function Xe(c){var h=+c,g=0;return h!==0&&isFinite(h)&&(g=En(h)),g}var es={};function yt(c,h){var g,_=h,I;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(X,de){de[h]=Xe(X)}),I=c.length,g=0;g<I;g++)es[c[g]]=_}function Tr(c,h){yt(c,function(g,_,I,X){I._w=I._w||{},h(g,I._w,I,X)})}function Wc(c,h,g){h!=null&&l(es,c)&&es[c](h,g._a,g,c)}function ts(c){return c%4===0&&c%100!==0||c%400===0}var hn=0,U=1,me=2,Ce=3,Ae=4,Ge=5,st=6,et=7,Ze=8;j("Y",0,0,function(){var c=this.year();return c<=9999?L(c,4):"+"+c}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),_e("Y",nn),_e("YY",Ue,rt),_e("YYYY",Oe,Ut),_e("YYYYY",We,Lt),_e("YYYYYY",We,Lt),yt(["YYYYY","YYYYYY"],hn),yt("YYYY",function(c,h){h[hn]=c.length===2?o.parseTwoDigitYear(c):Xe(c)}),yt("YY",function(c,h){h[hn]=o.parseTwoDigitYear(c)}),yt("Y",function(c,h){h[hn]=parseInt(c,10)});function Jt(c){return ts(c)?366:365}o.parseTwoDigitYear=function(c){return Xe(c)+(Xe(c)>68?1900:2e3)};var $t=sn("FullYear",!0);function qt(){return ts(this.year())}function sn(c,h){return function(g){return g!=null?(vo(this,c,g),o.updateOffset(this,h),this):Yn(this,c)}}function Yn(c,h){if(!c.isValid())return NaN;var g=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return _?g.getUTCSeconds():g.getSeconds();case"Minutes":return _?g.getUTCMinutes():g.getMinutes();case"Hours":return _?g.getUTCHours():g.getHours();case"Date":return _?g.getUTCDate():g.getDate();case"Day":return _?g.getUTCDay():g.getDay();case"Month":return _?g.getUTCMonth():g.getMonth();case"FullYear":return _?g.getUTCFullYear():g.getFullYear();default:return NaN}}function vo(c,h,g){var _,I,X,de,ke;if(!(!c.isValid()||isNaN(g))){switch(_=c._d,I=c._isUTC,h){case"Milliseconds":return void(I?_.setUTCMilliseconds(g):_.setMilliseconds(g));case"Seconds":return void(I?_.setUTCSeconds(g):_.setSeconds(g));case"Minutes":return void(I?_.setUTCMinutes(g):_.setMinutes(g));case"Hours":return void(I?_.setUTCHours(g):_.setHours(g));case"Date":return void(I?_.setUTCDate(g):_.setDate(g));case"FullYear":break;default:return}X=g,de=c.month(),ke=c.date(),ke=ke===29&&de===1&&!ts(X)?28:ke,I?_.setUTCFullYear(X,de,ke):_.setFullYear(X,de,ke)}}function vn(c){return c=Ne(c),G(this[c])?this[c]():this}function Qs(c,h){if(typeof c=="object"){c=Je(c);var g=ut(c),_,I=g.length;for(_=0;_<I;_++)this[g[_].unit](c[g[_].unit])}else if(c=Ne(c),G(this[c]))return this[c](h);return this}function Hc(c,h){return(c%h+h)%h}var Wt;Array.prototype.indexOf?Wt=Array.prototype.indexOf:Wt=function(c){var h;for(h=0;h<this.length;++h)if(this[h]===c)return h;return-1};function zc(c,h){if(isNaN(c)||isNaN(h))return NaN;var g=Hc(h,12);return c+=(h-g)/12,g===1?ts(c)?29:28:31-g%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),_e("M",Ue,Qt),_e("MM",Ue,rt),_e("MMM",function(c,h){return h.monthsShortRegex(c)}),_e("MMMM",function(c,h){return h.monthsRegex(c)}),yt(["M","MM"],function(c,h){h[U]=Xe(c)-1}),yt(["MMM","MMMM"],function(c,h,g,_){var I=g._locale.monthsParse(c,_,g._strict);I!=null?h[U]=I:v(g).invalidMonth=c});var Bb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Wb=mn,Hb=mn;function zb(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||Gh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function Yb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[Gh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ub(c,h,g){var _,I,X,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)X=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(X,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(X,"").toLocaleLowerCase();return g?h==="MMM"?(I=Wt.call(this._shortMonthsParse,de),I!==-1?I:null):(I=Wt.call(this._longMonthsParse,de),I!==-1?I:null):h==="MMM"?(I=Wt.call(this._shortMonthsParse,de),I!==-1?I:(I=Wt.call(this._longMonthsParse,de),I!==-1?I:null)):(I=Wt.call(this._longMonthsParse,de),I!==-1?I:(I=Wt.call(this._shortMonthsParse,de),I!==-1?I:null))}function qb(c,h,g){var _,I,X;if(this._monthsParseExact)return Ub.call(this,c,h,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(I=b([2e3,_]),g&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(I,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(I,"").replace(".","")+"$","i")),!g&&!this._monthsParse[_]&&(X="^"+this.months(I,"")+"|^"+this.monthsShort(I,""),this._monthsParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(g&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!g&&this._monthsParse[_].test(c))return _}}function Kh(c,h){if(!c.isValid())return c;if(typeof h=="string"){if(/^\d+$/.test(h))h=Xe(h);else if(h=c.localeData().monthsParse(h),!f(h))return c}var g=h,_=c.date();return _=_<29?_:Math.min(_,zc(c.year(),g)),c._isUTC?c._d.setUTCMonth(g,_):c._d.setMonth(g,_),c}function Xh(c){return c!=null?(Kh(this,c),o.updateOffset(this,!0),this):Yn(this,"Month")}function Gb(){return zc(this.year(),this.month())}function Kb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Zh.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Wb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function Xb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Zh.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Hb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function Zh(){function c(ze,it){return it.length-ze.length}var h=[],g=[],_=[],I,X,de,ke;for(I=0;I<12;I++)X=b([2e3,I]),de=zn(this.monthsShort(X,"")),ke=zn(this.months(X,"")),h.push(de),g.push(ke),_.push(ke),_.push(de);h.sort(c),g.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function Zb(c,h,g,_,I,X,de){var ke;return c<100&&c>=0?(ke=new Date(c+400,h,g,_,I,X,de),isFinite(ke.getFullYear())&&ke.setFullYear(c)):ke=new Date(c,h,g,_,I,X,de),ke}function Js(c){var h,g;return c<100&&c>=0?(g=Array.prototype.slice.call(arguments),g[0]=c+400,h=new Date(Date.UTC.apply(null,g)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function Pa(c,h,g){var _=7+h-g,I=(7+Js(c,0,_).getUTCDay()-h)%7;return-I+_-1}function Qh(c,h,g,_,I){var X=(7+g-_)%7,de=Pa(c,_,I),ke=1+7*(h-1)+X+de,ze,it;return ke<=0?(ze=c-1,it=Jt(ze)+ke):ke>Jt(c)?(ze=c+1,it=ke-Jt(c)):(ze=c,it=ke),{year:ze,dayOfYear:it}}function ei(c,h,g){var _=Pa(c.year(),h,g),I=Math.floor((c.dayOfYear()-_-1)/7)+1,X,de;return I<1?(de=c.year()-1,X=I+jo(de,h,g)):I>jo(c.year(),h,g)?(X=I-jo(c.year(),h,g),de=c.year()+1):(de=c.year(),X=I),{week:X,year:de}}function jo(c,h,g){var _=Pa(c,h,g),I=Pa(c+1,h,g);return(Jt(c)-_+I)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),_e("w",Ue,Qt),_e("ww",Ue,rt),_e("W",Ue,Qt),_e("WW",Ue,rt),Tr(["w","ww","W","WW"],function(c,h,g,_){h[_.substr(0,1)]=Xe(c)});function Qb(c){return ei(c,this._week.dow,this._week.doy).week}var Jb={dow:0,doy:6};function ew(){return this._week.dow}function tw(){return this._week.doy}function nw(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function ow(c){var h=ei(this,1,4).week;return c==null?h:this.add((c-h)*7,"d")}j("d",0,"do","day"),j("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),j("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),j("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),_e("d",Ue),_e("e",Ue),_e("E",Ue),_e("dd",function(c,h){return h.weekdaysMinRegex(c)}),_e("ddd",function(c,h){return h.weekdaysShortRegex(c)}),_e("dddd",function(c,h){return h.weekdaysRegex(c)}),Tr(["dd","ddd","dddd"],function(c,h,g,_){var I=g._locale.weekdaysParse(c,_,g._strict);I!=null?h.d=I:v(g).invalidWeekday=c}),Tr(["d","e","E"],function(c,h,g,_){h[_]=Xe(c)});function rw(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function sw(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Yc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var iw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),aw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lw=mn,cw=mn,dw=mn;function uw(c,h){var g=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?Yc(g,this._week.dow):c?g[c.day()]:g}function hw(c){return c===!0?Yc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function fw(c){return c===!0?Yc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function pw(c,h,g){var _,I,X,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)X=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(X,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(X,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(X,"").toLocaleLowerCase();return g?h==="dddd"?(I=Wt.call(this._weekdaysParse,de),I!==-1?I:null):h==="ddd"?(I=Wt.call(this._shortWeekdaysParse,de),I!==-1?I:null):(I=Wt.call(this._minWeekdaysParse,de),I!==-1?I:null):h==="dddd"?(I=Wt.call(this._weekdaysParse,de),I!==-1||(I=Wt.call(this._shortWeekdaysParse,de),I!==-1)?I:(I=Wt.call(this._minWeekdaysParse,de),I!==-1?I:null)):h==="ddd"?(I=Wt.call(this._shortWeekdaysParse,de),I!==-1||(I=Wt.call(this._weekdaysParse,de),I!==-1)?I:(I=Wt.call(this._minWeekdaysParse,de),I!==-1?I:null)):(I=Wt.call(this._minWeekdaysParse,de),I!==-1||(I=Wt.call(this._weekdaysParse,de),I!==-1)?I:(I=Wt.call(this._shortWeekdaysParse,de),I!==-1?I:null))}function mw(c,h,g){var _,I,X;if(this._weekdaysParseExact)return pw.call(this,c,h,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(I=b([2e3,1]).day(_),g&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(X="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(g&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(g&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!g&&this._weekdaysParse[_].test(c))return _}}function gw(c){if(!this.isValid())return c!=null?this:NaN;var h=Yn(this,"Day");return c!=null?(c=rw(c,this.localeData()),this.add(c-h,"d")):h}function yw(c){if(!this.isValid())return c!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return c==null?h:this.add(c-h,"d")}function vw(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=sw(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function bw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Uc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=lw),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function ww(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Uc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cw),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Cw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Uc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=dw),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Uc(){function c(Rn,Yo){return Yo.length-Rn.length}var h=[],g=[],_=[],I=[],X,de,ke,ze,it;for(X=0;X<7;X++)de=b([2e3,1]).day(X),ke=zn(this.weekdaysMin(de,"")),ze=zn(this.weekdaysShort(de,"")),it=zn(this.weekdays(de,"")),h.push(ke),g.push(ze),_.push(it),I.push(ke),I.push(ze),I.push(it);h.sort(c),g.sort(c),_.sort(c),I.sort(c),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function qc(){return this.hours()%12||12}function Sw(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,qc),j("k",["kk",2],0,Sw),j("hmm",0,0,function(){return""+qc.apply(this)+L(this.minutes(),2)}),j("hmmss",0,0,function(){return""+qc.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)});function ef(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}ef("a",!0),ef("A",!1);function tf(c,h){return h._meridiemParse}_e("a",tf),_e("A",tf),_e("H",Ue,ur),_e("h",Ue,Qt),_e("k",Ue,Qt),_e("HH",Ue,rt),_e("hh",Ue,rt),_e("kk",Ue,rt),_e("hmm",Be),_e("hmmss",rn),_e("Hmm",Be),_e("Hmmss",rn),yt(["H","HH"],Ce),yt(["k","kk"],function(c,h,g){var _=Xe(c);h[Ce]=_===24?0:_}),yt(["a","A"],function(c,h,g){g._isPm=g._locale.isPM(c),g._meridiem=c}),yt(["h","hh"],function(c,h,g){h[Ce]=Xe(c),v(g).bigHour=!0}),yt("hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_)),v(g).bigHour=!0}),yt("hmmss",function(c,h,g){var _=c.length-4,I=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_,2)),h[Ge]=Xe(c.substr(I)),v(g).bigHour=!0}),yt("Hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_))}),yt("Hmmss",function(c,h,g){var _=c.length-4,I=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_,2)),h[Ge]=Xe(c.substr(I))});function _w(c){return(c+"").toLowerCase().charAt(0)==="p"}var xw=/[ap]\.?m?\.?/i,Rw=sn("Hours",!0);function Tw(c,h,g){return c>11?g?"pm":"PM":g?"am":"AM"}var nf={calendar:N,longDateFormat:le,invalidDate:H,ordinal:Z,dayOfMonthOrdinalParse:fe,relativeTime:be,months:Bb,monthsShort:qh,week:Jb,weekdays:iw,weekdaysMin:aw,weekdaysShort:Jh,meridiemParse:xw},Vt={},ti={},ni;function Ew(c,h){var g,_=Math.min(c.length,h.length);for(g=0;g<_;g+=1)if(c[g]!==h[g])return g;return _}function of(c){return c&&c.toLowerCase().replace("_","-")}function kw(c){for(var h=0,g,_,I,X;h<c.length;){for(X=of(c[h]).split("-"),g=X.length,_=of(c[h+1]),_=_?_.split("-"):null;g>0;){if(I=Da(X.slice(0,g).join("-")),I)return I;if(_&&_.length>=g&&Ew(X,_)>=g-1)break;g--}h++}return ni}function Pw(c){return!!(c&&c.match("^[^/\\\\]*$"))}function Da(c){var h=null,g;if(Vt[c]===void 0&&e&&e.exports&&Pw(c))try{h=ni._abbr,g=GB,g("./locale/"+c),hr(h)}catch{Vt[c]=null}return Vt[c]}function hr(c,h){var g;return c&&(u(h)?g=Bo(c):g=Gc(c,h),g?ni=g:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),ni._abbr}function Gc(c,h){if(h!==null){var g,_=nf;if(h.abbr=c,Vt[c]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Vt[c]._config;else if(h.parentLocale!=null)if(Vt[h.parentLocale]!=null)_=Vt[h.parentLocale]._config;else if(g=Da(h.parentLocale),g!=null)_=g._config;else return ti[h.parentLocale]||(ti[h.parentLocale]=[]),ti[h.parentLocale].push({name:c,config:h}),null;return Vt[c]=new z(Y(_,h)),ti[c]&&ti[c].forEach(function(I){Gc(I.name,I.config)}),hr(c),Vt[c]}else return delete Vt[c],null}function Dw(c,h){if(h!=null){var g,_,I=nf;Vt[c]!=null&&Vt[c].parentLocale!=null?Vt[c].set(Y(Vt[c]._config,h)):(_=Da(c),_!=null&&(I=_._config),h=Y(I,h),_==null&&(h.abbr=c),g=new z(h),g.parentLocale=Vt[c],Vt[c]=g),hr(c)}else Vt[c]!=null&&(Vt[c].parentLocale!=null?(Vt[c]=Vt[c].parentLocale,c===hr()&&hr(c)):Vt[c]!=null&&delete Vt[c]);return Vt[c]}function Bo(c){var h;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return ni;if(!i(c)){if(h=Da(c),h)return h;c=[c]}return kw(c)}function Ow(){return ae(Vt)}function Kc(c){var h,g=c._a;return g&&v(c).overflow===-2&&(h=g[U]<0||g[U]>11?U:g[me]<1||g[me]>zc(g[hn],g[U])?me:g[Ce]<0||g[Ce]>24||g[Ce]===24&&(g[Ae]!==0||g[Ge]!==0||g[st]!==0)?Ce:g[Ae]<0||g[Ae]>59?Ae:g[Ge]<0||g[Ge]>59?Ge:g[st]<0||g[st]>999?st:-1,v(c)._overflowDayOfYear&&(h<hn||h>me)&&(h=me),v(c)._overflowWeeks&&h===-1&&(h=et),v(c)._overflowWeekday&&h===-1&&(h=Ze),v(c).overflow=h),c}var Mw=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Iw=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nw=/Z|[+-]\d\d(?::?\d\d)?/,Oa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Xc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Aw=/^\/?Date\((-?\d+)/i,Fw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Lw={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function rf(c){var h,g,_=c._i,I=Mw.exec(_)||Iw.exec(_),X,de,ke,ze,it=Oa.length,Rn=Xc.length;if(I){for(v(c).iso=!0,h=0,g=it;h<g;h++)if(Oa[h][1].exec(I[1])){de=Oa[h][0],X=Oa[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(I[3]){for(h=0,g=Rn;h<g;h++)if(Xc[h][1].exec(I[3])){ke=(I[2]||" ")+Xc[h][0];break}if(ke==null){c._isValid=!1;return}}if(!X&&ke!=null){c._isValid=!1;return}if(I[4])if(Nw.exec(I[4]))ze="Z";else{c._isValid=!1;return}c._f=de+(ke||"")+(ze||""),Qc(c)}else c._isValid=!1}function $w(c,h,g,_,I,X){var de=[Vw(c),qh.indexOf(h),parseInt(g,10),parseInt(_,10),parseInt(I,10)];return X&&de.push(parseInt(X,10)),de}function Vw(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function jw(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Bw(c,h,g){if(c){var _=Jh.indexOf(c),I=new Date(h[0],h[1],h[2]).getDay();if(_!==I)return v(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function Ww(c,h,g){if(c)return Lw[c];if(h)return 0;var _=parseInt(g,10),I=_%100,X=(_-I)/100;return X*60+I}function sf(c){var h=Fw.exec(jw(c._i)),g;if(h){if(g=$w(h[4],h[3],h[2],h[5],h[6],h[7]),!Bw(h[1],g,c))return;c._a=g,c._tzm=Ww(h[8],h[9],h[10]),c._d=Js.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function Hw(c){var h=Aw.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(rf(c),c._isValid===!1)delete c._isValid;else return;if(sf(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:o.createFromInputFallback(c)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function ns(c,h,g){return c??h??g}function zw(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function Zc(c){var h,g,_=[],I,X,de;if(!c._d){for(I=zw(c),c._w&&c._a[me]==null&&c._a[U]==null&&Yw(c),c._dayOfYear!=null&&(de=ns(c._a[hn],I[hn]),(c._dayOfYear>Jt(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),g=Js(de,0,c._dayOfYear),c._a[U]=g.getUTCMonth(),c._a[me]=g.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=I[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[Ce]===24&&c._a[Ae]===0&&c._a[Ge]===0&&c._a[st]===0&&(c._nextDay=!0,c._a[Ce]=0),c._d=(c._useUTC?Js:Zb).apply(null,_),X=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[Ce]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==X&&(v(c).weekdayMismatch=!0)}}function Yw(c){var h,g,_,I,X,de,ke,ze,it;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(X=1,de=4,g=ns(h.GG,c._a[hn],ei(Mt(),1,4).year),_=ns(h.W,1),I=ns(h.E,1),(I<1||I>7)&&(ze=!0)):(X=c._locale._week.dow,de=c._locale._week.doy,it=ei(Mt(),X,de),g=ns(h.gg,c._a[hn],it.year),_=ns(h.w,it.week),h.d!=null?(I=h.d,(I<0||I>6)&&(ze=!0)):h.e!=null?(I=h.e+X,(h.e<0||h.e>6)&&(ze=!0)):I=X),_<1||_>jo(g,X,de)?v(c)._overflowWeeks=!0:ze!=null?v(c)._overflowWeekday=!0:(ke=Qh(g,_,I,X,de),c._a[hn]=ke.year,c._dayOfYear=ke.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function Qc(c){if(c._f===o.ISO_8601){rf(c);return}if(c._f===o.RFC_2822){sf(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,g,_,I,X,de,ke=h.length,ze=0,it,Rn;for(I=ce(c._f,c._locale).match(W)||[],Rn=I.length,g=0;g<Rn;g++)X=I[g],_=(h.match(Bc(X,c))||[])[0],_&&(de=h.substr(0,h.indexOf(_)),de.length>0&&v(c).unusedInput.push(de),h=h.slice(h.indexOf(_)+_.length),ze+=_.length),se[X]?(_?v(c).empty=!1:v(c).unusedTokens.push(X),Wc(X,_,c)):c._strict&&!_&&v(c).unusedTokens.push(X);v(c).charsLeftOver=ke-ze,h.length>0&&v(c).unusedInput.push(h),c._a[Ce]<=12&&v(c).bigHour===!0&&c._a[Ce]>0&&(v(c).bigHour=void 0),v(c).parsedDateParts=c._a.slice(0),v(c).meridiem=c._meridiem,c._a[Ce]=Uw(c._locale,c._a[Ce],c._meridiem),it=v(c).era,it!==null&&(c._a[hn]=c._locale.erasConvertYear(it,c._a[hn])),Zc(c),Kc(c)}function Uw(c,h,g){var _;return g==null?h:c.meridiemHour!=null?c.meridiemHour(h,g):(c.isPM!=null&&(_=c.isPM(g),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function qw(c){var h,g,_,I,X,de,ke=!1,ze=c._f.length;if(ze===0){v(c).invalidFormat=!0,c._d=new Date(NaN);return}for(I=0;I<ze;I++)X=0,de=!1,h=O({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[I],Qc(h),D(h)&&(de=!0),X+=v(h).charsLeftOver,X+=v(h).unusedTokens.length*10,v(h).score=X,ke?X<_&&(_=X,g=h):(_==null||X<_||de)&&(_=X,g=h,de&&(ke=!0));w(c,g||h)}function Gw(c){if(!c._d){var h=Je(c._i),g=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,g,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),Zc(c)}}function Kw(c){var h=new A(Kc(af(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function af(c){var h=c._i,g=c._f;return c._locale=c._locale||Bo(c._l),h===null||g===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new A(Kc(h)):(p(h)?c._d=h:i(g)?qw(c):g?Qc(c):Xw(c),D(c)||(c._d=null),c))}function Xw(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?Hw(c):i(h)?(c._a=y(h.slice(0),function(g){return parseInt(g,10)}),Zc(c)):a(h)?Gw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function lf(c,h,g,_,I){var X={};return(h===!0||h===!1)&&(_=h,h=void 0),(g===!0||g===!1)&&(_=g,g=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),X._isAMomentObject=!0,X._useUTC=X._isUTC=I,X._l=g,X._i=c,X._f=h,X._strict=_,Kw(X)}function Mt(c,h,g,_){return lf(c,h,g,_,!1)}var Zw=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:x()}),Qw=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:x()});function cf(c,h){var g,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Mt();for(g=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](g))&&(g=h[_]);return g}function Jw(){var c=[].slice.call(arguments,0);return cf("isBefore",c)}function eC(){var c=[].slice.call(arguments,0);return cf("isAfter",c)}var tC=function(){return Date.now?Date.now():+new Date},oi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nC(c){var h,g=!1,_,I=oi.length;for(h in c)if(l(c,h)&&!(Wt.call(oi,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<I;++_)if(c[oi[_]]){if(g)return!1;parseFloat(c[oi[_]])!==Xe(c[oi[_]])&&(g=!0)}return!0}function oC(){return this._isValid}function rC(){return ao(NaN)}function Ma(c){var h=Je(c),g=h.year||0,_=h.quarter||0,I=h.month||0,X=h.week||h.isoWeek||0,de=h.day||0,ke=h.hour||0,ze=h.minute||0,it=h.second||0,Rn=h.millisecond||0;this._isValid=nC(h),this._milliseconds=+Rn+it*1e3+ze*6e4+ke*1e3*60*60,this._days=+de+X*7,this._months=+I+_*3+g*12,this._data={},this._locale=Bo(),this._bubble()}function Ia(c){return c instanceof Ma}function Jc(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function sC(c,h,g){var _=Math.min(c.length,h.length),I=Math.abs(c.length-h.length),X=0,de;for(de=0;de<_;de++)Xe(c[de])!==Xe(h[de])&&X++;return X+I}function df(c,h){j(c,0,0,function(){var g=this.utcOffset(),_="+";return g<0&&(g=-g,_="-"),_+L(~~(g/60),2)+h+L(~~g%60,2)})}df("Z",":"),df("ZZ",""),_e("Z",at),_e("ZZ",at),yt(["Z","ZZ"],function(c,h,g){g._useUTC=!0,g._tzm=ed(at,c)});var iC=/([\+\-]|\d\d)/gi;function ed(c,h){var g=(h||"").match(c),_,I,X;return g===null?null:(_=g[g.length-1]||[],I=(_+"").match(iC)||["-",0,0],X=+(I[1]*60)+Xe(I[2]),X===0?0:I[0]==="+"?X:-X)}function td(c,h){var g,_;return h._isUTC?(g=h.clone(),_=(F(c)||p(c)?c.valueOf():Mt(c).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+_),o.updateOffset(g,!1),g):Mt(c).local()}function nd(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function aC(c,h,g){var _=this._offset||0,I;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=ed(at,c),c===null)return this}else Math.abs(c)<16&&!g&&(c=c*60);return!this._isUTC&&h&&(I=nd(this)),this._offset=c,this._isUTC=!0,I!=null&&this.add(I,"m"),_!==c&&(!h||this._changeInProgress?pf(this,ao(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:nd(this)}function lC(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function cC(c){return this.utcOffset(0,c)}function dC(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(nd(this),"m")),this}function uC(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=ed(Fn,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function hC(c){return this.isValid()?(c=c?Mt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function fC(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pC(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return O(c,this),c=af(c),c._a?(h=c._isUTC?b(c._a):Mt(c._a),this._isDSTShifted=this.isValid()&&sC(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function mC(){return this.isValid()?!this._isUTC:!1}function gC(){return this.isValid()?this._isUTC:!1}function uf(){return this.isValid()?this._isUTC&&this._offset===0:!1}var yC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,vC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ao(c,h){var g=c,_=null,I,X,de;return Ia(c)?g={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(g={},h?g[h]=+c:g.milliseconds=+c):(_=yC.exec(c))?(I=_[1]==="-"?-1:1,g={y:0,d:Xe(_[me])*I,h:Xe(_[Ce])*I,m:Xe(_[Ae])*I,s:Xe(_[Ge])*I,ms:Xe(Jc(_[st]*1e3))*I}):(_=vC.exec(c))?(I=_[1]==="-"?-1:1,g={y:Er(_[2],I),M:Er(_[3],I),w:Er(_[4],I),d:Er(_[5],I),h:Er(_[6],I),m:Er(_[7],I),s:Er(_[8],I)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(de=bC(Mt(g.from),Mt(g.to)),g={},g.ms=de.milliseconds,g.M=de.months),X=new Ma(g),Ia(c)&&l(c,"_locale")&&(X._locale=c._locale),Ia(c)&&l(c,"_isValid")&&(X._isValid=c._isValid),X}ao.fn=Ma.prototype,ao.invalid=rC;function Er(c,h){var g=c&&parseFloat(c.replace(",","."));return(isNaN(g)?0:g)*h}function hf(c,h){var g={};return g.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(g.months,"M").isAfter(h)&&--g.months,g.milliseconds=+h-+c.clone().add(g.months,"M"),g}function bC(c,h){var g;return c.isValid()&&h.isValid()?(h=td(h,c),c.isBefore(h)?g=hf(c,h):(g=hf(h,c),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function ff(c,h){return function(g,_){var I,X;return _!==null&&!isNaN(+_)&&(K(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),X=g,g=_,_=X),I=ao(g,_),pf(this,I,c),this}}function pf(c,h,g,_){var I=h._milliseconds,X=Jc(h._days),de=Jc(h._months);c.isValid()&&(_=_??!0,de&&Kh(c,Yn(c,"Month")+de*g),X&&vo(c,"Date",Yn(c,"Date")+X*g),I&&c._d.setTime(c._d.valueOf()+I*g),_&&o.updateOffset(c,X||de))}var wC=ff(1,"add"),CC=ff(-1,"subtract");function mf(c){return typeof c=="string"||c instanceof String}function SC(c){return F(c)||p(c)||mf(c)||f(c)||xC(c)||_C(c)||c===null||c===void 0}function _C(c){var h=a(c)&&!d(c),g=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,X,de=_.length;for(I=0;I<de;I+=1)X=_[I],g=g||l(c,X);return h&&g}function xC(c){var h=i(c),g=!1;return h&&(g=c.filter(function(_){return!f(_)&&mf(c)}).length===0),h&&g}function RC(c){var h=a(c)&&!d(c),g=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],I,X;for(I=0;I<_.length;I+=1)X=_[I],g=g||l(c,X);return h&&g}function TC(c,h){var g=c.diff(h,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function EC(c,h){arguments.length===1&&(arguments[0]?SC(arguments[0])?(c=arguments[0],h=void 0):RC(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var g=c||Mt(),_=td(g,this).startOf("day"),I=o.calendarFormat(this,_)||"sameElse",X=h&&(G(h[I])?h[I].call(this,g):h[I]);return this.format(X||this.localeData().calendar(I,this,Mt(g)))}function kC(){return new A(this)}function PC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(h).valueOf()):!1}function DC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(h).valueOf()<g.valueOf()):!1}function OC(c,h,g,_){var I=F(c)?c:Mt(c),X=F(h)?h:Mt(h);return this.isValid()&&I.isValid()&&X.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(I,g):!this.isBefore(I,g))&&(_[1]===")"?this.isBefore(X,g):!this.isAfter(X,g))):!1}function MC(c,h){var g=F(c)?c:Mt(c),_;return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()===g.valueOf():(_=g.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function IC(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function NC(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function AC(c,h,g){var _,I,X;if(!this.isValid())return NaN;if(_=td(c,this),!_.isValid())return NaN;switch(I=(_.utcOffset()-this.utcOffset())*6e4,h=Ne(h),h){case"year":X=Na(this,_)/12;break;case"month":X=Na(this,_);break;case"quarter":X=Na(this,_)/3;break;case"second":X=(this-_)/1e3;break;case"minute":X=(this-_)/6e4;break;case"hour":X=(this-_)/36e5;break;case"day":X=(this-_-I)/864e5;break;case"week":X=(this-_-I)/6048e5;break;default:X=this-_}return g?X:En(X)}function Na(c,h){if(c.date()<h.date())return-Na(h,c);var g=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(g,"months"),I,X;return h-_<0?(I=c.clone().add(g-1,"months"),X=(h-_)/(_-I)):(I=c.clone().add(g+1,"months"),X=(h-_)/(I-_)),-(g+X)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function FC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function LC(c){if(!this.isValid())return null;var h=c!==!0,g=h?this.clone().utc():this;return g.year()<0||g.year()>9999?te(g,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):G(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",te(g,"Z")):te(g,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $C(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",g,_,I,X;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),g="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",X=h+'[")]',this.format(g+_+I+X)}function VC(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function jC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?ao({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function BC(c){return this.from(Mt(),c)}function WC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?ao({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function HC(c){return this.to(Mt(),c)}function gf(c){var h;return c===void 0?this._locale._abbr:(h=Bo(c),h!=null&&(this._locale=h),this)}var yf=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function vf(){return this._locale}var Aa=1e3,os=60*Aa,Fa=60*os,bf=(365*400+97)*24*Fa;function rs(c,h){return(c%h+h)%h}function wf(c,h,g){return c<100&&c>=0?new Date(c+400,h,g)-bf:new Date(c,h,g).valueOf()}function Cf(c,h,g){return c<100&&c>=0?Date.UTC(c+400,h,g)-bf:Date.UTC(c,h,g)}function zC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Cf:wf,c){case"year":h=g(this.year(),0,1);break;case"quarter":h=g(this.year(),this.month()-this.month()%3,1);break;case"month":h=g(this.year(),this.month(),1);break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=g(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=rs(h+(this._isUTC?0:this.utcOffset()*os),Fa);break;case"minute":h=this._d.valueOf(),h-=rs(h,os);break;case"second":h=this._d.valueOf(),h-=rs(h,Aa);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function YC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Cf:wf,c){case"year":h=g(this.year()+1,0,1)-1;break;case"quarter":h=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=g(this.year(),this.month()+1,1)-1;break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=Fa-rs(h+(this._isUTC?0:this.utcOffset()*os),Fa)-1;break;case"minute":h=this._d.valueOf(),h+=os-rs(h,os)-1;break;case"second":h=this._d.valueOf(),h+=Aa-rs(h,Aa)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function UC(){return this._d.valueOf()-(this._offset||0)*6e4}function qC(){return Math.floor(this.valueOf()/1e3)}function GC(){return new Date(this.valueOf())}function KC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function XC(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function ZC(){return this.isValid()?this.toISOString():null}function QC(){return D(this)}function JC(){return w({},v(this))}function eS(){return v(this).overflow}function tS(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),_e("N",od),_e("NN",od),_e("NNN",od),_e("NNNN",hS),_e("NNNNN",fS),yt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,g,_){var I=g._locale.erasParse(c,_,g._strict);I?v(g).era=I:v(g).invalidEra=c}),_e("y",ht),_e("yy",ht),_e("yyy",ht),_e("yyyy",ht),_e("yo",pS),yt(["y","yy","yyy","yyyy"],hn),yt(["yo"],function(c,h,g,_){var I;g._locale._eraYearOrdinalRegex&&(I=c.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?h[hn]=g._locale.eraYearOrdinalParse(c,I):h[hn]=parseInt(c,10)});function nS(c,h){var g,_,I,X=this._eras||Bo("en")._eras;for(g=0,_=X.length;g<_;++g){switch(typeof X[g].since){case"string":I=o(X[g].since).startOf("day"),X[g].since=I.valueOf();break}switch(typeof X[g].until){case"undefined":X[g].until=1/0;break;case"string":I=o(X[g].until).startOf("day").valueOf(),X[g].until=I.valueOf();break}}return X}function oS(c,h,g){var _,I,X=this.eras(),de,ke,ze;for(c=c.toUpperCase(),_=0,I=X.length;_<I;++_)if(de=X[_].name.toUpperCase(),ke=X[_].abbr.toUpperCase(),ze=X[_].narrow.toUpperCase(),g)switch(h){case"N":case"NN":case"NNN":if(ke===c)return X[_];break;case"NNNN":if(de===c)return X[_];break;case"NNNNN":if(ze===c)return X[_];break}else if([de,ke,ze].indexOf(c)>=0)return X[_]}function rS(c,h){var g=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*g}function sS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].name;return""}function iS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].narrow;return""}function aS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].abbr;return""}function lS(){var c,h,g,_,I=this.localeData().eras();for(c=0,h=I.length;c<h;++c)if(g=I[c].since<=I[c].until?1:-1,_=this.clone().startOf("day").valueOf(),I[c].since<=_&&_<=I[c].until||I[c].until<=_&&_<=I[c].since)return(this.year()-o(I[c].since).year())*g+I[c].offset;return this.year()}function cS(c){return l(this,"_erasNameRegex")||rd.call(this),c?this._erasNameRegex:this._erasRegex}function dS(c){return l(this,"_erasAbbrRegex")||rd.call(this),c?this._erasAbbrRegex:this._erasRegex}function uS(c){return l(this,"_erasNarrowRegex")||rd.call(this),c?this._erasNarrowRegex:this._erasRegex}function od(c,h){return h.erasAbbrRegex(c)}function hS(c,h){return h.erasNameRegex(c)}function fS(c,h){return h.erasNarrowRegex(c)}function pS(c,h){return h._eraYearOrdinalRegex||ht}function rd(){var c=[],h=[],g=[],_=[],I,X,de,ke,ze,it=this.eras();for(I=0,X=it.length;I<X;++I)de=zn(it[I].name),ke=zn(it[I].abbr),ze=zn(it[I].narrow),h.push(de),c.push(ke),g.push(ze),_.push(de),_.push(ke),_.push(ze);this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+g.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function La(c,h){j(0,[c,c.length],0,h)}La("gggg","weekYear"),La("ggggg","weekYear"),La("GGGG","isoWeekYear"),La("GGGGG","isoWeekYear"),_e("G",nn),_e("g",nn),_e("GG",Ue,rt),_e("gg",Ue,rt),_e("GGGG",Oe,Ut),_e("gggg",Oe,Ut),_e("GGGGG",We,Lt),_e("ggggg",We,Lt),Tr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,g,_){h[_.substr(0,2)]=Xe(c)}),Tr(["gg","GG"],function(c,h,g,_){h[_]=o.parseTwoDigitYear(c)});function mS(c){return Sf.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function gS(c){return Sf.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function yS(){return jo(this.year(),1,4)}function vS(){return jo(this.isoWeekYear(),1,4)}function bS(){var c=this.localeData()._week;return jo(this.year(),c.dow,c.doy)}function wS(){var c=this.localeData()._week;return jo(this.weekYear(),c.dow,c.doy)}function Sf(c,h,g,_,I){var X;return c==null?ei(this,_,I).year:(X=jo(c,_,I),h>X&&(h=X),CS.call(this,c,h,g,_,I))}function CS(c,h,g,_,I){var X=Qh(c,h,g,_,I),de=Js(X.year,0,X.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}j("Q",0,"Qo","quarter"),_e("Q",Yt),yt("Q",function(c,h){h[U]=(Xe(c)-1)*3});function SS(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}j("D",["DD",2],"Do","date"),_e("D",Ue,Qt),_e("DD",Ue,rt),_e("Do",function(c,h){return c?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),yt(["D","DD"],me),yt("Do",function(c,h){h[me]=Xe(c.match(Ue)[0])});var _f=sn("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),_e("DDD",un),_e("DDDD",Ot),yt(["DDD","DDDD"],function(c,h,g){g._dayOfYear=Xe(c)});function _S(c){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?h:this.add(c-h,"d")}j("m",["mm",2],0,"minute"),_e("m",Ue,ur),_e("mm",Ue,rt),yt(["m","mm"],Ae);var xS=sn("Minutes",!1);j("s",["ss",2],0,"second"),_e("s",Ue,ur),_e("ss",Ue,rt),yt(["s","ss"],Ge);var RS=sn("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),_e("S",un,Yt),_e("SS",un,rt),_e("SSS",un,Ot);var fr,xf;for(fr="SSSS";fr.length<=9;fr+="S")_e(fr,ht);function TS(c,h){h[st]=Xe(("0."+c)*1e3)}for(fr="S";fr.length<=9;fr+="S")yt(fr,TS);xf=sn("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function ES(){return this._isUTC?"UTC":""}function kS(){return this._isUTC?"Coordinated Universal Time":""}var ye=A.prototype;ye.add=wC,ye.calendar=EC,ye.clone=kC,ye.diff=AC,ye.endOf=YC,ye.format=VC,ye.from=jC,ye.fromNow=BC,ye.to=WC,ye.toNow=HC,ye.get=vn,ye.invalidAt=eS,ye.isAfter=PC,ye.isBefore=DC,ye.isBetween=OC,ye.isSame=MC,ye.isSameOrAfter=IC,ye.isSameOrBefore=NC,ye.isValid=QC,ye.lang=yf,ye.locale=gf,ye.localeData=vf,ye.max=Qw,ye.min=Zw,ye.parsingFlags=JC,ye.set=Qs,ye.startOf=zC,ye.subtract=CC,ye.toArray=KC,ye.toObject=XC,ye.toDate=GC,ye.toISOString=LC,ye.inspect=$C,typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ye.toJSON=ZC,ye.toString=FC,ye.unix=qC,ye.valueOf=UC,ye.creationData=tS,ye.eraName=sS,ye.eraNarrow=iS,ye.eraAbbr=aS,ye.eraYear=lS,ye.year=$t,ye.isLeapYear=qt,ye.weekYear=mS,ye.isoWeekYear=gS,ye.quarter=ye.quarters=SS,ye.month=Xh,ye.daysInMonth=Gb,ye.week=ye.weeks=nw,ye.isoWeek=ye.isoWeeks=ow,ye.weeksInYear=bS,ye.weeksInWeekYear=wS,ye.isoWeeksInYear=yS,ye.isoWeeksInISOWeekYear=vS,ye.date=_f,ye.day=ye.days=gw,ye.weekday=yw,ye.isoWeekday=vw,ye.dayOfYear=_S,ye.hour=ye.hours=Rw,ye.minute=ye.minutes=xS,ye.second=ye.seconds=RS,ye.millisecond=ye.milliseconds=xf,ye.utcOffset=aC,ye.utc=cC,ye.local=dC,ye.parseZone=uC,ye.hasAlignedHourOffset=hC,ye.isDST=fC,ye.isLocal=mC,ye.isUtcOffset=gC,ye.isUtc=uf,ye.isUTC=uf,ye.zoneAbbr=ES,ye.zoneName=kS,ye.dates=R("dates accessor is deprecated. Use date instead.",_f),ye.months=R("months accessor is deprecated. Use month instead",Xh),ye.years=R("years accessor is deprecated. Use year instead",$t),ye.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",lC),ye.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pC);function PS(c){return Mt(c*1e3)}function DS(){return Mt.apply(null,arguments).parseZone()}function Rf(c){return c}var ft=z.prototype;ft.calendar=M,ft.longDateFormat=he,ft.invalidDate=re,ft.ordinal=pe,ft.preparse=Rf,ft.postformat=Rf,ft.relativeTime=ge,ft.pastFuture=Re,ft.set=q,ft.eras=nS,ft.erasParse=oS,ft.erasConvertYear=rS,ft.erasAbbrRegex=dS,ft.erasNameRegex=cS,ft.erasNarrowRegex=uS,ft.months=zb,ft.monthsShort=Yb,ft.monthsParse=qb,ft.monthsRegex=Xb,ft.monthsShortRegex=Kb,ft.week=Qb,ft.firstDayOfYear=tw,ft.firstDayOfWeek=ew,ft.weekdays=uw,ft.weekdaysMin=fw,ft.weekdaysShort=hw,ft.weekdaysParse=mw,ft.weekdaysRegex=bw,ft.weekdaysShortRegex=ww,ft.weekdaysMinRegex=Cw,ft.isPM=_w,ft.meridiem=Tw;function $a(c,h,g,_){var I=Bo(),X=b().set(_,h);return I[g](X,c)}function Tf(c,h,g){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return $a(c,h,g,"month");var _,I=[];for(_=0;_<12;_++)I[_]=$a(c,_,g,"month");return I}function sd(c,h,g,_){typeof c=="boolean"?(f(h)&&(g=h,h=void 0),h=h||""):(h=c,g=h,c=!1,f(h)&&(g=h,h=void 0),h=h||"");var I=Bo(),X=c?I._week.dow:0,de,ke=[];if(g!=null)return $a(h,(g+X)%7,_,"day");for(de=0;de<7;de++)ke[de]=$a(h,(de+X)%7,_,"day");return ke}function OS(c,h){return Tf(c,h,"months")}function MS(c,h){return Tf(c,h,"monthsShort")}function IS(c,h,g){return sd(c,h,g,"weekdays")}function NS(c,h,g){return sd(c,h,g,"weekdaysShort")}function AS(c,h,g){return sd(c,h,g,"weekdaysMin")}hr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,g=Xe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+g}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",hr),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Bo);var Wo=Math.abs;function FS(){var c=this._data;return this._milliseconds=Wo(this._milliseconds),this._days=Wo(this._days),this._months=Wo(this._months),c.milliseconds=Wo(c.milliseconds),c.seconds=Wo(c.seconds),c.minutes=Wo(c.minutes),c.hours=Wo(c.hours),c.months=Wo(c.months),c.years=Wo(c.years),this}function Ef(c,h,g,_){var I=ao(h,g);return c._milliseconds+=_*I._milliseconds,c._days+=_*I._days,c._months+=_*I._months,c._bubble()}function LS(c,h){return Ef(this,c,h,1)}function $S(c,h){return Ef(this,c,h,-1)}function kf(c){return c<0?Math.floor(c):Math.ceil(c)}function VS(){var c=this._milliseconds,h=this._days,g=this._months,_=this._data,I,X,de,ke,ze;return c>=0&&h>=0&&g>=0||c<=0&&h<=0&&g<=0||(c+=kf(id(g)+h)*864e5,h=0,g=0),_.milliseconds=c%1e3,I=En(c/1e3),_.seconds=I%60,X=En(I/60),_.minutes=X%60,de=En(X/60),_.hours=de%24,h+=En(de/24),ze=En(Pf(h)),g+=ze,h-=kf(id(ze)),ke=En(g/12),g%=12,_.days=h,_.months=g,_.years=ke,this}function Pf(c){return c*4800/146097}function id(c){return c*146097/4800}function jS(c){if(!this.isValid())return NaN;var h,g,_=this._milliseconds;if(c=Ne(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,g=this._months+Pf(h),c){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(h=this._days+Math.round(id(this._months)),c){case"week":return h/7+_/6048e5;case"day":return h+_/864e5;case"hour":return h*24+_/36e5;case"minute":return h*1440+_/6e4;case"second":return h*86400+_/1e3;case"millisecond":return Math.floor(h*864e5)+_;default:throw new Error("Unknown unit "+c)}}function Ho(c){return function(){return this.as(c)}}var Df=Ho("ms"),BS=Ho("s"),WS=Ho("m"),HS=Ho("h"),zS=Ho("d"),YS=Ho("w"),US=Ho("M"),qS=Ho("Q"),GS=Ho("y"),KS=Df;function XS(){return ao(this)}function ZS(c){return c=Ne(c),this.isValid()?this[c+"s"]():NaN}function kr(c){return function(){return this.isValid()?this._data[c]:NaN}}var QS=kr("milliseconds"),JS=kr("seconds"),e0=kr("minutes"),t0=kr("hours"),n0=kr("days"),o0=kr("months"),r0=kr("years");function s0(){return En(this.days()/7)}var zo=Math.round,ss={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function i0(c,h,g,_,I){return I.relativeTime(h||1,!!g,c,_)}function a0(c,h,g,_){var I=ao(c).abs(),X=zo(I.as("s")),de=zo(I.as("m")),ke=zo(I.as("h")),ze=zo(I.as("d")),it=zo(I.as("M")),Rn=zo(I.as("w")),Yo=zo(I.as("y")),pr=X<=g.ss&&["s",X]||X<g.s&&["ss",X]||de<=1&&["m"]||de<g.m&&["mm",de]||ke<=1&&["h"]||ke<g.h&&["hh",ke]||ze<=1&&["d"]||ze<g.d&&["dd",ze];return g.w!=null&&(pr=pr||Rn<=1&&["w"]||Rn<g.w&&["ww",Rn]),pr=pr||it<=1&&["M"]||it<g.M&&["MM",it]||Yo<=1&&["y"]||["yy",Yo],pr[2]=h,pr[3]=+c>0,pr[4]=_,i0.apply(null,pr)}function l0(c){return c===void 0?zo:typeof c=="function"?(zo=c,!0):!1}function c0(c,h){return ss[c]===void 0?!1:h===void 0?ss[c]:(ss[c]=h,c==="s"&&(ss.ss=h-1),!0)}function d0(c,h){if(!this.isValid())return this.localeData().invalidDate();var g=!1,_=ss,I,X;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(g=c),typeof h=="object"&&(_=Object.assign({},ss,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),I=this.localeData(),X=a0(this,!g,_,I),g&&(X=I.pastFuture(+this,X)),I.postformat(X)}var ad=Math.abs;function is(c){return(c>0)-(c<0)||+c}function Va(){if(!this.isValid())return this.localeData().invalidDate();var c=ad(this._milliseconds)/1e3,h=ad(this._days),g=ad(this._months),_,I,X,de,ke=this.asSeconds(),ze,it,Rn,Yo;return ke?(_=En(c/60),I=En(_/60),c%=60,_%=60,X=En(g/12),g%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",ze=ke<0?"-":"",it=is(this._months)!==is(ke)?"-":"",Rn=is(this._days)!==is(ke)?"-":"",Yo=is(this._milliseconds)!==is(ke)?"-":"",ze+"P"+(X?it+X+"Y":"")+(g?it+g+"M":"")+(h?Rn+h+"D":"")+(I||_||c?"T":"")+(I?Yo+I+"H":"")+(_?Yo+_+"M":"")+(c?Yo+de+"S":"")):"P0D"}var lt=Ma.prototype;lt.isValid=oC,lt.abs=FS,lt.add=LS,lt.subtract=$S,lt.as=jS,lt.asMilliseconds=Df,lt.asSeconds=BS,lt.asMinutes=WS,lt.asHours=HS,lt.asDays=zS,lt.asWeeks=YS,lt.asMonths=US,lt.asQuarters=qS,lt.asYears=GS,lt.valueOf=KS,lt._bubble=VS,lt.clone=XS,lt.get=ZS,lt.milliseconds=QS,lt.seconds=JS,lt.minutes=e0,lt.hours=t0,lt.days=n0,lt.weeks=s0,lt.months=o0,lt.years=r0,lt.humanize=d0,lt.toISOString=Va,lt.toString=Va,lt.toJSON=Va,lt.locale=gf,lt.localeData=vf,lt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Va),lt.lang=yf,j("X",0,0,"unix"),j("x",0,0,"valueOf"),_e("x",nn),_e("X",Zt),yt("X",function(c,h,g){g._d=new Date(parseFloat(c)*1e3)}),yt("x",function(c,h,g){g._d=new Date(Xe(c))});//! moment.js
311
+ `+new Error().stack),g=!1}return h.apply(this,arguments)},h)}var $={};function K(c,h){o.deprecationHandler!=null&&o.deprecationHandler(c,h),$[c]||(B(h),$[c]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function G(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function q(c){var h,g;for(g in c)l(c,g)&&(h=c[g],G(h)?this[g]=h:this["_"+g]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var g=w({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(g[_]={},w(g[_],c[_]),w(g[_],h[_])):h[_]!=null?g[_]=h[_]:delete g[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(g[_]=w({},g[_]));return g}function z(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,g=[];for(h in c)l(c,h)&&g.push(h);return g};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(c,h,g){var _=this._calendar[c]||this._calendar.sameElse;return G(_)?_.call(h,g):_}function L(c,h,g){var _=""+Math.abs(c),I=h-_.length,X=c>=0;return(X?g?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+_}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,g,_){var I=_;typeof _=="string"&&(I=function(){return this[_]()}),c&&(se[c]=I),h&&(se[h[0]]=function(){return L(I.apply(this,arguments),h[1],h[2])}),g&&(se[g]=function(){return this.localeData().ordinal(I.apply(this,arguments),c)})}function ee(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function J(c){var h=c.match(W),g,_;for(g=0,_=h.length;g<_;g++)se[h[g]]?h[g]=se[h[g]]:h[g]=ee(h[g]);return function(I){var X="",de;for(de=0;de<_;de++)X+=G(h[de])?h[de].call(I,c):h[de];return X}}function te(c,h){return c.isValid()?(h=ce(h,c.localeData()),oe[h]=oe[h]||J(h),oe[h](c)):c.localeData().invalidDate()}function ce(c,h){var g=5;function _(I){return h.longDateFormat(I)||I}for(ne.lastIndex=0;g>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,g-=1;return c}var le={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"};function he(c){var h=this._longDateFormat[c],g=this._longDateFormat[c.toUpperCase()];return h||!g?h:(this._longDateFormat[c]=g.match(W).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var H="Invalid date";function re(){return this._invalidDate}var Z="%d",fe=/\d{1,2}/;function pe(c){return this._ordinal.replace("%d",c)}var be={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ge(c,h,g,_){var I=this._relativeTime[g];return G(I)?I(c,h,g,_):I.replace(/%d/i,c)}function Re(c,h){var g=this._relativeTime[c>0?"future":"past"];return G(g)?g(h):g.replace(/%s/i,h)}var Ve={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ne(c){return typeof c=="string"?Ve[c]||Ve[c.toLowerCase()]:void 0}function Je(c){var h={},g,_;for(_ in c)l(c,_)&&(g=Ne(_),g&&(h[g]=c[_]));return h}var Ee={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ut(c){var h=[],g;for(g in c)l(c,g)&&h.push({unit:g,priority:Ee[g]});return h.sort(function(_,I){return _.priority-I.priority}),h}var Yt=/\d/,rt=/\d\d/,Ot=/\d{3}/,Ut=/\d{4}/,Lt=/[+-]?\d{6}/,Ue=/\d\d?/,Be=/\d\d\d\d?/,rn=/\d\d\d\d\d\d?/,un=/\d{1,3}/,Oe=/\d{1,4}/,We=/[+-]?\d{1,6}/,ht=/\d+/,nn=/[+-]?\d+/,Fn=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,Zt=/[+-]?\d+(\.\d{1,3})?/,mn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Qt=/^[1-9]\d?/,ur=/^([1-9]\d|\d)/,He;He={};function _e(c,h,g){He[c]=G(h)?h:function(_,I){return _&&g?g:h}}function Bc(c,h){return l(He,c)?He[c](h._strict,h._locale):new RegExp(ka(c))}function ka(c){return zn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,g,_,I,X){return g||_||I||X}))}function zn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function En(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function Xe(c){var h=+c,g=0;return h!==0&&isFinite(h)&&(g=En(h)),g}var es={};function yt(c,h){var g,_=h,I;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(X,de){de[h]=Xe(X)}),I=c.length,g=0;g<I;g++)es[c[g]]=_}function Tr(c,h){yt(c,function(g,_,I,X){I._w=I._w||{},h(g,I._w,I,X)})}function Wc(c,h,g){h!=null&&l(es,c)&&es[c](h,g._a,g,c)}function ts(c){return c%4===0&&c%100!==0||c%400===0}var hn=0,U=1,me=2,Ce=3,Fe=4,Ge=5,st=6,et=7,Ze=8;j("Y",0,0,function(){var c=this.year();return c<=9999?L(c,4):"+"+c}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),_e("Y",nn),_e("YY",Ue,rt),_e("YYYY",Oe,Ut),_e("YYYYY",We,Lt),_e("YYYYYY",We,Lt),yt(["YYYYY","YYYYYY"],hn),yt("YYYY",function(c,h){h[hn]=c.length===2?o.parseTwoDigitYear(c):Xe(c)}),yt("YY",function(c,h){h[hn]=o.parseTwoDigitYear(c)}),yt("Y",function(c,h){h[hn]=parseInt(c,10)});function Jt(c){return ts(c)?366:365}o.parseTwoDigitYear=function(c){return Xe(c)+(Xe(c)>68?1900:2e3)};var $t=sn("FullYear",!0);function qt(){return ts(this.year())}function sn(c,h){return function(g){return g!=null?(bo(this,c,g),o.updateOffset(this,h),this):Yn(this,c)}}function Yn(c,h){if(!c.isValid())return NaN;var g=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return _?g.getUTCSeconds():g.getSeconds();case"Minutes":return _?g.getUTCMinutes():g.getMinutes();case"Hours":return _?g.getUTCHours():g.getHours();case"Date":return _?g.getUTCDate():g.getDate();case"Day":return _?g.getUTCDay():g.getDay();case"Month":return _?g.getUTCMonth():g.getMonth();case"FullYear":return _?g.getUTCFullYear():g.getFullYear();default:return NaN}}function bo(c,h,g){var _,I,X,de,ke;if(!(!c.isValid()||isNaN(g))){switch(_=c._d,I=c._isUTC,h){case"Milliseconds":return void(I?_.setUTCMilliseconds(g):_.setMilliseconds(g));case"Seconds":return void(I?_.setUTCSeconds(g):_.setSeconds(g));case"Minutes":return void(I?_.setUTCMinutes(g):_.setMinutes(g));case"Hours":return void(I?_.setUTCHours(g):_.setHours(g));case"Date":return void(I?_.setUTCDate(g):_.setDate(g));case"FullYear":break;default:return}X=g,de=c.month(),ke=c.date(),ke=ke===29&&de===1&&!ts(X)?28:ke,I?_.setUTCFullYear(X,de,ke):_.setFullYear(X,de,ke)}}function vn(c){return c=Ne(c),G(this[c])?this[c]():this}function Qs(c,h){if(typeof c=="object"){c=Je(c);var g=ut(c),_,I=g.length;for(_=0;_<I;_++)this[g[_].unit](c[g[_].unit])}else if(c=Ne(c),G(this[c]))return this[c](h);return this}function Hc(c,h){return(c%h+h)%h}var Wt;Array.prototype.indexOf?Wt=Array.prototype.indexOf:Wt=function(c){var h;for(h=0;h<this.length;++h)if(this[h]===c)return h;return-1};function zc(c,h){if(isNaN(c)||isNaN(h))return NaN;var g=Hc(h,12);return c+=(h-g)/12,g===1?ts(c)?29:28:31-g%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),_e("M",Ue,Qt),_e("MM",Ue,rt),_e("MMM",function(c,h){return h.monthsShortRegex(c)}),_e("MMMM",function(c,h){return h.monthsRegex(c)}),yt(["M","MM"],function(c,h){h[U]=Xe(c)-1}),yt(["MMM","MMMM"],function(c,h,g,_){var I=g._locale.monthsParse(c,_,g._strict);I!=null?h[U]=I:v(g).invalidMonth=c});var Bb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Wb=mn,Hb=mn;function zb(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||Gh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function Yb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[Gh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ub(c,h,g){var _,I,X,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)X=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(X,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(X,"").toLocaleLowerCase();return g?h==="MMM"?(I=Wt.call(this._shortMonthsParse,de),I!==-1?I:null):(I=Wt.call(this._longMonthsParse,de),I!==-1?I:null):h==="MMM"?(I=Wt.call(this._shortMonthsParse,de),I!==-1?I:(I=Wt.call(this._longMonthsParse,de),I!==-1?I:null)):(I=Wt.call(this._longMonthsParse,de),I!==-1?I:(I=Wt.call(this._shortMonthsParse,de),I!==-1?I:null))}function qb(c,h,g){var _,I,X;if(this._monthsParseExact)return Ub.call(this,c,h,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(I=b([2e3,_]),g&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(I,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(I,"").replace(".","")+"$","i")),!g&&!this._monthsParse[_]&&(X="^"+this.months(I,"")+"|^"+this.monthsShort(I,""),this._monthsParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(g&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!g&&this._monthsParse[_].test(c))return _}}function Kh(c,h){if(!c.isValid())return c;if(typeof h=="string"){if(/^\d+$/.test(h))h=Xe(h);else if(h=c.localeData().monthsParse(h),!f(h))return c}var g=h,_=c.date();return _=_<29?_:Math.min(_,zc(c.year(),g)),c._isUTC?c._d.setUTCMonth(g,_):c._d.setMonth(g,_),c}function Xh(c){return c!=null?(Kh(this,c),o.updateOffset(this,!0),this):Yn(this,"Month")}function Gb(){return zc(this.year(),this.month())}function Kb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Zh.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Wb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function Xb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||Zh.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Hb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function Zh(){function c(ze,it){return it.length-ze.length}var h=[],g=[],_=[],I,X,de,ke;for(I=0;I<12;I++)X=b([2e3,I]),de=zn(this.monthsShort(X,"")),ke=zn(this.months(X,"")),h.push(de),g.push(ke),_.push(ke),_.push(de);h.sort(c),g.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function Zb(c,h,g,_,I,X,de){var ke;return c<100&&c>=0?(ke=new Date(c+400,h,g,_,I,X,de),isFinite(ke.getFullYear())&&ke.setFullYear(c)):ke=new Date(c,h,g,_,I,X,de),ke}function Js(c){var h,g;return c<100&&c>=0?(g=Array.prototype.slice.call(arguments),g[0]=c+400,h=new Date(Date.UTC.apply(null,g)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function Pa(c,h,g){var _=7+h-g,I=(7+Js(c,0,_).getUTCDay()-h)%7;return-I+_-1}function Qh(c,h,g,_,I){var X=(7+g-_)%7,de=Pa(c,_,I),ke=1+7*(h-1)+X+de,ze,it;return ke<=0?(ze=c-1,it=Jt(ze)+ke):ke>Jt(c)?(ze=c+1,it=ke-Jt(c)):(ze=c,it=ke),{year:ze,dayOfYear:it}}function ei(c,h,g){var _=Pa(c.year(),h,g),I=Math.floor((c.dayOfYear()-_-1)/7)+1,X,de;return I<1?(de=c.year()-1,X=I+jo(de,h,g)):I>jo(c.year(),h,g)?(X=I-jo(c.year(),h,g),de=c.year()+1):(de=c.year(),X=I),{week:X,year:de}}function jo(c,h,g){var _=Pa(c,h,g),I=Pa(c+1,h,g);return(Jt(c)-_+I)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),_e("w",Ue,Qt),_e("ww",Ue,rt),_e("W",Ue,Qt),_e("WW",Ue,rt),Tr(["w","ww","W","WW"],function(c,h,g,_){h[_.substr(0,1)]=Xe(c)});function Qb(c){return ei(c,this._week.dow,this._week.doy).week}var Jb={dow:0,doy:6};function ew(){return this._week.dow}function tw(){return this._week.doy}function nw(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function ow(c){var h=ei(this,1,4).week;return c==null?h:this.add((c-h)*7,"d")}j("d",0,"do","day"),j("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),j("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),j("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),_e("d",Ue),_e("e",Ue),_e("E",Ue),_e("dd",function(c,h){return h.weekdaysMinRegex(c)}),_e("ddd",function(c,h){return h.weekdaysShortRegex(c)}),_e("dddd",function(c,h){return h.weekdaysRegex(c)}),Tr(["dd","ddd","dddd"],function(c,h,g,_){var I=g._locale.weekdaysParse(c,_,g._strict);I!=null?h.d=I:v(g).invalidWeekday=c}),Tr(["d","e","E"],function(c,h,g,_){h[_]=Xe(c)});function rw(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function sw(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Yc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var iw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),aw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lw=mn,cw=mn,dw=mn;function uw(c,h){var g=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?Yc(g,this._week.dow):c?g[c.day()]:g}function hw(c){return c===!0?Yc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function fw(c){return c===!0?Yc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function pw(c,h,g){var _,I,X,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)X=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(X,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(X,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(X,"").toLocaleLowerCase();return g?h==="dddd"?(I=Wt.call(this._weekdaysParse,de),I!==-1?I:null):h==="ddd"?(I=Wt.call(this._shortWeekdaysParse,de),I!==-1?I:null):(I=Wt.call(this._minWeekdaysParse,de),I!==-1?I:null):h==="dddd"?(I=Wt.call(this._weekdaysParse,de),I!==-1||(I=Wt.call(this._shortWeekdaysParse,de),I!==-1)?I:(I=Wt.call(this._minWeekdaysParse,de),I!==-1?I:null)):h==="ddd"?(I=Wt.call(this._shortWeekdaysParse,de),I!==-1||(I=Wt.call(this._weekdaysParse,de),I!==-1)?I:(I=Wt.call(this._minWeekdaysParse,de),I!==-1?I:null)):(I=Wt.call(this._minWeekdaysParse,de),I!==-1||(I=Wt.call(this._weekdaysParse,de),I!==-1)?I:(I=Wt.call(this._shortWeekdaysParse,de),I!==-1?I:null))}function mw(c,h,g){var _,I,X;if(this._weekdaysParseExact)return pw.call(this,c,h,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(I=b([2e3,1]).day(_),g&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(X="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(g&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(g&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!g&&this._weekdaysParse[_].test(c))return _}}function gw(c){if(!this.isValid())return c!=null?this:NaN;var h=Yn(this,"Day");return c!=null?(c=rw(c,this.localeData()),this.add(c-h,"d")):h}function yw(c){if(!this.isValid())return c!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return c==null?h:this.add(c-h,"d")}function vw(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=sw(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function bw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Uc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=lw),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function ww(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Uc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cw),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Cw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Uc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=dw),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Uc(){function c(Rn,Yo){return Yo.length-Rn.length}var h=[],g=[],_=[],I=[],X,de,ke,ze,it;for(X=0;X<7;X++)de=b([2e3,1]).day(X),ke=zn(this.weekdaysMin(de,"")),ze=zn(this.weekdaysShort(de,"")),it=zn(this.weekdays(de,"")),h.push(ke),g.push(ze),_.push(it),I.push(ke),I.push(ze),I.push(it);h.sort(c),g.sort(c),_.sort(c),I.sort(c),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function qc(){return this.hours()%12||12}function Sw(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,qc),j("k",["kk",2],0,Sw),j("hmm",0,0,function(){return""+qc.apply(this)+L(this.minutes(),2)}),j("hmmss",0,0,function(){return""+qc.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)});function ef(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}ef("a",!0),ef("A",!1);function tf(c,h){return h._meridiemParse}_e("a",tf),_e("A",tf),_e("H",Ue,ur),_e("h",Ue,Qt),_e("k",Ue,Qt),_e("HH",Ue,rt),_e("hh",Ue,rt),_e("kk",Ue,rt),_e("hmm",Be),_e("hmmss",rn),_e("Hmm",Be),_e("Hmmss",rn),yt(["H","HH"],Ce),yt(["k","kk"],function(c,h,g){var _=Xe(c);h[Ce]=_===24?0:_}),yt(["a","A"],function(c,h,g){g._isPm=g._locale.isPM(c),g._meridiem=c}),yt(["h","hh"],function(c,h,g){h[Ce]=Xe(c),v(g).bigHour=!0}),yt("hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Fe]=Xe(c.substr(_)),v(g).bigHour=!0}),yt("hmmss",function(c,h,g){var _=c.length-4,I=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Fe]=Xe(c.substr(_,2)),h[Ge]=Xe(c.substr(I)),v(g).bigHour=!0}),yt("Hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Fe]=Xe(c.substr(_))}),yt("Hmmss",function(c,h,g){var _=c.length-4,I=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Fe]=Xe(c.substr(_,2)),h[Ge]=Xe(c.substr(I))});function _w(c){return(c+"").toLowerCase().charAt(0)==="p"}var xw=/[ap]\.?m?\.?/i,Rw=sn("Hours",!0);function Tw(c,h,g){return c>11?g?"pm":"PM":g?"am":"AM"}var nf={calendar:N,longDateFormat:le,invalidDate:H,ordinal:Z,dayOfMonthOrdinalParse:fe,relativeTime:be,months:Bb,monthsShort:qh,week:Jb,weekdays:iw,weekdaysMin:aw,weekdaysShort:Jh,meridiemParse:xw},Vt={},ti={},ni;function Ew(c,h){var g,_=Math.min(c.length,h.length);for(g=0;g<_;g+=1)if(c[g]!==h[g])return g;return _}function of(c){return c&&c.toLowerCase().replace("_","-")}function kw(c){for(var h=0,g,_,I,X;h<c.length;){for(X=of(c[h]).split("-"),g=X.length,_=of(c[h+1]),_=_?_.split("-"):null;g>0;){if(I=Da(X.slice(0,g).join("-")),I)return I;if(_&&_.length>=g&&Ew(X,_)>=g-1)break;g--}h++}return ni}function Pw(c){return!!(c&&c.match("^[^/\\\\]*$"))}function Da(c){var h=null,g;if(Vt[c]===void 0&&e&&e.exports&&Pw(c))try{h=ni._abbr,g=GB,g("./locale/"+c),hr(h)}catch{Vt[c]=null}return Vt[c]}function hr(c,h){var g;return c&&(u(h)?g=Bo(c):g=Gc(c,h),g?ni=g:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),ni._abbr}function Gc(c,h){if(h!==null){var g,_=nf;if(h.abbr=c,Vt[c]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Vt[c]._config;else if(h.parentLocale!=null)if(Vt[h.parentLocale]!=null)_=Vt[h.parentLocale]._config;else if(g=Da(h.parentLocale),g!=null)_=g._config;else return ti[h.parentLocale]||(ti[h.parentLocale]=[]),ti[h.parentLocale].push({name:c,config:h}),null;return Vt[c]=new z(Y(_,h)),ti[c]&&ti[c].forEach(function(I){Gc(I.name,I.config)}),hr(c),Vt[c]}else return delete Vt[c],null}function Dw(c,h){if(h!=null){var g,_,I=nf;Vt[c]!=null&&Vt[c].parentLocale!=null?Vt[c].set(Y(Vt[c]._config,h)):(_=Da(c),_!=null&&(I=_._config),h=Y(I,h),_==null&&(h.abbr=c),g=new z(h),g.parentLocale=Vt[c],Vt[c]=g),hr(c)}else Vt[c]!=null&&(Vt[c].parentLocale!=null?(Vt[c]=Vt[c].parentLocale,c===hr()&&hr(c)):Vt[c]!=null&&delete Vt[c]);return Vt[c]}function Bo(c){var h;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return ni;if(!i(c)){if(h=Da(c),h)return h;c=[c]}return kw(c)}function Ow(){return ae(Vt)}function Kc(c){var h,g=c._a;return g&&v(c).overflow===-2&&(h=g[U]<0||g[U]>11?U:g[me]<1||g[me]>zc(g[hn],g[U])?me:g[Ce]<0||g[Ce]>24||g[Ce]===24&&(g[Fe]!==0||g[Ge]!==0||g[st]!==0)?Ce:g[Fe]<0||g[Fe]>59?Fe:g[Ge]<0||g[Ge]>59?Ge:g[st]<0||g[st]>999?st:-1,v(c)._overflowDayOfYear&&(h<hn||h>me)&&(h=me),v(c)._overflowWeeks&&h===-1&&(h=et),v(c)._overflowWeekday&&h===-1&&(h=Ze),v(c).overflow=h),c}var Mw=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Iw=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nw=/Z|[+-]\d\d(?::?\d\d)?/,Oa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Xc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Aw=/^\/?Date\((-?\d+)/i,Fw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Lw={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function rf(c){var h,g,_=c._i,I=Mw.exec(_)||Iw.exec(_),X,de,ke,ze,it=Oa.length,Rn=Xc.length;if(I){for(v(c).iso=!0,h=0,g=it;h<g;h++)if(Oa[h][1].exec(I[1])){de=Oa[h][0],X=Oa[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(I[3]){for(h=0,g=Rn;h<g;h++)if(Xc[h][1].exec(I[3])){ke=(I[2]||" ")+Xc[h][0];break}if(ke==null){c._isValid=!1;return}}if(!X&&ke!=null){c._isValid=!1;return}if(I[4])if(Nw.exec(I[4]))ze="Z";else{c._isValid=!1;return}c._f=de+(ke||"")+(ze||""),Qc(c)}else c._isValid=!1}function $w(c,h,g,_,I,X){var de=[Vw(c),qh.indexOf(h),parseInt(g,10),parseInt(_,10),parseInt(I,10)];return X&&de.push(parseInt(X,10)),de}function Vw(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function jw(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Bw(c,h,g){if(c){var _=Jh.indexOf(c),I=new Date(h[0],h[1],h[2]).getDay();if(_!==I)return v(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function Ww(c,h,g){if(c)return Lw[c];if(h)return 0;var _=parseInt(g,10),I=_%100,X=(_-I)/100;return X*60+I}function sf(c){var h=Fw.exec(jw(c._i)),g;if(h){if(g=$w(h[4],h[3],h[2],h[5],h[6],h[7]),!Bw(h[1],g,c))return;c._a=g,c._tzm=Ww(h[8],h[9],h[10]),c._d=Js.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function Hw(c){var h=Aw.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(rf(c),c._isValid===!1)delete c._isValid;else return;if(sf(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:o.createFromInputFallback(c)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function ns(c,h,g){return c??h??g}function zw(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function Zc(c){var h,g,_=[],I,X,de;if(!c._d){for(I=zw(c),c._w&&c._a[me]==null&&c._a[U]==null&&Yw(c),c._dayOfYear!=null&&(de=ns(c._a[hn],I[hn]),(c._dayOfYear>Jt(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),g=Js(de,0,c._dayOfYear),c._a[U]=g.getUTCMonth(),c._a[me]=g.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=I[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[Ce]===24&&c._a[Fe]===0&&c._a[Ge]===0&&c._a[st]===0&&(c._nextDay=!0,c._a[Ce]=0),c._d=(c._useUTC?Js:Zb).apply(null,_),X=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[Ce]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==X&&(v(c).weekdayMismatch=!0)}}function Yw(c){var h,g,_,I,X,de,ke,ze,it;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(X=1,de=4,g=ns(h.GG,c._a[hn],ei(Mt(),1,4).year),_=ns(h.W,1),I=ns(h.E,1),(I<1||I>7)&&(ze=!0)):(X=c._locale._week.dow,de=c._locale._week.doy,it=ei(Mt(),X,de),g=ns(h.gg,c._a[hn],it.year),_=ns(h.w,it.week),h.d!=null?(I=h.d,(I<0||I>6)&&(ze=!0)):h.e!=null?(I=h.e+X,(h.e<0||h.e>6)&&(ze=!0)):I=X),_<1||_>jo(g,X,de)?v(c)._overflowWeeks=!0:ze!=null?v(c)._overflowWeekday=!0:(ke=Qh(g,_,I,X,de),c._a[hn]=ke.year,c._dayOfYear=ke.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function Qc(c){if(c._f===o.ISO_8601){rf(c);return}if(c._f===o.RFC_2822){sf(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,g,_,I,X,de,ke=h.length,ze=0,it,Rn;for(I=ce(c._f,c._locale).match(W)||[],Rn=I.length,g=0;g<Rn;g++)X=I[g],_=(h.match(Bc(X,c))||[])[0],_&&(de=h.substr(0,h.indexOf(_)),de.length>0&&v(c).unusedInput.push(de),h=h.slice(h.indexOf(_)+_.length),ze+=_.length),se[X]?(_?v(c).empty=!1:v(c).unusedTokens.push(X),Wc(X,_,c)):c._strict&&!_&&v(c).unusedTokens.push(X);v(c).charsLeftOver=ke-ze,h.length>0&&v(c).unusedInput.push(h),c._a[Ce]<=12&&v(c).bigHour===!0&&c._a[Ce]>0&&(v(c).bigHour=void 0),v(c).parsedDateParts=c._a.slice(0),v(c).meridiem=c._meridiem,c._a[Ce]=Uw(c._locale,c._a[Ce],c._meridiem),it=v(c).era,it!==null&&(c._a[hn]=c._locale.erasConvertYear(it,c._a[hn])),Zc(c),Kc(c)}function Uw(c,h,g){var _;return g==null?h:c.meridiemHour!=null?c.meridiemHour(h,g):(c.isPM!=null&&(_=c.isPM(g),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function qw(c){var h,g,_,I,X,de,ke=!1,ze=c._f.length;if(ze===0){v(c).invalidFormat=!0,c._d=new Date(NaN);return}for(I=0;I<ze;I++)X=0,de=!1,h=O({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[I],Qc(h),D(h)&&(de=!0),X+=v(h).charsLeftOver,X+=v(h).unusedTokens.length*10,v(h).score=X,ke?X<_&&(_=X,g=h):(_==null||X<_||de)&&(_=X,g=h,de&&(ke=!0));w(c,g||h)}function Gw(c){if(!c._d){var h=Je(c._i),g=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,g,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),Zc(c)}}function Kw(c){var h=new A(Kc(af(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function af(c){var h=c._i,g=c._f;return c._locale=c._locale||Bo(c._l),h===null||g===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new A(Kc(h)):(p(h)?c._d=h:i(g)?qw(c):g?Qc(c):Xw(c),D(c)||(c._d=null),c))}function Xw(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?Hw(c):i(h)?(c._a=y(h.slice(0),function(g){return parseInt(g,10)}),Zc(c)):a(h)?Gw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function lf(c,h,g,_,I){var X={};return(h===!0||h===!1)&&(_=h,h=void 0),(g===!0||g===!1)&&(_=g,g=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),X._isAMomentObject=!0,X._useUTC=X._isUTC=I,X._l=g,X._i=c,X._f=h,X._strict=_,Kw(X)}function Mt(c,h,g,_){return lf(c,h,g,_,!1)}var Zw=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:x()}),Qw=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:x()});function cf(c,h){var g,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Mt();for(g=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](g))&&(g=h[_]);return g}function Jw(){var c=[].slice.call(arguments,0);return cf("isBefore",c)}function eC(){var c=[].slice.call(arguments,0);return cf("isAfter",c)}var tC=function(){return Date.now?Date.now():+new Date},oi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nC(c){var h,g=!1,_,I=oi.length;for(h in c)if(l(c,h)&&!(Wt.call(oi,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<I;++_)if(c[oi[_]]){if(g)return!1;parseFloat(c[oi[_]])!==Xe(c[oi[_]])&&(g=!0)}return!0}function oC(){return this._isValid}function rC(){return ao(NaN)}function Ma(c){var h=Je(c),g=h.year||0,_=h.quarter||0,I=h.month||0,X=h.week||h.isoWeek||0,de=h.day||0,ke=h.hour||0,ze=h.minute||0,it=h.second||0,Rn=h.millisecond||0;this._isValid=nC(h),this._milliseconds=+Rn+it*1e3+ze*6e4+ke*1e3*60*60,this._days=+de+X*7,this._months=+I+_*3+g*12,this._data={},this._locale=Bo(),this._bubble()}function Ia(c){return c instanceof Ma}function Jc(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function sC(c,h,g){var _=Math.min(c.length,h.length),I=Math.abs(c.length-h.length),X=0,de;for(de=0;de<_;de++)Xe(c[de])!==Xe(h[de])&&X++;return X+I}function df(c,h){j(c,0,0,function(){var g=this.utcOffset(),_="+";return g<0&&(g=-g,_="-"),_+L(~~(g/60),2)+h+L(~~g%60,2)})}df("Z",":"),df("ZZ",""),_e("Z",at),_e("ZZ",at),yt(["Z","ZZ"],function(c,h,g){g._useUTC=!0,g._tzm=ed(at,c)});var iC=/([\+\-]|\d\d)/gi;function ed(c,h){var g=(h||"").match(c),_,I,X;return g===null?null:(_=g[g.length-1]||[],I=(_+"").match(iC)||["-",0,0],X=+(I[1]*60)+Xe(I[2]),X===0?0:I[0]==="+"?X:-X)}function td(c,h){var g,_;return h._isUTC?(g=h.clone(),_=(F(c)||p(c)?c.valueOf():Mt(c).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+_),o.updateOffset(g,!1),g):Mt(c).local()}function nd(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function aC(c,h,g){var _=this._offset||0,I;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=ed(at,c),c===null)return this}else Math.abs(c)<16&&!g&&(c=c*60);return!this._isUTC&&h&&(I=nd(this)),this._offset=c,this._isUTC=!0,I!=null&&this.add(I,"m"),_!==c&&(!h||this._changeInProgress?pf(this,ao(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:nd(this)}function lC(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function cC(c){return this.utcOffset(0,c)}function dC(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(nd(this),"m")),this}function uC(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=ed(Fn,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function hC(c){return this.isValid()?(c=c?Mt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function fC(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pC(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return O(c,this),c=af(c),c._a?(h=c._isUTC?b(c._a):Mt(c._a),this._isDSTShifted=this.isValid()&&sC(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function mC(){return this.isValid()?!this._isUTC:!1}function gC(){return this.isValid()?this._isUTC:!1}function uf(){return this.isValid()?this._isUTC&&this._offset===0:!1}var yC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,vC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ao(c,h){var g=c,_=null,I,X,de;return Ia(c)?g={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(g={},h?g[h]=+c:g.milliseconds=+c):(_=yC.exec(c))?(I=_[1]==="-"?-1:1,g={y:0,d:Xe(_[me])*I,h:Xe(_[Ce])*I,m:Xe(_[Fe])*I,s:Xe(_[Ge])*I,ms:Xe(Jc(_[st]*1e3))*I}):(_=vC.exec(c))?(I=_[1]==="-"?-1:1,g={y:Er(_[2],I),M:Er(_[3],I),w:Er(_[4],I),d:Er(_[5],I),h:Er(_[6],I),m:Er(_[7],I),s:Er(_[8],I)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(de=bC(Mt(g.from),Mt(g.to)),g={},g.ms=de.milliseconds,g.M=de.months),X=new Ma(g),Ia(c)&&l(c,"_locale")&&(X._locale=c._locale),Ia(c)&&l(c,"_isValid")&&(X._isValid=c._isValid),X}ao.fn=Ma.prototype,ao.invalid=rC;function Er(c,h){var g=c&&parseFloat(c.replace(",","."));return(isNaN(g)?0:g)*h}function hf(c,h){var g={};return g.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(g.months,"M").isAfter(h)&&--g.months,g.milliseconds=+h-+c.clone().add(g.months,"M"),g}function bC(c,h){var g;return c.isValid()&&h.isValid()?(h=td(h,c),c.isBefore(h)?g=hf(c,h):(g=hf(h,c),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function ff(c,h){return function(g,_){var I,X;return _!==null&&!isNaN(+_)&&(K(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),X=g,g=_,_=X),I=ao(g,_),pf(this,I,c),this}}function pf(c,h,g,_){var I=h._milliseconds,X=Jc(h._days),de=Jc(h._months);c.isValid()&&(_=_??!0,de&&Kh(c,Yn(c,"Month")+de*g),X&&bo(c,"Date",Yn(c,"Date")+X*g),I&&c._d.setTime(c._d.valueOf()+I*g),_&&o.updateOffset(c,X||de))}var wC=ff(1,"add"),CC=ff(-1,"subtract");function mf(c){return typeof c=="string"||c instanceof String}function SC(c){return F(c)||p(c)||mf(c)||f(c)||xC(c)||_C(c)||c===null||c===void 0}function _C(c){var h=a(c)&&!d(c),g=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,X,de=_.length;for(I=0;I<de;I+=1)X=_[I],g=g||l(c,X);return h&&g}function xC(c){var h=i(c),g=!1;return h&&(g=c.filter(function(_){return!f(_)&&mf(c)}).length===0),h&&g}function RC(c){var h=a(c)&&!d(c),g=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],I,X;for(I=0;I<_.length;I+=1)X=_[I],g=g||l(c,X);return h&&g}function TC(c,h){var g=c.diff(h,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function EC(c,h){arguments.length===1&&(arguments[0]?SC(arguments[0])?(c=arguments[0],h=void 0):RC(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var g=c||Mt(),_=td(g,this).startOf("day"),I=o.calendarFormat(this,_)||"sameElse",X=h&&(G(h[I])?h[I].call(this,g):h[I]);return this.format(X||this.localeData().calendar(I,this,Mt(g)))}function kC(){return new A(this)}function PC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(h).valueOf()):!1}function DC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(h).valueOf()<g.valueOf()):!1}function OC(c,h,g,_){var I=F(c)?c:Mt(c),X=F(h)?h:Mt(h);return this.isValid()&&I.isValid()&&X.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(I,g):!this.isBefore(I,g))&&(_[1]===")"?this.isBefore(X,g):!this.isAfter(X,g))):!1}function MC(c,h){var g=F(c)?c:Mt(c),_;return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()===g.valueOf():(_=g.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function IC(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function NC(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function AC(c,h,g){var _,I,X;if(!this.isValid())return NaN;if(_=td(c,this),!_.isValid())return NaN;switch(I=(_.utcOffset()-this.utcOffset())*6e4,h=Ne(h),h){case"year":X=Na(this,_)/12;break;case"month":X=Na(this,_);break;case"quarter":X=Na(this,_)/3;break;case"second":X=(this-_)/1e3;break;case"minute":X=(this-_)/6e4;break;case"hour":X=(this-_)/36e5;break;case"day":X=(this-_-I)/864e5;break;case"week":X=(this-_-I)/6048e5;break;default:X=this-_}return g?X:En(X)}function Na(c,h){if(c.date()<h.date())return-Na(h,c);var g=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(g,"months"),I,X;return h-_<0?(I=c.clone().add(g-1,"months"),X=(h-_)/(_-I)):(I=c.clone().add(g+1,"months"),X=(h-_)/(I-_)),-(g+X)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function FC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function LC(c){if(!this.isValid())return null;var h=c!==!0,g=h?this.clone().utc():this;return g.year()<0||g.year()>9999?te(g,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):G(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",te(g,"Z")):te(g,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $C(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",g,_,I,X;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),g="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",X=h+'[")]',this.format(g+_+I+X)}function VC(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function jC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?ao({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function BC(c){return this.from(Mt(),c)}function WC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?ao({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function HC(c){return this.to(Mt(),c)}function gf(c){var h;return c===void 0?this._locale._abbr:(h=Bo(c),h!=null&&(this._locale=h),this)}var yf=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function vf(){return this._locale}var Aa=1e3,os=60*Aa,Fa=60*os,bf=(365*400+97)*24*Fa;function rs(c,h){return(c%h+h)%h}function wf(c,h,g){return c<100&&c>=0?new Date(c+400,h,g)-bf:new Date(c,h,g).valueOf()}function Cf(c,h,g){return c<100&&c>=0?Date.UTC(c+400,h,g)-bf:Date.UTC(c,h,g)}function zC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Cf:wf,c){case"year":h=g(this.year(),0,1);break;case"quarter":h=g(this.year(),this.month()-this.month()%3,1);break;case"month":h=g(this.year(),this.month(),1);break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=g(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=rs(h+(this._isUTC?0:this.utcOffset()*os),Fa);break;case"minute":h=this._d.valueOf(),h-=rs(h,os);break;case"second":h=this._d.valueOf(),h-=rs(h,Aa);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function YC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Cf:wf,c){case"year":h=g(this.year()+1,0,1)-1;break;case"quarter":h=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=g(this.year(),this.month()+1,1)-1;break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=Fa-rs(h+(this._isUTC?0:this.utcOffset()*os),Fa)-1;break;case"minute":h=this._d.valueOf(),h+=os-rs(h,os)-1;break;case"second":h=this._d.valueOf(),h+=Aa-rs(h,Aa)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function UC(){return this._d.valueOf()-(this._offset||0)*6e4}function qC(){return Math.floor(this.valueOf()/1e3)}function GC(){return new Date(this.valueOf())}function KC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function XC(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function ZC(){return this.isValid()?this.toISOString():null}function QC(){return D(this)}function JC(){return w({},v(this))}function eS(){return v(this).overflow}function tS(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),_e("N",od),_e("NN",od),_e("NNN",od),_e("NNNN",hS),_e("NNNNN",fS),yt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,g,_){var I=g._locale.erasParse(c,_,g._strict);I?v(g).era=I:v(g).invalidEra=c}),_e("y",ht),_e("yy",ht),_e("yyy",ht),_e("yyyy",ht),_e("yo",pS),yt(["y","yy","yyy","yyyy"],hn),yt(["yo"],function(c,h,g,_){var I;g._locale._eraYearOrdinalRegex&&(I=c.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?h[hn]=g._locale.eraYearOrdinalParse(c,I):h[hn]=parseInt(c,10)});function nS(c,h){var g,_,I,X=this._eras||Bo("en")._eras;for(g=0,_=X.length;g<_;++g){switch(typeof X[g].since){case"string":I=o(X[g].since).startOf("day"),X[g].since=I.valueOf();break}switch(typeof X[g].until){case"undefined":X[g].until=1/0;break;case"string":I=o(X[g].until).startOf("day").valueOf(),X[g].until=I.valueOf();break}}return X}function oS(c,h,g){var _,I,X=this.eras(),de,ke,ze;for(c=c.toUpperCase(),_=0,I=X.length;_<I;++_)if(de=X[_].name.toUpperCase(),ke=X[_].abbr.toUpperCase(),ze=X[_].narrow.toUpperCase(),g)switch(h){case"N":case"NN":case"NNN":if(ke===c)return X[_];break;case"NNNN":if(de===c)return X[_];break;case"NNNNN":if(ze===c)return X[_];break}else if([de,ke,ze].indexOf(c)>=0)return X[_]}function rS(c,h){var g=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*g}function sS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].name;return""}function iS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].narrow;return""}function aS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].abbr;return""}function lS(){var c,h,g,_,I=this.localeData().eras();for(c=0,h=I.length;c<h;++c)if(g=I[c].since<=I[c].until?1:-1,_=this.clone().startOf("day").valueOf(),I[c].since<=_&&_<=I[c].until||I[c].until<=_&&_<=I[c].since)return(this.year()-o(I[c].since).year())*g+I[c].offset;return this.year()}function cS(c){return l(this,"_erasNameRegex")||rd.call(this),c?this._erasNameRegex:this._erasRegex}function dS(c){return l(this,"_erasAbbrRegex")||rd.call(this),c?this._erasAbbrRegex:this._erasRegex}function uS(c){return l(this,"_erasNarrowRegex")||rd.call(this),c?this._erasNarrowRegex:this._erasRegex}function od(c,h){return h.erasAbbrRegex(c)}function hS(c,h){return h.erasNameRegex(c)}function fS(c,h){return h.erasNarrowRegex(c)}function pS(c,h){return h._eraYearOrdinalRegex||ht}function rd(){var c=[],h=[],g=[],_=[],I,X,de,ke,ze,it=this.eras();for(I=0,X=it.length;I<X;++I)de=zn(it[I].name),ke=zn(it[I].abbr),ze=zn(it[I].narrow),h.push(de),c.push(ke),g.push(ze),_.push(de),_.push(ke),_.push(ze);this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+g.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function La(c,h){j(0,[c,c.length],0,h)}La("gggg","weekYear"),La("ggggg","weekYear"),La("GGGG","isoWeekYear"),La("GGGGG","isoWeekYear"),_e("G",nn),_e("g",nn),_e("GG",Ue,rt),_e("gg",Ue,rt),_e("GGGG",Oe,Ut),_e("gggg",Oe,Ut),_e("GGGGG",We,Lt),_e("ggggg",We,Lt),Tr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,g,_){h[_.substr(0,2)]=Xe(c)}),Tr(["gg","GG"],function(c,h,g,_){h[_]=o.parseTwoDigitYear(c)});function mS(c){return Sf.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function gS(c){return Sf.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function yS(){return jo(this.year(),1,4)}function vS(){return jo(this.isoWeekYear(),1,4)}function bS(){var c=this.localeData()._week;return jo(this.year(),c.dow,c.doy)}function wS(){var c=this.localeData()._week;return jo(this.weekYear(),c.dow,c.doy)}function Sf(c,h,g,_,I){var X;return c==null?ei(this,_,I).year:(X=jo(c,_,I),h>X&&(h=X),CS.call(this,c,h,g,_,I))}function CS(c,h,g,_,I){var X=Qh(c,h,g,_,I),de=Js(X.year,0,X.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}j("Q",0,"Qo","quarter"),_e("Q",Yt),yt("Q",function(c,h){h[U]=(Xe(c)-1)*3});function SS(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}j("D",["DD",2],"Do","date"),_e("D",Ue,Qt),_e("DD",Ue,rt),_e("Do",function(c,h){return c?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),yt(["D","DD"],me),yt("Do",function(c,h){h[me]=Xe(c.match(Ue)[0])});var _f=sn("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),_e("DDD",un),_e("DDDD",Ot),yt(["DDD","DDDD"],function(c,h,g){g._dayOfYear=Xe(c)});function _S(c){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?h:this.add(c-h,"d")}j("m",["mm",2],0,"minute"),_e("m",Ue,ur),_e("mm",Ue,rt),yt(["m","mm"],Fe);var xS=sn("Minutes",!1);j("s",["ss",2],0,"second"),_e("s",Ue,ur),_e("ss",Ue,rt),yt(["s","ss"],Ge);var RS=sn("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),_e("S",un,Yt),_e("SS",un,rt),_e("SSS",un,Ot);var fr,xf;for(fr="SSSS";fr.length<=9;fr+="S")_e(fr,ht);function TS(c,h){h[st]=Xe(("0."+c)*1e3)}for(fr="S";fr.length<=9;fr+="S")yt(fr,TS);xf=sn("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function ES(){return this._isUTC?"UTC":""}function kS(){return this._isUTC?"Coordinated Universal Time":""}var ye=A.prototype;ye.add=wC,ye.calendar=EC,ye.clone=kC,ye.diff=AC,ye.endOf=YC,ye.format=VC,ye.from=jC,ye.fromNow=BC,ye.to=WC,ye.toNow=HC,ye.get=vn,ye.invalidAt=eS,ye.isAfter=PC,ye.isBefore=DC,ye.isBetween=OC,ye.isSame=MC,ye.isSameOrAfter=IC,ye.isSameOrBefore=NC,ye.isValid=QC,ye.lang=yf,ye.locale=gf,ye.localeData=vf,ye.max=Qw,ye.min=Zw,ye.parsingFlags=JC,ye.set=Qs,ye.startOf=zC,ye.subtract=CC,ye.toArray=KC,ye.toObject=XC,ye.toDate=GC,ye.toISOString=LC,ye.inspect=$C,typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ye.toJSON=ZC,ye.toString=FC,ye.unix=qC,ye.valueOf=UC,ye.creationData=tS,ye.eraName=sS,ye.eraNarrow=iS,ye.eraAbbr=aS,ye.eraYear=lS,ye.year=$t,ye.isLeapYear=qt,ye.weekYear=mS,ye.isoWeekYear=gS,ye.quarter=ye.quarters=SS,ye.month=Xh,ye.daysInMonth=Gb,ye.week=ye.weeks=nw,ye.isoWeek=ye.isoWeeks=ow,ye.weeksInYear=bS,ye.weeksInWeekYear=wS,ye.isoWeeksInYear=yS,ye.isoWeeksInISOWeekYear=vS,ye.date=_f,ye.day=ye.days=gw,ye.weekday=yw,ye.isoWeekday=vw,ye.dayOfYear=_S,ye.hour=ye.hours=Rw,ye.minute=ye.minutes=xS,ye.second=ye.seconds=RS,ye.millisecond=ye.milliseconds=xf,ye.utcOffset=aC,ye.utc=cC,ye.local=dC,ye.parseZone=uC,ye.hasAlignedHourOffset=hC,ye.isDST=fC,ye.isLocal=mC,ye.isUtcOffset=gC,ye.isUtc=uf,ye.isUTC=uf,ye.zoneAbbr=ES,ye.zoneName=kS,ye.dates=R("dates accessor is deprecated. Use date instead.",_f),ye.months=R("months accessor is deprecated. Use month instead",Xh),ye.years=R("years accessor is deprecated. Use year instead",$t),ye.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",lC),ye.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pC);function PS(c){return Mt(c*1e3)}function DS(){return Mt.apply(null,arguments).parseZone()}function Rf(c){return c}var ft=z.prototype;ft.calendar=M,ft.longDateFormat=he,ft.invalidDate=re,ft.ordinal=pe,ft.preparse=Rf,ft.postformat=Rf,ft.relativeTime=ge,ft.pastFuture=Re,ft.set=q,ft.eras=nS,ft.erasParse=oS,ft.erasConvertYear=rS,ft.erasAbbrRegex=dS,ft.erasNameRegex=cS,ft.erasNarrowRegex=uS,ft.months=zb,ft.monthsShort=Yb,ft.monthsParse=qb,ft.monthsRegex=Xb,ft.monthsShortRegex=Kb,ft.week=Qb,ft.firstDayOfYear=tw,ft.firstDayOfWeek=ew,ft.weekdays=uw,ft.weekdaysMin=fw,ft.weekdaysShort=hw,ft.weekdaysParse=mw,ft.weekdaysRegex=bw,ft.weekdaysShortRegex=ww,ft.weekdaysMinRegex=Cw,ft.isPM=_w,ft.meridiem=Tw;function $a(c,h,g,_){var I=Bo(),X=b().set(_,h);return I[g](X,c)}function Tf(c,h,g){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return $a(c,h,g,"month");var _,I=[];for(_=0;_<12;_++)I[_]=$a(c,_,g,"month");return I}function sd(c,h,g,_){typeof c=="boolean"?(f(h)&&(g=h,h=void 0),h=h||""):(h=c,g=h,c=!1,f(h)&&(g=h,h=void 0),h=h||"");var I=Bo(),X=c?I._week.dow:0,de,ke=[];if(g!=null)return $a(h,(g+X)%7,_,"day");for(de=0;de<7;de++)ke[de]=$a(h,(de+X)%7,_,"day");return ke}function OS(c,h){return Tf(c,h,"months")}function MS(c,h){return Tf(c,h,"monthsShort")}function IS(c,h,g){return sd(c,h,g,"weekdays")}function NS(c,h,g){return sd(c,h,g,"weekdaysShort")}function AS(c,h,g){return sd(c,h,g,"weekdaysMin")}hr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,g=Xe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+g}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",hr),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Bo);var Wo=Math.abs;function FS(){var c=this._data;return this._milliseconds=Wo(this._milliseconds),this._days=Wo(this._days),this._months=Wo(this._months),c.milliseconds=Wo(c.milliseconds),c.seconds=Wo(c.seconds),c.minutes=Wo(c.minutes),c.hours=Wo(c.hours),c.months=Wo(c.months),c.years=Wo(c.years),this}function Ef(c,h,g,_){var I=ao(h,g);return c._milliseconds+=_*I._milliseconds,c._days+=_*I._days,c._months+=_*I._months,c._bubble()}function LS(c,h){return Ef(this,c,h,1)}function $S(c,h){return Ef(this,c,h,-1)}function kf(c){return c<0?Math.floor(c):Math.ceil(c)}function VS(){var c=this._milliseconds,h=this._days,g=this._months,_=this._data,I,X,de,ke,ze;return c>=0&&h>=0&&g>=0||c<=0&&h<=0&&g<=0||(c+=kf(id(g)+h)*864e5,h=0,g=0),_.milliseconds=c%1e3,I=En(c/1e3),_.seconds=I%60,X=En(I/60),_.minutes=X%60,de=En(X/60),_.hours=de%24,h+=En(de/24),ze=En(Pf(h)),g+=ze,h-=kf(id(ze)),ke=En(g/12),g%=12,_.days=h,_.months=g,_.years=ke,this}function Pf(c){return c*4800/146097}function id(c){return c*146097/4800}function jS(c){if(!this.isValid())return NaN;var h,g,_=this._milliseconds;if(c=Ne(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,g=this._months+Pf(h),c){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(h=this._days+Math.round(id(this._months)),c){case"week":return h/7+_/6048e5;case"day":return h+_/864e5;case"hour":return h*24+_/36e5;case"minute":return h*1440+_/6e4;case"second":return h*86400+_/1e3;case"millisecond":return Math.floor(h*864e5)+_;default:throw new Error("Unknown unit "+c)}}function Ho(c){return function(){return this.as(c)}}var Df=Ho("ms"),BS=Ho("s"),WS=Ho("m"),HS=Ho("h"),zS=Ho("d"),YS=Ho("w"),US=Ho("M"),qS=Ho("Q"),GS=Ho("y"),KS=Df;function XS(){return ao(this)}function ZS(c){return c=Ne(c),this.isValid()?this[c+"s"]():NaN}function kr(c){return function(){return this.isValid()?this._data[c]:NaN}}var QS=kr("milliseconds"),JS=kr("seconds"),e0=kr("minutes"),t0=kr("hours"),n0=kr("days"),o0=kr("months"),r0=kr("years");function s0(){return En(this.days()/7)}var zo=Math.round,ss={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function i0(c,h,g,_,I){return I.relativeTime(h||1,!!g,c,_)}function a0(c,h,g,_){var I=ao(c).abs(),X=zo(I.as("s")),de=zo(I.as("m")),ke=zo(I.as("h")),ze=zo(I.as("d")),it=zo(I.as("M")),Rn=zo(I.as("w")),Yo=zo(I.as("y")),pr=X<=g.ss&&["s",X]||X<g.s&&["ss",X]||de<=1&&["m"]||de<g.m&&["mm",de]||ke<=1&&["h"]||ke<g.h&&["hh",ke]||ze<=1&&["d"]||ze<g.d&&["dd",ze];return g.w!=null&&(pr=pr||Rn<=1&&["w"]||Rn<g.w&&["ww",Rn]),pr=pr||it<=1&&["M"]||it<g.M&&["MM",it]||Yo<=1&&["y"]||["yy",Yo],pr[2]=h,pr[3]=+c>0,pr[4]=_,i0.apply(null,pr)}function l0(c){return c===void 0?zo:typeof c=="function"?(zo=c,!0):!1}function c0(c,h){return ss[c]===void 0?!1:h===void 0?ss[c]:(ss[c]=h,c==="s"&&(ss.ss=h-1),!0)}function d0(c,h){if(!this.isValid())return this.localeData().invalidDate();var g=!1,_=ss,I,X;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(g=c),typeof h=="object"&&(_=Object.assign({},ss,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),I=this.localeData(),X=a0(this,!g,_,I),g&&(X=I.pastFuture(+this,X)),I.postformat(X)}var ad=Math.abs;function is(c){return(c>0)-(c<0)||+c}function Va(){if(!this.isValid())return this.localeData().invalidDate();var c=ad(this._milliseconds)/1e3,h=ad(this._days),g=ad(this._months),_,I,X,de,ke=this.asSeconds(),ze,it,Rn,Yo;return ke?(_=En(c/60),I=En(_/60),c%=60,_%=60,X=En(g/12),g%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",ze=ke<0?"-":"",it=is(this._months)!==is(ke)?"-":"",Rn=is(this._days)!==is(ke)?"-":"",Yo=is(this._milliseconds)!==is(ke)?"-":"",ze+"P"+(X?it+X+"Y":"")+(g?it+g+"M":"")+(h?Rn+h+"D":"")+(I||_||c?"T":"")+(I?Yo+I+"H":"")+(_?Yo+_+"M":"")+(c?Yo+de+"S":"")):"P0D"}var lt=Ma.prototype;lt.isValid=oC,lt.abs=FS,lt.add=LS,lt.subtract=$S,lt.as=jS,lt.asMilliseconds=Df,lt.asSeconds=BS,lt.asMinutes=WS,lt.asHours=HS,lt.asDays=zS,lt.asWeeks=YS,lt.asMonths=US,lt.asQuarters=qS,lt.asYears=GS,lt.valueOf=KS,lt._bubble=VS,lt.clone=XS,lt.get=ZS,lt.milliseconds=QS,lt.seconds=JS,lt.minutes=e0,lt.hours=t0,lt.days=n0,lt.weeks=s0,lt.months=o0,lt.years=r0,lt.humanize=d0,lt.toISOString=Va,lt.toString=Va,lt.toJSON=Va,lt.locale=gf,lt.localeData=vf,lt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Va),lt.lang=yf,j("X",0,0,"unix"),j("x",0,0,"valueOf"),_e("x",nn),_e("X",Zt),yt("X",function(c,h,g){g._d=new Date(parseFloat(c)*1e3)}),yt("x",function(c,h,g){g._d=new Date(Xe(c))});//! moment.js
312
312
  return o.version="2.30.1",r(Mt),o.fn=ye,o.min=Jw,o.max=eC,o.now=tC,o.utc=b,o.unix=PS,o.months=OS,o.isDate=p,o.locale=hr,o.invalid=x,o.duration=ao,o.isMoment=F,o.weekdays=IS,o.parseZone=DS,o.localeData=Bo,o.isDuration=Ia,o.monthsShort=MS,o.weekdaysMin=AS,o.defineLocale=Gc,o.updateLocale=Dw,o.locales=Ow,o.weekdaysShort=NS,o.normalizeUnits=Ne,o.relativeTimeRounding=l0,o.relativeTimeThreshold=c0,o.calendarFormat=TC,o.prototype=ye,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o})}(vl)),vl.exports}XB();const ZB=`
313
313
  html body {
314
314
  font-family: "Courier", "sans-serif";
@@ -354,7 +354,7 @@ return o.version="2.30.1",r(Mt),o.fn=ye,o.min=Jw,o.max=eC,o.now=tC,o.utc=b,o.uni
354
354
  .align_left {
355
355
  text-align: left;
356
356
  }
357
- `;class Ib{constructor(){this.clientId=0,this.clientName="",this.cssStyles=ZB}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("align_left"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}columnNames(t){const n=document.createElement("tr");return(t.grid?.getColumns()||[]).filter(a=>a.forPrint).forEach(({name:a})=>{const l=document.createElement("th");l.classList.add("column_name"),typeof a=="string"?l.innerText=a:l.innerText=" ",n.append(l)}),n}tableNameAndTime(t){const n=document.createElement("tr");n.classList.add("heading");const o=document.createElement("th");o.setAttribute("colspan","2"),o.classList.add("table_name"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.setAttribute("colspan","100%"),r.classList.add("date_stamp"),r.innerText=xe().format("MM/DD/YYYY h:mm A"),n.append(r),n}createStyleElement(){const t=document.createElement("style");return t.innerHTML=this.cssStyles,t}createTableElement(t){const n=document.createElement("table");return n.append(this.createThead(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return jc(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("align_left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createThead(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n.append(this.columnNames(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=Vy(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=u.printer||w||u.formatter;let m=a[p];if(d){const v=u.groupTotalsFormatter;m=v?v(a,u,o):""}else b&&(m=b(0,0,m,u,a,o));f.innerText=m||"",r.append(f)});return r}print(t,n,o){this.clientId=n,this.clientName=o;const r=window.open(),i=document.createElement("title");i.innerText=t.name||t.id;const a=r.document.querySelector("head");a.append(i),a.append(this.createStyleElement()),r.document.querySelector("body").append(this.createTableElement(t)),r.print()}}function QB(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class JB{constructor(t){this.columnPicker=null,this.downloadManager=new ID,this.filter=new HN,this.hotKeysBehavior=new jy,this.summaryColumnIds=[],this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new Ib;const{columnPicker:n,downloadManager:o,filter:r,hotKeys:i,id:a,name:l,printer:d,summaryColumnIds:u,totalCalculator:f}=t;this.id=a,this.name=l||"",n&&(this.columnPicker=n),o&&(this.downloadManager=o),r&&(this.filter=r),i&&(this.hotKeysBehavior=i),d&&(this.printer=d),u&&(this.summaryColumnIds=u),f&&(this.totalCalculator=f)}createGrid(t,n,o){this.reset();const r=new PB(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(fm(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){QB(`#${this.id}`)||this.hotKeysBehavior.handleKeyboardEvent(t,this)}get grid(){return this._grid}get grouping(){return this._grouping}get isEdited(){return this._isEdited}set grid(t){this._grid=t}set grouping(t){if(this._grouping={...this._grouping,...t},!this.grid)return;const n=this.grid.getData();this.grouping.isGrouped?n.setGrouping(this.grouping.groups||[]):n.setGrouping([])}set isEdited(t){this._isEdited=t,this.notifyObservers()}set printer(t){this._printer=t}get printer(){return this._printer}get isActive(){return this._isActive}set isActive(t){this._isActive=t}get lastActiveSell(){return this._lastActiveCell}set lastActiveSell(t){this._lastActiveCell=t}resizeCanvas(){console.log(""),this.grid?.resizeCanvas()}registerObservers(t){~this._observers.indexOf(t)||this._observers.push(t)}notifyObservers(){for(const t of this._observers)t(this)}deleteObserver(t){const n=this._observers.indexOf(t);this._observers.splice(n,1)}reset(){this.grid?.onKeyDown.unsubscribe(fm(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class eW extends xa{constructor(){super(...arguments),this.clientId=0,this.clientName="",this.x=0,this.y=0}}const ln=new eW;class tW extends xa{constructor(){super(...arguments),this.x=0,this.y=0}}const Po=new tW;class nW extends xa{constructor(){super(...arguments),this._open=!1,this.x=0,this.y=0}get open(){return this._open}set open(t){this._open=t,this.notify()}get table(){return this._table}set table(t){this._table=t}}const jn=new nW,oW=e=>{const t=e.getLength()-1;return e.getItem(t)},Bh=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},Wh=()=>{Pb.commitCurrentEdit()};function Hh(e){return e.ctrlKey||e.metaKey}function zh(e){return Hh(e)&&e.keyCode===Xr.KeyB}function Nb(e){return e.shiftKey&&e.keyCode===Xr.KeyDel}function rW(e){return e.altKey&&e.keyCode===Xr.KeyS}function Yh(e){return Hh(e)&&e.keyCode===Xr.KeyY}function Uh(e){return Hh(e)&&e.keyCode===Xr.KeyZ}function sW(e){const t=e.getActiveCell();return!e.getSelectedRows().length&&!t}function iW(e){const t=aW(e),o=e.getData().getItems(),r=o.findIndex(a=>a.id===t)+1,i=o.length;return r||i}const jc=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t},Ab=e=>{const t=e.getSelectedRows(),n=e.getData(),o=jc(n),r=n.getItems(),i=[],a=n.getIdPropertyName();let l=Bh(e);t.length?t.forEach(d=>{i.push({...o[d],[a]:l++,isEdited:!0,isNew:!0})}):i.push({[a]:l,isEdited:!0,isNew:!0}),r.splice(iW(e),0,...i),n.setItems(r),e.setSelectedRows([]),e.invalidate()},aW=e=>{const t=e.getData(),n=jc(t),o=e.getActiveCell()?.row;return o!==void 0?(n[o]||n[n.length-1])?.id:0};function lW(e){return function(t){t.preventDefault(),Wh(),ln.table=e,ln.x=t.pageX||0,ln.y=t.pageY||0,ln.notify()}}function cW(e){return function(t){t.preventDefault(),Wh(),Po.table=e,Po.x=t.pageX||0,Po.y=t.pageY||0,Po.notify()}}class dW extends xa{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const Ti=new dW,uW=e=>{function t(){if(e.id!==Ti.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,Ti.activeTable=e,Ti.notify()}Fe.useEffect(()=>{Ti.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{Ti.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])},hW=e=>{const[t,n]=Fe.useState(fW(e));return Fe.useEffect(()=>{const o=r=>{n(i=>({...i,[r.id]:r.isEdited}))};return e.forEach(r=>{r.registerObservers(o)}),()=>{e.forEach(r=>{r.deleteObserver(o)})}},[]),Object.values(t).some(o=>o)};function fW(e){const t={};for(const n of e)t[n.id]=n.isEdited;return t}function pW(e){Fe.useEffect(()=>{function t(){e.grid?.resizeCanvas()}const n=Fv(t);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[])}const mW=e=>{Fe.useEffect(()=>{function t(n){const o=n.grid;o&&n.totalCalculator?.calculate(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},gW=e=>{if(!e)return 0;if(typeof e=="number")return e;const t=e.replace(/\$|,|\s/g,""),n=t.replace(/\(|\)/g,"");return isNaN(Number(n))?0:t.startsWith("(")&&t.endsWith(")")?0-Number(n):Number(t)},jr=function(){const e=function(x,S,C,O){for(C=C||{},O=x.length;O--;C[x[O]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],w=[5,6,7,8,9,10,11,12,14],b=[5,6,7,14],m=[5,6,7,8,9,14],v={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"^":10,"!":11,"%":12,"(":13,")":14,NUMBER:15,E:16,PI:17,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"^",11:"!",12:"%",13:"(",14:")",15:"NUMBER",16:"E",17:"PI"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,3],[4,1],[4,1],[4,1]],performAction:function(S,C,O,A,F,B,R){const $=B.length-1;switch(F){case 1:return B[$-1];case 2:this.$=B[$-2]+B[$];break;case 3:this.$=B[$-2]-B[$];break;case 4:this.$=B[$-2]*B[$];break;case 5:this.$=B[$-2]/B[$];break;case 6:this.$=Math.pow(B[$-2],B[$]);break;case 7:this.$=function K(G){return G==0?1:K(G-1)*G}(B[$-1]);break;case 8:this.$=B[$-1]/100;break;case 9:this.$=-B[$];break;case 10:this.$=B[$-1];break;case 11:this.$=Number(S);break;case 12:this.$=Math.E;break;case 13:this.$=Math.PI;break}},table:[{3:1,4:2,7:t,13:n,15:o,16:r,17:i},{1:[3]},{5:[1,8],6:a,7:l,8:d,9:u,10:f,11:p,12:y},{4:16,7:t,13:n,15:o,16:r,17:i},{4:17,7:t,13:n,15:o,16:r,17:i},e(w,[2,11]),e(w,[2,12]),e(w,[2,13]),{1:[2,1]},{4:18,7:t,13:n,15:o,16:r,17:i},{4:19,7:t,13:n,15:o,16:r,17:i},{4:20,7:t,13:n,15:o,16:r,17:i},{4:21,7:t,13:n,15:o,16:r,17:i},{4:22,7:t,13:n,15:o,16:r,17:i},e(w,[2,7]),e(w,[2,8]),e(w,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(b,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(b,[2,3],{8:d,9:u,10:f,11:p,12:y}),e(m,[2,4],{10:f,11:p,12:y}),e(m,[2,5],{10:f,11:p,12:y}),e([5,6,7,8,9,10,14],[2,6],{11:p,12:y}),e(w,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const O=new Error(S);throw O.hash=C,O}},parse:function(S){const C=this;let O=[0],A=[null],F=[];const B=this.table;let R="",$=0,K=0;const G=2,q=1,Y=F.slice.call(arguments,1),z=Object.create(this.lexer),ae={yy:{}};for(let le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(ae.yy[le]=this.yy[le]);z.setInput(S,ae.yy),ae.yy.lexer=z,ae.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});let N=z.yylloc;F.push(N);const M=z.options&&z.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var L=function(){let le;return le=z.lex()||q,typeof le!="number"&&(le=C.symbols_[le]||le),le};let W,ne,oe,se;const j={};let ee,J,te,ce;for(;;){if(ne=O[O.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((W===null||typeof W>"u")&&(W=L()),oe=B[ne]&&B[ne][W]),typeof oe>"u"||!oe.length||!oe[0]){let le="";ce=[];for(ee in B[ne])this.terminals_[ee]&&ee>G&&ce.push("'"+this.terminals_[ee]+"'");z.showPosition?le="Parse error on line "+($+1)+`:
357
+ `;class Ib{constructor(){this.clientId=0,this.clientName="",this.cssStyles=ZB}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("align_left"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}columnNames(t){const n=document.createElement("tr");return(t.grid?.getColumns()||[]).filter(a=>a.forPrint).forEach(({name:a})=>{const l=document.createElement("th");l.classList.add("column_name"),typeof a=="string"?l.innerText=a:l.innerText=" ",n.append(l)}),n}tableNameAndTime(t){const n=document.createElement("tr");n.classList.add("heading");const o=document.createElement("th");o.setAttribute("colspan","2"),o.classList.add("table_name"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.setAttribute("colspan","100%"),r.classList.add("date_stamp"),r.innerText=xe().format("MM/DD/YYYY h:mm A"),n.append(r),n}createStyleElement(){const t=document.createElement("style");return t.innerHTML=this.cssStyles,t}createTableElement(t){const n=document.createElement("table");return n.append(this.createThead(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return jc(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("align_left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createThead(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n.append(this.columnNames(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=Vy(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=u.printer||w||u.formatter;let m=a[p];if(d){const v=u.groupTotalsFormatter;m=v?v(a,u,o):""}else b&&(m=b(0,0,m,u,a,o));f.innerText=m||"",r.append(f)});return r}print(t,n,o){this.clientId=n,this.clientName=o;const r=window.open(),i=document.createElement("title");i.innerText=t.name||t.id;const a=r.document.querySelector("head");a.append(i),a.append(this.createStyleElement()),r.document.querySelector("body").append(this.createTableElement(t)),r.print()}}function QB(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class JB{constructor(t){this.columnPicker=null,this.downloadManager=new ID,this.filter=new HN,this.hotKeysBehavior=new jy,this.summaryColumnIds=[],this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new Ib;const{columnPicker:n,downloadManager:o,filter:r,hotKeys:i,id:a,name:l,printer:d,summaryColumnIds:u,totalCalculator:f}=t;this.id=a,this.name=l||"",n&&(this.columnPicker=n),o&&(this.downloadManager=o),r&&(this.filter=r),i&&(this.hotKeysBehavior=i),d&&(this.printer=d),u&&(this.summaryColumnIds=u),f&&(this.totalCalculator=f)}createGrid(t,n,o){this.reset();const r=new PB(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(fm(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){QB(`#${this.id}`)||this.hotKeysBehavior.handleKeyboardEvent(t,this)}get grid(){return this._grid}get grouping(){return this._grouping}get isEdited(){return this._isEdited}set grid(t){this._grid=t}set grouping(t){if(this._grouping={...this._grouping,...t},!this.grid)return;const n=this.grid.getData();this.grouping.isGrouped?n.setGrouping(this.grouping.groups||[]):n.setGrouping([])}set isEdited(t){this._isEdited=t,this.notifyObservers()}set printer(t){this._printer=t}get printer(){return this._printer}get isActive(){return this._isActive}set isActive(t){this._isActive=t}get lastActiveSell(){return this._lastActiveCell}set lastActiveSell(t){this._lastActiveCell=t}resizeCanvas(){console.log(""),this.grid?.resizeCanvas()}registerObservers(t){~this._observers.indexOf(t)||this._observers.push(t)}notifyObservers(){for(const t of this._observers)t(this)}deleteObserver(t){const n=this._observers.indexOf(t);this._observers.splice(n,1)}reset(){this.grid?.onKeyDown.unsubscribe(fm(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class eW extends xa{constructor(){super(...arguments),this.clientId=0,this.clientName="",this.x=0,this.y=0}}const ln=new eW;class tW extends xa{constructor(){super(...arguments),this.x=0,this.y=0}}const fo=new tW;class nW extends xa{constructor(){super(...arguments),this._open=!1,this.x=0,this.y=0}get open(){return this._open}set open(t){this._open=t,this.notify()}get table(){return this._table}set table(t){this._table=t}}const jn=new nW,oW=e=>{const t=e.getLength()-1;return e.getItem(t)},Bh=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},Wh=()=>{Pb.commitCurrentEdit()};function Hh(e){return e.ctrlKey||e.metaKey}function zh(e){return Hh(e)&&e.keyCode===Xr.KeyB}function Nb(e){return e.shiftKey&&e.keyCode===Xr.KeyDel}function rW(e){return e.altKey&&e.keyCode===Xr.KeyS}function Yh(e){return Hh(e)&&e.keyCode===Xr.KeyY}function Uh(e){return Hh(e)&&e.keyCode===Xr.KeyZ}function sW(e){const t=e.getActiveCell();return!e.getSelectedRows().length&&!t}function iW(e){const t=aW(e),o=e.getData().getItems(),r=o.findIndex(a=>a.id===t)+1,i=o.length;return r||i}const jc=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t},Ab=e=>{const t=e.getSelectedRows(),n=e.getData(),o=jc(n),r=n.getItems(),i=[],a=n.getIdPropertyName();let l=Bh(e);t.length?t.forEach(d=>{i.push({...o[d],[a]:l++,isEdited:!0,isNew:!0})}):i.push({[a]:l,isEdited:!0,isNew:!0}),r.splice(iW(e),0,...i),n.setItems(r),e.setSelectedRows([]),e.invalidate()},aW=e=>{const t=e.getData(),n=jc(t),o=e.getActiveCell()?.row;return o!==void 0?(n[o]||n[n.length-1])?.id:0};function lW(e){return function(t){t.preventDefault(),Wh(),ln.table=e,ln.x=t.pageX||0,ln.y=t.pageY||0,ln.notify()}}function cW(e){return function(t){t.preventDefault(),Wh(),fo.table=e,fo.x=t.pageX||0,fo.y=t.pageY||0,fo.notify()}}class dW extends xa{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const Ti=new dW,uW=e=>{function t(){if(e.id!==Ti.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,Ti.activeTable=e,Ti.notify()}Ae.useEffect(()=>{Ti.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{Ti.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])},hW=e=>{const[t,n]=Ae.useState(fW(e));return Ae.useEffect(()=>{const o=r=>{n(i=>({...i,[r.id]:r.isEdited}))};return e.forEach(r=>{r.registerObservers(o)}),()=>{e.forEach(r=>{r.deleteObserver(o)})}},[]),Object.values(t).some(o=>o)};function fW(e){const t={};for(const n of e)t[n.id]=n.isEdited;return t}function pW(e){Ae.useEffect(()=>{function t(){e.grid?.resizeCanvas()}const n=Fv(t);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[])}const mW=e=>{Ae.useEffect(()=>{function t(n){const o=n.grid;o&&n.totalCalculator?.calculate(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},gW=e=>{if(!e)return 0;if(typeof e=="number")return e;const t=e.replace(/\$|,|\s/g,""),n=t.replace(/\(|\)/g,"");return isNaN(Number(n))?0:t.startsWith("(")&&t.endsWith(")")?0-Number(n):Number(t)},jr=function(){const e=function(x,S,C,O){for(C=C||{},O=x.length;O--;C[x[O]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],w=[5,6,7,8,9,10,11,12,14],b=[5,6,7,14],m=[5,6,7,8,9,14],v={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"^":10,"!":11,"%":12,"(":13,")":14,NUMBER:15,E:16,PI:17,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"^",11:"!",12:"%",13:"(",14:")",15:"NUMBER",16:"E",17:"PI"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,3],[4,1],[4,1],[4,1]],performAction:function(S,C,O,A,F,B,R){const $=B.length-1;switch(F){case 1:return B[$-1];case 2:this.$=B[$-2]+B[$];break;case 3:this.$=B[$-2]-B[$];break;case 4:this.$=B[$-2]*B[$];break;case 5:this.$=B[$-2]/B[$];break;case 6:this.$=Math.pow(B[$-2],B[$]);break;case 7:this.$=function K(G){return G==0?1:K(G-1)*G}(B[$-1]);break;case 8:this.$=B[$-1]/100;break;case 9:this.$=-B[$];break;case 10:this.$=B[$-1];break;case 11:this.$=Number(S);break;case 12:this.$=Math.E;break;case 13:this.$=Math.PI;break}},table:[{3:1,4:2,7:t,13:n,15:o,16:r,17:i},{1:[3]},{5:[1,8],6:a,7:l,8:d,9:u,10:f,11:p,12:y},{4:16,7:t,13:n,15:o,16:r,17:i},{4:17,7:t,13:n,15:o,16:r,17:i},e(w,[2,11]),e(w,[2,12]),e(w,[2,13]),{1:[2,1]},{4:18,7:t,13:n,15:o,16:r,17:i},{4:19,7:t,13:n,15:o,16:r,17:i},{4:20,7:t,13:n,15:o,16:r,17:i},{4:21,7:t,13:n,15:o,16:r,17:i},{4:22,7:t,13:n,15:o,16:r,17:i},e(w,[2,7]),e(w,[2,8]),e(w,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(b,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(b,[2,3],{8:d,9:u,10:f,11:p,12:y}),e(m,[2,4],{10:f,11:p,12:y}),e(m,[2,5],{10:f,11:p,12:y}),e([5,6,7,8,9,10,14],[2,6],{11:p,12:y}),e(w,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const O=new Error(S);throw O.hash=C,O}},parse:function(S){const C=this;let O=[0],A=[null],F=[];const B=this.table;let R="",$=0,K=0;const G=2,q=1,Y=F.slice.call(arguments,1),z=Object.create(this.lexer),ae={yy:{}};for(let le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(ae.yy[le]=this.yy[le]);z.setInput(S,ae.yy),ae.yy.lexer=z,ae.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});let N=z.yylloc;F.push(N);const M=z.options&&z.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var L=function(){let le;return le=z.lex()||q,typeof le!="number"&&(le=C.symbols_[le]||le),le};let W,ne,oe,se;const j={};let ee,J,te,ce;for(;;){if(ne=O[O.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((W===null||typeof W>"u")&&(W=L()),oe=B[ne]&&B[ne][W]),typeof oe>"u"||!oe.length||!oe[0]){let le="";ce=[];for(ee in B[ne])this.terminals_[ee]&&ee>G&&ce.push("'"+this.terminals_[ee]+"'");z.showPosition?le="Parse error on line "+($+1)+`:
358
358
  `+z.showPosition()+`
359
359
  Expecting `+ce.join(", ")+", got '"+(this.terminals_[W]||W)+"'":le="Parse error on line "+($+1)+": Unexpected "+(W==q?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(le,{text:z.match,token:this.terminals_[W]||W,line:z.yylineno,loc:N,expected:ce})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+W);switch(oe[0]){case 1:O.push(W),A.push(z.yytext),F.push(z.yylloc),O.push(oe[1]),W=null,K=z.yyleng,R=z.yytext,$=z.yylineno,N=z.yylloc;break;case 2:if(J=this.productions_[oe[1]][1],j.$=A[A.length-J],j._$={first_line:F[F.length-(J||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(J||1)].first_column,last_column:F[F.length-1].last_column},M&&(j._$.range=[F[F.length-(J||1)].range[0],F[F.length-1].range[1]]),se=this.performAction.apply(j,[R,K,$,ae.yy,oe[1],A,F].concat(Y)),typeof se<"u")return se;J&&(O=O.slice(0,-1*J*2),A=A.slice(0,-1*J),F=F.slice(0,-1*J)),O.push(this.productions_[oe[1]][0]),A.push(j.$),F.push(j._$),te=B[O[O.length-2]][O[O.length-1]],O.push(te);break;case 3:return!0}}return!0}},P=function(){return{EOF:1,parseError:function(C,O){if(this.yy.parser)this.yy.parser.parseError(C,O);else throw new Error(C)},setInput:function(S,C){return this.yy=C||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){const S=this._input[0];return this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S,S.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},unput:function(S){const C=S.length,O=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;const A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);const F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===A.length?this.yylloc.first_column:0)+A[A.length-O.length].length-O[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
360
360
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(S){this.unput(this.match.slice(S))},pastInput:function(){const S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const S=this.pastInput(),C=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
@@ -363,4 +363,4 @@ Expecting `+ce.join(", ")+", got '"+(this.terminals_[W]||W)+"'":le="Parse error
363
363
  * Pikaday
364
364
  *
365
365
  * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
366
- */var CW=bl.exports,Qm;function SW(){return Qm||(Qm=1,function(e,t){(function(n,o){var r;{try{r=wW}catch{}e.exports=o(r)}})(CW,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(N,M,L,W){r?N.addEventListener(M,L,!!W):N.attachEvent("on"+M,L)},d=function(N,M,L,W){r?N.removeEventListener(M,L,!!W):N.detachEvent("on"+M,L)},u=function(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")},f=function(N,M){return(" "+N.className+" ").indexOf(" "+M+" ")!==-1},p=function(N,M){f(N,M)||(N.className=N.className===""?M:N.className+" "+M)},y=function(N,M){N.className=u((" "+N.className+" ").replace(" "+M+" "," "))},w=function(N){return/Array/.test(Object.prototype.toString.call(N))},b=function(N){return/Date/.test(Object.prototype.toString.call(N))&&!isNaN(N.getTime())},m=function(N){var M=N.getDay();return M===0||M===6},v=function(N){return N%4===0&&N%100!==0||N%400===0},P=function(N,M){return[31,v(N)?29:28,31,30,31,30,31,31,30,31,30,31][M]},D=function(N){b(N)&&N.setHours(0,0,0,0)},x=function(N,M){return N.getTime()===M.getTime()},S=function(N,M,L){var W,ne;for(W in M)ne=N[W]!==void 0,ne&&typeof M[W]=="object"&&M[W]!==null&&M[W].nodeName===void 0?b(M[W])?L&&(N[W]=new Date(M[W].getTime())):w(M[W])?L&&(N[W]=M[W].slice(0)):N[W]=S({},M[W],L):(L||!ne)&&(N[W]=M[W]);return N},C=function(N,M,L){var W;i.createEvent?(W=i.createEvent("HTMLEvents"),W.initEvent(M,!0,!1),W=S(W,L),N.dispatchEvent(W)):i.createEventObject&&(W=i.createEventObject(),W=S(W,L),N.fireEvent("on"+M,W))},O=function(N){return N.month<0&&(N.year-=Math.ceil(Math.abs(N.month)/12),N.month+=12),N.month>11&&(N.year+=Math.floor(Math.abs(N.month)/12),N.month-=12),N},A={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(N,M,L){for(M+=N.firstDay;M>=7;)M-=7;return L?N.i18n.weekdaysShort[M]:N.i18n.weekdays[M]},B=function(N){var M=[],L="false";if(N.isEmpty)if(N.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),N.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return N.isDisabled&&M.push("is-disabled"),N.isToday&&M.push("is-today"),N.isSelected&&(M.push("is-selected"),L="true"),N.hasEvent&&M.push("has-event"),N.isInRange&&M.push("is-inrange"),N.isStartRange&&M.push("is-startrange"),N.isEndRange&&M.push("is-endrange"),'<td data-day="'+N.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+N.year+'" data-pika-month="'+N.month+'" data-pika-day="'+N.day+'">'+N.day+"</button></td>"},R=function(N,M){N.setHours(0,0,0,0);var L=N.getDate(),W=N.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};N.setDate(L+oe-j(W));var ee=new Date(N.getFullYear(),0,ne),J=24*60*60*1e3,te=(N.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(N,M,L,W){var ne=new Date(L,M,N),oe=o?n(ne).isoWeek():R(ne,W);return'<td class="pika-week">'+oe+"</td>"},K=function(N,M,L,W){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(W?" is-selected":"")+'">'+(M?N.reverse():N).join("")+"</tr>"},G=function(N){return"<tbody>"+N.join("")+"</tbody>"},q=function(N){var M,L=[];for(N.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(N,M)+'">'+F(N,M,!0)+"</abbr></th>");return"<thead><tr>"+(N.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(N,M,L,W,ne,oe){var se,j,ee,J=N._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,H,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===W?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[W]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return H='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=H+he:le+=he+H,te&&(W===0||J.minMonth>=W)&&(re=!1),ce&&(W===11||J.maxMonth<=W)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===N._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},z=function(N,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(N)+G(M)+"</table>"},ae=function(N){var M=this,L=M.config(N);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var W=L.defaultDate;b(W)?L.setDefaultDate?M.setDate(W,!0):M.gotoDate(W):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(N){this._o||(this._o=S({},A,!0));var M=S(this._o,N,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var W=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||W,M.yearRange[1]=parseInt(M.yearRange[1],10)||W}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||A.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(N){return N=N||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,N):o?n(this._d).format(N):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(N,M){o&&n.isMoment(N)&&this.setDate(N.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(N,M){if(!N)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof N=="string"&&(N=new Date(Date.parse(N))),!!b(N)){var L=this._o.minDate,W=this._o.maxDate;b(L)&&N<L?N=L:b(W)&&N>W&&(N=W),this._d=new Date(N.getTime()),D(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(N){var M=!0;if(b(N)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),W=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=N.getTime();W.setMonth(W.getMonth()+1),W.setDate(W.getDate()-1),M=ne<L.getTime()||W.getTime()<ne}M&&(this.calendars=[{month:N.getMonth(),year:N.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(N,M){var L=this.getDate()||new Date,W=parseInt(M)*24*60*60*1e3,ne;N==="add"?ne=new Date(L.valueOf()+W):N==="subtract"&&(ne=new Date(L.valueOf()-W)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var N=1;N<this._o.numberOfMonths;N++)this.calendars[N]=O({month:this.calendars[0].month+N,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(N){isNaN(N)||(this.calendars[0].month=parseInt(N,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(N){isNaN(N)||(this.calendars[0].year=parseInt(N,10),this.adjustCalendars())},setMinDate:function(N){N instanceof Date?(D(N),this._o.minDate=N,this._o.minYear=N.getFullYear(),this._o.minMonth=N.getMonth()):(this._o.minDate=A.minDate,this._o.minYear=A.minYear,this._o.minMonth=A.minMonth,this._o.startRange=A.startRange),this.draw()},setMaxDate:function(N){N instanceof Date?(D(N),this._o.maxDate=N,this._o.maxYear=N.getFullYear(),this._o.maxMonth=N.getMonth()):(this._o.maxDate=A.maxDate,this._o.maxYear=A.maxYear,this._o.maxMonth=A.maxMonth,this._o.endRange=A.endRange),this.draw()},setStartRange:function(N){this._o.startRange=N},setEndRange:function(N){this._o.endRange=N},draw:function(N){if(!(!this._v&&!N)){var M=this._o,L=M.minYear,W=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=W&&(this._y=W,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var N,M,L,W,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",N=this._o.trigger,M=N,L=this.el.offsetWidth,W=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof N.getBoundingClientRect=="function")J=N.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+N.offsetWidth>0)&&(j=j-L+N.offsetWidth,te=!1),(this._o.reposition&&ee+W>oe+se||this._o.position.indexOf("top")>-1&&ee-W-N.offsetHeight>0)&&(ee=ee-W-N.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(N,M,L){var W=this._o,ne=new Date,oe=P(N,M),se=new Date(N,M,1).getDay(),j=[],ee=[];D(ne),W.firstDay>0&&(se-=W.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?N-1:N,le=M===11?N+1:N,he=P(ce,J),H=oe+se,re=H;re>7;)re-=7;H+=7-re;for(var Z=!1,fe=0,pe=0;fe<H;fe++){var be=new Date(N,M,1+(fe-se)),ge=b(this._d)?x(be,this._d):!1,Re=x(be,ne),Ve=W.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),Ee=M,ut=N,Yt=W.startRange&&x(W.startRange,be),rt=W.endRange&&x(W.endRange,be),Ot=W.startRange&&W.endRange&&W.startRange<be&&be<W.endRange,Ut=W.minDate&&be<W.minDate||W.maxDate&&be>W.maxDate||W.disableWeekends&&m(be)||W.disableDayFn&&W.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,Ee=J,ut=ce):(Je=Je-oe,Ee=te,ut=le));var Lt={day:Je,month:Ee,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:Ut,isEmpty:Ne,isStartRange:Yt,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:W.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:W.enableSelectionDaysInNextAndPreviousMonths};W.pickWholeWeek&&ge&&(Z=!0),ee.push(B(Lt)),++pe===7&&(W.showWeekNumber&&ee.unshift($(fe-se,M,N,W.firstWeekOfYearMinDays)),j.push(K(ee,W.isRTL,W.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return z(W,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var N=this._v;N!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,N!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var N=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),N.keyboardInput&&d(i,"keydown",this._onKeyChange),N.field&&(d(N.field,"change",this._onInputChange),N.bound&&(d(N.trigger,"click",this._onInputClick),d(N.trigger,"focus",this._onInputFocus),d(N.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(bl)),bl.exports}SW();class $b{constructor(t){this.args=t,this.defaultOptions={Yes:"Yes",No:"No"},this.defaultValue="",this.keyCaptureList=[Mo.UP,Mo.DOWN,Mo.ENTER],this.select=document.createElement("select"),this.init()}init(){this.select.classList.add("editor-yesno"),this.select.setAttribute("tabIndex","0"),this.select.append(..._W(this.htmlOptionElements())),this.args.container.append(this.select),this.select.focus()}htmlOptionElements(){const n=this.args.column.selectOptions||this.defaultOptions,o=[];for(const r in n){const i=document.createElement("option");i.value=r,i.innerText=`${n[r]}`,o.push(i)}return o}destroy(){this.select.remove()}focus(){this.select.focus()}loadValue(t){this.defaultValue=t[this.args.column.field],this.select.value=`${this.defaultValue}`}serializeValue(){return this.select.value}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!this.select.value&&!this.defaultValue?!1:this.select.value!=this.defaultValue}validate(){return this.args.column.validator?this.args.column.validator(this.select.value,this.args):{valid:!0}}}function _W(e){return e.sort((t,n)=>t.innerText.toLowerCase()>n.innerText.toLowerCase()?1:t.innerText.toLowerCase()<n.innerText.toLowerCase()?-1:0)}class xW extends $b{applyValue(t,n){t[this.args.column.field]=Number(n)}}const RW=(e,t,n)=>n==="0"?"":n?"<span class='sgi sgi-check green'></span>":"";function Vb(e){return function(n,o,r){return Oc(r,e)}}const TW=Vb().name,EW=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Oc(n)}`:""},kW=(e,t,n)=>{const r=e.getData().getRowById(t);if(r===void 0)return;const i=e.getColumnIndex(n);e.gotoCell(r,i),e.setCellCssStyles(`${r}`,{[r]:{[n]:"wink"}}),setTimeout(()=>{e.removeCellCssStyles(`${r}`)},1500)};function PW(e){return e.reduce((t,n)=>(t[n]="wink",t),{})}function DW(e,t){const o=e.getData().getLength(),r=OW(o,t);e.setCellCssStyles("wink",r),setTimeout(()=>{e.removeCellCssStyles("wink")},1500)}function OW(e,t){const n=PW(t),o={};let r=0;for(;r<e;)o[r]=n,r++;return o}function MW(e,t,n){return n==="0"?"":n?"Yes":""}function IW(e){if(!e.getSelectionModel())return Jm(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Jm(e)),t}function Jm(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}class NW{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=_s(t||this.emptyValue),r=_s(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const AW=new NW;class jb{constructor(){this.sort=AW,this.withFormatter=[So.TEXT,So.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,Es.sorting.reset(t),l.setSortColumns([]),n=""):(o=!1,n=u,Es.sorting.set(t,u,d));const m=d?-1:1,v=b.getGrouping(),P=v.find(({getter:D})=>D===f.id);if(P){if(r||(r=v.map(({comparer:D})=>D)),o){const D=b.getGrouping(),x=D.findIndex(({getter:S})=>S===f.id);D[x].comparer=r[x],b.refresh();return}P.comparer=(D,x)=>{let S=D.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(D,x)||this.compare(S,C,m,y)}}else{const D=b.getItems(),x=b.getIdPropertyName();D.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],A=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,f,S,l),A=w(0,0,A,f,C,l)),this.priority(S,C)||this.compare(O,A,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Es.sorting.get(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);if(l){a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]});const d=document.querySelector(`#${t.id} [data-id="${r}"]`);if(!d)return;d.classList.add("slick-header-column-sorted");const u=d.querySelector(".slick-sort-indicator");if(!u)return;u.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate()}}}compare(t,n,o,r){switch(r){case So.DATE:return this.sort.dates(t,n)*o;case So.NUMBER:case So.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case So.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case So.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const FW=new jb;class LW{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}exports.Autocomplete=Lb;exports.BOLD=$D;exports.ColumnPicker=OD;exports.ColumnSorter=jb;exports.DecoratorColumnFilter=qB;exports.DecoratorFilter=Iv;exports.DefaultHotKeys=ND;exports.DefaultPrinter=Ib;exports.DeletedRowsFilter=WN;exports.EColumnFilter=je;exports.EColumnFiltersGroup=fn;exports.ESortType=So;exports.EditorAutocomplete=bW;exports.EditorSelectNumber=xW;exports.EditorSelectString=$b;exports.FORMATTER_NUMBER=TW;exports.Filter=Mv;exports.HotKeysDecorator=yc;exports.PreventCopying=AD;exports.RedoUndoOnly=FD;exports.Skeleton=xD;exports.SlickTable=JB;exports.SlickgridTable=jB;exports.TotalCalculator=LW;exports.WINK=LD;exports.WithSummary=BN;exports.WithoutHotKeys=jy;exports.columnCheckboxSelector=BB;exports.columnIsEdited=HB;exports.commitCurrentEdit=Wh;exports.copySelectedRows=Ab;exports.eventContextMenu=ln;exports.formatNumber=Oc;exports.formatterCheckMark=RW;exports.formatterGroupTotals=EW;exports.getDisplayedRows=jc;exports.getFormatterNumber=Vb;exports.getNextId=Bh;exports.handleHeaderButtons=Nv;exports.headerButtons=Fo;exports.highlightCell=kW;exports.highlightColumns=DW;exports.hotKeysCopy=zh;exports.hotKeysDelete=Nb;exports.hotKeysRedo=Yh;exports.hotKeysUndo=Uh;exports.openColumnFilter=zN;exports.printerCheckMark=MW;exports.useListenIfTablesWereEdited=hW;
366
+ */var CW=bl.exports,Qm;function SW(){return Qm||(Qm=1,function(e,t){(function(n,o){var r;{try{r=wW}catch{}e.exports=o(r)}})(CW,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(N,M,L,W){r?N.addEventListener(M,L,!!W):N.attachEvent("on"+M,L)},d=function(N,M,L,W){r?N.removeEventListener(M,L,!!W):N.detachEvent("on"+M,L)},u=function(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")},f=function(N,M){return(" "+N.className+" ").indexOf(" "+M+" ")!==-1},p=function(N,M){f(N,M)||(N.className=N.className===""?M:N.className+" "+M)},y=function(N,M){N.className=u((" "+N.className+" ").replace(" "+M+" "," "))},w=function(N){return/Array/.test(Object.prototype.toString.call(N))},b=function(N){return/Date/.test(Object.prototype.toString.call(N))&&!isNaN(N.getTime())},m=function(N){var M=N.getDay();return M===0||M===6},v=function(N){return N%4===0&&N%100!==0||N%400===0},P=function(N,M){return[31,v(N)?29:28,31,30,31,30,31,31,30,31,30,31][M]},D=function(N){b(N)&&N.setHours(0,0,0,0)},x=function(N,M){return N.getTime()===M.getTime()},S=function(N,M,L){var W,ne;for(W in M)ne=N[W]!==void 0,ne&&typeof M[W]=="object"&&M[W]!==null&&M[W].nodeName===void 0?b(M[W])?L&&(N[W]=new Date(M[W].getTime())):w(M[W])?L&&(N[W]=M[W].slice(0)):N[W]=S({},M[W],L):(L||!ne)&&(N[W]=M[W]);return N},C=function(N,M,L){var W;i.createEvent?(W=i.createEvent("HTMLEvents"),W.initEvent(M,!0,!1),W=S(W,L),N.dispatchEvent(W)):i.createEventObject&&(W=i.createEventObject(),W=S(W,L),N.fireEvent("on"+M,W))},O=function(N){return N.month<0&&(N.year-=Math.ceil(Math.abs(N.month)/12),N.month+=12),N.month>11&&(N.year+=Math.floor(Math.abs(N.month)/12),N.month-=12),N},A={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(N,M,L){for(M+=N.firstDay;M>=7;)M-=7;return L?N.i18n.weekdaysShort[M]:N.i18n.weekdays[M]},B=function(N){var M=[],L="false";if(N.isEmpty)if(N.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),N.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return N.isDisabled&&M.push("is-disabled"),N.isToday&&M.push("is-today"),N.isSelected&&(M.push("is-selected"),L="true"),N.hasEvent&&M.push("has-event"),N.isInRange&&M.push("is-inrange"),N.isStartRange&&M.push("is-startrange"),N.isEndRange&&M.push("is-endrange"),'<td data-day="'+N.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+N.year+'" data-pika-month="'+N.month+'" data-pika-day="'+N.day+'">'+N.day+"</button></td>"},R=function(N,M){N.setHours(0,0,0,0);var L=N.getDate(),W=N.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};N.setDate(L+oe-j(W));var ee=new Date(N.getFullYear(),0,ne),J=24*60*60*1e3,te=(N.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(N,M,L,W){var ne=new Date(L,M,N),oe=o?n(ne).isoWeek():R(ne,W);return'<td class="pika-week">'+oe+"</td>"},K=function(N,M,L,W){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(W?" is-selected":"")+'">'+(M?N.reverse():N).join("")+"</tr>"},G=function(N){return"<tbody>"+N.join("")+"</tbody>"},q=function(N){var M,L=[];for(N.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(N,M)+'">'+F(N,M,!0)+"</abbr></th>");return"<thead><tr>"+(N.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(N,M,L,W,ne,oe){var se,j,ee,J=N._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,H,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===W?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[W]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return H='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=H+he:le+=he+H,te&&(W===0||J.minMonth>=W)&&(re=!1),ce&&(W===11||J.maxMonth<=W)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===N._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},z=function(N,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(N)+G(M)+"</table>"},ae=function(N){var M=this,L=M.config(N);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var W=L.defaultDate;b(W)?L.setDefaultDate?M.setDate(W,!0):M.gotoDate(W):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(N){this._o||(this._o=S({},A,!0));var M=S(this._o,N,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var W=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||W,M.yearRange[1]=parseInt(M.yearRange[1],10)||W}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||A.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(N){return N=N||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,N):o?n(this._d).format(N):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(N,M){o&&n.isMoment(N)&&this.setDate(N.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(N,M){if(!N)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof N=="string"&&(N=new Date(Date.parse(N))),!!b(N)){var L=this._o.minDate,W=this._o.maxDate;b(L)&&N<L?N=L:b(W)&&N>W&&(N=W),this._d=new Date(N.getTime()),D(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(N){var M=!0;if(b(N)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),W=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=N.getTime();W.setMonth(W.getMonth()+1),W.setDate(W.getDate()-1),M=ne<L.getTime()||W.getTime()<ne}M&&(this.calendars=[{month:N.getMonth(),year:N.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(N,M){var L=this.getDate()||new Date,W=parseInt(M)*24*60*60*1e3,ne;N==="add"?ne=new Date(L.valueOf()+W):N==="subtract"&&(ne=new Date(L.valueOf()-W)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var N=1;N<this._o.numberOfMonths;N++)this.calendars[N]=O({month:this.calendars[0].month+N,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(N){isNaN(N)||(this.calendars[0].month=parseInt(N,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(N){isNaN(N)||(this.calendars[0].year=parseInt(N,10),this.adjustCalendars())},setMinDate:function(N){N instanceof Date?(D(N),this._o.minDate=N,this._o.minYear=N.getFullYear(),this._o.minMonth=N.getMonth()):(this._o.minDate=A.minDate,this._o.minYear=A.minYear,this._o.minMonth=A.minMonth,this._o.startRange=A.startRange),this.draw()},setMaxDate:function(N){N instanceof Date?(D(N),this._o.maxDate=N,this._o.maxYear=N.getFullYear(),this._o.maxMonth=N.getMonth()):(this._o.maxDate=A.maxDate,this._o.maxYear=A.maxYear,this._o.maxMonth=A.maxMonth,this._o.endRange=A.endRange),this.draw()},setStartRange:function(N){this._o.startRange=N},setEndRange:function(N){this._o.endRange=N},draw:function(N){if(!(!this._v&&!N)){var M=this._o,L=M.minYear,W=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=W&&(this._y=W,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var N,M,L,W,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",N=this._o.trigger,M=N,L=this.el.offsetWidth,W=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof N.getBoundingClientRect=="function")J=N.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+N.offsetWidth>0)&&(j=j-L+N.offsetWidth,te=!1),(this._o.reposition&&ee+W>oe+se||this._o.position.indexOf("top")>-1&&ee-W-N.offsetHeight>0)&&(ee=ee-W-N.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(N,M,L){var W=this._o,ne=new Date,oe=P(N,M),se=new Date(N,M,1).getDay(),j=[],ee=[];D(ne),W.firstDay>0&&(se-=W.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?N-1:N,le=M===11?N+1:N,he=P(ce,J),H=oe+se,re=H;re>7;)re-=7;H+=7-re;for(var Z=!1,fe=0,pe=0;fe<H;fe++){var be=new Date(N,M,1+(fe-se)),ge=b(this._d)?x(be,this._d):!1,Re=x(be,ne),Ve=W.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),Ee=M,ut=N,Yt=W.startRange&&x(W.startRange,be),rt=W.endRange&&x(W.endRange,be),Ot=W.startRange&&W.endRange&&W.startRange<be&&be<W.endRange,Ut=W.minDate&&be<W.minDate||W.maxDate&&be>W.maxDate||W.disableWeekends&&m(be)||W.disableDayFn&&W.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,Ee=J,ut=ce):(Je=Je-oe,Ee=te,ut=le));var Lt={day:Je,month:Ee,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:Ut,isEmpty:Ne,isStartRange:Yt,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:W.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:W.enableSelectionDaysInNextAndPreviousMonths};W.pickWholeWeek&&ge&&(Z=!0),ee.push(B(Lt)),++pe===7&&(W.showWeekNumber&&ee.unshift($(fe-se,M,N,W.firstWeekOfYearMinDays)),j.push(K(ee,W.isRTL,W.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return z(W,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var N=this._v;N!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,N!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var N=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),N.keyboardInput&&d(i,"keydown",this._onKeyChange),N.field&&(d(N.field,"change",this._onInputChange),N.bound&&(d(N.trigger,"click",this._onInputClick),d(N.trigger,"focus",this._onInputFocus),d(N.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(bl)),bl.exports}SW();class $b{constructor(t){this.args=t,this.defaultOptions={Yes:"Yes",No:"No"},this.defaultValue="",this.keyCaptureList=[Mo.UP,Mo.DOWN,Mo.ENTER],this.select=document.createElement("select"),this.init()}init(){this.select.classList.add("editor-yesno"),this.select.setAttribute("tabIndex","0"),this.select.append(..._W(this.htmlOptionElements())),this.args.container.append(this.select),this.select.focus()}htmlOptionElements(){const n=this.args.column.selectOptions||this.defaultOptions,o=[];for(const r in n){const i=document.createElement("option");i.value=r,i.innerText=`${n[r]}`,o.push(i)}return o}destroy(){this.select.remove()}focus(){this.select.focus()}loadValue(t){this.defaultValue=t[this.args.column.field],this.select.value=`${this.defaultValue}`}serializeValue(){return this.select.value}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!this.select.value&&!this.defaultValue?!1:this.select.value!=this.defaultValue}validate(){return this.args.column.validator?this.args.column.validator(this.select.value,this.args):{valid:!0}}}function _W(e){return e.sort((t,n)=>t.innerText.toLowerCase()>n.innerText.toLowerCase()?1:t.innerText.toLowerCase()<n.innerText.toLowerCase()?-1:0)}class xW extends $b{applyValue(t,n){t[this.args.column.field]=Number(n)}}const RW=(e,t,n)=>n==="0"?"":n?"<span class='sgi sgi-check green'></span>":"";function Vb(e){return function(n,o,r){return Oc(r,e)}}const TW=Vb().name,EW=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Oc(n)}`:""},kW=(e,t,n)=>{const r=e.getData().getRowById(t);if(r===void 0)return;const i=e.getColumnIndex(n);e.gotoCell(r,i),e.setCellCssStyles(`${r}`,{[r]:{[n]:"wink"}}),setTimeout(()=>{e.removeCellCssStyles(`${r}`)},1500)};function PW(e){return e.reduce((t,n)=>(t[n]="wink",t),{})}function DW(e,t){const o=e.getData().getLength(),r=OW(o,t);e.setCellCssStyles("wink",r),setTimeout(()=>{e.removeCellCssStyles("wink")},1500)}function OW(e,t){const n=PW(t),o={};let r=0;for(;r<e;)o[r]=n,r++;return o}function MW(e,t,n){return n==="0"?"":n?"Yes":""}function IW(e){if(!e.getSelectionModel())return Jm(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Jm(e)),t}function Jm(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}class NW{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=_s(t||this.emptyValue),r=_s(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const AW=new NW;class jb{constructor(){this.sort=AW,this.withFormatter=[_o.TEXT,_o.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,Es.sorting.reset(t),l.setSortColumns([]),n=""):(o=!1,n=u,Es.sorting.set(t,u,d));const m=d?-1:1,v=b.getGrouping(),P=v.find(({getter:D})=>D===f.id);if(P){if(r||(r=v.map(({comparer:D})=>D)),o){const D=b.getGrouping(),x=D.findIndex(({getter:S})=>S===f.id);D[x].comparer=r[x],b.refresh();return}P.comparer=(D,x)=>{let S=D.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(D,x)||this.compare(S,C,m,y)}}else{const D=b.getItems(),x=b.getIdPropertyName();D.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],A=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,f,S,l),A=w(0,0,A,f,C,l)),this.priority(S,C)||this.compare(O,A,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Es.sorting.get(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);if(l){a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]});const d=document.querySelector(`#${t.id} [data-id="${r}"]`);if(!d)return;d.classList.add("slick-header-column-sorted");const u=d.querySelector(".slick-sort-indicator");if(!u)return;u.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate()}}}compare(t,n,o,r){switch(r){case _o.DATE:return this.sort.dates(t,n)*o;case _o.NUMBER:case _o.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case _o.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case _o.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const FW=new jb;class LW{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}exports.Autocomplete=Lb;exports.BOLD=$D;exports.ColumnPicker=OD;exports.ColumnSorter=jb;exports.DecoratorColumnFilter=qB;exports.DecoratorFilter=Iv;exports.DefaultHotKeys=ND;exports.DefaultPrinter=Ib;exports.DeletedRowsFilter=WN;exports.EColumnFilter=je;exports.EColumnFiltersGroup=fn;exports.ESortType=_o;exports.EditorAutocomplete=bW;exports.EditorSelectNumber=xW;exports.EditorSelectString=$b;exports.FORMATTER_NUMBER=TW;exports.Filter=Mv;exports.HotKeysDecorator=yc;exports.PreventCopying=AD;exports.RedoUndoOnly=FD;exports.Skeleton=xD;exports.SlickTable=JB;exports.SlickgridTable=jB;exports.TotalCalculator=LW;exports.WINK=LD;exports.WithSummary=BN;exports.WithoutHotKeys=jy;exports.columnCheckboxSelector=BB;exports.columnIsEdited=HB;exports.commitCurrentEdit=Wh;exports.copySelectedRows=Ab;exports.eventContextMenu=ln;exports.formatNumber=Oc;exports.formatterCheckMark=RW;exports.formatterGroupTotals=EW;exports.getDisplayedRows=jc;exports.getFormatterNumber=Vb;exports.getNextId=Bh;exports.handleHeaderButtons=Nv;exports.headerButtons=Fo;exports.highlightCell=kW;exports.highlightColumns=DW;exports.hotKeysCopy=zh;exports.hotKeysDelete=Nb;exports.hotKeysRedo=Yh;exports.hotKeysUndo=Uh;exports.openColumnFilter=zN;exports.printerCheckMark=MW;exports.useListenIfTablesWereEdited=hW;