slick-table 0.0.34 → 0.0.36
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/features/column-filters/ui/ButtonReset/ButtonReset.style.d.ts +1 -1
- package/dist/index.cjs.js +122 -76
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +37400 -15064
- package/dist/shared/lib/slickgrid/index.d.ts +1 -1
- package/dist/shared/lib/slickgrid/lib/index.d.ts +1 -0
- package/dist/shared/model/consts/dateFormats.d.ts +1 -1
- package/dist/shared/ui/ContextSelect/ContextSelect.style.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ze=require("react"),ns=require("react-dom");function qp(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=qp(Ze),B0=qp(ns);function Y0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function U0(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 ma={exports:{}},js={};/**
|
|
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
|
|
9
|
+
*/var Th;function q0(){if(Th)return js;Th=1;var e=Ze,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(c,u,d){var f,p={},y=null,w=null;d!==void 0&&(y=""+d),u.key!==void 0&&(y=""+u.key),u.ref!==void 0&&(w=u.ref);for(f in u)o.call(u,f)&&!i.hasOwnProperty(f)&&(p[f]=u[f]);if(c&&c.defaultProps)for(f in u=c.defaultProps,u)p[f]===void 0&&(p[f]=u[f]);return{$$typeof:t,type:c,key:y,ref:w,props:p,_owner:r.current}}return js.Fragment=n,js.jsx=a,js.jsxs=a,js}var Vs={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,60 +14,60 @@
|
|
|
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
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var Eh;function G0(){return Eh||(Eh=1,process.env.NODE_ENV!=="production"&&function(){var e=Ze,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"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=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,g="@@iterator";function v(U){if(U===null||typeof U!="object")return null;var pe=b&&U[b]||U[g];return typeof pe=="function"?pe:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(U){{for(var pe=arguments.length,we=new Array(pe>1?pe-1:0),Ne=1;Ne<pe;Ne++)we[Ne-1]=arguments[Ne];_("error",U,we)}}function _(U,pe,we){{var Ne=E.ReactDebugCurrentFrame,Be=Ne.getStackAddendum();Be!==""&&(pe+="%s",we=we.concat([Be]));var Je=we.map(function(Xe){return String(Xe)});Je.unshift("Warning: "+pe),Function.prototype.apply.call(console[U],console,Je)}}var x=!1,C=!1,O=!1,N=!1,A=!1,B;B=Symbol.for("react.module.reference");function R(U){return!!(typeof U=="string"||typeof U=="function"||U===o||U===i||A||U===r||U===d||U===f||N||U===w||x||C||O||typeof U=="object"&&U!==null&&(U.$$typeof===y||U.$$typeof===p||U.$$typeof===a||U.$$typeof===c||U.$$typeof===u||U.$$typeof===B||U.getModuleId!==void 0))}function $(U,pe,we){var Ne=U.displayName;if(Ne)return Ne;var Be=pe.displayName||pe.name||"";return Be!==""?we+"("+Be+")":we}function K(U){return U.displayName||"Context"}function X(U){if(U==null)return null;if(typeof U.tag=="number"&&k("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 d:return"Suspense";case f:return"SuspenseList"}if(typeof U=="object")switch(U.$$typeof){case c:var pe=U;return K(pe)+".Consumer";case a:var we=U;return K(we._context)+".Provider";case u:return $(U,U.render,"ForwardRef");case p:var Ne=U.displayName||null;return Ne!==null?Ne:X(U.type)||"Memo";case y:{var Be=U,Je=Be._payload,Xe=Be._init;try{return X(Xe(Je))}catch{return null}}}return null}var q=Object.assign,Y=0,z,ae,I,D,j,W,ne;function oe(){}oe.__reactDisabledLog=!0;function se(){{if(Y===0){z=console.log,ae=console.info,I=console.warn,D=console.error,j=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 V(){{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:I}),error:q({},U,{value:D}),group:q({},U,{value:j}),groupCollapsed:q({},U,{value:W}),groupEnd:q({},U,{value:ne})})}Y<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=E.ReactCurrentDispatcher,ee;function te(U,pe,we){{if(ee===void 0)try{throw Error()}catch(Be){var Ne=Be.stack.trim().match(/\n( *(at )?)/);ee=Ne&&Ne[1]||""}return`
|
|
18
|
+
`+ee+U}}var ce=!1,ie;{var he=typeof WeakMap=="function"?WeakMap:Map;ie=new he}function H(U,pe){if(!U||ce)return"";{var we=ie.get(U);if(we!==void 0)return we}var Ne;ce=!0;var Be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Je;Je=J.current,J.current=null,se();try{if(pe){var Xe=function(){throw Error()};if(Object.defineProperty(Xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Xe,[])}catch(fn){Ne=fn}Reflect.construct(U,[],Xe)}else{try{Xe.call()}catch(fn){Ne=fn}U.call(Xe.prototype)}}else{try{throw Error()}catch(fn){Ne=fn}U()}}catch(fn){if(fn&&Ne&&typeof fn.stack=="string"){for(var qe=fn.stack.split(`
|
|
19
|
+
`),Ut=Ne.stack.split(`
|
|
20
|
+
`),At=qe.length-1,Ht=Ut.length-1;At>=1&&Ht>=0&&qe[At]!==Ut[Ht];)Ht--;for(;At>=1&&Ht>=0;At--,Ht--)if(qe[At]!==Ut[Ht]){if(At!==1||Ht!==1)do if(At--,Ht--,Ht<0||qe[At]!==Ut[Ht]){var en=`
|
|
21
|
+
`+qe[At].replace(" at new "," at ");return U.displayName&&en.includes("<anonymous>")&&(en=en.replace("<anonymous>",U.displayName)),typeof U=="function"&&ie.set(U,en),en}while(At>=1&&Ht>=0);break}}}finally{ce=!1,J.current=Je,V(),Error.prepareStackTrace=Be}var jn=U?U.displayName||U.name:"",lo=jn?te(jn):"";return typeof U=="function"&&ie.set(U,lo),lo}function re(U,pe,we){return H(U,!1)}function Q(U){var pe=U.prototype;return!!(pe&&pe.isReactComponent)}function fe(U,pe,we){if(U==null)return"";if(typeof U=="function")return H(U,Q(U));if(typeof U=="string")return te(U);switch(U){case d:return te("Suspense");case f:return te("SuspenseList")}if(typeof U=="object")switch(U.$$typeof){case u:return re(U.render);case p:return fe(U.type,pe,we);case y:{var Ne=U,Be=Ne._payload,Je=Ne._init;try{return fe(Je(Be),pe,we)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,Ce={},ve=E.ReactDebugCurrentFrame;function _e(U){if(U){var pe=U._owner,we=fe(U.type,U._source,pe?pe.type:null);ve.setExtraStackFrame(we)}else ve.setExtraStackFrame(null)}function $e(U,pe,we,Ne,Be){{var Je=Function.call.bind(me);for(var Xe in U)if(Je(U,Xe)){var qe=void 0;try{if(typeof U[Xe]!="function"){var Ut=Error((Ne||"React class")+": "+we+" type `"+Xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof U[Xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ut.name="Invariant Violation",Ut}qe=U[Xe](pe,Xe,Ne,we,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){qe=At}qe&&!(qe instanceof Error)&&(_e(Be),k("%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).",Ne||"React class",we,Xe,typeof qe),_e(null)),qe instanceof Error&&!(qe.message in Ce)&&(Ce[qe.message]=!0,_e(Be),k("Failed %s type: %s",we,qe.message),_e(null))}}}var Ae=Array.isArray;function rt(U){return Ae(U)}function ke(U){{var pe=typeof Symbol=="function"&&Symbol.toStringTag,we=pe&&U[Symbol.toStringTag]||U.constructor.name||"Object";return we}}function ft(U){try{return Kt(U),!1}catch{return!0}}function Kt(U){return""+U}function st(U){if(ft(U))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ke(U)),Kt(U)}var Yt=E.ReactCurrentOwner,Xt={key:!0,ref:!0,__self:!0,__source:!0},on,Ye;function tt(U){if(me.call(U,"ref")){var pe=Object.getOwnPropertyDescriptor(U,"ref").get;if(pe&&pe.isReactWarning)return!1}return U.ref!==void 0}function Mn(U){if(me.call(U,"key")){var pe=Object.getOwnPropertyDescriptor(U,"key").get;if(pe&&pe.isReactWarning)return!1}return U.key!==void 0}function hn(U,pe){typeof U.ref=="string"&&Yt.current}function Me(U,pe){{var we=function(){on||(on=!0,k("%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)",pe))};we.isReactWarning=!0,Object.defineProperty(U,"key",{get:we,configurable:!0})}}function He(U,pe){{var we=function(){Ye||(Ye=!0,k("%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)",pe))};we.isReactWarning=!0,Object.defineProperty(U,"ref",{get:we,configurable:!0})}}var vt=function(U,pe,we,Ne,Be,Je,Xe){var qe={$$typeof:t,type:U,key:pe,ref:we,props:Xe,_owner:Je};return qe._store={},Object.defineProperty(qe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.defineProperty(qe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(qe.props),Object.freeze(qe)),qe};function ln(U,pe,we,Ne,Be){{var Je,Xe={},qe=null,Ut=null;we!==void 0&&(st(we),qe=""+we),Mn(pe)&&(st(pe.key),qe=""+pe.key),tt(pe)&&(Ut=pe.ref,hn(pe,Be));for(Je in pe)me.call(pe,Je)&&!Xt.hasOwnProperty(Je)&&(Xe[Je]=pe[Je]);if(U&&U.defaultProps){var At=U.defaultProps;for(Je in At)Xe[Je]===void 0&&(Xe[Je]=At[Je])}if(qe||Ut){var Ht=typeof U=="function"?U.displayName||U.name||"Unknown":U;qe&&Me(Xe,Ht),Ut&&He(Xe,Ht)}return vt(U,qe,Ut,Be,Ne,Yt.current,Xe)}}var ao=E.ReactCurrentOwner,pt=E.ReactDebugCurrentFrame;function Qt(U){if(U){var pe=U._owner,we=fe(U.type,U._source,pe?pe.type:null);pt.setExtraStackFrame(we)}else pt.setExtraStackFrame(null)}var vn;vn=!1;function Jt(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function Ar(){{if(ao.current){var U=X(ao.current.type);if(U)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+U+"`."}return""}}function Fr(U){return""}var Re={};function nc(U){{var pe=Ar();if(!pe){var we=typeof U=="string"?U:U.displayName||U.name;we&&(pe=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+we+">.")}return pe}}function oa(U,pe){{if(!U._store||U._store.validated||U.key!=null)return;U._store.validated=!0;var we=nc(pe);if(Re[we])return;Re[we]=!0;var Ne="";U&&U._owner&&U._owner!==ao.current&&(Ne=" It was passed a child from "+X(U._owner.type)+"."),Qt(U),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',we,Ne),Qt(null)}}function $n(U,pe){{if(typeof U!="object")return;if(rt(U))for(var we=0;we<U.length;we++){var Ne=U[we];Jt(Ne)&&oa(Ne,pe)}else if(Jt(U))U._store&&(U._store.validated=!0);else if(U){var Be=v(U);if(typeof Be=="function"&&Be!==U.entries)for(var Je=Be.call(U),Xe;!(Xe=Je.next()).done;)Jt(Xe.value)&&oa(Xe.value,pe)}}}function Sn(U){{var pe=U.type;if(pe==null||typeof pe=="string")return;var we;if(typeof pe=="function")we=pe.propTypes;else if(typeof pe=="object"&&(pe.$$typeof===u||pe.$$typeof===p))we=pe.propTypes;else return;if(we){var Ne=X(pe);$e(we,U.props,"prop",Ne,U)}else if(pe.PropTypes!==void 0&&!vn){vn=!0;var Be=X(pe);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Be||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(U){{for(var pe=Object.keys(U.props),we=0;we<pe.length;we++){var Ne=pe[we];if(Ne!=="children"&&Ne!=="key"){Qt(U),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ne),Qt(null);break}}U.ref!==null&&(Qt(U),k("Invalid attribute `ref` supplied to `React.Fragment`."),Qt(null))}}var Lr={};function mt(U,pe,we,Ne,Be,Je){{var Xe=R(U);if(!Xe){var qe="";(U===void 0||typeof U=="object"&&U!==null&&Object.keys(U).length===0)&&(qe+=" 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 Ut=Fr();Ut?qe+=Ut:qe+=Ar();var At;U===null?At="null":rt(U)?At="array":U!==void 0&&U.$$typeof===t?(At="<"+(X(U.type)||"Unknown")+" />",qe=" Did you accidentally export a JSX literal instead of a component?"):At=typeof U,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",At,qe)}var Ht=ln(U,pe,we,Be,Je);if(Ht==null)return Ht;if(Xe){var en=pe.children;if(en!==void 0)if(Ne)if(rt(en)){for(var jn=0;jn<en.length;jn++)$n(en[jn],U);Object.freeze&&Object.freeze(en)}else k("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 $n(en,U)}if(me.call(pe,"key")){var lo=X(U),fn=Object.keys(pe).filter(function(jt){return jt!=="key"}),Is=fn.length>0?"{key: someKey, "+fn.join(": ..., ")+": ...}":"{key: someKey}";if(!Lr[lo+Is]){var rc=fn.length>0?"{"+fn.join(": ..., ")+": ...}":"{}";k(`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} />`,Zi,nr,io,nr),wi[nr+Zi]=!0}}return E===i?be(at):Ot(at),at}}function ti(E,U,Z){return Ae(E,U,Z,!0)}function ro(E,U,Z){return Ae(E,U,Z,!1)}var _i=ro,_t=ti;ss.Fragment=i,ss.jsx=_i,ss.jsxs=_t}()),ss}var Il;function vm(){return Il||(Il=1,process.env.NODE_ENV==="production"?Xs.exports=gm():Xs.exports=ym()),Xs.exports}var le=vm();function wm(e,t,r){const{scrollWidth:i}=document.documentElement,{left:s,right:o}=e.getBoundingClientRect(),l=o-s,h=t+o>=i;e.style.left=`${h?t-l:t}px`,e.style.top=`${r}px`,e.style.visibility="visible"}const Kh="portal-container",ms={black:"#000",white:"#fff"},ki={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},xi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ti={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Di={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Mi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ns={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},_m={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 qr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}const ua="$$material";function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},gn.apply(null,arguments)}function bm(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 Cm(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 Sm=function(){function e(r){var i=this;this._insertTag=function(s){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(s,o),i.tags.push(s)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Cm(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var o=bm(s);try{o.insertRule(i,o.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var s;return(s=i.parentNode)==null?void 0:s.removeChild(i)}),this.tags=[],this.ctr=0},e}(),Et="-ms-",yn="-moz-",Ne="-webkit-",Zh="comm",da="rule",fa="decl",Rm="@import",Jh="@keyframes",Em="@layer",km=Math.abs,Tn=String.fromCharCode,xm=Object.assign;function Tm(e,t){return Ct(e,0)^45?(((t<<2^Ct(e,0))<<2^Ct(e,1))<<2^Ct(e,2))<<2^Ct(e,3):0}function Qh(e){return e.trim()}function Dm(e,t){return(e=t.exec(e))?e[0]:e}function Le(e,t,r){return e.replace(t,r)}function $o(e,t){return e.indexOf(t)}function Ct(e,t){return e.charCodeAt(t)|0}function gs(e,t,r){return e.slice(t,r)}function lr(e){return e.length}function pa(e){return e.length}function Ks(e,t){return t.push(e),e}function Mm(e,t){return e.map(t).join("")}var Dn=1,$i=1,ec=0,Lt=0,mt=0,Vi="";function Mn(e,t,r,i,s,o,l){return{value:e,root:t,parent:r,type:i,props:s,children:o,line:Dn,column:$i,length:l,return:""}}function os(e,t){return xm(Mn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pm(){return mt}function Om(){return mt=Lt>0?Ct(Vi,--Lt):0,$i--,mt===10&&($i=1,Dn--),mt}function It(){return mt=Lt<ec?Ct(Vi,Lt++):0,$i++,mt===10&&($i=1,Dn++),mt}function dr(){return Ct(Vi,Lt)}function an(){return Lt}function ks(e,t){return gs(Vi,e,t)}function ys(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 tc(e){return Dn=$i=1,ec=lr(Vi=e),Lt=0,[]}function rc(e){return Vi="",e}function ln(e){return Qh(ks(Lt-1,Bo(e===91?e+2:e===40?e+1:e)))}function Am(e){for(;(mt=dr())&&mt<33;)It();return ys(e)>2||ys(mt)>3?"":" "}function Nm(e,t){for(;--t&&It()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return ks(e,an()+(t<6&&dr()==32&&It()==32))}function Bo(e){for(;It();)switch(mt){case e:return Lt;case 34:case 39:e!==34&&e!==39&&Bo(mt);break;case 40:e===41&&Bo(e);break;case 92:It();break}return Lt}function Lm(e,t){for(;It()&&e+mt!==57;)if(e+mt===84&&dr()===47)break;return"/*"+ks(t,Lt-1)+"*"+Tn(e===47?e:It())}function Fm(e){for(;!ys(dr());)It();return ks(e,Lt)}function Im(e){return rc(hn("",null,null,null,[""],e=tc(e),0,[0],e))}function hn(e,t,r,i,s,o,l,h,d){for(var f=0,p=0,m=l,C=0,x=0,R=0,y=1,O=1,F=1,B=0,N="",k=s,v=o,L=i,z=N;O;)switch(R=B,B=It()){case 40:if(R!=108&&Ct(z,m-1)==58){$o(z+=Le(ln(B),"&","&\f"),"&\f")!=-1&&(F=-1);break}case 34:case 39:case 91:z+=ln(B);break;case 9:case 10:case 13:case 32:z+=Am(R);break;case 92:z+=Nm(an()-1,7);continue;case 47:switch(dr()){case 42:case 47:Ks(Wm(Lm(It(),an()),t,r),d);break;default:z+="/"}break;case 123*y:h[f++]=lr(z)*F;case 125*y:case 59:case 0:switch(B){case 0:case 125:O=0;case 59+p:F==-1&&(z=Le(z,/\f/g,"")),x>0&&lr(z)-m&&Ks(x>32?Hl(z+";",i,r,m-1):Hl(Le(z," ","")+";",i,r,m-2),d);break;case 59:z+=";";default:if(Ks(L=Wl(z,t,r,f,p,s,h,N,k=[],v=[],m),o),B===123)if(p===0)hn(z,t,L,L,k,o,m,h,v);else switch(C===99&&Ct(z,3)===110?100:C){case 100:case 108:case 109:case 115:hn(e,L,L,i&&Ks(Wl(e,L,L,0,0,s,h,N,s,k=[],m),v),s,v,m,h,i?k:v);break;default:hn(z,L,L,L,[""],v,0,h,v)}}f=p=x=0,y=F=1,N=z="",m=l;break;case 58:m=1+lr(z),x=R;default:if(y<1){if(B==123)--y;else if(B==125&&y++==0&&Om()==125)continue}switch(z+=Tn(B),B*y){case 38:F=p>0?1:(z+="\f",-1);break;case 44:h[f++]=(lr(z)-1)*F,F=1;break;case 64:dr()===45&&(z+=ln(It())),C=dr(),p=m=lr(N=z+=Fm(an())),B++;break;case 45:R===45&&lr(z)==2&&(y=0)}}return o}function Wl(e,t,r,i,s,o,l,h,d,f,p){for(var m=s-1,C=s===0?o:[""],x=pa(C),R=0,y=0,O=0;R<i;++R)for(var F=0,B=gs(e,m+1,m=km(y=l[R])),N=e;F<x;++F)(N=Qh(y>0?C[F]+" "+B:Le(B,/&\f/g,C[F])))&&(d[O++]=N);return Mn(e,t,r,s===0?da:h,d,f,p)}function Wm(e,t,r){return Mn(e,t,r,Zh,Tn(Pm()),gs(e,2,-2),0)}function Hl(e,t,r,i){return Mn(e,t,r,fa,gs(e,0,i),gs(e,i+1,-1),i)}function Fi(e,t){for(var r="",i=pa(e),s=0;s<i;s++)r+=t(e[s],s,e,t)||"";return r}function Hm(e,t,r,i){switch(e.type){case Em:if(e.children.length)break;case Rm:case fa:return e.return=e.return||e.value;case Zh:return"";case Jh:return e.return=e.value+"{"+Fi(e.children,i)+"}";case da:e.value=e.props.join(",")}return lr(r=Fi(e.children,i))?e.return=e.value+"{"+r+"}":""}function Ym(e){var t=pa(e);return function(r,i,s,o){for(var l="",h=0;h<t;h++)l+=e[h](r,i,s,o)||"";return l}}function zm(e){return function(t){t.root||(t=t.return)&&e(t)}}function ic(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var $m=function(t,r,i){for(var s=0,o=0;s=o,o=dr(),s===38&&o===12&&(r[i]=1),!ys(o);)It();return ks(t,Lt)},Bm=function(t,r){var i=-1,s=44;do switch(ys(s)){case 0:s===38&&dr()===12&&(r[i]=1),t[i]+=$m(Lt-1,r,i);break;case 2:t[i]+=ln(s);break;case 4:if(s===44){t[++i]=dr()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Tn(s)}while(s=It());return t},Vm=function(t,r){return rc(Bm(tc(t),r))},Yl=new WeakMap,jm=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,s=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Yl.get(i))&&!s){Yl.set(t,!0);for(var o=[],l=Vm(r,o),h=i.props,d=0,f=0;d<l.length;d++)for(var p=0;p<h.length;p++,f++)t.props[f]=o[d]?l[d].replace(/&\f/g,h[p]):h[p]+" "+l[d]}}},Um=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function sc(e,t){switch(Tm(e,t)){case 5103:return Ne+"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 Ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+yn+e+Et+e+e;case 6828:case 4268:return Ne+e+Et+e+e;case 6165:return Ne+e+Et+"flex-"+e+e;case 5187:return Ne+e+Le(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+Et+"flex-$1$2")+e;case 5443:return Ne+e+Et+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return Ne+e+Et+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return Ne+e+Et+Le(e,"shrink","negative")+e;case 5292:return Ne+e+Et+Le(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Le(e,"-grow","")+Ne+e+Et+Le(e,"grow","positive")+e;case 4554:return Ne+Le(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+Et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ne+e+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,Ne+"$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(lr(e)-1-t>6)switch(Ct(e,t+1)){case 109:if(Ct(e,t+4)!==45)break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+yn+(Ct(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$o(e,"stretch")?sc(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ct(e,t+1)!==115)break;case 6444:switch(Ct(e,lr(e)-3-(~$o(e,"!important")&&10))){case 107:return Le(e,":",":"+Ne)+e;case 101:return Le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(Ct(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Et+"$2box$3")+e}break;case 5936:switch(Ct(e,t+11)){case 114:return Ne+e+Et+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Et+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Et+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+Et+e+e}return e}var Gm=function(t,r,i,s){if(t.length>-1&&!t.return)switch(t.type){case fa:t.return=sc(t.value,t.length);break;case Jh:return Fi([os(t,{value:Le(t.value,"@","@"+Ne)})],s);case da:if(t.length)return Mm(t.props,function(o){switch(Dm(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fi([os(t,{props:[Le(o,/:(read-\w+)/,":"+yn+"$1")]})],s);case"::placeholder":return Fi([os(t,{props:[Le(o,/:(plac\w+)/,":"+Ne+"input-$1")]}),os(t,{props:[Le(o,/:(plac\w+)/,":"+yn+"$1")]}),os(t,{props:[Le(o,/:(plac\w+)/,Et+"input-$1")]})],s)}return""})}},qm=[Gm],Xm=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(y){var O=y.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var s=t.stylisPlugins||qm,o={},l,h=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var O=y.getAttribute("data-emotion").split(" "),F=1;F<O.length;F++)o[O[F]]=!0;h.push(y)});var d,f=[jm,Um];{var p,m=[Hm,zm(function(y){p.insert(y)})],C=Ym(f.concat(s,m)),x=function(O){return Fi(Im(O),C)};d=function(O,F,B,N){p=B,x(O?O+"{"+F.styles+"}":F.styles),N&&(R.inserted[F.name]=!0)}}var R={key:r,sheet:new Sm({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:d};return R.sheet.hydrate(h),R},Zs={exports:{}},Ie={};/** @license React v16.13.1
|
|
30
|
+
<%s key={someKey} {...props} />`,Is,lo,rc,lo),Lr[lo+Is]=!0}}return U===o?Ue(Ht):Sn(Ht),Ht}}function dr(U,pe,we){return mt(U,pe,we,!0)}function oc(U,pe,we){return mt(U,pe,we,!1)}var $r=oc,rn=dr;Vs.Fragment=o,Vs.jsx=$r,Vs.jsxs=rn}()),Vs}var Ph;function K0(){return Ph||(Ph=1,process.env.NODE_ENV==="production"?ma.exports=q0():ma.exports=G0()),ma.exports}var P=K0(),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||{}),sn=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(sn||{}),Er=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(Er||{}),Gp=(e=>(e[e.KeyB=66]="KeyB",e[e.KeyDel=46]="KeyDel",e[e.KeyEnter=13]="KeyEnter",e[e.KeyR=82]="KeyR",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e))(Gp||{}),er=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT=4]="TEXT",e))(er||{});function Kp(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,c=t+i>=o;e.style.left=`${c?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const _u="portal-container",mi={black:"#000",white:"#fff"},Br={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Yr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ur={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},qr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Gr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ws={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},X0={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 wo(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 Fi="$$material";function Z(){return Z=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},Z.apply(null,arguments)}function Z0(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 Q0(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 J0=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(Q0(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Z0(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}(),pn="-ms-",Ua="-moz-",gt="-webkit-",Xp="comm",Ru="rule",Tu="decl",eC="@import",Zp="@keyframes",tC="@layer",nC=Math.abs,hl=String.fromCharCode,oC=Object.assign;function rC(e,t){return cn(e,0)^45?(((t<<2^cn(e,0))<<2^cn(e,1))<<2^cn(e,2))<<2^cn(e,3):0}function Qp(e){return e.trim()}function sC(e,t){return(e=t.exec(e))?e[0]:e}function yt(e,t,n){return e.replace(t,n)}function Kc(e,t){return e.indexOf(t)}function cn(e,t){return e.charCodeAt(t)|0}function gi(e,t,n){return e.slice(t,n)}function fo(e){return e.length}function Eu(e){return e.length}function ga(e,t){return t.push(e),e}function iC(e,t){return e.map(t).join("")}var fl=1,gs=1,Jp=0,kn=0,Zt=0,Rs="";function pl(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:fl,column:gs,length:a,return:""}}function Hs(e,t){return oC(pl("",null,null,"",null,null,0),e,{length:-e.length},t)}function aC(){return Zt}function lC(){return Zt=kn>0?cn(Rs,--kn):0,gs--,Zt===10&&(gs=1,fl--),Zt}function An(){return Zt=kn<Jp?cn(Rs,kn++):0,gs++,Zt===10&&(gs=1,fl++),Zt}function vo(){return cn(Rs,kn)}function Ia(){return kn}function Li(e,t){return gi(Rs,e,t)}function yi(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 em(e){return fl=gs=1,Jp=fo(Rs=e),kn=0,[]}function tm(e){return Rs="",e}function Na(e){return Qp(Li(kn-1,Xc(e===91?e+2:e===40?e+1:e)))}function cC(e){for(;(Zt=vo())&&Zt<33;)An();return yi(e)>2||yi(Zt)>3?"":" "}function uC(e,t){for(;--t&&An()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Li(e,Ia()+(t<6&&vo()==32&&An()==32))}function Xc(e){for(;An();)switch(Zt){case e:return kn;case 34:case 39:e!==34&&e!==39&&Xc(Zt);break;case 40:e===41&&Xc(e);break;case 92:An();break}return kn}function dC(e,t){for(;An()&&e+Zt!==57;)if(e+Zt===84&&vo()===47)break;return"/*"+Li(t,kn-1)+"*"+hl(e===47?e:An())}function hC(e){for(;!yi(vo());)An();return Li(e,kn)}function fC(e){return tm(Aa("",null,null,null,[""],e=em(e),0,[0],e))}function Aa(e,t,n,o,r,i,a,c,u){for(var d=0,f=0,p=a,y=0,w=0,b=0,g=1,v=1,E=1,k=0,_="",x=r,C=i,O=o,N=_;v;)switch(b=k,k=An()){case 40:if(b!=108&&cn(N,p-1)==58){Kc(N+=yt(Na(k),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:N+=Na(k);break;case 9:case 10:case 13:case 32:N+=cC(b);break;case 92:N+=uC(Ia()-1,7);continue;case 47:switch(vo()){case 42:case 47:ga(pC(dC(An(),Ia()),t,n),u);break;default:N+="/"}break;case 123*g:c[d++]=fo(N)*E;case 125*g:case 59:case 0:switch(k){case 0:case 125:v=0;case 59+f:E==-1&&(N=yt(N,/\f/g,"")),w>0&&fo(N)-p&&ga(w>32?Dh(N+";",o,n,p-1):Dh(yt(N," ","")+";",o,n,p-2),u);break;case 59:N+=";";default:if(ga(O=kh(N,t,n,d,f,r,c,_,x=[],C=[],p),i),k===123)if(f===0)Aa(N,t,O,O,x,i,p,c,C);else switch(y===99&&cn(N,3)===110?100:y){case 100:case 108:case 109:case 115:Aa(e,O,O,o&&ga(kh(e,O,O,0,0,r,c,_,r,x=[],p),C),r,C,p,c,o?x:C);break;default:Aa(N,O,O,O,[""],C,0,c,C)}}d=f=w=0,g=E=1,_=N="",p=a;break;case 58:p=1+fo(N),w=b;default:if(g<1){if(k==123)--g;else if(k==125&&g++==0&&lC()==125)continue}switch(N+=hl(k),k*g){case 38:E=f>0?1:(N+="\f",-1);break;case 44:c[d++]=(fo(N)-1)*E,E=1;break;case 64:vo()===45&&(N+=Na(An())),y=vo(),f=p=fo(_=N+=hC(Ia())),k++;break;case 45:b===45&&fo(N)==2&&(g=0)}}return i}function kh(e,t,n,o,r,i,a,c,u,d,f){for(var p=r-1,y=r===0?i:[""],w=Eu(y),b=0,g=0,v=0;b<o;++b)for(var E=0,k=gi(e,p+1,p=nC(g=a[b])),_=e;E<w;++E)(_=Qp(g>0?y[E]+" "+k:yt(k,/&\f/g,y[E])))&&(u[v++]=_);return pl(e,t,n,r===0?Ru:c,u,d,f)}function pC(e,t,n){return pl(e,t,n,Xp,hl(aC()),gi(e,2,-2),0)}function Dh(e,t,n,o){return pl(e,t,n,Tu,gi(e,0,o),gi(e,o+1,-1),o)}function ls(e,t){for(var n="",o=Eu(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function mC(e,t,n,o){switch(e.type){case tC:if(e.children.length)break;case eC:case Tu:return e.return=e.return||e.value;case Xp:return"";case Zp:return e.return=e.value+"{"+ls(e.children,o)+"}";case Ru:e.value=e.props.join(",")}return fo(n=ls(e.children,o))?e.return=e.value+"{"+n+"}":""}function gC(e){var t=Eu(e);return function(n,o,r,i){for(var a="",c=0;c<t;c++)a+=e[c](n,o,r,i)||"";return a}}function yC(e){return function(t){t.root||(t=t.return)&&e(t)}}function nm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var vC=function(t,n,o){for(var r=0,i=0;r=i,i=vo(),r===38&&i===12&&(n[o]=1),!yi(i);)An();return Li(t,kn)},bC=function(t,n){var o=-1,r=44;do switch(yi(r)){case 0:r===38&&vo()===12&&(n[o]=1),t[o]+=vC(kn-1,n,o);break;case 2:t[o]+=Na(r);break;case 4:if(r===44){t[++o]=vo()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=hl(r)}while(r=An());return t},wC=function(t,n){return tm(bC(em(t),n))},Oh=new WeakMap,CC=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&&!Oh.get(o))&&!r){Oh.set(t,!0);for(var i=[],a=wC(n,i),c=o.props,u=0,d=0;u<a.length;u++)for(var f=0;f<c.length;f++,d++)t.props[d]=i[u]?a[u].replace(/&\f/g,c[f]):c[f]+" "+a[u]}}},SC=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function om(e,t){switch(rC(e,t)){case 5103:return gt+"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 gt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+Ua+e+pn+e+e;case 6828:case 4268:return gt+e+pn+e+e;case 6165:return gt+e+pn+"flex-"+e+e;case 5187:return gt+e+yt(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+pn+"flex-$1$2")+e;case 5443:return gt+e+pn+"flex-item-"+yt(e,/flex-|-self/,"")+e;case 4675:return gt+e+pn+"flex-line-pack"+yt(e,/align-content|flex-|-self/,"")+e;case 5548:return gt+e+pn+yt(e,"shrink","negative")+e;case 5292:return gt+e+pn+yt(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+yt(e,"-grow","")+gt+e+pn+yt(e,"grow","positive")+e;case 4554:return gt+yt(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return yt(yt(yt(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return yt(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return yt(yt(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+pn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gt+e+e;case 4095:case 3583:case 4068:case 2532:return yt(e,/(.+)-inline(.+)/,gt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(fo(e)-1-t>6)switch(cn(e,t+1)){case 109:if(cn(e,t+4)!==45)break;case 102:return yt(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+Ua+(cn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kc(e,"stretch")?om(yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(cn(e,t+1)!==115)break;case 6444:switch(cn(e,fo(e)-3-(~Kc(e,"!important")&&10))){case 107:return yt(e,":",":"+gt)+e;case 101:return yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gt+(cn(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+pn+"$2box$3")+e}break;case 5936:switch(cn(e,t+11)){case 114:return gt+e+pn+yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+pn+yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+pn+yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gt+e+pn+e+e}return e}var xC=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case Tu:t.return=om(t.value,t.length);break;case Zp:return ls([Hs(t,{value:yt(t.value,"@","@"+gt)})],r);case Ru:if(t.length)return iC(t.props,function(i){switch(sC(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ls([Hs(t,{props:[yt(i,/:(read-\w+)/,":"+Ua+"$1")]})],r);case"::placeholder":return ls([Hs(t,{props:[yt(i,/:(plac\w+)/,":"+gt+"input-$1")]}),Hs(t,{props:[yt(i,/:(plac\w+)/,":"+Ua+"$1")]}),Hs(t,{props:[yt(i,/:(plac\w+)/,pn+"input-$1")]})],r)}return""})}},_C=[xC],RC=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(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=t.stylisPlugins||_C,i={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),E=1;E<v.length;E++)i[v[E]]=!0;c.push(g)});var u,d=[CC,SC];{var f,p=[mC,yC(function(g){f.insert(g)})],y=gC(d.concat(r,p)),w=function(v){return ls(fC(v),y)};u=function(v,E,k,_){f=k,w(v?v+"{"+E.styles+"}":E.styles),_&&(b.inserted[E.name]=!0)}}var b={key:n,sheet:new J0({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return b.sheet.hydrate(c),b},ya={exports:{}},bt={};/** @license React v16.13.1
|
|
31
31
|
* react-is.production.min.js
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var
|
|
37
|
+
*/var Mh;function TC(){if(Mh)return bt;Mh=1;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,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=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,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function _(C){if(typeof C=="object"&&C!==null){var O=C.$$typeof;switch(O){case t:switch(C=C.type,C){case u:case d:case o:case i:case r:case p:return C;default:switch(C=C&&C.$$typeof,C){case c:case f:case b:case w:case a:return C;default:return O}}case n:return O}}}function x(C){return _(C)===d}return bt.AsyncMode=u,bt.ConcurrentMode=d,bt.ContextConsumer=c,bt.ContextProvider=a,bt.Element=t,bt.ForwardRef=f,bt.Fragment=o,bt.Lazy=b,bt.Memo=w,bt.Portal=n,bt.Profiler=i,bt.StrictMode=r,bt.Suspense=p,bt.isAsyncMode=function(C){return x(C)||_(C)===u},bt.isConcurrentMode=x,bt.isContextConsumer=function(C){return _(C)===c},bt.isContextProvider=function(C){return _(C)===a},bt.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},bt.isForwardRef=function(C){return _(C)===f},bt.isFragment=function(C){return _(C)===o},bt.isLazy=function(C){return _(C)===b},bt.isMemo=function(C){return _(C)===w},bt.isPortal=function(C){return _(C)===n},bt.isProfiler=function(C){return _(C)===i},bt.isStrictMode=function(C){return _(C)===r},bt.isSuspense=function(C){return _(C)===p},bt.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===d||C===i||C===r||C===p||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===w||C.$$typeof===a||C.$$typeof===c||C.$$typeof===f||C.$$typeof===v||C.$$typeof===E||C.$$typeof===k||C.$$typeof===g)},bt.typeOf=_,bt}var wt={};/** @license React v16.13.1
|
|
38
38
|
* react-is.development.js
|
|
39
39
|
*
|
|
40
40
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
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 $l;function Zm(){return $l||($l=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function N(I){return typeof I=="string"||typeof I=="function"||I===i||I===f||I===o||I===s||I===m||I===C||typeof I=="object"&&I!==null&&(I.$$typeof===R||I.$$typeof===x||I.$$typeof===l||I.$$typeof===h||I.$$typeof===p||I.$$typeof===O||I.$$typeof===F||I.$$typeof===B||I.$$typeof===y)}function k(I){if(typeof I=="object"&&I!==null){var Ue=I.$$typeof;switch(Ue){case t:var ot=I.type;switch(ot){case d:case f:case i:case o:case s:case m:return ot;default:var Xe=ot&&ot.$$typeof;switch(Xe){case h:case p:case R:case x:case l:return Xe;default:return Ue}}case r:return Ue}}}var v=d,L=f,z=h,q=l,te=t,w=p,G=i,ce=R,oe=x,ve=r,Fe=o,me=s,De=m,T=!1;function S(I){return T||(T=!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.")),P(I)||k(I)===d}function P(I){return k(I)===f}function A(I){return k(I)===h}function $(I){return k(I)===l}function j(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function V(I){return k(I)===p}function Y(I){return k(I)===i}function Q(I){return k(I)===R}function J(I){return k(I)===x}function he(I){return k(I)===r}function ue(I){return k(I)===o}function ie(I){return k(I)===s}function ze(I){return k(I)===m}We.AsyncMode=v,We.ConcurrentMode=L,We.ContextConsumer=z,We.ContextProvider=q,We.Element=te,We.ForwardRef=w,We.Fragment=G,We.Lazy=ce,We.Memo=oe,We.Portal=ve,We.Profiler=Fe,We.StrictMode=me,We.Suspense=De,We.isAsyncMode=S,We.isConcurrentMode=P,We.isContextConsumer=A,We.isContextProvider=$,We.isElement=j,We.isForwardRef=V,We.isFragment=Y,We.isLazy=Q,We.isMemo=J,We.isPortal=he,We.isProfiler=ue,We.isStrictMode=ie,We.isSuspense=ze,We.isValidElementType=N,We.typeOf=k}()),We}var Bl;function Jm(){return Bl||(Bl=1,process.env.NODE_ENV==="production"?Zs.exports=Km():Zs.exports=Zm()),Zs.exports}var So,Vl;function Qm(){if(Vl)return So;Vl=1;var e=Jm(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=i,o[e.Memo]=s;function l(R){return e.isMemo(R)?s:o[R.$$typeof]||t}var h=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,C=Object.prototype;function x(R,y,O){if(typeof y!="string"){if(C){var F=m(y);F&&F!==C&&x(R,F,O)}var B=d(y);f&&(B=B.concat(f(y)));for(var N=l(R),k=l(y),v=0;v<B.length;++v){var L=B[v];if(!r[L]&&!(O&&O[L])&&!(k&&k[L])&&!(N&&N[L])){var z=p(y,L);try{h(R,L,z)}catch{}}}}return R}return So=x,So}Qm();var eg=!0;function nc(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var ma=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||eg===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},oc=function(t,r,i){ma(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+s:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function tg(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&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 rg={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},ig=/[A-Z]|^ms/g,sg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ac=function(t){return t.charCodeAt(1)===45},jl=function(t){return t!=null&&typeof t!="boolean"},Ro=ic(function(e){return ac(e)?e:e.replace(ig,"-$&").toLowerCase()}),Ul=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(sg,function(i,s,o){return hr={name:s,styles:o,next:hr},s})}return rg[t]!==1&&!ac(t)&&typeof r=="number"&&r!==0?r+"px":r};function vs(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return hr={name:s.name,styles:s.styles,next:hr},s.name;var o=r;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)hr={name:l.name,styles:l.styles,next:hr},l=l.next;var h=o.styles+";";return h}return ng(e,t,r)}case"function":{if(e!==void 0){var d=hr,f=r(e);return hr=d,vs(e,t,f)}break}}var p=r;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function ng(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=vs(e,t,r[s])+";";else for(var o in r){var l=r[o];if(typeof l!="object"){var h=l;t!=null&&t[h]!==void 0?i+=o+"{"+t[h]+"}":jl(h)&&(i+=Ro(o)+":"+Ul(o,h)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)jl(l[d])&&(i+=Ro(o)+":"+Ul(o,l[d])+";");else{var f=vs(e,t,l);switch(o){case"animation":case"animationName":{i+=Ro(o)+":"+f+";";break}default:i+=o+"{"+f+"}"}}}return i}var Gl=/label:\s*([^\s;{]+)\s*(;|$)/g,hr;function Pn(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";hr=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,s+=vs(r,t,o);else{var l=o;s+=l[0]}for(var h=1;h<e.length;h++)if(s+=vs(r,t,e[h]),i){var d=o;s+=d[h]}Gl.lastIndex=0;for(var f="",p;(p=Gl.exec(s))!==null;)f+="-"+p[1];var m=tg(s)+f;return{name:m,styles:s,next:hr}}var og=function(t){return t()},ag=ae.useInsertionEffect?ae.useInsertionEffect:!1,lc=ag||og,hc=ae.createContext(typeof HTMLElement<"u"?Xm({key:"css"}):null);hc.Provider;var cc=function(t){return nt.forwardRef(function(r,i){var s=nt.useContext(hc);return t(r,s,i)})},ga=ae.createContext({}),ya={}.hasOwnProperty,Vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lg=function(t,r){var i={};for(var s in r)ya.call(r,s)&&(i[s]=r[s]);return i[Vo]=t,i},hg=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return ma(r,i,s),lc(function(){return oc(r,i,s)}),null},cg=cc(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var s=e[Vo],o=[i],l="";typeof e.className=="string"?l=nc(t.registered,o,e.className):e.className!=null&&(l=e.className+" ");var h=Pn(o,void 0,ae.useContext(ga));l+=t.key+"-"+h.name;var d={};for(var f in e)ya.call(e,f)&&f!=="css"&&f!==Vo&&(d[f]=e[f]);return d.className=l,r&&(d.ref=r),ae.createElement(ae.Fragment,null,ae.createElement(hg,{cache:t,serialized:h,isStringTag:typeof s=="string"}),ae.createElement(s,d))}),ug=cg,ql=function(t,r){var i=arguments;if(r==null||!ya.call(r,"css"))return ae.createElement.apply(void 0,i);var s=i.length,o=new Array(s);o[0]=ug,o[1]=lg(t,r);for(var l=2;l<s;l++)o[l]=i[l];return ae.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ql||(ql={}));function dg(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Pn(t)}function On(){var e=dg.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 fg=/^((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)-.*))$/,pg=ic(function(e){return fg.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),mg=pg,gg=function(t){return t!=="theme"},Xl=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?mg:gg},Kl=function(t,r,i){var s;if(r){var o=r.shouldForwardProp;s=t.__emotion_forwardProp&&o?function(l){return t.__emotion_forwardProp(l)&&o(l)}:o}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},yg=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return ma(r,i,s),lc(function(){return oc(r,i,s)}),null},vg=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,o,l;r!==void 0&&(o=r.label,l=r.target);var h=Kl(t,r,i),d=h||Xl(s),f=!d("as");return function(){var p=arguments,m=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var C=p[0];m.push(C[0]);for(var x=p.length,R=1;R<x;R++)m.push(p[R],C[R])}var y=cc(function(O,F,B){var N=f&&O.as||s,k="",v=[],L=O;if(O.theme==null){L={};for(var z in O)L[z]=O[z];L.theme=ae.useContext(ga)}typeof O.className=="string"?k=nc(F.registered,v,O.className):O.className!=null&&(k=O.className+" ");var q=Pn(m.concat(v),F.registered,L);k+=F.key+"-"+q.name,l!==void 0&&(k+=" "+l);var te=f&&h===void 0?Xl(N):d,w={};for(var G in O)f&&G==="as"||te(G)&&(w[G]=O[G]);return w.className=k,B&&(w.ref=B),ae.createElement(ae.Fragment,null,ae.createElement(yg,{cache:F,serialized:q,isStringTag:typeof N=="string"}),ae.createElement(N,w))});return y.displayName=o!==void 0?o:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=s,y.__emotion_styles=m,y.__emotion_forwardProp=h,Object.defineProperty(y,"toString",{value:function(){return"."+l}}),y.withComponent=function(O,F){var B=e(O,gn({},r,F,{shouldForwardProp:Kl(y,F,!0)}));return B.apply(void 0,m)},y}},wg=["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"],jo=vg.bind(null);wg.forEach(function(e){jo[e]=jo(e)});var Js={exports:{}},Qs={exports:{}},He={};/** @license React v16.13.1
|
|
44
|
+
*/var Ih;function EC(){return Ih||(Ih=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,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=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,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function _(H){return typeof H=="string"||typeof H=="function"||H===o||H===d||H===i||H===r||H===p||H===y||typeof H=="object"&&H!==null&&(H.$$typeof===b||H.$$typeof===w||H.$$typeof===a||H.$$typeof===c||H.$$typeof===f||H.$$typeof===v||H.$$typeof===E||H.$$typeof===k||H.$$typeof===g)}function x(H){if(typeof H=="object"&&H!==null){var re=H.$$typeof;switch(re){case t:var Q=H.type;switch(Q){case u:case d:case o:case i:case r:case p:return Q;default:var fe=Q&&Q.$$typeof;switch(fe){case c:case f:case b:case w:case a:return fe;default:return re}}case n:return re}}}var C=u,O=d,N=c,A=a,B=t,R=f,$=o,K=b,X=w,q=n,Y=i,z=r,ae=p,I=!1;function D(H){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(H)||x(H)===u}function j(H){return x(H)===d}function W(H){return x(H)===c}function ne(H){return x(H)===a}function oe(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function se(H){return x(H)===f}function V(H){return x(H)===o}function J(H){return x(H)===b}function ee(H){return x(H)===w}function te(H){return x(H)===n}function ce(H){return x(H)===i}function ie(H){return x(H)===r}function he(H){return x(H)===p}wt.AsyncMode=C,wt.ConcurrentMode=O,wt.ContextConsumer=N,wt.ContextProvider=A,wt.Element=B,wt.ForwardRef=R,wt.Fragment=$,wt.Lazy=K,wt.Memo=X,wt.Portal=q,wt.Profiler=Y,wt.StrictMode=z,wt.Suspense=ae,wt.isAsyncMode=D,wt.isConcurrentMode=j,wt.isContextConsumer=W,wt.isContextProvider=ne,wt.isElement=oe,wt.isForwardRef=se,wt.isFragment=V,wt.isLazy=J,wt.isMemo=ee,wt.isPortal=te,wt.isProfiler=ce,wt.isStrictMode=ie,wt.isSuspense=he,wt.isValidElementType=_,wt.typeOf=x}()),wt}var Nh;function PC(){return Nh||(Nh=1,process.env.NODE_ENV==="production"?ya.exports=TC():ya.exports=EC()),ya.exports}var xc,Ah;function kC(){if(Ah)return xc;Ah=1;var e=PC(),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 c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function w(b,g,v){if(typeof g!="string"){if(y){var E=p(g);E&&E!==y&&w(b,E,v)}var k=u(g);d&&(k=k.concat(d(g)));for(var _=a(b),x=a(g),C=0;C<k.length;++C){var O=k[C];if(!n[O]&&!(v&&v[O])&&!(x&&x[O])&&!(_&&_[O])){var N=f(g,O);try{c(b,O,N)}catch{}}}}return b}return xc=w,xc}kC();var DC=!0;function rm(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var Pu=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||DC===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},ku=function(t,n,o){Pu(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 OC(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 MC={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},IC=/[A-Z]|^ms/g,NC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sm=function(t){return t.charCodeAt(1)===45},Fh=function(t){return t!=null&&typeof t!="boolean"},_c=nm(function(e){return sm(e)?e:e.replace(IC,"-$&").toLowerCase()}),Lh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(NC,function(o,r,i){return po={name:r,styles:i,next:po},r})}return MC[t]!==1&&!sm(t)&&typeof n=="number"&&n!==0?n+"px":n};function vi(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 po={name:r.name,styles:r.styles,next:po},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)po={name:a.name,styles:a.styles,next:po},a=a.next;var c=i.styles+";";return c}return AC(e,t,n)}case"function":{if(e!==void 0){var u=po,d=n(e);return po=u,vi(e,t,d)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function AC(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=vi(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?o+=i+"{"+t[c]+"}":Fh(c)&&(o+=_c(i)+":"+Lh(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)Fh(a[u])&&(o+=_c(i)+":"+Lh(i,a[u])+";");else{var d=vi(e,t,a);switch(i){case"animation":case"animationName":{o+=_c(i)+":"+d+";";break}default:o+=i+"{"+d+"}"}}}return o}var $h=/label:\s*([^\s;{]+)\s*(;|$)/g,po;function $i(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="";po=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=vi(n,t,i);else{var a=i;r+=a[0]}for(var c=1;c<e.length;c++)if(r+=vi(n,t,e[c]),o){var u=i;r+=u[c]}$h.lastIndex=0;for(var d="",f;(f=$h.exec(r))!==null;)d+="-"+f[1];var p=OC(r)+d;return{name:p,styles:r,next:po}}var FC=function(t){return t()},im=T.useInsertionEffect?T.useInsertionEffect:!1,am=im||FC,jh=im||T.useLayoutEffect,lm=T.createContext(typeof HTMLElement<"u"?RC({key:"css"}):null);lm.Provider;var Du=function(t){return Ze.forwardRef(function(n,o){var r=Ze.useContext(lm);return t(n,r,o)})},ml=T.createContext({}),Ou={}.hasOwnProperty,Zc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",LC=function(t,n){var o={};for(var r in n)Ou.call(n,r)&&(o[r]=n[r]);return o[Zc]=t,o},$C=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return Pu(n,o,r),am(function(){return ku(n,o,r)}),null},jC=Du(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[Zc],i=[o],a="";typeof e.className=="string"?a=rm(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var c=$i(i,void 0,T.useContext(ml));a+=t.key+"-"+c.name;var u={};for(var d in e)Ou.call(e,d)&&d!=="css"&&d!==Zc&&(u[d]=e[d]);return u.className=a,n&&(u.ref=n),T.createElement(T.Fragment,null,T.createElement($C,{cache:t,serialized:c,isStringTag:typeof r=="string"}),T.createElement(r,u))}),VC=jC,Vh=function(t,n){var o=arguments;if(n==null||!Ou.call(n,"css"))return T.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=VC,i[1]=LC(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={}))})(Vh||(Vh={}));var WC=Du(function(e,t){var n=e.styles,o=$i([n],void 0,T.useContext(ml)),r=T.useRef();return jh(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}),c=!1,u=document.querySelector('style[data-emotion="'+i+" "+o.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",i),a.hydrate([u])),r.current=[a,c],function(){a.flush()}},[t]),jh(function(){var i=r.current,a=i[0],c=i[1];if(c){i[1]=!1;return}if(o.next!==void 0&&ku(t,o.next,!0),a.tags.length){var u=a.tags[a.tags.length-1].nextElementSibling;a.before=u,a.flush()}t.insert("",o,a,!1)},[t,o.name]),null});function HC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $i(t)}function gl(){var e=HC.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 zC=/^((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)-.*))$/,BC=nm(function(e){return zC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),YC=BC,UC=function(t){return t!=="theme"},Wh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?YC:UC},Hh=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},qC=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return Pu(n,o,r),am(function(){return ku(n,o,r)}),null},GC=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 c=Hh(t,n,o),u=c||Wh(r),d=!u("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 g=Du(function(v,E,k){var _=d&&v.as||r,x="",C=[],O=v;if(v.theme==null){O={};for(var N in v)O[N]=v[N];O.theme=T.useContext(ml)}typeof v.className=="string"?x=rm(E.registered,C,v.className):v.className!=null&&(x=v.className+" ");var A=$i(p.concat(C),E.registered,O);x+=E.key+"-"+A.name,a!==void 0&&(x+=" "+a);var B=d&&c===void 0?Wh(_):u,R={};for(var $ in v)d&&$==="as"||B($)&&(R[$]=v[$]);return R.className=x,k&&(R.ref=k),T.createElement(T.Fragment,null,T.createElement(qC,{cache:E,serialized:A,isStringTag:typeof _=="string"}),T.createElement(_,R))});return g.displayName=i!==void 0?i:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=r,g.__emotion_styles=p,g.__emotion_forwardProp=c,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(v,E){var k=e(v,Z({},n,E,{shouldForwardProp:Hh(g,E,!0)}));return k.apply(void 0,p)},g}},KC=["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"],Qc=GC.bind(null);KC.forEach(function(e){Qc[e]=Qc(e)});var va={exports:{}},ba={exports:{}},Ct={};/** @license React v16.13.1
|
|
45
45
|
* react-is.production.min.js
|
|
46
46
|
*
|
|
47
47
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var
|
|
51
|
+
*/var zh;function XC(){if(zh)return Ct;zh=1;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,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=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,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function _(C){if(typeof C=="object"&&C!==null){var O=C.$$typeof;switch(O){case t:switch(C=C.type,C){case u:case d:case o:case i:case r:case p:return C;default:switch(C=C&&C.$$typeof,C){case c:case f:case b:case w:case a:return C;default:return O}}case n:return O}}}function x(C){return _(C)===d}return Ct.AsyncMode=u,Ct.ConcurrentMode=d,Ct.ContextConsumer=c,Ct.ContextProvider=a,Ct.Element=t,Ct.ForwardRef=f,Ct.Fragment=o,Ct.Lazy=b,Ct.Memo=w,Ct.Portal=n,Ct.Profiler=i,Ct.StrictMode=r,Ct.Suspense=p,Ct.isAsyncMode=function(C){return x(C)||_(C)===u},Ct.isConcurrentMode=x,Ct.isContextConsumer=function(C){return _(C)===c},Ct.isContextProvider=function(C){return _(C)===a},Ct.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Ct.isForwardRef=function(C){return _(C)===f},Ct.isFragment=function(C){return _(C)===o},Ct.isLazy=function(C){return _(C)===b},Ct.isMemo=function(C){return _(C)===w},Ct.isPortal=function(C){return _(C)===n},Ct.isProfiler=function(C){return _(C)===i},Ct.isStrictMode=function(C){return _(C)===r},Ct.isSuspense=function(C){return _(C)===p},Ct.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===d||C===i||C===r||C===p||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===w||C.$$typeof===a||C.$$typeof===c||C.$$typeof===f||C.$$typeof===v||C.$$typeof===E||C.$$typeof===k||C.$$typeof===g)},Ct.typeOf=_,Ct}var St={};/** @license React v16.13.1
|
|
52
52
|
* react-is.development.js
|
|
53
53
|
*
|
|
54
54
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var
|
|
58
|
+
*/var Bh;function ZC(){return Bh||(Bh=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,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=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,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function _(H){return typeof H=="string"||typeof H=="function"||H===o||H===d||H===i||H===r||H===p||H===y||typeof H=="object"&&H!==null&&(H.$$typeof===b||H.$$typeof===w||H.$$typeof===a||H.$$typeof===c||H.$$typeof===f||H.$$typeof===v||H.$$typeof===E||H.$$typeof===k||H.$$typeof===g)}function x(H){if(typeof H=="object"&&H!==null){var re=H.$$typeof;switch(re){case t:var Q=H.type;switch(Q){case u:case d:case o:case i:case r:case p:return Q;default:var fe=Q&&Q.$$typeof;switch(fe){case c:case f:case b:case w:case a:return fe;default:return re}}case n:return re}}}var C=u,O=d,N=c,A=a,B=t,R=f,$=o,K=b,X=w,q=n,Y=i,z=r,ae=p,I=!1;function D(H){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(H)||x(H)===u}function j(H){return x(H)===d}function W(H){return x(H)===c}function ne(H){return x(H)===a}function oe(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function se(H){return x(H)===f}function V(H){return x(H)===o}function J(H){return x(H)===b}function ee(H){return x(H)===w}function te(H){return x(H)===n}function ce(H){return x(H)===i}function ie(H){return x(H)===r}function he(H){return x(H)===p}St.AsyncMode=C,St.ConcurrentMode=O,St.ContextConsumer=N,St.ContextProvider=A,St.Element=B,St.ForwardRef=R,St.Fragment=$,St.Lazy=K,St.Memo=X,St.Portal=q,St.Profiler=Y,St.StrictMode=z,St.Suspense=ae,St.isAsyncMode=D,St.isConcurrentMode=j,St.isContextConsumer=W,St.isContextProvider=ne,St.isElement=oe,St.isForwardRef=se,St.isFragment=V,St.isLazy=J,St.isMemo=ee,St.isPortal=te,St.isProfiler=ce,St.isStrictMode=ie,St.isSuspense=he,St.isValidElementType=_,St.typeOf=x}()),St}var Yh;function cm(){return Yh||(Yh=1,process.env.NODE_ENV==="production"?ba.exports=XC():ba.exports=ZC()),ba.exports}/*
|
|
59
59
|
object-assign
|
|
60
60
|
(c) Sindre Sorhus
|
|
61
61
|
@license MIT
|
|
62
|
-
*/var
|
|
63
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
62
|
+
*/var Rc,Uh;function QC(){if(Uh)return Rc;Uh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function r(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rc=r()?Object.assign:function(i,a){for(var c,u=o(i),d,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){d=e(c);for(var y=0;y<d.length;y++)n.call(c,d[y])&&(u[d[y]]=c[d[y]])}}return u},Rc}var Tc,qh;function Mu(){if(qh)return Tc;qh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tc=e,Tc}var Ec,Gh;function um(){return Gh||(Gh=1,Ec=Function.call.bind(Object.prototype.hasOwnProperty)),Ec}var Pc,Kh;function JC(){if(Kh)return Pc;Kh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Mu(),n={},o=um();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(i,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var f in i)if(o(i,f)){var p;try{if(typeof i[f]!="function"){var y=Error((u||"React class")+": "+c+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}p=i[f](a,f,u,c,null,t)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var w=d?d():"";e("Failed "+c+" type: "+p.message+(w??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Pc=r,Pc}var kc,Xh;function eS(){if(Xh)return kc;Xh=1;var e=cm(),t=QC(),n=Mu(),o=um(),r=JC(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return kc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(j){var W=j&&(d&&j[d]||j[f]);if(typeof W=="function")return W}var y="<<anonymous>>",w={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:k(),arrayOf:_,element:x(),elementType:C(),instanceOf:O,node:R(),objectOf:A,oneOf:N,oneOfType:B,shape:K,exact:X};function b(j,W){return j===W?j!==0||1/j===1/W:j!==j&&W!==W}function g(j,W){this.message=j,this.data=W&&typeof W=="object"?W:{},this.stack=""}g.prototype=Error.prototype;function v(j){if(process.env.NODE_ENV!=="production")var W={},ne=0;function oe(V,J,ee,te,ce,ie,he){if(te=te||y,ie=ie||ee,he!==n){if(u){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var re=te+":"+ee;!W[re]&&ne<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ie+"` prop on `"+te+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[re]=!0,ne++)}}return J[ee]==null?V?J[ee]===null?new g("The "+ce+" `"+ie+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new g("The "+ce+" `"+ie+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:j(J,ee,te,ce,ie)}var se=oe.bind(null,!1);return se.isRequired=oe.bind(null,!0),se}function E(j){function W(ne,oe,se,V,J,ee){var te=ne[oe],ce=z(te);if(ce!==j){var ie=ae(te);return new g("Invalid "+V+" `"+J+"` of type "+("`"+ie+"` supplied to `"+se+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return v(W)}function k(){return v(a)}function _(j){function W(ne,oe,se,V,J){if(typeof j!="function")return new g("Property `"+J+"` of component `"+se+"` has invalid PropType notation inside arrayOf.");var ee=ne[oe];if(!Array.isArray(ee)){var te=z(ee);return new g("Invalid "+V+" `"+J+"` of type "+("`"+te+"` supplied to `"+se+"`, expected an array."))}for(var ce=0;ce<ee.length;ce++){var ie=j(ee,ce,se,V,J+"["+ce+"]",n);if(ie instanceof Error)return ie}return null}return v(W)}function x(){function j(W,ne,oe,se,V){var J=W[ne];if(!c(J)){var ee=z(J);return new g("Invalid "+se+" `"+V+"` of type "+("`"+ee+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return v(j)}function C(){function j(W,ne,oe,se,V){var J=W[ne];if(!e.isValidElementType(J)){var ee=z(J);return new g("Invalid "+se+" `"+V+"` of type "+("`"+ee+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return v(j)}function O(j){function W(ne,oe,se,V,J){if(!(ne[oe]instanceof j)){var ee=j.name||y,te=D(ne[oe]);return new g("Invalid "+V+" `"+J+"` of type "+("`"+te+"` supplied to `"+se+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(W)}function N(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function W(ne,oe,se,V,J){for(var ee=ne[oe],te=0;te<j.length;te++)if(b(ee,j[te]))return null;var ce=JSON.stringify(j,function(he,H){var re=ae(H);return re==="symbol"?String(H):H});return new g("Invalid "+V+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+se+"`, expected one of "+ce+"."))}return v(W)}function A(j){function W(ne,oe,se,V,J){if(typeof j!="function")return new g("Property `"+J+"` of component `"+se+"` has invalid PropType notation inside objectOf.");var ee=ne[oe],te=z(ee);if(te!=="object")return new g("Invalid "+V+" `"+J+"` of type "+("`"+te+"` supplied to `"+se+"`, expected an object."));for(var ce in ee)if(o(ee,ce)){var ie=j(ee,ce,se,V,J+"."+ce,n);if(ie instanceof Error)return ie}return null}return v(W)}function B(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<j.length;W++){var ne=j[W];if(typeof ne!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+I(ne)+" at index "+W+"."),a}function oe(se,V,J,ee,te){for(var ce=[],ie=0;ie<j.length;ie++){var he=j[ie],H=he(se,V,J,ee,te,n);if(H==null)return null;H.data&&o(H.data,"expectedType")&&ce.push(H.data.expectedType)}var re=ce.length>0?", expected one of type ["+ce.join(", ")+"]":"";return new g("Invalid "+ee+" `"+te+"` supplied to "+("`"+J+"`"+re+"."))}return v(oe)}function R(){function j(W,ne,oe,se,V){return q(W[ne])?null:new g("Invalid "+se+" `"+V+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return v(j)}function $(j,W,ne,oe,se){return new g((j||"React class")+": "+W+" type `"+ne+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function K(j){function W(ne,oe,se,V,J){var ee=ne[oe],te=z(ee);if(te!=="object")return new g("Invalid "+V+" `"+J+"` of type `"+te+"` "+("supplied to `"+se+"`, expected `object`."));for(var ce in j){var ie=j[ce];if(typeof ie!="function")return $(se,V,J,ce,ae(ie));var he=ie(ee,ce,se,V,J+"."+ce,n);if(he)return he}return null}return v(W)}function X(j){function W(ne,oe,se,V,J){var ee=ne[oe],te=z(ee);if(te!=="object")return new g("Invalid "+V+" `"+J+"` of type `"+te+"` "+("supplied to `"+se+"`, expected `object`."));var ce=t({},ne[oe],j);for(var ie in ce){var he=j[ie];if(o(j,ie)&&typeof he!="function")return $(se,V,J,ie,ae(he));if(!he)return new g("Invalid "+V+" `"+J+"` key `"+ie+"` supplied to `"+se+"`.\nBad object: "+JSON.stringify(ne[oe],null," ")+`
|
|
63
|
+
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var H=he(ee,ie,se,V,J+"."+ie,n);if(H)return H}return null}return v(W)}function q(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(q);if(j===null||c(j))return!0;var W=p(j);if(W){var ne=W.call(j),oe;if(W!==j.entries){for(;!(oe=ne.next()).done;)if(!q(oe.value))return!1}else for(;!(oe=ne.next()).done;){var se=oe.value;if(se&&!q(se[1]))return!1}}else return!1;return!0;default:return!1}}function Y(j,W){return j==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function z(j){var W=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":Y(W,j)?"symbol":W}function ae(j){if(typeof j>"u"||j===null)return""+j;var W=z(j);if(W==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return W}function I(j){var W=ae(j);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function D(j){return!j.constructor||!j.constructor.name?y:j.constructor.name}return w.checkPropTypes=r,w.resetWarningCache=r.resetWarningCache,w.PropTypes=w,w},kc}var Dc,Zh;function tS(){if(Zh)return Dc;Zh=1;var e=Mu();function t(){}function n(){}return n.resetWarningCache=t,Dc=function(){function o(a,c,u,d,f,p){if(p!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}o.isRequired=o;function r(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Dc}var Qh;function nS(){if(Qh)return va.exports;if(Qh=1,process.env.NODE_ENV!=="production"){var e=cm(),t=!0;va.exports=eS()(e.isElement,t)}else va.exports=tS()();return va.exports}var oS=nS();const s=Y0(oS);function rS(e){return e==null||Object.keys(e).length===0}function dm(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>t(rS(r)?n:r):t;return P.jsx(WC,{styles:o})}process.env.NODE_ENV!=="production"&&(dm.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
64
64
|
* @mui/styled-engine v6.4.11
|
|
65
65
|
*
|
|
66
66
|
* @license MIT
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/function
|
|
70
|
-
`)):
|
|
69
|
+
*/function hm(e,t){const n=Qc(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
70
|
+
`)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function sS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Jh=[];function ef(e){return Jh[0]=e,$i(Jh)}var wa={exports:{}},Rt={};/**
|
|
71
71
|
* @license React
|
|
72
72
|
* react-is.production.js
|
|
73
73
|
*
|
|
@@ -75,7 +75,7 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var I=ze(J,ie,V,Y,Q+"."+
|
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var
|
|
78
|
+
*/var tf;function iS(){if(tf)return Rt;tf=1;var e=Symbol.for("react.transitional.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.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function b(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case n:case r:case o:case u:case d:case y:return g;default:switch(g=g&&g.$$typeof,g){case a:case c:case p:case f:return g;case i:return g;default:return v}}case t:return v}}}return Rt.ContextConsumer=i,Rt.ContextProvider=a,Rt.Element=e,Rt.ForwardRef=c,Rt.Fragment=n,Rt.Lazy=p,Rt.Memo=f,Rt.Portal=t,Rt.Profiler=r,Rt.StrictMode=o,Rt.Suspense=u,Rt.SuspenseList=d,Rt.isContextConsumer=function(g){return b(g)===i},Rt.isContextProvider=function(g){return b(g)===a},Rt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Rt.isForwardRef=function(g){return b(g)===c},Rt.isFragment=function(g){return b(g)===n},Rt.isLazy=function(g){return b(g)===p},Rt.isMemo=function(g){return b(g)===f},Rt.isPortal=function(g){return b(g)===t},Rt.isProfiler=function(g){return b(g)===r},Rt.isStrictMode=function(g){return b(g)===o},Rt.isSuspense=function(g){return b(g)===u},Rt.isSuspenseList=function(g){return b(g)===d},Rt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===r||g===o||g===u||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===a||g.$$typeof===i||g.$$typeof===c||g.$$typeof===w||g.getModuleId!==void 0)},Rt.typeOf=b,Rt}var Tt={};/**
|
|
79
79
|
* @license React
|
|
80
80
|
* react-is.development.js
|
|
81
81
|
*
|
|
@@ -83,17 +83,21 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var I=ze(J,ie,V,Y,Q+"."+
|
|
|
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
|
|
87
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
86
|
+
*/var nf;function aS(){return nf||(nf=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case t:switch(g=g.type,g){case o:case i:case r:case d:case f:case w:return g;default:switch(g=g&&g.$$typeof,g){case c:case u:case y:case p:return g;case a:return g;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"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=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");Tt.ContextConsumer=a,Tt.ContextProvider=c,Tt.Element=t,Tt.ForwardRef=u,Tt.Fragment=o,Tt.Lazy=y,Tt.Memo=p,Tt.Portal=n,Tt.Profiler=i,Tt.StrictMode=r,Tt.Suspense=d,Tt.SuspenseList=f,Tt.isContextConsumer=function(g){return e(g)===a},Tt.isContextProvider=function(g){return e(g)===c},Tt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Tt.isForwardRef=function(g){return e(g)===u},Tt.isFragment=function(g){return e(g)===o},Tt.isLazy=function(g){return e(g)===y},Tt.isMemo=function(g){return e(g)===p},Tt.isPortal=function(g){return e(g)===n},Tt.isProfiler=function(g){return e(g)===i},Tt.isStrictMode=function(g){return e(g)===r},Tt.isSuspense=function(g){return e(g)===d},Tt.isSuspenseList=function(g){return e(g)===f},Tt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===r||g===d||g===f||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===p||g.$$typeof===c||g.$$typeof===a||g.$$typeof===u||g.$$typeof===b||g.getModuleId!==void 0)},Tt.typeOf=e}()),Tt}var of;function lS(){return of||(of=1,process.env.NODE_ENV==="production"?wa.exports=iS():wa.exports=aS()),wa.exports}var qa=lS();function go(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 fm(e){if(T.isValidElement(e)||qa.isValidElementType(e)||!go(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=fm(e[n])}),t}function mn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return go(e)&&go(t)&&Object.keys(t).forEach(r=>{T.isValidElement(t[r])||qa.isValidElementType(t[r])?o[r]=t[r]:go(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&go(e[r])?o[r]=mn(e[r],t[r],n):n.clone?o[r]=go(t[r])?fm(t[r]):t[r]:o[r]=t[r]}),o}const cS=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 uS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=cS(t),a=Object.keys(i);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-o/100}${n})`}function d(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?d(y,a[a.indexOf(y)+1]):c(y)}function p(y){const w=a.indexOf(y);return w===0?c(a[1]):w===a.length-1?u(a[w]):d(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:c,down:u,between:d,only:f,not:p,unit:n,...r}}function dS(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 hS(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function fS(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
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:wo(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function pS(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...c)=>t(e.breakpoints.up(...c),a),i.down=(...c)=>t(e.breakpoints.down(...c),a),i.between=(...c)=>t(e.breakpoints.between(...c),a),i.only=(...c)=>t(e.breakpoints.only(...c),a),i.not=(...c)=>{const u=t(e.breakpoints.not(...c),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const mS={borderRadius:4},ir=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function ii(e,t){return t?mn(e,t,{clone:!1}):e}const yl={xs:0,sm:600,md:900,lg:1200,xl:1536},rf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${yl[e]}px)`},gS={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 Wo(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||rf;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=o.breakpoints||rf;return Object.keys(t).reduce((a,c)=>{if(hS(i.keys,c)){const u=fS(o.containerQueries?o:gS,c);u&&(a[u]=n(t[c],c))}else if(Object.keys(i.values||yl).includes(c)){const u=i.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function yS(e={}){return e.keys?.reduce((n,o)=>{const r=e.up(o);return n[r]={},n},{})||{}}function vS(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function be(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":wo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vl(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 Ga(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=vl(e,n)||o,t&&(r=t(r,o,e)),r}function Gt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,d=vl(u,o)||{};return Wo(a,c,p=>{let y=Ga(d,r,p);return p===y&&typeof p=="string"&&(y=Ga(d,r,`${t}${p==="default"?"":be(p)}`,p)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ir}:{},i.filterProps=[t],i}function bS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const wS={m:"margin",p:"padding"},CS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},SS=bS(e=>{if(e.length>2)if(sf[e])e=sf[e];else return[e];const[t,n]=e.split(""),o=wS[t],r=CS[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),bl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],xS=[...bl,...wl];function ji(e,t,n,o){const r=vl(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
|
-
`)));const
|
|
90
|
-
`)),()=>{})}function wa(e){return xs(e,"spacing",8,"spacing")}function Ts(e,t){return typeof t=="string"||t==null?t:e(t)}function Gg(e,t){return r=>e.reduce((i,s)=>(i[s]=Ts(t,r),i),{})}function qg(e,t,r,i){if(!t.includes(r))return null;const s=jg(r),o=Gg(s,i),l=e[r];return Or(e,l,o)}function mc(e,t){const r=wa(e.theme);return Object.keys(e).map(i=>qg(e,t,i,r)).reduce(ds,{})}function lt(e){return mc(e,Ln)}lt.propTypes=process.env.NODE_ENV!=="production"?Ln.reduce((e,t)=>(e[t]=Kr,e),{}):{};lt.filterProps=Ln;function ht(e){return mc(e,Fn)}ht.propTypes=process.env.NODE_ENV!=="production"?Fn.reduce((e,t)=>(e[t]=Kr,e),{}):{};ht.filterProps=Fn;process.env.NODE_ENV!=="production"&&Ug.reduce((e,t)=>(e[t]=Kr,e),{});function gc(e=8,t=wa({spacing:e})){if(e.mui)return e;const r=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(o=>{const l=t(o);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function In(...e){const t=e.reduce((i,s)=>(s.filterProps.forEach(o=>{i[o]=s}),i),{}),r=i=>Object.keys(i).reduce((s,o)=>t[o]?ds(s,t[o](i)):s,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,s)=>Object.assign(i,s.propTypes),{}):{},r.filterProps=e.reduce((i,s)=>i.concat(s.filterProps),[]),r}function Ut(e){return typeof e!="number"?e:`${e}px solid`}function qt(e,t){return ft({prop:e,themeKey:"borders",transform:t})}const Xg=qt("border",Ut),Kg=qt("borderTop",Ut),Zg=qt("borderRight",Ut),Jg=qt("borderBottom",Ut),Qg=qt("borderLeft",Ut),ey=qt("borderColor"),ty=qt("borderTopColor"),ry=qt("borderRightColor"),iy=qt("borderBottomColor"),sy=qt("borderLeftColor"),ny=qt("outline",Ut),oy=qt("outlineColor"),Wn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=xs(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Ts(t,i)});return Or(e,e.borderRadius,r)}return null};Wn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Kr}:{};Wn.filterProps=["borderRadius"];In(Xg,Kg,Zg,Jg,Qg,ey,ty,ry,iy,sy,Wn,ny,oy);const Hn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=xs(e.theme,"spacing",8,"gap"),r=i=>({gap:Ts(t,i)});return Or(e,e.gap,r)}return null};Hn.propTypes=process.env.NODE_ENV!=="production"?{gap:Kr}:{};Hn.filterProps=["gap"];const Yn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=xs(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Ts(t,i)});return Or(e,e.columnGap,r)}return null};Yn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Kr}:{};Yn.filterProps=["columnGap"];const zn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=xs(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Ts(t,i)});return Or(e,e.rowGap,r)}return null};zn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Kr}:{};zn.filterProps=["rowGap"];const ay=ft({prop:"gridColumn"}),ly=ft({prop:"gridRow"}),hy=ft({prop:"gridAutoFlow"}),cy=ft({prop:"gridAutoColumns"}),uy=ft({prop:"gridAutoRows"}),dy=ft({prop:"gridTemplateColumns"}),fy=ft({prop:"gridTemplateRows"}),py=ft({prop:"gridTemplateAreas"}),my=ft({prop:"gridArea"});In(Hn,Yn,zn,ay,ly,hy,cy,uy,dy,fy,py,my);function Ii(e,t){return t==="grey"?t:e}const gy=ft({prop:"color",themeKey:"palette",transform:Ii}),yy=ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ii}),vy=ft({prop:"backgroundColor",themeKey:"palette",transform:Ii});In(gy,yy,vy);function Ft(e){return e<=1&&e!==0?`${e*100}%`:e}const wy=ft({prop:"width",transform:Ft}),_a=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const i=e.theme?.breakpoints?.values?.[r]||An[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ft(r)}};return Or(e,e.maxWidth,t)}return null};_a.filterProps=["maxWidth"];const _y=ft({prop:"minWidth",transform:Ft}),by=ft({prop:"height",transform:Ft}),Cy=ft({prop:"maxHeight",transform:Ft}),Sy=ft({prop:"minHeight",transform:Ft});ft({prop:"size",cssProperty:"width",transform:Ft});ft({prop:"size",cssProperty:"height",transform:Ft});const Ry=ft({prop:"boxSizing"});In(wy,_a,_y,by,Cy,Sy,Ry);const Ds={border:{themeKey:"borders",transform:Ut},borderTop:{themeKey:"borders",transform:Ut},borderRight:{themeKey:"borders",transform:Ut},borderBottom:{themeKey:"borders",transform:Ut},borderLeft:{themeKey:"borders",transform:Ut},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ut},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wn},color:{themeKey:"palette",transform:Ii},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ii},backgroundColor:{themeKey:"palette",transform:Ii},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},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:Hn},rowGap:{style:zn},columnGap:{style:Yn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ft},maxWidth:{style:_a},minWidth:{transform:Ft},height:{transform:Ft},maxHeight:{transform:Ft},minHeight:{transform:Ft},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 Ey(...e){const t=e.reduce((i,s)=>i.concat(Object.keys(s)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function ky(e,t){return typeof e=="function"?e(t):e}function xy(){function e(r,i,s,o){const l={[r]:i,theme:s},h=o[r];if(!h)return{[r]:i};const{cssProperty:d=r,themeKey:f,transform:p,style:m}=h;if(i==null)return null;if(f==="typography"&&i==="inherit")return{[r]:i};const C=Nn(s,f)||{};return m?m(l):Or(l,i,R=>{let y=wn(C,p,R);return R===y&&typeof R=="string"&&(y=wn(C,p,`${r}${R==="default"?"":kt(R)}`,R)),d===!1?y:{[d]:y}})}function t(r){const{sx:i,theme:s={}}=r||{};if(!i)return null;const o=s.unstable_sxConfig??Ds;function l(h){let d=h;if(typeof h=="function")d=h(s);else if(typeof h!="object")return h;if(!d)return null;const f=Yg(s.breakpoints),p=Object.keys(f);let m=f;return Object.keys(d).forEach(C=>{const x=ky(d[C],s);if(x!=null)if(typeof x=="object")if(o[C])m=ds(m,e(C,x,s,o));else{const R=Or({theme:s},x,y=>({[C]:y}));Ey(R,x)?m[C]=t({sx:x,theme:s}):m=ds(m,R)}else m=ds(m,e(C,x,s,o))}),Ng(s,zg(p,m))}return Array.isArray(i)?i.map(l):l(i)}return t}const ci=xy();ci.filterProps=["sx"];function Ty(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function ba(e={},...t){const{breakpoints:r={},palette:i={},spacing:s,shape:o={},...l}=e,h=Ag(r),d=gc(s);let f=Wt({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:d,shape:{...Wg,...o}},l);return f=Ig(f),f.applyStyles=Ty,f=t.reduce((p,m)=>Wt(p,m),f),f.unstable_sxConfig={...Ds,...l?.unstable_sxConfig},f.unstable_sx=function(m){return ci({sx:m,theme:this})},f}function Dy(e){return Object.keys(e).length===0}function My(e=null){const t=ae.useContext(ga);return!t||Dy(t)?e:t}const Py=ba();function yc(e=Py){return My(e)}const Oy=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Ds;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Ay(e){const{sx:t,...r}=e,{systemProps:i,otherProps:s}=Oy(r);let o;return Array.isArray(t)?o=[i,...t]:typeof t=="function"?o=(...l)=>{const h=t(...l);return cr(h)?{...i,...h}:i}:o={...i,...t},{...s,sx:o}}const ph=e=>e,Ny=()=>{let e=ph;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ph}}},vc=Ny();function wc(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=wc(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function bt(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=wc(e))&&(i&&(i+=" "),i+=t);return i}function Ly(e={}){const{themeId:t,defaultTheme:r,defaultClassName:i="MuiBox-root",generateClassName:s}=e,o=fc("div",{shouldForwardProp:h=>h!=="theme"&&h!=="sx"&&h!=="as"})(ci);return ae.forwardRef(function(d,f){const p=yc(r),{className:m,component:C="div",...x}=Ay(d);return le.jsx(o,{as:C,ref:f,className:bt(m,s?s(i):i),theme:t&&p[t]||p,...x})})}const Fy={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 Zr(e,t,r="Mui"){const i=Fy[t];return i?`${r}-${i}`:`${vc.generate(e)}-${t}`}function Jr(e,t,r="Mui"){const i={};return t.forEach(s=>{i[s]=Zr(e,s,r)}),i}function _c(e,t=""){return e.displayName||e.name||t}function mh(e,t,r){const i=_c(t);return e.displayName||(i!==""?`${r}(${i})`:r)}function Iy(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return _c(e,"Component");if(typeof e=="object")switch(e.$$typeof){case vn.ForwardRef:return mh(e,e.render,"ForwardRef");case vn.Memo:return mh(e,e.type,"memo");default:return}}}function bc(e){const{variants:t,...r}=e,i={variants:t,style:lh(r),isProcessed:!0};return i.style===r||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=lh(s.style))}),i}const Wy=ba();function Po(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Hy(e){return e?(t,r)=>r[e]:null}function Yy(e,t,r){e.theme=Vy(e.theme)?r:e.theme[t]||e.theme}function cn(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>cn(e,i));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=r.style;else{const{variants:s,...o}=r;i=o}return Cc(e,r.variants,[i])}return r?.isProcessed?r.style:r}function Cc(e,t,r=[]){let i;e:for(let s=0;s<t.length;s+=1){const o=t[s];if(typeof o.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(const l in o.props)if(e[l]!==o.props[l]&&e.ownerState?.[l]!==o.props[l])continue e;typeof o.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(o.style(i))):r.push(o.style)}return r}function zy(e={}){const{themeId:t,defaultTheme:r=Wy,rootShouldForwardProp:i=Po,slotShouldForwardProp:s=Po}=e;function o(h){Yy(h,t,r)}return(h,d={})=>{Tg(h,v=>v.filter(L=>L!==ci));const{name:f,slot:p,skipVariantsResolver:m,skipSx:C,overridesResolver:x=Hy(Sc(p)),...R}=d,y=m!==void 0?m:p&&p!=="Root"&&p!=="root"||!1,O=C||!1;let F=Po;p==="Root"||p==="root"?F=i:p?F=s:jy(h)&&(F=void 0);const B=fc(h,{shouldForwardProp:F,label:By(f,p),...R}),N=v=>{if(v.__emotion_real===v)return v;if(typeof v=="function")return function(z){return cn(z,v)};if(cr(v)){const L=bc(v);return L.variants?function(q){return cn(q,L)}:L.style}return v},k=(...v)=>{const L=[],z=v.map(N),q=[];if(L.push(o),f&&x&&q.push(function(ce){const ve=ce.theme.components?.[f]?.styleOverrides;if(!ve)return null;const Fe={};for(const me in ve)Fe[me]=cn(ce,ve[me]);return x(ce,Fe)}),f&&!y&&q.push(function(ce){const ve=ce.theme?.components?.[f]?.variants;return ve?Cc(ce,ve):null}),O||q.push(ci),Array.isArray(z[0])){const G=z.shift(),ce=new Array(L.length).fill(""),oe=new Array(q.length).fill("");let ve;ve=[...ce,...G,...oe],ve.raw=[...ce,...G.raw,...oe],L.unshift(ve)}const te=[...L,...z,...q],w=B(...te);return h.muiName&&(w.muiName=h.muiName),process.env.NODE_ENV!=="production"&&(w.displayName=$y(f,p,h)),w};return B.withConfig&&(k.withConfig=B.withConfig),k}}function $y(e,t,r){return e?`${e}${kt(t||"")}`:`Styled(${Iy(r)})`}function By(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Sc(t||"Root")}`),r}function Vy(e){for(const t in e)return!1;return!0}function jy(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Sc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Uo(e,t){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const o=e[s],l=t[s];if(!l)r[s]=o||{};else if(!o)r[s]=l;else{r[s]={...l};for(const h in o)if(Object.prototype.hasOwnProperty.call(o,h)){const d=h;r[s][d]=Uo(o[d],l[d])}}}else r[s]===void 0&&(r[s]=e[s])}return r}const Uy=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function Gy(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ca(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Gy(e,t,r)}function qy(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((i,s)=>s<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Xr(e){if(e.type)return e;if(e.charAt(0)==="#")return Xr(qy(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
`)));const c=r[a];return i>=0?c:typeof c=="number"?-c:`-${c}`}: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 Iu(e){return ji(e,"spacing",8,"spacing")}function Vi(e,t){return typeof t=="string"||t==null?t:e(t)}function _S(e,t){return n=>e.reduce((o,r)=>(o[r]=Vi(t,n),o),{})}function RS(e,t,n,o){if(!t.includes(n))return null;const r=SS(n),i=_S(r,o),a=e[n];return Wo(e,a,i)}function pm(e,t){const n=Iu(e.theme);return Object.keys(e).map(o=>RS(e,t,o,n)).reduce(ii,{})}function zt(e){return pm(e,bl)}zt.propTypes=process.env.NODE_ENV!=="production"?bl.reduce((e,t)=>(e[t]=ir,e),{}):{};zt.filterProps=bl;function Bt(e){return pm(e,wl)}Bt.propTypes=process.env.NODE_ENV!=="production"?wl.reduce((e,t)=>(e[t]=ir,e),{}):{};Bt.filterProps=wl;process.env.NODE_ENV!=="production"&&xS.reduce((e,t)=>(e[t]=ir,e),{});function mm(e=8,t=Iu({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 Cl(...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]?ii(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 zn(e){return typeof e!="number"?e:`${e}px solid`}function Kn(e,t){return Gt({prop:e,themeKey:"borders",transform:t})}const TS=Kn("border",zn),ES=Kn("borderTop",zn),PS=Kn("borderRight",zn),kS=Kn("borderBottom",zn),DS=Kn("borderLeft",zn),OS=Kn("borderColor"),MS=Kn("borderTopColor"),IS=Kn("borderRightColor"),NS=Kn("borderBottomColor"),AS=Kn("borderLeftColor"),FS=Kn("outline",zn),LS=Kn("outlineColor"),Sl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ji(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Vi(t,o)});return Wo(e,e.borderRadius,n)}return null};Sl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ir}:{};Sl.filterProps=["borderRadius"];Cl(TS,ES,PS,kS,DS,OS,MS,IS,NS,AS,Sl,FS,LS);const xl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ji(e.theme,"spacing",8,"gap"),n=o=>({gap:Vi(t,o)});return Wo(e,e.gap,n)}return null};xl.propTypes=process.env.NODE_ENV!=="production"?{gap:ir}:{};xl.filterProps=["gap"];const _l=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ji(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Vi(t,o)});return Wo(e,e.columnGap,n)}return null};_l.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ir}:{};_l.filterProps=["columnGap"];const Rl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ji(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Vi(t,o)});return Wo(e,e.rowGap,n)}return null};Rl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ir}:{};Rl.filterProps=["rowGap"];const $S=Gt({prop:"gridColumn"}),jS=Gt({prop:"gridRow"}),VS=Gt({prop:"gridAutoFlow"}),WS=Gt({prop:"gridAutoColumns"}),HS=Gt({prop:"gridAutoRows"}),zS=Gt({prop:"gridTemplateColumns"}),BS=Gt({prop:"gridTemplateRows"}),YS=Gt({prop:"gridTemplateAreas"}),US=Gt({prop:"gridArea"});Cl(xl,_l,Rl,$S,jS,VS,WS,HS,zS,BS,YS,US);function cs(e,t){return t==="grey"?t:e}const qS=Gt({prop:"color",themeKey:"palette",transform:cs}),GS=Gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cs}),KS=Gt({prop:"backgroundColor",themeKey:"palette",transform:cs});Cl(qS,GS,KS);function Nn(e){return e<=1&&e!==0?`${e*100}%`:e}const XS=Gt({prop:"width",transform:Nn}),Nu=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:Nn(n)}};return Wo(e,e.maxWidth,t)}return null};Nu.filterProps=["maxWidth"];const ZS=Gt({prop:"minWidth",transform:Nn}),QS=Gt({prop:"height",transform:Nn}),JS=Gt({prop:"maxHeight",transform:Nn}),ex=Gt({prop:"minHeight",transform:Nn});Gt({prop:"size",cssProperty:"width",transform:Nn});Gt({prop:"size",cssProperty:"height",transform:Nn});const tx=Gt({prop:"boxSizing"});Cl(XS,Nu,ZS,QS,JS,ex,tx);const Wi={border:{themeKey:"borders",transform:zn},borderTop:{themeKey:"borders",transform:zn},borderRight:{themeKey:"borders",transform:zn},borderBottom:{themeKey:"borders",transform:zn},borderLeft:{themeKey:"borders",transform:zn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sl},color:{themeKey:"palette",transform:cs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cs},backgroundColor:{themeKey:"palette",transform:cs},p:{style:Bt},pt:{style:Bt},pr:{style:Bt},pb:{style:Bt},pl:{style:Bt},px:{style:Bt},py:{style:Bt},padding:{style:Bt},paddingTop:{style:Bt},paddingRight:{style:Bt},paddingBottom:{style:Bt},paddingLeft:{style:Bt},paddingX:{style:Bt},paddingY:{style:Bt},paddingInline:{style:Bt},paddingInlineStart:{style:Bt},paddingInlineEnd:{style:Bt},paddingBlock:{style:Bt},paddingBlockStart:{style:Bt},paddingBlockEnd:{style:Bt},m:{style:zt},mt:{style:zt},mr:{style:zt},mb:{style:zt},ml:{style:zt},mx:{style:zt},my:{style:zt},margin:{style:zt},marginTop:{style:zt},marginRight:{style:zt},marginBottom:{style:zt},marginLeft:{style:zt},marginX:{style:zt},marginY:{style:zt},marginInline:{style:zt},marginInlineStart:{style:zt},marginInlineEnd:{style:zt},marginBlock:{style:zt},marginBlockStart:{style:zt},marginBlockEnd:{style:zt},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:xl},rowGap:{style:Rl},columnGap:{style:_l},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nn},maxWidth:{style:Nu},minWidth:{transform:Nn},height:{transform:Nn},maxHeight:{transform:Nn},minHeight:{transform:Nn},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 nx(...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 ox(e,t){return typeof e=="function"?e(t):e}function rx(){function e(n,o,r,i){const a={[n]:o,theme:r},c=i[n];if(!c)return{[n]:o};const{cssProperty:u=n,themeKey:d,transform:f,style:p}=c;if(o==null)return null;if(d==="typography"&&o==="inherit")return{[n]:o};const y=vl(r,d)||{};return p?p(a):Wo(a,o,b=>{let g=Ga(y,f,b);return b===g&&typeof b=="string"&&(g=Ga(y,f,`${n}${b==="default"?"":be(b)}`,b)),u===!1?g:{[u]:g}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??Wi;function a(c){let u=c;if(typeof c=="function")u=c(r);else if(typeof c!="object")return c;if(!u)return null;const d=yS(r.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(y=>{const w=ox(u[y],r);if(w!=null)if(typeof w=="object")if(i[y])p=ii(p,e(y,w,r,i));else{const b=Wo({theme:r},w,g=>({[y]:g}));nx(b,w)?p[y]=t({sx:w,theme:r}):p=ii(p,b)}else p=ii(p,e(y,w,r,i))}),dS(r,vS(f,p))}return Array.isArray(o)?o.map(a):a(o)}return t}const Pr=rx();Pr.filterProps=["sx"];function sx(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 Au(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,c=uS(n),u=mm(r);let d=mn({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:u,shape:{...mS,...i}},a);return d=pS(d),d.applyStyles=sx,d=t.reduce((f,p)=>mn(f,p),d),d.unstable_sxConfig={...Wi,...a?.unstable_sxConfig},d.unstable_sx=function(p){return Pr({sx:p,theme:this})},d}function ix(e){return Object.keys(e).length===0}function gm(e=null){const t=T.useContext(ml);return!t||ix(t)?e:t}const ax=Au();function Tl(e=ax){return gm(e)}function ym({styles:e,themeId:t,defaultTheme:n={}}){const o=Tl(n),r=typeof e=="function"?e(t&&o[t]||o):e;return P.jsx(dm,{styles:r})}process.env.NODE_ENV!=="production"&&(ym.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const lx=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Wi;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function vm(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=lx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const c=t(...a);return go(c)?{...o,...c}:o}:i={...o,...t},{...r,sx:i}}const af=e=>e,cx=()=>{let e=af;return{configure(t){e=t},generate(t){return e(t)},reset(){e=af}}},bm=cx();function wm(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=wm(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=wm(e))&&(o&&(o+=" "),o+=t);return o}function ux(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=hm("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Pr);return T.forwardRef(function(u,d){const f=Tl(n),{className:p,component:y="div",...w}=vm(u);return P.jsx(i,{as:y,ref:d,className:Se(p,r?r(o):o),theme:t&&f[t]||f,...w})})}const dx={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 Oe(e,t,n="Mui"){const o=dx[t];return o?`${n}-${o}`:`${bm.generate(e)}-${t}`}function De(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Oe(e,r,n)}),o}function Cm(e,t=""){return e.displayName||e.name||t}function lf(e,t,n){const o=Cm(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function hx(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Cm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case qa.ForwardRef:return lf(e,e.render,"ForwardRef");case qa.Memo:return lf(e,e.type,"memo");default:return}}}function Sm(e){const{variants:t,...n}=e,o={variants:t,style:ef(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=ef(r.style))}),o}const fx=Au();function Fa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function px(e){return e?(t,n)=>n[e]:null}function mx(e,t,n){e.theme=bx(e.theme)?n:e.theme[t]||e.theme}function La(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>La(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return xm(e,n.variants,[o])}return n?.isProcessed?n.style:n}function xm(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 gx(e={}){const{themeId:t,defaultTheme:n=fx,rootShouldForwardProp:o=Fa,slotShouldForwardProp:r=Fa}=e;function i(c){mx(c,t,n)}return(c,u={})=>{sS(c,C=>C.filter(O=>O!==Pr));const{name:d,slot:f,skipVariantsResolver:p,skipSx:y,overridesResolver:w=px(_m(f)),...b}=u,g=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let E=Fa;f==="Root"||f==="root"?E=o:f?E=r:wx(c)&&(E=void 0);const k=hm(c,{shouldForwardProp:E,label:vx(d,f),...b}),_=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(N){return La(N,C)};if(go(C)){const O=Sm(C);return O.variants?function(A){return La(A,O)}:O.style}return C},x=(...C)=>{const O=[],N=C.map(_),A=[];if(O.push(i),d&&w&&A.push(function(K){const q=K.theme.components?.[d]?.styleOverrides;if(!q)return null;const Y={};for(const z in q)Y[z]=La(K,q[z]);return w(K,Y)}),d&&!g&&A.push(function(K){const q=K.theme?.components?.[d]?.variants;return q?xm(K,q):null}),v||A.push(Pr),Array.isArray(N[0])){const $=N.shift(),K=new Array(O.length).fill(""),X=new Array(A.length).fill("");let q;q=[...K,...$,...X],q.raw=[...K,...$.raw,...X],O.unshift(q)}const B=[...O,...N,...A],R=k(...B);return c.muiName&&(R.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=yx(d,f,c)),R};return k.withConfig&&(x.withConfig=k.withConfig),x}}function yx(e,t,n){return e?`${e}${be(t||"")}`:`Styled(${hx(n)})`}function vx(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${_m(t||"Root")}`),n}function bx(e){for(const t in e)return!1;return!0}function wx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _m(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function bi(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 c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const u=c;n[r][u]=bi(i[u],a[u])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function Rm(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:bi(t.components[n].defaultProps,o)}function Cx({props:e,name:t,defaultTheme:n,themeId:o}){let r=Tl(n);return r=r[o]||r,Rm({theme:r,name:t,props:e})}const nn=typeof window<"u"?T.useLayoutEffect:T.useEffect;function Sx(e,t,n,o,r){const[i,a]=T.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return nn(()=>{if(!n)return;const c=n(e),u=()=>{a(c.matches)};return u(),c.addEventListener("change",u),()=>{c.removeEventListener("change",u)}},[e,n]),i}const xx={...T},Tm=xx.useSyncExternalStore;function _x(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]),[c,u]=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 Tm(u,c,a)}function Rx(e={}){const{themeId:t}=e;return function(o,r={}){let i=gm();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:u=a?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:f=!1}=Rm({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
|
+
`));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
|
+
`));const w=(Tm!==void 0?_x:Sx)(p,c,u,d,f);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:p,match:w}),w}}const Em=Rx();function Tx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Fu(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}].`),Tx(e,t,n)}function Ex(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 rr(e){if(e.type)return e;if(e.charAt(0)==="#")return rr(Ex(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
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:wo(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.`:wo(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const Px=e=>{const t=rr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},ni=(e,t)=>{try{return Px(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function El(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 Pm(e){e=rr(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(d,f=(d+n/30)%12)=>r-i*Math.max(Math.min(f-3,9-f,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),El({type:c,values:u})}function Jc(e){e=rr(e);let t=e.type==="hsl"||e.type==="hsla"?rr(Pm(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 cf(e,t){const n=Jc(e),o=Jc(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function it(e,t){return e=rr(e),t=Fu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,El(e)}function Ca(e,t,n){try{return it(e,t)}catch{return e}}function wi(e,t){if(e=rr(e),t=Fu(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 El(e)}function Pt(e,t,n){try{return wi(e,t)}catch{return e}}function Ci(e,t){if(e=rr(e),t=Fu(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 El(e)}function kt(e,t,n){try{return Ci(e,t)}catch{return e}}function kx(e,t=.15){return Jc(e)>.5?wi(e,t):Ci(e,t)}function Sa(e,t,n){try{return kx(e,t)}catch{return e}}function ar(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Dx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function km(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let c;const u=i.type;return typeof u=="function"&&!Dx(u)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Hi=ar(s.element,km);Hi.isRequired=ar(s.element.isRequired,km);function Ox(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Mx(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let c;return typeof i=="function"&&!Ox(i)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Pl=ar(s.elementType,Mx),Ix="exact-prop: ";function Dm(e){return process.env.NODE_ENV==="production"?e:{...e,[Ix]: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 Ho(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 Wt=s.oneOfType([s.func,s.object]);function uf(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function Om(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 ai(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function gn(e){return e&&e.ownerDocument||document}function zo(e){return gn(e).defaultView||window}function df(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let hf=0;function Nx(e){const[t,n]=T.useState(e),o=e||t;return T.useEffect(()=>{t==null&&(hf+=1,n(`mui-${hf}`))},[t]),o}const Ax={...T},ff=Ax.useId;function lr(e){if(ff!==void 0){const t=ff();return e??t}return Nx(e)}function Fx(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 Co({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=T.useRef(e!==void 0),[i,a]=T.useState(t),c=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
|
+
`))},[o,n,e]);const{current:d}=T.useRef(t);T.useEffect(()=>{!r&&!Object.is(d,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
|
+
`))},[JSON.stringify(t)])}const u=T.useCallback(d=>{r||a(d)},[]);return[c,u]}function Te(e){const t=T.useRef(e);return nn(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function at(...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,c=a(o);return typeof c=="function"?c:()=>{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 pf={};function Mm(e,t){const n=T.useRef(pf);return n.current===pf&&(n.current=e(t)),n}const Lx=[];function $x(e){T.useEffect(e,Lx)}class Lu{static create(){return new Lu}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 Im(){const e=Mm(Lu.create).current;return $x(e.disposeEffect),e}function mf(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
|
+
`))}return!1}function Nm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const jx={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Vx(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 Am(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=Vx(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Fm(e,t,...n){return e[t]===void 0?null:Am(e,t,...n)}function eu(){return null}Fm.isRequired=Am;eu.isRequired=eu;const Lm=process.env.NODE_ENV==="production"?eu:Fm;function Ie(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",c=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(a+=" "+n[d]))}o[r]=a}return o}function Wx(e){return typeof e=="string"}function $m(e,t,n){return e===void 0||Wx(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function jm(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 gf(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 Vm(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},g={...n,...r,...o};return w.length>0&&(g.className=w),Object.keys(b).length>0&&(g.style=b),{props:g,internalRef:void 0}}const a=jm({...r,...o}),c=gf(o),u=gf(r),d=t(a),f=Se(d?.className,n?.className,i,r?.className,o?.className),p={...d?.style,...n?.style,...r?.style,...o?.style},y={...d,...n,...u,...c};return f.length>0&&(y.className=f),Object.keys(p).length>0&&(y.style=p),{props:y,internalRef:d.ref}}function kl(e,t,n){return typeof e=="function"?e(t,n):e}function ct(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:kl(n,o),{props:c,internalRef:u}=Vm({...i,externalSlotProps:a}),d=at(u,a?.ref,e.additionalProps?.ref);return $m(t,{...c,ref:d},o)}function zi(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Hx=T.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const so=()=>T.useContext(Hx)??!1,zx=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Bx(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?bi(r.defaultProps,o):!r.styleOverrides&&!r.variants?bi(r,o):o}function Yx({props:e,name:t}){const n=T.useContext(zx);return Bx({props:e,name:t,theme:{components:n}})}const yf={theme:void 0};function Ux(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(yf.theme=r.theme,i=Sm(e(yf)),t=i,n=r.theme),i}}function qx(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 vf=(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])})},Gx=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([c,u])=>{(!n||n&&!n([...i,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?o(u,[...i,c],Array.isArray(u)?[...a,c]:a):t([...i,c],u,a))})}o(e)},Kx=(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 Oc(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return Gx(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!o||!o(c,u))){const f=`--${n?`${n}-`:""}${c.join("-")}`,p=Kx(c,u);Object.assign(r,{[f]:p}),vf(i,c,`var(${f})`,d),vf(a,c,`var(${f}, ${p})`,d)}},c=>c[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function Xx(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:i={},components:a,defaultColorScheme:c="light",...u}=e,{vars:d,css:f,varsWithDefaults:p}=Oc(u,t);let y=p;const w={},{[c]:b,...g}=i;if(Object.entries(g||{}).forEach(([_,x])=>{const{vars:C,css:O,varsWithDefaults:N}=Oc(x,t);y=mn(y,N),w[_]={css:O,vars:C}}),b){const{css:_,vars:x,varsWithDefaults:C}=Oc(b,t);y=mn(y,C),w[c]={css:_,vars:x}}function v(_,x){let C=r;if(r==="class"&&(C=".%s"),r==="data"&&(C="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(C=`[${r}="%s"]`),_){if(C==="media")return e.defaultColorScheme===_?":root":{[`@media (prefers-color-scheme: ${i[_]?.palette?.mode||_})`]:{":root":x}};if(C)return e.defaultColorScheme===_?`:root, ${C.replace("%s",String(_))}`:C.replace("%s",String(_))}return":root"}return{vars:y,generateThemeVars:()=>{let _={...d};return Object.entries(w).forEach(([,{vars:x}])=>{_=mn(_,x)}),_},generateStyleSheets:()=>{const _=[],x=e.defaultColorScheme||"light";function C(A,B){Object.keys(B).length&&_.push(typeof A=="string"?{[A]:{...B}}:A)}C(n(void 0,{...f}),f);const{[x]:O,...N}=w;if(O){const{css:A}=O,B=i[x]?.palette?.mode,R=!o&&B?{colorScheme:B,...A}:{...A};C(n(x,{...R}),R)}return Object.entries(N).forEach(([A,{css:B}])=>{const R=i[A]?.palette?.mode,$=!o&&R?{colorScheme:R,...B}:{...B};C(n(A,{...$}),$)}),_}}}function Zx(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 Wm(){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:mi.white,default:mi.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 Qx=Wm();function Hm(){return{text:{primary:mi.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:mi.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 bf=Hm();function wf(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=Ci(e.main,r):t==="dark"&&(e.dark=wi(e.main,i)))}function Jx(e="light"){return e==="dark"?{main:Ur[200],light:Ur[50],dark:Ur[400]}:{main:Ur[700],light:Ur[400],dark:Ur[800]}}function e_(e="light"){return e==="dark"?{main:Yr[200],light:Yr[50],dark:Yr[400]}:{main:Yr[500],light:Yr[300],dark:Yr[700]}}function t_(e="light"){return e==="dark"?{main:Br[500],light:Br[300],dark:Br[700]}:{main:Br[700],light:Br[400],dark:Br[800]}}function n_(e="light"){return e==="dark"?{main:qr[400],light:qr[300],dark:qr[700]}:{main:qr[700],light:qr[500],dark:qr[900]}}function o_(e="light"){return e==="dark"?{main:Gr[400],light:Gr[300],dark:Gr[700]}:{main:Gr[800],light:Gr[500],dark:Gr[900]}}function r_(e="light"){return e==="dark"?{main:Ws[400],light:Ws[300],dark:Ws[700]}:{main:"#ed6c02",light:Ws[500],dark:Ws[900]}}function $u(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||Jx(t),a=e.secondary||e_(t),c=e.error||t_(t),u=e.info||n_(t),d=e.success||o_(t),f=e.warning||r_(t);function p(g){const v=cf(g,bf.text.primary)>=n?bf.text.primary:Qx.text.primary;if(process.env.NODE_ENV!=="production"){const E=cf(g,v);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${v} on ${g}`,"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(`
|
|
98
|
+
`))}return v}const y=({color:g,name:v,mainShade:E=500,lightShade:k=300,darkShade:_=700})=>{if(g={...g},!g.main&&g[E]&&(g.main=g[E]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
99
|
+
The color object needs to have a \`main\` property or a \`${E}\` property.`:wo(11,v?` (${v})`:"",E));if(typeof g.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
100
|
+
\`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
|
|
97
101
|
|
|
98
102
|
Did you intend to use one of the following approaches?
|
|
99
103
|
|
|
@@ -105,18 +109,34 @@ const theme1 = createTheme({ palette: {
|
|
|
105
109
|
|
|
106
110
|
const theme2 = createTheme({ palette: {
|
|
107
111
|
primary: { main: green[500] },
|
|
108
|
-
} });`:
|
|
109
|
-
`)),Object.keys(
|
|
112
|
+
} });`:wo(12,v?` (${v})`:"",JSON.stringify(g.main)));return wf(g,"light",k,o),wf(g,"dark",_,o),g.contrastText||(g.contrastText=p(g.main)),g};let w;return t==="light"?w=Wm():t==="dark"&&(w=Hm()),process.env.NODE_ENV!=="production"&&(w||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),mn({common:{...mi},mode:t,primary:y({color:i,name:"primary"}),secondary:y({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:f,name:"warning"}),info:y({color:u,name:"info"}),success:y({color:d,name:"success"}),grey:X0,contrastThreshold:n,getContrastText:p,augmentColor:y,tonalOffset:o,...w},r)}function s_(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 i_(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function a_(e){return Math.round(e*1e5)/1e5}const Cf={textTransform:"uppercase"},Sf='"Roboto", "Helvetica", "Arial", sans-serif';function l_(e,t){const{fontFamily:n=Sf,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,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 u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=o/14,w=f||(v=>`${v/u*y}rem`),b=(v,E,k,_,x)=>({fontFamily:n,fontWeight:v,fontSize:w(E),lineHeight:k,...n===Sf?{letterSpacing:`${a_(_/E)}em`}:{},...x,...d}),g={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,Cf),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,Cf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mn({htmlFontSize:u,pxToRem:w,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c,...g},p,{clone:!1})}const c_=.2,u_=.14,d_=.12;function Lt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${c_})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${u_})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${d_})`].join(",")}const h_=["none",Lt(0,2,1,-1,0,1,1,0,0,1,3,0),Lt(0,3,1,-2,0,2,2,0,0,1,5,0),Lt(0,3,3,-2,0,3,4,0,0,1,8,0),Lt(0,2,4,-1,0,4,5,0,0,1,10,0),Lt(0,3,5,-1,0,5,8,0,0,1,14,0),Lt(0,3,5,-1,0,6,10,0,0,1,18,0),Lt(0,4,5,-2,0,7,10,1,0,2,16,1),Lt(0,5,5,-3,0,8,10,1,0,3,14,2),Lt(0,5,6,-3,0,9,12,1,0,3,16,2),Lt(0,6,6,-3,0,10,14,1,0,4,18,3),Lt(0,6,7,-4,0,11,15,1,0,4,20,3),Lt(0,7,8,-4,0,12,17,2,0,5,22,4),Lt(0,7,8,-4,0,13,19,2,0,5,24,4),Lt(0,7,9,-4,0,14,21,2,0,5,26,4),Lt(0,8,9,-5,0,15,22,2,0,6,28,5),Lt(0,8,10,-5,0,16,24,2,0,6,30,5),Lt(0,8,11,-5,0,17,26,2,0,6,32,5),Lt(0,9,11,-5,0,18,28,2,0,7,34,6),Lt(0,9,12,-6,0,19,29,2,0,7,36,6),Lt(0,10,13,-6,0,20,31,3,0,8,38,7),Lt(0,10,13,-6,0,21,33,3,0,8,40,7),Lt(0,10,14,-6,0,22,35,3,0,8,42,7),Lt(0,11,14,-7,0,23,36,3,0,9,44,8),Lt(0,11,15,-7,0,24,38,3,0,9,46,8)],f_={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)"},p_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xf(e){return`${Math.round(e)}ms`}function m_(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function g_(e){const t={...f_,...e.easing},n={...p_,...e.duration};return{getAutoHeightDuration:m_,create:(r=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0,...d}=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(c)||console.error('MUI: Argument "easing" must be a string.'),!p(u)&&!f(u)&&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(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:xf(a)} ${c} ${typeof u=="string"?u:xf(u)}`).join(",")},...e,easing:t,duration:n}}const y_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function v_(e){return go(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function zm(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,c]=r[i];!v_(c)||a.startsWith("unstable_")?delete o[a]:go(c)&&(o[a]={...c},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
110
114
|
|
|
111
115
|
const theme = ${JSON.stringify(t,null,2)};
|
|
112
116
|
|
|
113
117
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
114
118
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
115
119
|
|
|
116
|
-
export default theme;`}function
|
|
117
|
-
`))}
|
|
118
|
-
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 Gv(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const or=e=>{try{return e()}catch{}},qv=(e="mui")=>mv(e);function Ao(e,t,r,i){if(!t)return;t=t===!0?{}:t;const s=i==="dark"?"dark":"light";if(!r){e[i]=$v({...t,palette:{mode:s,...t?.palette}});return}const{palette:o,...l}=Ko({...r,palette:{mode:s,...t?.palette}});return e[i]={...t,palette:o,opacity:{...Pc(s),...t?.opacity},overlays:t?.overlays||Oc(s)},l}function Xv(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:s=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:l=Bv,colorSchemeSelector:h=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...f}=e,p=Object.keys(r)[0],m=i||(r.light&&p!=="light"?"light":p),C=qv(o),{[m]:x,light:R,dark:y,...O}=r,F={...O};let B=x;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(B=!0),!B)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:qr(21,m));const N=Ao(F,B,f,m);R&&!F.light&&Ao(F,R,void 0,"light"),y&&!F.dark&&Ao(F,y,void 0,"dark");let k={defaultColorScheme:m,...N,cssVarPrefix:o,colorSchemeSelector:h,rootSelector:d,getCssVar:C,colorSchemes:F,font:{...xv(N.typography),...N.font},spacing:Gv(f.spacing)};Object.keys(k.colorSchemes).forEach(te=>{const w=k.colorSchemes[te].palette,G=ce=>{const oe=ce.split("-"),ve=oe[1],Fe=oe[2];return C(ce,w[ve][Fe])};if(w.mode==="light"&&(H(w.common,"background","#fff"),H(w.common,"onBackground","#000")),w.mode==="dark"&&(H(w.common,"background","#000"),H(w.common,"onBackground","#fff")),Uv(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){H(w.Alert,"errorColor",Ge(w.error.light,.6)),H(w.Alert,"infoColor",Ge(w.info.light,.6)),H(w.Alert,"successColor",Ge(w.success.light,.6)),H(w.Alert,"warningColor",Ge(w.warning.light,.6)),H(w.Alert,"errorFilledBg",G("palette-error-main")),H(w.Alert,"infoFilledBg",G("palette-info-main")),H(w.Alert,"successFilledBg",G("palette-success-main")),H(w.Alert,"warningFilledBg",G("palette-warning-main")),H(w.Alert,"errorFilledColor",or(()=>w.getContrastText(w.error.main))),H(w.Alert,"infoFilledColor",or(()=>w.getContrastText(w.info.main))),H(w.Alert,"successFilledColor",or(()=>w.getContrastText(w.success.main))),H(w.Alert,"warningFilledColor",or(()=>w.getContrastText(w.warning.main))),H(w.Alert,"errorStandardBg",qe(w.error.light,.9)),H(w.Alert,"infoStandardBg",qe(w.info.light,.9)),H(w.Alert,"successStandardBg",qe(w.success.light,.9)),H(w.Alert,"warningStandardBg",qe(w.warning.light,.9)),H(w.Alert,"errorIconColor",G("palette-error-main")),H(w.Alert,"infoIconColor",G("palette-info-main")),H(w.Alert,"successIconColor",G("palette-success-main")),H(w.Alert,"warningIconColor",G("palette-warning-main")),H(w.AppBar,"defaultBg",G("palette-grey-100")),H(w.Avatar,"defaultBg",G("palette-grey-400")),H(w.Button,"inheritContainedBg",G("palette-grey-300")),H(w.Button,"inheritContainedHoverBg",G("palette-grey-A100")),H(w.Chip,"defaultBorder",G("palette-grey-400")),H(w.Chip,"defaultAvatarColor",G("palette-grey-700")),H(w.Chip,"defaultIconColor",G("palette-grey-700")),H(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(w.LinearProgress,"primaryBg",qe(w.primary.main,.62)),H(w.LinearProgress,"secondaryBg",qe(w.secondary.main,.62)),H(w.LinearProgress,"errorBg",qe(w.error.main,.62)),H(w.LinearProgress,"infoBg",qe(w.info.main,.62)),H(w.LinearProgress,"successBg",qe(w.success.main,.62)),H(w.LinearProgress,"warningBg",qe(w.warning.main,.62)),H(w.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.11)`),H(w.Slider,"primaryTrack",qe(w.primary.main,.62)),H(w.Slider,"secondaryTrack",qe(w.secondary.main,.62)),H(w.Slider,"errorTrack",qe(w.error.main,.62)),H(w.Slider,"infoTrack",qe(w.info.main,.62)),H(w.Slider,"successTrack",qe(w.success.main,.62)),H(w.Slider,"warningTrack",qe(w.warning.main,.62));const ce=rn(w.background.default,.8);H(w.SnackbarContent,"bg",ce),H(w.SnackbarContent,"color",or(()=>w.getContrastText(ce))),H(w.SpeedDialAction,"fabHoverBg",rn(w.background.paper,.15)),H(w.StepConnector,"border",G("palette-grey-400")),H(w.StepContent,"border",G("palette-grey-400")),H(w.Switch,"defaultColor",G("palette-common-white")),H(w.Switch,"defaultDisabledColor",G("palette-grey-100")),H(w.Switch,"primaryDisabledColor",qe(w.primary.main,.62)),H(w.Switch,"secondaryDisabledColor",qe(w.secondary.main,.62)),H(w.Switch,"errorDisabledColor",qe(w.error.main,.62)),H(w.Switch,"infoDisabledColor",qe(w.info.main,.62)),H(w.Switch,"successDisabledColor",qe(w.success.main,.62)),H(w.Switch,"warningDisabledColor",qe(w.warning.main,.62)),H(w.TableCell,"border",qe(tn(w.divider,1),.88)),H(w.Tooltip,"bg",tn(w.grey[700],.92))}if(w.mode==="dark"){H(w.Alert,"errorColor",qe(w.error.light,.6)),H(w.Alert,"infoColor",qe(w.info.light,.6)),H(w.Alert,"successColor",qe(w.success.light,.6)),H(w.Alert,"warningColor",qe(w.warning.light,.6)),H(w.Alert,"errorFilledBg",G("palette-error-dark")),H(w.Alert,"infoFilledBg",G("palette-info-dark")),H(w.Alert,"successFilledBg",G("palette-success-dark")),H(w.Alert,"warningFilledBg",G("palette-warning-dark")),H(w.Alert,"errorFilledColor",or(()=>w.getContrastText(w.error.dark))),H(w.Alert,"infoFilledColor",or(()=>w.getContrastText(w.info.dark))),H(w.Alert,"successFilledColor",or(()=>w.getContrastText(w.success.dark))),H(w.Alert,"warningFilledColor",or(()=>w.getContrastText(w.warning.dark))),H(w.Alert,"errorStandardBg",Ge(w.error.light,.9)),H(w.Alert,"infoStandardBg",Ge(w.info.light,.9)),H(w.Alert,"successStandardBg",Ge(w.success.light,.9)),H(w.Alert,"warningStandardBg",Ge(w.warning.light,.9)),H(w.Alert,"errorIconColor",G("palette-error-main")),H(w.Alert,"infoIconColor",G("palette-info-main")),H(w.Alert,"successIconColor",G("palette-success-main")),H(w.Alert,"warningIconColor",G("palette-warning-main")),H(w.AppBar,"defaultBg",G("palette-grey-900")),H(w.AppBar,"darkBg",G("palette-background-paper")),H(w.AppBar,"darkColor",G("palette-text-primary")),H(w.Avatar,"defaultBg",G("palette-grey-600")),H(w.Button,"inheritContainedBg",G("palette-grey-800")),H(w.Button,"inheritContainedHoverBg",G("palette-grey-700")),H(w.Chip,"defaultBorder",G("palette-grey-700")),H(w.Chip,"defaultAvatarColor",G("palette-grey-300")),H(w.Chip,"defaultIconColor",G("palette-grey-300")),H(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(w.LinearProgress,"primaryBg",Ge(w.primary.main,.5)),H(w.LinearProgress,"secondaryBg",Ge(w.secondary.main,.5)),H(w.LinearProgress,"errorBg",Ge(w.error.main,.5)),H(w.LinearProgress,"infoBg",Ge(w.info.main,.5)),H(w.LinearProgress,"successBg",Ge(w.success.main,.5)),H(w.LinearProgress,"warningBg",Ge(w.warning.main,.5)),H(w.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.13)`),H(w.Slider,"primaryTrack",Ge(w.primary.main,.5)),H(w.Slider,"secondaryTrack",Ge(w.secondary.main,.5)),H(w.Slider,"errorTrack",Ge(w.error.main,.5)),H(w.Slider,"infoTrack",Ge(w.info.main,.5)),H(w.Slider,"successTrack",Ge(w.success.main,.5)),H(w.Slider,"warningTrack",Ge(w.warning.main,.5));const ce=rn(w.background.default,.98);H(w.SnackbarContent,"bg",ce),H(w.SnackbarContent,"color",or(()=>w.getContrastText(ce))),H(w.SpeedDialAction,"fabHoverBg",rn(w.background.paper,.15)),H(w.StepConnector,"border",G("palette-grey-600")),H(w.StepContent,"border",G("palette-grey-600")),H(w.Switch,"defaultColor",G("palette-grey-300")),H(w.Switch,"defaultDisabledColor",G("palette-grey-600")),H(w.Switch,"primaryDisabledColor",Ge(w.primary.main,.55)),H(w.Switch,"secondaryDisabledColor",Ge(w.secondary.main,.55)),H(w.Switch,"errorDisabledColor",Ge(w.error.main,.55)),H(w.Switch,"infoDisabledColor",Ge(w.info.main,.55)),H(w.Switch,"successDisabledColor",Ge(w.success.main,.55)),H(w.Switch,"warningDisabledColor",Ge(w.warning.main,.55)),H(w.TableCell,"border",Ge(tn(w.divider,1),.68)),H(w.Tooltip,"bg",tn(w.grey[700],.92))}Er(w.background,"default"),Er(w.background,"paper"),Er(w.common,"background"),Er(w.common,"onBackground"),Er(w,"divider"),Object.keys(w).forEach(ce=>{const oe=w[ce];oe&&typeof oe=="object"&&(oe.main&&H(w[ce],"mainChannel",cs(us(oe.main))),oe.light&&H(w[ce],"lightChannel",cs(us(oe.light))),oe.dark&&H(w[ce],"darkChannel",cs(us(oe.dark))),oe.contrastText&&H(w[ce],"contrastTextChannel",cs(us(oe.contrastText))),ce==="text"&&(Er(w[ce],"primary"),Er(w[ce],"secondary")),ce==="action"&&(oe.active&&Er(w[ce],"active"),oe.selected&&Er(w[ce],"selected")))})}),k=t.reduce((te,w)=>Wt(te,w),k);const v={prefix:o,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:jv(k)},{vars:L,generateThemeVars:z,generateStyleSheets:q}=vv(k,v);return k.vars=L,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([te,w])=>{k[te]=w}),k.generateThemeVars=z,k.generateStyleSheets=q,k.generateSpacing=function(){return gc(f.spacing,wa(this))},k.getColorSchemeSelector=wv(h),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=l,k.unstable_sxConfig={...Ds,...f?.unstable_sxConfig},k.unstable_sx=function(w){return ci({sx:w,theme:this})},k.toRuntimeSource=Mc,k}function xh(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Ea({...r===!0?{}:r.palette,mode:t})})}function Ac(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:s=r?void 0:{light:!0},defaultColorScheme:o=r?.mode,...l}=e,h=o||"light",d=s?.[h],f={...s,...r?{[h]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Ko(e,...t);let p=r;"palette"in e||f[h]&&(f[h]!==!0?p=f[h].palette:h==="dark"&&(p={mode:"dark"}));const m=Ko({...e,palette:p},...t);return m.defaultColorScheme=h,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},xh(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},xh(m,"light",f.light)),m}return!r&&!("light"in f)&&h==="light"&&(f.light=!0),Xv({...l,colorSchemes:f,defaultColorScheme:h,...typeof i!="boolean"&&i},...t)}const Nc=Ac();function Kv(){const e=yc(Nc);return process.env.NODE_ENV!=="production"&&ae.useDebugValue(e),e[ua]||e}function Zv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Jv=e=>Zv(e)&&e!=="classes",vt=zy({themeId:ua,defaultTheme:Nc,rootShouldForwardProp:Jv}),ui=pv;process.env.NODE_ENV!=="production"&&(D.node,D.object.isRequired);function di(e){return fv(e)}function Qv(e){return Zr("MuiSvgIcon",e)}Jr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ew=e=>{const{color:t,fontSize:r,classes:i}=e,s={root:["root",t!=="inherit"&&`color${kt(t)}`,`fontSize${kt(r)}`]};return ji(s,Qv,i)},tw=vt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${kt(r.color)}`],t[`fontSize${kt(r.fontSize)}`]]}})(ui(({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}}]}))),bs=ae.forwardRef(function(t,r){const i=di({props:t,name:"MuiSvgIcon"}),{children:s,className:o,color:l="inherit",component:h="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:m,viewBox:C="0 0 24 24",...x}=i,R=ae.isValidElement(s)&&s.type==="svg",y={...i,color:l,component:h,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:C,hasSvgAsChild:R},O={};p||(O.viewBox=C);const F=ew(y);return le.jsxs(tw,{as:h,className:bt(F.root,o),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...O,...x,...R&&s.props,ownerState:y,children:[R?s.props.children:s,m?le.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(bs.propTypes={children:D.node,classes:D.object,className:D.string,color:D.oneOfType([D.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),D.string]),component:D.elementType,fontSize:D.oneOfType([D.oneOf(["inherit","large","medium","small"]),D.string]),htmlColor:D.string,inheritViewBox:D.bool,shapeRendering:D.string,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),titleAccess:D.string,viewBox:D.string});bs&&(bs.muiName="SvgIcon");function Ms(e,t){function r(i,s){return le.jsx(bs,{"data-testid":`${t}Icon`,ref:s,...i,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=bs.muiName,ae.memo(ae.forwardRef(r))}function rw(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Jo(e,t){return Jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jo(e,t)}function iw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jo(e,t)}const Th=nt.createContext(null);function sw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ka(e,t){var r=function(o){return t&&nt.isValidElement(o)?t(o):o},i=Object.create(null);return e&&nt.Children.map(e,function(s){return s}).forEach(function(s){i[s.key]=r(s)}),i}function nw(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var i=Object.create(null),s=[];for(var o in e)o in t?s.length&&(i[o]=s,s=[]):s.push(o);var l,h={};for(var d in t){if(i[d])for(l=0;l<i[d].length;l++){var f=i[d][l];h[i[d][l]]=r(f)}h[d]=r(d)}for(l=0;l<s.length;l++)h[s[l]]=r(s[l]);return h}function oi(e,t,r){return r[t]!=null?r[t]:e.props[t]}function ow(e,t){return ka(e.children,function(r){return nt.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:oi(r,"appear",e),enter:oi(r,"enter",e),exit:oi(r,"exit",e)})})}function aw(e,t,r){var i=ka(e.children),s=nw(t,i);return Object.keys(s).forEach(function(o){var l=s[o];if(nt.isValidElement(l)){var h=o in t,d=o in i,f=t[o],p=nt.isValidElement(f)&&!f.props.in;d&&(!h||p)?s[o]=nt.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:oi(l,"exit",e),enter:oi(l,"enter",e)}):!d&&h&&!p?s[o]=nt.cloneElement(l,{in:!1}):d&&h&&nt.isValidElement(f)&&(s[o]=nt.cloneElement(l,{onExited:r.bind(null,l),in:f.props.in,exit:oi(l,"exit",e),enter:oi(l,"enter",e)}))}}),s}var lw=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},hw={component:"div",childFactory:function(t){return t}},xa=function(e){iw(t,e);function t(i,s){var o;o=e.call(this,i,s)||this;var l=o.handleExited.bind(sw(o));return o.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},o}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,o){var l=o.children,h=o.handleExited,d=o.firstRender;return{children:d?ow(s,h):aw(s,l,h),firstRender:!1}},r.handleExited=function(s,o){var l=ka(this.props.children);s.key in l||(s.props.onExited&&s.props.onExited(o),this.mounted&&this.setState(function(h){var d=gn({},h.children);return delete d[s.key],{children:d}}))},r.render=function(){var s=this.props,o=s.component,l=s.childFactory,h=rw(s,["component","childFactory"]),d=this.state.contextValue,f=lw(this.state.children).map(l);return delete h.appear,delete h.enter,delete h.exit,o===null?nt.createElement(Th.Provider,{value:d},f):nt.createElement(Th.Provider,{value:d},nt.createElement(o,h,f))},t}(nt.Component);xa.propTypes=process.env.NODE_ENV!=="production"?{component:D.any,children:D.node,appear:D.bool,enter:D.bool,exit:D.bool,childFactory:D.func}:{};xa.defaultProps=hw;function cw(e){return Zr("MuiPaper",e)}Jr("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 uw=e=>{const{square:t,elevation:r,variant:i,classes:s}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return ji(o,cw,s)},dw=vt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(ui(({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)"}}]}))),Lc=ae.forwardRef(function(t,r){const i=di({props:t,name:"MuiPaper"}),s=Kv(),{className:o,component:l="div",elevation:h=1,square:d=!1,variant:f="elevation",...p}=i,m={...i,component:l,elevation:h,square:d,variant:f},C=uw(m);return process.env.NODE_ENV!=="production"&&s.shadows[h]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${h}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${h}]\` is defined.`].join(`
|
|
119
|
-
|
|
120
|
+
export default theme;`}function tu(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:c={},shape:u,...d}=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.":wo(20));const f=$u(i),p=Au(e);let y=mn(p,{mixins:i_(p.breakpoints,o),palette:f,shadows:h_.slice(),typography:l_(f,c),transitions:g_(a),zIndex:{...y_}});if(y=mn(y,d),y=t.reduce((w,b)=>mn(w,b),y),process.env.NODE_ENV!=="production"){const w=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(g,v)=>{let E;for(E in g){const k=g[E];if(w.includes(E)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const _=Oe("",E);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(g,null,2),"",`Instead, you need to use the '&.${_}' syntax:`,JSON.stringify({root:{[`&.${_}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
121
|
+
`))}g[E]={}}}};Object.keys(y.components).forEach(g=>{const v=y.components[g].styleOverrides;v&&g.startsWith("Mui")&&b(v,g)})}return y.unstable_sxConfig={...Wi,...d?.unstable_sxConfig},y.unstable_sx=function(b){return Pr({sx:b,theme:this})},y.toRuntimeSource=zm,y}function nu(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const b_=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=nu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Bm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ym(e){return e==="dark"?b_:[]}function w_(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=$u(t);return{palette:i,opacity:{...Bm(i.mode),...n},overlays:o||Ym(i.mode),...r}}function C_(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 S_=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],x_=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 S_(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),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 __(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function de(e,t,n){!e[t]&&n&&(e[t]=n)}function oi(e){return!e||!e.startsWith("hsl")?e:Pm(e)}function Io(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ni(oi(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 R_(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const co=e=>{try{return e()}catch{}},T_=(e="mui")=>qx(e);function Mc(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=w_({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=tu({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...Bm(r),...t?.opacity},overlays:t?.overlays||Ym(r)},a}function E_(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=C_,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),y=T_(i),{[p]:w,light:b,dark:g,...v}=n,E={...v};let k=w;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:wo(21,p));const _=Mc(E,k,d,p);b&&!E.light&&Mc(E,b,void 0,"light"),g&&!E.dark&&Mc(E,g,void 0,"dark");let x={defaultColorScheme:p,..._,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:y,colorSchemes:E,font:{...s_(_.typography),..._.font},spacing:R_(d.spacing)};Object.keys(x.colorSchemes).forEach(B=>{const R=x.colorSchemes[B].palette,$=K=>{const X=K.split("-"),q=X[1],Y=X[2];return y(K,R[q][Y])};if(R.mode==="light"&&(de(R.common,"background","#fff"),de(R.common,"onBackground","#000")),R.mode==="dark"&&(de(R.common,"background","#000"),de(R.common,"onBackground","#fff")),__(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){de(R.Alert,"errorColor",Pt(R.error.light,.6)),de(R.Alert,"infoColor",Pt(R.info.light,.6)),de(R.Alert,"successColor",Pt(R.success.light,.6)),de(R.Alert,"warningColor",Pt(R.warning.light,.6)),de(R.Alert,"errorFilledBg",$("palette-error-main")),de(R.Alert,"infoFilledBg",$("palette-info-main")),de(R.Alert,"successFilledBg",$("palette-success-main")),de(R.Alert,"warningFilledBg",$("palette-warning-main")),de(R.Alert,"errorFilledColor",co(()=>R.getContrastText(R.error.main))),de(R.Alert,"infoFilledColor",co(()=>R.getContrastText(R.info.main))),de(R.Alert,"successFilledColor",co(()=>R.getContrastText(R.success.main))),de(R.Alert,"warningFilledColor",co(()=>R.getContrastText(R.warning.main))),de(R.Alert,"errorStandardBg",kt(R.error.light,.9)),de(R.Alert,"infoStandardBg",kt(R.info.light,.9)),de(R.Alert,"successStandardBg",kt(R.success.light,.9)),de(R.Alert,"warningStandardBg",kt(R.warning.light,.9)),de(R.Alert,"errorIconColor",$("palette-error-main")),de(R.Alert,"infoIconColor",$("palette-info-main")),de(R.Alert,"successIconColor",$("palette-success-main")),de(R.Alert,"warningIconColor",$("palette-warning-main")),de(R.AppBar,"defaultBg",$("palette-grey-100")),de(R.Avatar,"defaultBg",$("palette-grey-400")),de(R.Button,"inheritContainedBg",$("palette-grey-300")),de(R.Button,"inheritContainedHoverBg",$("palette-grey-A100")),de(R.Chip,"defaultBorder",$("palette-grey-400")),de(R.Chip,"defaultAvatarColor",$("palette-grey-700")),de(R.Chip,"defaultIconColor",$("palette-grey-700")),de(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),de(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),de(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),de(R.LinearProgress,"primaryBg",kt(R.primary.main,.62)),de(R.LinearProgress,"secondaryBg",kt(R.secondary.main,.62)),de(R.LinearProgress,"errorBg",kt(R.error.main,.62)),de(R.LinearProgress,"infoBg",kt(R.info.main,.62)),de(R.LinearProgress,"successBg",kt(R.success.main,.62)),de(R.LinearProgress,"warningBg",kt(R.warning.main,.62)),de(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),de(R.Slider,"primaryTrack",kt(R.primary.main,.62)),de(R.Slider,"secondaryTrack",kt(R.secondary.main,.62)),de(R.Slider,"errorTrack",kt(R.error.main,.62)),de(R.Slider,"infoTrack",kt(R.info.main,.62)),de(R.Slider,"successTrack",kt(R.success.main,.62)),de(R.Slider,"warningTrack",kt(R.warning.main,.62));const K=Sa(R.background.default,.8);de(R.SnackbarContent,"bg",K),de(R.SnackbarContent,"color",co(()=>R.getContrastText(K))),de(R.SpeedDialAction,"fabHoverBg",Sa(R.background.paper,.15)),de(R.StepConnector,"border",$("palette-grey-400")),de(R.StepContent,"border",$("palette-grey-400")),de(R.Switch,"defaultColor",$("palette-common-white")),de(R.Switch,"defaultDisabledColor",$("palette-grey-100")),de(R.Switch,"primaryDisabledColor",kt(R.primary.main,.62)),de(R.Switch,"secondaryDisabledColor",kt(R.secondary.main,.62)),de(R.Switch,"errorDisabledColor",kt(R.error.main,.62)),de(R.Switch,"infoDisabledColor",kt(R.info.main,.62)),de(R.Switch,"successDisabledColor",kt(R.success.main,.62)),de(R.Switch,"warningDisabledColor",kt(R.warning.main,.62)),de(R.TableCell,"border",kt(Ca(R.divider,1),.88)),de(R.Tooltip,"bg",Ca(R.grey[700],.92))}if(R.mode==="dark"){de(R.Alert,"errorColor",kt(R.error.light,.6)),de(R.Alert,"infoColor",kt(R.info.light,.6)),de(R.Alert,"successColor",kt(R.success.light,.6)),de(R.Alert,"warningColor",kt(R.warning.light,.6)),de(R.Alert,"errorFilledBg",$("palette-error-dark")),de(R.Alert,"infoFilledBg",$("palette-info-dark")),de(R.Alert,"successFilledBg",$("palette-success-dark")),de(R.Alert,"warningFilledBg",$("palette-warning-dark")),de(R.Alert,"errorFilledColor",co(()=>R.getContrastText(R.error.dark))),de(R.Alert,"infoFilledColor",co(()=>R.getContrastText(R.info.dark))),de(R.Alert,"successFilledColor",co(()=>R.getContrastText(R.success.dark))),de(R.Alert,"warningFilledColor",co(()=>R.getContrastText(R.warning.dark))),de(R.Alert,"errorStandardBg",Pt(R.error.light,.9)),de(R.Alert,"infoStandardBg",Pt(R.info.light,.9)),de(R.Alert,"successStandardBg",Pt(R.success.light,.9)),de(R.Alert,"warningStandardBg",Pt(R.warning.light,.9)),de(R.Alert,"errorIconColor",$("palette-error-main")),de(R.Alert,"infoIconColor",$("palette-info-main")),de(R.Alert,"successIconColor",$("palette-success-main")),de(R.Alert,"warningIconColor",$("palette-warning-main")),de(R.AppBar,"defaultBg",$("palette-grey-900")),de(R.AppBar,"darkBg",$("palette-background-paper")),de(R.AppBar,"darkColor",$("palette-text-primary")),de(R.Avatar,"defaultBg",$("palette-grey-600")),de(R.Button,"inheritContainedBg",$("palette-grey-800")),de(R.Button,"inheritContainedHoverBg",$("palette-grey-700")),de(R.Chip,"defaultBorder",$("palette-grey-700")),de(R.Chip,"defaultAvatarColor",$("palette-grey-300")),de(R.Chip,"defaultIconColor",$("palette-grey-300")),de(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),de(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),de(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),de(R.LinearProgress,"primaryBg",Pt(R.primary.main,.5)),de(R.LinearProgress,"secondaryBg",Pt(R.secondary.main,.5)),de(R.LinearProgress,"errorBg",Pt(R.error.main,.5)),de(R.LinearProgress,"infoBg",Pt(R.info.main,.5)),de(R.LinearProgress,"successBg",Pt(R.success.main,.5)),de(R.LinearProgress,"warningBg",Pt(R.warning.main,.5)),de(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),de(R.Slider,"primaryTrack",Pt(R.primary.main,.5)),de(R.Slider,"secondaryTrack",Pt(R.secondary.main,.5)),de(R.Slider,"errorTrack",Pt(R.error.main,.5)),de(R.Slider,"infoTrack",Pt(R.info.main,.5)),de(R.Slider,"successTrack",Pt(R.success.main,.5)),de(R.Slider,"warningTrack",Pt(R.warning.main,.5));const K=Sa(R.background.default,.98);de(R.SnackbarContent,"bg",K),de(R.SnackbarContent,"color",co(()=>R.getContrastText(K))),de(R.SpeedDialAction,"fabHoverBg",Sa(R.background.paper,.15)),de(R.StepConnector,"border",$("palette-grey-600")),de(R.StepContent,"border",$("palette-grey-600")),de(R.Switch,"defaultColor",$("palette-grey-300")),de(R.Switch,"defaultDisabledColor",$("palette-grey-600")),de(R.Switch,"primaryDisabledColor",Pt(R.primary.main,.55)),de(R.Switch,"secondaryDisabledColor",Pt(R.secondary.main,.55)),de(R.Switch,"errorDisabledColor",Pt(R.error.main,.55)),de(R.Switch,"infoDisabledColor",Pt(R.info.main,.55)),de(R.Switch,"successDisabledColor",Pt(R.success.main,.55)),de(R.Switch,"warningDisabledColor",Pt(R.warning.main,.55)),de(R.TableCell,"border",Pt(Ca(R.divider,1),.68)),de(R.Tooltip,"bg",Ca(R.grey[700],.92))}Io(R.background,"default"),Io(R.background,"paper"),Io(R.common,"background"),Io(R.common,"onBackground"),Io(R,"divider"),Object.keys(R).forEach(K=>{const X=R[K];X&&typeof X=="object"&&(X.main&&de(R[K],"mainChannel",ni(oi(X.main))),X.light&&de(R[K],"lightChannel",ni(oi(X.light))),X.dark&&de(R[K],"darkChannel",ni(oi(X.dark))),X.contrastText&&de(R[K],"contrastTextChannel",ni(oi(X.contrastText))),K==="text"&&(Io(R[K],"primary"),Io(R[K],"secondary")),K==="action"&&(X.active&&Io(R[K],"active"),X.selected&&Io(R[K],"selected")))})}),x=t.reduce((B,R)=>mn(B,R),x);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:x_(x)},{vars:O,generateThemeVars:N,generateStyleSheets:A}=Xx(x,C);return x.vars=O,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([B,R])=>{x[B]=R}),x.generateThemeVars=N,x.generateStyleSheets=A,x.generateSpacing=function(){return mm(d.spacing,Iu(this))},x.getColorSchemeSelector=Zx(c),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=a,x.unstable_sxConfig={...Wi,...d?.unstable_sxConfig},x.unstable_sx=function(R){return Pr({sx:R,theme:this})},x.toRuntimeSource=zm,x}function _f(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:$u({...n===!0?{}:n.palette,mode:t})})}function Um(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,c=i||"light",u=r?.[c],d={...r,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return tu(e,...t);let f=n;"palette"in e||d[c]&&(d[c]!==!0?f=d[c].palette:c==="dark"&&(f={mode:"dark"}));const p=tu({...e,palette:f},...t);return p.defaultColorScheme=c,p.colorSchemes=d,p.palette.mode==="light"&&(p.colorSchemes.light={...d.light!==!0&&d.light,palette:p.palette},_f(p,"dark",d.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:p.palette},_f(p,"light",d.light)),p}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),E_({...a,colorSchemes:d,defaultColorScheme:c,...typeof o!="boolean"&&o},...t)}const Dl=Um();function Ts(){const e=Tl(Dl);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[Fi]||e}function Mt({props:e,name:t}){return Cx({props:e,name:t,defaultTheme:Dl,themeId:Fi})}function qm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dn=e=>qm(e)&&e!=="classes",le=gx({themeId:Fi,defaultTheme:Dl,rootShouldForwardProp:Dn});function Gm(e){return P.jsx(ym,{...e,defaultTheme:Dl,themeId:Fi})}process.env.NODE_ENV!=="production"&&(Gm.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function P_(e){return function(n){return P.jsx(Gm,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function k_(){return vm}const dt=Ux;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ke(e){return Yx(e)}function D_(e){return Oe("MuiSvgIcon",e)}De("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const O_=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${be(t)}`,`fontSize${be(n)}`]};return Ie(r,D_,o)},M_=le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${be(n.color)}`],t[`fontSize${be(n.fontSize)}`]]}})(dt(({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}}]}))),Si=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:y="0 0 24 24",...w}=o,b=T.isValidElement(r)&&r.type==="svg",g={...o,color:a,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const E=O_(g);return P.jsxs(M_,{as:c,className:Se(E.root,i),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...w,...b&&r.props,ownerState:g,children:[b?r.props.children:r,p?P.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Si.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});Si&&(Si.muiName="SvgIcon");function an(e,t){function n(o,r){return P.jsx(Si,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Si.muiName,T.memo(T.forwardRef(n))}var xa={exports:{}},xt={};/**
|
|
123
|
+
* @license React
|
|
124
|
+
* react-is.production.min.js
|
|
125
|
+
*
|
|
126
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the MIT license found in the
|
|
129
|
+
* LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/var Rf;function I_(){if(Rf)return xt;Rf=1;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"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=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;b=Symbol.for("react.module.reference");function g(v){if(typeof v=="object"&&v!==null){var E=v.$$typeof;switch(E){case e:switch(v=v.type,v){case n:case r:case o:case d:case f:return v;default:switch(v=v&&v.$$typeof,v){case c:case a:case u:case y:case p:case i:return v;default:return E}}case t:return E}}}return xt.ContextConsumer=a,xt.ContextProvider=i,xt.Element=e,xt.ForwardRef=u,xt.Fragment=n,xt.Lazy=y,xt.Memo=p,xt.Portal=t,xt.Profiler=r,xt.StrictMode=o,xt.Suspense=d,xt.SuspenseList=f,xt.isAsyncMode=function(){return!1},xt.isConcurrentMode=function(){return!1},xt.isContextConsumer=function(v){return g(v)===a},xt.isContextProvider=function(v){return g(v)===i},xt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},xt.isForwardRef=function(v){return g(v)===u},xt.isFragment=function(v){return g(v)===n},xt.isLazy=function(v){return g(v)===y},xt.isMemo=function(v){return g(v)===p},xt.isPortal=function(v){return g(v)===t},xt.isProfiler=function(v){return g(v)===r},xt.isStrictMode=function(v){return g(v)===o},xt.isSuspense=function(v){return g(v)===d},xt.isSuspenseList=function(v){return g(v)===f},xt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===r||v===o||v===d||v===f||v===w||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===p||v.$$typeof===i||v.$$typeof===a||v.$$typeof===u||v.$$typeof===b||v.getModuleId!==void 0)},xt.typeOf=g,xt}var _t={};/**
|
|
131
|
+
* @license React
|
|
132
|
+
* react-is.development.js
|
|
133
|
+
*
|
|
134
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the MIT license found in the
|
|
137
|
+
* LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/var Tf;function N_(){return Tf||(Tf=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"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=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,g=!1,v=!1,E=!1,k=!1,_;_=Symbol.for("react.module.reference");function x(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===n||Q===r||k||Q===o||Q===d||Q===f||E||Q===w||b||g||v||typeof Q=="object"&&Q!==null&&(Q.$$typeof===y||Q.$$typeof===p||Q.$$typeof===i||Q.$$typeof===a||Q.$$typeof===u||Q.$$typeof===_||Q.getModuleId!==void 0))}function C(Q){if(typeof Q=="object"&&Q!==null){var fe=Q.$$typeof;switch(fe){case e:var me=Q.type;switch(me){case n:case r:case o:case d:case f:return me;default:var Ce=me&&me.$$typeof;switch(Ce){case c:case a:case u:case y:case p:case i:return Ce;default:return fe}}case t:return fe}}}var O=a,N=i,A=e,B=u,R=n,$=y,K=p,X=t,q=r,Y=o,z=d,ae=f,I=!1,D=!1;function j(Q){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(Q){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(Q){return C(Q)===a}function oe(Q){return C(Q)===i}function se(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e}function V(Q){return C(Q)===u}function J(Q){return C(Q)===n}function ee(Q){return C(Q)===y}function te(Q){return C(Q)===p}function ce(Q){return C(Q)===t}function ie(Q){return C(Q)===r}function he(Q){return C(Q)===o}function H(Q){return C(Q)===d}function re(Q){return C(Q)===f}_t.ContextConsumer=O,_t.ContextProvider=N,_t.Element=A,_t.ForwardRef=B,_t.Fragment=R,_t.Lazy=$,_t.Memo=K,_t.Portal=X,_t.Profiler=q,_t.StrictMode=Y,_t.Suspense=z,_t.SuspenseList=ae,_t.isAsyncMode=j,_t.isConcurrentMode=W,_t.isContextConsumer=ne,_t.isContextProvider=oe,_t.isElement=se,_t.isForwardRef=V,_t.isFragment=J,_t.isLazy=ee,_t.isMemo=te,_t.isPortal=ce,_t.isProfiler=ie,_t.isStrictMode=he,_t.isSuspense=H,_t.isSuspenseList=re,_t.isValidElementType=x,_t.typeOf=C}()),_t}var Ef;function A_(){return Ef||(Ef=1,process.env.NODE_ENV==="production"?xa.exports=I_():xa.exports=N_()),xa.exports}var ju=A_();function We(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 ou(e,t){return ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ou(e,t)}function Vu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ou(e,t)}function F_(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function L_(e,t){e.classList?e.classList.add(t):F_(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Pf(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function $_(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Pf(e.className,t):e.setAttribute("class",Pf(e.className&&e.className.baseVal||"",t))}const kf={disabled:!1};var j_=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,V_=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 Ka=Ze.createContext(null);var Km=function(t){return t.scrollTop},ri="unmounted",wr="exited",Cr="entering",es="entered",ru="exiting",Xn=function(e){Vu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,c=a&&!a.isMounting?o.enter:o.appear,u;return i.appearStatus=null,o.in?c?(u=wr,i.appearStatus=Cr):u=es:o.unmountOnExit||o.mountOnEnter?u=ri:u=wr,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===ri?{status:wr}: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!==Cr&&a!==es&&(i=Cr):(a===Cr||a===es)&&(i=ru)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,c;return i=a=c=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,c=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Cr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ns.findDOMNode(this);a&&Km(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wr&&this.setState({status:ri})},n.performEnter=function(r){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:r,u=this.props.nodeRef?[c]:[ns.findDOMNode(this),c],d=u[0],f=u[1],p=this.getTimeouts(),y=c?p.appear:p.enter;if(!r&&!a||kf.disabled){this.safeSetState({status:es},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:Cr},function(){i.props.onEntering(d,f),i.onTransitionEnd(y,function(){i.safeSetState({status:es},function(){i.props.onEntered(d,f)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:ns.findDOMNode(this);if(!i||kf.disabled){this.safeSetState({status:wr},function(){r.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:ru},function(){r.props.onExiting(c),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:wr},function(){r.props.onExited(c)})})})},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(c){a&&(a=!1,i.nextCallback=null,r(c))},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:ns.findDOMNode(this),c=r==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=u[0],f=u[1];this.props.addEndListener(d,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ri)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 c=We(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ze.createElement(Ka.Provider,{value:null},typeof a=="function"?a(r,c):Ze.cloneElement(Ze.Children.only(a),c))},t}(Ze.Component);Xn.contextType=Ka;Xn.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=j_;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 Kr(){}Xn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kr,onEntering:Kr,onEntered:Kr,onExit:Kr,onExiting:Kr,onExited:Kr};Xn.UNMOUNTED=ri;Xn.EXITED=wr;Xn.ENTERING=Cr;Xn.ENTERED=es;Xn.EXITING=ru;var W_=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return L_(t,o)})},Ic=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return $_(t,o)})},Wu=function(e){Vu(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(c,u){var d=o.resolveArguments(c,u),f=d[0],p=d[1];o.removeClasses(f,"exit"),o.addClass(f,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(c,u)},o.onEntering=function(c,u){var d=o.resolveArguments(c,u),f=d[0],p=d[1],y=p?"appear":"enter";o.addClass(f,y,"active"),o.props.onEntering&&o.props.onEntering(c,u)},o.onEntered=function(c,u){var d=o.resolveArguments(c,u),f=d[0],p=d[1],y=p?"appear":"enter";o.removeClasses(f,y),o.addClass(f,y,"done"),o.props.onEntered&&o.props.onEntered(c,u)},o.onExit=function(c){var u=o.resolveArguments(c),d=u[0];o.removeClasses(d,"appear"),o.removeClasses(d,"enter"),o.addClass(d,"exit","base"),o.props.onExit&&o.props.onExit(c)},o.onExiting=function(c){var u=o.resolveArguments(c),d=u[0];o.addClass(d,"exit","active"),o.props.onExiting&&o.props.onExiting(c)},o.onExited=function(c){var u=o.resolveArguments(c),d=u[0];o.removeClasses(d,"exit"),o.addClass(d,"exit","done"),o.props.onExited&&o.props.onExited(c)},o.resolveArguments=function(c,u){return o.props.nodeRef?[o.props.nodeRef.current,c]:[c,u]},o.getClassNames=function(c){var u=o.props.classNames,d=typeof u=="string",f=d&&u?u+"-":"",p=d?""+f+c:u[c],y=d?p+"-active":u[c+"Active"],w=d?p+"-done":u[c+"Done"];return{baseClassName:p,activeClassName:y,doneClassName:w}},o}var n=t.prototype;return n.addClass=function(r,i,a){var c=this.getClassNames(i)[a+"ClassName"],u=this.getClassNames("enter"),d=u.doneClassName;i==="appear"&&a==="done"&&d&&(c+=" "+d),a==="active"&&r&&Km(r),c&&(this.appliedClasses[i][a]=c,W_(r,c))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],c=a.base,u=a.active,d=a.done;this.appliedClasses[i]={},c&&Ic(r,c),u&&Ic(r,u),d&&Ic(r,d)},n.render=function(){var r=this.props;r.classNames;var i=We(r,["classNames"]);return Ze.createElement(Xn,Z({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Ze.Component);Wu.defaultProps={classNames:""};Wu.propTypes=process.env.NODE_ENV!=="production"?Z({},Xn.propTypes,{classNames:V_,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function H_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hu(e,t){var n=function(i){return t&&Ze.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Ze.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function z_(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,c={};for(var u in t){if(o[u])for(a=0;a<o[u].length;a++){var d=o[u][a];c[o[u][a]]=n(d)}c[u]=n(u)}for(a=0;a<r.length;a++)c[r[a]]=n(r[a]);return c}function Sr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function B_(e,t){return Hu(e.children,function(n){return Ze.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Sr(n,"appear",e),enter:Sr(n,"enter",e),exit:Sr(n,"exit",e)})})}function Y_(e,t,n){var o=Hu(e.children),r=z_(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(Ze.isValidElement(a)){var c=i in t,u=i in o,d=t[i],f=Ze.isValidElement(d)&&!d.props.in;u&&(!c||f)?r[i]=Ze.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Sr(a,"exit",e),enter:Sr(a,"enter",e)}):!u&&c&&!f?r[i]=Ze.cloneElement(a,{in:!1}):u&&c&&Ze.isValidElement(d)&&(r[i]=Ze.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:Sr(a,"exit",e),enter:Sr(a,"enter",e)}))}}),r}var U_=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},q_={component:"div",childFactory:function(t){return t}},Bi=function(e){Vu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(H_(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,c=i.handleExited,u=i.firstRender;return{children:u?B_(r,c):Y_(r,a,c),firstRender:!1}},n.handleExited=function(r,i){var a=Hu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(c){var u=Z({},c.children);return delete u[r.key],{children:u}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,c=We(r,["component","childFactory"]),u=this.state.contextValue,d=U_(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?Ze.createElement(Ka.Provider,{value:u},d):Ze.createElement(Ka.Provider,{value:u},Ze.createElement(i,c,d))},t}(Ze.Component);Bi.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Bi.defaultProps=q_;const Xm=e=>e.scrollTop;function Xa(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 G_(e){return Oe("MuiPaper",e)}De("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 K_=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ie(i,G_,r)},X_=le("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}`]]}})(dt(({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)"}}]}))),Es=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiPaper"}),r=Ts(),{className:i,component:a="div",elevation:c=1,square:u=!1,variant:d="elevation",...f}=o,p={...o,component:a,elevation:c,square:u,variant:d},y=K_(p);return process.env.NODE_ENV!=="production"&&r.shadows[c]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
|
|
139
|
+
`)),P.jsx(X_,{as:a,ownerState:p,className:Se(y.root,i),ref:n,...f,style:{...d==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[c],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[c]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${it("#fff",nu(c))}, ${it("#fff",nu(c))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(Es.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:ar(Lm,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 Rn(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:c,...u}=t,{component:d,slots:f={[e]:void 0},slotProps:p={[e]:void 0},...y}=i,w=f[e]||o,b=kl(p[e],r),{props:{component:g,...v},internalRef:E}=Vm({className:n,...u,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),k=at(E,b?.ref,t.ref),_=a?a(v):{},x={...r,..._},C=e==="root"?g||d:g,O=$m(w,{...e==="root"&&!d&&!f[e]&&c,...e!=="root"&&!f[e]&&c,...v,...C&&{as:C},ref:k},x);return Object.keys(_).forEach(N=>{delete O[N]}),[w,O]}class Za{static create(){return new Za}static use(){const t=Mm(Za.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=Q_(),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 Z_(){return Za.use()}function Q_(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Zm(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:c,onExited:u,timeout:d}=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!c&&!f&&p(!0),T.useEffect(()=>{if(!c&&u!=null){const g=setTimeout(u,d);return()=>{clearTimeout(g)}}},[u,c,d]),P.jsx("span",{className:y,style:w,children:P.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(Zm.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 Hn=De("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),su=550,J_=80,eR=gl`
|
|
120
140
|
0% {
|
|
121
141
|
transform: scale(0);
|
|
122
142
|
opacity: 0.1;
|
|
@@ -126,7 +146,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
126
146
|
transform: scale(1);
|
|
127
147
|
opacity: 0.3;
|
|
128
148
|
}
|
|
129
|
-
`,
|
|
149
|
+
`,tR=gl`
|
|
130
150
|
0% {
|
|
131
151
|
opacity: 1;
|
|
132
152
|
}
|
|
@@ -134,7 +154,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
134
154
|
100% {
|
|
135
155
|
opacity: 0;
|
|
136
156
|
}
|
|
137
|
-
`,
|
|
157
|
+
`,nR=gl`
|
|
138
158
|
0% {
|
|
139
159
|
transform: scale(1);
|
|
140
160
|
}
|
|
@@ -146,23 +166,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
146
166
|
100% {
|
|
147
167
|
transform: scale(1);
|
|
148
168
|
}
|
|
149
|
-
`,
|
|
169
|
+
`,oR=le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rR=le(Zm,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
150
170
|
opacity: 0;
|
|
151
171
|
position: absolute;
|
|
152
172
|
|
|
153
|
-
&.${
|
|
173
|
+
&.${Hn.rippleVisible} {
|
|
154
174
|
opacity: 0.3;
|
|
155
175
|
transform: scale(1);
|
|
156
|
-
animation-name: ${
|
|
157
|
-
animation-duration: ${
|
|
176
|
+
animation-name: ${eR};
|
|
177
|
+
animation-duration: ${su}ms;
|
|
158
178
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
159
179
|
}
|
|
160
180
|
|
|
161
|
-
&.${
|
|
181
|
+
&.${Hn.ripplePulsate} {
|
|
162
182
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
163
183
|
}
|
|
164
184
|
|
|
165
|
-
& .${
|
|
185
|
+
& .${Hn.child} {
|
|
166
186
|
opacity: 1;
|
|
167
187
|
display: block;
|
|
168
188
|
width: 100%;
|
|
@@ -171,26 +191,51 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
171
191
|
background-color: currentColor;
|
|
172
192
|
}
|
|
173
193
|
|
|
174
|
-
& .${
|
|
194
|
+
& .${Hn.childLeaving} {
|
|
175
195
|
opacity: 0;
|
|
176
|
-
animation-name: ${
|
|
177
|
-
animation-duration: ${
|
|
196
|
+
animation-name: ${tR};
|
|
197
|
+
animation-duration: ${su}ms;
|
|
178
198
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
179
199
|
}
|
|
180
200
|
|
|
181
|
-
& .${
|
|
201
|
+
& .${Hn.childPulsate} {
|
|
182
202
|
position: absolute;
|
|
183
203
|
/* @noflip */
|
|
184
204
|
left: 0px;
|
|
185
205
|
top: 0;
|
|
186
|
-
animation-name: ${
|
|
206
|
+
animation-name: ${nR};
|
|
187
207
|
animation-duration: 2500ms;
|
|
188
208
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
189
209
|
animation-iteration-count: infinite;
|
|
190
210
|
animation-delay: 200ms;
|
|
191
211
|
}
|
|
192
|
-
`,
|
|
193
|
-
`)):null),classes:D.object,className:D.string,color:D.oneOfType([D.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),D.string]),disabled:D.bool,disableFocusRipple:D.bool,disableRipple:D.bool,edge:D.oneOf(["end","start",!1]),size:D.oneOfType([D.oneOf(["small","medium","large"]),D.string]),sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object])});const Ow=Ms(le.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Aw=Ms(le.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Nw=Ms(le.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Lw=Ms(le.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Fw=Ms(le.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Iw=e=>{const{variant:t,color:r,severity:i,classes:s}=e,o={root:["root",`color${kt(r||i)}`,`${t}${kt(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ji(o,xw,s)},Ww=vt(Lc,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${kt(r.color||r.severity)}`]]}})(ui(({theme:e})=>{const t=e.palette.mode==="light"?ws:_s,r=e.palette.mode==="light"?_s:ws;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(fs(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${Mh.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(fs(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${Mh.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(fs(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),Hw=vt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Yw=vt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ph=vt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Oh={success:le.jsx(Ow,{fontSize:"inherit"}),warning:le.jsx(Aw,{fontSize:"inherit"}),error:le.jsx(Nw,{fontSize:"inherit"}),info:le.jsx(Lw,{fontSize:"inherit"})},Yc=ae.forwardRef(function(t,r){const i=di({props:t,name:"MuiAlert"}),{action:s,children:o,className:l,closeText:h="Close",color:d,components:f={},componentsProps:p={},icon:m,iconMapping:C=Oh,onClose:x,role:R="alert",severity:y="success",slotProps:O={},slots:F={},variant:B="standard",...N}=i,k={...i,color:d,severity:y,variant:B,colorSeverity:d||y},v=Iw(k),L={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...F},slotProps:{...p,...O}},[z,q]=Dh("closeButton",{elementType:Hc,externalForwardedProps:L,ownerState:k}),[te,w]=Dh("closeIcon",{elementType:Fw,externalForwardedProps:L,ownerState:k});return le.jsxs(Ww,{role:R,elevation:0,ownerState:k,className:bt(v.root,l),ref:r,...N,children:[m!==!1?le.jsx(Hw,{ownerState:k,className:v.icon,children:m||C[y]||Oh[y]}):null,le.jsx(Yw,{ownerState:k,className:v.message,children:o}),s!=null?le.jsx(Ph,{ownerState:k,className:v.action,children:s}):null,s==null&&x?le.jsx(Ph,{ownerState:k,className:v.action,children:le.jsx(z,{size:"small","aria-label":h,title:h,color:"inherit",onClick:x,...q,children:le.jsx(te,{fontSize:"small",...w})})}):null]})});process.env.NODE_ENV!=="production"&&(Yc.propTypes={action:D.node,children:D.node,classes:D.object,className:D.string,closeText:D.string,color:D.oneOfType([D.oneOf(["error","info","success","warning"]),D.string]),components:D.shape({CloseButton:D.elementType,CloseIcon:D.elementType}),componentsProps:D.shape({closeButton:D.object,closeIcon:D.object}),icon:D.node,iconMapping:D.shape({error:D.node,info:D.node,success:D.node,warning:D.node}),onClose:D.func,role:D.string,severity:D.oneOfType([D.oneOf(["error","info","success","warning"]),D.string]),slotProps:D.shape({closeButton:D.oneOfType([D.func,D.object]),closeIcon:D.oneOfType([D.func,D.object])}),slots:D.shape({closeButton:D.elementType,closeIcon:D.elementType}),sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),variant:D.oneOfType([D.oneOf(["filled","outlined","standard"]),D.string])});const zw=Jr("MuiBox",["root"]),$w=Ac(),Bn=Ly({themeId:ua,defaultTheme:$w,defaultClassName:zw.root,generateClassName:vc.generate});process.env.NODE_ENV!=="production"&&(Bn.propTypes={children:D.node,component:D.elementType,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object])});function Bw(e){return Zr("MuiDivider",e)}Jr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Vw=e=>{const{absolute:t,children:r,classes:i,flexItem:s,light:o,orientation:l,textAlign:h,variant:d}=e;return ji({root:["root",t&&"absolute",d,o&&"light",l==="vertical"&&"vertical",s&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",h==="right"&&l!=="vertical"&&"textAlignRight",h==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},Bw,i)},jw=vt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(ui(({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)`:Bi(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%"}}}]}))),Uw=vt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(ui(({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)`}}]}))),bn=ae.forwardRef(function(t,r){const i=di({props:t,name:"MuiDivider"}),{absolute:s=!1,children:o,className:l,orientation:h="horizontal",component:d=o||h==="vertical"?"div":"hr",flexItem:f=!1,light:p=!1,role:m=d!=="hr"?"separator":void 0,textAlign:C="center",variant:x="fullWidth",...R}=i,y={...i,absolute:s,component:d,flexItem:f,light:p,orientation:h,role:m,textAlign:C,variant:x},O=Vw(y);return le.jsx(jw,{as:d,className:bt(O.root,l),role:m,ref:r,ownerState:y,"aria-orientation":m==="separator"&&(d!=="hr"||h==="vertical")?h:void 0,...R,children:o?le.jsx(Uw,{className:O.wrapper,ownerState:y,children:o}):null})});bn&&(bn.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(bn.propTypes={absolute:D.bool,children:D.node,classes:D.object,className:D.string,component:D.elementType,flexItem:D.bool,light:D.bool,orientation:D.oneOf(["horizontal","vertical"]),role:D.string,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),textAlign:D.oneOf(["center","left","right"]),variant:D.oneOfType([D.oneOf(["fullWidth","inset","middle"]),D.string])});const Gw=vt(Bn)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),qw={Wrapper:Gw},Xw=({setIsOpened:e})=>le.jsx(qw.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),Kw=vt(Bn)(({theme:e})=>({visibility:"hidden",color:e.palette.text.primary,backgroundColor:e.palette.background.default,borderRadius:"5px",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0})),Zw={Content:Kw},Jw=({children:e,setIsOpened:t})=>{const r=document.getElementById("portal-root");return r?dm.createPortal(le.jsxs(nt.Fragment,{children:[le.jsx(Zw.Content,{id:Kh,children:e}),le.jsx(Xw,{setIsOpened:t})]}),r):null};class Ta{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const r=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(r,1)}notify(){for(const t of this.observers)t()}}class Qw extends Ta{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}new Qw;var Mt=(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))(Mt||{}),Wi=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(Wi||{}),ea=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(ea||{}),zc=(e=>(e[e.KeyB=66]="KeyB",e[e.KeyDel=46]="KeyDel",e[e.KeyEnter=13]="KeyEnter",e[e.KeyR=82]="KeyR",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e))(zc||{}),Vr=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT=4]="TEXT",e))(Vr||{});vt(Yc)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});var e_=Object.defineProperty,t_=(e,t,r)=>t in e?e_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t,r)=>t_(e,typeof t!="symbol"?t+"":t,r),ta=class{constructor(e,t){this.event=e,this.args=t,b(this,"_isPropagationStopped",!1),b(this,"_isImmediatePropagationStopped",!1),b(this,"_isDefaultPrevented",!1),b(this,"returnValues",[]),b(this,"returnValue"),b(this,"_eventTarget"),b(this,"nativeEvent"),b(this,"arguments_"),b(this,"altKey"),b(this,"ctrlKey"),b(this,"metaKey"),b(this,"shiftKey"),b(this,"key"),b(this,"keyCode"),b(this,"clientX"),b(this,"clientY"),b(this,"offsetX"),b(this,"offsetY"),b(this,"pageX"),b(this,"pageY"),b(this,"bubbles"),b(this,"target"),b(this,"type"),b(this,"which"),b(this,"x"),b(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(r=>this[r]=e[r]),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_}},$c=class{constructor(e,t){this.eventName=e,this.pubSub=t,b(this,"_handlers",[]),b(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,r){let i=t instanceof ta?t:new ta(t,e);r=r||this;for(let s=0;s<this._handlers.length&&!(i.isPropagationStopped()||i.isImmediatePropagationStopped());s++){let o=this._handlers[s].call(r,i,e);i.addReturnValue(o)}if(typeof this._pubSubService?.publish=="function"&&this.eventName){let s=this._pubSubService.publish(this.eventName,{args:e,eventData:i});i.addReturnValue(s)}return i}setPubSubService(e){this._pubSubService=e}},r_=class{constructor(e,t,r,i){b(this,"fromRow"),b(this,"fromCell"),b(this,"toCell"),b(this,"toRow"),r===void 0&&i===void 0&&(r=e,i=t),this.fromRow=Math.min(e,r),this.fromCell=Math.min(t,i),this.toCell=Math.max(t,i),this.toRow=Math.max(e,r)}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})`}},i_=class{constructor(){b(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}},s_=class{constructor(){b(this,"_boundedEvents",[])}getBoundedEvents(){return this._boundedEvents}destroy(){this.unbindAll()}bind(e,t,r,i,s=""){e&&(e.addEventListener(t,r,i),this._boundedEvents.push({element:e,eventName:t,listener:r,groupName:s}))}unbind(e,t,r){e?.removeEventListener&&e.removeEventListener(t,r)}unbindByEventName(e,t){let r=this._boundedEvents.find(i=>i.element===e&&i.eventName===t);r&&this.unbind(r.element,r.eventName,r.listener)}unbindAll(e){if(e){let t=Array.isArray(e)?e:[e];for(let r=this._boundedEvents.length-1;r>=0;--r){let i=this._boundedEvents[r];if(t.some(s=>s===i.groupName)){let{element:s,eventName:o,listener:l}=i;this.unbind(s,o,l),this._boundedEvents.splice(r,1)}}}else for(;this._boundedEvents.length>0;){let t=this._boundedEvents.pop(),{element:r,eventName:i,listener:s}=t;this.unbind(r,i,s)}}},Vt=class st{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||st.toString.call(t)!=="[object Object]")return!1;let r=st.getProto(t);if(!r)return!0;let i=st.hasOwn.call(r,"constructor")&&r.constructor;return typeof i=="function"&&st.fnToString.call(i)===st.ObjectFunctionString}static calculateAvailableSpace(t){let r=0,i=0,s=0,o=0,l=window.innerHeight||0,h=window.innerWidth||0,d=st.windowScrollPosition(),f=d.top,p=d.left,m=st.offset(t);if(m){let C=m.top||0,x=m.left||0;i=C-f,r=l-(C-f),s=x-p,o=h-(x-p)}return{top:i,bottom:r,left:s,right:o}}static extend(...t){let r,i,s,o,l,h,d=t[0],f=1,p=!1,m=t.length;for(typeof d=="boolean"?(p=d,d=t[f]||{},f++):d=d||{},typeof d!="object"&&!st.isFunction(d)&&(d={}),f===m&&(d=this,f--);f<m;f++)if(st.isDefined(r=t[f]))for(i in r)o=r[i],!(i==="__proto__"||d===o)&&(p&&o&&(st.isPlainObject(o)||(l=Array.isArray(o)))?(s=d[i],l&&!Array.isArray(s)?h=[]:!l&&!st.isPlainObject(s)?h={}:h=s,l=!1,d[i]=st.extend(p,h,o)):o!==void 0&&(d[i]=o));return d}static createDomElement(t,r,i){let s=document.createElement(t);return r&&Object.keys(r).forEach(o=>{o==="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 l=r[o];typeof l=="object"?Object.assign(s[o],l):s[o]=r[o]}),i?.appendChild&&i.appendChild(s),s}static getHtmlStringOutput(t,r="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,i=>i[r]).join("")||t.textContent||"":t instanceof HTMLElement?t[r]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(r=>r)}static innerSize(t,r){let i=0;if(t){let s=r==="height"?"clientHeight":"clientWidth",o=r==="height"?["top","bottom"]:["left","right"];i=t[s];for(let l of o){let h=parseFloat(st.getElementProp(t,`padding-${l}`)||"")||0;i-=h}}return i}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,r){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(r):null}static getFunctionDetails(t,r=!0){let i=!1,s=o=>{let l=o.toString();if(i=l.includes("async "),l.replaceAll(" ","").includes("=>({")){let f=l.match(/(({.*}))/g)||[];return f.length>=1?`return ${f[0].trimStart()}`:l}let h=!l.includes("{")&&l.includes("=>"),d=l.substring(l.indexOf("{")+1||l.indexOf("=>")+2,l.includes("}")?l.lastIndexOf("}"):l.length);return r&&h&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(o=>{let l=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,h=/([^\s,]+)/g,d=o.toString().replace(l,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(h)??[]})(t),body:s(t),isAsync:i}}static insertAfterElement(t,r){t.parentNode?.insertBefore(r,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 r=t.getBoundingClientRect(),i=document.documentElement;return{top:r.top+window.pageYOffset-i.clientTop,left:r.left+window.pageXOffset-i.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,r){if(!(!t||!t.getBoundingClientRect)){if(r===void 0)return t.getBoundingClientRect().width;st.setStyleSize(t,"width",r)}}static height(t,r){if(t){if(r===void 0)return t.getBoundingClientRect().height;st.setStyleSize(t,"height",r)}}static setStyleSize(t,r,i){typeof i=="function"?i=i():typeof i=="string"?t.style[r]=i:t.style[r]=i+"px"}static contains(t,r){return!t||!r?!1:!st.parents(r).every(i=>t!==i)}static isHidden(t){return t.offsetWidth===0&&t.offsetHeight===0}static parents(t,r){let i=[],s=r===":visible",o=r===":hidden";for(;(t=t.parentNode)&&t!==document&&!(!t||!t.parentNode);)o?st.isHidden(t)&&i.push(t):s?st.isHidden(t)||i.push(t):(!r||t.matches(r))&&i.push(t);return i}static toFloat(t){let r=parseFloat(t);return isNaN(r)?0:r}static show(t,r=""){Array.isArray(t)?t.forEach(i=>i.style.display=r):t.style.display=r}static hide(t){Array.isArray(t)?t.forEach(r=>r.style.display="none"):t.style.display="none"}static slideUp(t,r){return st.slideAnimation(t,"slideUp",r)}static slideDown(t,r){return st.slideAnimation(t,"slideDown",r)}static slideAnimation(t,r,i){if(window.jQuery!==void 0){window.jQuery(t)[r]("fast",i);return}r==="slideUp"?st.hide(t):st.show(t),i()}static applyDefaults(t,r){typeof r=="object"&&Object.keys(r).forEach(i=>{r.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=r[i])})}static addSlickEventPubSubWhenDefined(t,r){if(t)for(let i in r)r[i]instanceof $c&&typeof r[i].setPubSubService=="function"&&r[i].setPubSubService(t)}};b(Vt,"getProto",Object.getPrototypeOf),b(Vt,"class2type",{}),b(Vt,"toString",Vt.class2type.toString),b(Vt,"hasOwn",Vt.class2type.hasOwnProperty),b(Vt,"fnToString",Vt.hasOwn.toString),b(Vt,"ObjectFunctionString",Vt.fnToString.call(Object)),b(Vt,"storage",{_storage:new WeakMap,put:function(e,t,r){this._storage.has(e)||this._storage.set(e,new Map),this._storage.get(e).set(t,r)},get:function(e,t){let r=this._storage.get(e);return r?r.get(t):null},remove:function(e,t){let r=this._storage.get(e).delete(t);return this._storage.get(e).size!==0&&this._storage.delete(e),r}});var Da=Vt,n_=new i_,o_={GlobalEditorLock:n_,keyCode:{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"}},{GlobalEditorLock:a_,keyCode:Bc,preClickClassName:l_,GridAutosizeColsMode:h_,ColAutosizeMode:c_,RowSelectionMode:u_,ValueFilterMode:d_,WidthEvalMode:f_}=o_,p_=Da;function m_(e){let{containerElement:t}=e,{onDragInit:r,onDragStart:i,onDrag:s,onDragEnd:o,preventDragFromKeys:l}=e,h,d,f,p,m,C;t||(t=document.body);let x={dragSource:t,dragHandle:null};function R(){t&&(t.addEventListener("mousedown",B),t.addEventListener("touchstart",B))}function y(v,L,z){if(typeof v=="function")return v(L,z)}function O(){t&&(t.removeEventListener("mousedown",B),t.removeEventListener("touchstart",B))}function F(v){let L=!1;return l&&l.forEach(z=>{v[z]&&(L=!0)}),L}function B(v){if(!F(v)){h=v.target;let L=v?.touches?.[0]??v,{target:z}=L;if(!e.allowDragFrom||e.allowDragFrom&&h.matches(e.allowDragFrom)||e.allowDragFromClosest&&h.closest(e.allowDragFromClosest)){x.dragHandle=h;let q=p_.windowScrollPosition();d=q.left+L.clientX,f=q.top+L.clientY,p=L.clientX-L.clientX,m=L.clientY-L.clientY,x=Object.assign(x,{deltaX:p,deltaY:m,startX:d,startY:f,target:z}),y(r,v,x)!==!1&&(document.body.addEventListener("mousemove",N),document.body.addEventListener("touchmove",N),document.body.addEventListener("mouseup",k),document.body.addEventListener("touchend",k),document.body.addEventListener("touchcancel",k))}}}function N(v){if(!F(v)){let L=v?.touches?.[0]??v;p=L.clientX-d,m=L.clientY-f;let{target:z}=L;C||(x=Object.assign(x,{deltaX:p,deltaY:m,startX:d,startY:f,target:z}),y(i,v,x),C=!0),x=Object.assign(x,{deltaX:p,deltaY:m,startX:d,startY:f,target:z}),y(s,v,x)}}function k(v){if(document.body.removeEventListener("mousemove",N),document.body.removeEventListener("touchmove",N),document.body.removeEventListener("mouseup",k),document.body.removeEventListener("touchend",k),document.body.removeEventListener("touchcancel",k),C){let{target:L}=v;x=Object.assign(x,{target:L}),y(o,v,x),C=!1}}return R(),{destroy:O}}function g_(e){let{element:t,onMouseWheel:r}=e;function i(){t.removeEventListener("wheel",o),t.removeEventListener("mousewheel",o)}function s(){t.addEventListener("wheel",o),t.addEventListener("mousewheel",o)}function o(l){let h=l||window.event,d=0,f=0,p=0;h.wheelDelta&&(d=h.wheelDelta/120),h.detail&&(d=-h.detail/3),p=d,h.axis!==void 0&&h.axis===h.HORIZONTAL_AXIS&&(p=0,f=-1*d),h.wheelDeltaY!==void 0&&(p=h.wheelDeltaY/120),h.wheelDeltaX!==void 0&&(f=-1*h.wheelDeltaX/120),typeof r=="function"&&r(l,d,f,p)}return s(),{destroy:i}}function y_(e){let{resizeableElement:t,resizeableHandleElement:r,onResizeStart:i,onResize:s,onResizeEnd:o}=e;if(!r||typeof r.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 l(){r.addEventListener("mousedown",f),r.addEventListener("touchstart",f)}function h(){typeof r?.removeEventListener=="function"&&(r.removeEventListener("mousedown",f),r.removeEventListener("touchstart",f))}function d(C,x){if(typeof C=="function")return C(x,{resizeableElement:t,resizeableHandleElement:r})}function f(C){C.preventDefault();let x=C.touches?C.changedTouches[0]:C;d(i,x)!==!1&&(document.body.addEventListener("mousemove",p),document.body.addEventListener("mouseup",m),document.body.addEventListener("touchmove",p),document.body.addEventListener("touchend",m))}function p(C){C.preventDefault&&C.type!=="touchmove"&&C.preventDefault();let x=C.touches?C.changedTouches[0]:C;typeof s=="function"&&s(x,{resizeableElement:t,resizeableHandleElement:r})}function m(C){let x=C.touches?C.changedTouches[0]:C;d(o,x),document.body.removeEventListener("mousemove",p),document.body.removeEventListener("mouseup",m),document.body.removeEventListener("touchmove",p),document.body.removeEventListener("touchend",m)}return l(),{destroy:h}}var Cn=Bc,No=Da,ra=class ia{constructor(t){this.args=t,b(this,"input"),b(this,"defaultValue"),b(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=No.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?Nh:Lh),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?Nh:Lh),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return No.isDefined(t)||(t=ia.DefaultDecimalPlaces),!t&&t!==0?null:t}loadValue(t){this.defaultValue=t[this.args.column.field];let r=this.getDecimalPlaces();r!==null&&(this.defaultValue||this.defaultValue===0)&&this.defaultValue?.toFixed&&(this.defaultValue=this.defaultValue.toFixed(r)),this.input.value=String(this.defaultValue??""),this.input.defaultValue=String(this.defaultValue??""),this.input.select()}serializeValue(){let t=parseFloat(this.input.value);ia.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;let r=this.getDecimalPlaces();return r!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(r))),t}applyValue(t,r){t[this.args.column.field]=r}isValueChanged(){return!(this.input.value===""&&!No.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}}};b(ra,"DefaultDecimalPlaces"),b(ra,"AllowEmptyValue",!1);var Ah=ra;function Nh(e){let t=e.selectionStart,r=e.target.value.length;(e.keyCode===Cn.LEFT&&t>0||e.keyCode===Cn.RIGHT&&t<r-1)&&e.stopImmediatePropagation()}function Lh(e){(e.keyCode===Cn.LEFT||e.keyCode===Cn.RIGHT)&&e.stopImmediatePropagation()}var v_=s_,Br=c_,fe=$c,as=ta,w_=a_,At=h_,ar=Bc,__=l_,b_=r_,Pi=u_,si=d_,_=Da,Lo=f_,Fh=m_,Ih=g_,Wh=y_,C_=class{constructor(e,t,r,i,s){if(this.container=e,this.data=t,this.columns=r,this.externalPubSub=s,b(this,"slickGridVersion","5.15.5"),b(this,"cid",""),b(this,"onActiveCellChanged"),b(this,"onActiveCellPositionChanged"),b(this,"onAddNewRow"),b(this,"onAfterSetColumns"),b(this,"onAutosizeColumns"),b(this,"onBeforeAppendCell"),b(this,"onBeforeCellEditorDestroy"),b(this,"onBeforeColumnsResize"),b(this,"onBeforeDestroy"),b(this,"onBeforeEditCell"),b(this,"onBeforeFooterRowCellDestroy"),b(this,"onBeforeHeaderCellDestroy"),b(this,"onBeforeHeaderRowCellDestroy"),b(this,"onBeforeRemoveCachedRow"),b(this,"onBeforeSetColumns"),b(this,"onBeforeSort"),b(this,"onBeforeUpdateColumns"),b(this,"onCellChange"),b(this,"onCellCssStylesChanged"),b(this,"onClick"),b(this,"onColumnsReordered"),b(this,"onColumnsDrag"),b(this,"onColumnsResized"),b(this,"onColumnsResizeDblClick"),b(this,"onCompositeEditorChange"),b(this,"onContextMenu"),b(this,"onDrag"),b(this,"onDblClick"),b(this,"onDragInit"),b(this,"onDragStart"),b(this,"onDragEnd"),b(this,"onFooterClick"),b(this,"onFooterContextMenu"),b(this,"onFooterRowCellRendered"),b(this,"onHeaderCellRendered"),b(this,"onHeaderClick"),b(this,"onHeaderContextMenu"),b(this,"onHeaderMouseEnter"),b(this,"onHeaderMouseLeave"),b(this,"onHeaderRowCellRendered"),b(this,"onHeaderRowMouseEnter"),b(this,"onHeaderRowMouseLeave"),b(this,"onPreHeaderContextMenu"),b(this,"onPreHeaderClick"),b(this,"onKeyDown"),b(this,"onMouseEnter"),b(this,"onMouseLeave"),b(this,"onRendered"),b(this,"onScroll"),b(this,"onSelectedRowsChanged"),b(this,"onSetOptions"),b(this,"onActivateChangedOptions"),b(this,"onSort"),b(this,"onValidationError"),b(this,"onViewportChanged"),b(this,"scrollbarDimensions"),b(this,"maxSupportedCssHeight"),b(this,"canvas",null),b(this,"canvas_context",null),b(this,"_options"),b(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:w_,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:At.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}),b(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}),b(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:Br.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:Pi.FirstNRows,rowSelectionCount:100,valueFilterMode:si.None,widthEvalMode:Lo.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),b(this,"_columnResizeTimer"),b(this,"_executionBlockTimer"),b(this,"_flashCellTimer"),b(this,"_highlightRowTimer"),b(this,"th"),b(this,"h"),b(this,"ph"),b(this,"n"),b(this,"cj"),b(this,"page",0),b(this,"offset",0),b(this,"vScrollDir",1),b(this,"_bindingEventService",new v_),b(this,"initialized",!1),b(this,"_container"),b(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),b(this,"_focusSink"),b(this,"_focusSink2"),b(this,"_groupHeaders",[]),b(this,"_headerScroller",[]),b(this,"_headers",[]),b(this,"_headerRows"),b(this,"_headerRowScroller"),b(this,"_headerRowSpacerL"),b(this,"_headerRowSpacerR"),b(this,"_footerRow"),b(this,"_footerRowScroller"),b(this,"_footerRowSpacerL"),b(this,"_footerRowSpacerR"),b(this,"_preHeaderPanel"),b(this,"_preHeaderPanelScroller"),b(this,"_preHeaderPanelSpacer"),b(this,"_preHeaderPanelR"),b(this,"_preHeaderPanelScrollerR"),b(this,"_preHeaderPanelSpacerR"),b(this,"_topHeaderPanel"),b(this,"_topHeaderPanelScroller"),b(this,"_topHeaderPanelSpacer"),b(this,"_topPanelScrollers"),b(this,"_topPanels"),b(this,"_viewport"),b(this,"_canvas"),b(this,"_style"),b(this,"_boundAncestors",[]),b(this,"stylesheet"),b(this,"columnCssRulesL"),b(this,"columnCssRulesR"),b(this,"viewportH",0),b(this,"viewportW",0),b(this,"canvasWidth",0),b(this,"canvasWidthL",0),b(this,"canvasWidthR",0),b(this,"headersWidth",0),b(this,"headersWidthL",0),b(this,"headersWidthR",0),b(this,"viewportHasHScroll",!1),b(this,"viewportHasVScroll",!1),b(this,"headerColumnWidthDiff",0),b(this,"headerColumnHeightDiff",0),b(this,"cellWidthDiff",0),b(this,"cellHeightDiff",0),b(this,"absoluteColumnMinWidth"),b(this,"hasFrozenRows",!1),b(this,"frozenRowsHeight",0),b(this,"actualFrozenRow",-1),b(this,"paneTopH",0),b(this,"paneBottomH",0),b(this,"viewportTopH",0),b(this,"viewportBottomH",0),b(this,"topPanelH",0),b(this,"headerRowH",0),b(this,"footerRowH",0),b(this,"tabbingDirection",1),b(this,"_activeCanvasNode"),b(this,"_activeViewportNode"),b(this,"activePosX"),b(this,"activePosY"),b(this,"activeRow"),b(this,"activeCell"),b(this,"activeCellNode",null),b(this,"currentEditor",null),b(this,"serializedEditorValue"),b(this,"editController"),b(this,"_prevDataLength",0),b(this,"_prevInvalidatedRowsCount",0),b(this,"_rowSpanIsCached",!1),b(this,"_colsWithRowSpanCache",{}),b(this,"rowsCache",{}),b(this,"renderedRows",0),b(this,"numVisibleRows",0),b(this,"prevScrollTop",0),b(this,"scrollHeight",0),b(this,"scrollTop",0),b(this,"lastRenderedScrollTop",0),b(this,"lastRenderedScrollLeft",0),b(this,"prevScrollLeft",0),b(this,"scrollLeft",0),b(this,"selectionModel"),b(this,"selectedRows",[]),b(this,"plugins",[]),b(this,"cellCssClasses",{}),b(this,"columnsById",{}),b(this,"sortColumns",[]),b(this,"columnPosLeft",[]),b(this,"columnPosRight",[]),b(this,"pagingActive",!1),b(this,"pagingIsLastPage",!1),b(this,"scrollThrottle"),b(this,"h_editorLoader"),b(this,"h_postrender"),b(this,"h_postrenderCleanup"),b(this,"postProcessedRows",{}),b(this,"postProcessToRow",null),b(this,"postProcessFromRow",null),b(this,"postProcessedCleanupQueue",[]),b(this,"postProcessgroupId",0),b(this,"counter_rows_rendered",0),b(this,"counter_rows_removed",0),b(this,"_paneHeaderL"),b(this,"_paneHeaderR"),b(this,"_paneTopL"),b(this,"_paneTopR"),b(this,"_paneBottomL"),b(this,"_paneBottomR"),b(this,"_headerScrollerL"),b(this,"_headerScrollerR"),b(this,"_headerL"),b(this,"_headerR"),b(this,"_groupHeadersL"),b(this,"_groupHeadersR"),b(this,"_headerRowScrollerL"),b(this,"_headerRowScrollerR"),b(this,"_footerRowScrollerL"),b(this,"_footerRowScrollerR"),b(this,"_headerRowL"),b(this,"_headerRowR"),b(this,"_footerRowL"),b(this,"_footerRowR"),b(this,"_topPanelScrollerL"),b(this,"_topPanelScrollerR"),b(this,"_topPanelL"),b(this,"_topPanelR"),b(this,"_viewportTopL"),b(this,"_viewportTopR"),b(this,"_viewportBottomL"),b(this,"_viewportBottomR"),b(this,"_canvasTopL"),b(this,"_canvasTopR"),b(this,"_canvasBottomL"),b(this,"_canvasBottomR"),b(this,"_viewportScrollContainerX"),b(this,"_viewportScrollContainerY"),b(this,"_headerScrollContainer"),b(this,"_headerRowScrollContainer"),b(this,"_footerRowScrollContainer"),b(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),b(this,"_hiddenParents",[]),b(this,"oldProps",[]),b(this,"enforceFrozenRowHeightRecalc",!1),b(this,"columnResizeDragging",!1),b(this,"slickDraggableInstance",null),b(this,"slickMouseWheelInstances",[]),b(this,"slickResizableInstances",[]),b(this,"sortableSideLeftInstance"),b(this,"sortableSideRightInstance"),b(this,"logMessageCount",0),b(this,"logMessageMaxCount",30),b(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=s,this.onActiveCellChanged=new fe("onActiveCellChanged",s),this.onActiveCellPositionChanged=new fe("onActiveCellPositionChanged",s),this.onAddNewRow=new fe("onAddNewRow",s),this.onAfterSetColumns=new fe("onAfterSetColumns",s),this.onAutosizeColumns=new fe("onAutosizeColumns",s),this.onBeforeAppendCell=new fe("onBeforeAppendCell",s),this.onBeforeCellEditorDestroy=new fe("onBeforeCellEditorDestroy",s),this.onBeforeColumnsResize=new fe("onBeforeColumnsResize",s),this.onBeforeDestroy=new fe("onBeforeDestroy",s),this.onBeforeEditCell=new fe("onBeforeEditCell",s),this.onBeforeFooterRowCellDestroy=new fe("onBeforeFooterRowCellDestroy",s),this.onBeforeHeaderCellDestroy=new fe("onBeforeHeaderCellDestroy",s),this.onBeforeHeaderRowCellDestroy=new fe("onBeforeHeaderRowCellDestroy",s),this.onBeforeRemoveCachedRow=new fe("onRowRemovedFromCache",s),this.onBeforeSetColumns=new fe("onBeforeSetColumns",s),this.onBeforeSort=new fe("onBeforeSort",s),this.onBeforeUpdateColumns=new fe("onBeforeUpdateColumns",s),this.onCellChange=new fe("onCellChange",s),this.onCellCssStylesChanged=new fe("onCellCssStylesChanged",s),this.onClick=new fe("onClick",s),this.onColumnsReordered=new fe("onColumnsReordered",s),this.onColumnsDrag=new fe("onColumnsDrag",s),this.onColumnsResized=new fe("onColumnsResized",s),this.onColumnsResizeDblClick=new fe("onColumnsResizeDblClick",s),this.onCompositeEditorChange=new fe("onCompositeEditorChange",s),this.onContextMenu=new fe("onContextMenu",s),this.onDrag=new fe("onDrag",s),this.onDblClick=new fe("onDblClick",s),this.onDragInit=new fe("onDragInit",s),this.onDragStart=new fe("onDragStart",s),this.onDragEnd=new fe("onDragEnd",s),this.onFooterClick=new fe("onFooterClick",s),this.onFooterContextMenu=new fe("onFooterContextMenu",s),this.onFooterRowCellRendered=new fe("onFooterRowCellRendered",s),this.onHeaderCellRendered=new fe("onHeaderCellRendered",s),this.onHeaderClick=new fe("onHeaderClick",s),this.onHeaderContextMenu=new fe("onHeaderContextMenu",s),this.onHeaderMouseEnter=new fe("onHeaderMouseEnter",s),this.onHeaderMouseLeave=new fe("onHeaderMouseLeave",s),this.onHeaderRowCellRendered=new fe("onHeaderRowCellRendered",s),this.onHeaderRowMouseEnter=new fe("onHeaderRowMouseEnter",s),this.onHeaderRowMouseLeave=new fe("onHeaderRowMouseLeave",s),this.onPreHeaderClick=new fe("onPreHeaderClick",s),this.onPreHeaderContextMenu=new fe("onPreHeaderContextMenu",s),this.onKeyDown=new fe("onKeyDown",s),this.onMouseEnter=new fe("onMouseEnter",s),this.onMouseLeave=new fe("onMouseLeave",s),this.onRendered=new fe("onRendered",s),this.onScroll=new fe("onScroll",s),this.onSelectedRowsChanged=new fe("onSelectedRowsChanged",s),this.onSetOptions=new fe("onSetOptions",s),this.onActivateChangedOptions=new fe("onActivateChangedOptions",s),this.onSort=new fe("onSort",s),this.onValidationError=new fe("onValidationError",s),this.onViewportChanged=new fe("onViewportChanged",s),this.initialize(i)}init(){this.finishInitialization()}initialize(e){if(e?.mixinDefaults?(this._options||(this._options=e),_.applyDefaults(this._options,this._defaults)):this._options=_.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)},_.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=_.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=_.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=_.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||_.hide(this._topHeaderPanelScroller)),this._paneHeaderL=_.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=_.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=_.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=_.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=_.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=_.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=_.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=_.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=_.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=_.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(_.hide(this._preHeaderPanelScroller),_.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=_.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=_.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=_.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=_.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=_.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=_.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=_.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=_.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=_.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=_.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=_.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=_.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(i=>{_.hide(i)}),this._options.showTopPanel||this._topPanelScrollers.forEach(i=>{_.hide(i)}),this._options.showHeaderRow||this._headerRowScroller.forEach(i=>{_.hide(i)}),this._viewportTopL=_.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=_.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=_.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=_.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(i=>{i.classList.add(..._.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=_.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=_.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=_.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=_.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 r=this.getCanvasWidth()+this.scrollbarDimensions.width;this._activeCanvasNode=this._canvasTopL,this._topHeaderPanelSpacer&&_.width(this._topHeaderPanelSpacer,r),this._preHeaderPanelSpacer&&_.width(this._preHeaderPanelSpacer,r),this._headers.forEach(i=>{_.width(i,this.getHeadersWidth())}),_.width(this._headerRowSpacerL,r),_.width(this._headerRowSpacerR,r),this._options.createFooterRow&&(this._footerRowScrollerR=_.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=_.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),_.width(this._footerRowSpacerL,r),this._footerRowSpacerR=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),_.width(this._footerRowSpacerR,r),this._footerRowL=_.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=_.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-right"},this._footerRowScrollerR),this._footerRow=[this._footerRowL,this._footerRowR],this._options.showFooterRow||this._footerRowScroller.forEach(i=>{_.hide(i)})),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(Ih({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))}),Fh&&(this.slickDraggableInstance=Fh({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=_.parents(this._container,":hidden"),this.oldProps=[],this._hiddenParents.forEach(e=>{let t={};Object.keys(this.cssShow).forEach(r=>{this.cssShow&&(t[r]=e.style[r],e.style[r]=this.cssShow[r])}),this.oldProps.push(t)})}restoreCssFromHiddenInit(){let e=0;this._hiddenParents&&(this._hiddenParents.forEach(t=>{let r=this.oldProps[e++];Object.keys(this.cssShow).forEach(i=>{this.cssShow&&(t.style[i]=r[i])})}),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(s=>{this._bindingEventService.unbindByEventName(s,"keydown"),this._bindingEventService.unbindByEventName(s,"click"),this._bindingEventService.unbindByEventName(s,"dblclick"),this._bindingEventService.unbindByEventName(s,"contextmenu"),this._bindingEventService.unbindByEventName(s,"mouseover"),this._bindingEventService.unbindByEventName(s,"mouseout")}),this._viewport.forEach(s=>{this._bindingEventService.unbindByEventName(s,"scroll")}),this._headerScroller.forEach(s=>{this._bindingEventService.unbindByEventName(s,"contextmenu"),this._bindingEventService.unbindByEventName(s,"click")}),this._headerRowScroller.forEach(s=>{this._bindingEventService.unbindByEventName(s,"scroll")}),this._footerRow&&this._footerRow.forEach(s=>{this._bindingEventService.unbindByEventName(s,"contextmenu"),this._bindingEventService.unbindByEventName(s,"click")}),this._footerRowScroller&&this._footerRowScroller.forEach(s=>{this._bindingEventService.unbindByEventName(s,"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 r=this._container.querySelectorAll(".slick-resizable-handle");[].forEach.call(r,s=>{this._bindingEventService.unbindByEventName(s,"dblclick")});let i=this._container.querySelectorAll(".slick-header-column");[].forEach.call(i,s=>{this._bindingEventService.unbindByEventName(s,"mouseenter"),this._bindingEventService.unbindByEventName(s,"mouseleave"),this._bindingEventService.unbindByEventName(s,"mouseenter"),this._bindingEventService.unbindByEventName(s,"mouseleave")}),_.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],r;for(;_.isDefined(r=t.pop());)r&&typeof r.destroy=="function"&&r.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,r,i){this.prepareForOptionsChange(),this._options.enableAddRow!==e.enableAddRow&&this.invalidateRow(this.getDataLength()),e.frozenColumn!==void 0&&e.frozenColumn>=0&&(this.getViewports().forEach(o=>o.scrollLeft=0),this.handleScroll());let s=_.extend(!0,{},this._options);this._options=_.extend(this._options,e),this.trigger(this.onSetOptions,{optionsBefore:s,optionsAfter:this._options}),this.internal_setOptions(t,r,i)}activateChangedOptions(e,t,r){this.prepareForOptionsChange(),this.invalidateRow(this.getDataLength()),this.trigger(this.onActivateChangedOptions,{options:this._options}),this.internal_setOptions(e,t,r)}prepareForOptionsChange(){this.getEditorLock().commitCurrentEdit()&&this.makeActiveCellNormal()}internal_setOptions(e,t,r){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(i=>{i.style.overflowY=this._options.autoHeight?"hidden":"auto"}),e||this.render(),this.setScroller(),r||this.setOverflow(),t||this.setColumns(this.columns),this._options.enableMouseWheelScrollHandler&&this._viewport&&(!this.slickMouseWheelInstances||this.slickMouseWheelInstances.length===0)?this._viewport.forEach(i=>{this.slickMouseWheelInstances.push(Ih({element:i,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=At.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,r){if(this.initialized){let i=this.getColumnIndex(e);if(!_.isDefined(i))return;let s=this.columns[i],o=this.getColumnByIndex(i);o&&(t!==void 0&&(this.columns[i].name=t),r!==void 0&&(this.columns[i].toolTip=r),this.trigger(this.onBeforeHeaderCellDestroy,{node:o,column:s,grid:this}),o.setAttribute("title",r||""),t!==void 0&&this.applyHtmlCode(o.children[0],t),this.trigger(this.onHeaderCellRendered,{node:o,column:s,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),r=this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,i=this.hasFrozenColumns()?t<=this._options.frozenColumn?t:t-this._options.frozenColumn-1:t;return r.children[i]}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),r;return this.hasFrozenColumns()?t<=this._options.frozenColumn?r=this._headerRowL:(r=this._headerRowR,t-=this._options.frozenColumn+1):r=this._headerRowL,r.children[t]}getFooterRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),r;return this.hasFrozenColumns()?t<=this._options.frozenColumn?r=this._footerRowL:(r=this._footerRowR,t-=this._options.frozenColumn+1):r=this._footerRowL,r.children[t]}createColumnFooter(){if(this._options.createFooterRow){this._footerRow.forEach(e=>{e.querySelectorAll(".slick-footerrow-column").forEach(t=>{let r=_.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:r,grid:this})})}),_.emptyElement(this._footerRowL),_.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let r=_.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),i=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;i&&r.classList.add(i),_.storage.put(r,"column",t),this.trigger(this.onFooterRowCellRendered,{node:r,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 r=t.target.closest(".slick-header-column");if(!r)return;let i=_.storage.get(r,"column");if(i.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let s=this.sortColumns.slice(),o=null,l=0;for(;l<this.sortColumns.length;l++)if(this.sortColumns[l].columnId===i.id){o=this.sortColumns[l],o.sortAsc=!o.sortAsc;break}let h=!!o;this._options.tristateMultiColumnSort?(o||(o={columnId:i.id,sortAsc:i.defaultSortAsc,sortCol:i}),h&&o.sortAsc&&(this.sortColumns.splice(l,1),o=null),this._options.multiColumnSort||(this.sortColumns=[]),o&&(!h||!this._options.multiColumnSort)&&this.sortColumns.push(o)):t.metaKey&&this._options.multiColumnSort?o&&this.sortColumns.splice(l,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),o?this.sortColumns.length===0&&this.sortColumns.push(o):(o={columnId:i.id,sortAsc:i.defaultSortAsc,sortCol:i},this.sortColumns.push(o)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:s,sortCols:this.sortColumns.map(f=>{let p=this.columns[this.getColumnIndex(f.columnId)];return!p||p.hidden?null:{columnId:p.id,sortCol:p,sortAsc:f.sortAsc}}).filter(f=>f)}:d={multiColumnSort:!1,previousSortColumns:s,columnId:this.sortColumns.length>0?i.id:null,sortCol:this.sortColumns.length>0?i: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 r=_.storage.get(t,"column");r&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:r,grid:this})})}),_.emptyElement(this._headerL),_.emptyElement(this._headerR),this.getHeadersWidth(),_.width(this._headerL,this.headersWidthL),_.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let r=_.storage.get(t,"column");r&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:r,grid:this})})}),_.emptyElement(this._headerRowL),_.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=_.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),_.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=_.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),_.emptyElement(this._footerRowR)));for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(t.hidden)continue;let r=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,i=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerRowL:this._headerRowR:this._headerRowL,s=_.createDomElement("div",{id:`${this.uid+t.id}`,dataset:{id:String(t.id)},role:"columnheader",className:"ui-state-default slick-state-default slick-header-column"},r);t.toolTip&&(s.title=t.toolTip),t.reorderable||s.classList.add(this._options.unorderableColumnCssClass);let o=_.createDomElement("span",{className:"slick-column-name"},s);this.applyHtmlCode(o,t.name),_.width(s,t.width-this.headerColumnWidthDiff);let l=t.headerCssClass||null;if(l&&s.classList.add(..._.classNameToList(l)),l=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null,l&&s.classList.add(l),this._bindingEventService.bind(s,"mouseenter",this.handleHeaderMouseEnter.bind(this)),this._bindingEventService.bind(s,"mouseleave",this.handleHeaderMouseLeave.bind(this)),_.storage.put(s,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(s,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(s,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(h=>{t.headerCellAttrs.hasOwnProperty(h)&&s.setAttribute(h,t.headerCellAttrs[h])}),t.sortable&&(s.classList.add("slick-header-sortable"),_.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},s),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&_.createDomElement("div",{className:"slick-sort-indicator-numbered"},s)),this.trigger(this.onHeaderCellRendered,{node:s,column:t,grid:this}),this._options.showHeaderRow){let h=_.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},i),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&h.classList.add(d),this._bindingEventService.bind(h,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(h,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),_.storage.put(h,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:h,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let h=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=_.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},h);_.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,r=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,i=!1,s={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:o=>!o.related.classList.contains(this._options.unorderableColumnCssClass),onStart:o=>{o.item.classList.add("slick-header-column-active"),i=!this.hasFrozenColumns()||_.offset(o.item).left>_.offset(this._viewportScrollContainerX).left,i&&o.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):i&&o.originalEvent.pageX<_.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(r,100)):(window.clearInterval(e),e=null)},onEnd:o=>{if(o.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let l=this.sortableSideLeftInstance?.toArray()??[];l=l.concat(this.sortableSideRightInstance?.toArray()??[]);let h=[];for(let d=0;d<l.length;d++)h.push(this.columns[this.getColumnIndex(l[d])]);this.setColumns(h),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),o.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,s),this.sortableSideRightInstance=Sortable.create(this._headerR,s)}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 Wh>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,r,i,s,o,l,h=-1,d=0,f=this.getHeaderChildren(),p=this.getVisibleColumns();for(let m=0;m<f.length;m++)f[m].querySelectorAll(".slick-resizable-handle").forEach(C=>C.remove()),!(m>=p.length||!p[m])&&p[m].resizable&&(l===void 0&&(l=m),h=m);if(l!==void 0)for(let m=0;m<f.length;m++){let C=f[m];if(m>=p.length||!p[m]||m<l||this._options.forceFitColumns&&m>=h)continue;let x=_.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},C);this._bindingEventService.bind(x,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(Wh({resizeableElement:C,resizeableHandleElement:x,onResizeStart:(R,y)=>{let O=R.touches?R.changedTouches[0]:R;if(!this.getEditorLock()?.commitCurrentEdit())return!1;i=O.pageX,d=0,y.resizeableElement.classList.add("slick-header-column-active");let F=null,B=null;for(let v=0;v<f.length;v++)v>=p.length||!p[v]||(p[v].previousWidth=f[v].offsetWidth);if(this._options.forceFitColumns)for(F=0,B=0,e=m+1;e<p.length;e++)r=p[e],r?.resizable&&(B!==null&&(r.maxWidth?B+=r.maxWidth-(r.previousWidth||0):B=null),F+=(r.previousWidth||0)-Math.max(r.minWidth||0,this.absoluteColumnMinWidth));let N=0,k=0;for(e=0;e<=m;e++)r=p[e],r?.resizable&&(k!==null&&(r.maxWidth?k+=r.maxWidth-(r.previousWidth||0):k=null),N+=(r.previousWidth||0)-Math.max(r.minWidth||0,this.absoluteColumnMinWidth));F===null&&(F=1e5),N===null&&(N=1e5),B===null&&(B=1e5),k===null&&(k=1e5),o=i+Math.min(F,k),s=i-Math.min(N,B)},onResize:(R,y)=>{let O=R.touches?R.changedTouches[0]:R;this.columnResizeDragging=!0;let F,B=Math.min(o,Math.max(s,O.pageX))-i,N,k=0,v=0,L=this.getViewportInnerWidth();if(B<0){for(N=B,e=m;e>=0;e--)r=p[e],r?.resizable&&!r.hidden&&(F=Math.max(r.minWidth||0,this.absoluteColumnMinWidth),N&&(r.previousWidth||0)+N<F?(N+=(r.previousWidth||0)-F,r.width=F):(r.width=(r.previousWidth||0)+N,N=0));for(t=0;t<=m;t++)r=p[t],!(!r||r.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?v+=r.width||0:k+=r.width||0);if(this._options.forceFitColumns)for(N=-B,e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&r.resizable&&(N&&r.maxWidth&&r.maxWidth-(r.previousWidth||0)<N?(N-=r.maxWidth-(r.previousWidth||0),r.width=r.maxWidth):(r.width=(r.previousWidth||0)+N,N=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?v+=r.width||0:k+=r.width||0);else for(e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?v+=r.width||0:k+=r.width||0);if(this._options.forceFitColumns)for(N=-B,e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&r.resizable&&(N&&r.maxWidth&&r.maxWidth-(r.previousWidth||0)<N?(N-=r.maxWidth-(r.previousWidth||0),r.width=r.maxWidth):(r.width=(r.previousWidth||0)+N,N=0))}else{for(N=B,k=0,v=0,e=m;e>=0;e--)if(r=p[e],!(!r||r.hidden)&&r.resizable)if(N&&r.maxWidth&&r.maxWidth-(r.previousWidth||0)<N)N-=r.maxWidth-(r.previousWidth||0),r.width=r.maxWidth;else{let z=(r.previousWidth||0)+N,q=this.canvasWidthL+N;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(z>d&&q<L-this._options.frozenRightViewportMinWidth&&(d=z),r.width=q+this._options.frozenRightViewportMinWidth>L?d:z):r.width=z,N=0}for(t=0;t<=m;t++)r=p[t],!(!r||r.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?v+=r.width||0:k+=r.width||0);if(this._options.forceFitColumns)for(N=-B,e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&r.resizable&&(F=Math.max(r.minWidth||0,this.absoluteColumnMinWidth),N&&(r.previousWidth||0)+N<F?(N+=(r.previousWidth||0)-F,r.width=F):(r.width=(r.previousWidth||0)+N,N=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?v+=r.width||0:k+=r.width||0);else for(e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?v+=r.width||0:k+=r.width||0)}this.hasFrozenColumns()&&k!==this.canvasWidthL&&(_.width(this._headerL,k+1e3),_.setStyleSize(this._paneHeaderR,"left",k)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:y.resizeableElement,resizeHandle:y.resizeableHandleElement})},onResizeEnd:(R,y)=>{y.resizeableElement.classList.remove("slick-header-column-active");let O=y.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:O}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let F;for(e=0;e<p.length;e++)r=p[e],!(!r||r.hidden)&&(F=f[e].offsetWidth,r.previousWidth!==F&&r.rerenderOnResize&&this.invalidateAllRows());this.updateCanvasWidth(!0),this.render(),this.trigger(this.onColumnsResized,{triggeredByColumn:O}),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 r=null,i=-1;if(typeof e=="number")r=this.columns[e],i=e;else if(typeof e=="string")for(let o=0;o<this.columns.length;o++)this.columns[o].id===e&&(r=this.columns[o],i=o);if(!r)return;let s=this.getCanvasNode(0,0);this.getColAutosizeWidth(r,i,s,t||!1,i)}treatAsLocked(e={}){return!e.ignoreHeaderText&&!e.sizeToRemaining&&e.contentSizePx===e.headerWidthPx&&(e.widthPx??0)<100}autosizeColumns(e,t){let r=!this._hiddenParents?.length;r&&this.cacheCssForHiddenInit(),this.internalAutosizeColumns(e,t),r&&this.restoreCssFromHiddenInit()}internalAutosizeColumns(e,t){if(e=e||this._options.autosizeColsMode,e===At.LegacyForceFit||e===At.LegacyOff){this.legacyAutosizeColumns();return}if(e===At.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let r=this.getCanvasNode(0,0),i=this.getViewportInnerWidth(),s,o,l,h=!1,d=0,f=0,p=0,m=0,C=0;for(s=0;s<this.columns.length;s++)o=this.columns[s],this.getColAutosizeWidth(o,s,r,t||!1,s),C+=o.autoSize?.autosizeMode===Br.Locked?o.width||0:this.treatAsLocked(o.autoSize)&&o.autoSize?.widthPx||0,m+=o.autoSize?.autosizeMode===Br.Locked?o.width||0:this.treatAsLocked(o.autoSize)?o.autoSize?.widthPx||0:o.minWidth||0,d+=o.autoSize?.widthPx||0,f+=o.autoSize?.sizeToRemaining?0:o.autoSize?.widthPx||0,p+=o.autoSize?.sizeToRemaining&&o.minWidth||0;let x=d-f;if(e===At.FitViewportToCols){let R=d+(this.scrollbarDimensions?.width??0);e=At.IgnoreViewport,this._options.viewportMaxWidthPx&&R>this._options.viewportMaxWidthPx?(R=this._options.viewportMaxWidthPx,e=At.FitColsToViewport):this._options.viewportMinWidthPx&&R<this._options.viewportMinWidthPx&&(R=this._options.viewportMinWidthPx,e=At.FitColsToViewport),_.width(this._container,R)}if(e===At.FitColsToViewport)if(x>0&&f<i-p)for(s=0;s<this.columns.length;s++){if(o=this.columns[s],!o||o.hidden)continue;let R=i-f;o.autoSize?.sizeToRemaining?l=R*(o.autoSize?.widthPx||0)/x:l=o.autoSize?.widthPx||0,o.rerenderOnResize&&(o.width||0)!==l&&(h=!0),o.width=l}else if(this._options.viewportSwitchToScrollModeWidthPercent&&f+p>i*this._options.viewportSwitchToScrollModeWidthPercent/100||m>i)e=At.IgnoreViewport;else{let R=f-C,y=i-C-p;for(s=0;s<this.columns.length;s++)o=this.columns[s],!(!o||o.hidden)&&(l=o.width||0,o.autoSize?.autosizeMode!==Br.Locked&&!this.treatAsLocked(o.autoSize)&&(o.autoSize?.sizeToRemaining?l=o.minWidth||0:(l=y/R*(o.autoSize?.widthPx||0)-1,l<(o.minWidth||0)&&(l=o.minWidth||0),R-=o.autoSize?.widthPx||0,y-=l)),this.treatAsLocked(o.autoSize)&&(l=o.autoSize?.widthPx||0,l<(o.minWidth||0)&&(l=o.minWidth||0)),o.rerenderOnResize&&o.width!==l&&(h=!0),o.width=l)}if(e===At.IgnoreViewport)for(s=0;s<this.columns.length;s++)!this.columns[s]||this.columns[s].hidden||(l=this.columns[s].autoSize?.widthPx||0,this.columns[s].rerenderOnResize&&this.columns[s].width!==l&&(h=!0),this.columns[s].width=l);this.reRenderColumns(h)}getColAutosizeWidth(e,t,r,i,s){let o=e.autoSize;if(o.widthPx=e.width,o.autosizeMode===Br.Locked||o.autosizeMode===Br.Guide)return;let l=this.getDataLength(),h=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(o.autosizeMode===Br.ContentIntelligent){let p=o.colDataTypeOf,m;if(l>0){let C=this.getDataItem(0);C&&(m=C[e.field],h.test(m)&&(m=Date.parse(m)),p=typeof m,p==="object"&&(m instanceof Date&&(p="date"),typeof moment<"u"&&m instanceof moment&&(p="moment")))}p==="boolean"&&(o.colValueArray=[!0,!1]),p==="number"&&(o.valueFilterMode=si.GetGreatestAndSub,o.rowSelectionMode=Pi.AllRows),p==="string"&&(o.valueFilterMode=si.GetLongestText,o.rowSelectionMode=Pi.AllRows,o.allowAddlPercent=5),p==="date"&&(o.colValueArray=[new Date(2009,8,30,12,20,20)]),p==="moment"&&typeof moment<"u"&&(o.colValueArray=[moment([2009,8,30,12,20,20])])}let d=o.contentSizePx=this.getColContentSize(e,t,r,i,s);d===0&&(d=o.widthPx||0);let f=o.allowAddlPercent?1+o.allowAddlPercent/100:1;d=d*f+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(o.autosizeMode===Br.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),o.widthPx=d}getColContentSize(e,t,r,i,s){let o=e.autoSize,l=1,h,d,f=0,p=0;if(o.headerWidthPx=0,o.ignoreHeaderText||(o.headerWidthPx=this.getColHeaderWidth(e)),o.headerWidthPx===0&&(o.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),o.colValueArray)return p=this.getColWidth(e,r,o.colValueArray),Math.max(o.headerWidthPx,p);let m={};m.colIndex=t,m.rowCount=this.getDataLength(),m.startIndex=0,m.endIndex=m.rowCount-1,m.valueArr=null,m.getRowVal=x=>this.getDataItem(x)[e.field];let C=(i?o.rowSelectionModeOnInit:void 0)||o.rowSelectionMode;if(C===Pi.FirstRow&&(m.endIndex=0),C===Pi.LastRow&&(m.endIndex=m.startIndex=m.rowCount-1),C===Pi.FirstNRows&&(m.endIndex=Math.min(o.rowSelectionCount||0,m.rowCount)-1),o.valueFilterMode===si.DeDuplicate){let x={};for(h=m.startIndex;h<=m.endIndex;h++)x[m.getRowVal(h)]=!0;if(Object.keys)m.valueArr=Object.keys(x);else{m.valueArr=[];for(let R in x)x&&m.valueArr.push(R)}m.startIndex=0,m.endIndex=m.length-1}if(o.valueFilterMode===si.GetGreatestAndSub){let x,R=0;for(h=m.startIndex;h<=m.endIndex;h++)d=m.getRowVal(h),Math.abs(d)>R&&(x=d,R=Math.abs(d));x=""+x,x=Array(x.length+1).join("9"),x=+x,m.valueArr=[x],m.startIndex=m.endIndex=0}if(o.valueFilterMode===si.GetLongestTextAndSub){for(h=m.startIndex;h<=m.endIndex;h++)d=m.getRowVal(h),(d||"").length>f&&(f=d.length);d=Array(f+1).join("m"),l=this._options.autosizeTextAvgToMWidthRatio||0,m.maxLen=f,m.valueArr=[d],m.startIndex=m.endIndex=0}if(o.valueFilterMode===si.GetLongestText){f=0;let x=0;for(h=m.startIndex;h<=m.endIndex;h++)d=m.getRowVal(h),(d||"").length>f&&(f=d.length,x=h);d=m.getRowVal(x),m.maxLen=f,m.valueArr=[d],m.startIndex=m.endIndex=0}return m.maxLen&&m.maxLen>30&&s>1&&(o.sizeToRemaining=!0),p=this.getColWidth(e,r,m)*l,Math.max(o.headerWidthPx,p)}getColWidth(e,t,r){let i=_.createDomElement("div",{className:"slick-row ui-widget-content"},t),s=_.createDomElement("div",{className:"slick-cell"},i);s.style.position="absolute",s.style.visibility="hidden",s.style.textOverflow="initial",s.style.whiteSpace="nowrap";let o,l,h=0,d="",f,p,m=e.autoSize.widthEvalMode===Lo.TextOnly;if(e.autoSize?.widthEvalMode===Lo.Auto){let C=!e.formatterOverride&&!e.formatter,x=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;m=C||x}if(this.canvas_context&&m){let C=getComputedStyle(s);for(this.canvas_context.font=C.fontSize+" "+C.fontFamily,o=r.startIndex;o<=r.endIndex;o++)p=r.valueArr?r.valueArr[o]:r.getRowVal(o),e.formatterOverride?f=e.formatterOverride(o,r.colIndex,p,e,this.getDataItem(o),this):e.formatter?f=e.formatter(o,r.colIndex,p,e,this.getDataItem(o),this):f=""+p,l=f?this.canvas_context.measureText(f).width:0,l>h&&(h=l,d=f);return s.textContent=d,l=s.offsetWidth,i.remove(),l}for(o=r.startIndex;o<=r.endIndex;o++)p=r.valueArr?r.valueArr[o]:r.getRowVal(o),e.formatterOverride?f=e.formatterOverride(o,r.colIndex,p,e,this.getDataItem(o),this):e.formatter?f=e.formatter(o,r.colIndex,p,e,this.getDataItem(o),this):f=""+p,this.applyFormatResultToCellNode(f,s),l=s.offsetWidth,l>h&&(h=l);return i.remove(),h}getColHeaderWidth(e){let t=0,r=this.getUID()+e.id,i=document.getElementById(r),s=`${r}_`,o=i.cloneNode(!0);if(i)o.id=s,o.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",i.parentNode.insertBefore(o,i),t=o.offsetWidth,o.parentNode.removeChild(o);else{let l=this.getHeader(e);i=_.createDomElement("div",{id:s,className:"ui-state-default slick-state-default slick-header-column"},l);let h=_.createDomElement("span",{className:"slick-column-name"},i);this.applyHtmlCode(h,e.name),o.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&i.classList.add(..._.classNameToList(e.headerCssClass)),t=i.offsetWidth,l.removeChild(i)}return t}legacyAutosizeColumns(){let e,t,r=0,i=0,s=0,o=[],l=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){o.push(0);continue}o.push(t.width||0),i+=t.width||0,t.resizable&&(r+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(s=i;i>l&&r;){let d=(i-l)/r;for(e=0;e<this.columns.length&&i>l;e++){if(t=this.columns[e],!t||t.hidden)continue;let f=o[e];if(!t.resizable||f<=t.minWidth||f<=this.absoluteColumnMinWidth)continue;let p=Math.max(t.minWidth,this.absoluteColumnMinWidth),m=Math.floor(d*(f-p))||1;m=Math.min(m,f-p),i-=m,r-=m,o[e]-=m}if(s<=i)break;s=i}for(s=i;i<l;){let d=l/i;for(e=0;e<this.columns.length&&i<l;e++){if(t=this.columns[e],!t||t.hidden)continue;let f=o[e],p;!t.resizable||t.maxWidth<=f?p=0:p=Math.min(Math.floor(d*f)-f,t.maxWidth-f||1e6)||1,i+=p,o[e]+=i<=l?p:0}if(s>=i)break;s=i}let h=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==o[e]&&(h=!0),this.columns[e].width=o[e]);this.reRenderColumns(h)}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(r=>{for(let i=0;i<r.children.length;i++,e++){let s=r.children[i],o=((t[e]||{}).width||0)-this.headerColumnWidthDiff;_.width(s)!==o&&_.width(s,o)}}),this.updateColumnCaches()}applyColumnWidths(){let e=0,t=0,r;for(let i=0;i<this.columns.length;i++)this.columns[i]?.hidden||(t=this.columns[i].width||0,r=this.getColumnCssRules(i),r.left.style.left=`${e}px`,r.right.style.right=(this._options.frozenColumn!==-1&&i>this._options.frozenColumn?this.canvasWidthR:this.canvasWidthL)-e-t+"px",this._options.frozenColumn!==i&&(e+=this.columns[i].width)),this._options.frozenColumn===i&&(e=0)}setSortColumn(e,t){this.setSortColumns([{columnId:e,sortAsc:t}])}getColumnByIndex(e){let t;return this._headers.every(r=>{let i=r.children.length;return e<i?(t=r.children[e],!1):(e-=i,!0)}),t}setSortColumns(e){this.sortColumns=e;let t=this._options.numberedMultiColumnSort&&this.sortColumns.length>1;this._headers.forEach(i=>{let s=i.querySelectorAll(".slick-header-column-sorted");s.forEach(o=>{o.classList.remove("slick-header-column-sorted")}),s=i.querySelectorAll(".slick-sort-indicator"),s.forEach(o=>{o.classList.remove("slick-sort-indicator-asc"),o.classList.remove("slick-sort-indicator-desc")}),s=i.querySelectorAll(".slick-sort-indicator-numbered"),s.forEach(o=>{o.textContent=""})});let r=1;this.sortColumns.forEach(i=>{_.isDefined(i.sortAsc)||(i.sortAsc=!0);let s=this.getColumnIndex(i.columnId);if(_.isDefined(s)){let o=this.getColumnByIndex(s);if(o){o.classList.add("slick-header-column-sorted");let l=o.querySelector(".slick-sort-indicator");l?.classList.add(i.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),t&&(l=o.querySelector(".slick-sort-indicator-numbered"),l&&(l.textContent=String(r)))}}r++})}getColumns(){return this.columns}getSortColumns(){return this.sortColumns}updateColumnCaches(){this.columnPosLeft=[],this.columnPosRight=[];let e=0;for(let t=0,r=this.columns.length;t<r;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?(_.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),_.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=_.extend({},this._columnDefaults,t),t.autoSize=_.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 r=this.data?.getItemMetadata?.(e);return(r?.columns&&(r.columns[t.id]||r.columns[this.getColumnIndex(t.id)]))?.formatter||r?.formatter||t.formatter||this._options.formatterFactory?.getFormatter(t)||this._options.defaultFormatter}getEditor(e,t){let r=this.columns[t],i=this.getItemMetadaWhenExists(e)?.columns;return i?.[r.id]?.editor!==void 0?i[r.id].editor:i?.[t]?.editor!==void 0?i[t].editor:r.editor||this._options?.editorFactory?.getEditor(r)}getDataItemValueForColumn(e,t){return this._options.dataItemColumnValueExtractor?this._options.dataItemColumnValueExtractor(e,t):e[t.field]}resetActiveCell(){this.setActiveCellInternal(null,!1)}unsetActiveCell(){_.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,r,i,s){if(this.unsetActiveCell(),this.activeCellNode=e,_.isDefined(this.activeCellNode)){let o=_.offset(this.activeCellNode),l=Math.floor(_.offset(_.parents(this.activeCellNode,".grid-canvas")[0]).top),h=_.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&h&&(l-=this._options.frozenBottom?_.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(o.left,Math.ceil(o.top)-l);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!_.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(f=>f.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(f=>f.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,r,s)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,r,s))}else this.activeRow=this.activeCell=null;i||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let r=this.getDataLength();return!(e<r&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=r||!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 r=this.columns[this.activeCell],i=this.getFormatter(this.activeRow,r)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,r),r,t,this);this.applyFormatResultToCellNode(i,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,r){this.makeActiveCellEditable(e,t,r)}makeActiveCellEditable(e,t,r){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 i=this.columns[this.activeCell],s=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:s,column:i,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let o=e||this.getEditor(this.activeRow,this.activeCell);if(!o||typeof o!="function")return;!e&&!o.suppressClearOnEdit&&_.emptyElement(this.activeCellNode);let l=this.getItemMetadaWhenExists(this.activeRow);l=l?.columns;let h=l&&(l[i.id]||l[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:i,columnMetaData:h,item:s||{},event:r,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new o(d),s&&this.currentEditor&&(this.currentEditor.loadValue(s),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),r=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let i=e.currentEditor.validate();if(i.valid){let s=e.activeRow,o=e.activeCell,l=e.currentEditor,h=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let f={row:s,cell:o,editor:l,serializedValue:h,prevSerializedValue:d,execute:()=>{l.applyValue(t,h),e.updateRow(s),e.trigger(e.onCellChange,{command:"execute",row:s,cell:o,item:t,column:r})},undo:()=>{l.applyValue(t,d),e.updateRow(s),e.trigger(e.onCellChange,{command:"undo",row:s,cell:o,item:t,column:r})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,r,f)):(f.execute(),e.makeActiveCellNormal(!0))}else{let f={};e.currentEditor.applyValue(f,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:f,column:r})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),_.width(e.activeCellNode),e.activeCellNode.classList.add("invalid")),e.trigger(e.onValidationError,{editor:e.currentEditor,cellNode:e.activeCellNode,validationResults:i,row:e.activeRow,cell:e.activeCell,column:r}),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,r){let i=r||new as(r,t),s=t||{};return s.grid=this,e.notify(s,i,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 r=e.getNativeEvent(),i=this.selectedRows.slice(0);this.selectedRows=[];let s={};for(let o=0;o<t.length;o++)for(let l=t[o].fromRow;l<=t[o].toRow;l++){s[l]||(this.selectedRows.push(l),s[l]={});for(let h=t[o].fromCell;h<=t[o].toCell;h++)this.canCellBeSelected(l,h)&&(s[l][this.columns[h].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",s),this.simpleArrayEquals(i,this.selectedRows)){let o=r?.detail?.caller??"click",l=new Set(this.getSelectedRows()),h=new Set(i),d=Array.from(l).filter(p=>!h.has(p)),f=Array.from(h).filter(p=>!l.has(p));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:i,caller:o,changedSelectedRows:d,changedUnselectedRows:f},e)}}handleMouseWheel(e,t,r,i){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+r*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-i*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+r*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let r=this.getCellFromEvent(e);if(!r||!this.cellExists(r.row,r.cell))return!1;let i=this.trigger(this.onDragInit,t,e);return i.isImmediatePropagationStopped()?i.getReturnValue():!1}handleDragStart(e,t){let r=this.getCellFromEvent(e);if(!r||!this.cellExists(r.row,r.cell))return!1;let i=this.trigger(this.onDragStart,t,e);return i.isImmediatePropagationStopped()?i.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===ar.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===ar.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===ar.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===ar.LEFT?t=this.navigateLeft():e.which===ar.RIGHT?t=this.navigateRight():e.which===ar.UP?t=this.navigateUp():e.which===ar.DOWN?t=this.navigateDown():e.which===ar.TAB?t=this.navigateNext():e.which===ar.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===ar.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 as?e.getNativeEvent():e;if(!this.currentEditor&&(t.target!==document.activeElement||t.target.classList.contains("slick-cell"))){let i=this.getTextSelection();this.setFocus(),this.setTextSelection(i)}let r=this.getCellFromEvent(t);if(!(!r||this.currentEditor!==null&&this.activeRow===r.row&&this.activeCell===r.cell)&&(e=this.trigger(this.onClick,{row:r.row,cell:r.cell},e||t),!e.isImmediatePropagationStopped()&&this.canCellBeActive(r.row,r.cell)&&(!this.getEditorLock()?.isActive()||this.getEditorLock()?.commitCurrentEdit()))){this.scrollRowIntoView(r.row,!1);let i=t.target?.className===__,s=this.columns[r.cell],o=!!(this._options.editable&&s?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(this.getCellNode(r.row,r.cell),null,i,o,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=_.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=_.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=_.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=_.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"),r=t&&_.storage.get(t,"column");this.trigger(this.onHeaderContextMenu,{column:r},e)}handleHeaderClick(e){if(!this.columnResizeDragging){let t=e.target.closest(".slick-header-column"),r=t&&_.storage.get(t,"column");r&&this.trigger(this.onHeaderClick,{column:r},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"),r=t&&_.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:r},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),r=t&&_.storage.get(t,"column");this.trigger(this.onFooterClick,{column:r},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 r=!1,i=!1,s=()=>{r?i=!0:l()},o=()=>{i=!1},l=()=>{r=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(h,t),e.call(this)},h=()=>{i?(o(),l()):r=!1};return{enqueue:s.bind(this),dequeue:o.bind(this)}}getCellFromEvent(e){let t=e instanceof as?e.getNativeEvent():e,r=t.touches?t.touches[0]:t,i=t.target.closest(".slick-cell");if(!i)return null;let s=this.getRowFromNode(i.parentNode);if(this.hasFrozenRows){let l=0,h=_.offset(_.parents(i,".grid-canvas")[0]);_.parents(i,".grid-canvas-bottom").length&&(l=this._options.frozenBottom?_.height(this._canvasTopL):this.frozenRowsHeight),s=this.getCellFromPoint(r.clientX-h.left,r.clientY-h.top+l+document.documentElement.scrollTop).row}let o=this.getCellFromNode(i);return!_.isDefined(s)||!_.isDefined(o)?null:{row:s,cell:o}}applyHtmlCode(e,t,r){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)r?.emptyTarget!==!1&&_.emptyElement(e),e.appendChild(t);else{if(r?.skipEmptyReassignment!==!1&&!_.isDefined(t)&&!e.innerHTML)return;let i=t;typeof i=="number"||typeof i=="boolean"?e.textContent=i:(i=this.sanitizeHtmlString(t),this._options.enableHtmlRendering&&i?e.innerHTML=i:e.textContent=i)}}getCanvasNode(e,t){return this._getContainerElement(this.getCanvases(),e,t)}getActiveCanvasNode(e){return e===void 0?this._activeCanvasNode:(e instanceof as&&(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 as&&(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,r=this.columns.length;for(t=0;t<r;t++){if(!this.columns[t]||this.columns[t].hidden)continue;let i=this.columns[t].width;this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=i||0:this.headersWidthL+=i||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 r=this.canvasWidthL+this.canvasWidthR;if(this._options.fullWidthRows){let i=Math.max(r,e)-r;i>0&&(r+=i,this.hasFrozenColumns()?this.canvasWidthR+=i:this.canvasWidthL+=i)}return r}updateCanvasWidth(e){let t=this.canvasWidth,r=this.canvasWidthL,i=this.canvasWidthR;this.canvasWidth=this.getCanvasWidth(),this._options.createTopHeaderPanel&&_.width(this._topHeaderPanel,this._options.topHeaderPanelWidth??this.canvasWidth);let s=this.canvasWidth!==t||this.canvasWidthL!==r||this.canvasWidthR!==i;if(s||this.hasFrozenColumns()||this.hasFrozenRows)if(_.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),_.width(this._headerL,this.headersWidthL),_.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let o=_.width(this._container)||0;if(o>0&&this.canvasWidthL>o&&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");_.width(this._canvasTopR,this.canvasWidthR),_.width(this._paneHeaderL,this.canvasWidthL),_.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),_.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),_.width(this._paneTopL,this.canvasWidthL),_.setStyleSize(this._paneTopR,"left",this.canvasWidthL),_.width(this._paneTopR,this.viewportW-this.canvasWidthL),_.width(this._headerRowScrollerL,this.canvasWidthL),_.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),_.width(this._headerRowL,this.canvasWidthL),_.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(_.width(this._footerRowScrollerL,this.canvasWidthL),_.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),_.width(this._footerRowL,this.canvasWidthL),_.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&_.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),_.width(this._viewportTopL,this.canvasWidthL),_.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(_.width(this._paneBottomL,this.canvasWidthL),_.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),_.width(this._viewportBottomL,this.canvasWidthL),_.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),_.width(this._canvasBottomL,this.canvasWidthL),_.width(this._canvasBottomR,this.canvasWidthR))}else _.width(this._paneHeaderL,"100%"),_.width(this._paneTopL,"100%"),_.width(this._headerRowScrollerL,"100%"),_.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(_.width(this._footerRowScrollerL,"100%"),_.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&_.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),_.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(_.width(this._viewportBottomL,"100%"),_.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),_.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),_.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(_.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),_.width(this._footerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0))),(s||e)&&this.applyColumnWidths()}getPreHeaderPanel(){return this._preHeaderPanel}getPreHeaderPanelLeft(){return this._preHeaderPanel}getPreHeaderPanelRight(){return this._preHeaderPanelR}getTopHeaderPanel(){return this._topHeaderPanel}setPaneVisibility(){this.hasFrozenColumns()?(_.show(this._paneHeaderR),_.show(this._paneTopR),this.hasFrozenRows?(_.show(this._paneBottomL),_.show(this._paneBottomR)):(_.hide(this._paneBottomR),_.hide(this._paneBottomL))):(_.hide(this._paneHeaderR),_.hide(this._paneTopR),_.hide(this._paneBottomR),this.hasFrozenRows?_.show(this._paneBottomL):(_.hide(this._paneBottomR),_.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=_.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; }`],r=this._style.sheet;if(r){t.forEach(i=>{r.insertRule(i)});for(let i=0;i<this.columns.length;i++)!this.columns[i]||this.columns[i].hidden||(r.insertRule(`.${this.uid} .l${i} { }`),r.insertRule(`.${this.uid} .r${i} { }`))}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 r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(e.push(`.${this.uid} .l${r} { }`),e.push(`.${this.uid} .r${r} { }`));this._style.styleSheet?this._style.styleSheet.cssText=e.join(" "):this._style.appendChild(document.createTextNode(e.join(" ")))}getColumnCssRules(e){let t;if(!this.stylesheet){let r=(this._options.shadowRoot||document).styleSheets;for(this._options.devMode&&typeof this._options.devMode?.ownerNodeIndex=="number"&&this._options.devMode.ownerNodeIndex>=0&&(r[this._options.devMode.ownerNodeIndex].ownerNode=this._style),t=0;t<r.length;t++)if((r[t].ownerNode||r[t].owningElement)===this._style){this.stylesheet=r[t];break}if(!this.stylesheet)throw new Error("SlickGrid Cannot find stylesheet.");this.columnCssRulesL=[],this.columnCssRulesR=[];let i=this.stylesheet.cssRules||this.stylesheet.rules,s,o;for(t=0;t<i.length;t++){let l=i[t].selectorText;(s=/\.l\d+/.exec(l))?(o=parseInt(s[0].substr(2,s[0].length-2),10),this.columnCssRulesL[o]=i[t]):(s=/\.r\d+/.exec(l))&&(o=parseInt(s[0].substr(2,s[0].length-2),10),this.columnCssRulesR[o]=i[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,r,i){let s=i!==!1;if(this._options[e]!==r)if(this._options[e]=r,r){if(s){_.slideDown(t,this.resizeCanvas.bind(this));return}_.show(t),this.resizeCanvas()}else{if(s){_.slideUp(t,this.resizeCanvas.bind(this));return}_.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,r,i,s){let o=this.getDataItem(r),l=r<s&&!o,h="slick-row"+(this.hasFrozenRows&&r<=this._options.frozenRow?" frozen":"")+(l?" loading":"")+(r===this.activeRow&&this._options.showCellSelection?" active":"")+(r%2===1?" odd":" even");o||(h+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(r);d?.cssClasses&&(h+=` ${d.cssClasses}`);let f=_.createDomElement("div",{className:`ui-widget-content ${h}`,role:"row",dataset:{row:`${r}`}}),p=this.getFrozenRowOffset(r),m=this.getRowTop(r)-p;this._options.rowTopOffsetRenderType==="transform"?f.style.transform=`translateY(${m}px)`:f.style.top=`${m}px`;let C;e.push(f),this.hasFrozenColumns()&&(C=f.cloneNode(!0),t.push(C));let x=this.columns.length,R,y,O,F,B=!0;for(let N=0,k=x;N<k;N++){if(B=!0,F=this.columns[N],!F||F.hidden)continue;y=1,O=1,R=null,d?.columns&&(R=d.columns[F.id]||d.columns[N],y=R?.colspan||1,O=R?.rowspan||1,y==="*"&&(y=k-N),O>s-r&&(O=s-r)),!this._options.enableCellRowSpan&&O>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 v=y;if(!this.getParentRowSpanByCell(r,N)){if(this.columnPosRight[Math.min(k-1,N+v-1)]>i.leftPx){if(!F.alwaysRenderColumn&&this.columnPosLeft[N]>i.rightPx&&(B=!1),B){let L=this.hasFrozenColumns()&&N>this._options.frozenColumn?C:f;this.appendCellHtml(L,r,N,v,O,R,o)}}else(F.alwaysRenderColumn||this.hasFrozenColumns()&&N<=this._options.frozenColumn)&&this.appendCellHtml(f,r,N,v,O,R,o);v>1&&(N+=v-1)}}}appendCellHtml(e,t,r,i,s,o,l){let h=this.columns[r],d=`slick-cell l${r} r${Math.min(this.columns.length-1,r+i-1)}`+(h.cssClass?` ${h.cssClass}`:"")+(s>1?" rowspan":"")+(o?.cssClass?` ${o.cssClass}`:"");this.hasFrozenColumns()&&r<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&r===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(O=>{this.cellCssClasses[O][t]?.[h.id]&&(d+=` ${this.cellCssClasses[O][t][h.id]}`)});let f=null,p="";l&&(f=this.getDataItemValueForColumn(l,h),p=this.getFormatter(t,h)(t,r,f,h,l,this),p==null&&(p=""));let m=this.trigger(this.onBeforeAppendCell,{row:t,cell:r,value:f,dataContext:l}).getReturnValue(),C=typeof m=="string"?m:"";p?.addClasses&&(C+=_.classNameToList((C?" ":"")+p.addClasses).join(" "));let x=p?.toolTip?`${p.toolTip}`:"",R=_.createDomElement("div",{className:_.classNameToList(`${d} ${C||""}`).join(" "),role:"gridcell",tabIndex:-1});R.setAttribute("aria-describedby",this.uid+h.id),x&&R.setAttribute("title",x);let y=this.getCellHeight(t,s);if(s>1&&y!==this._options.rowHeight-this.cellHeightDiff&&(R.style.height=`${y||0}px`),h.hasOwnProperty("cellAttrs")&&h.cellAttrs instanceof Object&&Object.keys(h.cellAttrs).forEach(O=>{h.cellAttrs.hasOwnProperty(O)&&R.setAttribute(O,h.cellAttrs[O])}),l){let O=Object.prototype.toString.call(p)!=="[object Object]"?p:p.html||p.text;this.applyHtmlCode(R,O)}e.appendChild(R),p.insertElementAfterTarget&&_.insertAfterElement(R,p.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(r),this.rowsCache[t].cellColSpans[r]=i}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let r=e.top,i=e.bottom;r<=i;r++){let s=this.getRowSpanIntersect(r);s!==null&&t.add(s)}Object.keys(this.rowsCache).forEach(r=>{if(this.rowsCache){let i=+r,s=!0;this.hasFrozenRows&&(this._options.frozenBottom&&i>=this.actualFrozenRow||!this._options.frozenBottom&&i<=this.actualFrozenRow)&&(s=!1),(i=parseInt(r,10))!==this.activeRow&&(i<e.top||i>e.bottom)&&s&&!t.has(i)&&this.removeRowFromCache(i)}}),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 r=e.length,i=new Set,s=new Set,o=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let l=0;l<r;l++)if(t=e[l],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!o){i.add(t);let h=this.getRowSpanIntersect(t);h!==null&&i.add(h)}if(this._options.enableCellRowSpan&&!o){for(let l of Array.from(i)){let h=this.getRowSpanColumnIntersects(l);for(let d of h){let f=this.getParentRowSpanByCell(l,d);f&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(f.range),s.add(f.range.split(":").map(Number)[0]))}}for(let l of Array.from(s))this.remapRowSpanMetadataByRow(l)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let r=this.getRowSpanIntersect(e);r!==null&&t.push(r)}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(r=>r.parentElement?.removeChild(r)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let r=this.getCellNode(e,t);if(!r)return;let i=this.columns[t],s=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(s);else{let o=s?this.getFormatter(e,i)(e,t,this.getDataItemValueForColumn(s,i),i,s,this):"";this.applyFormatResultToCellNode(o,r),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let r,i=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(s=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(s))return;let o=+s,l=this.columns[o],h=t.cellNodesByColumnIdx[o];e===this.activeRow&&o===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(i):i?(r=this.getFormatter(e,l)(e,o,this.getDataItemValueForColumn(i,l),l,i,this),this.applyFormatResultToCellNode(r,h)):_.emptyElement(h)}),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,r=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,i=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,s=this._options.showColumnHeader?_.toFloat(_.height(this._headerScroller[0])):0;this.viewportH=_.toFloat(e.height)-_.toFloat(e.paddingTop)-_.toFloat(e.paddingBottom)-this.topPanelH-r-i-this.headerRowH-s-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(_.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 r=this.paneTopH+this._headerScrollerL.offsetHeight;r+=this.getVBoxDelta(this._container),this._options.showPreHeaderPanel&&(r+=this._options.preHeaderPanelHeight),_.height(this._container,r)}this._paneTopL.style.position="relative"}let e=_.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),_.setStyleSize(this._paneTopL,"top",e||e),_.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||_.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let r=_.height(this._paneHeaderL);r&&(r+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),_.setStyleSize(this._paneTopR,"top",r),_.height(this._paneTopR,this.paneTopH),_.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(_.setStyleSize(this._paneBottomL,"top",t),_.height(this._paneBottomL,this.paneBottomH),_.setStyleSize(this._paneBottomR,"top",t),_.height(this._paneBottomR,this.paneBottomH),_.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(_.width(this._paneBottomL,"100%"),_.height(this._paneBottomL,this.paneBottomH),_.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(_.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(_.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&_.height(this._canvasBottomR,this.frozenRowsHeight)):(_.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&_.height(this._canvasTopR,this.frozenRowsHeight))):_.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===At.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(),r=0,i=this.hasFrozenRows&&!this._options.frozenBottom?_.height(this._canvasBottomL):_.height(this._canvasTopL);this.hasFrozenRows?r=this.getDataLength()-this._options.frozenRow:r=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let s=_.height(this._viewportScrollContainerY),o=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&r*this._options.rowHeight>s,this.makeActiveCellNormal();let l=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let f=+d;f>l&&this.removeRowFromCache(f)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>l&&this.resetActiveCell(),i=this.h,this._options.autoHeight?this.h=this._options.rowHeight*r:(this.th=Math.max(this._options.rowHeight*r,s-(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!==i||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(_.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&_.height(this._canvasBottomR,this.h)):(_.height(this._canvasTopL,this.h),_.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let h=this.scrollTop+this.offset<=this.th-s;this.th===0||this.scrollTop===0?this.page=this.offset=0:h?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-s+(this.scrollbarDimensions?.height??0)),this.h!==i&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===At.LegacyForceFit&&o!==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 r=this.getVisibleRange(e,t),i=Math.round(this.viewportH/this._options.rowHeight),s=this._options.minRowBuffer;return this.vScrollDir===-1?(r.top-=i,r.bottom+=s):this.vScrollDir===1?(r.top-=s,r.bottom+=i):(r.top-=s,r.bottom+=s),r.top=Math.max(0,r.top),r.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,r.bottom),r.leftPx-=this.viewportW,r.rightPx+=this.viewportW,r.leftPx=Math.max(0,r.leftPx),r.rightPx=Math.min(this.canvasWidth,r.rightPx),r}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let r=t.rowNode,i=Array.from(r[0].children);r.length>1&&(i=i.concat(Array.from(r[1].children)));let s=i.length-1;for(;t.cellRenderQueue.length;){let o=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[o]=i[s--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let r=this.rowsCache[t],i=[];Object.keys(r.cellNodesByColumnIdx).forEach(l=>{if(!r.cellNodesByColumnIdx.hasOwnProperty(l))return;let h=+l;if(h<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[h]?.alwaysRenderColumn)return;let d=r.cellColSpans[h];(this.columnPosLeft[h]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(h||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(h)===this.activeCell||i.push(h))});let s,o;for(;_.isDefined(s=i.pop());)o=r.cellNodesByColumnIdx[s],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[s]?this.queuePostProcessedCellForCleanup(o,s,t):o.parentElement?.removeChild(o),delete r.cellColSpans[s],delete r.cellNodesByColumnIdx[s],this.postProcessedRows[t]&&delete this.postProcessedRows[t][s]}cleanUpAndRenderCells(e){let t,r=document.createElement("div"),i=[],s,o,l,h=this.columns.length;for(let p=e.top,m=e.bottom;p<=m;p++){if(t=this.rowsCache[p],!t)continue;this.ensureCellNodesInRowsCache(p),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(p)===null)&&this.cleanUpCells(e,p),s=0;let C=this.getItemMetadaWhenExists(p);C=C?.columns;let x=this.getDataItem(p);for(let R=0,y=h;R<y;R++){if(!this.columns[R]||this.columns[R].hidden)continue;if(this.columnPosLeft[R]>e.rightPx)break;if(_.isDefined(o=t.cellColSpans[R])){R+=o>1?o-1:0;continue}o=1,l=null,C&&(l=C[this.columns[R].id]||C[R],o=l?.colspan??1,o==="*"&&(o=y-R));let O=o;if(!this.getParentRowSpanByCell(p,R)){if(this.columnPosRight[Math.min(y-1,R+O-1)]>e.leftPx){let F=this.getRowspan(p,R);this.appendCellHtml(r,p,R,O,F,l,x),s++}R+=O>1?O-1:0}}s&&i.push(p)}if(!r.children.length)return;let d,f;for(;_.isDefined(d=i.pop());){t=this.rowsCache[d];let p;for(;_.isDefined(p=t.cellRenderQueue.pop());)f=r.lastChild,f&&(this.hasFrozenColumns()&&p>this._options.frozenColumn?t.rowNode[1].appendChild(f):t.rowNode[0].appendChild(f),t.cellNodesByColumnIdx[p]=f)}}renderRows(e){let t=[],r=[],i=[],s=!1,o=this.getDataLength(),l=new Set,h=new Set;for(let f=e.top,p=e.bottom;f<=p;f++)if(!(this.rowsCache[f]||this.hasFrozenRows&&this._options.frozenBottom&&f===this.getDataLength())){if(this.renderedRows++,i.push(f),h.add(f),this.rowsCache[f]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let m=this.getRowSpanIntersect(f);m!==null&&h.add(m)}this.appendRowHtml(t,r,f,e,o),l.add(f),this.activeCellNode&&this.activeRow===f&&(s=!0),this.counter_rows_rendered++}let d=this.setDifference(h,l);if(d.size>0&&d.forEach(f=>{this.removeRowFromCache(f),i.push(f),this.rowsCache[f]=this.createEmptyCachingRow(),this.appendRowHtml(t,r,f,e,o)}),i.length){let f=document.createElement("div"),p=document.createElement("div");t.forEach(m=>f.appendChild(m)),r.forEach(m=>p.appendChild(m));for(let m=0,C=i.length;m<C;m++)this.hasFrozenRows&&i[m]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(i[m])&&f.firstChild&&p.firstChild&&(this.rowsCache[i[m]].rowNode=[f.firstChild,p.firstChild],this._canvasBottomL.appendChild(f.firstChild),this._canvasBottomR.appendChild(p.firstChild)):this.rowsCache?.hasOwnProperty(i[m])&&f.firstChild&&(this.rowsCache[i[m]].rowNode=[f.firstChild],this._canvasBottomL.appendChild(f.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(i[m])&&f.firstChild&&p.firstChild&&(this.rowsCache[i[m]].rowNode=[f.firstChild,p.firstChild],this._canvasTopL.appendChild(f.firstChild),this._canvasTopR.appendChild(p.firstChild)):this.rowsCache?.hasOwnProperty(i[m])&&f.firstChild&&(this.rowsCache[i[m]].rowNode=[f.firstChild],this._canvasTopL.appendChild(f.firstChild));s&&(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,r=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?r.style.transform=`translateY(${this.getRowTop(t)}px)`:r.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 r=_.extend(!0,{},t);this._options.frozenBottom?(r.top=this.actualFrozenRow,r.bottom=this.getDataLength()):(r.top=0,r.bottom=this._options.frozenRow),this.cleanUpAndRenderCells(r)}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)-_.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 r=e-this.offset;if(this.offset!==t){let i=this.getVisibleRange(r);this.cleanupRows(i),this.updateRowPositions()}this.prevScrollTop!==r&&(this.vScrollDir=this.prevScrollTop+t<r+this.offset?1:-1,this.lastRenderedScrollTop=this.scrollTop=this.prevScrollTop=r,this.hasFrozenColumns()&&(this._viewportTopL.scrollTop=r),this.hasFrozenRows&&(this._viewportBottomL.scrollTop=this._viewportBottomR.scrollTop=r),this._viewportScrollContainerY&&(this._viewportScrollContainerY.scrollTop=r),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,r=this._viewportScrollContainerY.scrollWidth-this._viewportScrollContainerY.clientWidth;t=Math.max(0,t),r=Math.max(0,r),this.scrollTop>t&&(this.scrollTop=t,this.scrollHeight=t),this.scrollLeft>r&&(this.scrollLeft=r);let i=Math.abs(this.scrollTop-this.prevScrollTop),s=Math.abs(this.scrollLeft-this.prevScrollLeft);if(s&&(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)),i&&!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),i<this.viewportH)this.scrollTo(this.scrollTop+this.offset);else{let o=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),o!==this.offset&&this.invalidateAllRows()}if(s||i){let o=Math.abs(this.lastRenderedScrollLeft-this.scrollLeft),l=Math.abs(this.lastRenderedScrollTop-this.scrollTop);(o>20||l>20)&&(this._options.forceSyncScrolling||l<this.viewportH&&o<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}),!!(s||i)}scrollCellIntoView(e,t,r){if(this.scrollRowIntoView(e,r),t<=this._options.frozenColumn)return;let i=this.getColspan(e,t);this.internalScrollColumnIntoView(this.columnPosLeft[t],this.columnPosRight[t+(i>1?i-1:0)])}internalScrollColumnIntoView(e,t){let r=this.scrollLeft+_.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>r&&(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 r=[],i=null;for(let s=0,o=this.columns.length;s<o;s++){let l=this._colsWithRowSpanCache[s];if(l)for(let h of Array.from(l)){let[d,f]=h.split(":").map(Number);if(e>=d&&e<=f)if(t==="columns")r.push(s);else{i=d;break}}}return t==="columns"?r:i}getParentRowSpanByCell(e,t,r=!0){let i=null,s=this._colsWithRowSpanCache[t]||new Set;for(let o of Array.from(s)){let[l,h]=o.split(":").map(Number);if((r?e>l:e>=l)&&e<=h){i={start:l,end:h,range:o};break}}return i}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(r=>{let i=+r,s=t.columns[i],o=+(s?.colspan||1),l=+(s?.rowspan||1);this.remapRowSpanMetadata(e,i,o,l)})}remapRowSpanMetadata(e,t,r,i){var s,o,l;if(i>1){let h=`${e}:${e+i-1}`;if((s=this._colsWithRowSpanCache)[t]??(s[t]=new Set),this._colsWithRowSpanCache[t].add(h),r>1)for(let d=1;d<r;d++)(o=this._colsWithRowSpanCache)[l=t+d]??(o[l]=new Set),this._colsWithRowSpanCache[t+d].add(h)}}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 r=_.height(this._viewportScrollContainerY),i=this.hasFrozenRows&&!this._options.frozenBottom?e-this._options.frozenRow:e,s=i*this._options.rowHeight,o=(i+1)*this._options.rowHeight-r+(this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0);(i+1)*this._options.rowHeight>this.scrollTop+r+this.offset?(this.scrollTo(t?s:o),this.render()):i*this._options.rowHeight<this.scrollTop+this.offset&&(this.scrollTo(t?o:s),this.render())}}scrollRowToTop(e){this.scrollTo(e*this._options.rowHeight),this.render()}scrollPage(e){let t=e*this.numVisibleRows,r=this.scrollTop+this._options.rowHeight-1;if(this.scrollTo((this.getRowFromPosition(r)+t)*this._options.rowHeight),this.render(),this._options.enableCellNavigation&&_.isDefined(this.activeRow)){let i=this.activeRow+t,s=this.getDataLengthIncludingAddNew();i>=s&&(i=s-1),i<0&&(i=0);let o=e===1?this.gotoDown(i-1||0,this.activeCell,this.activePosY,this.activePosX):this.gotoUp(i+1,this.activeCell,this.activePosY,this.activePosX);this.navigateToPos(o)}}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||!_.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 r=!_.isDefined(this.activeCell)||!_.isDefined(this.activeRow);if(this._options.enableCellNavigation&&_.isDefined(this.activeRow)){let i=0,s=null,o=this.activePosX;for(;i<=this.activePosX;)this.canCellBeActive(e,i)&&(s=i,(!_.isDefined(this.activeCell)||i===this.activeCell)&&(r=!0)),i+=this.getColspan(e,i);s!==null?(this.setActiveCellInternal(this.getCellNode(e,s)),this.activePosX=o):this.resetActiveCell()}return r}getColspan(e,t){let r=this.getItemMetadaWhenExists(e);if(!r||!r.columns)return 1;t>=this.columns.length&&(t=this.columns.length-1);let i=(r.columns[this.columns[t].id]||r.columns[t])?.colspan;return i==="*"?i=this.columns.length-t:i=i||1,i}queuePostProcessedRowForCleanup(e,t,r){this.postProcessgroupId++,typeof t=="object"&&Object.keys(t).forEach(i=>{t.hasOwnProperty(i)&&this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e.cellNodesByColumnIdx[+i],columnIdx:+i,rowIdx:r})}),e.rowNode||(e.rowNode=[]),this.postProcessedCleanupQueue.push({actionType:"R",groupId:this.postProcessgroupId,node:e.rowNode}),e.rowNode?.forEach(i=>i.remove())}queuePostProcessedCellForCleanup(e,t,r){this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e,columnIdx:t,rowIdx:r}),e.remove()}applyFormatResultToCellNode(e,t,r){if(e==null&&(e=""),Object.prototype.toString.call(e)!=="[object Object]"){this.applyHtmlCode(t,e);return}let i=e.html||e.text;this.applyHtmlCode(t,i),e.removeClasses&&!r&&t.classList.remove(..._.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(..._.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--,r=this.rowsCache[t];if(!(!r||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(r.cellNodesByColumnIdx).forEach(i=>{if(r.cellNodesByColumnIdx.hasOwnProperty(i)){let s=+i,o=this.columns[s],l=this.postProcessedRows[t][s];if(o.asyncPostRender&&l!=="R"){let h=r.cellNodesByColumnIdx[s];h&&o.asyncPostRender(h,t,this.getDataItem(t),o,l==="C"),this.postProcessedRows[t][s]="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(r=>{r.remove()}),t?.actionType==="C"){let r=this.columns[t.columnIdx];r.asyncPostRenderCleanup&&t.node&&r.asyncPostRenderCleanup(t.node,t.rowIdx,r)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let r,i,s;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(o=>{this.rowsCache&&(s=t?.[o],i=e?.[o],s&&Object.keys(s).forEach(l=>{(!i||s[l]!==i[l])&&(r=this.getCellNode(+o,this.getColumnIndex(l)),r&&r.classList.remove(s[l]))}),i&&Object.keys(i).forEach(l=>{(!s||s[l]!==i[l])&&(r=this.getCellNode(+o,this.getColumnIndex(l)),r&&r.classList.add(i[l]))}))})}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 r=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,r),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,r=250){let i=(s,o)=>{o<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{o%2===0?s.classList.add(this._options.cellFlashingCssClass||""):s.classList.remove(this._options.cellFlashingCssClass||""),i(s,o-1)},r))};if(this.rowsCache[e]){let s=this.getCellNode(e,t);s&&i(s,5)}}highlightRow(e,t){let r=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(r?.rowNode)&&this._options.rowHighlightCssClass&&(r.rowNode.forEach(i=>i.classList.add(..._.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{r.rowNode?.forEach(i=>i.classList.remove(..._.classNameToList(this._options.rowHighlightCssClass)))},t))}_getContainerElement(e,t,r){if(!e)return;t||(t=0),r||(r=0);let i=typeof t=="number"?t:this.getColumnIndex(t),s=this.hasFrozenRows&&r>=this.actualFrozenRow+(this._options.frozenBottom?0:1),o=this.hasFrozenColumns()&&i>this._options.frozenColumn;return e[(s?2:0)+(o?1:0)]}measureScrollbar(){let e="";this._viewport.forEach(s=>e+=s.className);let t=_.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),r=_.createDomElement("div",{style:{width:"200px",height:"200px",overflow:"auto"}},t),i={width:t.offsetWidth-t.clientWidth,height:t.offsetHeight-t.clientHeight};return r.remove(),t.remove(),i}getMaxSupportedCssHeight(){let e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?this._options.ffMaxSupportedCssHeight:this._options.maxSupportedCssHeight,r=_.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let i=e*2;_.height(r,i);let s=_.height(r);if(i>t||s!==i)break;e=i}return r.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"],r=getComputedStyle(e),i=0;return t.forEach(s=>i+=_.toFloat(r[s])),i}measureCellPaddingAndBorder(){let e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=this._headers[0];this.headerColumnWidthDiff=this.headerColumnHeightDiff=0,this.cellWidthDiff=this.cellHeightDiff=0;let i=_.createDomElement("div",{className:"ui-state-default slick-state-default slick-header-column",style:{visibility:"hidden"},textContent:"-"},r),s=getComputedStyle(i);s.boxSizing!=="border-box"&&(e.forEach(l=>this.headerColumnWidthDiff+=_.toFloat(s[l])),t.forEach(l=>this.headerColumnHeightDiff+=_.toFloat(s[l]))),i.remove();let o=_.createDomElement("div",{className:"slick-row"},this._canvas[0]);i=_.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},o),s=getComputedStyle(i),s.boxSizing!=="border-box"&&(e.forEach(l=>this.cellWidthDiff+=_.toFloat(s[l])),t.forEach(l=>this.cellHeightDiff+=_.toFloat(s[l]))),o.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,r){return _.isDefined(r)?(r+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""}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 r in this.rowsCache[t].rowNode)if(this.rowsCache[t].rowNode?.[+r]===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 r=this.getRowFromPosition(t),i=0,s=0;for(let o=0;o<this.columns.length&&s<=e;o++)this.columns[o]&&(s+=this.columns[o].width,i++);return i-=1,r<-1&&(r=-1),{row:r,cell:i}}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 r=this._options.rowHeight||0;if(t>1){let i=e+t-1;r=this.getRowBottom(i)-this.getRowTop(e)}else{let i=this.getRowHeight();i!==r-this.cellHeightDiff&&(r=i)}return r-=this.cellHeightDiff,Math.ceil(r)}setDifference(e,t){return new Set(Array.from(e).filter(r=>!t.has(r)))}getCellNodeBox(e,t){if(!this.cellExists(e,t))return null;let r=this.getFrozenRowOffset(e),i=this.getRowTop(e)-r,s=i+this._options.rowHeight-1,o=0;for(let h=0;h<t;h++)!this.columns[h]||this.columns[h].hidden||(o+=this.columns[h].width||0,this._options.frozenColumn===h&&(o=0));let l=o+(this.columns[t]?.width||0);return{top:i,left:o,bottom:s,right:l}}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 r=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let i=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&i.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&i.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===r&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,r=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 r=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&r!==e&&(console.log(`sanitizer altered html: ${e} --> ${r}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),r}getRowspan(e,t){let r=1,i=this.getItemMetadaWhenExists(e);return i?.columns&&Object.keys(i.columns).forEach(s=>{let o=Number(s);if(o===t){let l=i.columns[o];r=Number(l?.rowspan||1)}}),r}findFocusableRow(e,t,r){let i=e,s=this._colsWithRowSpanCache[t]||new Set,o=!1;return Array.from(s).forEach(l=>{let[h,d]=l.split(":").map(Number);!o&&e>=h&&e<=d&&(i=r==="up"?h:d,this.canCellBeActive(i,t)&&(o=!0))}),i<0&&(i=0),i}findFirstFocusableCell(e){let t=0,r=e,i=-1;for(;t<this.columns.length;){let s=this.getParentRowSpanByCell(e,t);if(r=s!==null&&s.start!==e?s.start:e,this.canCellBeActive(r,t)){i=t;break}t+=this.getColspan(r,t)}return{cell:i,row:r}}findLastFocusableCell(e){let t=0,r=e,i=-1;for(;t<this.columns.length;){let s=this.getParentRowSpanByCell(e,t);r=s!==null&&s.start!==e?s.start:e,this.canCellBeActive(r,t)&&(i=t),t+=this.getColspan(r,t)}return{cell:i,row:r}}rowsToRanges(e){let t=[],r=this.columns.length-1;for(let i=0;i<e.length;i++)t.push(new b_(e[i],0,e[i],r));return t}findSpanStartingCell(e,t){let r=this.getParentRowSpanByCell(e,t),i=r!==null&&r.start!==e?r.start:e,s=0,o=0;for(;s<this.columns.length;){if(s+=this.getColspan(i,s),s>t)return s=o,{cell:s,row:i};o=s}return{cell:s,row:i}}gotoRight(e,t,r,i){if(t>=this.columns.length)return null;let s=t+1,o=r;do{let l=this.findSpanStartingCell(r,s);if(o=l.row,s=l.cell,this.canCellBeActive(o,s)&&s>t)break;s+=this.getColspan(o,l.cell)}while(s<this.columns.length);return s<this.columns.length?{row:o,cell:s,posX:s,posY:r}:null}gotoLeft(e,t,r,i){if(t<=0)return null;let s=this.findFirstFocusableCell(e);if(s.cell===null||s.cell>=t)return null;let o,l={row:e,cell:s.cell,posX:s.cell,posY:r};for(;;){if(o=this.gotoRight(l.row,l.cell,l.posY,l.posX),!o)return null;if(o.cell>=t){let h=this.findFocusableRow(r,l.cell,"up");return h!==l.row&&(l.row=h),l}l=o}}gotoDown(e,t,r,i){let s,o=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,i),s=t=0;t<=i;)s=t,t+=this.getColspan(e,t);while(e<=o&&!this.canCellBeActive(e,s));return e<=o?{row:e,cell:s,posX:i,posY:e}:null}gotoUp(e,t,r,i){let s;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,i,"up"),s=t=0;t<=i;)s=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,s));return t<=this.columns.length?{row:e,cell:s,posX:i,posY:e}:null}gotoNext(e,t,r,i){if(!_.isDefined(e)&&!_.isDefined(t)&&(e=t=r=i=0,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:r};let s=this.gotoRight(e,t,r,i);if(!s){let o;for(;!s&&++r<this.getDataLength()+(this._options.enableAddRow?1:0);)o=this.findFirstFocusableCell(r),o.cell!==null&&(e=this.getParentRowSpanByCell(r,o.cell)?.start??r,s={row:e,cell:o.cell,posX:o.cell,posY:r})}return s}gotoPrev(e,t,r,i){if(!_.isDefined(e)&&!_.isDefined(t)&&(e=r=this.getDataLengthIncludingAddNew()-1,t=i=this.columns.length-1,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:r};let s=this.gotoLeft(e,t,r,i);if(!s){let o;for(;!s&&--r>=0;)o=this.findLastFocusableCell(r),o.cell>-1&&(e=this.getParentRowSpanByCell(r,o.cell)?.start??r,s={row:e,cell:o.cell,posX:o.cell,posY:r})}return s}gotoRowStart(e,t,r,i){let s=this.findFirstFocusableCell(e);return s.cell===null?null:{row:s.row,cell:s.cell,posX:s.cell,posY:e}}gotoRowEnd(e,t,r,i){let s=this.findLastFocusableCell(e);return s.cell===-1?null:{row:s.row,cell:s.cell,posX:s.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 r={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(r)}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,r,i,s){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),r,i,s)))}setActiveRow(e,t,r){this.initialized&&(e>this.getDataLength()||e<0||(t??0)>=this.columns.length||(t??0)<0||(this.activeRow=e,r||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 r=this.getItemMetadaWhenExists(e);if(r?.focusable!==void 0)return!!r.focusable;let i=r?.columns;return i?.[this.columns[t].id]?.focusable!==void 0?!!i[this.columns[t].id].focusable:i?.[t]?.focusable!==void 0?!!i[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 r=this.getItemMetadaWhenExists(e);if(r?.selectable!==void 0)return!!r.selectable;let i=r?.columns&&(r.columns[this.columns[t].id]||r.columns[t]);return i?.selectable!==void 0?!!i.selectable:!!this.columns[t].selectable}gotoCell(e,t,r,i){if(!this.initialized||!this.canCellBeActive(e,t)||!this.getEditorLock()?.commitCurrentEdit())return;this.scrollCellIntoView(e,t,!1);let s=this.getCellNode(e,t),o=this.columns[t],l=!!(this._options.editable&&o?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(s,r||e===this.getDataLength()||this._options.autoEdit,null,l,i),this.currentEditor||this.setFocus()}};/**
|
|
212
|
+
`,Qm=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...c}=o,[u,d]=T.useState([]),f=T.useRef(0),p=T.useRef(null);T.useEffect(()=>{p.current&&(p.current(),p.current=null)},[u]);const y=T.useRef(!1),w=Im(),b=T.useRef(null),g=T.useRef(null),v=T.useCallback(x=>{const{pulsate:C,rippleX:O,rippleY:N,rippleSize:A,cb:B}=x;d(R=>[...R,P.jsx(rR,{classes:{ripple:Se(i.ripple,Hn.ripple),rippleVisible:Se(i.rippleVisible,Hn.rippleVisible),ripplePulsate:Se(i.ripplePulsate,Hn.ripplePulsate),child:Se(i.child,Hn.child),childLeaving:Se(i.childLeaving,Hn.childLeaving),childPulsate:Se(i.childPulsate,Hn.childPulsate)},timeout:su,pulsate:C,rippleX:O,rippleY:N,rippleSize:A},f.current)]),f.current+=1,p.current=B},[i]),E=T.useCallback((x={},C={},O=()=>{})=>{const{pulsate:N=!1,center:A=r||C.pulsate,fakeElement:B=!1}=C;if(x?.type==="mousedown"&&y.current){y.current=!1;return}x?.type==="touchstart"&&(y.current=!0);const R=B?null:g.current,$=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let K,X,q;if(A||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)K=Math.round($.width/2),X=Math.round($.height/2);else{const{clientX:Y,clientY:z}=x.touches&&x.touches.length>0?x.touches[0]:x;K=Math.round(Y-$.left),X=Math.round(z-$.top)}if(A)q=Math.sqrt((2*$.width**2+$.height**2)/3),q%2===0&&(q+=1);else{const Y=Math.max(Math.abs((R?R.clientWidth:0)-K),K)*2+2,z=Math.max(Math.abs((R?R.clientHeight:0)-X),X)*2+2;q=Math.sqrt(Y**2+z**2)}x?.touches?b.current===null&&(b.current=()=>{v({pulsate:N,rippleX:K,rippleY:X,rippleSize:q,cb:O})},w.start(J_,()=>{b.current&&(b.current(),b.current=null)})):v({pulsate:N,rippleX:K,rippleY:X,rippleSize:q,cb:O})},[r,v,w]),k=T.useCallback(()=>{E({},{pulsate:!0})},[E]),_=T.useCallback((x,C)=>{if(w.clear(),x?.type==="touchend"&&b.current){b.current(),b.current=null,w.start(0,()=>{_(x,C)});return}b.current=null,d(O=>O.length>0?O.slice(1):O),p.current=C},[w]);return T.useImperativeHandle(n,()=>({pulsate:k,start:E,stop:_}),[k,E,_]),P.jsx(oR,{className:Se(Hn.root,i.root,a),ref:g,...c,children:P.jsx(Bi,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(Qm.propTypes={center:s.bool,classes:s.object,className:s.string});function sR(e){return Oe("MuiButtonBase",e)}const iR=De("MuiButtonBase",["root","disabled","focusVisible"]),aR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},sR,r);return n&&o&&(a.root+=` ${o}`),a},lR=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${iR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sr=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:c,component:u="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:y=!1,focusVisibleClassName:w,LinkComponent:b="a",onBlur:g,onClick:v,onContextMenu:E,onDragLeave:k,onFocus:_,onFocusVisible:x,onKeyDown:C,onKeyUp:O,onMouseDown:N,onMouseLeave:A,onMouseUp:B,onTouchEnd:R,onTouchMove:$,onTouchStart:K,tabIndex:X=0,TouchRippleProps:q,touchRippleRef:Y,type:z,...ae}=o,I=T.useRef(null),D=Z_(),j=at(D.ref,Y),[W,ne]=T.useState(!1);d&&W&&ne(!1),T.useImperativeHandle(r,()=>({focusVisible:()=>{ne(!0),I.current.focus()}}),[]);const oe=D.shouldMount&&!f&&!d;T.useEffect(()=>{W&&y&&!f&&D.pulsate()},[f,y,W,D]);function se(ke,ft,Kt=p){return Te(st=>(ft&&ft(st),Kt||D[ke](st),!0))}const V=se("start",N),J=se("stop",E),ee=se("stop",k),te=se("stop",B),ce=se("stop",ke=>{W&&ke.preventDefault(),A&&A(ke)}),ie=se("start",K),he=se("stop",R),H=se("stop",$),re=se("stop",ke=>{mf(ke.target)||ne(!1),g&&g(ke)},!1),Q=Te(ke=>{I.current||(I.current=ke.currentTarget),mf(ke.target)&&(ne(!0),x&&x(ke)),_&&_(ke)}),fe=()=>{const ke=I.current;return u&&u!=="button"&&!(ke.tagName==="A"&&ke.href)},me=Te(ke=>{y&&!ke.repeat&&W&&ke.key===" "&&D.stop(ke,()=>{D.start(ke)}),ke.target===ke.currentTarget&&fe()&&ke.key===" "&&ke.preventDefault(),C&&C(ke),ke.target===ke.currentTarget&&fe()&&ke.key==="Enter"&&!d&&(ke.preventDefault(),v&&v(ke))}),Ce=Te(ke=>{y&&ke.key===" "&&W&&!ke.defaultPrevented&&D.stop(ke,()=>{D.pulsate(ke)}),O&&O(ke),v&&ke.target===ke.currentTarget&&fe()&&ke.key===" "&&!ke.defaultPrevented&&v(ke)});let ve=u;ve==="button"&&(ae.href||ae.to)&&(ve=b);const _e={};ve==="button"?(_e.type=z===void 0?"button":z,_e.disabled=d):(!ae.href&&!ae.to&&(_e.role="button"),d&&(_e["aria-disabled"]=d));const $e=at(n,I),Ae={...o,centerRipple:i,component:u,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:y,tabIndex:X,focusVisible:W},rt=aR(Ae);return P.jsxs(lR,{as:ve,className:Se(rt.root,c),ownerState:Ae,onBlur:re,onClick:v,onContextMenu:J,onFocus:Q,onKeyDown:me,onKeyUp:Ce,onMouseDown:V,onMouseLeave:ce,onMouseUp:te,onDragLeave:ee,onTouchEnd:he,onTouchMove:H,onTouchStart:ie,ref:$e,tabIndex:d?-1:X,type:z,..._e,...ae,children:[a,oe?P.jsx(Qm,{ref:j,center:i,...q}):null]})});process.env.NODE_ENV!=="production"&&(sr.propTypes={action:Wt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Pl,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,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})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function cR(e){return typeof e.main=="string"}function uR(e,t=[]){if(!cR(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function un(e=[]){return([,t])=>t&&uR(t,e)}function dR(e){return Oe("MuiAlert",e)}const Df=De("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function hR(e){return Oe("MuiIconButton",e)}const fR=De("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pR=e=>{const{classes:t,disabled:n,color:o,edge:r,size:i}=e,a={root:["root",n&&"disabled",o!=="default"&&`color${be(o)}`,r&&`edge${be(r)}`,`size${be(i)}`]};return Ie(a,hR,t)},mR=le(sr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${be(n.color)}`],n.edge&&t[`edge${be(n.edge)}`],t[`size${be(n.size)}`]]}})(dt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),dt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(un()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(un()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${fR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Ps=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiIconButton"}),{edge:r=!1,children:i,className:a,color:c="default",disabled:u=!1,disableFocusRipple:d=!1,size:f="medium",...p}=o,y={...o,edge:r,color:c,disabled:u,disableFocusRipple:d,size:f},w=pR(y);return P.jsx(mR,{className:Se(w.root,a),centerRipple:!0,focusRipple:!d,disabled:u,ref:n,...p,ownerState:y,children:i})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={children:ar(s.node,e=>T.Children.toArray(e.children).some(n=>T.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
213
|
+
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const gR=an(P.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),yR=an(P.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),vR=an(P.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),bR=an(P.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),wR=an(P.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),CR=e=>{const{variant:t,color:n,severity:o,classes:r}=e,i={root:["root",`color${be(n||o)}`,`${t}${be(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(i,dR,r)},SR=le(Es,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${be(n.color||n.severity)}`]]}})(dt(({theme:e})=>{const t=e.palette.mode==="light"?wi:Ci,n=e.palette.mode==="light"?Ci:wi;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(un(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Df.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(un(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Df.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(un(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),xR=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),_R=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Of=le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Mf={success:P.jsx(gR,{fontSize:"inherit"}),warning:P.jsx(yR,{fontSize:"inherit"}),error:P.jsx(vR,{fontSize:"inherit"}),info:P.jsx(bR,{fontSize:"inherit"})},Jm=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiAlert"}),{action:r,children:i,className:a,closeText:c="Close",color:u,components:d={},componentsProps:f={},icon:p,iconMapping:y=Mf,onClose:w,role:b="alert",severity:g="success",slotProps:v={},slots:E={},variant:k="standard",..._}=o,x={...o,color:u,severity:g,variant:k,colorSeverity:u||g},C=CR(x),O={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...E},slotProps:{...f,...v}},[N,A]=Rn("closeButton",{elementType:Ps,externalForwardedProps:O,ownerState:x}),[B,R]=Rn("closeIcon",{elementType:wR,externalForwardedProps:O,ownerState:x});return P.jsxs(SR,{role:b,elevation:0,ownerState:x,className:Se(C.root,a),ref:n,..._,children:[p!==!1?P.jsx(xR,{ownerState:x,className:C.icon,children:p||y[g]||Mf[g]}):null,P.jsx(_R,{ownerState:x,className:C.message,children:i}),r!=null?P.jsx(Of,{ownerState:x,className:C.action,children:r}):null,r==null&&w?P.jsx(Of,{ownerState:x,className:C.action,children:P.jsx(N,{size:"small","aria-label":c,title:c,color:"inherit",onClick:w,...A,children:P.jsx(B,{fontSize:"small",...R})})}):null]})});process.env.NODE_ENV!=="production"&&(Jm.propTypes={action:s.node,children:s.node,classes:s.object,className:s.string,closeText:s.string,color:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),components:s.shape({CloseButton:s.elementType,CloseIcon:s.elementType}),componentsProps:s.shape({closeButton:s.object,closeIcon:s.object}),icon:s.node,iconMapping:s.shape({error:s.node,info:s.node,success:s.node,warning:s.node}),onClose:s.func,role:s.string,severity:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),slotProps:s.shape({closeButton:s.oneOfType([s.func,s.object]),closeIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({closeButton:s.elementType,closeIcon:s.elementType}),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 RR(e){return Oe("MuiTypography",e)}const If=De("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),TR={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ER=k_(),PR=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,c={root:["root",i,e.align!=="inherit"&&`align${be(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Ie(c,RR,a)},kR=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${be(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(dt(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(un()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${be(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Nf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tn=T.forwardRef(function(t,n){const{color:o,...r}=Ke({props:t,name:"MuiTypography"}),i=!TR[o],a=ER({...r,...i&&{color:o}}),{align:c="inherit",className:u,component:d,gutterBottom:f=!1,noWrap:p=!1,paragraph:y=!1,variant:w="body1",variantMapping:b=Nf,...g}=a,v={...a,align:c,color:o,className:u,component:d,gutterBottom:f,noWrap:p,paragraph:y,variant:w,variantMapping:b},E=d||(y?"p":b[w]||Nf[w])||"span",k=PR(v);return P.jsx(kR,{as:E,ref:n,className:Se(k.root,u),...g,ownerState:v,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...g.style}})});process.env.NODE_ENV!=="production"&&(Tn.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph: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(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});var En="top",Un="bottom",qn="right",Pn="left",zu="auto",Yi=[En,Un,qn,Pn],ys="start",xi="end",DR="clippingParents",eg="viewport",zs="popper",OR="reference",Af=Yi.reduce(function(e,t){return e.concat([t+"-"+ys,t+"-"+xi])},[]),tg=[].concat(Yi,[zu]).reduce(function(e,t){return e.concat([t,t+"-"+ys,t+"-"+xi])},[]),MR="beforeRead",IR="read",NR="afterRead",AR="beforeMain",FR="main",LR="afterMain",$R="beforeWrite",jR="write",VR="afterWrite",WR=[MR,IR,NR,AR,FR,LR,$R,jR,VR];function So(e){return e?(e.nodeName||"").toLowerCase():null}function Fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function kr(e){var t=Fn(e).Element;return e instanceof t||e instanceof Element}function Yn(e){var t=Fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bu(e){if(typeof ShadowRoot>"u")return!1;var t=Fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HR(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!Yn(i)||!So(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var c=r[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function zR(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),c=a.reduce(function(u,d){return u[d]="",u},{});!Yn(r)||!So(r)||(Object.assign(r.style,c),Object.keys(i).forEach(function(u){r.removeAttribute(u)}))})}}const BR={name:"applyStyles",enabled:!0,phase:"write",fn:HR,effect:zR,requires:["computeStyles"]};function bo(e){return e.split("-")[0]}var Rr=Math.max,Qa=Math.min,vs=Math.round;function iu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ng(){return!/^((?!chrome|android).)*safari/i.test(iu())}function bs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Yn(e)&&(r=e.offsetWidth>0&&vs(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&vs(o.height)/e.offsetHeight||1);var a=kr(e)?Fn(e):window,c=a.visualViewport,u=!ng()&&n,d=(o.left+(u&&c?c.offsetLeft:0))/r,f=(o.top+(u&&c?c.offsetTop:0))/i,p=o.width/r,y=o.height/i;return{width:p,height:y,top:f,right:d+p,bottom:f+y,left:d,x:d,y:f}}function Yu(e){var t=bs(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function og(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Bo(e){return Fn(e).getComputedStyle(e)}function YR(e){return["table","td","th"].indexOf(So(e))>=0}function cr(e){return((kr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ol(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(Bu(e)?e.host:null)||cr(e)}function Ff(e){return!Yn(e)||Bo(e).position==="fixed"?null:e.offsetParent}function UR(e){var t=/firefox/i.test(iu()),n=/Trident/i.test(iu());if(n&&Yn(e)){var o=Bo(e);if(o.position==="fixed")return null}var r=Ol(e);for(Bu(r)&&(r=r.host);Yn(r)&&["html","body"].indexOf(So(r))<0;){var i=Bo(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Ui(e){for(var t=Fn(e),n=Ff(e);n&&YR(n)&&Bo(n).position==="static";)n=Ff(n);return n&&(So(n)==="html"||So(n)==="body"&&Bo(n).position==="static")?t:n||UR(e)||t}function Uu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function li(e,t,n){return Rr(e,Qa(t,n))}function qR(e,t,n){var o=li(e,t,n);return o>n?n:o}function rg(){return{top:0,right:0,bottom:0,left:0}}function sg(e){return Object.assign({},rg(),e)}function ig(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var GR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,sg(typeof t!="number"?t:ig(t,Yi))};function KR(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=bo(n.placement),u=Uu(c),d=[Pn,qn].indexOf(c)>=0,f=d?"height":"width";if(!(!i||!a)){var p=GR(r.padding,n),y=Yu(i),w=u==="y"?En:Pn,b=u==="y"?Un:qn,g=n.rects.reference[f]+n.rects.reference[u]-a[u]-n.rects.popper[f],v=a[u]-n.rects.reference[u],E=Ui(i),k=E?u==="y"?E.clientHeight||0:E.clientWidth||0:0,_=g/2-v/2,x=p[w],C=k-y[f]-p[b],O=k/2-y[f]/2+_,N=li(x,O,C),A=u;n.modifiersData[o]=(t={},t[A]=N,t.centerOffset=N-O,t)}}function XR(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||og(t.elements.popper,r)&&(t.elements.arrow=r))}const ZR={name:"arrow",enabled:!0,phase:"main",fn:KR,effect:XR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ws(e){return e.split("-")[1]}var QR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JR(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:vs(n*r)/r||0,y:vs(o*r)/r||0}}function Lf(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,p=e.isFixed,y=a.x,w=y===void 0?0:y,b=a.y,g=b===void 0?0:b,v=typeof f=="function"?f({x:w,y:g}):{x:w,y:g};w=v.x,g=v.y;var E=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),_=Pn,x=En,C=window;if(d){var O=Ui(n),N="clientHeight",A="clientWidth";if(O===Fn(n)&&(O=cr(n),Bo(O).position!=="static"&&c==="absolute"&&(N="scrollHeight",A="scrollWidth")),O=O,r===En||(r===Pn||r===qn)&&i===xi){x=Un;var B=p&&O===C&&C.visualViewport?C.visualViewport.height:O[N];g-=B-o.height,g*=u?1:-1}if(r===Pn||(r===En||r===Un)&&i===xi){_=qn;var R=p&&O===C&&C.visualViewport?C.visualViewport.width:O[A];w-=R-o.width,w*=u?1:-1}}var $=Object.assign({position:c},d&&QR),K=f===!0?JR({x:w,y:g},Fn(n)):{x:w,y:g};if(w=K.x,g=K.y,u){var X;return Object.assign({},$,(X={},X[x]=k?"0":"",X[_]=E?"0":"",X.transform=(C.devicePixelRatio||1)<=1?"translate("+w+"px, "+g+"px)":"translate3d("+w+"px, "+g+"px, 0)",X))}return Object.assign({},$,(t={},t[x]=k?g+"px":"",t[_]=E?w+"px":"",t.transform="",t))}function eT(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,u=c===void 0?!0:c,d={placement:bo(t.placement),variation:ws(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Lf(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lf(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eT,data:{}};var _a={passive:!0};function nT(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,a=o.resize,c=a===void 0?!0:a,u=Fn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",n.update,_a)}),c&&u.addEventListener("resize",n.update,_a),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",n.update,_a)}),c&&u.removeEventListener("resize",n.update,_a)}}const oT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nT,data:{}};var rT={left:"right",right:"left",bottom:"top",top:"bottom"};function $a(e){return e.replace(/left|right|bottom|top/g,function(t){return rT[t]})}var sT={start:"end",end:"start"};function $f(e){return e.replace(/start|end/g,function(t){return sT[t]})}function qu(e){var t=Fn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Gu(e){return bs(cr(e)).left+qu(e).scrollLeft}function iT(e,t){var n=Fn(e),o=cr(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,c=0,u=0;if(r){i=r.width,a=r.height;var d=ng();(d||!d&&t==="fixed")&&(c=r.offsetLeft,u=r.offsetTop)}return{width:i,height:a,x:c+Gu(e),y:u}}function aT(e){var t,n=cr(e),o=qu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Rr(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Rr(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),c=-o.scrollLeft+Gu(e),u=-o.scrollTop;return Bo(r||n).direction==="rtl"&&(c+=Rr(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}function Ku(e){var t=Bo(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function ag(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Yn(e)&&Ku(e)?e:ag(Ol(e))}function ci(e,t){var n;t===void 0&&(t=[]);var o=ag(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Fn(o),a=r?[i].concat(i.visualViewport||[],Ku(o)?o:[]):o,c=t.concat(a);return r?c:c.concat(ci(Ol(a)))}function au(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lT(e,t){var n=bs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jf(e,t,n){return t===eg?au(iT(e,n)):kr(t)?lT(t,n):au(aT(cr(e)))}function cT(e){var t=ci(Ol(e)),n=["absolute","fixed"].indexOf(Bo(e).position)>=0,o=n&&Yn(e)?Ui(e):e;return kr(o)?t.filter(function(r){return kr(r)&&og(r,o)&&So(r)!=="body"}):[]}function uT(e,t,n,o){var r=t==="clippingParents"?cT(e):[].concat(t),i=[].concat(r,[n]),a=i[0],c=i.reduce(function(u,d){var f=jf(e,d,o);return u.top=Rr(f.top,u.top),u.right=Qa(f.right,u.right),u.bottom=Qa(f.bottom,u.bottom),u.left=Rr(f.left,u.left),u},jf(e,a,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function lg(e){var t=e.reference,n=e.element,o=e.placement,r=o?bo(o):null,i=o?ws(o):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(r){case En:u={x:a,y:t.y-n.height};break;case Un:u={x:a,y:t.y+t.height};break;case qn:u={x:t.x+t.width,y:c};break;case Pn:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var d=r?Uu(r):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case ys:u[d]=u[d]-(t[f]/2-n[f]/2);break;case xi:u[d]=u[d]+(t[f]/2-n[f]/2);break}}return u}function _i(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,u=c===void 0?DR:c,d=n.rootBoundary,f=d===void 0?eg:d,p=n.elementContext,y=p===void 0?zs:p,w=n.altBoundary,b=w===void 0?!1:w,g=n.padding,v=g===void 0?0:g,E=sg(typeof v!="number"?v:ig(v,Yi)),k=y===zs?OR:zs,_=e.rects.popper,x=e.elements[b?k:y],C=uT(kr(x)?x:x.contextElement||cr(e.elements.popper),u,f,a),O=bs(e.elements.reference),N=lg({reference:O,element:_,placement:r}),A=au(Object.assign({},_,N)),B=y===zs?A:O,R={top:C.top-B.top+E.top,bottom:B.bottom-C.bottom+E.bottom,left:C.left-B.left+E.left,right:B.right-C.right+E.right},$=e.modifiersData.offset;if(y===zs&&$){var K=$[r];Object.keys(R).forEach(function(X){var q=[qn,Un].indexOf(X)>=0?1:-1,Y=[En,Un].indexOf(X)>=0?"y":"x";R[X]+=K[Y]*q})}return R}function dT(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?tg:u,f=ws(o),p=f?c?Af:Af.filter(function(b){return ws(b)===f}):Yi,y=p.filter(function(b){return d.indexOf(b)>=0});y.length===0&&(y=p);var w=y.reduce(function(b,g){return b[g]=_i(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[bo(g)],b},{});return Object.keys(w).sort(function(b,g){return w[b]-w[g]})}function hT(e){if(bo(e)===zu)return[];var t=$a(e);return[$f(e),t,$f(t)]}function fT(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,c=a===void 0?!0:a,u=n.fallbackPlacements,d=n.padding,f=n.boundary,p=n.rootBoundary,y=n.altBoundary,w=n.flipVariations,b=w===void 0?!0:w,g=n.allowedAutoPlacements,v=t.options.placement,E=bo(v),k=E===v,_=u||(k||!b?[$a(v)]:hT(v)),x=[v].concat(_).reduce(function(se,V){return se.concat(bo(V)===zu?dT(t,{placement:V,boundary:f,rootBoundary:p,padding:d,flipVariations:b,allowedAutoPlacements:g}):V)},[]),C=t.rects.reference,O=t.rects.popper,N=new Map,A=!0,B=x[0],R=0;R<x.length;R++){var $=x[R],K=bo($),X=ws($)===ys,q=[En,Un].indexOf(K)>=0,Y=q?"width":"height",z=_i(t,{placement:$,boundary:f,rootBoundary:p,altBoundary:y,padding:d}),ae=q?X?qn:Pn:X?Un:En;C[Y]>O[Y]&&(ae=$a(ae));var I=$a(ae),D=[];if(i&&D.push(z[K]<=0),c&&D.push(z[ae]<=0,z[I]<=0),D.every(function(se){return se})){B=$,A=!1;break}N.set($,D)}if(A)for(var j=b?3:1,W=function(V){var J=x.find(function(ee){var te=N.get(ee);if(te)return te.slice(0,V).every(function(ce){return ce})});if(J)return B=J,"break"},ne=j;ne>0;ne--){var oe=W(ne);if(oe==="break")break}t.placement!==B&&(t.modifiersData[o]._skip=!0,t.placement=B,t.reset=!0)}}const pT={name:"flip",enabled:!0,phase:"main",fn:fT,requiresIfExists:["offset"],data:{_skip:!1}};function Vf(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wf(e){return[En,qn,Un,Pn].some(function(t){return e[t]>=0})}function mT(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=_i(t,{elementContext:"reference"}),c=_i(t,{altBoundary:!0}),u=Vf(a,o),d=Vf(c,r,i),f=Wf(u),p=Wf(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const gT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mT};function yT(e,t,n){var o=bo(e),r=[Pn,En].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*r,[Pn,qn].indexOf(o)>=0?{x:c,y:a}:{x:a,y:c}}function vT(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=tg.reduce(function(f,p){return f[p]=yT(p,t.rects,i),f},{}),c=a[t.placement],u=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=a}const bT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vT};function wT(e){var t=e.state,n=e.name;t.modifiersData[n]=lg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const CT={name:"popperOffsets",enabled:!0,phase:"read",fn:wT,data:{}};function ST(e){return e==="x"?"y":"x"}function xT(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,c=a===void 0?!1:a,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.padding,y=n.tether,w=y===void 0?!0:y,b=n.tetherOffset,g=b===void 0?0:b,v=_i(t,{boundary:u,rootBoundary:d,padding:p,altBoundary:f}),E=bo(t.placement),k=ws(t.placement),_=!k,x=Uu(E),C=ST(x),O=t.modifiersData.popperOffsets,N=t.rects.reference,A=t.rects.popper,B=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,K={x:0,y:0};if(O){if(i){var X,q=x==="y"?En:Pn,Y=x==="y"?Un:qn,z=x==="y"?"height":"width",ae=O[x],I=ae+v[q],D=ae-v[Y],j=w?-A[z]/2:0,W=k===ys?N[z]:A[z],ne=k===ys?-A[z]:-N[z],oe=t.elements.arrow,se=w&&oe?Yu(oe):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rg(),J=V[q],ee=V[Y],te=li(0,N[z],se[z]),ce=_?N[z]/2-j-te-J-R.mainAxis:W-te-J-R.mainAxis,ie=_?-N[z]/2+j+te+ee+R.mainAxis:ne+te+ee+R.mainAxis,he=t.elements.arrow&&Ui(t.elements.arrow),H=he?x==="y"?he.clientTop||0:he.clientLeft||0:0,re=(X=$?.[x])!=null?X:0,Q=ae+ce-re-H,fe=ae+ie-re,me=li(w?Qa(I,Q):I,ae,w?Rr(D,fe):D);O[x]=me,K[x]=me-ae}if(c){var Ce,ve=x==="x"?En:Pn,_e=x==="x"?Un:qn,$e=O[C],Ae=C==="y"?"height":"width",rt=$e+v[ve],ke=$e-v[_e],ft=[En,Pn].indexOf(E)!==-1,Kt=(Ce=$?.[C])!=null?Ce:0,st=ft?rt:$e-N[Ae]-A[Ae]-Kt+R.altAxis,Yt=ft?$e+N[Ae]+A[Ae]-Kt-R.altAxis:ke,Xt=w&&ft?qR(st,$e,Yt):li(w?st:rt,$e,w?Yt:ke);O[C]=Xt,K[C]=Xt-$e}t.modifiersData[o]=K}}const _T={name:"preventOverflow",enabled:!0,phase:"main",fn:xT,requiresIfExists:["offset"]};function RT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function TT(e){return e===Fn(e)||!Yn(e)?qu(e):RT(e)}function ET(e){var t=e.getBoundingClientRect(),n=vs(t.width)/e.offsetWidth||1,o=vs(t.height)/e.offsetHeight||1;return n!==1||o!==1}function PT(e,t,n){n===void 0&&(n=!1);var o=Yn(t),r=Yn(t)&&ET(t),i=cr(t),a=bs(e,r,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&((So(t)!=="body"||Ku(i))&&(c=TT(t)),Yn(t)?(u=bs(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Gu(i))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function kT(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&r(u)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function DT(e){var t=kT(e);return WR.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function OT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function MT(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Hf={placement:"bottom",modifiers:[],strategy:"absolute"};function zf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function IT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Hf:r;return function(c,u,d){d===void 0&&(d=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hf,i),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},p=[],y=!1,w={state:f,setOptions:function(E){var k=typeof E=="function"?E(f.options):E;g(),f.options=Object.assign({},i,f.options,k),f.scrollParents={reference:kr(c)?ci(c):c.contextElement?ci(c.contextElement):[],popper:ci(u)};var _=DT(MT([].concat(o,f.options.modifiers)));return f.orderedModifiers=_.filter(function(x){return x.enabled}),b(),w.update()},forceUpdate:function(){if(!y){var E=f.elements,k=E.reference,_=E.popper;if(zf(k,_)){f.rects={reference:PT(k,Ui(_),f.options.strategy==="fixed"),popper:Yu(_)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(R){return f.modifiersData[R.name]=Object.assign({},R.data)});for(var x=0;x<f.orderedModifiers.length;x++){if(f.reset===!0){f.reset=!1,x=-1;continue}var C=f.orderedModifiers[x],O=C.fn,N=C.options,A=N===void 0?{}:N,B=C.name;typeof O=="function"&&(f=O({state:f,options:A,name:B,instance:w})||f)}}}},update:OT(function(){return new Promise(function(v){w.forceUpdate(),v(f)})}),destroy:function(){g(),y=!0}};if(!zf(c,u))return w;w.setOptions(d).then(function(v){!y&&d.onFirstUpdate&&d.onFirstUpdate(v)});function b(){f.orderedModifiers.forEach(function(v){var E=v.name,k=v.options,_=k===void 0?{}:k,x=v.effect;if(typeof x=="function"){var C=x({state:f,name:E,instance:w,options:_}),O=function(){};p.push(C||O)}})}function g(){p.forEach(function(v){return v()}),p=[]}return w}}var NT=[oT,CT,tT,BR,bT,pT,_T,ZR,gT],AT=IT({defaultModifiers:NT});function FT(e){return typeof e=="function"?e():e}const Ri=T.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,c]=T.useState(null),u=at(T.isValidElement(o)?zi(o):null,n);if(nn(()=>{i||c(FT(r)||document.body)},[r,i]),nn(()=>{if(a&&!i)return df(n,a),()=>{df(n,null)}},[n,a,i]),i){if(T.isValidElement(o)){const d={ref:u};return T.cloneElement(o,d)}return P.jsx(T.Fragment,{children:o})}return P.jsx(T.Fragment,{children:a&&B0.createPortal(o,a)})});process.env.NODE_ENV!=="production"&&(Ri.propTypes={children:s.node,container:s.oneOfType([Ho,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Ri.propTypes=Dm(Ri.propTypes));function LT(e){return Oe("MuiPopper",e)}De("MuiPopper",["root"]);function $T(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ja(e){return typeof e=="function"?e():e}function Ml(e){return e.nodeType!==void 0}function jT(e){return!Ml(e)}const VT=e=>{const{classes:t}=e;return Ie({root:["root"]},LT,t)},WT={},HT=T.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:c,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:y={},slots:w={},TransitionProps:b,ownerState:g,...v}=t,E=T.useRef(null),k=at(E,n),_=T.useRef(null),x=at(_,p),C=T.useRef(x);nn(()=>{C.current=x},[x]),T.useImperativeHandle(p,()=>_.current,[]);const O=$T(d,i),[N,A]=T.useState(O),[B,R]=T.useState(Ja(o));T.useEffect(()=>{_.current&&_.current.forceUpdate()}),T.useEffect(()=>{o&&R(Ja(o))},[o]),nn(()=>{if(!B||!u)return;const Y=I=>{A(I.placement)};if(process.env.NODE_ENV!=="production"&&B&&Ml(B)&&B.nodeType===1){const I=B.getBoundingClientRect();process.env.NODE_ENV!=="test"&&I.top===0&&I.left===0&&I.right===0&&I.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(`
|
|
214
|
+
`))}let z=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{Y(I)}}];c!=null&&(z=z.concat(c)),f&&f.modifiers!=null&&(z=z.concat(f.modifiers));const ae=AT(B,E.current,{placement:O,...f,modifiers:z});return C.current(ae),()=>{ae.destroy(),C.current(null)}},[B,a,c,u,f,O]);const $={placement:N};b!==null&&($.TransitionProps=b);const K=VT(t),X=w.root??"div",q=ct({elementType:X,externalSlotProps:y.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:K.root});return P.jsx(X,{...q,children:typeof r=="function"?r($):r})}),cg=T.forwardRef(function(t,n){const{anchorEl:o,children:r,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:f,placement:p="bottom",popperOptions:y=WT,popperRef:w,style:b,transition:g=!1,slotProps:v={},slots:E={},...k}=t,[_,x]=T.useState(!0),C=()=>{x(!1)},O=()=>{x(!0)};if(!u&&!f&&(!g||_))return null;let N;if(i)N=i;else if(o){const R=Ja(o);N=R&&Ml(R)?gn(R).body:gn(null).body}const A=!f&&u&&(!g||_)?"none":void 0,B=g?{in:f,onEnter:C,onExited:O}:void 0;return P.jsx(Ri,{disablePortal:c,container:N,children:P.jsx(HT,{anchorEl:o,direction:a,disablePortal:c,modifiers:d,ref:n,open:g?!_:f,placement:p,popperOptions:y,popperRef:w,slotProps:v,slots:E,...k,style:{position:"fixed",top:0,left:0,display:A,...b},TransitionProps:B,children:r})})});process.env.NODE_ENV!=="production"&&(cg.propTypes={anchorEl:ar(s.oneOfType([Ho,s.object,s.func]),e=>{if(e.open){const t=Ja(e.anchorEl);if(t&&Ml(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(`
|
|
215
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||jT(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
|
+
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Ho,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:Wt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const zT=le(cg,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ug=T.forwardRef(function(t,n){const o=so(),r=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:c,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:g,popperRef:v,transition:E,slots:k,slotProps:_,...x}=r,C=k?.root??c?.Root,O={anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:g,popperRef:v,transition:E,...x};return P.jsx(zT,{as:a,direction:o?"rtl":"ltr",slots:{root:C},slotProps:_??u,...O,ref:n})});process.env.NODE_ENV!=="production"&&(ug.propTypes={anchorEl:s.oneOfType([Ho,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([Ho,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:Wt,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 BT=an(P.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 YT(e){return Oe("MuiChip",e)}const Ge=De("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"]),UT=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:c,variant:u}=e,d={root:["root",u,n&&"disabled",`size${be(o)}`,`color${be(r)}`,c&&"clickable",c&&`clickableColor${be(r)}`,a&&"deletable",a&&`deletableColor${be(r)}`,`${u}${be(r)}`],label:["label",`label${be(o)}`],avatar:["avatar",`avatar${be(o)}`,`avatarColor${be(r)}`],icon:["icon",`icon${be(o)}`,`iconColor${be(i)}`],deleteIcon:["deleteIcon",`deleteIcon${be(o)}`,`deleteIconColor${be(r)}`,`deleteIcon${be(u)}Color${be(r)}`]};return Ie(d,YT,t)},qT=le("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:c,variant:u}=n;return[{[`& .${Ge.avatar}`]:t.avatar},{[`& .${Ge.avatar}`]:t[`avatar${be(c)}`]},{[`& .${Ge.avatar}`]:t[`avatarColor${be(o)}`]},{[`& .${Ge.icon}`]:t.icon},{[`& .${Ge.icon}`]:t[`icon${be(c)}`]},{[`& .${Ge.icon}`]:t[`iconColor${be(r)}`]},{[`& .${Ge.deleteIcon}`]:t.deleteIcon},{[`& .${Ge.deleteIcon}`]:t[`deleteIcon${be(c)}`]},{[`& .${Ge.deleteIcon}`]:t[`deleteIconColor${be(o)}`]},{[`& .${Ge.deleteIcon}`]:t[`deleteIcon${be(u)}Color${be(o)}`]},t.root,t[`size${be(c)}`],t[`color${be(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${be(o)})`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${be(o)}`],t[u],t[`${u}${be(o)}`]]}})(dt(({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",[`&.${Ge.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ge.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ge.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ge.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ge.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ge.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ge.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:it(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)`:it(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ge.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ge.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(un(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ge.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:it(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ge.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ge.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ge.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(un(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ge.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}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ge.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(un(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ge.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]}`,[`&.${Ge.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ge.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ge.avatar}`]:{marginLeft:4},[`& .${Ge.avatarSmall}`]:{marginLeft:2},[`& .${Ge.icon}`]:{marginLeft:4},[`& .${Ge.iconSmall}`]:{marginLeft:2},[`& .${Ge.deleteIcon}`]:{marginRight:5},[`& .${Ge.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(un()).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)`:it(e.palette[n].main,.7)}`,[`&.${Ge.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ge.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ge.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:it(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),GT=le("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${be(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 Bf(e){return e.key==="Backspace"||e.key==="Delete"}const dg=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:c="default",component:u,deleteIcon:d,disabled:f=!1,icon:p,label:y,onClick:w,onDelete:b,onKeyDown:g,onKeyUp:v,size:E="medium",variant:k="filled",tabIndex:_,skipFocusWhenDisabled:x=!1,...C}=o,O=T.useRef(null),N=at(O,n),A=D=>{D.stopPropagation(),b&&b(D)},B=D=>{D.currentTarget===D.target&&Bf(D)&&D.preventDefault(),g&&g(D)},R=D=>{D.currentTarget===D.target&&b&&Bf(D)&&b(D),v&&v(D)},$=a!==!1&&w?!0:a,K=$||b?sr:u||"div",X={...o,component:K,disabled:f,size:E,color:c,iconColor:T.isValidElement(p)&&p.props.color||c,onDelete:!!b,clickable:$,variant:k},q=UT(X),Y=K===sr?{component:u||"div",focusVisibleClassName:q.focusVisible,...b&&{disableRipple:!0}}:{};let z=null;b&&(z=d&&T.isValidElement(d)?T.cloneElement(d,{className:Se(d.props.className,q.deleteIcon),onClick:A}):P.jsx(BT,{className:Se(q.deleteIcon),onClick:A}));let ae=null;r&&T.isValidElement(r)&&(ae=T.cloneElement(r,{className:Se(q.avatar,r.props.className)}));let I=null;return p&&T.isValidElement(p)&&(I=T.cloneElement(p,{className:Se(q.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&ae&&I&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),P.jsxs(qT,{as:K,className:Se(q.root,i),disabled:$&&f?!0:void 0,onClick:w,onKeyDown:B,onKeyUp:R,ref:N,tabIndex:x&&f?-1:_,ownerState:X,...Y,...C,children:[ae||I,P.jsx(GT,{className:Se(q.label),ownerState:X,children:y}),z]})});process.env.NODE_ENV!=="production"&&(dg.propTypes={avatar:s.element,children:Fx,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 Ra(e){return parseInt(e,10)||0}const KT={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function XT(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const hg=T.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:c,...u}=t,{current:d}=T.useRef(c!=null),f=T.useRef(null),p=at(n,f),y=T.useRef(null),w=T.useRef(null),b=T.useCallback(()=>{const E=f.current,_=zo(E).getComputedStyle(E);if(_.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=w.current;x.style.width=_.width,x.value=E.value||t.placeholder||"x",x.value.slice(-1)===`
|
|
217
|
+
`&&(x.value+=" ");const C=_.boxSizing,O=Ra(_.paddingBottom)+Ra(_.paddingTop),N=Ra(_.borderBottomWidth)+Ra(_.borderTopWidth),A=x.scrollHeight;x.value="x";const B=x.scrollHeight;let R=A;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+N:0),K=Math.abs(R-A)<=1;return{outerHeightStyle:$,overflowing:K}},[r,i,t.placeholder]),g=T.useCallback(()=>{const E=b();if(XT(E))return;const k=E.outerHeightStyle,_=f.current;y.current!==k&&(y.current=k,_.style.height=`${k}px`),_.style.overflow=E.overflowing?"hidden":""},[b]);nn(()=>{const E=()=>{g()};let k;const _=()=>{cancelAnimationFrame(k),k=requestAnimationFrame(()=>{E()})},x=Om(E),C=f.current,O=zo(C);O.addEventListener("resize",x);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(process.env.NODE_ENV==="test"?_:E),N.observe(C)),()=>{x.clear(),cancelAnimationFrame(k),O.removeEventListener("resize",x),N&&N.disconnect()}},[b,g]),nn(()=>{g()});const v=E=>{d||g(),o&&o(E)};return P.jsxs(T.Fragment,{children:[P.jsx("textarea",{value:c,onChange:v,ref:p,rows:i,style:a,...u}),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...KT.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(hg.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 Ti(e){return typeof e=="string"}function ur({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 qi=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(qi.displayName="FormControlContext");function On(){return T.useContext(qi)}function Yf(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function el(e,t=!1){return e&&(Yf(e.value)&&e.value!==""||t&&Yf(e.defaultValue)&&e.defaultValue!=="")}function ZT(e){return e.startAdornment}function QT(e){return Oe("MuiInputBase",e)}const Cs=De("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Uf;const Il=(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${be(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Nl=(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]},JT=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:c,fullWidth:u,hiddenLabel:d,multiline:f,readOnly:p,size:y,startAdornment:w,type:b}=e,g={root:["root",`color${be(n)}`,o&&"disabled",r&&"error",u&&"fullWidth",a&&"focused",c&&"formControl",y&&y!=="medium"&&`size${be(y)}`,f&&"multiline",w&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return Ie(g,QT,t)},Al=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Il})(dt(({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",[`&.${Cs.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%"}}]}))),Fl=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Nl})(dt(({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] + .${Cs.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},[`&.${Cs.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"}}]}})),qf=P_({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ll=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:c,color:u,components:d={},componentsProps:f={},defaultValue:p,disabled:y,disableInjectingGlobalStyles:w,endAdornment:b,error:g,fullWidth:v=!1,id:E,inputComponent:k="input",inputProps:_={},inputRef:x,margin:C,maxRows:O,minRows:N,multiline:A=!1,name:B,onBlur:R,onChange:$,onClick:K,onFocus:X,onKeyDown:q,onKeyUp:Y,placeholder:z,readOnly:ae,renderSuffix:I,rows:D,size:j,slotProps:W={},slots:ne={},startAdornment:oe,type:se="text",value:V,...J}=o,ee=_.value!=null?_.value:V,{current:te}=T.useRef(ee!=null),ce=T.useRef(),ie=T.useCallback(tt=>{process.env.NODE_ENV!=="production"&&tt&&tt.nodeName!=="INPUT"&&!tt.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=at(ce,x,_.ref,ie),[H,re]=T.useState(!1),Q=On();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(Q)return Q.registerEffect()},[Q]);const fe=ur({props:o,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=Q?Q.focused:H,T.useEffect(()=>{!Q&&y&&H&&(re(!1),R&&R())},[Q,y,H,R]);const me=Q&&Q.onFilled,Ce=Q&&Q.onEmpty,ve=T.useCallback(tt=>{el(tt)?me&&me():Ce&&Ce()},[me,Ce]);nn(()=>{te&&ve({value:ee})},[ee,ve,te]);const _e=tt=>{X&&X(tt),_.onFocus&&_.onFocus(tt),Q&&Q.onFocus?Q.onFocus(tt):re(!0)},$e=tt=>{R&&R(tt),_.onBlur&&_.onBlur(tt),Q&&Q.onBlur?Q.onBlur(tt):re(!1)},Ae=(tt,...Mn)=>{if(!te){const hn=tt.target||ce.current;if(hn==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.":wo(1));ve({value:hn.value})}_.onChange&&_.onChange(tt,...Mn),$&&$(tt,...Mn)};T.useEffect(()=>{ve(ce.current)},[]);const rt=tt=>{ce.current&&tt.currentTarget===tt.target&&ce.current.focus(),K&&K(tt)};let ke=k,ft=_;A&&ke==="input"&&(D?(process.env.NODE_ENV!=="production"&&(N||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ft={type:void 0,minRows:D,maxRows:D,...ft}):ft={type:void 0,maxRows:O,minRows:N,...ft},ke=hg);const Kt=tt=>{ve(tt.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};T.useEffect(()=>{Q&&Q.setAdornedStart(!!oe)},[Q,oe]);const st={...o,color:fe.color||"primary",disabled:fe.disabled,endAdornment:b,error:fe.error,focused:fe.focused,formControl:Q,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:A,size:fe.size,startAdornment:oe,type:se},Yt=JT(st),Xt=ne.root||d.Root||Al,on=W.root||f.root||{},Ye=ne.input||d.Input||Fl;return ft={...ft,...W.input??f.input},P.jsxs(T.Fragment,{children:[!w&&typeof qf=="function"&&(Uf||(Uf=P.jsx(qf,{}))),P.jsxs(Xt,{...on,ref:n,onClick:rt,...J,...!Ti(Xt)&&{ownerState:{...st,...on.ownerState}},className:Se(Yt.root,on.className,c,ae&&"MuiInputBase-readOnly"),children:[oe,P.jsx(qi.Provider,{value:null,children:P.jsx(Ye,{"aria-invalid":fe.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:p,disabled:fe.disabled,id:E,onAnimationStart:Kt,name:B,placeholder:z,readOnly:ae,required:fe.required,rows:D,value:ee,onKeyDown:q,onKeyUp:Y,type:se,...ft,...!Ti(Ye)&&{as:ke,ownerState:{...st,...ft.ownerState}},ref:he,className:Se(Yt.input,ft.className,ae&&"MuiInputBase-readOnly"),onBlur:$e,onChange:Ae,onFocus:_e})}),b,I?I({...fe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(Ll.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:Pl,inputProps:s.object,inputRef:Wt,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 eE(e){return Oe("MuiInput",e)}const Bs={...Cs,...De("MuiInput",["root","underline","input"])};function tE(e){return Oe("MuiOutlinedInput",e)}const uo={...Cs,...De("MuiOutlinedInput",["root","notchedOutline","input"])};function nE(e){return Oe("MuiFilledInput",e)}const pr={...Cs,...De("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},oE=an(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rE={entering:{opacity:1},entered:{opacity:1}},Mr=T.forwardRef(function(t,n){const o=Ts(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:u,in:d,onEnter:f,onEntered:p,onEntering:y,onExit:w,onExited:b,onExiting:g,style:v,timeout:E=r,TransitionComponent:k=Xn,..._}=t,x=T.useRef(null),C=at(x,zi(c),n),O=q=>Y=>{if(q){const z=x.current;Y===void 0?q(z):q(z,Y)}},N=O(y),A=O((q,Y)=>{Xm(q);const z=Xa({style:v,timeout:E,easing:u},{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(g),$=O(q=>{const Y=Xa({style:v,timeout:E,easing:u},{mode:"exit"});q.style.webkitTransition=o.transitions.create("opacity",Y),q.style.transition=o.transitions.create("opacity",Y),w&&w(q)}),K=O(b),X=q=>{i&&i(x.current,q)};return P.jsx(k,{appear:a,in:d,nodeRef:x,onEnter:A,onEntered:B,onEntering:N,onExit:$,onExited:K,onExiting:R,addEndListener:X,timeout:E,..._,children:(q,Y)=>T.cloneElement(c,{style:{opacity:0,visibility:q==="exited"&&!d?"hidden":void 0,...rE[q],...v,...c.props.style},ref:C,...Y})})});process.env.NODE_ENV!=="production"&&(Mr.propTypes={addEndListener:s.func,appear:s.bool,children:Hi.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 sE(e){return Oe("MuiBackdrop",e)}De("MuiBackdrop",["root","invisible"]);const iE=e=>{const{ownerState:t,...n}=e;return n},aE=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},sE,t)},lE=le("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"}}]}),Xu=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:c=!1,open:u,components:d={},componentsProps:f={},slotProps:p={},slots:y={},TransitionComponent:w,transitionDuration:b,...g}=o,v={...o,component:a,invisible:c},E=aE(v),k={transition:w,root:d.Root,...y},_={...f,...p},x={slots:k,slotProps:_},[C,O]=Rn("root",{elementType:lE,externalForwardedProps:x,className:Se(E.root,i),ownerState:v}),[N,A]=Rn("transition",{elementType:Mr,externalForwardedProps:x,ownerState:v}),B=iE(A);return P.jsx(N,{in:u,timeout:b,...g,...B,children:P.jsx(C,{"aria-hidden":!0,...O,classes:E,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Xu.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 cE=De("MuiBox",["root"]),uE=Um(),ks=ux({themeId:Fi,defaultTheme:uE,defaultClassName:cE.root,generateClassName:bm.generate});process.env.NODE_ENV!=="production"&&(ks.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 dE(e){return Oe("MuiButton",e)}const Xr=De("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"]),fg=T.createContext({});process.env.NODE_ENV!=="production"&&(fg.displayName="ButtonGroupContext");const pg=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(pg.displayName="ButtonGroupButtonContext");const hE=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:a}=e,c={root:["root",i,`${i}${be(t)}`,`size${be(r)}`,`${i}Size${be(r)}`,`color${be(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${be(r)}`],endIcon:["icon","endIcon",`iconSize${be(r)}`]},u=Ie(c,dE,a);return{...a,...u}},mg=[{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}}}],fE=le(sr,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${be(n.color)}`],t[`size${be(n.size)}`],t[`${n.variant}Size${be(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(dt(({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"},[`&.${Xr.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]},[`&.${Xr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Xr.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)",[`&.${Xr.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(un()).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)`:it(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})`:it(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})`:it(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})`:it(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:it(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"},[`&.${Xr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),pE=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${be(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...mg]}),mE=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${be(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...mg]}),os=T.forwardRef(function(t,n){const o=T.useContext(fg),r=T.useContext(pg),i=bi(o,t),a=Ke({props:i,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:f,disabled:p=!1,disableElevation:y=!1,disableFocusRipple:w=!1,endIcon:b,focusVisibleClassName:g,fullWidth:v=!1,size:E="medium",startIcon:k,type:_,variant:x="text",...C}=a,O={...a,color:u,component:d,disabled:p,disableElevation:y,disableFocusRipple:w,fullWidth:v,size:E,type:_,variant:x},N=hE(O),A=k&&P.jsx(pE,{className:N.startIcon,ownerState:O,children:k}),B=b&&P.jsx(mE,{className:N.endIcon,ownerState:O,children:b}),R=r||"";return P.jsxs(fE,{ownerState:O,className:Se(o.className,N.root,f,R),component:d,disabled:p,focusRipple:!w,focusVisibleClassName:Se(N.focusVisible,g),ref:n,type:_,...C,classes:N,children:[A,c,B]})});process.env.NODE_ENV!=="production"&&(os.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 gE(e){return Oe("PrivateSwitchBase",e)}De("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const yE=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,i={root:["root",n&&"checked",o&&"disabled",r&&`edge${be(r)}`],input:["input"]};return Ie(i,gE,t)},vE=le(sr)({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}}]}),bE=le("input",{shouldForwardProp:Dn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),gg=T.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:i,className:a,defaultChecked:c,disabled:u,disableFocusRipple:d=!1,edge:f=!1,icon:p,id:y,inputProps:w,inputRef:b,name:g,onBlur:v,onChange:E,onFocus:k,readOnly:_,required:x=!1,tabIndex:C,type:O,value:N,...A}=t,[B,R]=Co({controlled:r,default:!!c,name:"SwitchBase",state:"checked"}),$=On(),K=D=>{k&&k(D),$&&$.onFocus&&$.onFocus(D)},X=D=>{v&&v(D),$&&$.onBlur&&$.onBlur(D)},q=D=>{if(D.nativeEvent.defaultPrevented)return;const j=D.target.checked;R(j),E&&E(D,j)};let Y=u;$&&typeof Y>"u"&&(Y=$.disabled);const z=O==="checkbox"||O==="radio",ae={...t,checked:B,disabled:Y,disableFocusRipple:d,edge:f},I=yE(ae);return P.jsxs(vE,{component:"span",className:Se(I.root,a),centerRipple:!0,focusRipple:!d,disabled:Y,tabIndex:null,role:void 0,onFocus:K,onBlur:X,ownerState:ae,ref:n,...A,children:[P.jsx(bE,{autoFocus:o,checked:r,defaultChecked:c,className:I.input,disabled:Y,id:z?y:void 0,name:g,onChange:q,readOnly:_,ref:b,required:x,ownerState:ae,tabIndex:C,type:O,...O==="checkbox"&&N===void 0?{}:{value:N},...w}),B?i:p]})});process.env.NODE_ENV!=="production"&&(gg.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:Wt,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 wE=an(P.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"),CE=an(P.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"),SE=an(P.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 xE(e){return Oe("MuiCheckbox",e)}const Nc=De("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_E=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,i={root:["root",n&&"indeterminate",`color${be(o)}`,`size${be(r)}`]},a=Ie(i,xE,t);return{...t,...a}},RE=le(gg,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${be(n.size)}`],n.color!=="default"&&t[`color${be(n.color)}`]]}})(dt(({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})`:it(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(un()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(un()).map(([t])=>({props:{color:t},style:{[`&.${Nc.checked}, &.${Nc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Nc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),TE=P.jsx(CE,{}),EE=P.jsx(wE,{}),PE=P.jsx(SE,{}),Zu=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:r=TE,color:i="primary",icon:a=EE,indeterminate:c=!1,indeterminateIcon:u=PE,inputProps:d,size:f="medium",disableRipple:p=!1,className:y,...w}=o,b=c?u:a,g=c?u:r,v={...o,disableRipple:p,color:i,indeterminate:c,size:f},E=_E(v);return P.jsx(RE,{type:"checkbox",inputProps:{"data-indeterminate":c,...d},icon:T.cloneElement(b,{fontSize:b.props.fontSize??f}),checkedIcon:T.cloneElement(g,{fontSize:g.props.fontSize??f}),ownerState:v,ref:n,className:Se(E.root,y),disableRipple:p,...w,classes:E})});process.env.NODE_ENV!=="production"&&(Zu.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:Wt,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 kE(e){const t=gn(e);return t.body===e?zo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ui(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gf(e){return parseInt(zo(e).getComputedStyle(e).paddingRight,10)||0}function DE(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 Kf(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const c=!i.includes(a),u=!DE(a);c&&u&&ui(a,r)})}function Ac(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function OE(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(kE(o)){const a=Nm(zo(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Gf(o)+a}px`;const c=gn(o).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${Gf(u)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=gn(o).body;else{const a=o.parentElement,c=zo(o);i=a?.nodeName==="HTML"&&c.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:c})=>{i?a.style.setProperty(c,i):a.style.removeProperty(c)})}}function ME(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class IE{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&&ui(t.modalRef,!1);const r=ME(n);Kf(n,t.mount,t.modalRef,r,!0);const i=Ac(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=Ac(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=OE(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Ac(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&&ui(t.modalRef,n),Kf(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&&ui(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const NE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function AE(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 FE(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 LE(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||FE(e))}function $E(e){const t=[],n=[];return Array.from(e.querySelectorAll(NE)).forEach((o,r)=>{const i=AE(o);i===-1||!LE(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 jE(){return!0}function Ei(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=$E,isEnabled:a=jE,open:c}=e,u=T.useRef(!1),d=T.useRef(null),f=T.useRef(null),p=T.useRef(null),y=T.useRef(null),w=T.useRef(!1),b=T.useRef(null),g=at(zi(t),b),v=T.useRef(null);T.useEffect(()=>{!c||!b.current||(w.current=!n)},[n,c]),T.useEffect(()=>{if(!c||!b.current)return;const _=gn(b.current);return b.current.contains(_.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
|
+
`)),b.current.setAttribute("tabIndex","-1")),w.current&&b.current.focus()),()=>{r||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}},[c]),T.useEffect(()=>{if(!c||!b.current)return;const _=gn(b.current),x=N=>{v.current=N,!(o||!a()||N.key!=="Tab")&&_.activeElement===b.current&&N.shiftKey&&(u.current=!0,f.current&&f.current.focus())},C=()=>{const N=b.current;if(N===null)return;if(!_.hasFocus()||!a()||u.current){u.current=!1;return}if(N.contains(_.activeElement)||o&&_.activeElement!==d.current&&_.activeElement!==f.current)return;if(_.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!w.current)return;let A=[];if((_.activeElement===d.current||_.activeElement===f.current)&&(A=i(b.current)),A.length>0){const B=!!(v.current?.shiftKey&&v.current?.key==="Tab"),R=A[0],$=A[A.length-1];typeof R!="string"&&typeof $!="string"&&(B?$.focus():R.focus())}else N.focus()};_.addEventListener("focusin",C),_.addEventListener("keydown",x,!0);const O=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(O),_.removeEventListener("focusin",C),_.removeEventListener("keydown",x,!0)}},[n,o,r,a,c,i]);const E=_=>{p.current===null&&(p.current=_.relatedTarget),w.current=!0,y.current=_.target;const x=t.props.onFocus;x&&x(_)},k=_=>{p.current===null&&(p.current=_.relatedTarget),w.current=!0};return P.jsxs(T.Fragment,{children:[P.jsx("div",{tabIndex:c?0:-1,onFocus:k,ref:d,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:g,onFocus:E}),P.jsx("div",{tabIndex:c?0:-1,onFocus:k,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ei.propTypes={children:Hi,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ei.propTypes=Dm(Ei.propTypes));function VE(e){return typeof e=="function"?e():e}function WE(e){return e?e.props.hasOwnProperty("in"):!1}const Ta=new IE;function HE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:c,onClose:u,open:d,rootRef:f}=e,p=T.useRef({}),y=T.useRef(null),w=T.useRef(null),b=at(w,f),[g,v]=T.useState(!d),E=WE(c);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const _=()=>gn(y.current),x=()=>(p.current.modalRef=w.current,p.current.mount=y.current,p.current),C=()=>{Ta.mount(x(),{disableScrollLock:o}),w.current&&(w.current.scrollTop=0)},O=Te(()=>{const Y=VE(t)||_().body;Ta.add(x(),Y),w.current&&C()}),N=()=>Ta.isTopModal(x()),A=Te(Y=>{y.current=Y,Y&&(d&&N()?C():w.current&&ui(w.current,k))}),B=T.useCallback(()=>{Ta.remove(x(),k)},[k]);T.useEffect(()=>()=>{B()},[B]),T.useEffect(()=>{d?O():(!E||!r)&&B()},[d,B,E,r,O]);const R=Y=>z=>{Y.onKeyDown?.(z),!(z.key!=="Escape"||z.which===229||!N())&&(n||(z.stopPropagation(),u&&u(z,"escapeKeyDown")))},$=Y=>z=>{Y.onClick?.(z),z.target===z.currentTarget&&u&&u(z,"backdropClick")};return{getRootProps:(Y={})=>{const z=jm(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:d}},getTransitionProps:()=>{const Y=()=>{v(!1),i&&i()},z=()=>{v(!0),a&&a(),r&&B()};return{onEnter:uf(Y,c?.props.onEnter),onExited:uf(z,c?.props.onExited)}},rootRef:b,portalRef:A,isTopModal:N,exited:g,hasTransition:E}}function zE(e){return Oe("MuiModal",e)}De("MuiModal",["root","hidden","backdrop"]);const BE=e=>{const{open:t,exited:n,classes:o}=e;return Ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zE,o)},YE=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(dt(({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"}}]}))),UE=le(Xu,{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=UE,BackdropProps:i,classes:a,className:c,closeAfterTransition:u=!1,children:d,container:f,component:p,components:y={},componentsProps:w={},disableAutoFocus:b=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:v=!1,disablePortal:E=!1,disableRestoreFocus:k=!1,disableScrollLock:_=!1,hideBackdrop:x=!1,keepMounted:C=!1,onBackdropClick:O,onClose:N,onTransitionEnter:A,onTransitionExited:B,open:R,slotProps:$={},slots:K={},theme:X,...q}=o,Y={...o,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:g,disableEscapeKeyDown:v,disablePortal:E,disableRestoreFocus:k,disableScrollLock:_,hideBackdrop:x,keepMounted:C},{getRootProps:z,getBackdropProps:ae,getTransitionProps:I,portalRef:D,isTopModal:j,exited:W,hasTransition:ne}=HE({...Y,rootRef:n}),oe={...Y,exited:W},se=BE(oe),V={};if(d.props.tabIndex===void 0&&(V.tabIndex="-1"),ne){const{onEnter:H,onExited:re}=I();V.onEnter=H,V.onExited=re}const J={...q,slots:{root:y.Root,backdrop:y.Backdrop,...K},slotProps:{...w,...$}},[ee,te]=Rn("root",{elementType:YE,externalForwardedProps:J,getSlotProps:z,additionalProps:{ref:n,as:p},ownerState:oe,className:Se(c,se?.root,!oe.open&&oe.exited&&se?.hidden)}),[ce,ie]=Rn("backdrop",{elementType:r,externalForwardedProps:J,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=at(i?.ref,ie.ref);return!C&&!R&&(!ne||W)?null:P.jsx(Ri,{ref:D,container:f,disablePortal:E,children:P.jsxs(ee,{...te,children:[!x&&r?P.jsx(ce,{...ie,ref:he}):null,P.jsx(Ei,{disableEnforceFocus:g,disableAutoFocus:b,disableRestoreFocus:k,isEnabled:j,open:R,children:T.cloneElement(d,V)})]})})});process.env.NODE_ENV!=="production"&&(Qu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Hi.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([Ho,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 qE(e){return Oe("MuiDialog",e)}const di=De("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),yg=T.createContext({});process.env.NODE_ENV!=="production"&&(yg.displayName="DialogContext");const GE=le(Xu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),KE=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${be(n)}`],paper:["paper",`paperScroll${be(n)}`,`paperWidth${be(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(a,qE,t)},XE=le(Qu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ZE=le("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${be(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"}}}]}),QE=le(Es,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${be(n.scroll)}`],t[`paperWidth${be(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(dt(({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)`,[`&.${di.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}`,[`&.${di.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,[`&.${di.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),vg=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialog"}),r=Ts(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":c,"aria-modal":u=!0,BackdropComponent:d,BackdropProps:f,children:p,className:y,disableEscapeKeyDown:w=!1,fullScreen:b=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:E,onClick:k,onClose:_,open:x,PaperComponent:C=Es,PaperProps:O={},scroll:N="paper",TransitionComponent:A=Mr,transitionDuration:B=i,TransitionProps:R,...$}=o,K={...o,disableEscapeKeyDown:w,fullScreen:b,fullWidth:g,maxWidth:v,scroll:N},X=KE(K),q=T.useRef(),Y=D=>{q.current=D.target===D.currentTarget},z=D=>{k&&k(D),q.current&&(q.current=null,E&&E(D),_&&_(D,"backdropClick"))},ae=lr(c),I=T.useMemo(()=>({titleId:ae}),[ae]);return P.jsx(XE,{className:Se(X.root,y),closeAfterTransition:!0,components:{Backdrop:GE},componentsProps:{backdrop:{transitionDuration:B,as:d,...f}},disableEscapeKeyDown:w,onClose:_,open:x,ref:n,onClick:z,ownerState:K,...$,children:P.jsx(A,{appear:!0,in:x,timeout:B,role:"presentation",...R,children:P.jsx(ZE,{className:Se(X.container),onMouseDown:Y,ownerState:K,children:P.jsx(QE,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":ae,"aria-modal":u,...O,className:Se(X.paper,O.className),ownerState:K,children:P.jsx(yg.Provider,{value:I,children:p})})})})})});process.env.NODE_ENV!=="production"&&(vg.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 JE(e){return Oe("MuiDialogActions",e)}De("MuiDialogActions",["root","spacing"]);const e1=e=>{const{classes:t,disableSpacing:n}=e;return Ie({root:["root",!n&&"spacing"]},JE,t)},t1=le("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}}}]}),bg=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,c={...o,disableSpacing:i},u=e1(c);return P.jsx(t1,{className:Se(u.root,r),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(bg.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 n1(e){return Oe("MuiDialogContent",e)}De("MuiDialogContent",["root","dividers"]);const o1=De("MuiDialogTitle",["root"]),r1=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},n1,t)},s1=le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(dt(({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:{[`.${o1.root} + &`]:{paddingTop:0}}}]}))),wg=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,c={...o,dividers:i},u=r1(c);return P.jsx(s1,{className:Se(u.root,r),ownerState:c,ref:n,...a})});process.env.NODE_ENV!=="production"&&(wg.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 i1(e){return Oe("MuiDivider",e)}const Xf=De("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),a1=e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:a,textAlign:c,variant:u}=e;return Ie({root:["root",t&&"absolute",u,i&&"light",a==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",c==="right"&&a!=="vertical"&&"textAlignRight",c==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},i1,o)},l1=le("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]}})(dt(({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)`:it(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%"}}}]}))),c1=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(dt(({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)`}}]}))),tl=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDivider"}),{absolute:r=!1,children:i,className:a,orientation:c="horizontal",component:u=i||c==="vertical"?"div":"hr",flexItem:d=!1,light:f=!1,role:p=u!=="hr"?"separator":void 0,textAlign:y="center",variant:w="fullWidth",...b}=o,g={...o,absolute:r,component:u,flexItem:d,light:f,orientation:c,role:p,textAlign:y,variant:w},v=a1(g);return P.jsx(l1,{as:u,className:Se(v.root,a),role:p,ref:n,ownerState:g,"aria-orientation":p==="separator"&&(u!=="hr"||c==="vertical")?c:void 0,...b,children:i?P.jsx(c1,{className:v.wrapper,ownerState:g,children:i}):null})});tl&&(tl.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(tl.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 u1=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:c}=e,u={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${be(i)}`,a&&"hiddenLabel",c&&"multiline"],input:["input"]},d=Ie(u,nE,t);return{...t,...d}},d1=le(Al,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Il(e,t),!n.disableUnderline&&t.underline]}})(dt(({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(un()).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:c})=>a.multiline&&c==="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}}]}})),h1=le(Fl,{name:"MuiFilledInput",slot:"Input",overridesResolver:Nl})(dt(({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}}]}))),Pi=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:c=!1,hiddenLabel:u,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:y={},type:w="text",...b}=o,g={...o,disableUnderline:r,fullWidth:c,inputComponent:d,multiline:f,type:w},v=u1(o),E={root:{ownerState:g},input:{ownerState:g}},k=p??a?mn(E,p??a):E,_=y.root??i.Root??d1,x=y.input??i.Input??h1;return P.jsx(Ll,{slots:{root:_,input:x},componentsProps:k,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:w,...b,classes:v})});process.env.NODE_ENV!=="production"&&(Pi.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:Wt,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});Pi&&(Pi.muiName="Input");function f1(e){return Oe("MuiFormControl",e)}De("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const p1=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${be(n)}`,o&&"fullWidth"]};return Ie(r,f1,t)},m1=le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${be(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%"}}]}),Gi=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:c="div",disabled:u=!1,error:d=!1,focused:f,fullWidth:p=!1,hiddenLabel:y=!1,margin:w="none",required:b=!1,size:g="medium",variant:v="outlined",...E}=o,k={...o,color:a,component:c,disabled:u,error:d,fullWidth:p,hiddenLabel:y,margin:w,required:b,size:g,variant:v},_=p1(k),[x,C]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{if(!ai(Y,["Input","Select"]))return;const z=ai(Y,["Select"])?Y.props.input:Y;z&&ZT(z.props)&&(q=!0)}),q}),[O,N]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{ai(Y,["Input","Select"])&&(el(Y.props,!0)||el(Y.props.inputProps,!0))&&(q=!0)}),q}),[A,B]=T.useState(!1);u&&A&&B(!1);const R=f!==void 0&&!u?f:A;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
|
+
`)),K.current=!0,()=>{K.current=!1}));const X=T.useMemo(()=>({adornedStart:x,setAdornedStart:C,color:a,disabled:u,error:d,filled:O,focused:R,fullWidth:p,hiddenLabel:y,size:g,onBlur:()=>{B(!1)},onEmpty:()=>{N(!1)},onFilled:()=>{N(!0)},onFocus:()=>{B(!0)},registerEffect:$,required:b,variant:v}),[x,a,u,d,O,R,p,y,$,b,g,v]);return P.jsx(qi.Provider,{value:X,children:P.jsx(m1,{as:c,ownerState:k,className:Se(_.root,i),ref:n,...E,children:r})})});process.env.NODE_ENV!=="production"&&(Gi.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 g1(e){return Oe("MuiFormControlLabel",e)}const si=De("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),y1=e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${be(o)}`,r&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return Ie(a,g1,t)},v1=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${si.label}`]:t.label},t.root,t[`labelPlacement${be(n.labelPlacement)}`]]}})(dt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${si.disabled}`]:{cursor:"default"},[`& .${si.label}`]:{[`&.${si.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}}]}))),b1=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(dt(({theme:e})=>({[`&.${si.error}`]:{color:(e.vars||e).palette.error.main}}))),ja=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormControlLabel"}),{checked:r,className:i,componentsProps:a={},control:c,disabled:u,disableTypography:d,inputRef:f,label:p,labelPlacement:y="end",name:w,onChange:b,required:g,slots:v={},slotProps:E={},value:k,..._}=o,x=On(),C=u??c.props.disabled??x?.disabled,O=g??c.props.required,N={disabled:C,required:O};["checked","name","onChange","value","inputRef"].forEach(Y=>{typeof c.props[Y]>"u"&&typeof o[Y]<"u"&&(N[Y]=o[Y])});const A=ur({props:o,muiFormControl:x,states:["error"]}),B={...o,disabled:C,labelPlacement:y,required:O,error:A.error},R=y1(B),$={slots:v,slotProps:{...a,...E}},[K,X]=Rn("typography",{elementType:Tn,externalForwardedProps:$,ownerState:B});let q=p;return q!=null&&q.type!==Tn&&!d&&(q=P.jsx(K,{component:"span",...X,className:Se(R.label,X?.className),children:q})),P.jsxs(v1,{className:Se(R.root,i),ownerState:B,ref:n,..._,children:[T.cloneElement(c,N),O?P.jsxs("div",{children:[q,P.jsxs(b1,{ownerState:B,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):q]})});process.env.NODE_ENV!=="production"&&(ja.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:Wt,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 w1(e){return Oe("MuiFormGroup",e)}De("MuiFormGroup",["root","row","error"]);const C1=e=>{const{classes:t,row:n,error:o}=e;return Ie({root:["root",n&&"row",o&&"error"]},w1,t)},S1=le("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"}}]}),Cg=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormGroup"}),{className:r,row:i=!1,...a}=o,c=On(),u=ur({props:o,muiFormControl:c,states:["error"]}),d={...o,row:i,error:u.error},f=C1(d);return P.jsx(S1,{className:Se(f.root,r),ownerState:d,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Cg.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 x1(e){return Oe("MuiFormHelperText",e)}const Zf=De("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Qf;const _1=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:c,required:u}=e,d={root:["root",r&&"disabled",i&&"error",o&&`size${be(o)}`,n&&"contained",c&&"focused",a&&"filled",u&&"required"]};return Ie(d,x1,t)},R1=le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${be(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Zf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Zf.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}}]}))),Ju=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:c,error:u,filled:d,focused:f,margin:p,required:y,variant:w,...b}=o,g=On(),v=ur({props:o,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),E={...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 E.ownerState;const k=_1(E);return P.jsx(R1,{as:a,className:Se(k.root,i),ref:n,...b,ownerState:E,children:r===" "?Qf||(Qf=P.jsx("span",{className:"notranslate",children:""})):r})});process.env.NODE_ENV!=="production"&&(Ju.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 T1(e){return Oe("MuiFormLabel",e)}const hi=De("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),E1=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:c}=e,u={root:["root",`color${be(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",c&&"required"],asterisk:["asterisk",i&&"error"]};return Ie(u,T1,t)},P1=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(dt(({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(un()).map(([t])=>({props:{color:t},style:{[`&.${hi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${hi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),k1=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(dt(({theme:e})=>({[`&.${hi.error}`]:{color:(e.vars||e).palette.error.main}}))),Sg=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:c="label",disabled:u,error:d,filled:f,focused:p,required:y,...w}=o,b=On(),g=ur({props:o,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),v={...o,color:g.color||"primary",component:c,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},E=E1(v);return P.jsxs(P1,{as:c,ownerState:v,className:Se(E.root,i),ref:n,...w,children:[r,g.required&&P.jsxs(k1,{ownerState:v,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Sg.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 lu(e){return`scale(${e}, ${e**2})`}const D1={entering:{opacity:1,transform:lu(1)},entered:{opacity:1,transform:"none"}},Fc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ki=T.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:y,onExiting:w,style:b,timeout:g="auto",TransitionComponent:v=Xn,...E}=t,k=Im(),_=T.useRef(),x=Ts(),C=T.useRef(null),O=at(C,zi(i),n),N=Y=>z=>{if(Y){const ae=C.current;z===void 0?Y(ae):Y(ae,z)}},A=N(f),B=N((Y,z)=>{Xm(Y);const{duration:ae,delay:I,easing:D}=Xa({style:b,timeout:g,easing:a},{mode:"enter"});let j;g==="auto"?(j=x.transitions.getAutoHeightDuration(Y.clientHeight),_.current=j):j=ae,Y.style.transition=[x.transitions.create("opacity",{duration:j,delay:I}),x.transitions.create("transform",{duration:Fc?j:j*.666,delay:I,easing:D})].join(","),u&&u(Y,z)}),R=N(d),$=N(w),K=N(Y=>{const{duration:z,delay:ae,easing:I}=Xa({style:b,timeout:g,easing:a},{mode:"exit"});let D;g==="auto"?(D=x.transitions.getAutoHeightDuration(Y.clientHeight),_.current=D):D=z,Y.style.transition=[x.transitions.create("opacity",{duration:D,delay:ae}),x.transitions.create("transform",{duration:Fc?D:D*.666,delay:Fc?ae:ae||D*.333,easing:I})].join(","),Y.style.opacity=0,Y.style.transform=lu(.75),p&&p(Y)}),X=N(y),q=Y=>{g==="auto"&&k.start(_.current||0,Y),o&&o(C.current,Y)};return P.jsx(v,{appear:r,in:c,nodeRef:C,onEnter:B,onEntered:R,onEntering:A,onExit:K,onExited:X,onExiting:$,addEndListener:q,timeout:g==="auto"?null:g,...E,children:(Y,z)=>T.cloneElement(i,{style:{opacity:0,transform:lu(.75),visibility:Y==="exited"&&!c?"hidden":void 0,...D1[Y],...b,...i.props.style},ref:O,...z})})});process.env.NODE_ENV!=="production"&&(ki.propTypes={addEndListener:s.func,appear:s.bool,children:Hi.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})])});ki&&(ki.muiSupportAuto=!0);const O1=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},eE,t);return{...t,...r}},M1=le(Al,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Il(e,t),!n.disableUnderline&&t.underline]}})(dt(({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"},[`&.${Bs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bs.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(.${Bs.disabled}, .${Bs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Bs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(un()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),I1=le(Fl,{name:"MuiInput",slot:"Input",overridesResolver:Nl})({}),Di=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:p={},type:y="text",...w}=o,b=O1(o),v={root:{ownerState:{disableUnderline:r}}},E=f??a?mn(f??a,v):v,k=p.root??i.Root??M1,_=p.input??i.Input??I1;return P.jsx(Ll,{slots:{root:k,input:_},slotProps:E,fullWidth:c,inputComponent:u,multiline:d,ref:n,type:y,...w,classes:b})});process.env.NODE_ENV!=="production"&&(Di.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:Wt,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});Di&&(Di.muiName="Input");function N1(e){return Oe("MuiInputAdornment",e)}const Jf=De("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ep;const A1=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${be(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},F1=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,c={root:["root",n&&"disablePointerEvents",r&&`position${be(r)}`,a,o&&"hiddenLabel",i&&`size${be(i)}`]};return Ie(c,N1,t)},L1=le("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:A1})(dt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Jf.positionStart}&:not(.${Jf.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),ed=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:c=!1,disableTypography:u=!1,position:d,variant:f,...p}=o,y=On()||{};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:c,position:d,variant:w},g=F1(b);return P.jsx(qi.Provider,{value:null,children:P.jsx(L1,{as:a,ownerState:b,className:Se(g.root,i),ref:n,...p,children:typeof r=="string"&&!u?P.jsx(Tn,{color:"textSecondary",children:r}):P.jsxs(T.Fragment,{children:[d==="start"?ep||(ep=P.jsx("span",{className:"notranslate",children:""})):null,r]})})})});process.env.NODE_ENV!=="production"&&(ed.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 $1(e){return Oe("MuiInputLabel",e)}De("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const j1=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:c}=e,u={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="normal"&&`size${be(o)}`,a],asterisk:[c&&"asterisk"]},d=Ie(u,$1,t);return{...t,...d}},V1=le(Sg,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hi.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]]}})(dt(({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)"}}]}))),Ki=T.forwardRef(function(t,n){const o=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:c,className:u,...d}=o,f=On();let p=a;typeof p>"u"&&f&&(p=f.filled||f.focused||f.adornedStart);const y=ur({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=j1(w);return P.jsx(V1,{"data-shrink":p,ref:n,className:Se(b.root,u),...d,ownerState:w,classes:b})});process.env.NODE_ENV!=="production"&&(Ki.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 $o=T.createContext({});process.env.NODE_ENV!=="production"&&($o.displayName="ListContext");function W1(e){return Oe("MuiList",e)}De("MuiList",["root","padding","dense","subheader"]);const H1=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Ie({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},W1,t)},z1=le("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}}]}),td=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:c=!1,disablePadding:u=!1,subheader:d,...f}=o,p=T.useMemo(()=>({dense:c}),[c]),y={...o,component:a,dense:c,disablePadding:u},w=H1(y);return P.jsx($o.Provider,{value:p,children:P.jsxs(z1,{as:a,className:Se(w.root,i),ref:n,ownerState:y,...f,children:[d,r]})})});process.env.NODE_ENV!=="production"&&(td.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 B1(e){return Oe("MuiListItem",e)}De("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Y1=De("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function U1(e){return Oe("MuiListItemSecondaryAction",e)}De("MuiListItemSecondaryAction",["root","disableGutters"]);const q1=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},U1,n)},G1=le("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}}]}),nd=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=T.useContext($o),c={...o,disableGutters:a.disableGutters},u=q1(c);return P.jsx(G1,{className:Se(u.root,r),ownerState:c,ref:n,...i})});process.env.NODE_ENV!=="production"&&(nd.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])});nd.muiName="ListItemSecondaryAction";const K1=(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]},X1=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:c}=e;return Ie({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},B1,n)},Z1=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:K1})(dt(({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:{[`& > .${Y1.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}}]}))),Q1=le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),xg=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:c,components:u={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:p,...y}={},dense:w=!1,disableGutters:b=!1,disablePadding:g=!1,divider:v=!1,secondaryAction:E,slotProps:k={},slots:_={},...x}=o,C=T.useContext($o),O=T.useMemo(()=>({dense:w||C.dense||!1,alignItems:r,disableGutters:b}),[r,C.dense,w,b]),N=T.useRef(null),A=T.Children.toArray(i),B=A.length&&ai(A[A.length-1],["ListItemSecondaryAction"]),R={...o,alignItems:r,dense:O.dense,disableGutters:b,disablePadding:g,divider:v,hasSecondaryAction:B},$=X1(R),K=at(N,n),X=_.root||u.Root||Z1,q=k.root||d.root||{},Y={className:Se($.root,q.className,a),...x};let z=c||"li";return B?(z=!Y.component&&!c?"div":z,f==="li"&&(z==="li"?z="div":Y.component==="li"&&(Y.component="div")),P.jsx($o.Provider,{value:O,children:P.jsxs(Q1,{as:f,className:Se($.container,p),ref:K,ownerState:R,...y,children:[P.jsx(X,{...q,...!Ti(X)&&{as:z,ownerState:{...R,...q.ownerState}},...Y,children:A}),A.pop()]})})):P.jsx($o.Provider,{value:O,children:P.jsxs(X,{...q,as:z,ref:K,...!Ti(X)&&{ownerState:{...R,...q.ownerState}},...Y,children:[A,E&&P.jsx(nd,{children:E})]})})});process.env.NODE_ENV!=="production"&&(xg.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:ar(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(ai(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:Pl,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 tp=De("MuiListItemIcon",["root","alignItemsFlexStart"]);function J1(e){return Oe("MuiListItemText",e)}const rs=De("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),eP=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"]},J1,t)},tP=le("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rs.primary}`]:t.primary},{[`& .${rs.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,[`.${If.root}:where(& .${rs.primary})`]:{display:"block"},[`.${If.root}:where(& .${rs.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),cu=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItemText"}),{children:r,className:i,disableTypography:a=!1,inset:c=!1,primary:u,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:p,...y}=o,{dense:w}=T.useContext($o);let b=u??r,g=f;const v={...o,disableTypography:a,inset:c,primary:!!b,secondary:!!g,dense:w},E=eP(v);return b!=null&&b.type!==Tn&&!a&&(b=P.jsx(Tn,{variant:w?"body2":"body1",className:E.primary,component:d?.variant?void 0:"span",...d,children:b})),g!=null&&g.type!==Tn&&!a&&(g=P.jsx(Tn,{variant:"body2",className:E.secondary,color:"textSecondary",...p,children:g})),P.jsxs(tP,{className:Se(E.root,i),ownerState:v,ref:n,...y,children:[b,g]})});process.env.NODE_ENV!=="production"&&(cu.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 Lc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function np(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function _g(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 Ys(e,t,n,o,r,i){let a=!1,c=r(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(a)return!1;a=!0}const u=o?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!_g(c,i)||u)c=r(e,c,n);else return c.focus(),!0}return!1}const Rg=T.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:c,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:f,variant:p="selectedMenu",...y}=t,w=T.useRef(null),b=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nn(()=>{r&&w.current.focus()},[r]),T.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(_,{direction:x})=>{const C=!w.current.style.width;if(_.clientHeight<w.current.clientHeight&&C){const O=`${Nm(zo(_))}px`;w.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=O,w.current.style.width=`calc(100% + ${O})`}return w.current}}),[]);const g=_=>{const x=w.current,C=_.key;if(_.ctrlKey||_.metaKey||_.altKey){f&&f(_);return}const N=gn(x).activeElement;if(C==="ArrowDown")_.preventDefault(),Ys(x,N,d,u,Lc);else if(C==="ArrowUp")_.preventDefault(),Ys(x,N,d,u,np);else if(C==="Home")_.preventDefault(),Ys(x,null,d,u,Lc);else if(C==="End")_.preventDefault(),Ys(x,null,d,u,np);else if(C.length===1){const A=b.current,B=C.toLowerCase(),R=performance.now();A.keys.length>0&&(R-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&B!==A.keys[0]&&(A.repeating=!1)),A.lastTime=R,A.keys.push(B);const $=N&&!A.repeating&&_g(N,A);A.previousKeyMatched&&($||Ys(x,N,!1,u,Lc,A))?_.preventDefault():A.previousKeyMatched=!1}f&&f(_)},v=at(w,n);let E=-1;T.Children.forEach(a,(_,x)=>{if(!T.isValidElement(_)){E===x&&(E+=1,E>=a.length&&(E=-1));return}process.env.NODE_ENV!=="production"&&ju.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
221
|
+
`)),_.props.disabled||(p==="selectedMenu"&&_.props.selected||E===-1)&&(E=x),E===x&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(E+=1,E>=a.length&&(E=-1))});const k=T.Children.map(a,(_,x)=>{if(x===E){const C={};return i&&(C.autoFocus=!0),_.props.tabIndex===void 0&&p==="selectedMenu"&&(C.tabIndex=0),T.cloneElement(_,C)}return _});return P.jsx(td,{role:"menu",ref:v,className:c,onKeyDown:g,tabIndex:r?0:-1,...y,children:k})});process.env.NODE_ENV!=="production"&&(Rg.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 nP(e){return Oe("MuiPopover",e)}De("MuiPopover",["root","paper"]);function op(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function rp(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function sp(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Va(e){return typeof e=="function"?e():e}const oP=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},nP,t)},rP=le(Qu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tg=le(Es,{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}),Eg=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:f,container:p,elevation:y=8,marginThreshold:w=16,open:b,PaperProps:g={},slots:v={},slotProps:E={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:_=ki,transitionDuration:x="auto",TransitionProps:{onEntering:C,...O}={},disableScrollLock:N=!1,...A}=o,B=E?.paper??g,R=T.useRef(),$={...o,anchorOrigin:a,anchorReference:u,elevation:y,marginThreshold:w,externalPaperSlotProps:B,transformOrigin:k,TransitionComponent:_,transitionDuration:x,TransitionProps:O},K=oP($),X=T.useCallback(()=>{if(u==="anchorPosition")return process.env.NODE_ENV!=="production"&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const ie=Va(i),he=ie&&ie.nodeType===1?ie:gn(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(`
|
|
222
|
+
`))}return{top:H.top+op(H,a.vertical),left:H.left+rp(H,a.horizontal)}},[i,a.horizontal,a.vertical,c,u]),q=T.useCallback(ie=>({vertical:op(ie,k.vertical),horizontal:rp(ie,k.horizontal)}),[k.horizontal,k.vertical]),Y=T.useCallback(ie=>{const he={width:ie.offsetWidth,height:ie.offsetHeight},H=q(he);if(u==="none")return{top:null,left:null,transformOrigin:sp(H)};const re=X();let Q=re.top-H.vertical,fe=re.left-H.horizontal;const me=Q+he.height,Ce=fe+he.width,ve=zo(Va(i)),_e=ve.innerHeight-w,$e=ve.innerWidth-w;if(w!==null&&Q<w){const Ae=Q-w;Q-=Ae,H.vertical+=Ae}else if(w!==null&&me>_e){const Ae=me-_e;Q-=Ae,H.vertical+=Ae}if(process.env.NODE_ENV!=="production"&&he.height>_e&&he.height&&_e&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${he.height-_e}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
223
|
+
`)),w!==null&&fe<w){const Ae=fe-w;fe-=Ae,H.horizontal+=Ae}else if(Ce>$e){const Ae=Ce-$e;fe-=Ae,H.horizontal+=Ae}return{top:`${Math.round(Q)}px`,left:`${Math.round(fe)}px`,transformOrigin:sp(H)}},[i,u,X,q,w]),[z,ae]=T.useState(b),I=T.useCallback(()=>{const ie=R.current;if(!ie)return;const he=Y(ie);he.top!==null&&ie.style.setProperty("top",he.top),he.left!==null&&(ie.style.left=he.left),ie.style.transformOrigin=he.transformOrigin,ae(!0)},[Y]);T.useEffect(()=>(N&&window.addEventListener("scroll",I),()=>window.removeEventListener("scroll",I)),[i,N,I]);const D=(ie,he)=>{C&&C(ie,he),I()},j=()=>{ae(!1)};T.useEffect(()=>{b&&I()}),T.useImperativeHandle(r,()=>b?{updatePosition:()=>{I()}}:null,[b,I]),T.useEffect(()=>{if(!b)return;const ie=Om(()=>{I()}),he=zo(i);return he.addEventListener("resize",ie),()=>{ie.clear(),he.removeEventListener("resize",ie)}},[i,b,I]);let W=x;x==="auto"&&!_.muiSupportAuto&&(W=void 0);const ne=p||(i?gn(Va(i)).body:void 0),oe={slots:v,slotProps:{...E,paper:B}},[se,V]=Rn("paper",{elementType:Tg,externalForwardedProps:oe,additionalProps:{elevation:y,className:Se(K.paper,B?.className),style:z?B.style:{...B.style,opacity:0}},ownerState:$}),[J,{slotProps:ee,...te}]=Rn("root",{elementType:rP,externalForwardedProps:oe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ne,open:b},ownerState:$,className:Se(K.root,f)}),ce=at(R,V.ref);return P.jsx(J,{...te,...!Ti(J)&&{slotProps:ee,disableScrollLock:N},...A,ref:n,children:P.jsx(_,{appear:!0,in:b,onEntering:D,onExited:j,timeout:W,...O,children:P.jsx(se,{...V,ref:ce,children:d})})})});process.env.NODE_ENV!=="production"&&(Eg.propTypes={action:Wt,anchorEl:ar(s.oneOfType([Ho,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Va(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
|
+
`))}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
|
+
`))}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([Ho,s.func]),disableScrollLock:s.bool,elevation:Lm,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:Pl}),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 sP(e){return Oe("MuiMenu",e)}De("MuiMenu",["root","paper","list"]);const iP={vertical:"top",horizontal:"right"},aP={vertical:"top",horizontal:"left"},lP=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},sP,t)},cP=le(Eg,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uP=le(Tg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dP=le(Rg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Pg=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:p={},PopoverClasses:y,transitionDuration:w="auto",TransitionProps:{onEntering:b,...g}={},variant:v="selectedMenu",slots:E={},slotProps:k={},..._}=o,x=so(),C={...o,autoFocus:r,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:p,transitionDuration:w,TransitionProps:g,variant:v},O=lP(C),N=r&&!c&&f,A=T.useRef(null),B=(z,ae)=>{A.current&&A.current.adjustStyleForScrollbar(z,{direction:x?"rtl":"ltr"}),b&&b(z,ae)},R=z=>{z.key==="Tab"&&(z.preventDefault(),d&&d(z,"tabKeyDown"))};let $=-1;T.Children.map(i,(z,ae)=>{T.isValidElement(z)&&(process.env.NODE_ENV!=="production"&&ju.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=E.paper??uP,X=k.paper??p,q=ct({elementType:E.root,externalSlotProps:k.root,ownerState:C,className:[O.root,a]}),Y=ct({elementType:K,externalSlotProps:X,ownerState:C,className:O.paper});return P.jsx(cP,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?iP:aP,slots:{paper:K,root:E.root},slotProps:{root:q,paper:Y},open:f,ref:n,transitionDuration:w,TransitionProps:{onEntering:B,...g},ownerState:C,..._,classes:y,children:P.jsx(dP,{onKeyDown:R,actions:A,autoFocus:r&&($===-1||c),autoFocusItem:N,variant:v,...u,className:Se(O.list,u.className),children:i})})});process.env.NODE_ENV!=="production"&&(Pg.propTypes={anchorEl:s.oneOfType([Ho,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 hP(e){return Oe("MuiMenuItem",e)}const Us=De("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),fP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},pP=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e,u=Ie({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},hP,a);return{...a,...u}},mP=le(sr,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:fP})(dt(({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"}},[`&.${Us.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Us.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Us.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Us.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Us.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Xf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Xf.inset}`]:{marginLeft:52},[`& .${rs.root}`]:{marginTop:0,marginBottom:0},[`& .${rs.inset}`]:{paddingLeft:36},[`& .${tp.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,[`& .${tp.root} svg`]:{fontSize:"1.25rem"}}}]}))),nl=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:c=!1,disableGutters:u=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:p,className:y,...w}=o,b=T.useContext($o),g=T.useMemo(()=>({dense:a||b.dense||!1,disableGutters:u}),[b.dense,a,u]),v=T.useRef(null);nn(()=>{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 E={...o,dense:g.dense,divider:c,disableGutters:u},k=pP(o),_=at(v,n);let x;return o.disabled||(x=p!==void 0?p:-1),P.jsx($o.Provider,{value:g,children:P.jsx(mP,{ref:_,role:f,tabIndex:x,component:i,focusVisibleClassName:Se(k.focusVisible,d),className:Se(k.root,y),...w,ownerState:E,classes:k})})});process.env.NODE_ENV!=="production"&&(nl.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 gP(e){return Oe("MuiNativeSelect",e)}const od=De("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),yP=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,c={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${be(n)}`,i&&"iconOpen",o&&"disabled"]};return Ie(c,gP,t)},kg=le("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${od.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}}}]})),vP=le(kg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${od.multiple}`]:t.multiple}]}})({}),Dg=le("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${od.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}}]})),bP=le(Dg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${be(n.variant)}`],n.open&&t.iconOpen]}})({}),Og=T.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:c,variant:u="standard",...d}=t,f={...t,disabled:r,variant:u,error:i},p=yP(f);return P.jsxs(T.Fragment,{children:[P.jsx(vP,{ownerState:f,className:Se(p.select,o),disabled:r,ref:c||n,...d}),t.multiple?null:P.jsx(bP,{as:a,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Og.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Wt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var ip;const wP=le("fieldset",{shouldForwardProp:Dn})({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%"}),CP=le("legend",{shouldForwardProp:Dn})(dt(({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 Mg(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,c=r!=null&&r!=="",u={...e,notched:i,withLabel:c};return P.jsx(wP,{"aria-hidden":!0,className:o,ownerState:u,...a,children:P.jsx(CP,{ownerState:u,children:c?P.jsx("span",{children:r}):ip||(ip=P.jsx("span",{className:"notranslate",children:""}))})})}process.env.NODE_ENV!=="production"&&(Mg.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const SP=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},tE,t);return{...t,...o}},xP=le(Al,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Il})(dt(({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 .${uo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${uo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${uo.focused} .${uo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(un()).map(([n])=>({props:{color:n},style:{[`&.${uo.focused} .${uo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${uo.error} .${uo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${uo.disabled} .${uo.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"}}]}})),_P=le(Mg,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(dt(({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}})),RP=le(Fl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Nl})(dt(({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}}]}))),Ss=T.forwardRef(function(t,n){var o;const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:c="input",label:u,multiline:d=!1,notched:f,slots:p={},type:y="text",...w}=r,b=SP(r),g=On(),v=ur({props:r,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:g,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:d,size:v.size,type:y},k=p.root??i.Root??xP,_=p.input??i.Input??RP;return P.jsx(Ll,{slots:{root:k,input:_},renderSuffix:x=>P.jsx(_P,{ownerState:E,className:b.notchedOutline,label:u!=null&&u!==""&&v.required?o||(o=P.jsxs(T.Fragment,{children:[u," ","*"]})):u,notched:typeof f<"u"?f:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:a,inputComponent:c,multiline:d,ref:n,type:y,...w,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Ss.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:Wt,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});Ss&&(Ss.muiName="Input");function TP(e){return Oe("MuiSelect",e)}const qs=De("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ap;const EP=le(kg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qs.select}`]:t.select},{[`&.${qs.select}`]:t[n.variant]},{[`&.${qs.error}`]:t.error},{[`&.${qs.multiple}`]:t.multiple}]}})({[`&.${qs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),PP=le(Dg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${be(n.variant)}`],n.open&&t.iconOpen]}})({}),kP=le("input",{shouldForwardProp:e=>qm(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 lp(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function DP(e){return e==null||typeof e=="string"&&!e.trim()}const OP=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,c={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${be(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ie(c,TP,t)},Ig=T.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:c,className:u,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:y,error:w=!1,IconComponent:b,inputRef:g,labelId:v,MenuProps:E={},multiple:k,name:_,onBlur:x,onChange:C,onClose:O,onFocus:N,onOpen:A,open:B,readOnly:R,renderValue:$,SelectDisplayProps:K={},tabIndex:X,type:q,value:Y,variant:z="standard",...ae}=t,[I,D]=Co({controlled:Y,default:f,name:"Select"}),[j,W]=Co({controlled:B,default:d,name:"Select"}),ne=T.useRef(null),oe=T.useRef(null),[se,V]=T.useState(null),{current:J}=T.useRef(B!=null),[ee,te]=T.useState(),ce=at(n,g),ie=T.useCallback(Me=>{oe.current=Me,Me&&V(Me)},[]),he=se?.parentNode;T.useImperativeHandle(ce,()=>({focus:()=>{oe.current.focus()},node:ne.current,value:I}),[I]),T.useEffect(()=>{d&&j&&se&&!J&&(te(a?null:he.clientWidth),oe.current.focus())},[se,a]),T.useEffect(()=>{i&&oe.current.focus()},[i]),T.useEffect(()=>{if(!v)return;const Me=gn(oe.current).getElementById(v);if(Me){const He=()=>{getSelection().isCollapsed&&oe.current.focus()};return Me.addEventListener("click",He),()=>{Me.removeEventListener("click",He)}}},[v]);const H=(Me,He)=>{Me?A&&A(He):O&&O(He),J||(te(a?null:he.clientWidth),W(Me))},re=Me=>{Me.button===0&&(Me.preventDefault(),oe.current.focus(),H(!0,Me))},Q=Me=>{H(!1,Me)},fe=T.Children.toArray(c),me=Me=>{const He=fe.find(vt=>vt.props.value===Me.target.value);He!==void 0&&(D(He.props.value),C&&C(Me,He))},Ce=Me=>He=>{let vt;if(He.currentTarget.hasAttribute("tabindex")){if(k){vt=Array.isArray(I)?I.slice():[];const ln=I.indexOf(Me.props.value);ln===-1?vt.push(Me.props.value):vt.splice(ln,1)}else vt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(He),I!==vt&&(D(vt),C)){const ln=He.nativeEvent||He,ao=new ln.constructor(ln.type,ln);Object.defineProperty(ao,"target",{writable:!0,value:{value:vt,name:_}}),C(ao,Me)}k||H(!1,He)}},ve=Me=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),H(!0,Me))},_e=se!==null&&j,$e=Me=>{!_e&&x&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:I,name:_}}),x(Me))};delete ae["aria-invalid"];let Ae,rt;const ke=[];let ft=!1,Kt=!1;(el({value:I})||y)&&($?Ae=$(I):ft=!0);const st=fe.map(Me=>{if(!T.isValidElement(Me))return null;process.env.NODE_ENV!=="production"&&ju.isFragment(Me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
227
|
+
`));let He;if(k){if(!Array.isArray(I))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":wo(2));He=I.some(vt=>lp(vt,Me.props.value)),He&&ft&&ke.push(Me.props.children)}else He=lp(I,Me.props.value),He&&ft&&(rt=Me.props.children);return He&&(Kt=!0),T.cloneElement(Me,{"aria-selected":He?"true":"false",onClick:Ce(Me),onKeyUp:vt=>{vt.key===" "&&vt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(vt)},role:"option",selected:He,value:void 0,"data-value":Me.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!Kt&&!k&&I!==""){const Me=fe.map(He=>He.props.value);console.warn([`MUI: You have provided an out-of-range value \`${I}\` for the select ${_?`(name="${_}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Me.filter(He=>He!=null).map(He=>`\`${He}\``).join(", ")||'""'}.`].join(`
|
|
228
|
+
`))}},[Kt,fe,k,_,I]),ft&&(k?ke.length===0?Ae=null:Ae=ke.reduce((Me,He,vt)=>(Me.push(He),vt<ke.length-1&&Me.push(", "),Me),[]):Ae=rt);let Yt=ee;!a&&J&&se&&(Yt=he.clientWidth);let Xt;typeof X<"u"?Xt=X:Xt=p?null:0;const on=K.id||(_?`mui-component-select-${_}`:void 0),Ye={...t,variant:z,value:I,open:_e,error:w},tt=OP(Ye),Mn={...E.PaperProps,...E.slotProps?.paper},hn=lr();return P.jsxs(T.Fragment,{children:[P.jsx(EP,{as:"div",ref:ie,tabIndex:Xt,role:"combobox","aria-controls":hn,"aria-disabled":p?"true":void 0,"aria-expanded":_e?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,on].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ve,onMouseDown:p||R?null:re,onBlur:$e,onFocus:N,...K,ownerState:Ye,className:Se(K.className,tt.select,u),id:on,children:DP(Ae)?ap||(ap=P.jsx("span",{className:"notranslate",children:""})):Ae}),P.jsx(kP,{"aria-invalid":w,value:Array.isArray(I)?I.join(","):I,name:_,ref:ne,"aria-hidden":!0,onChange:me,tabIndex:-1,disabled:p,className:tt.nativeInput,autoFocus:i,...ae,ownerState:Ye}),P.jsx(PP,{as:b,className:tt.icon,ownerState:Ye}),P.jsx(Pg,{id:`menu-${_||""}`,anchorEl:he,open:_e,onClose:Q,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...E,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:hn,...E.MenuListProps},slotProps:{...E.slotProps,paper:{...Mn,style:{minWidth:Yt,...Mn!=null?Mn.style:null}}},children:st})]})});process.env.NODE_ENV!=="production"&&(Ig.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:Wt,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 MP=e=>{const{classes:t}=e;return t},rd={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Dn(e)&&e!=="variant",slot:"Root"},IP=le(Di,rd)(""),NP=le(Ss,rd)(""),AP=le(Pi,rd)(""),Xi=T.forwardRef(function(t,n){const o=Ke({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:c,defaultOpen:u=!1,displayEmpty:d=!1,IconComponent:f=oE,id:p,input:y,inputProps:w,label:b,labelId:g,MenuProps:v,multiple:E=!1,native:k=!1,onClose:_,onOpen:x,open:C,renderValue:O,SelectDisplayProps:N,variant:A="outlined",...B}=o,R=k?Og:Ig,$=On(),K=ur({props:o,muiFormControl:$,states:["variant","error"]}),X=K.variant||A,q={...o,variant:X,classes:a},Y=MP(q),{root:z,...ae}=Y,I=y||{standard:P.jsx(IP,{ownerState:q}),outlined:P.jsx(NP,{label:b,ownerState:q}),filled:P.jsx(AP,{ownerState:q})}[X],D=at(n,zi(I));return P.jsx(T.Fragment,{children:T.cloneElement(I,{inputComponent:R,inputProps:{children:i,error:K.error,IconComponent:f,variant:X,type:void 0,multiple:E,...k?{id:p}:{autoWidth:r,defaultOpen:u,displayEmpty:d,labelId:g,MenuProps:v,onClose:_,onOpen:x,open:C,renderValue:O,SelectDisplayProps:{id:p,...N}},...w,classes:w?mn(ae,w.classes):ae,...y?y.props.inputProps:{}},...(E&&k||d)&&X==="outlined"?{notched:!0}:{},ref:D,className:Se(I.props.className,c,Y.root),...!y&&{variant:X},...B})})});process.env.NODE_ENV!=="production"&&(Xi.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"])});Xi.muiName="Select";function FP(e){return Oe("MuiTextField",e)}De("MuiTextField",["root"]);const LP={standard:Di,filled:Pi,outlined:Ss},$P=e=>{const{classes:t}=e;return Ie({root:["root"]},FP,t)},jP=le(Gi,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xs=T.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:c,color:u="primary",defaultValue:d,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:g,InputLabelProps:v,inputProps:E,InputProps:k,inputRef:_,label:x,maxRows:C,minRows:O,multiline:N=!1,name:A,onBlur:B,onChange:R,onFocus:$,placeholder:K,required:X=!1,rows:q,select:Y=!1,SelectProps:z,slots:ae={},slotProps:I={},type:D,value:j,variant:W="outlined",...ne}=o,oe={...o,autoFocus:i,color:u,disabled:f,error:p,fullWidth:w,multiline:N,required:X,select:Y,variant:W},se=$P(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const V=lr(g),J=b&&V?`${V}-helper-text`:void 0,ee=x&&V?`${V}-label`:void 0,te=LP[W],ce={slots:ae,slotProps:{input:k,inputLabel:v,htmlInput:E,formHelperText:y,select:z,...I}},ie={},he=ce.slotProps.inputLabel;W==="outlined"&&(he&&typeof he.shrink<"u"&&(ie.notched=he.shrink),ie.label=x),Y&&((!z||!z.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const[H,re]=Rn("input",{elementType:te,externalForwardedProps:ce,additionalProps:ie,ownerState:oe}),[Q,fe]=Rn("inputLabel",{elementType:Ki,externalForwardedProps:ce,ownerState:oe}),[me,Ce]=Rn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ve,_e]=Rn("formHelperText",{elementType:Ju,externalForwardedProps:ce,ownerState:oe}),[$e,Ae]=Rn("select",{elementType:Xi,externalForwardedProps:ce,ownerState:oe}),rt=P.jsx(H,{"aria-describedby":J,autoComplete:r,autoFocus:i,defaultValue:d,fullWidth:w,multiline:N,name:A,rows:q,maxRows:C,minRows:O,type:D,value:j,id:V,inputRef:_,onBlur:B,onChange:R,onFocus:$,placeholder:K,inputProps:Ce,slots:{input:ae.htmlInput?me:void 0},...re});return P.jsxs(jP,{className:Se(se.root,c),disabled:f,error:p,fullWidth:w,ref:n,required:X,color:u,variant:W,ownerState:oe,...ne,children:[x!=null&&x!==""&&P.jsx(Q,{htmlFor:V,id:ee,...fe,children:x}),Y?P.jsx($e,{"aria-describedby":J,id:V,labelId:ee,value:j,input:rt,...Ae,children:a}):rt,b&&P.jsx(ve,{id:J,..._e,children:b})]})});process.env.NODE_ENV!=="production"&&(xs.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:Wt,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 VP=le(ks)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),WP={Wrapper:VP},HP=({setIsOpened:e})=>P.jsx(WP.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),zP=le(ks)(({theme:e})=>({visibility:"hidden",color:e.palette.text.primary,backgroundColor:e.palette.background.default,borderRadius:"5px",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0})),BP={Content:zP},Ng=({children:e,setIsOpened:t})=>{const n=document.getElementById("portal-root");return n?ns.createPortal(P.jsxs(Ze.Fragment,{children:[P.jsx(BP.Content,{id:_u,children:e}),P.jsx(HP,{setIsOpened:t})]}),n):null};function YP(e,t=300){let n;return function(...o){const r=()=>e.apply(this,o);clearTimeout(n),n=setTimeout(r,t)}}const $c=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function Ag(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const UP=["FormatterStatus","FormatterNumber"];class qP{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 c=$c(a.name);return i.concat(`"${c}",`)}else return i.concat('" ",')},"");return this.addRowSeparator(r)}getCSVBody(t){const n=t.getData(),r=t.getColumns().filter(i=>i.forPrint);return YI(t).reduce((i,a)=>{const c=n.getItemMetadata(a),u=n.getItem(a),d=u.__group,f=u.__groupTotals;let p="";if(d){const y=$c(Ag(u.title));p+=`"${y}",`}else for(let y=0;y<r.length;++y){const w=r[y],b=w.field,g=c?.columns?.[b]?.formatter,v=w.printer||g||w.formatter;let E=u[b];if(f){const _=w.groupTotalsFormatter;E=_?_(u,w,t):""}else v&&!UP.includes(v.name)&&(E=v(0,0,E,w,u,t));const k=$c(E);p+=`"${k}",`}return this.addRowSeparator(`${i}${p}`)},"")}addRowSeparator(t){return`${t}
|
|
229
|
+
`}}class GP{handleKeyboardEvent(){}pushToCommandQueue(){}resetQueue(){}setExternalVariables(t){}getExternalVariables(){return{}}}//! moment.js
|
|
230
|
+
//! version : 2.30.1
|
|
231
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
232
|
+
//! license : MIT
|
|
233
|
+
//! momentjs.com
|
|
234
|
+
var Fg;function xe(){return Fg.apply(null,arguments)}function KP(e){Fg=e}function oo(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Tr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ut(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sd(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ut(e,t))return!1;return!0}function _n(e){return e===void 0}function Yo(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Zi(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Lg(e,t){var n=[],o,r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function tr(e,t){for(var n in t)ut(t,n)&&(e[n]=t[n]);return ut(t,"toString")&&(e.toString=t.toString),ut(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ro(e,t,n,o){return iy(e,t,n,o,!0).utc()}function XP(){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 ze(e){return e._pf==null&&(e._pf=XP()),e._pf}var uu;Array.prototype.some?uu=Array.prototype.some:uu=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 id(e){var t=null,n=!1,o=e._d&&!isNaN(e._d.getTime());if(o&&(t=ze(e),n=uu.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 $l(e){var t=Ro(NaN);return e!=null?tr(ze(t),e):ze(t).userInvalidated=!0,t}var cp=xe.momentProperties=[],jc=!1;function ad(e,t){var n,o,r,i=cp.length;if(_n(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),_n(t._i)||(e._i=t._i),_n(t._f)||(e._f=t._f),_n(t._l)||(e._l=t._l),_n(t._strict)||(e._strict=t._strict),_n(t._tzm)||(e._tzm=t._tzm),_n(t._isUTC)||(e._isUTC=t._isUTC),_n(t._offset)||(e._offset=t._offset),_n(t._pf)||(e._pf=ze(t)),_n(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)o=cp[n],r=t[o],_n(r)||(e[o]=r);return e}function Qi(e){ad(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),jc===!1&&(jc=!0,xe.updateOffset(this),jc=!1)}function ro(e){return e instanceof Qi||e!=null&&e._isAMomentObject!=null}function $g(e){xe.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Zn(e,t){var n=!0;return tr(function(){if(xe.deprecationHandler!=null&&xe.deprecationHandler(null,e),n){var o=[],r,i,a,c=arguments.length;for(i=0;i<c;i++){if(r="",typeof arguments[i]=="object"){r+=`
|
|
235
|
+
[`+i+"] ";for(a in arguments[0])ut(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];o.push(r)}$g(e+`
|
|
236
|
+
Arguments: `+Array.prototype.slice.call(o).join("")+`
|
|
237
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var up={};function jg(e,t){xe.deprecationHandler!=null&&xe.deprecationHandler(e,t),up[e]||($g(t),up[e]=!0)}xe.suppressDeprecationWarnings=!1;xe.deprecationHandler=null;function To(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ZP(e){var t,n;for(n in e)ut(e,n)&&(t=e[n],To(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 du(e,t){var n=tr({},e),o;for(o in t)ut(t,o)&&(Tr(e[o])&&Tr(t[o])?(n[o]={},tr(n[o],e[o]),tr(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)ut(e,o)&&!ut(t,o)&&Tr(e[o])&&(n[o]=tr({},n[o]));return n}function ld(e){e!=null&&this.set(e)}var hu;Object.keys?hu=Object.keys:hu=function(e){var t,n=[];for(t in e)ut(e,t)&&n.push(t);return n};var QP={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function JP(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return To(o)?o.call(t,n):o}function xo(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 cd=/(\[[^\[]*\])|(\\)?([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,Ea=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vc={},us={};function Le(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(us[e]=r),t&&(us[t[0]]=function(){return xo(r.apply(this,arguments),t[1],t[2])}),n&&(us[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function ek(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function tk(e){var t=e.match(cd),n,o;for(n=0,o=t.length;n<o;n++)us[t[n]]?t[n]=us[t[n]]:t[n]=ek(t[n]);return function(r){var i="",a;for(a=0;a<o;a++)i+=To(t[a])?t[a].call(r,e):t[a];return i}}function Wa(e,t){return e.isValid()?(t=Vg(t,e.localeData()),Vc[t]=Vc[t]||tk(t),Vc[t](e)):e.localeData().invalidDate()}function Vg(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(Ea.lastIndex=0;n>=0&&Ea.test(e);)e=e.replace(Ea,o),Ea.lastIndex=0,n-=1;return e}var nk={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 ok(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(cd).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var rk="Invalid date";function sk(){return this._invalidDate}var ik="%d",ak=/\d{1,2}/;function lk(e){return this._ordinal.replace("%d",e)}var ck={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 uk(e,t,n,o){var r=this._relativeTime[n];return To(r)?r(e,t,n,o):r.replace(/%d/i,e)}function dk(e,t){var n=this._relativeTime[e>0?"future":"past"];return To(n)?n(t):n.replace(/%s/i,t)}var dp={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 Qn(e){return typeof e=="string"?dp[e]||dp[e.toLowerCase()]:void 0}function ud(e){var t={},n,o;for(o in e)ut(e,o)&&(n=Qn(o),n&&(t[n]=e[o]));return t}var hk={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 fk(e){var t=[],n;for(n in e)ut(e,n)&&t.push({unit:n,priority:hk[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var Wg=/\d/,Ln=/\d\d/,Hg=/\d{3}/,dd=/\d{4}/,jl=/[+-]?\d{6}/,It=/\d\d?/,zg=/\d\d\d\d?/,Bg=/\d\d\d\d\d\d?/,Vl=/\d{1,3}/,hd=/\d{1,4}/,Wl=/[+-]?\d{1,6}/,Ds=/\d+/,Hl=/[+-]?\d+/,pk=/Z|[+-]\d\d:?\d\d/gi,zl=/Z|[+-]\d\d(?::?\d\d)?/gi,mk=/[+-]?\d+(\.\d{1,3})?/,Ji=/[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,Os=/^[1-9]\d?/,fd=/^([1-9]\d|\d)/,ol;ol={};function Pe(e,t,n){ol[e]=To(t)?t:function(o,r){return o&&n?n:t}}function gk(e,t){return ut(ol,e)?ol[e](t._strict,t._locale):new RegExp(yk(e))}function yk(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 Bn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Qe(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Bn(t)),n}var fu={};function Et(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),Yo(t)&&(o=function(i,a){a[t]=Qe(i)}),r=e.length,n=0;n<r;n++)fu[e[n]]=o}function ea(e,t){Et(e,function(n,o,r,i){r._w=r._w||{},t(n,r._w,r,i)})}function vk(e,t,n){t!=null&&ut(fu,e)&&fu[e](t,n._a,n,e)}function Bl(e){return e%4===0&&e%100!==0||e%400===0}var yn=0,Fo=1,yo=2,tn=3,no=4,Lo=5,xr=6,bk=7,wk=8;Le("Y",0,0,function(){var e=this.year();return e<=9999?xo(e,4):"+"+e});Le(0,["YY",2],0,function(){return this.year()%100});Le(0,["YYYY",4],0,"year");Le(0,["YYYYY",5],0,"year");Le(0,["YYYYYY",6,!0],0,"year");Pe("Y",Hl);Pe("YY",It,Ln);Pe("YYYY",hd,dd);Pe("YYYYY",Wl,jl);Pe("YYYYYY",Wl,jl);Et(["YYYYY","YYYYYY"],yn);Et("YYYY",function(e,t){t[yn]=e.length===2?xe.parseTwoDigitYear(e):Qe(e)});Et("YY",function(e,t){t[yn]=xe.parseTwoDigitYear(e)});Et("Y",function(e,t){t[yn]=parseInt(e,10)});function fi(e){return Bl(e)?366:365}xe.parseTwoDigitYear=function(e){return Qe(e)+(Qe(e)>68?1900:2e3)};var Yg=Ms("FullYear",!0);function Ck(){return Bl(this.year())}function Ms(e,t){return function(n){return n!=null?(Ug(this,e,n),xe.updateOffset(this,t),this):Oi(this,e)}}function Oi(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 Ug(e,t,n){var o,r,i,a,c;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(),c=e.date(),c=c===29&&a===1&&!Bl(i)?28:c,r?o.setUTCFullYear(i,a,c):o.setFullYear(i,a,c)}}function Sk(e){return e=Qn(e),To(this[e])?this[e]():this}function xk(e,t){if(typeof e=="object"){e=ud(e);var n=fk(e),o,r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(e=Qn(e),To(this[e]))return this[e](t);return this}function _k(e,t){return(e%t+t)%t}var qt;Array.prototype.indexOf?qt=Array.prototype.indexOf:qt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function pd(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=_k(t,12);return e+=(t-n)/12,n===1?Bl(e)?29:28:31-n%7%2}Le("M",["MM",2],"Mo",function(){return this.month()+1});Le("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Le("MMMM",0,0,function(e){return this.localeData().months(this,e)});Pe("M",It,Os);Pe("MM",It,Ln);Pe("MMM",function(e,t){return t.monthsShortRegex(e)});Pe("MMMM",function(e,t){return t.monthsRegex(e)});Et(["M","MM"],function(e,t){t[Fo]=Qe(e)-1});Et(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);r!=null?t[Fo]=r:ze(n).invalidMonth=e});var Rk="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qg="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gg=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Tk=Ji,Ek=Ji;function Pk(e,t){return e?oo(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Gg).test(t)?"format":"standalone"][e.month()]:oo(this._months)?this._months:this._months.standalone}function kk(e,t){return e?oo(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Gg.test(t)?"format":"standalone"][e.month()]:oo(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Dk(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=Ro([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(r=qt.call(this._shortMonthsParse,a),r!==-1?r:null):(r=qt.call(this._longMonthsParse,a),r!==-1?r:null):t==="MMM"?(r=qt.call(this._shortMonthsParse,a),r!==-1?r:(r=qt.call(this._longMonthsParse,a),r!==-1?r:null)):(r=qt.call(this._longMonthsParse,a),r!==-1?r:(r=qt.call(this._shortMonthsParse,a),r!==-1?r:null))}function Ok(e,t,n){var o,r,i;if(this._monthsParseExact)return Dk.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=Ro([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 Kg(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Qe(t);else if(t=e.localeData().monthsParse(t),!Yo(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,pd(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function Xg(e){return e!=null?(Kg(this,e),xe.updateOffset(this,!0),this):Oi(this,"Month")}function Mk(){return pd(this.year(),this.month())}function Ik(e){return this._monthsParseExact?(ut(this,"_monthsRegex")||Zg.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ut(this,"_monthsShortRegex")||(this._monthsShortRegex=Tk),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Nk(e){return this._monthsParseExact?(ut(this,"_monthsRegex")||Zg.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ut(this,"_monthsRegex")||(this._monthsRegex=Ek),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Zg(){function e(u,d){return d.length-u.length}var t=[],n=[],o=[],r,i,a,c;for(r=0;r<12;r++)i=Ro([2e3,r]),a=jo(this.monthsShort(i,"")),c=jo(this.months(i,"")),t.push(a),n.push(c),o.push(c),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 Ak(e,t,n,o,r,i,a){var c;return e<100&&e>=0?(c=new Date(e+400,t,n,o,r,i,a),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,n,o,r,i,a),c}function Mi(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 rl(e,t,n){var o=7+t-n,r=(7+Mi(e,0,o).getUTCDay()-t)%7;return-r+o-1}function Qg(e,t,n,o,r){var i=(7+n-o)%7,a=rl(e,o,r),c=1+7*(t-1)+i+a,u,d;return c<=0?(u=e-1,d=fi(u)+c):c>fi(e)?(u=e+1,d=c-fi(e)):(u=e,d=c),{year:u,dayOfYear:d}}function Ii(e,t,n){var o=rl(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+Vo(a,t,n)):r>Vo(e.year(),t,n)?(i=r-Vo(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function Vo(e,t,n){var o=rl(e,t,n),r=rl(e+1,t,n);return(fi(e)-o+r)/7}Le("w",["ww",2],"wo","week");Le("W",["WW",2],"Wo","isoWeek");Pe("w",It,Os);Pe("ww",It,Ln);Pe("W",It,Os);Pe("WW",It,Ln);ea(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=Qe(e)});function Fk(e){return Ii(e,this._week.dow,this._week.doy).week}var Lk={dow:0,doy:6};function $k(){return this._week.dow}function jk(){return this._week.doy}function Vk(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Wk(e){var t=Ii(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Le("d",0,"do","day");Le("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Le("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Le("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Le("e",0,0,"weekday");Le("E",0,0,"isoWeekday");Pe("d",It);Pe("e",It);Pe("E",It);Pe("dd",function(e,t){return t.weekdaysMinRegex(e)});Pe("ddd",function(e,t){return t.weekdaysShortRegex(e)});Pe("dddd",function(e,t){return t.weekdaysRegex(e)});ea(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);r!=null?t.d=r:ze(n).invalidWeekday=e});ea(["d","e","E"],function(e,t,n,o){t[o]=Qe(e)});function Hk(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function zk(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function md(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Bk="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jg="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yk="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Uk=Ji,qk=Ji,Gk=Ji;function Kk(e,t){var n=oo(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?md(n,this._week.dow):e?n[e.day()]:n}function Xk(e){return e===!0?md(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Zk(e){return e===!0?md(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Qk(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=Ro([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=qt.call(this._weekdaysParse,a),r!==-1?r:null):t==="ddd"?(r=qt.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=qt.call(this._minWeekdaysParse,a),r!==-1?r:null):t==="dddd"?(r=qt.call(this._weekdaysParse,a),r!==-1||(r=qt.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=qt.call(this._minWeekdaysParse,a),r!==-1?r:null)):t==="ddd"?(r=qt.call(this._shortWeekdaysParse,a),r!==-1||(r=qt.call(this._weekdaysParse,a),r!==-1)?r:(r=qt.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=qt.call(this._minWeekdaysParse,a),r!==-1||(r=qt.call(this._weekdaysParse,a),r!==-1)?r:(r=qt.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function Jk(e,t,n){var o,r,i;if(this._weekdaysParseExact)return Qk.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=Ro([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 eD(e){if(!this.isValid())return e!=null?this:NaN;var t=Oi(this,"Day");return e!=null?(e=Hk(e,this.localeData()),this.add(e-t,"d")):t}function tD(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 nD(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=zk(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function oD(e){return this._weekdaysParseExact?(ut(this,"_weekdaysRegex")||gd.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ut(this,"_weekdaysRegex")||(this._weekdaysRegex=Uk),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function rD(e){return this._weekdaysParseExact?(ut(this,"_weekdaysRegex")||gd.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ut(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qk),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function sD(e){return this._weekdaysParseExact?(ut(this,"_weekdaysRegex")||gd.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ut(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gk),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function gd(){function e(f,p){return p.length-f.length}var t=[],n=[],o=[],r=[],i,a,c,u,d;for(i=0;i<7;i++)a=Ro([2e3,1]).day(i),c=jo(this.weekdaysMin(a,"")),u=jo(this.weekdaysShort(a,"")),d=jo(this.weekdays(a,"")),t.push(c),n.push(u),o.push(d),r.push(c),r.push(u),r.push(d);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 yd(){return this.hours()%12||12}function iD(){return this.hours()||24}Le("H",["HH",2],0,"hour");Le("h",["hh",2],0,yd);Le("k",["kk",2],0,iD);Le("hmm",0,0,function(){return""+yd.apply(this)+xo(this.minutes(),2)});Le("hmmss",0,0,function(){return""+yd.apply(this)+xo(this.minutes(),2)+xo(this.seconds(),2)});Le("Hmm",0,0,function(){return""+this.hours()+xo(this.minutes(),2)});Le("Hmmss",0,0,function(){return""+this.hours()+xo(this.minutes(),2)+xo(this.seconds(),2)});function ey(e,t){Le(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ey("a",!0);ey("A",!1);function ty(e,t){return t._meridiemParse}Pe("a",ty);Pe("A",ty);Pe("H",It,fd);Pe("h",It,Os);Pe("k",It,Os);Pe("HH",It,Ln);Pe("hh",It,Ln);Pe("kk",It,Ln);Pe("hmm",zg);Pe("hmmss",Bg);Pe("Hmm",zg);Pe("Hmmss",Bg);Et(["H","HH"],tn);Et(["k","kk"],function(e,t,n){var o=Qe(e);t[tn]=o===24?0:o});Et(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Et(["h","hh"],function(e,t,n){t[tn]=Qe(e),ze(n).bigHour=!0});Et("hmm",function(e,t,n){var o=e.length-2;t[tn]=Qe(e.substr(0,o)),t[no]=Qe(e.substr(o)),ze(n).bigHour=!0});Et("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[tn]=Qe(e.substr(0,o)),t[no]=Qe(e.substr(o,2)),t[Lo]=Qe(e.substr(r)),ze(n).bigHour=!0});Et("Hmm",function(e,t,n){var o=e.length-2;t[tn]=Qe(e.substr(0,o)),t[no]=Qe(e.substr(o))});Et("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[tn]=Qe(e.substr(0,o)),t[no]=Qe(e.substr(o,2)),t[Lo]=Qe(e.substr(r))});function aD(e){return(e+"").toLowerCase().charAt(0)==="p"}var lD=/[ap]\.?m?\.?/i,cD=Ms("Hours",!0);function uD(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var ny={calendar:QP,longDateFormat:nk,invalidDate:rk,ordinal:ik,dayOfMonthOrdinalParse:ak,relativeTime:ck,months:Rk,monthsShort:qg,week:Lk,weekdays:Bk,weekdaysMin:Yk,weekdaysShort:Jg,meridiemParse:lD},$t={},Gs={},Ni;function dD(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 hp(e){return e&&e.toLowerCase().replace("_","-")}function hD(e){for(var t=0,n,o,r,i;t<e.length;){for(i=hp(e[t]).split("-"),n=i.length,o=hp(e[t+1]),o=o?o.split("-"):null;n>0;){if(r=Yl(i.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&dD(i,o)>=n-1)break;n--}t++}return Ni}function fD(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Yl(e){var t=null,n;if($t[e]===void 0&&typeof module<"u"&&module&&module.exports&&fD(e))try{t=Ni._abbr,n=require,n("./locale/"+e),or(t)}catch{$t[e]=null}return $t[e]}function or(e,t){var n;return e&&(_n(t)?n=qo(e):n=vd(e,t),n?Ni=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ni._abbr}function vd(e,t){if(t!==null){var n,o=ny;if(t.abbr=e,$t[e]!=null)jg("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=$t[e]._config;else if(t.parentLocale!=null)if($t[t.parentLocale]!=null)o=$t[t.parentLocale]._config;else if(n=Yl(t.parentLocale),n!=null)o=n._config;else return Gs[t.parentLocale]||(Gs[t.parentLocale]=[]),Gs[t.parentLocale].push({name:e,config:t}),null;return $t[e]=new ld(du(o,t)),Gs[e]&&Gs[e].forEach(function(r){vd(r.name,r.config)}),or(e),$t[e]}else return delete $t[e],null}function pD(e,t){if(t!=null){var n,o,r=ny;$t[e]!=null&&$t[e].parentLocale!=null?$t[e].set(du($t[e]._config,t)):(o=Yl(e),o!=null&&(r=o._config),t=du(r,t),o==null&&(t.abbr=e),n=new ld(t),n.parentLocale=$t[e],$t[e]=n),or(e)}else $t[e]!=null&&($t[e].parentLocale!=null?($t[e]=$t[e].parentLocale,e===or()&&or(e)):$t[e]!=null&&delete $t[e]);return $t[e]}function qo(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ni;if(!oo(e)){if(t=Yl(e),t)return t;e=[e]}return hD(e)}function mD(){return hu($t)}function bd(e){var t,n=e._a;return n&&ze(e).overflow===-2&&(t=n[Fo]<0||n[Fo]>11?Fo:n[yo]<1||n[yo]>pd(n[yn],n[Fo])?yo:n[tn]<0||n[tn]>24||n[tn]===24&&(n[no]!==0||n[Lo]!==0||n[xr]!==0)?tn:n[no]<0||n[no]>59?no:n[Lo]<0||n[Lo]>59?Lo:n[xr]<0||n[xr]>999?xr:-1,ze(e)._overflowDayOfYear&&(t<yn||t>yo)&&(t=yo),ze(e)._overflowWeeks&&t===-1&&(t=bk),ze(e)._overflowWeekday&&t===-1&&(t=wk),ze(e).overflow=t),e}var gD=/^\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)?)?$/,yD=/^\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)?)?$/,vD=/Z|[+-]\d\d(?::?\d\d)?/,Pa=[["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]],Wc=[["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/]],bD=/^\/?Date\((-?\d+)/i,wD=/^(?:(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}))$/,CD={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 oy(e){var t,n,o=e._i,r=gD.exec(o)||yD.exec(o),i,a,c,u,d=Pa.length,f=Wc.length;if(r){for(ze(e).iso=!0,t=0,n=d;t<n;t++)if(Pa[t][1].exec(r[1])){a=Pa[t][0],i=Pa[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,n=f;t<n;t++)if(Wc[t][1].exec(r[3])){c=(r[2]||" ")+Wc[t][0];break}if(c==null){e._isValid=!1;return}}if(!i&&c!=null){e._isValid=!1;return}if(r[4])if(vD.exec(r[4]))u="Z";else{e._isValid=!1;return}e._f=a+(c||"")+(u||""),Cd(e)}else e._isValid=!1}function SD(e,t,n,o,r,i){var a=[xD(e),qg.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function xD(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function _D(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function RD(e,t,n){if(e){var o=Jg.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(o!==r)return ze(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function TD(e,t,n){if(e)return CD[e];if(t)return 0;var o=parseInt(n,10),r=o%100,i=(o-r)/100;return i*60+r}function ry(e){var t=wD.exec(_D(e._i)),n;if(t){if(n=SD(t[4],t[3],t[2],t[5],t[6],t[7]),!RD(t[1],n,e))return;e._a=n,e._tzm=TD(t[8],t[9],t[10]),e._d=Mi.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ze(e).rfc2822=!0}else e._isValid=!1}function ED(e){var t=bD.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(oy(e),e._isValid===!1)delete e._isValid;else return;if(ry(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:xe.createFromInputFallback(e)}xe.createFromInputFallback=Zn("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 ts(e,t,n){return e??t??n}function PD(e){var t=new Date(xe.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wd(e){var t,n,o=[],r,i,a;if(!e._d){for(r=PD(e),e._w&&e._a[yo]==null&&e._a[Fo]==null&&kD(e),e._dayOfYear!=null&&(a=ts(e._a[yn],r[yn]),(e._dayOfYear>fi(a)||e._dayOfYear===0)&&(ze(e)._overflowDayOfYear=!0),n=Mi(a,0,e._dayOfYear),e._a[Fo]=n.getUTCMonth(),e._a[yo]=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[tn]===24&&e._a[no]===0&&e._a[Lo]===0&&e._a[xr]===0&&(e._nextDay=!0,e._a[tn]=0),e._d=(e._useUTC?Mi:Ak).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[tn]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(ze(e).weekdayMismatch=!0)}}function kD(e){var t,n,o,r,i,a,c,u,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=ts(t.GG,e._a[yn],Ii(Ot(),1,4).year),o=ts(t.W,1),r=ts(t.E,1),(r<1||r>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,d=Ii(Ot(),i,a),n=ts(t.gg,e._a[yn],d.year),o=ts(t.w,d.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(u=!0)):r=i),o<1||o>Vo(n,i,a)?ze(e)._overflowWeeks=!0:u!=null?ze(e)._overflowWeekday=!0:(c=Qg(n,o,r,i,a),e._a[yn]=c.year,e._dayOfYear=c.dayOfYear)}xe.ISO_8601=function(){};xe.RFC_2822=function(){};function Cd(e){if(e._f===xe.ISO_8601){oy(e);return}if(e._f===xe.RFC_2822){ry(e);return}e._a=[],ze(e).empty=!0;var t=""+e._i,n,o,r,i,a,c=t.length,u=0,d,f;for(r=Vg(e._f,e._locale).match(cd)||[],f=r.length,n=0;n<f;n++)i=r[n],o=(t.match(gk(i,e))||[])[0],o&&(a=t.substr(0,t.indexOf(o)),a.length>0&&ze(e).unusedInput.push(a),t=t.slice(t.indexOf(o)+o.length),u+=o.length),us[i]?(o?ze(e).empty=!1:ze(e).unusedTokens.push(i),vk(i,o,e)):e._strict&&!o&&ze(e).unusedTokens.push(i);ze(e).charsLeftOver=c-u,t.length>0&&ze(e).unusedInput.push(t),e._a[tn]<=12&&ze(e).bigHour===!0&&e._a[tn]>0&&(ze(e).bigHour=void 0),ze(e).parsedDateParts=e._a.slice(0),ze(e).meridiem=e._meridiem,e._a[tn]=DD(e._locale,e._a[tn],e._meridiem),d=ze(e).era,d!==null&&(e._a[yn]=e._locale.erasConvertYear(d,e._a[yn])),wd(e),bd(e)}function DD(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 OD(e){var t,n,o,r,i,a,c=!1,u=e._f.length;if(u===0){ze(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<u;r++)i=0,a=!1,t=ad({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],Cd(t),id(t)&&(a=!0),i+=ze(t).charsLeftOver,i+=ze(t).unusedTokens.length*10,ze(t).score=i,c?i<o&&(o=i,n=t):(o==null||i<o||a)&&(o=i,n=t,a&&(c=!0));tr(e,n||t)}function MD(e){if(!e._d){var t=ud(e._i),n=t.day===void 0?t.date:t.day;e._a=Lg([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),wd(e)}}function ID(e){var t=new Qi(bd(sy(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function sy(e){var t=e._i,n=e._f;return e._locale=e._locale||qo(e._l),t===null||n===void 0&&t===""?$l({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ro(t)?new Qi(bd(t)):(Zi(t)?e._d=t:oo(n)?OD(e):n?Cd(e):ND(e),id(e)||(e._d=null),e))}function ND(e){var t=e._i;_n(t)?e._d=new Date(xe.now()):Zi(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ED(e):oo(t)?(e._a=Lg(t.slice(0),function(n){return parseInt(n,10)}),wd(e)):Tr(t)?MD(e):Yo(t)?e._d=new Date(t):xe.createFromInputFallback(e)}function iy(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),(Tr(e)&&sd(e)||oo(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,ID(i)}function Ot(e,t,n,o){return iy(e,t,n,o,!1)}var AD=Zn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:$l()}),FD=Zn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:$l()});function ay(e,t){var n,o;if(t.length===1&&oo(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],o=1;o<t.length;++o)(!t[o].isValid()||t[o][e](n))&&(n=t[o]);return n}function LD(){var e=[].slice.call(arguments,0);return ay("isBefore",e)}function $D(){var e=[].slice.call(arguments,0);return ay("isAfter",e)}var jD=function(){return Date.now?Date.now():+new Date},Ks=["year","quarter","month","week","day","hour","minute","second","millisecond"];function VD(e){var t,n=!1,o,r=Ks.length;for(t in e)if(ut(e,t)&&!(qt.call(Ks,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[Ks[o]]){if(n)return!1;parseFloat(e[Ks[o]])!==Qe(e[Ks[o]])&&(n=!0)}return!0}function WD(){return this._isValid}function HD(){return io(NaN)}function Ul(e){var t=ud(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,c=t.hour||0,u=t.minute||0,d=t.second||0,f=t.millisecond||0;this._isValid=VD(t),this._milliseconds=+f+d*1e3+u*6e4+c*1e3*60*60,this._days=+a+i*7,this._months=+r+o*3+n*12,this._data={},this._locale=qo(),this._bubble()}function Ha(e){return e instanceof Ul}function pu(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function zD(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++)Qe(e[a])!==Qe(t[a])&&i++;return i+r}function ly(e,t){Le(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+xo(~~(n/60),2)+t+xo(~~n%60,2)})}ly("Z",":");ly("ZZ","");Pe("Z",zl);Pe("ZZ",zl);Et(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Sd(zl,e)});var BD=/([\+\-]|\d\d)/gi;function Sd(e,t){var n=(t||"").match(e),o,r,i;return n===null?null:(o=n[n.length-1]||[],r=(o+"").match(BD)||["-",0,0],i=+(r[1]*60)+Qe(r[2]),i===0?0:r[0]==="+"?i:-i)}function xd(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(ro(e)||Zi(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),xe.updateOffset(n,!1),n):Ot(e).local()}function mu(e){return-Math.round(e._d.getTimezoneOffset())}xe.updateOffset=function(){};function YD(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=Sd(zl,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=mu(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?dy(this,io(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,xe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:mu(this)}function UD(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function qD(e){return this.utcOffset(0,e)}function GD(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mu(this),"m")),this}function KD(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Sd(pk,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function XD(e){return this.isValid()?(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ZD(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function QD(){if(!_n(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ad(e,this),e=sy(e),e._a?(t=e._isUTC?Ro(e._a):Ot(e._a),this._isDSTShifted=this.isValid()&&zD(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function JD(){return this.isValid()?!this._isUTC:!1}function eO(){return this.isValid()?this._isUTC:!1}function cy(){return this.isValid()?this._isUTC&&this._offset===0:!1}var tO=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,nO=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function io(e,t){var n=e,o=null,r,i,a;return Ha(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Yo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=tO.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:Qe(o[yo])*r,h:Qe(o[tn])*r,m:Qe(o[no])*r,s:Qe(o[Lo])*r,ms:Qe(pu(o[xr]*1e3))*r}):(o=nO.exec(e))?(r=o[1]==="-"?-1:1,n={y:mr(o[2],r),M:mr(o[3],r),w:mr(o[4],r),d:mr(o[5],r),h:mr(o[6],r),m:mr(o[7],r),s:mr(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=oO(Ot(n.from),Ot(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new Ul(n),Ha(e)&&ut(e,"_locale")&&(i._locale=e._locale),Ha(e)&&ut(e,"_isValid")&&(i._isValid=e._isValid),i}io.fn=Ul.prototype;io.invalid=HD;function mr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function fp(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 oO(e,t){var n;return e.isValid()&&t.isValid()?(t=xd(t,e),e.isBefore(t)?n=fp(e,t):(n=fp(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function uy(e,t){return function(n,o){var r,i;return o!==null&&!isNaN(+o)&&(jg(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=io(n,o),dy(this,r,e),this}}function dy(e,t,n,o){var r=t._milliseconds,i=pu(t._days),a=pu(t._months);e.isValid()&&(o=o??!0,a&&Kg(e,Oi(e,"Month")+a*n),i&&Ug(e,"Date",Oi(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&xe.updateOffset(e,i||a))}var rO=uy(1,"add"),sO=uy(-1,"subtract");function hy(e){return typeof e=="string"||e instanceof String}function iO(e){return ro(e)||Zi(e)||hy(e)||Yo(e)||lO(e)||aO(e)||e===null||e===void 0}function aO(e){var t=Tr(e)&&!sd(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||ut(e,i);return t&&n}function lO(e){var t=oo(e),n=!1;return t&&(n=e.filter(function(o){return!Yo(o)&&hy(e)}).length===0),t&&n}function cO(e){var t=Tr(e)&&!sd(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||ut(e,i);return t&&n}function uO(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 dO(e,t){arguments.length===1&&(arguments[0]?iO(arguments[0])?(e=arguments[0],t=void 0):cO(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),o=xd(n,this).startOf("day"),r=xe.calendarFormat(this,o)||"sameElse",i=t&&(To(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,Ot(n)))}function hO(){return new Qi(this)}function fO(e,t){var n=ro(e)?e:Ot(e);return this.isValid()&&n.isValid()?(t=Qn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function pO(e,t){var n=ro(e)?e:Ot(e);return this.isValid()&&n.isValid()?(t=Qn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function mO(e,t,n,o){var r=ro(e)?e:Ot(e),i=ro(t)?t:Ot(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 gO(e,t){var n=ro(e)?e:Ot(e),o;return this.isValid()&&n.isValid()?(t=Qn(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 yO(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function vO(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function bO(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=xd(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,t=Qn(t),t){case"year":i=za(this,o)/12;break;case"month":i=za(this,o);break;case"quarter":i=za(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:Bn(i)}function za(e,t){if(e.date()<t.date())return-za(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 wO(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function CO(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Wa(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):To(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Wa(n,"Z")):Wa(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function SO(){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 xO(e){e||(e=this.isUtc()?xe.defaultFormatUtc:xe.defaultFormat);var t=Wa(this,e);return this.localeData().postformat(t)}function _O(e,t){return this.isValid()&&(ro(e)&&e.isValid()||Ot(e).isValid())?io({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function RO(e){return this.from(Ot(),e)}function TO(e,t){return this.isValid()&&(ro(e)&&e.isValid()||Ot(e).isValid())?io({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function EO(e){return this.to(Ot(),e)}function fy(e){var t;return e===void 0?this._locale._abbr:(t=qo(e),t!=null&&(this._locale=t),this)}var py=Zn("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 my(){return this._locale}var sl=1e3,ds=60*sl,il=60*ds,gy=(365*400+97)*24*il;function hs(e,t){return(e%t+t)%t}function yy(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-gy:new Date(e,t,n).valueOf()}function vy(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-gy:Date.UTC(e,t,n)}function PO(e){var t,n;if(e=Qn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?vy:yy,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-=hs(t+(this._isUTC?0:this.utcOffset()*ds),il);break;case"minute":t=this._d.valueOf(),t-=hs(t,ds);break;case"second":t=this._d.valueOf(),t-=hs(t,sl);break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function kO(e){var t,n;if(e=Qn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?vy:yy,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+=il-hs(t+(this._isUTC?0:this.utcOffset()*ds),il)-1;break;case"minute":t=this._d.valueOf(),t+=ds-hs(t,ds)-1;break;case"second":t=this._d.valueOf(),t+=sl-hs(t,sl)-1;break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function DO(){return this._d.valueOf()-(this._offset||0)*6e4}function OO(){return Math.floor(this.valueOf()/1e3)}function MO(){return new Date(this.valueOf())}function IO(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function NO(){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 AO(){return this.isValid()?this.toISOString():null}function FO(){return id(this)}function LO(){return tr({},ze(this))}function $O(){return ze(this).overflow}function jO(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Le("N",0,0,"eraAbbr");Le("NN",0,0,"eraAbbr");Le("NNN",0,0,"eraAbbr");Le("NNNN",0,0,"eraName");Le("NNNNN",0,0,"eraNarrow");Le("y",["y",1],"yo","eraYear");Le("y",["yy",2],0,"eraYear");Le("y",["yyy",3],0,"eraYear");Le("y",["yyyy",4],0,"eraYear");Pe("N",_d);Pe("NN",_d);Pe("NNN",_d);Pe("NNNN",XO);Pe("NNNNN",ZO);Et(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?ze(n).era=r:ze(n).invalidEra=e});Pe("y",Ds);Pe("yy",Ds);Pe("yyy",Ds);Pe("yyyy",Ds);Pe("yo",QO);Et(["y","yy","yyy","yyyy"],yn);Et(["yo"],function(e,t,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[yn]=n._locale.eraYearOrdinalParse(e,r):t[yn]=parseInt(e,10)});function VO(e,t){var n,o,r,i=this._eras||qo("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 WO(e,t,n){var o,r,i=this.eras(),a,c,u;for(e=e.toUpperCase(),o=0,r=i.length;o<r;++o)if(a=i[o].name.toUpperCase(),c=i[o].abbr.toUpperCase(),u=i[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(c===e)return i[o];break;case"NNNN":if(a===e)return i[o];break;case"NNNNN":if(u===e)return i[o];break}else if([a,c,u].indexOf(e)>=0)return i[o]}function HO(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 zO(){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 BO(){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 YO(){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 UO(){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 qO(e){return ut(this,"_erasNameRegex")||Rd.call(this),e?this._erasNameRegex:this._erasRegex}function GO(e){return ut(this,"_erasAbbrRegex")||Rd.call(this),e?this._erasAbbrRegex:this._erasRegex}function KO(e){return ut(this,"_erasNarrowRegex")||Rd.call(this),e?this._erasNarrowRegex:this._erasRegex}function _d(e,t){return t.erasAbbrRegex(e)}function XO(e,t){return t.erasNameRegex(e)}function ZO(e,t){return t.erasNarrowRegex(e)}function QO(e,t){return t._eraYearOrdinalRegex||Ds}function Rd(){var e=[],t=[],n=[],o=[],r,i,a,c,u,d=this.eras();for(r=0,i=d.length;r<i;++r)a=jo(d[r].name),c=jo(d[r].abbr),u=jo(d[r].narrow),t.push(a),e.push(c),n.push(u),o.push(a),o.push(c),o.push(u);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")}Le(0,["gg",2],0,function(){return this.weekYear()%100});Le(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ql(e,t){Le(0,[e,e.length],0,t)}ql("gggg","weekYear");ql("ggggg","weekYear");ql("GGGG","isoWeekYear");ql("GGGGG","isoWeekYear");Pe("G",Hl);Pe("g",Hl);Pe("GG",It,Ln);Pe("gg",It,Ln);Pe("GGGG",hd,dd);Pe("gggg",hd,dd);Pe("GGGGG",Wl,jl);Pe("ggggg",Wl,jl);ea(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=Qe(e)});ea(["gg","GG"],function(e,t,n,o){t[o]=xe.parseTwoDigitYear(e)});function JO(e){return by.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function eM(e){return by.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function tM(){return Vo(this.year(),1,4)}function nM(){return Vo(this.isoWeekYear(),1,4)}function oM(){var e=this.localeData()._week;return Vo(this.year(),e.dow,e.doy)}function rM(){var e=this.localeData()._week;return Vo(this.weekYear(),e.dow,e.doy)}function by(e,t,n,o,r){var i;return e==null?Ii(this,o,r).year:(i=Vo(e,o,r),t>i&&(t=i),sM.call(this,e,t,n,o,r))}function sM(e,t,n,o,r){var i=Qg(e,t,n,o,r),a=Mi(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Le("Q",0,"Qo","quarter");Pe("Q",Wg);Et("Q",function(e,t){t[Fo]=(Qe(e)-1)*3});function iM(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Le("D",["DD",2],"Do","date");Pe("D",It,Os);Pe("DD",It,Ln);Pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Et(["D","DD"],yo);Et("Do",function(e,t){t[yo]=Qe(e.match(It)[0])});var wy=Ms("Date",!0);Le("DDD",["DDDD",3],"DDDo","dayOfYear");Pe("DDD",Vl);Pe("DDDD",Hg);Et(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Qe(e)});function aM(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Le("m",["mm",2],0,"minute");Pe("m",It,fd);Pe("mm",It,Ln);Et(["m","mm"],no);var lM=Ms("Minutes",!1);Le("s",["ss",2],0,"second");Pe("s",It,fd);Pe("ss",It,Ln);Et(["s","ss"],Lo);var cM=Ms("Seconds",!1);Le("S",0,0,function(){return~~(this.millisecond()/100)});Le(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Le(0,["SSS",3],0,"millisecond");Le(0,["SSSS",4],0,function(){return this.millisecond()*10});Le(0,["SSSSS",5],0,function(){return this.millisecond()*100});Le(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Le(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Le(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Le(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Pe("S",Vl,Wg);Pe("SS",Vl,Ln);Pe("SSS",Vl,Hg);var nr,Cy;for(nr="SSSS";nr.length<=9;nr+="S")Pe(nr,Ds);function uM(e,t){t[xr]=Qe(("0."+e)*1e3)}for(nr="S";nr.length<=9;nr+="S")Et(nr,uM);Cy=Ms("Milliseconds",!1);Le("z",0,0,"zoneAbbr");Le("zz",0,0,"zoneName");function dM(){return this._isUTC?"UTC":""}function hM(){return this._isUTC?"Coordinated Universal Time":""}var ye=Qi.prototype;ye.add=rO;ye.calendar=dO;ye.clone=hO;ye.diff=bO;ye.endOf=kO;ye.format=xO;ye.from=_O;ye.fromNow=RO;ye.to=TO;ye.toNow=EO;ye.get=Sk;ye.invalidAt=$O;ye.isAfter=fO;ye.isBefore=pO;ye.isBetween=mO;ye.isSame=gO;ye.isSameOrAfter=yO;ye.isSameOrBefore=vO;ye.isValid=FO;ye.lang=py;ye.locale=fy;ye.localeData=my;ye.max=FD;ye.min=AD;ye.parsingFlags=LO;ye.set=xk;ye.startOf=PO;ye.subtract=sO;ye.toArray=IO;ye.toObject=NO;ye.toDate=MO;ye.toISOString=CO;ye.inspect=SO;typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ye.toJSON=AO;ye.toString=wO;ye.unix=OO;ye.valueOf=DO;ye.creationData=jO;ye.eraName=zO;ye.eraNarrow=BO;ye.eraAbbr=YO;ye.eraYear=UO;ye.year=Yg;ye.isLeapYear=Ck;ye.weekYear=JO;ye.isoWeekYear=eM;ye.quarter=ye.quarters=iM;ye.month=Xg;ye.daysInMonth=Mk;ye.week=ye.weeks=Vk;ye.isoWeek=ye.isoWeeks=Wk;ye.weeksInYear=oM;ye.weeksInWeekYear=rM;ye.isoWeeksInYear=tM;ye.isoWeeksInISOWeekYear=nM;ye.date=wy;ye.day=ye.days=eD;ye.weekday=tD;ye.isoWeekday=nD;ye.dayOfYear=aM;ye.hour=ye.hours=cD;ye.minute=ye.minutes=lM;ye.second=ye.seconds=cM;ye.millisecond=ye.milliseconds=Cy;ye.utcOffset=YD;ye.utc=qD;ye.local=GD;ye.parseZone=KD;ye.hasAlignedHourOffset=XD;ye.isDST=ZD;ye.isLocal=JD;ye.isUtcOffset=eO;ye.isUtc=cy;ye.isUTC=cy;ye.zoneAbbr=dM;ye.zoneName=hM;ye.dates=Zn("dates accessor is deprecated. Use date instead.",wy);ye.months=Zn("months accessor is deprecated. Use month instead",Xg);ye.years=Zn("years accessor is deprecated. Use year instead",Yg);ye.zone=Zn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",UD);ye.isDSTShifted=Zn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",QD);function fM(e){return Ot(e*1e3)}function pM(){return Ot.apply(null,arguments).parseZone()}function Sy(e){return e}var ht=ld.prototype;ht.calendar=JP;ht.longDateFormat=ok;ht.invalidDate=sk;ht.ordinal=lk;ht.preparse=Sy;ht.postformat=Sy;ht.relativeTime=uk;ht.pastFuture=dk;ht.set=ZP;ht.eras=VO;ht.erasParse=WO;ht.erasConvertYear=HO;ht.erasAbbrRegex=GO;ht.erasNameRegex=qO;ht.erasNarrowRegex=KO;ht.months=Pk;ht.monthsShort=kk;ht.monthsParse=Ok;ht.monthsRegex=Nk;ht.monthsShortRegex=Ik;ht.week=Fk;ht.firstDayOfYear=jk;ht.firstDayOfWeek=$k;ht.weekdays=Kk;ht.weekdaysMin=Zk;ht.weekdaysShort=Xk;ht.weekdaysParse=Jk;ht.weekdaysRegex=oD;ht.weekdaysShortRegex=rD;ht.weekdaysMinRegex=sD;ht.isPM=aD;ht.meridiem=uD;function al(e,t,n,o){var r=qo(),i=Ro().set(o,t);return r[n](i,e)}function xy(e,t,n){if(Yo(e)&&(t=e,e=void 0),e=e||"",t!=null)return al(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=al(e,o,n,"month");return r}function Td(e,t,n,o){typeof e=="boolean"?(Yo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Yo(t)&&(n=t,t=void 0),t=t||"");var r=qo(),i=e?r._week.dow:0,a,c=[];if(n!=null)return al(t,(n+i)%7,o,"day");for(a=0;a<7;a++)c[a]=al(t,(a+i)%7,o,"day");return c}function mM(e,t){return xy(e,t,"months")}function gM(e,t){return xy(e,t,"monthsShort")}function yM(e,t,n){return Td(e,t,n,"weekdays")}function vM(e,t,n){return Td(e,t,n,"weekdaysShort")}function bM(e,t,n){return Td(e,t,n,"weekdaysMin")}or("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=Qe(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});xe.lang=Zn("moment.lang is deprecated. Use moment.locale instead.",or);xe.langData=Zn("moment.langData is deprecated. Use moment.localeData instead.",qo);var No=Math.abs;function wM(){var e=this._data;return this._milliseconds=No(this._milliseconds),this._days=No(this._days),this._months=No(this._months),e.milliseconds=No(e.milliseconds),e.seconds=No(e.seconds),e.minutes=No(e.minutes),e.hours=No(e.hours),e.months=No(e.months),e.years=No(e.years),this}function _y(e,t,n,o){var r=io(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function CM(e,t){return _y(this,e,t,1)}function SM(e,t){return _y(this,e,t,-1)}function pp(e){return e<0?Math.floor(e):Math.ceil(e)}function xM(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,i,a,c,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=pp(gu(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Bn(e/1e3),o.seconds=r%60,i=Bn(r/60),o.minutes=i%60,a=Bn(i/60),o.hours=a%24,t+=Bn(a/24),u=Bn(Ry(t)),n+=u,t-=pp(gu(u)),c=Bn(n/12),n%=12,o.days=t,o.months=n,o.years=c,this}function Ry(e){return e*4800/146097}function gu(e){return e*146097/4800}function _M(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=Qn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+Ry(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(gu(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 Go(e){return function(){return this.as(e)}}var Ty=Go("ms"),RM=Go("s"),TM=Go("m"),EM=Go("h"),PM=Go("d"),kM=Go("w"),DM=Go("M"),OM=Go("Q"),MM=Go("y"),IM=Ty;function NM(){return io(this)}function AM(e){return e=Qn(e),this.isValid()?this[e+"s"]():NaN}function Ir(e){return function(){return this.isValid()?this._data[e]:NaN}}var FM=Ir("milliseconds"),LM=Ir("seconds"),$M=Ir("minutes"),jM=Ir("hours"),VM=Ir("days"),WM=Ir("months"),HM=Ir("years");function zM(){return Bn(this.days()/7)}var Ao=Math.round,ss={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function BM(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function YM(e,t,n,o){var r=io(e).abs(),i=Ao(r.as("s")),a=Ao(r.as("m")),c=Ao(r.as("h")),u=Ao(r.as("d")),d=Ao(r.as("M")),f=Ao(r.as("w")),p=Ao(r.as("y")),y=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||c<=1&&["h"]||c<n.h&&["hh",c]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(y=y||f<=1&&["w"]||f<n.w&&["ww",f]),y=y||d<=1&&["M"]||d<n.M&&["MM",d]||p<=1&&["y"]||["yy",p],y[2]=t,y[3]=+e>0,y[4]=o,BM.apply(null,y)}function UM(e){return e===void 0?Ao:typeof e=="function"?(Ao=e,!0):!1}function qM(e,t){return ss[e]===void 0?!1:t===void 0?ss[e]:(ss[e]=t,e==="s"&&(ss.ss=t-1),!0)}function GM(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=YM(this,!n,o,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var Hc=Math.abs;function Zr(e){return(e>0)-(e<0)||+e}function Gl(){if(!this.isValid())return this.localeData().invalidDate();var e=Hc(this._milliseconds)/1e3,t=Hc(this._days),n=Hc(this._months),o,r,i,a,c=this.asSeconds(),u,d,f,p;return c?(o=Bn(e/60),r=Bn(o/60),e%=60,o%=60,i=Bn(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=c<0?"-":"",d=Zr(this._months)!==Zr(c)?"-":"",f=Zr(this._days)!==Zr(c)?"-":"",p=Zr(this._milliseconds)!==Zr(c)?"-":"",u+"P"+(i?d+i+"Y":"")+(n?d+n+"M":"")+(t?f+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+a+"S":"")):"P0D"}var ot=Ul.prototype;ot.isValid=WD;ot.abs=wM;ot.add=CM;ot.subtract=SM;ot.as=_M;ot.asMilliseconds=Ty;ot.asSeconds=RM;ot.asMinutes=TM;ot.asHours=EM;ot.asDays=PM;ot.asWeeks=kM;ot.asMonths=DM;ot.asQuarters=OM;ot.asYears=MM;ot.valueOf=IM;ot._bubble=xM;ot.clone=NM;ot.get=AM;ot.milliseconds=FM;ot.seconds=LM;ot.minutes=$M;ot.hours=jM;ot.days=VM;ot.weeks=zM;ot.months=WM;ot.years=HM;ot.humanize=GM;ot.toISOString=Gl;ot.toString=Gl;ot.toJSON=Gl;ot.locale=fy;ot.localeData=my;ot.toIsoString=Zn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gl);ot.lang=py;Le("X",0,0,"unix");Le("x",0,0,"valueOf");Pe("x",Hl);Pe("X",mk);Et("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Et("x",function(e,t,n){n._d=new Date(Qe(e))});//! moment.js
|
|
238
|
+
xe.version="2.30.1";KP(Ot);xe.fn=ye;xe.min=LD;xe.max=$D;xe.now=jD;xe.utc=Ro;xe.unix=fM;xe.months=mM;xe.isDate=Zi;xe.locale=or;xe.invalid=$l;xe.duration=io;xe.isMoment=ro;xe.weekdays=yM;xe.parseZone=pM;xe.localeData=qo;xe.isDuration=Ha;xe.monthsShort=gM;xe.weekdaysMin=bM;xe.defineLocale=vd;xe.updateLocale=pD;xe.locales=mD;xe.weekdaysShort=vM;xe.normalizeUnits=Qn;xe.relativeTimeRounding=UM;xe.relativeTimeThreshold=qM;xe.calendarFormat=uO;xe.prototype=ye;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 KM=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"})),XM=[xe.ISO_8601,Er.ui,Er.db],yu="Invalid date";le(Jm)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});const zc={};let Ey=class{constructor(){this._args={...zc},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=zc;const t=this.grid.getData();t.setFilterArgs(zc),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 ZM extends Ey{getFilterFn(){return t=>!t?.isDeleted}}class QM{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 is(e){return new Date(e).getTime()}class Py{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 JM(e){return{tooltip:"Apply column filter",command:e}}class Ed{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 eI extends Ed{constructor(){super(...arguments),this.columnId="",this.group=sn.Text,this.target=null,this.x=0,this.y=0}}const wn=new eI;class tI{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}"]`);if(!a)return;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 Dr=new tI;function nI(e){return Dr.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()}}var oI=Object.defineProperty,rI=(e,t,n)=>t in e?oI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L=(e,t,n)=>rI(e,typeof t!="symbol"?t+"":t,n),vu=class{constructor(e,t){this.event=e,this.args=t,L(this,"_isPropagationStopped",!1),L(this,"_isImmediatePropagationStopped",!1),L(this,"_isDefaultPrevented",!1),L(this,"returnValues",[]),L(this,"returnValue"),L(this,"_eventTarget"),L(this,"nativeEvent"),L(this,"arguments_"),L(this,"altKey"),L(this,"ctrlKey"),L(this,"metaKey"),L(this,"shiftKey"),L(this,"key"),L(this,"keyCode"),L(this,"clientX"),L(this,"clientY"),L(this,"offsetX"),L(this,"offsetY"),L(this,"pageX"),L(this,"pageY"),L(this,"bubbles"),L(this,"target"),L(this,"type"),L(this,"which"),L(this,"x"),L(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_}},ky=class{constructor(e,t){this.eventName=e,this.pubSub=t,L(this,"_handlers",[]),L(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 vu?t:new vu(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}},sI=class{constructor(e,t,n,o){L(this,"fromRow"),L(this,"fromCell"),L(this,"toCell"),L(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})`}},iI=class{constructor(){L(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}},aI=class{constructor(){L(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)}}},Wn=class Vt{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||Vt.toString.call(t)!=="[object Object]")return!1;let n=Vt.getProto(t);if(!n)return!0;let o=Vt.hasOwn.call(n,"constructor")&&n.constructor;return typeof o=="function"&&Vt.fnToString.call(o)===Vt.ObjectFunctionString}static calculateAvailableSpace(t){let n=0,o=0,r=0,i=0,a=window.innerHeight||0,c=window.innerWidth||0,u=Vt.windowScrollPosition(),d=u.top,f=u.left,p=Vt.offset(t);if(p){let y=p.top||0,w=p.left||0;o=y-d,n=a-(y-d),r=w-f,i=c-(w-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,c,u=t[0],d=1,f=!1,p=t.length;for(typeof u=="boolean"?(f=u,u=t[d]||{},d++):u=u||{},typeof u!="object"&&!Vt.isFunction(u)&&(u={}),d===p&&(u=this,d--);d<p;d++)if(Vt.isDefined(n=t[d]))for(o in n)i=n[o],!(o==="__proto__"||u===i)&&(f&&i&&(Vt.isPlainObject(i)||(a=Array.isArray(i)))?(r=u[o],a&&!Array.isArray(r)?c=[]:!a&&!Vt.isPlainObject(r)?c={}:c=r,a=!1,u[o]=Vt.extend(f,c,i)):i!==void 0&&(u[o]=i));return u}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 c=parseFloat(Vt.getElementProp(t,`padding-${a}`)||"")||0;o-=c}}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 d=a.match(/(({.*}))/g)||[];return d.length>=1?`return ${d[0].trimStart()}`:a}let c=!a.includes("{")&&a.includes("=>"),u=a.substring(a.indexOf("{")+1||a.indexOf("=>")+2,a.includes("}")?a.lastIndexOf("}"):a.length);return n&&c&&!u.startsWith("return")?"return "+u.trimStart():u};return{params:(i=>{let a=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,c=/([^\s,]+)/g,u=i.toString().replace(a,"");return u.slice(u.indexOf("(")+1,u.indexOf(")")).match(c)??[]})(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;Vt.setStyleSize(t,"width",n)}}static height(t,n){if(t){if(n===void 0)return t.getBoundingClientRect().height;Vt.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:!Vt.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?Vt.isHidden(t)&&o.push(t):r?Vt.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 Vt.slideAnimation(t,"slideUp",n)}static slideDown(t,n){return Vt.slideAnimation(t,"slideDown",n)}static slideAnimation(t,n,o){if(window.jQuery!==void 0){window.jQuery(t)[n]("fast",o);return}n==="slideUp"?Vt.hide(t):Vt.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 ky&&typeof n[o].setPubSubService=="function"&&n[o].setPubSubService(t)}};L(Wn,"getProto",Object.getPrototypeOf),L(Wn,"class2type",{}),L(Wn,"toString",Wn.class2type.toString),L(Wn,"hasOwn",Wn.class2type.hasOwnProperty),L(Wn,"fnToString",Wn.hasOwn.toString),L(Wn,"ObjectFunctionString",Wn.fnToString.call(Object)),L(Wn,"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 Pd=Wn,Dy=new iI,lI={GlobalEditorLock:Dy,keyCode:{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"}},{GlobalEditorLock:cI,keyCode:Oy,preClickClassName:uI,GridAutosizeColsMode:dI,ColAutosizeMode:hI,RowSelectionMode:fI,ValueFilterMode:pI,WidthEvalMode:mI}=lI,gI=Pd;function yI(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,c,u,d,f,p,y;t||(t=document.body);let w={dragSource:t,dragHandle:null};function b(){t&&(t.addEventListener("mousedown",k),t.addEventListener("touchstart",k))}function g(C,O,N){if(typeof C=="function")return C(O,N)}function v(){t&&(t.removeEventListener("mousedown",k),t.removeEventListener("touchstart",k))}function E(C){let O=!1;return a&&a.forEach(N=>{C[N]&&(O=!0)}),O}function k(C){if(!E(C)){c=C.target;let O=C?.touches?.[0]??C,{target:N}=O;if(!e.allowDragFrom||e.allowDragFrom&&c.matches(e.allowDragFrom)||e.allowDragFromClosest&&c.closest(e.allowDragFromClosest)){w.dragHandle=c;let A=gI.windowScrollPosition();u=A.left+O.clientX,d=A.top+O.clientY,f=O.clientX-O.clientX,p=O.clientY-O.clientY,w=Object.assign(w,{deltaX:f,deltaY:p,startX:u,startY:d,target:N}),g(n,C,w)!==!1&&(document.body.addEventListener("mousemove",_),document.body.addEventListener("touchmove",_),document.body.addEventListener("mouseup",x),document.body.addEventListener("touchend",x),document.body.addEventListener("touchcancel",x))}}}function _(C){if(!E(C)){let O=C?.touches?.[0]??C;f=O.clientX-u,p=O.clientY-d;let{target:N}=O;y||(w=Object.assign(w,{deltaX:f,deltaY:p,startX:u,startY:d,target:N}),g(o,C,w),y=!0),w=Object.assign(w,{deltaX:f,deltaY:p,startX:u,startY:d,target:N}),g(r,C,w)}}function x(C){if(document.body.removeEventListener("mousemove",_),document.body.removeEventListener("touchmove",_),document.body.removeEventListener("mouseup",x),document.body.removeEventListener("touchend",x),document.body.removeEventListener("touchcancel",x),y){let{target:O}=C;w=Object.assign(w,{target:O}),g(i,C,w),y=!1}}return b(),{destroy:v}}function vI(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 c=a||window.event,u=0,d=0,f=0;c.wheelDelta&&(u=c.wheelDelta/120),c.detail&&(u=-c.detail/3),f=u,c.axis!==void 0&&c.axis===c.HORIZONTAL_AXIS&&(f=0,d=-1*u),c.wheelDeltaY!==void 0&&(f=c.wheelDeltaY/120),c.wheelDeltaX!==void 0&&(d=-1*c.wheelDeltaX/120),typeof n=="function"&&n(a,u,d,f)}return r(),{destroy:o}}function bI(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",d),n.addEventListener("touchstart",d)}function c(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",d),n.removeEventListener("touchstart",d))}function u(y,w){if(typeof y=="function")return y(w,{resizeableElement:t,resizeableHandleElement:n})}function d(y){y.preventDefault();let w=y.touches?y.changedTouches[0]:y;u(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;u(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:c}}var ll=Oy,Bc=Pd,bu=class wu{constructor(t){this.args=t,L(this,"input"),L(this,"defaultValue"),L(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=Bc.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?gp:yp),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?gp:yp),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return Bc.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===""&&!Bc.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}}};L(bu,"DefaultDecimalPlaces"),L(bu,"AllowEmptyValue",!1);var mp=bu;function gp(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===ll.LEFT&&t>0||e.keyCode===ll.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function yp(e){(e.keyCode===ll.LEFT||e.keyCode===ll.RIGHT)&&e.stopImmediatePropagation()}var wI=aI,Jo=hI,Fe=ky,Xs=vu,CI=cI,xn=dI,ho=Oy,SI=uI,xI=sI,Qr=fI,gr=pI,F=Pd,Yc=mI,vp=yI,bp=vI,wp=bI,_I=class{constructor(e,t,n,o,r){if(this.container=e,this.data=t,this.columns=n,this.externalPubSub=r,L(this,"slickGridVersion","5.15.5"),L(this,"cid",""),L(this,"onActiveCellChanged"),L(this,"onActiveCellPositionChanged"),L(this,"onAddNewRow"),L(this,"onAfterSetColumns"),L(this,"onAutosizeColumns"),L(this,"onBeforeAppendCell"),L(this,"onBeforeCellEditorDestroy"),L(this,"onBeforeColumnsResize"),L(this,"onBeforeDestroy"),L(this,"onBeforeEditCell"),L(this,"onBeforeFooterRowCellDestroy"),L(this,"onBeforeHeaderCellDestroy"),L(this,"onBeforeHeaderRowCellDestroy"),L(this,"onBeforeRemoveCachedRow"),L(this,"onBeforeSetColumns"),L(this,"onBeforeSort"),L(this,"onBeforeUpdateColumns"),L(this,"onCellChange"),L(this,"onCellCssStylesChanged"),L(this,"onClick"),L(this,"onColumnsReordered"),L(this,"onColumnsDrag"),L(this,"onColumnsResized"),L(this,"onColumnsResizeDblClick"),L(this,"onCompositeEditorChange"),L(this,"onContextMenu"),L(this,"onDrag"),L(this,"onDblClick"),L(this,"onDragInit"),L(this,"onDragStart"),L(this,"onDragEnd"),L(this,"onFooterClick"),L(this,"onFooterContextMenu"),L(this,"onFooterRowCellRendered"),L(this,"onHeaderCellRendered"),L(this,"onHeaderClick"),L(this,"onHeaderContextMenu"),L(this,"onHeaderMouseEnter"),L(this,"onHeaderMouseLeave"),L(this,"onHeaderRowCellRendered"),L(this,"onHeaderRowMouseEnter"),L(this,"onHeaderRowMouseLeave"),L(this,"onPreHeaderContextMenu"),L(this,"onPreHeaderClick"),L(this,"onKeyDown"),L(this,"onMouseEnter"),L(this,"onMouseLeave"),L(this,"onRendered"),L(this,"onScroll"),L(this,"onSelectedRowsChanged"),L(this,"onSetOptions"),L(this,"onActivateChangedOptions"),L(this,"onSort"),L(this,"onValidationError"),L(this,"onViewportChanged"),L(this,"scrollbarDimensions"),L(this,"maxSupportedCssHeight"),L(this,"canvas",null),L(this,"canvas_context",null),L(this,"_options"),L(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:CI,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:xn.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}),L(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}),L(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:Jo.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:Qr.FirstNRows,rowSelectionCount:100,valueFilterMode:gr.None,widthEvalMode:Yc.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),L(this,"_columnResizeTimer"),L(this,"_executionBlockTimer"),L(this,"_flashCellTimer"),L(this,"_highlightRowTimer"),L(this,"th"),L(this,"h"),L(this,"ph"),L(this,"n"),L(this,"cj"),L(this,"page",0),L(this,"offset",0),L(this,"vScrollDir",1),L(this,"_bindingEventService",new wI),L(this,"initialized",!1),L(this,"_container"),L(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),L(this,"_focusSink"),L(this,"_focusSink2"),L(this,"_groupHeaders",[]),L(this,"_headerScroller",[]),L(this,"_headers",[]),L(this,"_headerRows"),L(this,"_headerRowScroller"),L(this,"_headerRowSpacerL"),L(this,"_headerRowSpacerR"),L(this,"_footerRow"),L(this,"_footerRowScroller"),L(this,"_footerRowSpacerL"),L(this,"_footerRowSpacerR"),L(this,"_preHeaderPanel"),L(this,"_preHeaderPanelScroller"),L(this,"_preHeaderPanelSpacer"),L(this,"_preHeaderPanelR"),L(this,"_preHeaderPanelScrollerR"),L(this,"_preHeaderPanelSpacerR"),L(this,"_topHeaderPanel"),L(this,"_topHeaderPanelScroller"),L(this,"_topHeaderPanelSpacer"),L(this,"_topPanelScrollers"),L(this,"_topPanels"),L(this,"_viewport"),L(this,"_canvas"),L(this,"_style"),L(this,"_boundAncestors",[]),L(this,"stylesheet"),L(this,"columnCssRulesL"),L(this,"columnCssRulesR"),L(this,"viewportH",0),L(this,"viewportW",0),L(this,"canvasWidth",0),L(this,"canvasWidthL",0),L(this,"canvasWidthR",0),L(this,"headersWidth",0),L(this,"headersWidthL",0),L(this,"headersWidthR",0),L(this,"viewportHasHScroll",!1),L(this,"viewportHasVScroll",!1),L(this,"headerColumnWidthDiff",0),L(this,"headerColumnHeightDiff",0),L(this,"cellWidthDiff",0),L(this,"cellHeightDiff",0),L(this,"absoluteColumnMinWidth"),L(this,"hasFrozenRows",!1),L(this,"frozenRowsHeight",0),L(this,"actualFrozenRow",-1),L(this,"paneTopH",0),L(this,"paneBottomH",0),L(this,"viewportTopH",0),L(this,"viewportBottomH",0),L(this,"topPanelH",0),L(this,"headerRowH",0),L(this,"footerRowH",0),L(this,"tabbingDirection",1),L(this,"_activeCanvasNode"),L(this,"_activeViewportNode"),L(this,"activePosX"),L(this,"activePosY"),L(this,"activeRow"),L(this,"activeCell"),L(this,"activeCellNode",null),L(this,"currentEditor",null),L(this,"serializedEditorValue"),L(this,"editController"),L(this,"_prevDataLength",0),L(this,"_prevInvalidatedRowsCount",0),L(this,"_rowSpanIsCached",!1),L(this,"_colsWithRowSpanCache",{}),L(this,"rowsCache",{}),L(this,"renderedRows",0),L(this,"numVisibleRows",0),L(this,"prevScrollTop",0),L(this,"scrollHeight",0),L(this,"scrollTop",0),L(this,"lastRenderedScrollTop",0),L(this,"lastRenderedScrollLeft",0),L(this,"prevScrollLeft",0),L(this,"scrollLeft",0),L(this,"selectionModel"),L(this,"selectedRows",[]),L(this,"plugins",[]),L(this,"cellCssClasses",{}),L(this,"columnsById",{}),L(this,"sortColumns",[]),L(this,"columnPosLeft",[]),L(this,"columnPosRight",[]),L(this,"pagingActive",!1),L(this,"pagingIsLastPage",!1),L(this,"scrollThrottle"),L(this,"h_editorLoader"),L(this,"h_postrender"),L(this,"h_postrenderCleanup"),L(this,"postProcessedRows",{}),L(this,"postProcessToRow",null),L(this,"postProcessFromRow",null),L(this,"postProcessedCleanupQueue",[]),L(this,"postProcessgroupId",0),L(this,"counter_rows_rendered",0),L(this,"counter_rows_removed",0),L(this,"_paneHeaderL"),L(this,"_paneHeaderR"),L(this,"_paneTopL"),L(this,"_paneTopR"),L(this,"_paneBottomL"),L(this,"_paneBottomR"),L(this,"_headerScrollerL"),L(this,"_headerScrollerR"),L(this,"_headerL"),L(this,"_headerR"),L(this,"_groupHeadersL"),L(this,"_groupHeadersR"),L(this,"_headerRowScrollerL"),L(this,"_headerRowScrollerR"),L(this,"_footerRowScrollerL"),L(this,"_footerRowScrollerR"),L(this,"_headerRowL"),L(this,"_headerRowR"),L(this,"_footerRowL"),L(this,"_footerRowR"),L(this,"_topPanelScrollerL"),L(this,"_topPanelScrollerR"),L(this,"_topPanelL"),L(this,"_topPanelR"),L(this,"_viewportTopL"),L(this,"_viewportTopR"),L(this,"_viewportBottomL"),L(this,"_viewportBottomR"),L(this,"_canvasTopL"),L(this,"_canvasTopR"),L(this,"_canvasBottomL"),L(this,"_canvasBottomR"),L(this,"_viewportScrollContainerX"),L(this,"_viewportScrollContainerY"),L(this,"_headerScrollContainer"),L(this,"_headerRowScrollContainer"),L(this,"_footerRowScrollContainer"),L(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),L(this,"_hiddenParents",[]),L(this,"oldProps",[]),L(this,"enforceFrozenRowHeightRecalc",!1),L(this,"columnResizeDragging",!1),L(this,"slickDraggableInstance",null),L(this,"slickMouseWheelInstances",[]),L(this,"slickResizableInstances",[]),L(this,"sortableSideLeftInstance"),L(this,"sortableSideRightInstance"),L(this,"logMessageCount",0),L(this,"logMessageMaxCount",30),L(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 Fe("onActiveCellChanged",r),this.onActiveCellPositionChanged=new Fe("onActiveCellPositionChanged",r),this.onAddNewRow=new Fe("onAddNewRow",r),this.onAfterSetColumns=new Fe("onAfterSetColumns",r),this.onAutosizeColumns=new Fe("onAutosizeColumns",r),this.onBeforeAppendCell=new Fe("onBeforeAppendCell",r),this.onBeforeCellEditorDestroy=new Fe("onBeforeCellEditorDestroy",r),this.onBeforeColumnsResize=new Fe("onBeforeColumnsResize",r),this.onBeforeDestroy=new Fe("onBeforeDestroy",r),this.onBeforeEditCell=new Fe("onBeforeEditCell",r),this.onBeforeFooterRowCellDestroy=new Fe("onBeforeFooterRowCellDestroy",r),this.onBeforeHeaderCellDestroy=new Fe("onBeforeHeaderCellDestroy",r),this.onBeforeHeaderRowCellDestroy=new Fe("onBeforeHeaderRowCellDestroy",r),this.onBeforeRemoveCachedRow=new Fe("onRowRemovedFromCache",r),this.onBeforeSetColumns=new Fe("onBeforeSetColumns",r),this.onBeforeSort=new Fe("onBeforeSort",r),this.onBeforeUpdateColumns=new Fe("onBeforeUpdateColumns",r),this.onCellChange=new Fe("onCellChange",r),this.onCellCssStylesChanged=new Fe("onCellCssStylesChanged",r),this.onClick=new Fe("onClick",r),this.onColumnsReordered=new Fe("onColumnsReordered",r),this.onColumnsDrag=new Fe("onColumnsDrag",r),this.onColumnsResized=new Fe("onColumnsResized",r),this.onColumnsResizeDblClick=new Fe("onColumnsResizeDblClick",r),this.onCompositeEditorChange=new Fe("onCompositeEditorChange",r),this.onContextMenu=new Fe("onContextMenu",r),this.onDrag=new Fe("onDrag",r),this.onDblClick=new Fe("onDblClick",r),this.onDragInit=new Fe("onDragInit",r),this.onDragStart=new Fe("onDragStart",r),this.onDragEnd=new Fe("onDragEnd",r),this.onFooterClick=new Fe("onFooterClick",r),this.onFooterContextMenu=new Fe("onFooterContextMenu",r),this.onFooterRowCellRendered=new Fe("onFooterRowCellRendered",r),this.onHeaderCellRendered=new Fe("onHeaderCellRendered",r),this.onHeaderClick=new Fe("onHeaderClick",r),this.onHeaderContextMenu=new Fe("onHeaderContextMenu",r),this.onHeaderMouseEnter=new Fe("onHeaderMouseEnter",r),this.onHeaderMouseLeave=new Fe("onHeaderMouseLeave",r),this.onHeaderRowCellRendered=new Fe("onHeaderRowCellRendered",r),this.onHeaderRowMouseEnter=new Fe("onHeaderRowMouseEnter",r),this.onHeaderRowMouseLeave=new Fe("onHeaderRowMouseLeave",r),this.onPreHeaderClick=new Fe("onPreHeaderClick",r),this.onPreHeaderContextMenu=new Fe("onPreHeaderContextMenu",r),this.onKeyDown=new Fe("onKeyDown",r),this.onMouseEnter=new Fe("onMouseEnter",r),this.onMouseLeave=new Fe("onMouseLeave",r),this.onRendered=new Fe("onRendered",r),this.onScroll=new Fe("onScroll",r),this.onSelectedRowsChanged=new Fe("onSelectedRowsChanged",r),this.onSetOptions=new Fe("onSetOptions",r),this.onActivateChangedOptions=new Fe("onActivateChangedOptions",r),this.onSort=new Fe("onSort",r),this.onValidationError=new Fe("onValidationError",r),this.onViewportChanged=new Fe("onViewportChanged",r),this.initialize(o)}init(){this.finishInitialization()}initialize(e){if(e?.mixinDefaults?(this._options||(this._options=e),F.applyDefaults(this._options,this._defaults)):this._options=F.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)},F.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=F.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=F.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=F.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=F.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||F.hide(this._topHeaderPanelScroller)),this._paneHeaderL=F.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=F.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=F.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=F.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=F.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=F.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=F.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=F.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=F.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=F.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=F.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=F.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(F.hide(this._preHeaderPanelScroller),F.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=F.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=F.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=F.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=F.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=F.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=F.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=F.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=F.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=F.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=F.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=F.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=F.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=F.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=F.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(o=>{F.hide(o)}),this._options.showTopPanel||this._topPanelScrollers.forEach(o=>{F.hide(o)}),this._options.showHeaderRow||this._headerRowScroller.forEach(o=>{F.hide(o)}),this._viewportTopL=F.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=F.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=F.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=F.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(...F.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=F.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=F.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=F.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=F.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&&F.width(this._topHeaderPanelSpacer,n),this._preHeaderPanelSpacer&&F.width(this._preHeaderPanelSpacer,n),this._headers.forEach(o=>{F.width(o,this.getHeadersWidth())}),F.width(this._headerRowSpacerL,n),F.width(this._headerRowSpacerR,n),this._options.createFooterRow&&(this._footerRowScrollerR=F.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=F.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=F.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),F.width(this._footerRowSpacerL,n),this._footerRowSpacerR=F.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),F.width(this._footerRowSpacerR,n),this._footerRowL=F.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=F.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=>{F.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(bp({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))}),vp&&(this.slickDraggableInstance=vp({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=F.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")}),F.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(;F.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=F.extend(!0,{},this._options);this._options=F.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(bp({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=xn.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(!F.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=F.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:n,grid:this})})}),F.emptyElement(this._footerRowL),F.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let n=F.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),F.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=F.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 c=!!i;this._options.tristateMultiColumnSort?(i||(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o}),c&&i.sortAsc&&(this.sortColumns.splice(a,1),i=null),this._options.multiColumnSort||(this.sortColumns=[]),i&&(!c||!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 u;this._options.multiColumnSort?u={multiColumnSort:!0,previousSortColumns:r,sortCols:this.sortColumns.map(d=>{let f=this.columns[this.getColumnIndex(d.columnId)];return!f||f.hidden?null:{columnId:f.id,sortCol:f,sortAsc:d.sortAsc}}).filter(d=>d)}:u={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,u,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,u,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let n=F.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:n,grid:this})})}),F.emptyElement(this._headerL),F.emptyElement(this._headerR),this.getHeadersWidth(),F.width(this._headerL,this.headersWidthL),F.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let n=F.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:n,grid:this})})}),F.emptyElement(this._headerRowL),F.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=F.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),F.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=F.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),F.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=F.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=F.createDomElement("span",{className:"slick-column-name"},r);this.applyHtmlCode(i,t.name),F.width(r,t.width-this.headerColumnWidthDiff);let a=t.headerCssClass||null;if(a&&r.classList.add(...F.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)),F.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(c=>{t.headerCellAttrs.hasOwnProperty(c)&&r.setAttribute(c,t.headerCellAttrs[c])}),t.sortable&&(r.classList.add("slick-header-sortable"),F.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},r),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&F.createDomElement("div",{className:"slick-sort-indicator-numbered"},r)),this.trigger(this.onHeaderCellRendered,{node:r,column:t,grid:this}),this._options.showHeaderRow){let c=F.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},o),u=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;u&&c.classList.add(u),this._bindingEventService.bind(c,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(c,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),F.storage.put(c,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:c,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let c=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],u=F.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},c);F.storage.put(u,"column",t),this.trigger(this.onFooterRowCellRendered,{node:u,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()||F.offset(i.item).left>F.offset(this._viewportScrollContainerX).left,o&&i.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):o&&i.originalEvent.pageX<F.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 c=[];for(let u=0;u<a.length;u++)c.push(this.columns[this.getColumnIndex(a[u])]);this.setColumns(c),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 wp>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,c=-1,u=0,d=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<d.length;p++)d[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),c=p);if(a!==void 0)for(let p=0;p<d.length;p++){let y=d[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=c)continue;let w=F.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(w,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(wp({resizeableElement:y,resizeableHandleElement:w,onResizeStart:(b,g)=>{let v=b.touches?b.changedTouches[0]:b;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,u=0,g.resizeableElement.classList.add("slick-header-column-active");let E=null,k=null;for(let C=0;C<d.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=d[C].offsetWidth);if(this._options.forceFitColumns)for(E=0,k=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(k!==null&&(n.maxWidth?k+=n.maxWidth-(n.previousWidth||0):k=null),E+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));let _=0,x=0;for(e=0;e<=p;e++)n=f[e],n?.resizable&&(x!==null&&(n.maxWidth?x+=n.maxWidth-(n.previousWidth||0):x=null),_+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));E===null&&(E=1e5),_===null&&(_=1e5),k===null&&(k=1e5),x===null&&(x=1e5),i=o+Math.min(E,x),r=o-Math.min(_,k)},onResize:(b,g)=>{let v=b.touches?b.changedTouches[0]:b;this.columnResizeDragging=!0;let E,k=Math.min(i,Math.max(r,v.pageX))-o,_,x=0,C=0,O=this.getViewportInnerWidth();if(k<0){for(_=k,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(E=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),_&&(n.previousWidth||0)+_<E?(_+=(n.previousWidth||0)-E,n.width=E):(n.width=(n.previousWidth||0)+_,_=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:x+=n.width||0);if(this._options.forceFitColumns)for(_=-k,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(_&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<_?(_-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+_,_=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:x+=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:x+=n.width||0);if(this._options.forceFitColumns)for(_=-k,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(_&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<_?(_-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+_,_=0))}else{for(_=k,x=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(_&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<_)_-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let N=(n.previousWidth||0)+_,A=this.canvasWidthL+_;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(N>u&&A<O-this._options.frozenRightViewportMinWidth&&(u=N),n.width=A+this._options.frozenRightViewportMinWidth>O?u:N):n.width=N,_=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:x+=n.width||0);if(this._options.forceFitColumns)for(_=-k,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(E=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),_&&(n.previousWidth||0)+_<E?(_+=(n.previousWidth||0)-E,n.width=E):(n.width=(n.previousWidth||0)+_,_=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:x+=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:x+=n.width||0)}this.hasFrozenColumns()&&x!==this.canvasWidthL&&(F.width(this._headerL,x+1e3),F.setStyleSize(this._paneHeaderR,"left",x)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:g.resizeableElement,resizeHandle:g.resizeableHandleElement})},onResizeEnd:(b,g)=>{g.resizeableElement.classList.remove("slick-header-column-active");let v=g.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:v}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let E;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(E=d[e].offsetWidth,n.previousWidth!==E&&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===xn.LegacyForceFit||e===xn.LegacyOff){this.legacyAutosizeColumns();return}if(e===xn.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,c=!1,u=0,d=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===Jo.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===Jo.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,u+=i.autoSize?.widthPx||0,d+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let w=u-d;if(e===xn.FitViewportToCols){let b=u+(this.scrollbarDimensions?.width??0);e=xn.IgnoreViewport,this._options.viewportMaxWidthPx&&b>this._options.viewportMaxWidthPx?(b=this._options.viewportMaxWidthPx,e=xn.FitColsToViewport):this._options.viewportMinWidthPx&&b<this._options.viewportMinWidthPx&&(b=this._options.viewportMinWidthPx,e=xn.FitColsToViewport),F.width(this._container,b)}if(e===xn.FitColsToViewport)if(w>0&&d<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let b=o-d;i.autoSize?.sizeToRemaining?a=b*(i.autoSize?.widthPx||0)/w:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(c=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&d+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=xn.IgnoreViewport;else{let b=d-y,g=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!==Jo.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=g/b*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),b-=i.autoSize?.widthPx||0,g-=a)),this.treatAsLocked(i.autoSize)&&(a=i.autoSize?.widthPx||0,a<(i.minWidth||0)&&(a=i.minWidth||0)),i.rerenderOnResize&&i.width!==a&&(c=!0),i.width=a)}if(e===xn.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&&(c=!0),this.columns[r].width=a);this.reRenderColumns(c)}getColAutosizeWidth(e,t,n,o,r){let i=e.autoSize;if(i.widthPx=e.width,i.autosizeMode===Jo.Locked||i.autosizeMode===Jo.Guide)return;let a=this.getDataLength(),c=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(i.autosizeMode===Jo.ContentIntelligent){let f=i.colDataTypeOf,p;if(a>0){let y=this.getDataItem(0);y&&(p=y[e.field],c.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=gr.GetGreatestAndSub,i.rowSelectionMode=Qr.AllRows),f==="string"&&(i.valueFilterMode=gr.GetLongestText,i.rowSelectionMode=Qr.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 u=i.contentSizePx=this.getColContentSize(e,t,n,o,r);u===0&&(u=i.widthPx||0);let d=i.allowAddlPercent?1+i.allowAddlPercent/100:1;u=u*d+(this._options.autosizeColPaddingPx||0),e.minWidth&&u<e.minWidth&&(u=e.minWidth),e.maxWidth&&u>e.maxWidth&&(u=e.maxWidth),(i.autosizeMode===Jo.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&u<(e.width||0)&&(u=e.width||0),i.widthPx=u}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,c,u,d=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===Qr.FirstRow&&(p.endIndex=0),y===Qr.LastRow&&(p.endIndex=p.startIndex=p.rowCount-1),y===Qr.FirstNRows&&(p.endIndex=Math.min(i.rowSelectionCount||0,p.rowCount)-1),i.valueFilterMode===gr.DeDuplicate){let w={};for(c=p.startIndex;c<=p.endIndex;c++)w[p.getRowVal(c)]=!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===gr.GetGreatestAndSub){let w,b=0;for(c=p.startIndex;c<=p.endIndex;c++)u=p.getRowVal(c),Math.abs(u)>b&&(w=u,b=Math.abs(u));w=""+w,w=Array(w.length+1).join("9"),w=+w,p.valueArr=[w],p.startIndex=p.endIndex=0}if(i.valueFilterMode===gr.GetLongestTextAndSub){for(c=p.startIndex;c<=p.endIndex;c++)u=p.getRowVal(c),(u||"").length>d&&(d=u.length);u=Array(d+1).join("m"),a=this._options.autosizeTextAvgToMWidthRatio||0,p.maxLen=d,p.valueArr=[u],p.startIndex=p.endIndex=0}if(i.valueFilterMode===gr.GetLongestText){d=0;let w=0;for(c=p.startIndex;c<=p.endIndex;c++)u=p.getRowVal(c),(u||"").length>d&&(d=u.length,w=c);u=p.getRowVal(w),p.maxLen=d,p.valueArr=[u],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=F.createDomElement("div",{className:"slick-row ui-widget-content"},t),r=F.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,c=0,u="",d,f,p=e.autoSize.widthEvalMode===Yc.TextOnly;if(e.autoSize?.widthEvalMode===Yc.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?d=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?d=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):d=""+f,a=d?this.canvas_context.measureText(d).width:0,a>c&&(c=a,u=d);return r.textContent=u,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?d=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?d=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):d=""+f,this.applyFormatResultToCellNode(d,r),a=r.offsetWidth,a>c&&(c=a);return o.remove(),c}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=F.createDomElement("div",{id:r,className:"ui-state-default slick-state-default slick-header-column"},a);let c=F.createDomElement("span",{className:"slick-column-name"},o);this.applyHtmlCode(c,e.name),i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&o.classList.add(...F.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 u=(o-a)/n;for(e=0;e<this.columns.length&&o>a;e++){if(t=this.columns[e],!t||t.hidden)continue;let d=i[e];if(!t.resizable||d<=t.minWidth||d<=this.absoluteColumnMinWidth)continue;let f=Math.max(t.minWidth,this.absoluteColumnMinWidth),p=Math.floor(u*(d-f))||1;p=Math.min(p,d-f),o-=p,n-=p,i[e]-=p}if(r<=o)break;r=o}for(r=o;o<a;){let u=a/o;for(e=0;e<this.columns.length&&o<a;e++){if(t=this.columns[e],!t||t.hidden)continue;let d=i[e],f;!t.resizable||t.maxWidth<=d?f=0:f=Math.min(Math.floor(u*d)-d,t.maxWidth-d||1e6)||1,o+=f,i[e]+=o<=a?f:0}if(r>=o)break;r=o}let c=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==i[e]&&(c=!0),this.columns[e].width=i[e]);this.reRenderColumns(c)}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;F.width(r)!==i&&F.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=>{F.isDefined(o.sortAsc)||(o.sortAsc=!0);let r=this.getColumnIndex(o.columnId);if(F.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?(F.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),F.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=F.extend({},this._columnDefaults,t),t.autoSize=F.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(){F.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,F.isDefined(this.activeCellNode)){let i=F.offset(this.activeCellNode),a=Math.floor(F.offset(F.parents(this.activeCellNode,".grid-canvas")[0]).top),c=F.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&c&&(a-=this._options.frozenBottom?F.height(this._canvasTopL):this.frozenRowsHeight);let u=this.getCellFromPoint(i.left,Math.ceil(i.top)-a);this.activeRow=u.row,this.activePosY=u.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!F.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(d=>d.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(d=>d.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&&F.emptyElement(this.activeCellNode);let a=this.getItemMetadaWhenExists(this.activeRow);a=a?.columns;let c=a&&(a[o.id]||a[this.activeCell]),u={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:o,columnMetaData:c,item:r||{},event:n,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new i(u),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,c=e.currentEditor.serializeValue(),u=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let d={row:r,cell:i,editor:a,serializedValue:c,prevSerializedValue:u,execute:()=>{a.applyValue(t,c),e.updateRow(r),e.trigger(e.onCellChange,{command:"execute",row:r,cell:i,item:t,column:n})},undo:()=>{a.applyValue(t,u),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,d)):(d.execute(),e.makeActiveCellNormal(!0))}else{let d={};e.currentEditor.applyValue(d,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:d,column:n})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),F.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 Xs(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 c=t[i].fromCell;c<=t[i].toCell;c++)this.canCellBeSelected(a,c)&&(r[a][this.columns[c].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()),c=new Set(o),u=Array.from(a).filter(f=>!c.has(f)),d=Array.from(c).filter(f=>!a.has(f));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:o,caller:i,changedSelectedRows:u,changedUnselectedRows:d},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===ho.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===ho.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===ho.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===ho.LEFT?t=this.navigateLeft():e.which===ho.RIGHT?t=this.navigateRight():e.which===ho.UP?t=this.navigateUp():e.which===ho.DOWN?t=this.navigateDown():e.which===ho.TAB?t=this.navigateNext():e.which===ho.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===ho.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 Xs?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===SI,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=F.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=F.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=F.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=F.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&&F.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&&F.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&&F.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:n},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&F.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(c,t),e.call(this)},c=()=>{o?(i(),a()):n=!1};return{enqueue:r.bind(this),dequeue:i.bind(this)}}getCellFromEvent(e){let t=e instanceof Xs?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,c=F.offset(F.parents(o,".grid-canvas")[0]);F.parents(o,".grid-canvas-bottom").length&&(a=this._options.frozenBottom?F.height(this._canvasTopL):this.frozenRowsHeight),r=this.getCellFromPoint(n.clientX-c.left,n.clientY-c.top+a+document.documentElement.scrollTop).row}let i=this.getCellFromNode(o);return!F.isDefined(r)||!F.isDefined(i)?null:{row:r,cell:i}}applyHtmlCode(e,t,n){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)n?.emptyTarget!==!1&&F.emptyElement(e),e.appendChild(t);else{if(n?.skipEmptyReassignment!==!1&&!F.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 Xs&&(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 Xs&&(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&&F.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(F.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),F.width(this._headerL,this.headersWidthL),F.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let i=F.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");F.width(this._canvasTopR,this.canvasWidthR),F.width(this._paneHeaderL,this.canvasWidthL),F.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),F.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),F.width(this._paneTopL,this.canvasWidthL),F.setStyleSize(this._paneTopR,"left",this.canvasWidthL),F.width(this._paneTopR,this.viewportW-this.canvasWidthL),F.width(this._headerRowScrollerL,this.canvasWidthL),F.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),F.width(this._headerRowL,this.canvasWidthL),F.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(F.width(this._footerRowScrollerL,this.canvasWidthL),F.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),F.width(this._footerRowL,this.canvasWidthL),F.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&F.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),F.width(this._viewportTopL,this.canvasWidthL),F.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(F.width(this._paneBottomL,this.canvasWidthL),F.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),F.width(this._viewportBottomL,this.canvasWidthL),F.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),F.width(this._canvasBottomL,this.canvasWidthL),F.width(this._canvasBottomR,this.canvasWidthR))}else F.width(this._paneHeaderL,"100%"),F.width(this._paneTopL,"100%"),F.width(this._headerRowScrollerL,"100%"),F.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(F.width(this._footerRowScrollerL,"100%"),F.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&F.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),F.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(F.width(this._viewportBottomL,"100%"),F.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),F.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),F.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(F.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),F.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()?(F.show(this._paneHeaderR),F.show(this._paneTopR),this.hasFrozenRows?(F.show(this._paneBottomL),F.show(this._paneBottomR)):(F.hide(this._paneBottomR),F.hide(this._paneBottomL))):(F.hide(this._paneHeaderR),F.hide(this._paneTopR),F.hide(this._paneBottomR),this.hasFrozenRows?F.show(this._paneBottomL):(F.hide(this._paneBottomR),F.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=F.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){F.slideDown(t,this.resizeCanvas.bind(this));return}F.show(t),this.resizeCanvas()}else{if(r){F.slideUp(t,this.resizeCanvas.bind(this));return}F.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,c="slick-row"+(this.hasFrozenRows&&n<=this._options.frozenRow?" frozen":"")+(a?" loading":"")+(n===this.activeRow&&this._options.showCellSelection?" active":"")+(n%2===1?" odd":" even");i||(c+=` ${this._options.addNewRowCssClass}`);let u=this.getItemMetadaWhenExists(n);u?.cssClasses&&(c+=` ${u.cssClasses}`);let d=F.createDomElement("div",{className:`ui-widget-content ${c}`,role:"row",dataset:{row:`${n}`}}),f=this.getFrozenRowOffset(n),p=this.getRowTop(n)-f;this._options.rowTopOffsetRenderType==="transform"?d.style.transform=`translateY(${p}px)`:d.style.top=`${p}px`;let y;e.push(d),this.hasFrozenColumns()&&(y=d.cloneNode(!0),t.push(y));let w=this.columns.length,b,g,v,E,k=!0;for(let _=0,x=w;_<x;_++){if(k=!0,E=this.columns[_],!E||E.hidden)continue;g=1,v=1,b=null,u?.columns&&(b=u.columns[E.id]||u.columns[_],g=b?.colspan||1,v=b?.rowspan||1,g==="*"&&(g=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=g;if(!this.getParentRowSpanByCell(n,_)){if(this.columnPosRight[Math.min(x-1,_+C-1)]>o.leftPx){if(!E.alwaysRenderColumn&&this.columnPosLeft[_]>o.rightPx&&(k=!1),k){let O=this.hasFrozenColumns()&&_>this._options.frozenColumn?y:d;this.appendCellHtml(O,n,_,C,v,b,i)}}else(E.alwaysRenderColumn||this.hasFrozenColumns()&&_<=this._options.frozenColumn)&&this.appendCellHtml(d,n,_,C,v,b,i);C>1&&(_+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let c=this.columns[n],u=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(c.cssClass?` ${c.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(u+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(u+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[c.id]&&(u+=` ${this.cellCssClasses[v][t][c.id]}`)});let d=null,f="";a&&(d=this.getDataItemValueForColumn(a,c),f=this.getFormatter(t,c)(t,n,d,c,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:d,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=F.classNameToList((y?" ":"")+f.addClasses).join(" "));let w=f?.toolTip?`${f.toolTip}`:"",b=F.createDomElement("div",{className:F.classNameToList(`${u} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});b.setAttribute("aria-describedby",this.uid+c.id),w&&b.setAttribute("title",w);let g=this.getCellHeight(t,r);if(r>1&&g!==this._options.rowHeight-this.cellHeightDiff&&(b.style.height=`${g||0}px`),c.hasOwnProperty("cellAttrs")&&c.cellAttrs instanceof Object&&Object.keys(c.cellAttrs).forEach(v=>{c.cellAttrs.hasOwnProperty(v)&&b.setAttribute(v,c.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&&F.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 c=this.getRowSpanIntersect(t);c!==null&&o.add(c)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let c=this.getRowSpanColumnIntersects(a);for(let u of c){let d=this.getParentRowSpanByCell(a,u);d&&this._colsWithRowSpanCache[u]&&(this._colsWithRowSpanCache[u].delete(d.range),r.add(d.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],c=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,c)):F.emptyElement(c)}),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?F.toFloat(F.height(this._headerScroller[0])):0;this.viewportH=F.toFloat(e.height)-F.toFloat(e.paddingTop)-F.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(F.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),F.height(this._container,n)}this._paneTopL.style.position="relative"}let e=F.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),F.setStyleSize(this._paneTopL,"top",e||e),F.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||F.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let n=F.height(this._paneHeaderL);n&&(n+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),F.setStyleSize(this._paneTopR,"top",n),F.height(this._paneTopR,this.paneTopH),F.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(F.setStyleSize(this._paneBottomL,"top",t),F.height(this._paneBottomL,this.paneBottomH),F.setStyleSize(this._paneBottomR,"top",t),F.height(this._paneBottomR,this.paneBottomH),F.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(F.width(this._paneBottomL,"100%"),F.height(this._paneBottomL,this.paneBottomH),F.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(F.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(F.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&F.height(this._canvasBottomR,this.frozenRowsHeight)):(F.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&F.height(this._canvasTopR,this.frozenRowsHeight))):F.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===xn.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?F.height(this._canvasBottomL):F.height(this._canvasTopL);this.hasFrozenRows?n=this.getDataLength()-this._options.frozenRow:n=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let r=F.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(u=>{let d=+u;d>a&&this.removeRowFromCache(d)}),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?(F.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&F.height(this._canvasBottomR,this.h)):(F.height(this._canvasTopL,this.h),F.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let c=this.scrollTop+this.offset<=this.th-r;this.th===0||this.scrollTop===0?this.page=this.offset=0:c?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===xn.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 c=+a;if(c<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[c]?.alwaysRenderColumn)return;let u=n.cellColSpans[c];(this.columnPosLeft[c]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(c||0)+u-1)]<e.leftPx)&&(t===this.activeRow&&Number(c)===this.activeCell||o.push(c))});let r,i;for(;F.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,c=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,g=c;b<g;b++){if(!this.columns[b]||this.columns[b].hidden)continue;if(this.columnPosLeft[b]>e.rightPx)break;if(F.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=g-b));let v=i;if(!this.getParentRowSpanByCell(f,b)){if(this.columnPosRight[Math.min(g-1,b+v-1)]>e.leftPx){let E=this.getRowspan(f,b);this.appendCellHtml(n,f,b,v,E,a,w),r++}b+=v>1?v-1:0}}r&&o.push(f)}if(!n.children.length)return;let u,d;for(;F.isDefined(u=o.pop());){t=this.rowsCache[u];let f;for(;F.isDefined(f=t.cellRenderQueue.pop());)d=n.lastChild,d&&(this.hasFrozenColumns()&&f>this._options.frozenColumn?t.rowNode[1].appendChild(d):t.rowNode[0].appendChild(d),t.cellNodesByColumnIdx[f]=d)}}renderRows(e){let t=[],n=[],o=[],r=!1,i=this.getDataLength(),a=new Set,c=new Set;for(let d=e.top,f=e.bottom;d<=f;d++)if(!(this.rowsCache[d]||this.hasFrozenRows&&this._options.frozenBottom&&d===this.getDataLength())){if(this.renderedRows++,o.push(d),c.add(d),this.rowsCache[d]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let p=this.getRowSpanIntersect(d);p!==null&&c.add(p)}this.appendRowHtml(t,n,d,e,i),a.add(d),this.activeCellNode&&this.activeRow===d&&(r=!0),this.counter_rows_rendered++}let u=this.setDifference(c,a);if(u.size>0&&u.forEach(d=>{this.removeRowFromCache(d),o.push(d),this.rowsCache[d]=this.createEmptyCachingRow(),this.appendRowHtml(t,n,d,e,i)}),o.length){let d=document.createElement("div"),f=document.createElement("div");t.forEach(p=>d.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])&&d.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[d.firstChild,f.firstChild],this._canvasBottomL.appendChild(d.firstChild),this._canvasBottomR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&d.firstChild&&(this.rowsCache[o[p]].rowNode=[d.firstChild],this._canvasBottomL.appendChild(d.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&d.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[d.firstChild,f.firstChild],this._canvasTopL.appendChild(d.firstChild),this._canvasTopR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&d.firstChild&&(this.rowsCache[o[p]].rowNode=[d.firstChild],this._canvasTopL.appendChild(d.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=F.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)-F.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+F.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 c of Array.from(a)){let[u,d]=c.split(":").map(Number);if(e>=u&&e<=d)if(t==="columns")n.push(r);else{o=u;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,c]=i.split(":").map(Number);if((n?e>a:e>=a)&&e<=c){o={start:a,end:c,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 c=`${e}:${e+o-1}`;if((r=this._colsWithRowSpanCache)[t]??(r[t]=new Set),this._colsWithRowSpanCache[t].add(c),n>1)for(let u=1;u<n;u++)(i=this._colsWithRowSpanCache)[a=t+u]??(i[a]=new Set),this._colsWithRowSpanCache[t+u].add(c)}}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=F.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&&F.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||!F.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=!F.isDefined(this.activeCell)||!F.isDefined(this.activeRow);if(this._options.enableCellNavigation&&F.isDefined(this.activeRow)){let o=0,r=null,i=this.activePosX;for(;o<=this.activePosX;)this.canCellBeActive(e,o)&&(r=o,(!F.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(...F.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(...F.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 c=n.cellNodesByColumnIdx[r];c&&i.asyncPostRender(c,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(...F.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{n.rowNode?.forEach(o=>o.classList.remove(...F.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=F.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),n=F.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=F.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let o=e*2;F.height(n,o);let r=F.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+=F.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=F.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+=F.toFloat(r[a])),t.forEach(a=>this.headerColumnHeightDiff+=F.toFloat(r[a]))),o.remove();let i=F.createDomElement("div",{className:"slick-row"},this._canvas[0]);o=F.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},i),r=getComputedStyle(o),r.boxSizing!=="border-box"&&(e.forEach(a=>this.cellWidthDiff+=F.toFloat(r[a])),t.forEach(a=>this.cellHeightDiff+=F.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 F.isDefined(n)?(n+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""}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 c=0;c<t;c++)!this.columns[c]||this.columns[c].hidden||(i+=this.columns[c].width||0,this._options.frozenColumn===c&&(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[c,u]=a.split(":").map(Number);!i&&e>=c&&e<=u&&(o=n==="up"?c:u,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 xI(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 c=this.findFocusableRow(n,a.cell,"up");return c!==a.row&&(a.row=c),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(!F.isDefined(e)&&!F.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(!F.isDefined(e)&&!F.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()}};/**
|
|
194
239
|
* @license
|
|
195
240
|
* (c) 2009-present Michael Leibman
|
|
196
241
|
* michael{dot}leibman{at}gmail{dot}com
|
|
@@ -206,34 +251,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
206
251
|
* This increases the speed dramatically, but can only be done safely because there are no event handlers
|
|
207
252
|
* or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()
|
|
208
253
|
* and do proper cleanup.
|
|
209
|
-
*/const
|
|
210
|
-
`+me.showPosition()+`
|
|
211
|
-
Expecting `+ue.join(", ")+", got '"+(this.terminals_[A]||A)+"'":ie="Parse error on line "+(G+1)+": Unexpected "+(A==ve?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(ie,{text:me.match,token:this.terminals_[A]||A,line:me.yylineno,loc:T,expected:ue})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+A);switch(j[0]){case 1:L.push(A),z.push(me.yytext),q.push(me.yylloc),L.push(j[1]),A=null,ce=me.yyleng,w=me.yytext,G=me.yylineno,T=me.yylloc;break;case 2:if(J=this.productions_[j[1]][1],Y.$=z[z.length-J],Y._$={first_line:q[q.length-(J||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(J||1)].first_column,last_column:q[q.length-1].last_column},S&&(Y._$.range=[q[q.length-(J||1)].range[0],q[q.length-1].range[1]]),V=this.performAction.apply(Y,[w,ce,G,De.yy,j[1],z,q].concat(Fe)),typeof V<"u")return V;J&&(L=L.slice(0,-1*J*2),z=z.slice(0,-1*J),q=q.slice(0,-1*J)),L.push(this.productions_[j[1]][0]),z.push(Y.$),q.push(Y._$),he=te[L[L.length-2]][L[L.length-1]],L.push(he);break;case 3:return!0}}return!0}},F=function(){return{EOF:1,parseError:function(v,L){if(this.yy.parser)this.yy.parser.parseError(v,L);else throw new Error(v)},setInput:function(k,v){return this.yy=v||this.yy||{},this._input=k,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 k=this._input[0];return this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k,k.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),k},unput:function(k){const v=k.length,L=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;const z=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),L.length-1&&(this.yylineno-=L.length-1);const q=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:L?(L.length===z.length?this.yylloc.first_column:0)+z[z.length-L.length].length-L[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-v]),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).
|
|
212
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(k){this.unput(this.match.slice(k))},pastInput:function(){const k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let k=this.match;return k.length<20&&(k+=this._input.substr(0,20-k.length)),(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const k=this.pastInput(),v=new Array(k.length+1).join("-");return k+this.upcomingInput()+`
|
|
213
|
-
`+v+"^"},test_match:function(k,v){let L,z,q;if(this.options.backtrack_lexer&&(q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(q.yylloc.range=this.yylloc.range.slice(0))),z=k[0].match(/(?:\r\n?|\n).*/g),z&&(this.yylineno+=z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:z?z[z.length-1].length-z[z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+k[0].length},this.yytext+=k[0],this.match+=k[0],this.matches=k,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(k[0].length),this.matched+=k[0],L=this.performAction.call(this,this.yy,this,v,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(let te in q)this[te]=q[te];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);let k,v,L,z;this._more||(this.yytext="",this.match="");const q=this._currentRules();for(let te=0;te<q.length;te++)if(L=this._input.match(this.rules[q[te]]),L&&(!v||L[0].length>v[0].length)){if(v=L,z=te,this.options.backtrack_lexer){if(k=this.test_match(L,q[te]),k!==!1)return k;if(this._backtrack){v=!1;continue}else return!1}else if(!this.options.flex)break}return v?(k=this.test_match(v,q[z]),k!==!1?k:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
214
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const v=this.next();return v||this.lex()},begin:function(v){this.conditionStack.push(v)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(v){return v=this.conditionStack.length-1-Math.abs(v||0),v>=0?this.conditionStack[v]:"INITIAL"},pushState:function(v){this.begin(v)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(v,L,z,q){switch(z){case 0:break;case 1:return 15;case 2:return 8;case 3:return 9;case 4:return 7;case 5:return 6;case 6:return 10;case 7:return 11;case 8:return 12;case 9:return 13;case 10:return 14;case 11:return 17;case 12:return 16;case 13:return 5;case 14:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:[0-9]+(\.[0-9]+)?\b)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:!)/,/^(?:%)/,/^(?:\()/,/^(?:\))/,/^(?:PI\b)/,/^(?:E\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],inclusive:!0}}}}();O.lexer=F;function B(){this.yy={},this.parse=this.parse.bind(this)}return B.prototype=O,O.Parser=B,new B}();typeof require<"u"&&typeof exports<"u"&&(exports.parser=ai,exports.Parser=ai.Parser,exports.parse=function(){return ai.parse.apply(ai,arguments)});const Vc=2;class E_ extends Ah{isValueChanged(){const t=R_(this.defaultValue);let r=0;try{r=ai.parse(this.input.value||"0")}catch{return!0}return!r&&!t?!1:r!==t}loadValue(t){const r=Number(t[this.args.column.field]||"0");this.defaultValue=r.toFixed(Vc),this.input.value=this.defaultValue,this.input.defaultValue=this.input.value,this.input.select()}serializeValue(){let t=ai.parse(this.input.value||"0");Ah.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;const r=this.getDecimalPlaces();return r!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(r))),t}validate(){let t=0;try{if(t=ai.parse(`${this.input.value}`),t===1/0)throw new Error}catch{return{valid:!1,msg:"Please enter a valid number"}}if(this.args.column.validator){const r=this.args.column.validator(t,this.args);if(!r.valid)return r}return{valid:!0,msg:null}}}E_.DefaultDecimalPlaces=Vc;//! moment.js
|
|
215
|
-
//! version : 2.30.1
|
|
216
|
-
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
217
|
-
//! license : MIT
|
|
218
|
-
//! momentjs.com
|
|
219
|
-
var jc;function ee(){return jc.apply(null,arguments)}function k_(e){jc=e}function er(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function hi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Pe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ma(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Pe(e,t))return!1;return!0}function Nt(e){return e===void 0}function Ar(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ps(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Uc(e,t){var r=[],i,s=e.length;for(i=0;i<s;++i)r.push(t(e[i],i));return r}function jr(e,t){for(var r in t)Pe(t,r)&&(e[r]=t[r]);return Pe(t,"toString")&&(e.toString=t.toString),Pe(t,"valueOf")&&(e.valueOf=t.valueOf),e}function pr(e,t,r,i){return mu(e,t,r,i,!0).utc()}function x_(){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 we(e){return e._pf==null&&(e._pf=x_()),e._pf}var sa;Array.prototype.some?sa=Array.prototype.some:sa=function(e){var t=Object(this),r=t.length>>>0,i;for(i=0;i<r;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function Pa(e){var t=null,r=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(t=we(e),r=sa.call(t.parsedDateParts,function(s){return s!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function Vn(e){var t=pr(NaN);return e!=null?jr(we(t),e):we(t).userInvalidated=!0,t}var Yh=ee.momentProperties=[],Fo=!1;function Oa(e,t){var r,i,s,o=Yh.length;if(Nt(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Nt(t._i)||(e._i=t._i),Nt(t._f)||(e._f=t._f),Nt(t._l)||(e._l=t._l),Nt(t._strict)||(e._strict=t._strict),Nt(t._tzm)||(e._tzm=t._tzm),Nt(t._isUTC)||(e._isUTC=t._isUTC),Nt(t._offset)||(e._offset=t._offset),Nt(t._pf)||(e._pf=we(t)),Nt(t._locale)||(e._locale=t._locale),o>0)for(r=0;r<o;r++)i=Yh[r],s=t[i],Nt(s)||(e[i]=s);return e}function Os(e){Oa(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Fo===!1&&(Fo=!0,ee.updateOffset(this),Fo=!1)}function tr(e){return e instanceof Os||e!=null&&e._isAMomentObject!=null}function Gc(e){ee.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Xt(e,t){var r=!0;return jr(function(){if(ee.deprecationHandler!=null&&ee.deprecationHandler(null,e),r){var i=[],s,o,l,h=arguments.length;for(o=0;o<h;o++){if(s="",typeof arguments[o]=="object"){s+=`
|
|
220
|
-
[`+o+"] ";for(l in arguments[0])Pe(arguments[0],l)&&(s+=l+": "+arguments[0][l]+", ");s=s.slice(0,-2)}else s=arguments[o];i.push(s)}Gc(e+`
|
|
221
|
-
Arguments: `+Array.prototype.slice.call(i).join("")+`
|
|
222
|
-
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var zh={};function qc(e,t){ee.deprecationHandler!=null&&ee.deprecationHandler(e,t),zh[e]||(Gc(t),zh[e]=!0)}ee.suppressDeprecationWarnings=!1;ee.deprecationHandler=null;function mr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function T_(e){var t,r;for(r in e)Pe(e,r)&&(t=e[r],mr(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function na(e,t){var r=jr({},e),i;for(i in t)Pe(t,i)&&(hi(e[i])&&hi(t[i])?(r[i]={},jr(r[i],e[i]),jr(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in e)Pe(e,i)&&!Pe(t,i)&&hi(e[i])&&(r[i]=jr({},r[i]));return r}function Aa(e){e!=null&&this.set(e)}var oa;Object.keys?oa=Object.keys:oa=function(e){var t,r=[];for(t in e)Pe(e,t)&&r.push(t);return r};var D_={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_(e,t,r){var i=this._calendar[e]||this._calendar.sameElse;return mr(i)?i.call(t,r):i}function fr(e,t,r){var i=""+Math.abs(e),s=t-i.length,o=e>=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}var Na=/(\[[^\[]*\])|(\\)?([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,nn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Io={},Hi={};function pe(e,t,r,i){var s=i;typeof i=="string"&&(s=function(){return this[i]()}),e&&(Hi[e]=s),t&&(Hi[t[0]]=function(){return fr(s.apply(this,arguments),t[1],t[2])}),r&&(Hi[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function P_(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function O_(e){var t=e.match(Na),r,i;for(r=0,i=t.length;r<i;r++)Hi[t[r]]?t[r]=Hi[t[r]]:t[r]=P_(t[r]);return function(s){var o="",l;for(l=0;l<i;l++)o+=mr(t[l])?t[l].call(s,e):t[l];return o}}function un(e,t){return e.isValid()?(t=Xc(t,e.localeData()),Io[t]=Io[t]||O_(t),Io[t](e)):e.localeData().invalidDate()}function Xc(e,t){var r=5;function i(s){return t.longDateFormat(s)||s}for(nn.lastIndex=0;r>=0&&nn.test(e);)e=e.replace(nn,i),nn.lastIndex=0,r-=1;return e}var A_={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 N_(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Na).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var L_="Invalid date";function F_(){return this._invalidDate}var I_="%d",W_=/\d{1,2}/;function H_(e){return this._ordinal.replace("%d",e)}var Y_={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 z_(e,t,r,i){var s=this._relativeTime[r];return mr(s)?s(e,t,r,i):s.replace(/%d/i,e)}function $_(e,t){var r=this._relativeTime[e>0?"future":"past"];return mr(r)?r(t):r.replace(/%s/i,t)}var $h={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 Kt(e){return typeof e=="string"?$h[e]||$h[e.toLowerCase()]:void 0}function La(e){var t={},r,i;for(i in e)Pe(e,i)&&(r=Kt(i),r&&(t[r]=e[i]));return t}var B_={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 V_(e){var t=[],r;for(r in e)Pe(e,r)&&t.push({unit:r,priority:B_[r]});return t.sort(function(i,s){return i.priority-s.priority}),t}var Kc=/\d/,Ht=/\d\d/,Zc=/\d{3}/,Fa=/\d{4}/,jn=/[+-]?\d{6}/,Je=/\d\d?/,Jc=/\d\d\d\d?/,Qc=/\d\d\d\d\d\d?/,Un=/\d{1,3}/,Ia=/\d{1,4}/,Gn=/[+-]?\d{1,6}/,Ui=/\d+/,qn=/[+-]?\d+/,j_=/Z|[+-]\d\d:?\d\d/gi,Xn=/Z|[+-]\d\d(?::?\d\d)?/gi,U_=/[+-]?\d+(\.\d{1,3})?/,As=/[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,Gi=/^[1-9]\d?/,Wa=/^([1-9]\d|\d)/,Sn;Sn={};function ne(e,t,r){Sn[e]=mr(t)?t:function(i,s){return i&&r?r:t}}function G_(e,t){return Pe(Sn,e)?Sn[e](t._strict,t._locale):new RegExp(q_(e))}function q_(e){return Mr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,i,s,o){return r||i||s||o}))}function Mr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Gt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Re(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Gt(t)),r}var aa={};function je(e,t){var r,i=t,s;for(typeof e=="string"&&(e=[e]),Ar(t)&&(i=function(o,l){l[t]=Re(o)}),s=e.length,r=0;r<s;r++)aa[e[r]]=i}function Ns(e,t){je(e,function(r,i,s,o){s._w=s._w||{},t(r,s._w,s,o)})}function X_(e,t,r){t!=null&&Pe(aa,e)&&aa[e](t,r._a,r,e)}function Kn(e){return e%4===0&&e%100!==0||e%400===0}var xt=0,Tr=1,ur=2,yt=3,Jt=4,Dr=5,li=6,K_=7,Z_=8;pe("Y",0,0,function(){var e=this.year();return e<=9999?fr(e,4):"+"+e});pe(0,["YY",2],0,function(){return this.year()%100});pe(0,["YYYY",4],0,"year");pe(0,["YYYYY",5],0,"year");pe(0,["YYYYYY",6,!0],0,"year");ne("Y",qn);ne("YY",Je,Ht);ne("YYYY",Ia,Fa);ne("YYYYY",Gn,jn);ne("YYYYYY",Gn,jn);je(["YYYYY","YYYYYY"],xt);je("YYYY",function(e,t){t[xt]=e.length===2?ee.parseTwoDigitYear(e):Re(e)});je("YY",function(e,t){t[xt]=ee.parseTwoDigitYear(e)});je("Y",function(e,t){t[xt]=parseInt(e,10)});function ps(e){return Kn(e)?366:365}ee.parseTwoDigitYear=function(e){return Re(e)+(Re(e)>68?1900:2e3)};var eu=qi("FullYear",!0);function J_(){return Kn(this.year())}function qi(e,t){return function(r){return r!=null?(tu(this,e,r),ee.updateOffset(this,t),this):Cs(this,e)}}function Cs(e,t){if(!e.isValid())return NaN;var r=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return i?r.getUTCSeconds():r.getSeconds();case"Minutes":return i?r.getUTCMinutes():r.getMinutes();case"Hours":return i?r.getUTCHours():r.getHours();case"Date":return i?r.getUTCDate():r.getDate();case"Day":return i?r.getUTCDay():r.getDay();case"Month":return i?r.getUTCMonth():r.getMonth();case"FullYear":return i?r.getUTCFullYear():r.getFullYear();default:return NaN}}function tu(e,t,r){var i,s,o,l,h;if(!(!e.isValid()||isNaN(r))){switch(i=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?i.setUTCMilliseconds(r):i.setMilliseconds(r));case"Seconds":return void(s?i.setUTCSeconds(r):i.setSeconds(r));case"Minutes":return void(s?i.setUTCMinutes(r):i.setMinutes(r));case"Hours":return void(s?i.setUTCHours(r):i.setHours(r));case"Date":return void(s?i.setUTCDate(r):i.setDate(r));case"FullYear":break;default:return}o=r,l=e.month(),h=e.date(),h=h===29&&l===1&&!Kn(o)?28:h,s?i.setUTCFullYear(o,l,h):i.setFullYear(o,l,h)}}function Q_(e){return e=Kt(e),mr(this[e])?this[e]():this}function e0(e,t){if(typeof e=="object"){e=La(e);var r=V_(e),i,s=r.length;for(i=0;i<s;i++)this[r[i].unit](e[r[i].unit])}else if(e=Kt(e),mr(this[e]))return this[e](t);return this}function t0(e,t){return(e%t+t)%t}var dt;Array.prototype.indexOf?dt=Array.prototype.indexOf:dt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Ha(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=t0(t,12);return e+=(t-r)/12,r===1?Kn(e)?29:28:31-r%7%2}pe("M",["MM",2],"Mo",function(){return this.month()+1});pe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});pe("MMMM",0,0,function(e){return this.localeData().months(this,e)});ne("M",Je,Gi);ne("MM",Je,Ht);ne("MMM",function(e,t){return t.monthsShortRegex(e)});ne("MMMM",function(e,t){return t.monthsRegex(e)});je(["M","MM"],function(e,t){t[Tr]=Re(e)-1});je(["MMM","MMMM"],function(e,t,r,i){var s=r._locale.monthsParse(e,i,r._strict);s!=null?t[Tr]=s:we(r).invalidMonth=e});var r0="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ru="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),iu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,i0=As,s0=As;function n0(e,t){return e?er(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||iu).test(t)?"format":"standalone"][e.month()]:er(this._months)?this._months:this._months.standalone}function o0(e,t){return e?er(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[iu.test(t)?"format":"standalone"][e.month()]:er(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function a0(e,t,r){var i,s,o,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=pr([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return r?t==="MMM"?(s=dt.call(this._shortMonthsParse,l),s!==-1?s:null):(s=dt.call(this._longMonthsParse,l),s!==-1?s:null):t==="MMM"?(s=dt.call(this._shortMonthsParse,l),s!==-1?s:(s=dt.call(this._longMonthsParse,l),s!==-1?s:null)):(s=dt.call(this._longMonthsParse,l),s!==-1?s:(s=dt.call(this._shortMonthsParse,l),s!==-1?s:null))}function l0(e,t,r){var i,s,o;if(this._monthsParseExact)return a0.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=pr([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(r&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}}function su(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Re(t);else if(t=e.localeData().monthsParse(t),!Ar(t))return e}var r=t,i=e.date();return i=i<29?i:Math.min(i,Ha(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,i):e._d.setMonth(r,i),e}function nu(e){return e!=null?(su(this,e),ee.updateOffset(this,!0),this):Cs(this,"Month")}function h0(){return Ha(this.year(),this.month())}function c0(e){return this._monthsParseExact?(Pe(this,"_monthsRegex")||ou.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Pe(this,"_monthsShortRegex")||(this._monthsShortRegex=i0),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function u0(e){return this._monthsParseExact?(Pe(this,"_monthsRegex")||ou.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Pe(this,"_monthsRegex")||(this._monthsRegex=s0),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ou(){function e(d,f){return f.length-d.length}var t=[],r=[],i=[],s,o,l,h;for(s=0;s<12;s++)o=pr([2e3,s]),l=Mr(this.monthsShort(o,"")),h=Mr(this.months(o,"")),t.push(l),r.push(h),i.push(h),i.push(l);t.sort(e),r.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function d0(e,t,r,i,s,o,l){var h;return e<100&&e>=0?(h=new Date(e+400,t,r,i,s,o,l),isFinite(h.getFullYear())&&h.setFullYear(e)):h=new Date(e,t,r,i,s,o,l),h}function Ss(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Rn(e,t,r){var i=7+t-r,s=(7+Ss(e,0,i).getUTCDay()-t)%7;return-s+i-1}function au(e,t,r,i,s){var o=(7+r-i)%7,l=Rn(e,i,s),h=1+7*(t-1)+o+l,d,f;return h<=0?(d=e-1,f=ps(d)+h):h>ps(e)?(d=e+1,f=h-ps(e)):(d=e,f=h),{year:d,dayOfYear:f}}function Rs(e,t,r){var i=Rn(e.year(),t,r),s=Math.floor((e.dayOfYear()-i-1)/7)+1,o,l;return s<1?(l=e.year()-1,o=s+Pr(l,t,r)):s>Pr(e.year(),t,r)?(o=s-Pr(e.year(),t,r),l=e.year()+1):(l=e.year(),o=s),{week:o,year:l}}function Pr(e,t,r){var i=Rn(e,t,r),s=Rn(e+1,t,r);return(ps(e)-i+s)/7}pe("w",["ww",2],"wo","week");pe("W",["WW",2],"Wo","isoWeek");ne("w",Je,Gi);ne("ww",Je,Ht);ne("W",Je,Gi);ne("WW",Je,Ht);Ns(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=Re(e)});function f0(e){return Rs(e,this._week.dow,this._week.doy).week}var p0={dow:0,doy:6};function m0(){return this._week.dow}function g0(){return this._week.doy}function y0(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function v0(e){var t=Rs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}pe("d",0,"do","day");pe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});pe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});pe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});pe("e",0,0,"weekday");pe("E",0,0,"isoWeekday");ne("d",Je);ne("e",Je);ne("E",Je);ne("dd",function(e,t){return t.weekdaysMinRegex(e)});ne("ddd",function(e,t){return t.weekdaysShortRegex(e)});ne("dddd",function(e,t){return t.weekdaysRegex(e)});Ns(["dd","ddd","dddd"],function(e,t,r,i){var s=r._locale.weekdaysParse(e,i,r._strict);s!=null?t.d=s:we(r).invalidWeekday=e});Ns(["d","e","E"],function(e,t,r,i){t[i]=Re(e)});function w0(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function _0(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ya(e,t){return e.slice(t,7).concat(e.slice(0,t))}var b0="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),lu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),C0="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),S0=As,R0=As,E0=As;function k0(e,t){var r=er(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ya(r,this._week.dow):e?r[e.day()]:r}function x0(e){return e===!0?Ya(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function T0(e){return e===!0?Ya(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function D0(e,t,r){var i,s,o,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=pr([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(s=dt.call(this._weekdaysParse,l),s!==-1?s:null):t==="ddd"?(s=dt.call(this._shortWeekdaysParse,l),s!==-1?s:null):(s=dt.call(this._minWeekdaysParse,l),s!==-1?s:null):t==="dddd"?(s=dt.call(this._weekdaysParse,l),s!==-1||(s=dt.call(this._shortWeekdaysParse,l),s!==-1)?s:(s=dt.call(this._minWeekdaysParse,l),s!==-1?s:null)):t==="ddd"?(s=dt.call(this._shortWeekdaysParse,l),s!==-1||(s=dt.call(this._weekdaysParse,l),s!==-1)?s:(s=dt.call(this._minWeekdaysParse,l),s!==-1?s:null)):(s=dt.call(this._minWeekdaysParse,l),s!==-1||(s=dt.call(this._weekdaysParse,l),s!==-1)?s:(s=dt.call(this._shortWeekdaysParse,l),s!==-1?s:null))}function M0(e,t,r){var i,s,o;if(this._weekdaysParseExact)return D0.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=pr([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(r&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(r&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}}function P0(e){if(!this.isValid())return e!=null?this:NaN;var t=Cs(this,"Day");return e!=null?(e=w0(e,this.localeData()),this.add(e-t,"d")):t}function O0(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 A0(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=_0(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function N0(e){return this._weekdaysParseExact?(Pe(this,"_weekdaysRegex")||za.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Pe(this,"_weekdaysRegex")||(this._weekdaysRegex=S0),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function L0(e){return this._weekdaysParseExact?(Pe(this,"_weekdaysRegex")||za.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Pe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=R0),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function F0(e){return this._weekdaysParseExact?(Pe(this,"_weekdaysRegex")||za.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Pe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=E0),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function za(){function e(p,m){return m.length-p.length}var t=[],r=[],i=[],s=[],o,l,h,d,f;for(o=0;o<7;o++)l=pr([2e3,1]).day(o),h=Mr(this.weekdaysMin(l,"")),d=Mr(this.weekdaysShort(l,"")),f=Mr(this.weekdays(l,"")),t.push(h),r.push(d),i.push(f),s.push(h),s.push(d),s.push(f);t.sort(e),r.sort(e),i.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function $a(){return this.hours()%12||12}function I0(){return this.hours()||24}pe("H",["HH",2],0,"hour");pe("h",["hh",2],0,$a);pe("k",["kk",2],0,I0);pe("hmm",0,0,function(){return""+$a.apply(this)+fr(this.minutes(),2)});pe("hmmss",0,0,function(){return""+$a.apply(this)+fr(this.minutes(),2)+fr(this.seconds(),2)});pe("Hmm",0,0,function(){return""+this.hours()+fr(this.minutes(),2)});pe("Hmmss",0,0,function(){return""+this.hours()+fr(this.minutes(),2)+fr(this.seconds(),2)});function hu(e,t){pe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}hu("a",!0);hu("A",!1);function cu(e,t){return t._meridiemParse}ne("a",cu);ne("A",cu);ne("H",Je,Wa);ne("h",Je,Gi);ne("k",Je,Gi);ne("HH",Je,Ht);ne("hh",Je,Ht);ne("kk",Je,Ht);ne("hmm",Jc);ne("hmmss",Qc);ne("Hmm",Jc);ne("Hmmss",Qc);je(["H","HH"],yt);je(["k","kk"],function(e,t,r){var i=Re(e);t[yt]=i===24?0:i});je(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});je(["h","hh"],function(e,t,r){t[yt]=Re(e),we(r).bigHour=!0});je("hmm",function(e,t,r){var i=e.length-2;t[yt]=Re(e.substr(0,i)),t[Jt]=Re(e.substr(i)),we(r).bigHour=!0});je("hmmss",function(e,t,r){var i=e.length-4,s=e.length-2;t[yt]=Re(e.substr(0,i)),t[Jt]=Re(e.substr(i,2)),t[Dr]=Re(e.substr(s)),we(r).bigHour=!0});je("Hmm",function(e,t,r){var i=e.length-2;t[yt]=Re(e.substr(0,i)),t[Jt]=Re(e.substr(i))});je("Hmmss",function(e,t,r){var i=e.length-4,s=e.length-2;t[yt]=Re(e.substr(0,i)),t[Jt]=Re(e.substr(i,2)),t[Dr]=Re(e.substr(s))});function W0(e){return(e+"").toLowerCase().charAt(0)==="p"}var H0=/[ap]\.?m?\.?/i,Y0=qi("Hours",!0);function z0(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var uu={calendar:D_,longDateFormat:A_,invalidDate:L_,ordinal:I_,dayOfMonthOrdinalParse:W_,relativeTime:Y_,months:r0,monthsShort:ru,week:p0,weekdays:b0,weekdaysMin:C0,weekdaysShort:lu,meridiemParse:H0},rt={},ls={},Es;function $0(e,t){var r,i=Math.min(e.length,t.length);for(r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}function Bh(e){return e&&e.toLowerCase().replace("_","-")}function B0(e){for(var t=0,r,i,s,o;t<e.length;){for(o=Bh(e[t]).split("-"),r=o.length,i=Bh(e[t+1]),i=i?i.split("-"):null;r>0;){if(s=Zn(o.slice(0,r).join("-")),s)return s;if(i&&i.length>=r&&$0(o,i)>=r-1)break;r--}t++}return Es}function V0(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Zn(e){var t=null,r;if(rt[e]===void 0&&typeof module<"u"&&module&&module.exports&&V0(e))try{t=Es._abbr,r=require,r("./locale/"+e),Gr(t)}catch{rt[e]=null}return rt[e]}function Gr(e,t){var r;return e&&(Nt(t)?r=Nr(e):r=Ba(e,t),r?Es=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Es._abbr}function Ba(e,t){if(t!==null){var r,i=uu;if(t.abbr=e,rt[e]!=null)qc("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."),i=rt[e]._config;else if(t.parentLocale!=null)if(rt[t.parentLocale]!=null)i=rt[t.parentLocale]._config;else if(r=Zn(t.parentLocale),r!=null)i=r._config;else return ls[t.parentLocale]||(ls[t.parentLocale]=[]),ls[t.parentLocale].push({name:e,config:t}),null;return rt[e]=new Aa(na(i,t)),ls[e]&&ls[e].forEach(function(s){Ba(s.name,s.config)}),Gr(e),rt[e]}else return delete rt[e],null}function j0(e,t){if(t!=null){var r,i,s=uu;rt[e]!=null&&rt[e].parentLocale!=null?rt[e].set(na(rt[e]._config,t)):(i=Zn(e),i!=null&&(s=i._config),t=na(s,t),i==null&&(t.abbr=e),r=new Aa(t),r.parentLocale=rt[e],rt[e]=r),Gr(e)}else rt[e]!=null&&(rt[e].parentLocale!=null?(rt[e]=rt[e].parentLocale,e===Gr()&&Gr(e)):rt[e]!=null&&delete rt[e]);return rt[e]}function Nr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Es;if(!er(e)){if(t=Zn(e),t)return t;e=[e]}return B0(e)}function U0(){return oa(rt)}function Va(e){var t,r=e._a;return r&&we(e).overflow===-2&&(t=r[Tr]<0||r[Tr]>11?Tr:r[ur]<1||r[ur]>Ha(r[xt],r[Tr])?ur:r[yt]<0||r[yt]>24||r[yt]===24&&(r[Jt]!==0||r[Dr]!==0||r[li]!==0)?yt:r[Jt]<0||r[Jt]>59?Jt:r[Dr]<0||r[Dr]>59?Dr:r[li]<0||r[li]>999?li:-1,we(e)._overflowDayOfYear&&(t<xt||t>ur)&&(t=ur),we(e)._overflowWeeks&&t===-1&&(t=K_),we(e)._overflowWeekday&&t===-1&&(t=Z_),we(e).overflow=t),e}var G0=/^\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)?)?$/,q0=/^\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)?)?$/,X0=/Z|[+-]\d\d(?::?\d\d)?/,on=[["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]],Wo=[["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/]],K0=/^\/?Date\((-?\d+)/i,Z0=/^(?:(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}))$/,J0={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 du(e){var t,r,i=e._i,s=G0.exec(i)||q0.exec(i),o,l,h,d,f=on.length,p=Wo.length;if(s){for(we(e).iso=!0,t=0,r=f;t<r;t++)if(on[t][1].exec(s[1])){l=on[t][0],o=on[t][2]!==!1;break}if(l==null){e._isValid=!1;return}if(s[3]){for(t=0,r=p;t<r;t++)if(Wo[t][1].exec(s[3])){h=(s[2]||" ")+Wo[t][0];break}if(h==null){e._isValid=!1;return}}if(!o&&h!=null){e._isValid=!1;return}if(s[4])if(X0.exec(s[4]))d="Z";else{e._isValid=!1;return}e._f=l+(h||"")+(d||""),Ua(e)}else e._isValid=!1}function Q0(e,t,r,i,s,o){var l=[eb(e),ru.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(s,10)];return o&&l.push(parseInt(o,10)),l}function eb(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function tb(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function rb(e,t,r){if(e){var i=lu.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(i!==s)return we(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function ib(e,t,r){if(e)return J0[e];if(t)return 0;var i=parseInt(r,10),s=i%100,o=(i-s)/100;return o*60+s}function fu(e){var t=Z0.exec(tb(e._i)),r;if(t){if(r=Q0(t[4],t[3],t[2],t[5],t[6],t[7]),!rb(t[1],r,e))return;e._a=r,e._tzm=ib(t[8],t[9],t[10]),e._d=Ss.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),we(e).rfc2822=!0}else e._isValid=!1}function sb(e){var t=K0.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(du(e),e._isValid===!1)delete e._isValid;else return;if(fu(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ee.createFromInputFallback(e)}ee.createFromInputFallback=Xt("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 Ai(e,t,r){return e??t??r}function nb(e){var t=new Date(ee.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ja(e){var t,r,i=[],s,o,l;if(!e._d){for(s=nb(e),e._w&&e._a[ur]==null&&e._a[Tr]==null&&ob(e),e._dayOfYear!=null&&(l=Ai(e._a[xt],s[xt]),(e._dayOfYear>ps(l)||e._dayOfYear===0)&&(we(e)._overflowDayOfYear=!0),r=Ss(l,0,e._dayOfYear),e._a[Tr]=r.getUTCMonth(),e._a[ur]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=s[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[yt]===24&&e._a[Jt]===0&&e._a[Dr]===0&&e._a[li]===0&&(e._nextDay=!0,e._a[yt]=0),e._d=(e._useUTC?Ss:d0).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[yt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(we(e).weekdayMismatch=!0)}}function ob(e){var t,r,i,s,o,l,h,d,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,l=4,r=Ai(t.GG,e._a[xt],Rs(Ze(),1,4).year),i=Ai(t.W,1),s=Ai(t.E,1),(s<1||s>7)&&(d=!0)):(o=e._locale._week.dow,l=e._locale._week.doy,f=Rs(Ze(),o,l),r=Ai(t.gg,e._a[xt],f.year),i=Ai(t.w,f.week),t.d!=null?(s=t.d,(s<0||s>6)&&(d=!0)):t.e!=null?(s=t.e+o,(t.e<0||t.e>6)&&(d=!0)):s=o),i<1||i>Pr(r,o,l)?we(e)._overflowWeeks=!0:d!=null?we(e)._overflowWeekday=!0:(h=au(r,i,s,o,l),e._a[xt]=h.year,e._dayOfYear=h.dayOfYear)}ee.ISO_8601=function(){};ee.RFC_2822=function(){};function Ua(e){if(e._f===ee.ISO_8601){du(e);return}if(e._f===ee.RFC_2822){fu(e);return}e._a=[],we(e).empty=!0;var t=""+e._i,r,i,s,o,l,h=t.length,d=0,f,p;for(s=Xc(e._f,e._locale).match(Na)||[],p=s.length,r=0;r<p;r++)o=s[r],i=(t.match(G_(o,e))||[])[0],i&&(l=t.substr(0,t.indexOf(i)),l.length>0&&we(e).unusedInput.push(l),t=t.slice(t.indexOf(i)+i.length),d+=i.length),Hi[o]?(i?we(e).empty=!1:we(e).unusedTokens.push(o),X_(o,i,e)):e._strict&&!i&&we(e).unusedTokens.push(o);we(e).charsLeftOver=h-d,t.length>0&&we(e).unusedInput.push(t),e._a[yt]<=12&&we(e).bigHour===!0&&e._a[yt]>0&&(we(e).bigHour=void 0),we(e).parsedDateParts=e._a.slice(0),we(e).meridiem=e._meridiem,e._a[yt]=ab(e._locale,e._a[yt],e._meridiem),f=we(e).era,f!==null&&(e._a[xt]=e._locale.erasConvertYear(f,e._a[xt])),ja(e),Va(e)}function ab(e,t,r){var i;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(i=e.isPM(r),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function lb(e){var t,r,i,s,o,l,h=!1,d=e._f.length;if(d===0){we(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<d;s++)o=0,l=!1,t=Oa({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Ua(t),Pa(t)&&(l=!0),o+=we(t).charsLeftOver,o+=we(t).unusedTokens.length*10,we(t).score=o,h?o<i&&(i=o,r=t):(i==null||o<i||l)&&(i=o,r=t,l&&(h=!0));jr(e,r||t)}function hb(e){if(!e._d){var t=La(e._i),r=t.day===void 0?t.date:t.day;e._a=Uc([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),ja(e)}}function cb(e){var t=new Os(Va(pu(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function pu(e){var t=e._i,r=e._f;return e._locale=e._locale||Nr(e._l),t===null||r===void 0&&t===""?Vn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),tr(t)?new Os(Va(t)):(Ps(t)?e._d=t:er(r)?lb(e):r?Ua(e):ub(e),Pa(e)||(e._d=null),e))}function ub(e){var t=e._i;Nt(t)?e._d=new Date(ee.now()):Ps(t)?e._d=new Date(t.valueOf()):typeof t=="string"?sb(e):er(t)?(e._a=Uc(t.slice(0),function(r){return parseInt(r,10)}),ja(e)):hi(t)?hb(e):Ar(t)?e._d=new Date(t):ee.createFromInputFallback(e)}function mu(e,t,r,i,s){var o={};return(t===!0||t===!1)&&(i=t,t=void 0),(r===!0||r===!1)&&(i=r,r=void 0),(hi(e)&&Ma(e)||er(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=s,o._l=r,o._i=e,o._f=t,o._strict=i,cb(o)}function Ze(e,t,r,i){return mu(e,t,r,i,!1)}var db=Xt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Vn()}),fb=Xt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Vn()});function gu(e,t){var r,i;if(t.length===1&&er(t[0])&&(t=t[0]),!t.length)return Ze();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](r))&&(r=t[i]);return r}function pb(){var e=[].slice.call(arguments,0);return gu("isBefore",e)}function mb(){var e=[].slice.call(arguments,0);return gu("isAfter",e)}var gb=function(){return Date.now?Date.now():+new Date},hs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function yb(e){var t,r=!1,i,s=hs.length;for(t in e)if(Pe(e,t)&&!(dt.call(hs,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<s;++i)if(e[hs[i]]){if(r)return!1;parseFloat(e[hs[i]])!==Re(e[hs[i]])&&(r=!0)}return!0}function vb(){return this._isValid}function wb(){return rr(NaN)}function Jn(e){var t=La(e),r=t.year||0,i=t.quarter||0,s=t.month||0,o=t.week||t.isoWeek||0,l=t.day||0,h=t.hour||0,d=t.minute||0,f=t.second||0,p=t.millisecond||0;this._isValid=yb(t),this._milliseconds=+p+f*1e3+d*6e4+h*1e3*60*60,this._days=+l+o*7,this._months=+s+i*3+r*12,this._data={},this._locale=Nr(),this._bubble()}function dn(e){return e instanceof Jn}function la(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function _b(e,t,r){var i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0,l;for(l=0;l<i;l++)Re(e[l])!==Re(t[l])&&o++;return o+s}function yu(e,t){pe(e,0,0,function(){var r=this.utcOffset(),i="+";return r<0&&(r=-r,i="-"),i+fr(~~(r/60),2)+t+fr(~~r%60,2)})}yu("Z",":");yu("ZZ","");ne("Z",Xn);ne("ZZ",Xn);je(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Ga(Xn,e)});var bb=/([\+\-]|\d\d)/gi;function Ga(e,t){var r=(t||"").match(e),i,s,o;return r===null?null:(i=r[r.length-1]||[],s=(i+"").match(bb)||["-",0,0],o=+(s[1]*60)+Re(s[2]),o===0?0:s[0]==="+"?o:-o)}function qa(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(tr(e)||Ps(e)?e.valueOf():Ze(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),ee.updateOffset(r,!1),r):Ze(e).local()}function ha(e){return-Math.round(e._d.getTimezoneOffset())}ee.updateOffset=function(){};function Cb(e,t,r){var i=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Ga(Xn,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=ha(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?_u(this,rr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ee.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:ha(this)}function Sb(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Rb(e){return this.utcOffset(0,e)}function Eb(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ha(this),"m")),this}function kb(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Ga(j_,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function xb(e){return this.isValid()?(e=e?Ze(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Tb(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Db(){if(!Nt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Oa(e,this),e=pu(e),e._a?(t=e._isUTC?pr(e._a):Ze(e._a),this._isDSTShifted=this.isValid()&&_b(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Mb(){return this.isValid()?!this._isUTC:!1}function Pb(){return this.isValid()?this._isUTC:!1}function vu(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ob=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ab=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function rr(e,t){var r=e,i=null,s,o,l;return dn(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Ar(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(i=Ob.exec(e))?(s=i[1]==="-"?-1:1,r={y:0,d:Re(i[ur])*s,h:Re(i[yt])*s,m:Re(i[Jt])*s,s:Re(i[Dr])*s,ms:Re(la(i[li]*1e3))*s}):(i=Ab.exec(e))?(s=i[1]==="-"?-1:1,r={y:ni(i[2],s),M:ni(i[3],s),w:ni(i[4],s),d:ni(i[5],s),h:ni(i[6],s),m:ni(i[7],s),s:ni(i[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(l=Nb(Ze(r.from),Ze(r.to)),r={},r.ms=l.milliseconds,r.M=l.months),o=new Jn(r),dn(e)&&Pe(e,"_locale")&&(o._locale=e._locale),dn(e)&&Pe(e,"_isValid")&&(o._isValid=e._isValid),o}rr.fn=Jn.prototype;rr.invalid=wb;function ni(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Vh(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Nb(e,t){var r;return e.isValid()&&t.isValid()?(t=qa(t,e),e.isBefore(t)?r=Vh(e,t):(r=Vh(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function wu(e,t){return function(r,i){var s,o;return i!==null&&!isNaN(+i)&&(qc(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."),o=r,r=i,i=o),s=rr(r,i),_u(this,s,e),this}}function _u(e,t,r,i){var s=t._milliseconds,o=la(t._days),l=la(t._months);e.isValid()&&(i=i??!0,l&&su(e,Cs(e,"Month")+l*r),o&&tu(e,"Date",Cs(e,"Date")+o*r),s&&e._d.setTime(e._d.valueOf()+s*r),i&&ee.updateOffset(e,o||l))}var Lb=wu(1,"add"),Fb=wu(-1,"subtract");function bu(e){return typeof e=="string"||e instanceof String}function Ib(e){return tr(e)||Ps(e)||bu(e)||Ar(e)||Hb(e)||Wb(e)||e===null||e===void 0}function Wb(e){var t=hi(e)&&!Ma(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,o,l=i.length;for(s=0;s<l;s+=1)o=i[s],r=r||Pe(e,o);return t&&r}function Hb(e){var t=er(e),r=!1;return t&&(r=e.filter(function(i){return!Ar(i)&&bu(e)}).length===0),t&&r}function Yb(e){var t=hi(e)&&!Ma(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,o;for(s=0;s<i.length;s+=1)o=i[s],r=r||Pe(e,o);return t&&r}function zb(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function $b(e,t){arguments.length===1&&(arguments[0]?Ib(arguments[0])?(e=arguments[0],t=void 0):Yb(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Ze(),i=qa(r,this).startOf("day"),s=ee.calendarFormat(this,i)||"sameElse",o=t&&(mr(t[s])?t[s].call(this,r):t[s]);return this.format(o||this.localeData().calendar(s,this,Ze(r)))}function Bb(){return new Os(this)}function Vb(e,t){var r=tr(e)?e:Ze(e);return this.isValid()&&r.isValid()?(t=Kt(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function jb(e,t){var r=tr(e)?e:Ze(e);return this.isValid()&&r.isValid()?(t=Kt(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Ub(e,t,r,i){var s=tr(e)?e:Ze(e),o=tr(t)?t:Ze(t);return this.isValid()&&s.isValid()&&o.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(i[1]===")"?this.isBefore(o,r):!this.isAfter(o,r))):!1}function Gb(e,t){var r=tr(e)?e:Ze(e),i;return this.isValid()&&r.isValid()?(t=Kt(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function qb(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xb(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kb(e,t,r){var i,s,o;if(!this.isValid())return NaN;if(i=qa(e,this),!i.isValid())return NaN;switch(s=(i.utcOffset()-this.utcOffset())*6e4,t=Kt(t),t){case"year":o=fn(this,i)/12;break;case"month":o=fn(this,i);break;case"quarter":o=fn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-s)/864e5;break;case"week":o=(this-i-s)/6048e5;break;default:o=this-i}return r?o:Gt(o)}function fn(e,t){if(e.date()<t.date())return-fn(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(r,"months"),s,o;return t-i<0?(s=e.clone().add(r-1,"months"),o=(t-i)/(i-s)):(s=e.clone().add(r+1,"months"),o=(t-i)/(s-i)),-(r+o)||0}ee.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ee.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Zb(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jb(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?un(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):mr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",un(r,"Z")):un(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Qb(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,i,s,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+i+s+o)}function eC(e){e||(e=this.isUtc()?ee.defaultFormatUtc:ee.defaultFormat);var t=un(this,e);return this.localeData().postformat(t)}function tC(e,t){return this.isValid()&&(tr(e)&&e.isValid()||Ze(e).isValid())?rr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rC(e){return this.from(Ze(),e)}function iC(e,t){return this.isValid()&&(tr(e)&&e.isValid()||Ze(e).isValid())?rr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sC(e){return this.to(Ze(),e)}function Cu(e){var t;return e===void 0?this._locale._abbr:(t=Nr(e),t!=null&&(this._locale=t),this)}var Su=Xt("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 Ru(){return this._locale}var En=1e3,Yi=60*En,kn=60*Yi,Eu=(365*400+97)*24*kn;function zi(e,t){return(e%t+t)%t}function ku(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Eu:new Date(e,t,r).valueOf()}function xu(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Eu:Date.UTC(e,t,r)}function nC(e){var t,r;if(e=Kt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?xu:ku,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=zi(t+(this._isUTC?0:this.utcOffset()*Yi),kn);break;case"minute":t=this._d.valueOf(),t-=zi(t,Yi);break;case"second":t=this._d.valueOf(),t-=zi(t,En);break}return this._d.setTime(t),ee.updateOffset(this,!0),this}function oC(e){var t,r;if(e=Kt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?xu:ku,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=kn-zi(t+(this._isUTC?0:this.utcOffset()*Yi),kn)-1;break;case"minute":t=this._d.valueOf(),t+=Yi-zi(t,Yi)-1;break;case"second":t=this._d.valueOf(),t+=En-zi(t,En)-1;break}return this._d.setTime(t),ee.updateOffset(this,!0),this}function aC(){return this._d.valueOf()-(this._offset||0)*6e4}function lC(){return Math.floor(this.valueOf()/1e3)}function hC(){return new Date(this.valueOf())}function cC(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function uC(){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 dC(){return this.isValid()?this.toISOString():null}function fC(){return Pa(this)}function pC(){return jr({},we(this))}function mC(){return we(this).overflow}function gC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}pe("N",0,0,"eraAbbr");pe("NN",0,0,"eraAbbr");pe("NNN",0,0,"eraAbbr");pe("NNNN",0,0,"eraName");pe("NNNNN",0,0,"eraNarrow");pe("y",["y",1],"yo","eraYear");pe("y",["yy",2],0,"eraYear");pe("y",["yyy",3],0,"eraYear");pe("y",["yyyy",4],0,"eraYear");ne("N",Xa);ne("NN",Xa);ne("NNN",Xa);ne("NNNN",xC);ne("NNNNN",TC);je(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){var s=r._locale.erasParse(e,i,r._strict);s?we(r).era=s:we(r).invalidEra=e});ne("y",Ui);ne("yy",Ui);ne("yyy",Ui);ne("yyyy",Ui);ne("yo",DC);je(["y","yy","yyy","yyyy"],xt);je(["yo"],function(e,t,r,i){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[xt]=r._locale.eraYearOrdinalParse(e,s):t[xt]=parseInt(e,10)});function yC(e,t){var r,i,s,o=this._eras||Nr("en")._eras;for(r=0,i=o.length;r<i;++r){switch(typeof o[r].since){case"string":s=ee(o[r].since).startOf("day"),o[r].since=s.valueOf();break}switch(typeof o[r].until){case"undefined":o[r].until=1/0;break;case"string":s=ee(o[r].until).startOf("day").valueOf(),o[r].until=s.valueOf();break}}return o}function vC(e,t,r){var i,s,o=this.eras(),l,h,d;for(e=e.toUpperCase(),i=0,s=o.length;i<s;++i)if(l=o[i].name.toUpperCase(),h=o[i].abbr.toUpperCase(),d=o[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(h===e)return o[i];break;case"NNNN":if(l===e)return o[i];break;case"NNNNN":if(d===e)return o[i];break}else if([l,h,d].indexOf(e)>=0)return o[i]}function wC(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ee(e.since).year():ee(e.since).year()+(t-e.offset)*r}function _C(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].name;return""}function bC(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].narrow;return""}function CC(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].abbr;return""}function SC(){var e,t,r,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return(this.year()-ee(s[e].since).year())*r+s[e].offset;return this.year()}function RC(e){return Pe(this,"_erasNameRegex")||Ka.call(this),e?this._erasNameRegex:this._erasRegex}function EC(e){return Pe(this,"_erasAbbrRegex")||Ka.call(this),e?this._erasAbbrRegex:this._erasRegex}function kC(e){return Pe(this,"_erasNarrowRegex")||Ka.call(this),e?this._erasNarrowRegex:this._erasRegex}function Xa(e,t){return t.erasAbbrRegex(e)}function xC(e,t){return t.erasNameRegex(e)}function TC(e,t){return t.erasNarrowRegex(e)}function DC(e,t){return t._eraYearOrdinalRegex||Ui}function Ka(){var e=[],t=[],r=[],i=[],s,o,l,h,d,f=this.eras();for(s=0,o=f.length;s<o;++s)l=Mr(f[s].name),h=Mr(f[s].abbr),d=Mr(f[s].narrow),t.push(l),e.push(h),r.push(d),i.push(l),i.push(h),i.push(d);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}pe(0,["gg",2],0,function(){return this.weekYear()%100});pe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Qn(e,t){pe(0,[e,e.length],0,t)}Qn("gggg","weekYear");Qn("ggggg","weekYear");Qn("GGGG","isoWeekYear");Qn("GGGGG","isoWeekYear");ne("G",qn);ne("g",qn);ne("GG",Je,Ht);ne("gg",Je,Ht);ne("GGGG",Ia,Fa);ne("gggg",Ia,Fa);ne("GGGGG",Gn,jn);ne("ggggg",Gn,jn);Ns(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=Re(e)});Ns(["gg","GG"],function(e,t,r,i){t[i]=ee.parseTwoDigitYear(e)});function MC(e){return Tu.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function PC(e){return Tu.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function OC(){return Pr(this.year(),1,4)}function AC(){return Pr(this.isoWeekYear(),1,4)}function NC(){var e=this.localeData()._week;return Pr(this.year(),e.dow,e.doy)}function LC(){var e=this.localeData()._week;return Pr(this.weekYear(),e.dow,e.doy)}function Tu(e,t,r,i,s){var o;return e==null?Rs(this,i,s).year:(o=Pr(e,i,s),t>o&&(t=o),FC.call(this,e,t,r,i,s))}function FC(e,t,r,i,s){var o=au(e,t,r,i,s),l=Ss(o.year,0,o.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}pe("Q",0,"Qo","quarter");ne("Q",Kc);je("Q",function(e,t){t[Tr]=(Re(e)-1)*3});function IC(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}pe("D",["DD",2],"Do","date");ne("D",Je,Gi);ne("DD",Je,Ht);ne("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});je(["D","DD"],ur);je("Do",function(e,t){t[ur]=Re(e.match(Je)[0])});var Du=qi("Date",!0);pe("DDD",["DDDD",3],"DDDo","dayOfYear");ne("DDD",Un);ne("DDDD",Zc);je(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Re(e)});function WC(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}pe("m",["mm",2],0,"minute");ne("m",Je,Wa);ne("mm",Je,Ht);je(["m","mm"],Jt);var HC=qi("Minutes",!1);pe("s",["ss",2],0,"second");ne("s",Je,Wa);ne("ss",Je,Ht);je(["s","ss"],Dr);var YC=qi("Seconds",!1);pe("S",0,0,function(){return~~(this.millisecond()/100)});pe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});pe(0,["SSS",3],0,"millisecond");pe(0,["SSSS",4],0,function(){return this.millisecond()*10});pe(0,["SSSSS",5],0,function(){return this.millisecond()*100});pe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});pe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});pe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});pe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ne("S",Un,Kc);ne("SS",Un,Ht);ne("SSS",Un,Zc);var Ur,Mu;for(Ur="SSSS";Ur.length<=9;Ur+="S")ne(Ur,Ui);function zC(e,t){t[li]=Re(("0."+e)*1e3)}for(Ur="S";Ur.length<=9;Ur+="S")je(Ur,zC);Mu=qi("Milliseconds",!1);pe("z",0,0,"zoneAbbr");pe("zz",0,0,"zoneName");function $C(){return this._isUTC?"UTC":""}function BC(){return this._isUTC?"Coordinated Universal Time":""}var K=Os.prototype;K.add=Lb;K.calendar=$b;K.clone=Bb;K.diff=Kb;K.endOf=oC;K.format=eC;K.from=tC;K.fromNow=rC;K.to=iC;K.toNow=sC;K.get=Q_;K.invalidAt=mC;K.isAfter=Vb;K.isBefore=jb;K.isBetween=Ub;K.isSame=Gb;K.isSameOrAfter=qb;K.isSameOrBefore=Xb;K.isValid=fC;K.lang=Su;K.locale=Cu;K.localeData=Ru;K.max=fb;K.min=db;K.parsingFlags=pC;K.set=e0;K.startOf=nC;K.subtract=Fb;K.toArray=cC;K.toObject=uC;K.toDate=hC;K.toISOString=Jb;K.inspect=Qb;typeof Symbol<"u"&&Symbol.for!=null&&(K[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});K.toJSON=dC;K.toString=Zb;K.unix=lC;K.valueOf=aC;K.creationData=gC;K.eraName=_C;K.eraNarrow=bC;K.eraAbbr=CC;K.eraYear=SC;K.year=eu;K.isLeapYear=J_;K.weekYear=MC;K.isoWeekYear=PC;K.quarter=K.quarters=IC;K.month=nu;K.daysInMonth=h0;K.week=K.weeks=y0;K.isoWeek=K.isoWeeks=v0;K.weeksInYear=NC;K.weeksInWeekYear=LC;K.isoWeeksInYear=OC;K.isoWeeksInISOWeekYear=AC;K.date=Du;K.day=K.days=P0;K.weekday=O0;K.isoWeekday=A0;K.dayOfYear=WC;K.hour=K.hours=Y0;K.minute=K.minutes=HC;K.second=K.seconds=YC;K.millisecond=K.milliseconds=Mu;K.utcOffset=Cb;K.utc=Rb;K.local=Eb;K.parseZone=kb;K.hasAlignedHourOffset=xb;K.isDST=Tb;K.isLocal=Mb;K.isUtcOffset=Pb;K.isUtc=vu;K.isUTC=vu;K.zoneAbbr=$C;K.zoneName=BC;K.dates=Xt("dates accessor is deprecated. Use date instead.",Du);K.months=Xt("months accessor is deprecated. Use month instead",nu);K.years=Xt("years accessor is deprecated. Use year instead",eu);K.zone=Xt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Sb);K.isDSTShifted=Xt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Db);function VC(e){return Ze(e*1e3)}function jC(){return Ze.apply(null,arguments).parseZone()}function Pu(e){return e}var Oe=Aa.prototype;Oe.calendar=M_;Oe.longDateFormat=N_;Oe.invalidDate=F_;Oe.ordinal=H_;Oe.preparse=Pu;Oe.postformat=Pu;Oe.relativeTime=z_;Oe.pastFuture=$_;Oe.set=T_;Oe.eras=yC;Oe.erasParse=vC;Oe.erasConvertYear=wC;Oe.erasAbbrRegex=EC;Oe.erasNameRegex=RC;Oe.erasNarrowRegex=kC;Oe.months=n0;Oe.monthsShort=o0;Oe.monthsParse=l0;Oe.monthsRegex=u0;Oe.monthsShortRegex=c0;Oe.week=f0;Oe.firstDayOfYear=g0;Oe.firstDayOfWeek=m0;Oe.weekdays=k0;Oe.weekdaysMin=T0;Oe.weekdaysShort=x0;Oe.weekdaysParse=M0;Oe.weekdaysRegex=N0;Oe.weekdaysShortRegex=L0;Oe.weekdaysMinRegex=F0;Oe.isPM=W0;Oe.meridiem=z0;function xn(e,t,r,i){var s=Nr(),o=pr().set(i,t);return s[r](o,e)}function Ou(e,t,r){if(Ar(e)&&(t=e,e=void 0),e=e||"",t!=null)return xn(e,t,r,"month");var i,s=[];for(i=0;i<12;i++)s[i]=xn(e,i,r,"month");return s}function Za(e,t,r,i){typeof e=="boolean"?(Ar(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Ar(t)&&(r=t,t=void 0),t=t||"");var s=Nr(),o=e?s._week.dow:0,l,h=[];if(r!=null)return xn(t,(r+o)%7,i,"day");for(l=0;l<7;l++)h[l]=xn(t,(l+o)%7,i,"day");return h}function UC(e,t){return Ou(e,t,"months")}function GC(e,t){return Ou(e,t,"monthsShort")}function qC(e,t,r){return Za(e,t,r,"weekdays")}function XC(e,t,r){return Za(e,t,r,"weekdaysShort")}function KC(e,t,r){return Za(e,t,r,"weekdaysMin")}Gr("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,r=Re(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});ee.lang=Xt("moment.lang is deprecated. Use moment.locale instead.",Gr);ee.langData=Xt("moment.langData is deprecated. Use moment.localeData instead.",Nr);var kr=Math.abs;function ZC(){var e=this._data;return this._milliseconds=kr(this._milliseconds),this._days=kr(this._days),this._months=kr(this._months),e.milliseconds=kr(e.milliseconds),e.seconds=kr(e.seconds),e.minutes=kr(e.minutes),e.hours=kr(e.hours),e.months=kr(e.months),e.years=kr(e.years),this}function Au(e,t,r,i){var s=rr(t,r);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function JC(e,t){return Au(this,e,t,1)}function QC(e,t){return Au(this,e,t,-1)}function jh(e){return e<0?Math.floor(e):Math.ceil(e)}function eS(){var e=this._milliseconds,t=this._days,r=this._months,i=this._data,s,o,l,h,d;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=jh(ca(r)+t)*864e5,t=0,r=0),i.milliseconds=e%1e3,s=Gt(e/1e3),i.seconds=s%60,o=Gt(s/60),i.minutes=o%60,l=Gt(o/60),i.hours=l%24,t+=Gt(l/24),d=Gt(Nu(t)),r+=d,t-=jh(ca(d)),h=Gt(r/12),r%=12,i.days=t,i.months=r,i.years=h,this}function Nu(e){return e*4800/146097}function ca(e){return e*146097/4800}function tS(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(e=Kt(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,r=this._months+Nu(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ca(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Lr(e){return function(){return this.as(e)}}var Lu=Lr("ms"),rS=Lr("s"),iS=Lr("m"),sS=Lr("h"),nS=Lr("d"),oS=Lr("w"),aS=Lr("M"),lS=Lr("Q"),hS=Lr("y"),cS=Lu;function uS(){return rr(this)}function dS(e){return e=Kt(e),this.isValid()?this[e+"s"]():NaN}function fi(e){return function(){return this.isValid()?this._data[e]:NaN}}var fS=fi("milliseconds"),pS=fi("seconds"),mS=fi("minutes"),gS=fi("hours"),yS=fi("days"),vS=fi("months"),wS=fi("years");function _S(){return Gt(this.days()/7)}var xr=Math.round,Ni={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bS(e,t,r,i,s){return s.relativeTime(t||1,!!r,e,i)}function CS(e,t,r,i){var s=rr(e).abs(),o=xr(s.as("s")),l=xr(s.as("m")),h=xr(s.as("h")),d=xr(s.as("d")),f=xr(s.as("M")),p=xr(s.as("w")),m=xr(s.as("y")),C=o<=r.ss&&["s",o]||o<r.s&&["ss",o]||l<=1&&["m"]||l<r.m&&["mm",l]||h<=1&&["h"]||h<r.h&&["hh",h]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(C=C||p<=1&&["w"]||p<r.w&&["ww",p]),C=C||f<=1&&["M"]||f<r.M&&["MM",f]||m<=1&&["y"]||["yy",m],C[2]=t,C[3]=+e>0,C[4]=i,bS.apply(null,C)}function SS(e){return e===void 0?xr:typeof e=="function"?(xr=e,!0):!1}function RS(e,t){return Ni[e]===void 0?!1:t===void 0?Ni[e]:(Ni[e]=t,e==="s"&&(Ni.ss=t-1),!0)}function ES(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,i=Ni,s,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(i=Object.assign({},Ni,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),s=this.localeData(),o=CS(this,!r,i,s),r&&(o=s.pastFuture(+this,o)),s.postformat(o)}var Ho=Math.abs;function Oi(e){return(e>0)-(e<0)||+e}function eo(){if(!this.isValid())return this.localeData().invalidDate();var e=Ho(this._milliseconds)/1e3,t=Ho(this._days),r=Ho(this._months),i,s,o,l,h=this.asSeconds(),d,f,p,m;return h?(i=Gt(e/60),s=Gt(i/60),e%=60,i%=60,o=Gt(r/12),r%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=h<0?"-":"",f=Oi(this._months)!==Oi(h)?"-":"",p=Oi(this._days)!==Oi(h)?"-":"",m=Oi(this._milliseconds)!==Oi(h)?"-":"",d+"P"+(o?f+o+"Y":"")+(r?f+r+"M":"")+(t?p+t+"D":"")+(s||i||e?"T":"")+(s?m+s+"H":"")+(i?m+i+"M":"")+(e?m+l+"S":"")):"P0D"}var Te=Jn.prototype;Te.isValid=vb;Te.abs=ZC;Te.add=JC;Te.subtract=QC;Te.as=tS;Te.asMilliseconds=Lu;Te.asSeconds=rS;Te.asMinutes=iS;Te.asHours=sS;Te.asDays=nS;Te.asWeeks=oS;Te.asMonths=aS;Te.asQuarters=lS;Te.asYears=hS;Te.valueOf=cS;Te._bubble=eS;Te.clone=uS;Te.get=dS;Te.milliseconds=fS;Te.seconds=pS;Te.minutes=mS;Te.hours=gS;Te.days=yS;Te.weeks=_S;Te.months=vS;Te.years=wS;Te.humanize=ES;Te.toISOString=eo;Te.toString=eo;Te.toJSON=eo;Te.locale=Cu;Te.localeData=Ru;Te.toIsoString=Xt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",eo);Te.lang=Su;pe("X",0,0,"unix");pe("x",0,0,"valueOf");ne("x",qn);ne("X",U_);je("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});je("x",function(e,t,r){r._d=new Date(Re(e))});//! moment.js
|
|
223
|
-
ee.version="2.30.1";k_(Ze);ee.fn=K;ee.min=pb;ee.max=mb;ee.now=gb;ee.utc=pr;ee.unix=VC;ee.months=UC;ee.isDate=Ps;ee.locale=Gr;ee.invalid=Vn;ee.duration=rr;ee.isMoment=tr;ee.weekdays=qC;ee.parseZone=jC;ee.localeData=Nr;ee.isDuration=dn;ee.monthsShort=GC;ee.weekdaysMin=KC;ee.defineLocale=Ba;ee.updateLocale=j0;ee.locales=U0;ee.weekdaysShort=XC;ee.normalizeUnits=Kt;ee.relativeTimeRounding=SS;ee.relativeTimeThreshold=RS;ee.calendarFormat=zb;ee.prototype=K;ee.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 kS=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));var pn={exports:{}};const xS=mm(kS);/*!
|
|
224
|
-
* Pikaday
|
|
225
|
-
*
|
|
226
|
-
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
227
|
-
*/var TS=pn.exports,Uh;function DS(){return Uh||(Uh=1,function(e,t){(function(r,i){var s;{try{s=xS}catch{}e.exports=i(s)}})(TS,function(r){var i=typeof r=="function",s=!!window.addEventListener,o=window.document,l=window.setTimeout,h=function(T,S,P,A){s?T.addEventListener(S,P,!!A):T.attachEvent("on"+S,P)},d=function(T,S,P,A){s?T.removeEventListener(S,P,!!A):T.detachEvent("on"+S,P)},f=function(T){return T.trim?T.trim():T.replace(/^\s+|\s+$/g,"")},p=function(T,S){return(" "+T.className+" ").indexOf(" "+S+" ")!==-1},m=function(T,S){p(T,S)||(T.className=T.className===""?S:T.className+" "+S)},C=function(T,S){T.className=f((" "+T.className+" ").replace(" "+S+" "," "))},x=function(T){return/Array/.test(Object.prototype.toString.call(T))},R=function(T){return/Date/.test(Object.prototype.toString.call(T))&&!isNaN(T.getTime())},y=function(T){var S=T.getDay();return S===0||S===6},O=function(T){return T%4===0&&T%100!==0||T%400===0},F=function(T,S){return[31,O(T)?29:28,31,30,31,30,31,31,30,31,30,31][S]},B=function(T){R(T)&&T.setHours(0,0,0,0)},N=function(T,S){return T.getTime()===S.getTime()},k=function(T,S,P){var A,$;for(A in S)$=T[A]!==void 0,$&&typeof S[A]=="object"&&S[A]!==null&&S[A].nodeName===void 0?R(S[A])?P&&(T[A]=new Date(S[A].getTime())):x(S[A])?P&&(T[A]=S[A].slice(0)):T[A]=k({},S[A],P):(P||!$)&&(T[A]=S[A]);return T},v=function(T,S,P){var A;o.createEvent?(A=o.createEvent("HTMLEvents"),A.initEvent(S,!0,!1),A=k(A,P),T.dispatchEvent(A)):o.createEventObject&&(A=o.createEventObject(),A=k(A,P),T.fireEvent("on"+S,A))},L=function(T){return T.month<0&&(T.year-=Math.ceil(Math.abs(T.month)/12),T.month+=12),T.month>11&&(T.year+=Math.floor(Math.abs(T.month)/12),T.month-=12),T},z={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},q=function(T,S,P){for(S+=T.firstDay;S>=7;)S-=7;return P?T.i18n.weekdaysShort[S]:T.i18n.weekdays[S]},te=function(T){var S=[],P="false";if(T.isEmpty)if(T.showDaysInNextAndPreviousMonths)S.push("is-outside-current-month"),T.enableSelectionDaysInNextAndPreviousMonths||S.push("is-selection-disabled");else return'<td class="is-empty"></td>';return T.isDisabled&&S.push("is-disabled"),T.isToday&&S.push("is-today"),T.isSelected&&(S.push("is-selected"),P="true"),T.hasEvent&&S.push("has-event"),T.isInRange&&S.push("is-inrange"),T.isStartRange&&S.push("is-startrange"),T.isEndRange&&S.push("is-endrange"),'<td data-day="'+T.day+'" class="'+S.join(" ")+'" aria-selected="'+P+'"><button class="pika-button pika-day" type="button" data-pika-year="'+T.year+'" data-pika-month="'+T.month+'" data-pika-day="'+T.day+'">'+T.day+"</button></td>"},w=function(T,S){T.setHours(0,0,0,0);var P=T.getDate(),A=T.getDay(),$=S,j=$-1,V=7,Y=function(ie){return(ie+V-1)%V};T.setDate(P+j-Y(A));var Q=new Date(T.getFullYear(),0,$),J=24*60*60*1e3,he=(T.getTime()-Q.getTime())/J,ue=1+Math.round((he-j+Y(Q.getDay()))/V);return ue},G=function(T,S,P,A){var $=new Date(P,S,T),j=i?r($).isoWeek():w($,A);return'<td class="pika-week">'+j+"</td>"},ce=function(T,S,P,A){return'<tr class="pika-row'+(P?" pick-whole-week":"")+(A?" is-selected":"")+'">'+(S?T.reverse():T).join("")+"</tr>"},oe=function(T){return"<tbody>"+T.join("")+"</tbody>"},ve=function(T){var S,P=[];for(T.showWeekNumber&&P.push("<th></th>"),S=0;S<7;S++)P.push('<th scope="col"><abbr title="'+q(T,S)+'">'+q(T,S,!0)+"</abbr></th>");return"<thead><tr>"+(T.isRTL?P.reverse():P).join("")+"</tr></thead>"},Fe=function(T,S,P,A,$,j){var V,Y,Q,J=T._o,he=P===J.minYear,ue=P===J.maxYear,ie='<div id="'+j+'" class="pika-title" role="heading" aria-live="assertive">',ze,I,Ue=!0,ot=!0;for(Q=[],V=0;V<12;V++)Q.push('<option value="'+(P===$?V-S:12+V-S)+'"'+(V===A?' selected="selected"':"")+(he&&V<J.minMonth||ue&&V>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[V]+"</option>");for(ze='<div class="pika-label">'+J.i18n.months[A]+'<select class="pika-select pika-select-month" tabindex="-1">'+Q.join("")+"</select></div>",x(J.yearRange)?(V=J.yearRange[0],Y=J.yearRange[1]+1):(V=P-J.yearRange,Y=1+P+J.yearRange),Q=[];V<Y&&V<=J.maxYear;V++)V>=J.minYear&&Q.push('<option value="'+V+'"'+(V===P?' selected="selected"':"")+">"+V+"</option>");return I='<div class="pika-label">'+P+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+Q.join("")+"</select></div>",J.showMonthAfterYear?ie+=I+ze:ie+=ze+I,he&&(A===0||J.minMonth>=A)&&(Ue=!1),ue&&(A===11||J.maxMonth<=A)&&(ot=!1),S===0&&(ie+='<button class="pika-prev'+(Ue?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),S===T._o.numberOfMonths-1&&(ie+='<button class="pika-next'+(ot?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),ie+="</div>"},me=function(T,S,P){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+P+'">'+ve(T)+oe(S)+"</table>"},De=function(T){var S=this,P=S.config(T);S._onMouseDown=function($){if(S._v){$=$||window.event;var j=$.target||$.srcElement;if(j)if(p(j,"is-disabled")||(p(j,"pika-button")&&!p(j,"is-empty")&&!p(j.parentNode,"is-disabled")?(S.setDate(new Date(j.getAttribute("data-pika-year"),j.getAttribute("data-pika-month"),j.getAttribute("data-pika-day"))),P.bound&&l(function(){S.hide(),P.blurFieldOnSelect&&P.field&&P.field.blur()},100)):p(j,"pika-prev")?S.prevMonth():p(j,"pika-next")&&S.nextMonth()),p(j,"pika-select"))S._c=!0;else if($.preventDefault)$.preventDefault();else return $.returnValue=!1,!1}},S._onChange=function($){$=$||window.event;var j=$.target||$.srcElement;j&&(p(j,"pika-select-month")?S.gotoMonth(j.value):p(j,"pika-select-year")&&S.gotoYear(j.value))},S._onKeyChange=function($){if($=$||window.event,S.isVisible())switch($.keyCode){case 13:case 27:P.field&&P.field.blur();break;case 37:S.adjustDate("subtract",1);break;case 38:S.adjustDate("subtract",7);break;case 39:S.adjustDate("add",1);break;case 40:S.adjustDate("add",7);break;case 8:case 46:S.setDate(null);break}},S._parseFieldValue=function(){if(P.parse)return P.parse(P.field.value,P.format);if(i){var $=r(P.field.value,P.format,P.formatStrict);return $&&$.isValid()?$.toDate():null}else return new Date(Date.parse(P.field.value))},S._onInputChange=function($){var j;$.firedBy!==S&&(j=S._parseFieldValue(),R(j)&&S.setDate(j),S._v||S.show())},S._onInputFocus=function(){S.show()},S._onInputClick=function(){S.show()},S._onInputBlur=function(){var $=o.activeElement;do if(p($,"pika-single"))return;while($=$.parentNode);S._c||(S._b=l(function(){S.hide()},50)),S._c=!1},S._onClick=function($){$=$||window.event;var j=$.target||$.srcElement,V=j;if(j){!s&&p(j,"pika-select")&&(j.onchange||(j.setAttribute("onchange","return;"),h(j,"change",S._onChange)));do if(p(V,"pika-single")||V===P.trigger)return;while(V=V.parentNode);S._v&&j!==P.trigger&&V!==P.trigger&&S.hide()}},S.el=o.createElement("div"),S.el.className="pika-single"+(P.isRTL?" is-rtl":"")+(P.theme?" "+P.theme:""),h(S.el,"mousedown",S._onMouseDown,!0),h(S.el,"touchend",S._onMouseDown,!0),h(S.el,"change",S._onChange),P.keyboardInput&&h(o,"keydown",S._onKeyChange),P.field&&(P.container?P.container.appendChild(S.el):P.bound?o.body.appendChild(S.el):P.field.parentNode.insertBefore(S.el,P.field.nextSibling),h(P.field,"change",S._onInputChange),P.defaultDate||(P.defaultDate=S._parseFieldValue(),P.setDefaultDate=!0));var A=P.defaultDate;R(A)?P.setDefaultDate?S.setDate(A,!0):S.gotoDate(A):S.gotoDate(new Date),P.bound?(this.hide(),S.el.className+=" is-bound",h(P.trigger,"click",S._onInputClick),h(P.trigger,"focus",S._onInputFocus),h(P.trigger,"blur",S._onInputBlur)):this.show()};return De.prototype={config:function(T){this._o||(this._o=k({},z,!0));var S=k(this._o,T,!0);S.isRTL=!!S.isRTL,S.field=S.field&&S.field.nodeName?S.field:null,S.theme=typeof S.theme=="string"&&S.theme?S.theme:null,S.bound=!!(S.bound!==void 0?S.field&&S.bound:S.field),S.trigger=S.trigger&&S.trigger.nodeName?S.trigger:S.field,S.disableWeekends=!!S.disableWeekends,S.disableDayFn=typeof S.disableDayFn=="function"?S.disableDayFn:null;var P=parseInt(S.numberOfMonths,10)||1;if(S.numberOfMonths=P>4?4:P,R(S.minDate)||(S.minDate=!1),R(S.maxDate)||(S.maxDate=!1),S.minDate&&S.maxDate&&S.maxDate<S.minDate&&(S.maxDate=S.minDate=!1),S.minDate&&this.setMinDate(S.minDate),S.maxDate&&this.setMaxDate(S.maxDate),x(S.yearRange)){var A=new Date().getFullYear()-10;S.yearRange[0]=parseInt(S.yearRange[0],10)||A,S.yearRange[1]=parseInt(S.yearRange[1],10)||A}else S.yearRange=Math.abs(parseInt(S.yearRange,10))||z.yearRange,S.yearRange>100&&(S.yearRange=100);return S},toString:function(T){return T=T||this._o.format,R(this._d)?this._o.toString?this._o.toString(this._d,T):i?r(this._d).format(T):this._d.toDateString():""},getMoment:function(){return i?r(this._d):null},setMoment:function(T,S){i&&r.isMoment(T)&&this.setDate(T.toDate(),S)},getDate:function(){return R(this._d)?new Date(this._d.getTime()):null},setDate:function(T,S){if(!T)return this._d=null,this._o.field&&(this._o.field.value="",v(this._o.field,"change",{firedBy:this})),this.draw();if(typeof T=="string"&&(T=new Date(Date.parse(T))),!!R(T)){var P=this._o.minDate,A=this._o.maxDate;R(P)&&T<P?T=P:R(A)&&T>A&&(T=A),this._d=new Date(T.getTime()),B(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),v(this._o.field,"change",{firedBy:this})),!S&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(T){var S=!0;if(R(T)){if(this.calendars){var P=new Date(this.calendars[0].year,this.calendars[0].month,1),A=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),$=T.getTime();A.setMonth(A.getMonth()+1),A.setDate(A.getDate()-1),S=$<P.getTime()||A.getTime()<$}S&&(this.calendars=[{month:T.getMonth(),year:T.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(T,S){var P=this.getDate()||new Date,A=parseInt(S)*24*60*60*1e3,$;T==="add"?$=new Date(P.valueOf()+A):T==="subtract"&&($=new Date(P.valueOf()-A)),this.setDate($)},adjustCalendars:function(){this.calendars[0]=L(this.calendars[0]);for(var T=1;T<this._o.numberOfMonths;T++)this.calendars[T]=L({month:this.calendars[0].month+T,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(T){isNaN(T)||(this.calendars[0].month=parseInt(T,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(T){isNaN(T)||(this.calendars[0].year=parseInt(T,10),this.adjustCalendars())},setMinDate:function(T){T instanceof Date?(B(T),this._o.minDate=T,this._o.minYear=T.getFullYear(),this._o.minMonth=T.getMonth()):(this._o.minDate=z.minDate,this._o.minYear=z.minYear,this._o.minMonth=z.minMonth,this._o.startRange=z.startRange),this.draw()},setMaxDate:function(T){T instanceof Date?(B(T),this._o.maxDate=T,this._o.maxYear=T.getFullYear(),this._o.maxMonth=T.getMonth()):(this._o.maxDate=z.maxDate,this._o.maxYear=z.maxYear,this._o.maxMonth=z.maxMonth,this._o.endRange=z.endRange),this.draw()},setStartRange:function(T){this._o.startRange=T},setEndRange:function(T){this._o.endRange=T},draw:function(T){if(!(!this._v&&!T)){var S=this._o,P=S.minYear,A=S.maxYear,$=S.minMonth,j=S.maxMonth,V="",Y;this._y<=P&&(this._y=P,!isNaN($)&&this._m<$&&(this._m=$)),this._y>=A&&(this._y=A,!isNaN(j)&&this._m>j&&(this._m=j));for(var Q=0;Q<S.numberOfMonths;Q++)Y="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),V+='<div class="pika-lendar">'+Fe(this,Q,this.calendars[Q].year,this.calendars[Q].month,this.calendars[0].year,Y)+this.render(this.calendars[Q].year,this.calendars[Q].month,Y)+"</div>";this.el.innerHTML=V,S.bound&&S.field.type!=="hidden"&&l(function(){S.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),S.bound&&S.field.setAttribute("aria-label",S.ariaLabel)}},adjustPosition:function(){var T,S,P,A,$,j,V,Y,Q,J,he,ue;if(!this._o.container){if(this.el.style.position="absolute",T=this._o.trigger,S=T,P=this.el.offsetWidth,A=this.el.offsetHeight,$=window.innerWidth||o.documentElement.clientWidth,j=window.innerHeight||o.documentElement.clientHeight,V=window.pageYOffset||o.body.scrollTop||o.documentElement.scrollTop,he=!0,ue=!0,typeof T.getBoundingClientRect=="function")J=T.getBoundingClientRect(),Y=J.left+window.pageXOffset,Q=J.bottom+window.pageYOffset;else for(Y=S.offsetLeft,Q=S.offsetTop+S.offsetHeight;S=S.offsetParent;)Y+=S.offsetLeft,Q+=S.offsetTop;(this._o.reposition&&Y+P>$||this._o.position.indexOf("right")>-1&&Y-P+T.offsetWidth>0)&&(Y=Y-P+T.offsetWidth,he=!1),(this._o.reposition&&Q+A>j+V||this._o.position.indexOf("top")>-1&&Q-A-T.offsetHeight>0)&&(Q=Q-A-T.offsetHeight,ue=!1),this.el.style.left=Y+"px",this.el.style.top=Q+"px",m(this.el,he?"left-aligned":"right-aligned"),m(this.el,ue?"bottom-aligned":"top-aligned"),C(this.el,he?"right-aligned":"left-aligned"),C(this.el,ue?"top-aligned":"bottom-aligned")}},render:function(T,S,P){var A=this._o,$=new Date,j=F(T,S),V=new Date(T,S,1).getDay(),Y=[],Q=[];B($),A.firstDay>0&&(V-=A.firstDay,V<0&&(V+=7));for(var J=S===0?11:S-1,he=S===11?0:S+1,ue=S===0?T-1:T,ie=S===11?T+1:T,ze=F(ue,J),I=j+V,Ue=I;Ue>7;)Ue-=7;I+=7-Ue;for(var ot=!1,Xe=0,Yt=0;Xe<I;Xe++){var wt=new Date(T,S,1+(Xe-V)),zt=R(this._d)?N(wt,this._d):!1,Pt=N(wt,$),Fr=A.events.indexOf(wt.toDateString())!==-1,pt=Xe<V||Xe>=j+V,Tt=1+(Xe-V),ge=S,ir=T,gr=A.startRange&&N(A.startRange,wt),ct=A.endRange&&N(A.endRange,wt),Ir=A.startRange&&A.endRange&&A.startRange<wt&&wt<A.endRange,Qr=A.minDate&&wt<A.minDate||A.maxDate&&wt>A.maxDate||A.disableWeekends&&y(wt)||A.disableDayFn&&A.disableDayFn(wt);pt&&(Xe<V?(Tt=ze+Tt,ge=J,ir=ue):(Tt=Tt-j,ge=he,ir=ie));var yr={day:Tt,month:ge,year:ir,hasEvent:Fr,isSelected:zt,isToday:Pt,isDisabled:Qr,isEmpty:pt,isStartRange:gr,isEndRange:ct,isInRange:Ir,showDaysInNextAndPreviousMonths:A.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:A.enableSelectionDaysInNextAndPreviousMonths};A.pickWholeWeek&&zt&&(ot=!0),Q.push(te(yr)),++Yt===7&&(A.showWeekNumber&&Q.unshift(G(Xe-V,S,T,A.firstWeekOfYearMinDays)),Y.push(ce(Q,A.isRTL,A.pickWholeWeek,ot)),Q=[],Yt=0,ot=!1)}return me(A,Y,P)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),C(this.el,"is-hidden"),this._o.bound&&(h(o,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var T=this._v;T!==!1&&(this._o.bound&&d(o,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),m(this.el,"is-hidden"),this._v=!1,T!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var T=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),T.keyboardInput&&d(o,"keydown",this._onKeyChange),T.field&&(d(T.field,"change",this._onInputChange),T.bound&&(d(T.trigger,"click",this._onInputClick),d(T.trigger,"focus",this._onInputFocus),d(T.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},De})}(pn)),pn.exports}DS();ee.ISO_8601,ea.ui,ea.db;function Li(e){return new Date(e).getTime()}function MS(e){if(!e.getSelectionModel())return Gh(e);let t=e.getSelectedRows();return t.sort((r,i)=>r-i),t.length===0&&(t=Gh(e)),t}function Gh(e){const t=e.getData();return Array.from({length:t.getLength()},(r,i)=>i)}class PS{constructor(){this.emptyValue="1/1/1970"}dates(t,r){const i=Li(t||this.emptyValue),s=Li(r||this.emptyValue);return i-s}numbers(t,r){return Number(t||0)-Number(r||0)}strings(t,r){return(t||"").toLowerCase()>(r||"").toLowerCase()?1:(t||"").toLowerCase()<(r||"").toLowerCase()?-1:0}}const OS=new PS;class AS{constructor(){this.resetSorting=!1,this.sort=OS,this.sortedColumnId="",this.withFormatter=[Vr.TEXT,Vr.NUMBER_FORMATTED]}onSort(){return(t,r)=>{const{grid:i,sortCol:s,sortAsc:o}=r;if(!i)return;const{formatter:l}=s;this.reset(r);const h=i.getData(),d=s?.sortAs;h.getItems().sort((p,m)=>{if(this.resetSorting)return p.id-m.id;const C=s?.field;if(!C)return 0;const x=o?1:-1;let R=p[C],y=m[C];switch(l&&this.withFormatter.includes(d)&&(R=l(0,0,R,s,p,i),y=l(0,0,y,s,m,i)),d){case Vr.DATE:return this.priority(p,m)||this.sort.dates(R,y)*x;case Vr.NUMBER:case Vr.NUMBER_FORMATTED:return this.priority(p,m)||this.sort.numbers(R,y)*x;case Vr.TEXT:return this.priority(p,m)||this.sort.strings(R,y)*x}}),h.refresh()}}priority(t,r){return 0}reset(t){const{grid:r,sortCol:i,sortAsc:s}=t;if(r)if(s&&this.sortedColumnId===i?.id)this.resetSorting=!0,r.setSortColumns([]),this.sortedColumnId="";else{this.resetSorting=!1;const o=r.getSortColumns();this.sortedColumnId=o[0]?.columnId}}}new AS;const Yo=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function Fu(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const NS=["FormatterStatus","FormatterNumber"];class LS{constructor(){this.table=null}download(t,r,i){if(this.table||(this.table=t),this.table=t,!t.grid)return;const o=this.createCSV(t),l=document.createElement("a");l.href="data:text/csv;charset=utf-8,"+encodeURIComponent(o),l.target="_blank",l.download=`${r}-${i}-${t.id}.csv`,l.click()}createCSV(t){this.table||(this.table=t);const r=t.grid;if(!r)return"";const i=this.getTitle(),s=this.getCSVHeader(r),o=this.getCSVBody(r);return`${i}${s}${o}`}getTitle(){return""}getCSVHeader(t){const s=t.getColumns().filter(o=>o.forPrint).reduce((o,l)=>{if(typeof l.name=="string"){const h=Yo(l.name);return o.concat(`"${h}",`)}else return o.concat('" ",')},"");return this.addRowSeparator(s)}getCSVBody(t){const r=t.getData(),s=t.getColumns().filter(o=>o.forPrint);return MS(t).reduce((o,l)=>{const h=r.getItemMetadata(l),d=r.getItem(l),f=d.__group,p=d.__groupTotals;let m="";if(f){const C=Yo(Fu(d.title));m+=`"${C}",`}else for(let C=0;C<s.length;++C){const x=s[C],R=x.field,y=h?.columns?.[R]?.formatter,O=x.printer||y||x.formatter;let F=d[R];if(p){const N=x.groupTotalsFormatter;F=N?N(d,x,t):""}else O&&!NS.includes(O.name)&&(F=O(0,0,F,x,d,t));const B=Yo(F);m+=`"${B}",`}return this.addRowSeparator(`${o}${m}`)},"")}addRowSeparator(t){return`${t}
|
|
228
|
-
`}}class FS{handleKeyboardEvent(){}pushToCommandQueue(){}resetQueue(){}setExternalVariables(t){}getExternalVariables(){return{}}}const zo={};let Iu=class{constructor(){this._args={...zo},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,r){this.tableId=r,this.grid=t;const i=t.getData();i.setFilter(this.getFilterFn()),i.setFilterArgs(this.args),i.refresh()}reset(){if(!this.grid)return;this.args=zo;const t=this.grid.getData();t.setFilterArgs(zo),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 r=this.grid.getData();r.setFilterArgs(t),r.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class IS extends Iu{getFilterFn(){return t=>!t?.isDeleted}}class WS{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){}}class Wu{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(r,i)=>this.filterFn(r,i)&&t(r,i)}register(t,r){this.tableId=r,this.grid=t;const i=t.getData();i.setFilter(this.getFilterFn()),i.setFilterArgs(this.args),i.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 HS(e){return{tooltip:"Apply column filter",command:e}}class YS extends Ta{constructor(){super(...arguments),this.columnId="",this.group=Wi.Text,this.target=null,this.x=0,this.y=0}}new YS;class zS{highlightAllColumns(t,r){const i=document.getElementById(r);if(!i)return;const s=Object.keys(t.columnFilters||{});if(s.length)for(const o of s){const l=i.querySelector(`[data-id="${o}"]`);if(!l)return;t.columnFilters[o].value[1]||t.columnFilters[o].value[2]?l.classList.add("filter-active"):l.classList.remove("filter-active")}else{const o=i.querySelectorAll(".slick-header-column");for(const l of o)l.classList.remove("filter-active")}}highlightColumn(t,r){const i=document.getElementById(t.id);if(!i)return;const s=i.querySelector(`[data-id="${r}"]`);s&&s.classList.add("filter-active")}resetColumn(t,r){const i=document.getElementById(t.id);if(!i)return;const s=i.querySelector(`[data-id="${r}"]`);s&&s.classList.remove("filter-active")}}const Hu=new zS,qh=On`
|
|
254
|
+
*/const Cp=gl`
|
|
229
255
|
50% {
|
|
230
256
|
background-color: #ffb1b1;
|
|
231
257
|
}
|
|
232
|
-
`;
|
|
233
|
-
[`+
|
|
234
|
-
Arguments: `+Array.prototype.slice.call(
|
|
235
|
-
`+new Error().stack),c=!1}return a.apply(this,arguments)},a)}var G={};function ce(n,a){i.deprecationHandler!=null&&i.deprecationHandler(n,a),G[n]||(te(a),G[n]=!0)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null;function oe(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function ve(n){var a,c;for(c in n)h(n,c)&&(a=n[c],oe(a)?this[c]=a:this["_"+c]=a);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Fe(n,a){var c=x({},n),u;for(u in a)h(a,u)&&(l(n[u])&&l(a[u])?(c[u]={},x(c[u],n[u]),x(c[u],a[u])):a[u]!=null?c[u]=a[u]:delete c[u]);for(u in n)h(n,u)&&!h(a,u)&&l(n[u])&&(c[u]=x({},c[u]));return c}function me(n){n!=null&&this.set(n)}var De;Object.keys?De=Object.keys:De=function(n){var a,c=[];for(a in n)h(n,a)&&c.push(a);return c};var T={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function S(n,a,c){var u=this._calendar[n]||this._calendar.sameElse;return oe(u)?u.call(a,c):u}function P(n,a,c){var u=""+Math.abs(n),g=a-u.length,M=n>=0;return(M?c?"+":"":"-")+Math.pow(10,Math.max(0,g)).toString().substr(1)+u}var A=/(\[[^\[]*\])|(\\)?([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,$=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},V={};function Y(n,a,c,u){var g=u;typeof u=="string"&&(g=function(){return this[u]()}),n&&(V[n]=g),a&&(V[a[0]]=function(){return P(g.apply(this,arguments),a[1],a[2])}),c&&(V[c]=function(){return this.localeData().ordinal(g.apply(this,arguments),n)})}function Q(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function J(n){var a=n.match(A),c,u;for(c=0,u=a.length;c<u;c++)V[a[c]]?a[c]=V[a[c]]:a[c]=Q(a[c]);return function(g){var M="",W;for(W=0;W<u;W++)M+=oe(a[W])?a[W].call(g,n):a[W];return M}}function he(n,a){return n.isValid()?(a=ue(a,n.localeData()),j[a]=j[a]||J(a),j[a](n)):n.localeData().invalidDate()}function ue(n,a){var c=5;function u(g){return a.longDateFormat(g)||g}for($.lastIndex=0;c>=0&&$.test(n);)n=n.replace($,u),$.lastIndex=0,c-=1;return n}var ie={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 ze(n){var a=this._longDateFormat[n],c=this._longDateFormat[n.toUpperCase()];return a||!c?a:(this._longDateFormat[n]=c.match(A).map(function(u){return u==="MMMM"||u==="MM"||u==="DD"||u==="dddd"?u.slice(1):u}).join(""),this._longDateFormat[n])}var I="Invalid date";function Ue(){return this._invalidDate}var ot="%d",Xe=/\d{1,2}/;function Yt(n){return this._ordinal.replace("%d",n)}var wt={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 zt(n,a,c,u){var g=this._relativeTime[c];return oe(g)?g(n,a,c,u):g.replace(/%d/i,n)}function Pt(n,a){var c=this._relativeTime[n>0?"future":"past"];return oe(c)?c(a):c.replace(/%s/i,a)}var Fr={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 pt(n){return typeof n=="string"?Fr[n]||Fr[n.toLowerCase()]:void 0}function Tt(n){var a={},c,u;for(u in n)h(n,u)&&(c=pt(u),c&&(a[c]=n[u]));return a}var ge={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 ir(n){var a=[],c;for(c in n)h(n,c)&&a.push({unit:c,priority:ge[c]});return a.sort(function(u,g){return u.priority-g.priority}),a}var gr=/\d/,ct=/\d\d/,Ir=/\d{3}/,Qr=/\d{4}/,yr=/[+-]?\d{6}/,$e=/\d\d?/,Ls=/\d\d\d\d?/,Fs=/\d\d\d\d\d\d?/,pi=/\d{1,3}/,Xi=/\d{1,4}/,mi=/[+-]?\d{1,6}/,Wr=/\d+/,gi=/[+-]?\d+/,Ki=/Z|[+-]\d\d:?\d\d/gi,ei=/Z|[+-]\d\d(?::?\d\d)?/gi,Hr=/[+-]?\d+(\.\d{1,3})?/,vr=/[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,sr=/^[1-9]\d?/,yi=/^([1-9]\d|\d)/,vi;vi={};function re(n,a,c){vi[n]=oe(a)?a:function(u,g){return u&&c?c:a}}function to(n,a){return h(vi,n)?vi[n](a._strict,a._locale):new RegExp(Is(n))}function Is(n){return $t(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,c,u,g,M){return c||u||g||M}))}function $t(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ot(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function be(n){var a=+n,c=0;return a!==0&&isFinite(a)&&(c=Ot(a)),c}var wi={};function Ae(n,a){var c,u=a,g;for(typeof n=="string"&&(n=[n]),p(a)&&(u=function(M,W){W[a]=be(M)}),g=n.length,c=0;c<g;c++)wi[n[c]]=u}function ti(n,a){Ae(n,function(c,u,g,M){g._w=g._w||{},a(c,g._w,g,M)})}function ro(n,a,c){a!=null&&h(wi,n)&&wi[n](a,c._a,c,n)}function _i(n){return n%4===0&&n%100!==0||n%400===0}var _t=0,E=1,U=2,Z=3,de=4,_e=5,Ee=6,Se=7,Ce=8;Y("Y",0,0,function(){var n=this.year();return n<=9999?P(n,4):"+"+n}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),re("Y",gi),re("YY",$e,ct),re("YYYY",Xi,Qr),re("YYYYY",mi,yr),re("YYYYYY",mi,yr),Ae(["YYYYY","YYYYYY"],_t),Ae("YYYY",function(n,a){a[_t]=n.length===2?i.parseTwoDigitYear(n):be(n)}),Ae("YY",function(n,a){a[_t]=i.parseTwoDigitYear(n)}),Ae("Y",function(n,a){a[_t]=parseInt(n,10)});function ut(n){return _i(n)?366:365}i.parseTwoDigitYear=function(n){return be(n)+(be(n)>68?1900:2e3)};var Qe=gt("FullYear",!0);function at(){return _i(this.year())}function gt(n,a){return function(c){return c!=null?(nr(this,n,c),i.updateOffset(this,a),this):Bt(this,n)}}function Bt(n,a){if(!n.isValid())return NaN;var c=n._d,u=n._isUTC;switch(a){case"Milliseconds":return u?c.getUTCMilliseconds():c.getMilliseconds();case"Seconds":return u?c.getUTCSeconds():c.getSeconds();case"Minutes":return u?c.getUTCMinutes():c.getMinutes();case"Hours":return u?c.getUTCHours():c.getHours();case"Date":return u?c.getUTCDate():c.getDate();case"Day":return u?c.getUTCDay():c.getDay();case"Month":return u?c.getUTCMonth():c.getMonth();case"FullYear":return u?c.getUTCFullYear():c.getFullYear();default:return NaN}}function nr(n,a,c){var u,g,M,W,se;if(!(!n.isValid()||isNaN(c))){switch(u=n._d,g=n._isUTC,a){case"Milliseconds":return void(g?u.setUTCMilliseconds(c):u.setMilliseconds(c));case"Seconds":return void(g?u.setUTCSeconds(c):u.setSeconds(c));case"Minutes":return void(g?u.setUTCMinutes(c):u.setMinutes(c));case"Hours":return void(g?u.setUTCHours(c):u.setHours(c));case"Date":return void(g?u.setUTCDate(c):u.setDate(c));case"FullYear":break;default:return}M=c,W=n.month(),se=n.date(),se=se===29&&W===1&&!_i(M)?28:se,g?u.setUTCFullYear(M,W,se):u.setFullYear(M,W,se)}}function Rt(n){return n=pt(n),oe(this[n])?this[n]():this}function Zi(n,a){if(typeof n=="object"){n=Tt(n);var c=ir(n),u,g=c.length;for(u=0;u<g;u++)this[c[u].unit](n[c[u].unit])}else if(n=pt(n),oe(this[n]))return this[n](a);return this}function io(n,a){return(n%a+a)%a}var it;Array.prototype.indexOf?it=Array.prototype.indexOf:it=function(n){var a;for(a=0;a<this.length;++a)if(this[a]===n)return a;return-1};function so(n,a){if(isNaN(n)||isNaN(a))return NaN;var c=io(a,12);return n+=(a-c)/12,c===1?_i(n)?29:28:31-c%7%2}Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),Y("MMMM",0,0,function(n){return this.localeData().months(this,n)}),re("M",$e,sr),re("MM",$e,ct),re("MMM",function(n,a){return a.monthsShortRegex(n)}),re("MMMM",function(n,a){return a.monthsRegex(n)}),Ae(["M","MM"],function(n,a){a[E]=be(n)-1}),Ae(["MMM","MMMM"],function(n,a,c,u){var g=c._locale.monthsParse(n,u,c._strict);g!=null?a[E]=g:O(c).invalidMonth=n});var zu="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ja="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Qa=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,$u=vr,Bu=vr;function Vu(n,a){return n?o(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||Qa).test(a)?"format":"standalone"][n.month()]:o(this._months)?this._months:this._months.standalone}function ju(n,a){return n?o(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[Qa.test(a)?"format":"standalone"][n.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Uu(n,a,c){var u,g,M,W=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)M=R([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(M,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(M,"").toLocaleLowerCase();return c?a==="MMM"?(g=it.call(this._shortMonthsParse,W),g!==-1?g:null):(g=it.call(this._longMonthsParse,W),g!==-1?g:null):a==="MMM"?(g=it.call(this._shortMonthsParse,W),g!==-1?g:(g=it.call(this._longMonthsParse,W),g!==-1?g:null)):(g=it.call(this._longMonthsParse,W),g!==-1?g:(g=it.call(this._shortMonthsParse,W),g!==-1?g:null))}function Gu(n,a,c){var u,g,M;if(this._monthsParseExact)return Uu.call(this,n,a,c);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),u=0;u<12;u++){if(g=R([2e3,u]),c&&!this._longMonthsParse[u]&&(this._longMonthsParse[u]=new RegExp("^"+this.months(g,"").replace(".","")+"$","i"),this._shortMonthsParse[u]=new RegExp("^"+this.monthsShort(g,"").replace(".","")+"$","i")),!c&&!this._monthsParse[u]&&(M="^"+this.months(g,"")+"|^"+this.monthsShort(g,""),this._monthsParse[u]=new RegExp(M.replace(".",""),"i")),c&&a==="MMMM"&&this._longMonthsParse[u].test(n))return u;if(c&&a==="MMM"&&this._shortMonthsParse[u].test(n))return u;if(!c&&this._monthsParse[u].test(n))return u}}function el(n,a){if(!n.isValid())return n;if(typeof a=="string"){if(/^\d+$/.test(a))a=be(a);else if(a=n.localeData().monthsParse(a),!p(a))return n}var c=a,u=n.date();return u=u<29?u:Math.min(u,so(n.year(),c)),n._isUTC?n._d.setUTCMonth(c,u):n._d.setMonth(c,u),n}function tl(n){return n!=null?(el(this,n),i.updateOffset(this,!0),this):Bt(this,"Month")}function qu(){return so(this.year(),this.month())}function Xu(n){return this._monthsParseExact?(h(this,"_monthsRegex")||rl.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=$u),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ku(n){return this._monthsParseExact?(h(this,"_monthsRegex")||rl.call(this),n?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Bu),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function rl(){function n(ye,ke){return ke.length-ye.length}var a=[],c=[],u=[],g,M,W,se;for(g=0;g<12;g++)M=R([2e3,g]),W=$t(this.monthsShort(M,"")),se=$t(this.months(M,"")),a.push(W),c.push(se),u.push(se),u.push(W);a.sort(n),c.sort(n),u.sort(n),this._monthsRegex=new RegExp("^("+u.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Zu(n,a,c,u,g,M,W){var se;return n<100&&n>=0?(se=new Date(n+400,a,c,u,g,M,W),isFinite(se.getFullYear())&&se.setFullYear(n)):se=new Date(n,a,c,u,g,M,W),se}function Ji(n){var a,c;return n<100&&n>=0?(c=Array.prototype.slice.call(arguments),c[0]=n+400,a=new Date(Date.UTC.apply(null,c)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(n)):a=new Date(Date.UTC.apply(null,arguments)),a}function Ws(n,a,c){var u=7+a-c,g=(7+Ji(n,0,u).getUTCDay()-a)%7;return-g+u-1}function il(n,a,c,u,g){var M=(7+c-u)%7,W=Ws(n,u,g),se=1+7*(a-1)+M+W,ye,ke;return se<=0?(ye=n-1,ke=ut(ye)+se):se>ut(n)?(ye=n+1,ke=se-ut(n)):(ye=n,ke=se),{year:ye,dayOfYear:ke}}function Qi(n,a,c){var u=Ws(n.year(),a,c),g=Math.floor((n.dayOfYear()-u-1)/7)+1,M,W;return g<1?(W=n.year()-1,M=g+wr(W,a,c)):g>wr(n.year(),a,c)?(M=g-wr(n.year(),a,c),W=n.year()+1):(W=n.year(),M=g),{week:M,year:W}}function wr(n,a,c){var u=Ws(n,a,c),g=Ws(n+1,a,c);return(ut(n)-u+g)/7}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),re("w",$e,sr),re("ww",$e,ct),re("W",$e,sr),re("WW",$e,ct),ti(["w","ww","W","WW"],function(n,a,c,u){a[u.substr(0,1)]=be(n)});function Ju(n){return Qi(n,this._week.dow,this._week.doy).week}var Qu={dow:0,doy:6};function ed(){return this._week.dow}function td(){return this._week.doy}function rd(n){var a=this.localeData().week(this);return n==null?a:this.add((n-a)*7,"d")}function id(n){var a=Qi(this,1,4).week;return n==null?a:this.add((n-a)*7,"d")}Y("d",0,"do","day"),Y("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),Y("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),Y("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),re("d",$e),re("e",$e),re("E",$e),re("dd",function(n,a){return a.weekdaysMinRegex(n)}),re("ddd",function(n,a){return a.weekdaysShortRegex(n)}),re("dddd",function(n,a){return a.weekdaysRegex(n)}),ti(["dd","ddd","dddd"],function(n,a,c,u){var g=c._locale.weekdaysParse(n,u,c._strict);g!=null?a.d=g:O(c).invalidWeekday=n}),ti(["d","e","E"],function(n,a,c,u){a[u]=be(n)});function sd(n,a){return typeof n!="string"?n:isNaN(n)?(n=a.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function nd(n,a){return typeof n=="string"?a.weekdaysParse(n)%7||7:isNaN(n)?null:n}function no(n,a){return n.slice(a,7).concat(n.slice(0,a))}var od="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ad="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ld=vr,hd=vr,cd=vr;function ud(n,a){var c=o(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return n===!0?no(c,this._week.dow):n?c[n.day()]:c}function dd(n){return n===!0?no(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function fd(n){return n===!0?no(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function pd(n,a,c){var u,g,M,W=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],u=0;u<7;++u)M=R([2e3,1]).day(u),this._minWeekdaysParse[u]=this.weekdaysMin(M,"").toLocaleLowerCase(),this._shortWeekdaysParse[u]=this.weekdaysShort(M,"").toLocaleLowerCase(),this._weekdaysParse[u]=this.weekdays(M,"").toLocaleLowerCase();return c?a==="dddd"?(g=it.call(this._weekdaysParse,W),g!==-1?g:null):a==="ddd"?(g=it.call(this._shortWeekdaysParse,W),g!==-1?g:null):(g=it.call(this._minWeekdaysParse,W),g!==-1?g:null):a==="dddd"?(g=it.call(this._weekdaysParse,W),g!==-1||(g=it.call(this._shortWeekdaysParse,W),g!==-1)?g:(g=it.call(this._minWeekdaysParse,W),g!==-1?g:null)):a==="ddd"?(g=it.call(this._shortWeekdaysParse,W),g!==-1||(g=it.call(this._weekdaysParse,W),g!==-1)?g:(g=it.call(this._minWeekdaysParse,W),g!==-1?g:null)):(g=it.call(this._minWeekdaysParse,W),g!==-1||(g=it.call(this._weekdaysParse,W),g!==-1)?g:(g=it.call(this._shortWeekdaysParse,W),g!==-1?g:null))}function md(n,a,c){var u,g,M;if(this._weekdaysParseExact)return pd.call(this,n,a,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),u=0;u<7;u++){if(g=R([2e3,1]).day(u),c&&!this._fullWeekdaysParse[u]&&(this._fullWeekdaysParse[u]=new RegExp("^"+this.weekdays(g,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[u]=new RegExp("^"+this.weekdaysShort(g,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[u]=new RegExp("^"+this.weekdaysMin(g,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[u]||(M="^"+this.weekdays(g,"")+"|^"+this.weekdaysShort(g,"")+"|^"+this.weekdaysMin(g,""),this._weekdaysParse[u]=new RegExp(M.replace(".",""),"i")),c&&a==="dddd"&&this._fullWeekdaysParse[u].test(n))return u;if(c&&a==="ddd"&&this._shortWeekdaysParse[u].test(n))return u;if(c&&a==="dd"&&this._minWeekdaysParse[u].test(n))return u;if(!c&&this._weekdaysParse[u].test(n))return u}}function gd(n){if(!this.isValid())return n!=null?this:NaN;var a=Bt(this,"Day");return n!=null?(n=sd(n,this.localeData()),this.add(n-a,"d")):a}function yd(n){if(!this.isValid())return n!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return n==null?a:this.add(n-a,"d")}function vd(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var a=nd(n,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function wd(n){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||oo.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=ld),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function _d(n){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||oo.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=hd),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function bd(n){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||oo.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=cd),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function oo(){function n(Dt,Rr){return Rr.length-Dt.length}var a=[],c=[],u=[],g=[],M,W,se,ye,ke;for(M=0;M<7;M++)W=R([2e3,1]).day(M),se=$t(this.weekdaysMin(W,"")),ye=$t(this.weekdaysShort(W,"")),ke=$t(this.weekdays(W,"")),a.push(se),c.push(ye),u.push(ke),g.push(se),g.push(ye),g.push(ke);a.sort(n),c.sort(n),u.sort(n),g.sort(n),this._weekdaysRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ao(){return this.hours()%12||12}function Cd(){return this.hours()||24}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,ao),Y("k",["kk",2],0,Cd),Y("hmm",0,0,function(){return""+ao.apply(this)+P(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+ao.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)});function nl(n,a){Y(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}nl("a",!0),nl("A",!1);function ol(n,a){return a._meridiemParse}re("a",ol),re("A",ol),re("H",$e,yi),re("h",$e,sr),re("k",$e,sr),re("HH",$e,ct),re("hh",$e,ct),re("kk",$e,ct),re("hmm",Ls),re("hmmss",Fs),re("Hmm",Ls),re("Hmmss",Fs),Ae(["H","HH"],Z),Ae(["k","kk"],function(n,a,c){var u=be(n);a[Z]=u===24?0:u}),Ae(["a","A"],function(n,a,c){c._isPm=c._locale.isPM(n),c._meridiem=n}),Ae(["h","hh"],function(n,a,c){a[Z]=be(n),O(c).bigHour=!0}),Ae("hmm",function(n,a,c){var u=n.length-2;a[Z]=be(n.substr(0,u)),a[de]=be(n.substr(u)),O(c).bigHour=!0}),Ae("hmmss",function(n,a,c){var u=n.length-4,g=n.length-2;a[Z]=be(n.substr(0,u)),a[de]=be(n.substr(u,2)),a[_e]=be(n.substr(g)),O(c).bigHour=!0}),Ae("Hmm",function(n,a,c){var u=n.length-2;a[Z]=be(n.substr(0,u)),a[de]=be(n.substr(u))}),Ae("Hmmss",function(n,a,c){var u=n.length-4,g=n.length-2;a[Z]=be(n.substr(0,u)),a[de]=be(n.substr(u,2)),a[_e]=be(n.substr(g))});function Sd(n){return(n+"").toLowerCase().charAt(0)==="p"}var Rd=/[ap]\.?m?\.?/i,Ed=gt("Hours",!0);function kd(n,a,c){return n>11?c?"pm":"PM":c?"am":"AM"}var al={calendar:T,longDateFormat:ie,invalidDate:I,ordinal:ot,dayOfMonthOrdinalParse:Xe,relativeTime:wt,months:zu,monthsShort:Ja,week:Qu,weekdays:od,weekdaysMin:ad,weekdaysShort:sl,meridiemParse:Rd},et={},es={},ts;function xd(n,a){var c,u=Math.min(n.length,a.length);for(c=0;c<u;c+=1)if(n[c]!==a[c])return c;return u}function ll(n){return n&&n.toLowerCase().replace("_","-")}function Td(n){for(var a=0,c,u,g,M;a<n.length;){for(M=ll(n[a]).split("-"),c=M.length,u=ll(n[a+1]),u=u?u.split("-"):null;c>0;){if(g=Hs(M.slice(0,c).join("-")),g)return g;if(u&&u.length>=c&&xd(M,u)>=c-1)break;c--}a++}return ts}function Dd(n){return!!(n&&n.match("^[^/\\\\]*$"))}function Hs(n){var a=null,c;if(et[n]===void 0&&e&&e.exports&&Dd(n))try{a=ts._abbr,c=US,c("./locale/"+n),Yr(a)}catch{et[n]=null}return et[n]}function Yr(n,a){var c;return n&&(f(a)?c=_r(n):c=lo(n,a),c?ts=c:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ts._abbr}function lo(n,a){if(a!==null){var c,u=al;if(a.abbr=n,et[n]!=null)ce("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."),u=et[n]._config;else if(a.parentLocale!=null)if(et[a.parentLocale]!=null)u=et[a.parentLocale]._config;else if(c=Hs(a.parentLocale),c!=null)u=c._config;else return es[a.parentLocale]||(es[a.parentLocale]=[]),es[a.parentLocale].push({name:n,config:a}),null;return et[n]=new me(Fe(u,a)),es[n]&&es[n].forEach(function(g){lo(g.name,g.config)}),Yr(n),et[n]}else return delete et[n],null}function Md(n,a){if(a!=null){var c,u,g=al;et[n]!=null&&et[n].parentLocale!=null?et[n].set(Fe(et[n]._config,a)):(u=Hs(n),u!=null&&(g=u._config),a=Fe(g,a),u==null&&(a.abbr=n),c=new me(a),c.parentLocale=et[n],et[n]=c),Yr(n)}else et[n]!=null&&(et[n].parentLocale!=null?(et[n]=et[n].parentLocale,n===Yr()&&Yr(n)):et[n]!=null&&delete et[n]);return et[n]}function _r(n){var a;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ts;if(!o(n)){if(a=Hs(n),a)return a;n=[n]}return Td(n)}function Pd(){return De(et)}function ho(n){var a,c=n._a;return c&&O(n).overflow===-2&&(a=c[E]<0||c[E]>11?E:c[U]<1||c[U]>so(c[_t],c[E])?U:c[Z]<0||c[Z]>24||c[Z]===24&&(c[de]!==0||c[_e]!==0||c[Ee]!==0)?Z:c[de]<0||c[de]>59?de:c[_e]<0||c[_e]>59?_e:c[Ee]<0||c[Ee]>999?Ee:-1,O(n)._overflowDayOfYear&&(a<_t||a>U)&&(a=U),O(n)._overflowWeeks&&a===-1&&(a=Se),O(n)._overflowWeekday&&a===-1&&(a=Ce),O(n).overflow=a),n}var Od=/^\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)?)?$/,Ad=/^\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)?)?$/,Nd=/Z|[+-]\d\d(?::?\d\d)?/,Ys=[["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]],co=[["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/]],Ld=/^\/?Date\((-?\d+)/i,Fd=/^(?:(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}))$/,Id={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 hl(n){var a,c,u=n._i,g=Od.exec(u)||Ad.exec(u),M,W,se,ye,ke=Ys.length,Dt=co.length;if(g){for(O(n).iso=!0,a=0,c=ke;a<c;a++)if(Ys[a][1].exec(g[1])){W=Ys[a][0],M=Ys[a][2]!==!1;break}if(W==null){n._isValid=!1;return}if(g[3]){for(a=0,c=Dt;a<c;a++)if(co[a][1].exec(g[3])){se=(g[2]||" ")+co[a][0];break}if(se==null){n._isValid=!1;return}}if(!M&&se!=null){n._isValid=!1;return}if(g[4])if(Nd.exec(g[4]))ye="Z";else{n._isValid=!1;return}n._f=W+(se||"")+(ye||""),fo(n)}else n._isValid=!1}function Wd(n,a,c,u,g,M){var W=[Hd(n),Ja.indexOf(a),parseInt(c,10),parseInt(u,10),parseInt(g,10)];return M&&W.push(parseInt(M,10)),W}function Hd(n){var a=parseInt(n,10);return a<=49?2e3+a:a<=999?1900+a:a}function Yd(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function zd(n,a,c){if(n){var u=sl.indexOf(n),g=new Date(a[0],a[1],a[2]).getDay();if(u!==g)return O(c).weekdayMismatch=!0,c._isValid=!1,!1}return!0}function $d(n,a,c){if(n)return Id[n];if(a)return 0;var u=parseInt(c,10),g=u%100,M=(u-g)/100;return M*60+g}function cl(n){var a=Fd.exec(Yd(n._i)),c;if(a){if(c=Wd(a[4],a[3],a[2],a[5],a[6],a[7]),!zd(a[1],c,n))return;n._a=c,n._tzm=$d(a[8],a[9],a[10]),n._d=Ji.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),O(n).rfc2822=!0}else n._isValid=!1}function Bd(n){var a=Ld.exec(n._i);if(a!==null){n._d=new Date(+a[1]);return}if(hl(n),n._isValid===!1)delete n._isValid;else return;if(cl(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:i.createFromInputFallback(n)}i.createFromInputFallback=w("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(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function bi(n,a,c){return n??a??c}function Vd(n){var a=new Date(i.now());return n._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function uo(n){var a,c,u=[],g,M,W;if(!n._d){for(g=Vd(n),n._w&&n._a[U]==null&&n._a[E]==null&&jd(n),n._dayOfYear!=null&&(W=bi(n._a[_t],g[_t]),(n._dayOfYear>ut(W)||n._dayOfYear===0)&&(O(n)._overflowDayOfYear=!0),c=Ji(W,0,n._dayOfYear),n._a[E]=c.getUTCMonth(),n._a[U]=c.getUTCDate()),a=0;a<3&&n._a[a]==null;++a)n._a[a]=u[a]=g[a];for(;a<7;a++)n._a[a]=u[a]=n._a[a]==null?a===2?1:0:n._a[a];n._a[Z]===24&&n._a[de]===0&&n._a[_e]===0&&n._a[Ee]===0&&(n._nextDay=!0,n._a[Z]=0),n._d=(n._useUTC?Ji:Zu).apply(null,u),M=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[Z]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==M&&(O(n).weekdayMismatch=!0)}}function jd(n){var a,c,u,g,M,W,se,ye,ke;a=n._w,a.GG!=null||a.W!=null||a.E!=null?(M=1,W=4,c=bi(a.GG,n._a[_t],Qi(Ke(),1,4).year),u=bi(a.W,1),g=bi(a.E,1),(g<1||g>7)&&(ye=!0)):(M=n._locale._week.dow,W=n._locale._week.doy,ke=Qi(Ke(),M,W),c=bi(a.gg,n._a[_t],ke.year),u=bi(a.w,ke.week),a.d!=null?(g=a.d,(g<0||g>6)&&(ye=!0)):a.e!=null?(g=a.e+M,(a.e<0||a.e>6)&&(ye=!0)):g=M),u<1||u>wr(c,M,W)?O(n)._overflowWeeks=!0:ye!=null?O(n)._overflowWeekday=!0:(se=il(c,u,g,M,W),n._a[_t]=se.year,n._dayOfYear=se.dayOfYear)}i.ISO_8601=function(){},i.RFC_2822=function(){};function fo(n){if(n._f===i.ISO_8601){hl(n);return}if(n._f===i.RFC_2822){cl(n);return}n._a=[],O(n).empty=!0;var a=""+n._i,c,u,g,M,W,se=a.length,ye=0,ke,Dt;for(g=ue(n._f,n._locale).match(A)||[],Dt=g.length,c=0;c<Dt;c++)M=g[c],u=(a.match(to(M,n))||[])[0],u&&(W=a.substr(0,a.indexOf(u)),W.length>0&&O(n).unusedInput.push(W),a=a.slice(a.indexOf(u)+u.length),ye+=u.length),V[M]?(u?O(n).empty=!1:O(n).unusedTokens.push(M),ro(M,u,n)):n._strict&&!u&&O(n).unusedTokens.push(M);O(n).charsLeftOver=se-ye,a.length>0&&O(n).unusedInput.push(a),n._a[Z]<=12&&O(n).bigHour===!0&&n._a[Z]>0&&(O(n).bigHour=void 0),O(n).parsedDateParts=n._a.slice(0),O(n).meridiem=n._meridiem,n._a[Z]=Ud(n._locale,n._a[Z],n._meridiem),ke=O(n).era,ke!==null&&(n._a[_t]=n._locale.erasConvertYear(ke,n._a[_t])),uo(n),ho(n)}function Ud(n,a,c){var u;return c==null?a:n.meridiemHour!=null?n.meridiemHour(a,c):(n.isPM!=null&&(u=n.isPM(c),u&&a<12&&(a+=12),!u&&a===12&&(a=0)),a)}function Gd(n){var a,c,u,g,M,W,se=!1,ye=n._f.length;if(ye===0){O(n).invalidFormat=!0,n._d=new Date(NaN);return}for(g=0;g<ye;g++)M=0,W=!1,a=L({},n),n._useUTC!=null&&(a._useUTC=n._useUTC),a._f=n._f[g],fo(a),B(a)&&(W=!0),M+=O(a).charsLeftOver,M+=O(a).unusedTokens.length*10,O(a).score=M,se?M<u&&(u=M,c=a):(u==null||M<u||W)&&(u=M,c=a,W&&(se=!0));x(n,c||a)}function qd(n){if(!n._d){var a=Tt(n._i),c=a.day===void 0?a.date:a.day;n._a=C([a.year,a.month,c,a.hour,a.minute,a.second,a.millisecond],function(u){return u&&parseInt(u,10)}),uo(n)}}function Xd(n){var a=new z(ho(ul(n)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function ul(n){var a=n._i,c=n._f;return n._locale=n._locale||_r(n._l),a===null||c===void 0&&a===""?N({nullInput:!0}):(typeof a=="string"&&(n._i=a=n._locale.preparse(a)),q(a)?new z(ho(a)):(m(a)?n._d=a:o(c)?Gd(n):c?fo(n):Kd(n),B(n)||(n._d=null),n))}function Kd(n){var a=n._i;f(a)?n._d=new Date(i.now()):m(a)?n._d=new Date(a.valueOf()):typeof a=="string"?Bd(n):o(a)?(n._a=C(a.slice(0),function(c){return parseInt(c,10)}),uo(n)):l(a)?qd(n):p(a)?n._d=new Date(a):i.createFromInputFallback(n)}function dl(n,a,c,u,g){var M={};return(a===!0||a===!1)&&(u=a,a=void 0),(c===!0||c===!1)&&(u=c,c=void 0),(l(n)&&d(n)||o(n)&&n.length===0)&&(n=void 0),M._isAMomentObject=!0,M._useUTC=M._isUTC=g,M._l=c,M._i=n,M._f=a,M._strict=u,Xd(M)}function Ke(n,a,c,u){return dl(n,a,c,u,!1)}var Zd=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=Ke.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:N()}),Jd=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=Ke.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:N()});function fl(n,a){var c,u;if(a.length===1&&o(a[0])&&(a=a[0]),!a.length)return Ke();for(c=a[0],u=1;u<a.length;++u)(!a[u].isValid()||a[u][n](c))&&(c=a[u]);return c}function Qd(){var n=[].slice.call(arguments,0);return fl("isBefore",n)}function ef(){var n=[].slice.call(arguments,0);return fl("isAfter",n)}var tf=function(){return Date.now?Date.now():+new Date},rs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rf(n){var a,c=!1,u,g=rs.length;for(a in n)if(h(n,a)&&!(it.call(rs,a)!==-1&&(n[a]==null||!isNaN(n[a]))))return!1;for(u=0;u<g;++u)if(n[rs[u]]){if(c)return!1;parseFloat(n[rs[u]])!==be(n[rs[u]])&&(c=!0)}return!0}function sf(){return this._isValid}function nf(){return Zt(NaN)}function zs(n){var a=Tt(n),c=a.year||0,u=a.quarter||0,g=a.month||0,M=a.week||a.isoWeek||0,W=a.day||0,se=a.hour||0,ye=a.minute||0,ke=a.second||0,Dt=a.millisecond||0;this._isValid=rf(a),this._milliseconds=+Dt+ke*1e3+ye*6e4+se*1e3*60*60,this._days=+W+M*7,this._months=+g+u*3+c*12,this._data={},this._locale=_r(),this._bubble()}function $s(n){return n instanceof zs}function po(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function of(n,a,c){var u=Math.min(n.length,a.length),g=Math.abs(n.length-a.length),M=0,W;for(W=0;W<u;W++)be(n[W])!==be(a[W])&&M++;return M+g}function pl(n,a){Y(n,0,0,function(){var c=this.utcOffset(),u="+";return c<0&&(c=-c,u="-"),u+P(~~(c/60),2)+a+P(~~c%60,2)})}pl("Z",":"),pl("ZZ",""),re("Z",ei),re("ZZ",ei),Ae(["Z","ZZ"],function(n,a,c){c._useUTC=!0,c._tzm=mo(ei,n)});var af=/([\+\-]|\d\d)/gi;function mo(n,a){var c=(a||"").match(n),u,g,M;return c===null?null:(u=c[c.length-1]||[],g=(u+"").match(af)||["-",0,0],M=+(g[1]*60)+be(g[2]),M===0?0:g[0]==="+"?M:-M)}function go(n,a){var c,u;return a._isUTC?(c=a.clone(),u=(q(n)||m(n)?n.valueOf():Ke(n).valueOf())-c.valueOf(),c._d.setTime(c._d.valueOf()+u),i.updateOffset(c,!1),c):Ke(n).local()}function yo(n){return-Math.round(n._d.getTimezoneOffset())}i.updateOffset=function(){};function lf(n,a,c){var u=this._offset||0,g;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=mo(ei,n),n===null)return this}else Math.abs(n)<16&&!c&&(n=n*60);return!this._isUTC&&a&&(g=yo(this)),this._offset=n,this._isUTC=!0,g!=null&&this.add(g,"m"),u!==n&&(!a||this._changeInProgress?vl(this,Zt(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?u:yo(this)}function hf(n,a){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,a),this):-this.utcOffset()}function cf(n){return this.utcOffset(0,n)}function uf(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(yo(this),"m")),this}function df(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=mo(Ki,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function ff(n){return this.isValid()?(n=n?Ke(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function pf(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function mf(){if(!f(this._isDSTShifted))return this._isDSTShifted;var n={},a;return L(n,this),n=ul(n),n._a?(a=n._isUTC?R(n._a):Ke(n._a),this._isDSTShifted=this.isValid()&&of(n._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function gf(){return this.isValid()?!this._isUTC:!1}function yf(){return this.isValid()?this._isUTC:!1}function ml(){return this.isValid()?this._isUTC&&this._offset===0:!1}var vf=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,wf=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zt(n,a){var c=n,u=null,g,M,W;return $s(n)?c={ms:n._milliseconds,d:n._days,M:n._months}:p(n)||!isNaN(+n)?(c={},a?c[a]=+n:c.milliseconds=+n):(u=vf.exec(n))?(g=u[1]==="-"?-1:1,c={y:0,d:be(u[U])*g,h:be(u[Z])*g,m:be(u[de])*g,s:be(u[_e])*g,ms:be(po(u[Ee]*1e3))*g}):(u=wf.exec(n))?(g=u[1]==="-"?-1:1,c={y:ri(u[2],g),M:ri(u[3],g),w:ri(u[4],g),d:ri(u[5],g),h:ri(u[6],g),m:ri(u[7],g),s:ri(u[8],g)}):c==null?c={}:typeof c=="object"&&("from"in c||"to"in c)&&(W=_f(Ke(c.from),Ke(c.to)),c={},c.ms=W.milliseconds,c.M=W.months),M=new zs(c),$s(n)&&h(n,"_locale")&&(M._locale=n._locale),$s(n)&&h(n,"_isValid")&&(M._isValid=n._isValid),M}Zt.fn=zs.prototype,Zt.invalid=nf;function ri(n,a){var c=n&&parseFloat(n.replace(",","."));return(isNaN(c)?0:c)*a}function gl(n,a){var c={};return c.months=a.month()-n.month()+(a.year()-n.year())*12,n.clone().add(c.months,"M").isAfter(a)&&--c.months,c.milliseconds=+a-+n.clone().add(c.months,"M"),c}function _f(n,a){var c;return n.isValid()&&a.isValid()?(a=go(a,n),n.isBefore(a)?c=gl(n,a):(c=gl(a,n),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function yl(n,a){return function(c,u){var g,M;return u!==null&&!isNaN(+u)&&(ce(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),M=c,c=u,u=M),g=Zt(c,u),vl(this,g,n),this}}function vl(n,a,c,u){var g=a._milliseconds,M=po(a._days),W=po(a._months);n.isValid()&&(u=u??!0,W&&el(n,Bt(n,"Month")+W*c),M&&nr(n,"Date",Bt(n,"Date")+M*c),g&&n._d.setTime(n._d.valueOf()+g*c),u&&i.updateOffset(n,M||W))}var bf=yl(1,"add"),Cf=yl(-1,"subtract");function wl(n){return typeof n=="string"||n instanceof String}function Sf(n){return q(n)||m(n)||wl(n)||p(n)||Ef(n)||Rf(n)||n===null||n===void 0}function Rf(n){var a=l(n)&&!d(n),c=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],g,M,W=u.length;for(g=0;g<W;g+=1)M=u[g],c=c||h(n,M);return a&&c}function Ef(n){var a=o(n),c=!1;return a&&(c=n.filter(function(u){return!p(u)&&wl(n)}).length===0),a&&c}function kf(n){var a=l(n)&&!d(n),c=!1,u=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],g,M;for(g=0;g<u.length;g+=1)M=u[g],c=c||h(n,M);return a&&c}function xf(n,a){var c=n.diff(a,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function Tf(n,a){arguments.length===1&&(arguments[0]?Sf(arguments[0])?(n=arguments[0],a=void 0):kf(arguments[0])&&(a=arguments[0],n=void 0):(n=void 0,a=void 0));var c=n||Ke(),u=go(c,this).startOf("day"),g=i.calendarFormat(this,u)||"sameElse",M=a&&(oe(a[g])?a[g].call(this,c):a[g]);return this.format(M||this.localeData().calendar(g,this,Ke(c)))}function Df(){return new z(this)}function Mf(n,a){var c=q(n)?n:Ke(n);return this.isValid()&&c.isValid()?(a=pt(a)||"millisecond",a==="millisecond"?this.valueOf()>c.valueOf():c.valueOf()<this.clone().startOf(a).valueOf()):!1}function Pf(n,a){var c=q(n)?n:Ke(n);return this.isValid()&&c.isValid()?(a=pt(a)||"millisecond",a==="millisecond"?this.valueOf()<c.valueOf():this.clone().endOf(a).valueOf()<c.valueOf()):!1}function Of(n,a,c,u){var g=q(n)?n:Ke(n),M=q(a)?a:Ke(a);return this.isValid()&&g.isValid()&&M.isValid()?(u=u||"()",(u[0]==="("?this.isAfter(g,c):!this.isBefore(g,c))&&(u[1]===")"?this.isBefore(M,c):!this.isAfter(M,c))):!1}function Af(n,a){var c=q(n)?n:Ke(n),u;return this.isValid()&&c.isValid()?(a=pt(a)||"millisecond",a==="millisecond"?this.valueOf()===c.valueOf():(u=c.valueOf(),this.clone().startOf(a).valueOf()<=u&&u<=this.clone().endOf(a).valueOf())):!1}function Nf(n,a){return this.isSame(n,a)||this.isAfter(n,a)}function Lf(n,a){return this.isSame(n,a)||this.isBefore(n,a)}function Ff(n,a,c){var u,g,M;if(!this.isValid())return NaN;if(u=go(n,this),!u.isValid())return NaN;switch(g=(u.utcOffset()-this.utcOffset())*6e4,a=pt(a),a){case"year":M=Bs(this,u)/12;break;case"month":M=Bs(this,u);break;case"quarter":M=Bs(this,u)/3;break;case"second":M=(this-u)/1e3;break;case"minute":M=(this-u)/6e4;break;case"hour":M=(this-u)/36e5;break;case"day":M=(this-u-g)/864e5;break;case"week":M=(this-u-g)/6048e5;break;default:M=this-u}return c?M:Ot(M)}function Bs(n,a){if(n.date()<a.date())return-Bs(a,n);var c=(a.year()-n.year())*12+(a.month()-n.month()),u=n.clone().add(c,"months"),g,M;return a-u<0?(g=n.clone().add(c-1,"months"),M=(a-u)/(u-g)):(g=n.clone().add(c+1,"months"),M=(a-u)/(g-u)),-(c+M)||0}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function If(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Wf(n){if(!this.isValid())return null;var a=n!==!0,c=a?this.clone().utc():this;return c.year()<0||c.year()>9999?he(c,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):oe(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",he(c,"Z")):he(c,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Hf(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",a="",c,u,g,M;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),c="["+n+'("]',u=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",g="-MM-DD[T]HH:mm:ss.SSS",M=a+'[")]',this.format(c+u+g+M)}function Yf(n){n||(n=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var a=he(this,n);return this.localeData().postformat(a)}function zf(n,a){return this.isValid()&&(q(n)&&n.isValid()||Ke(n).isValid())?Zt({to:this,from:n}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function $f(n){return this.from(Ke(),n)}function Bf(n,a){return this.isValid()&&(q(n)&&n.isValid()||Ke(n).isValid())?Zt({from:this,to:n}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Vf(n){return this.to(Ke(),n)}function _l(n){var a;return n===void 0?this._locale._abbr:(a=_r(n),a!=null&&(this._locale=a),this)}var bl=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Cl(){return this._locale}var Vs=1e3,Ci=60*Vs,js=60*Ci,Sl=(365*400+97)*24*js;function Si(n,a){return(n%a+a)%a}function Rl(n,a,c){return n<100&&n>=0?new Date(n+400,a,c)-Sl:new Date(n,a,c).valueOf()}function El(n,a,c){return n<100&&n>=0?Date.UTC(n+400,a,c)-Sl:Date.UTC(n,a,c)}function jf(n){var a,c;if(n=pt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?El:Rl,n){case"year":a=c(this.year(),0,1);break;case"quarter":a=c(this.year(),this.month()-this.month()%3,1);break;case"month":a=c(this.year(),this.month(),1);break;case"week":a=c(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=c(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Si(a+(this._isUTC?0:this.utcOffset()*Ci),js);break;case"minute":a=this._d.valueOf(),a-=Si(a,Ci);break;case"second":a=this._d.valueOf(),a-=Si(a,Vs);break}return this._d.setTime(a),i.updateOffset(this,!0),this}function Uf(n){var a,c;if(n=pt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?El:Rl,n){case"year":a=c(this.year()+1,0,1)-1;break;case"quarter":a=c(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=c(this.year(),this.month()+1,1)-1;break;case"week":a=c(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=c(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=js-Si(a+(this._isUTC?0:this.utcOffset()*Ci),js)-1;break;case"minute":a=this._d.valueOf(),a+=Ci-Si(a,Ci)-1;break;case"second":a=this._d.valueOf(),a+=Vs-Si(a,Vs)-1;break}return this._d.setTime(a),i.updateOffset(this,!0),this}function Gf(){return this._d.valueOf()-(this._offset||0)*6e4}function qf(){return Math.floor(this.valueOf()/1e3)}function Xf(){return new Date(this.valueOf())}function Kf(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function Zf(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Jf(){return this.isValid()?this.toISOString():null}function Qf(){return B(this)}function ep(){return x({},O(this))}function tp(){return O(this).overflow}function rp(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),re("N",vo),re("NN",vo),re("NNN",vo),re("NNNN",fp),re("NNNNN",pp),Ae(["N","NN","NNN","NNNN","NNNNN"],function(n,a,c,u){var g=c._locale.erasParse(n,u,c._strict);g?O(c).era=g:O(c).invalidEra=n}),re("y",Wr),re("yy",Wr),re("yyy",Wr),re("yyyy",Wr),re("yo",mp),Ae(["y","yy","yyy","yyyy"],_t),Ae(["yo"],function(n,a,c,u){var g;c._locale._eraYearOrdinalRegex&&(g=n.match(c._locale._eraYearOrdinalRegex)),c._locale.eraYearOrdinalParse?a[_t]=c._locale.eraYearOrdinalParse(n,g):a[_t]=parseInt(n,10)});function ip(n,a){var c,u,g,M=this._eras||_r("en")._eras;for(c=0,u=M.length;c<u;++c){switch(typeof M[c].since){case"string":g=i(M[c].since).startOf("day"),M[c].since=g.valueOf();break}switch(typeof M[c].until){case"undefined":M[c].until=1/0;break;case"string":g=i(M[c].until).startOf("day").valueOf(),M[c].until=g.valueOf();break}}return M}function sp(n,a,c){var u,g,M=this.eras(),W,se,ye;for(n=n.toUpperCase(),u=0,g=M.length;u<g;++u)if(W=M[u].name.toUpperCase(),se=M[u].abbr.toUpperCase(),ye=M[u].narrow.toUpperCase(),c)switch(a){case"N":case"NN":case"NNN":if(se===n)return M[u];break;case"NNNN":if(W===n)return M[u];break;case"NNNNN":if(ye===n)return M[u];break}else if([W,se,ye].indexOf(n)>=0)return M[u]}function np(n,a){var c=n.since<=n.until?1:-1;return a===void 0?i(n.since).year():i(n.since).year()+(a-n.offset)*c}function op(){var n,a,c,u=this.localeData().eras();for(n=0,a=u.length;n<a;++n)if(c=this.clone().startOf("day").valueOf(),u[n].since<=c&&c<=u[n].until||u[n].until<=c&&c<=u[n].since)return u[n].name;return""}function ap(){var n,a,c,u=this.localeData().eras();for(n=0,a=u.length;n<a;++n)if(c=this.clone().startOf("day").valueOf(),u[n].since<=c&&c<=u[n].until||u[n].until<=c&&c<=u[n].since)return u[n].narrow;return""}function lp(){var n,a,c,u=this.localeData().eras();for(n=0,a=u.length;n<a;++n)if(c=this.clone().startOf("day").valueOf(),u[n].since<=c&&c<=u[n].until||u[n].until<=c&&c<=u[n].since)return u[n].abbr;return""}function hp(){var n,a,c,u,g=this.localeData().eras();for(n=0,a=g.length;n<a;++n)if(c=g[n].since<=g[n].until?1:-1,u=this.clone().startOf("day").valueOf(),g[n].since<=u&&u<=g[n].until||g[n].until<=u&&u<=g[n].since)return(this.year()-i(g[n].since).year())*c+g[n].offset;return this.year()}function cp(n){return h(this,"_erasNameRegex")||wo.call(this),n?this._erasNameRegex:this._erasRegex}function up(n){return h(this,"_erasAbbrRegex")||wo.call(this),n?this._erasAbbrRegex:this._erasRegex}function dp(n){return h(this,"_erasNarrowRegex")||wo.call(this),n?this._erasNarrowRegex:this._erasRegex}function vo(n,a){return a.erasAbbrRegex(n)}function fp(n,a){return a.erasNameRegex(n)}function pp(n,a){return a.erasNarrowRegex(n)}function mp(n,a){return a._eraYearOrdinalRegex||Wr}function wo(){var n=[],a=[],c=[],u=[],g,M,W,se,ye,ke=this.eras();for(g=0,M=ke.length;g<M;++g)W=$t(ke[g].name),se=$t(ke[g].abbr),ye=$t(ke[g].narrow),a.push(W),n.push(se),c.push(ye),u.push(W),u.push(se),u.push(ye);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+c.join("|")+")","i")}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Us(n,a){Y(0,[n,n.length],0,a)}Us("gggg","weekYear"),Us("ggggg","weekYear"),Us("GGGG","isoWeekYear"),Us("GGGGG","isoWeekYear"),re("G",gi),re("g",gi),re("GG",$e,ct),re("gg",$e,ct),re("GGGG",Xi,Qr),re("gggg",Xi,Qr),re("GGGGG",mi,yr),re("ggggg",mi,yr),ti(["gggg","ggggg","GGGG","GGGGG"],function(n,a,c,u){a[u.substr(0,2)]=be(n)}),ti(["gg","GG"],function(n,a,c,u){a[u]=i.parseTwoDigitYear(n)});function gp(n){return kl.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function yp(n){return kl.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function vp(){return wr(this.year(),1,4)}function wp(){return wr(this.isoWeekYear(),1,4)}function _p(){var n=this.localeData()._week;return wr(this.year(),n.dow,n.doy)}function bp(){var n=this.localeData()._week;return wr(this.weekYear(),n.dow,n.doy)}function kl(n,a,c,u,g){var M;return n==null?Qi(this,u,g).year:(M=wr(n,u,g),a>M&&(a=M),Cp.call(this,n,a,c,u,g))}function Cp(n,a,c,u,g){var M=il(n,a,c,u,g),W=Ji(M.year,0,M.dayOfYear);return this.year(W.getUTCFullYear()),this.month(W.getUTCMonth()),this.date(W.getUTCDate()),this}Y("Q",0,"Qo","quarter"),re("Q",gr),Ae("Q",function(n,a){a[E]=(be(n)-1)*3});function Sp(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Y("D",["DD",2],"Do","date"),re("D",$e,sr),re("DD",$e,ct),re("Do",function(n,a){return n?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),Ae(["D","DD"],U),Ae("Do",function(n,a){a[U]=be(n.match($e)[0])});var xl=gt("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),re("DDD",pi),re("DDDD",Ir),Ae(["DDD","DDDD"],function(n,a,c){c._dayOfYear=be(n)});function Rp(n){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?a:this.add(n-a,"d")}Y("m",["mm",2],0,"minute"),re("m",$e,yi),re("mm",$e,ct),Ae(["m","mm"],de);var Ep=gt("Minutes",!1);Y("s",["ss",2],0,"second"),re("s",$e,yi),re("ss",$e,ct),Ae(["s","ss"],_e);var kp=gt("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return this.millisecond()*10}),Y(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Y(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Y(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Y(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Y(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),re("S",pi,gr),re("SS",pi,ct),re("SSS",pi,Ir);var zr,Tl;for(zr="SSSS";zr.length<=9;zr+="S")re(zr,Wr);function xp(n,a){a[Ee]=be(("0."+n)*1e3)}for(zr="S";zr.length<=9;zr+="S")Ae(zr,xp);Tl=gt("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");function Tp(){return this._isUTC?"UTC":""}function Dp(){return this._isUTC?"Coordinated Universal Time":""}var X=z.prototype;X.add=bf,X.calendar=Tf,X.clone=Df,X.diff=Ff,X.endOf=Uf,X.format=Yf,X.from=zf,X.fromNow=$f,X.to=Bf,X.toNow=Vf,X.get=Rt,X.invalidAt=tp,X.isAfter=Mf,X.isBefore=Pf,X.isBetween=Of,X.isSame=Af,X.isSameOrAfter=Nf,X.isSameOrBefore=Lf,X.isValid=Qf,X.lang=bl,X.locale=_l,X.localeData=Cl,X.max=Jd,X.min=Zd,X.parsingFlags=ep,X.set=Zi,X.startOf=jf,X.subtract=Cf,X.toArray=Kf,X.toObject=Zf,X.toDate=Xf,X.toISOString=Wf,X.inspect=Hf,typeof Symbol<"u"&&Symbol.for!=null&&(X[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),X.toJSON=Jf,X.toString=If,X.unix=qf,X.valueOf=Gf,X.creationData=rp,X.eraName=op,X.eraNarrow=ap,X.eraAbbr=lp,X.eraYear=hp,X.year=Qe,X.isLeapYear=at,X.weekYear=gp,X.isoWeekYear=yp,X.quarter=X.quarters=Sp,X.month=tl,X.daysInMonth=qu,X.week=X.weeks=rd,X.isoWeek=X.isoWeeks=id,X.weeksInYear=_p,X.weeksInWeekYear=bp,X.isoWeeksInYear=vp,X.isoWeeksInISOWeekYear=wp,X.date=xl,X.day=X.days=gd,X.weekday=yd,X.isoWeekday=vd,X.dayOfYear=Rp,X.hour=X.hours=Ed,X.minute=X.minutes=Ep,X.second=X.seconds=kp,X.millisecond=X.milliseconds=Tl,X.utcOffset=lf,X.utc=cf,X.local=uf,X.parseZone=df,X.hasAlignedHourOffset=ff,X.isDST=pf,X.isLocal=gf,X.isUtcOffset=yf,X.isUtc=ml,X.isUTC=ml,X.zoneAbbr=Tp,X.zoneName=Dp,X.dates=w("dates accessor is deprecated. Use date instead.",xl),X.months=w("months accessor is deprecated. Use month instead",tl),X.years=w("years accessor is deprecated. Use year instead",Qe),X.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",hf),X.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",mf);function Mp(n){return Ke(n*1e3)}function Pp(){return Ke.apply(null,arguments).parseZone()}function Dl(n){return n}var Me=me.prototype;Me.calendar=S,Me.longDateFormat=ze,Me.invalidDate=Ue,Me.ordinal=Yt,Me.preparse=Dl,Me.postformat=Dl,Me.relativeTime=zt,Me.pastFuture=Pt,Me.set=ve,Me.eras=ip,Me.erasParse=sp,Me.erasConvertYear=np,Me.erasAbbrRegex=up,Me.erasNameRegex=cp,Me.erasNarrowRegex=dp,Me.months=Vu,Me.monthsShort=ju,Me.monthsParse=Gu,Me.monthsRegex=Ku,Me.monthsShortRegex=Xu,Me.week=Ju,Me.firstDayOfYear=td,Me.firstDayOfWeek=ed,Me.weekdays=ud,Me.weekdaysMin=fd,Me.weekdaysShort=dd,Me.weekdaysParse=md,Me.weekdaysRegex=wd,Me.weekdaysShortRegex=_d,Me.weekdaysMinRegex=bd,Me.isPM=Sd,Me.meridiem=kd;function Gs(n,a,c,u){var g=_r(),M=R().set(u,a);return g[c](M,n)}function Ml(n,a,c){if(p(n)&&(a=n,n=void 0),n=n||"",a!=null)return Gs(n,a,c,"month");var u,g=[];for(u=0;u<12;u++)g[u]=Gs(n,u,c,"month");return g}function _o(n,a,c,u){typeof n=="boolean"?(p(a)&&(c=a,a=void 0),a=a||""):(a=n,c=a,n=!1,p(a)&&(c=a,a=void 0),a=a||"");var g=_r(),M=n?g._week.dow:0,W,se=[];if(c!=null)return Gs(a,(c+M)%7,u,"day");for(W=0;W<7;W++)se[W]=Gs(a,(W+M)%7,u,"day");return se}function Op(n,a){return Ml(n,a,"months")}function Ap(n,a){return Ml(n,a,"monthsShort")}function Np(n,a,c){return _o(n,a,c,"weekdays")}function Lp(n,a,c){return _o(n,a,c,"weekdaysShort")}function Fp(n,a,c){return _o(n,a,c,"weekdaysMin")}Yr("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(n){var a=n%10,c=be(n%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return n+c}}),i.lang=w("moment.lang is deprecated. Use moment.locale instead.",Yr),i.langData=w("moment.langData is deprecated. Use moment.localeData instead.",_r);var br=Math.abs;function Ip(){var n=this._data;return this._milliseconds=br(this._milliseconds),this._days=br(this._days),this._months=br(this._months),n.milliseconds=br(n.milliseconds),n.seconds=br(n.seconds),n.minutes=br(n.minutes),n.hours=br(n.hours),n.months=br(n.months),n.years=br(n.years),this}function Pl(n,a,c,u){var g=Zt(a,c);return n._milliseconds+=u*g._milliseconds,n._days+=u*g._days,n._months+=u*g._months,n._bubble()}function Wp(n,a){return Pl(this,n,a,1)}function Hp(n,a){return Pl(this,n,a,-1)}function Ol(n){return n<0?Math.floor(n):Math.ceil(n)}function Yp(){var n=this._milliseconds,a=this._days,c=this._months,u=this._data,g,M,W,se,ye;return n>=0&&a>=0&&c>=0||n<=0&&a<=0&&c<=0||(n+=Ol(bo(c)+a)*864e5,a=0,c=0),u.milliseconds=n%1e3,g=Ot(n/1e3),u.seconds=g%60,M=Ot(g/60),u.minutes=M%60,W=Ot(M/60),u.hours=W%24,a+=Ot(W/24),ye=Ot(Al(a)),c+=ye,a-=Ol(bo(ye)),se=Ot(c/12),c%=12,u.days=a,u.months=c,u.years=se,this}function Al(n){return n*4800/146097}function bo(n){return n*146097/4800}function zp(n){if(!this.isValid())return NaN;var a,c,u=this._milliseconds;if(n=pt(n),n==="month"||n==="quarter"||n==="year")switch(a=this._days+u/864e5,c=this._months+Al(a),n){case"month":return c;case"quarter":return c/3;case"year":return c/12}else switch(a=this._days+Math.round(bo(this._months)),n){case"week":return a/7+u/6048e5;case"day":return a+u/864e5;case"hour":return a*24+u/36e5;case"minute":return a*1440+u/6e4;case"second":return a*86400+u/1e3;case"millisecond":return Math.floor(a*864e5)+u;default:throw new Error("Unknown unit "+n)}}function Cr(n){return function(){return this.as(n)}}var Nl=Cr("ms"),$p=Cr("s"),Bp=Cr("m"),Vp=Cr("h"),jp=Cr("d"),Up=Cr("w"),Gp=Cr("M"),qp=Cr("Q"),Xp=Cr("y"),Kp=Nl;function Zp(){return Zt(this)}function Jp(n){return n=pt(n),this.isValid()?this[n+"s"]():NaN}function ii(n){return function(){return this.isValid()?this._data[n]:NaN}}var Qp=ii("milliseconds"),em=ii("seconds"),tm=ii("minutes"),rm=ii("hours"),im=ii("days"),sm=ii("months"),nm=ii("years");function om(){return Ot(this.days()/7)}var Sr=Math.round,Ri={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function am(n,a,c,u,g){return g.relativeTime(a||1,!!c,n,u)}function lm(n,a,c,u){var g=Zt(n).abs(),M=Sr(g.as("s")),W=Sr(g.as("m")),se=Sr(g.as("h")),ye=Sr(g.as("d")),ke=Sr(g.as("M")),Dt=Sr(g.as("w")),Rr=Sr(g.as("y")),$r=M<=c.ss&&["s",M]||M<c.s&&["ss",M]||W<=1&&["m"]||W<c.m&&["mm",W]||se<=1&&["h"]||se<c.h&&["hh",se]||ye<=1&&["d"]||ye<c.d&&["dd",ye];return c.w!=null&&($r=$r||Dt<=1&&["w"]||Dt<c.w&&["ww",Dt]),$r=$r||ke<=1&&["M"]||ke<c.M&&["MM",ke]||Rr<=1&&["y"]||["yy",Rr],$r[2]=a,$r[3]=+n>0,$r[4]=u,am.apply(null,$r)}function hm(n){return n===void 0?Sr:typeof n=="function"?(Sr=n,!0):!1}function cm(n,a){return Ri[n]===void 0?!1:a===void 0?Ri[n]:(Ri[n]=a,n==="s"&&(Ri.ss=a-1),!0)}function um(n,a){if(!this.isValid())return this.localeData().invalidDate();var c=!1,u=Ri,g,M;return typeof n=="object"&&(a=n,n=!1),typeof n=="boolean"&&(c=n),typeof a=="object"&&(u=Object.assign({},Ri,a),a.s!=null&&a.ss==null&&(u.ss=a.s-1)),g=this.localeData(),M=lm(this,!c,u,g),c&&(M=g.pastFuture(+this,M)),g.postformat(M)}var Co=Math.abs;function Ei(n){return(n>0)-(n<0)||+n}function qs(){if(!this.isValid())return this.localeData().invalidDate();var n=Co(this._milliseconds)/1e3,a=Co(this._days),c=Co(this._months),u,g,M,W,se=this.asSeconds(),ye,ke,Dt,Rr;return se?(u=Ot(n/60),g=Ot(u/60),n%=60,u%=60,M=Ot(c/12),c%=12,W=n?n.toFixed(3).replace(/\.?0+$/,""):"",ye=se<0?"-":"",ke=Ei(this._months)!==Ei(se)?"-":"",Dt=Ei(this._days)!==Ei(se)?"-":"",Rr=Ei(this._milliseconds)!==Ei(se)?"-":"",ye+"P"+(M?ke+M+"Y":"")+(c?ke+c+"M":"")+(a?Dt+a+"D":"")+(g||u||n?"T":"")+(g?Rr+g+"H":"")+(u?Rr+u+"M":"")+(n?Rr+W+"S":"")):"P0D"}var xe=zs.prototype;xe.isValid=sf,xe.abs=Ip,xe.add=Wp,xe.subtract=Hp,xe.as=zp,xe.asMilliseconds=Nl,xe.asSeconds=$p,xe.asMinutes=Bp,xe.asHours=Vp,xe.asDays=jp,xe.asWeeks=Up,xe.asMonths=Gp,xe.asQuarters=qp,xe.asYears=Xp,xe.valueOf=Kp,xe._bubble=Yp,xe.clone=Zp,xe.get=Jp,xe.milliseconds=Qp,xe.seconds=em,xe.minutes=tm,xe.hours=rm,xe.days=im,xe.weeks=om,xe.months=sm,xe.years=nm,xe.humanize=um,xe.toISOString=qs,xe.toString=qs,xe.toJSON=qs,xe.locale=_l,xe.localeData=Cl,xe.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qs),xe.lang=bl,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),re("x",gi),re("X",Hr),Ae("X",function(n,a,c){c._d=new Date(parseFloat(n)*1e3)}),Ae("x",function(n,a,c){c._d=new Date(be(n))});//! moment.js
|
|
236
|
-
return
|
|
258
|
+
`;le(ks)(({theme:e})=>({"& .slick-container":{userSelect:"none",maxWidth:"100%",maxHeight:"100%",color:e.palette.text.primary,borderColor:e.palette.background.paper,fontFamily:"inherit",fontSize:"0.75rem","& .slick-header-column":{"&.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-state-hover":{"&.filter-active .slick-header-button::after":{border:"2px solid #e8e8e8"},"& .slick-header-button":{"&::before":{backgroundColor:"#e8e8e8"}}},"& .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:"#f8f8f8"}}},"& .slick-viewport":{backgroundColor:e.palette.background.paper,"& .grid-canvas":{"& .ui-widget-content.slick-row":{"&.even":{backgroundColor:e.palette.background.default},"& .slick-cell":{"&.active":{borderColor:"#007bff","& input":{color:e.palette.text.primary}},"&.selected":{color:e.palette.text.primary},"&.text-right":{textAlign:"right"},"&.bold":{fontWeight:"bold"},"&.wink":{animation:`${Cp} infinite 0.5s linear`,"& input":{animation:`${Cp} infinite 0.5s linear`}},"& input.editor-text":{textAlign:"inherit"},"& select":{color:e.palette.text.primary,backgroundColor:e.palette.background.default},"& #autocomplete":{margin:0,padding:0,maxHeight:"300px",width:"100%",overflow:"auto",backgroundColor:e.palette.background.default,fontSize:"12px",boxShadow:"0 0 5px 1px gray","& div":{"&:hover":{cursor:"pointer"},"&.active":{},"& strong":{color:"#007bff"}}}}}}},"& .slick-footerrow":{backgroundColor:e.palette.background.default,borderTop:"1px solid silver","& .slick-footerrow-column":{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"5px",borderBottom:"none",fontWeight:"bold","&:last-child":{borderRight:"none"}}}}}));er.NUMBER;class RI{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 is(t)>=is(n)}dateTo(t,n){return is(t)<=is(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 TI=new RI,EI=[sn.Date,sn.Boolean,sn.Number];class PI extends Py{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 c=i[a],u=r[o.getColumnIndex(c)],{filterId:d,group:f,value:p}=n.columnFilters[c];let y=t[u?.field];if(!EI.includes(f)){const w=u?.formatter;w&&(y=w(0,0,y,u,t,o))}if(!TI.passed(y,p,d))return!1}return!0}reset(){this.filter.reset(),this.tableId&&Dr.highlightAllColumns(this.args,this.tableId)}}function kI(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 Ba={exports:{}},DI=Ba.exports,Sp;function OI(){return Sp||(Sp=1,function(e,t){(function(n,o){e.exports=o()})(DI,function(){var n;function o(){return n.apply(null,arguments)}function r(l){n=l}function i(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function a(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function c(l,h){return Object.prototype.hasOwnProperty.call(l,h)}function u(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var h;for(h in l)if(c(l,h))return!1;return!0}function d(l){return l===void 0}function f(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function p(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function y(l,h){var m=[],S,M=l.length;for(S=0;S<M;++S)m.push(h(l[S],S));return m}function w(l,h){for(var m in h)c(h,m)&&(l[m]=h[m]);return c(h,"toString")&&(l.toString=h.toString),c(h,"valueOf")&&(l.valueOf=h.valueOf),l}function b(l,h,m,S){return oh(l,h,m,S,!0).utc()}function g(){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(l){return l._pf==null&&(l._pf=g()),l._pf}var E;Array.prototype.some?E=Array.prototype.some:E=function(l){var h=Object(this),m=h.length>>>0,S;for(S=0;S<m;S++)if(S in h&&l.call(this,h[S],S,h))return!0;return!1};function k(l){var h=null,m=!1,S=l._d&&!isNaN(l._d.getTime());if(S&&(h=v(l),m=E.call(h.parsedDateParts,function(M){return M!=null}),S=h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&m),l._strict&&(S=S&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(l))l._isValid=S;else return S;return l._isValid}function _(l){var h=b(NaN);return l!=null?w(v(h),l):v(h).userInvalidated=!0,h}var x=o.momentProperties=[],C=!1;function O(l,h){var m,S,M,G=x.length;if(d(h._isAMomentObject)||(l._isAMomentObject=h._isAMomentObject),d(h._i)||(l._i=h._i),d(h._f)||(l._f=h._f),d(h._l)||(l._l=h._l),d(h._strict)||(l._strict=h._strict),d(h._tzm)||(l._tzm=h._tzm),d(h._isUTC)||(l._isUTC=h._isUTC),d(h._offset)||(l._offset=h._offset),d(h._pf)||(l._pf=v(h)),d(h._locale)||(l._locale=h._locale),G>0)for(m=0;m<G;m++)S=x[m],M=h[S],d(M)||(l[S]=M);return l}function N(l){O(this,l),this._d=new Date(l._d!=null?l._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,o.updateOffset(this),C=!1)}function A(l){return l instanceof N||l!=null&&l._isAMomentObject!=null}function B(l){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+l)}function R(l,h){var m=!0;return w(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,l),m){var S=[],M,G,ue,Ee=arguments.length;for(G=0;G<Ee;G++){if(M="",typeof arguments[G]=="object"){M+=`
|
|
259
|
+
[`+G+"] ";for(ue in arguments[0])c(arguments[0],ue)&&(M+=ue+": "+arguments[0][ue]+", ");M=M.slice(0,-2)}else M=arguments[G];S.push(M)}B(l+`
|
|
260
|
+
Arguments: `+Array.prototype.slice.call(S).join("")+`
|
|
261
|
+
`+new Error().stack),m=!1}return h.apply(this,arguments)},h)}var $={};function K(l,h){o.deprecationHandler!=null&&o.deprecationHandler(l,h),$[l]||(B(h),$[l]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function X(l){return typeof Function<"u"&&l instanceof Function||Object.prototype.toString.call(l)==="[object Function]"}function q(l){var h,m;for(m in l)c(l,m)&&(h=l[m],X(h)?this[m]=h:this["_"+m]=h);this._config=l,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(l,h){var m=w({},l),S;for(S in h)c(h,S)&&(a(l[S])&&a(h[S])?(m[S]={},w(m[S],l[S]),w(m[S],h[S])):h[S]!=null?m[S]=h[S]:delete m[S]);for(S in l)c(l,S)&&!c(h,S)&&a(l[S])&&(m[S]=w({},m[S]));return m}function z(l){l!=null&&this.set(l)}var ae;Object.keys?ae=Object.keys:ae=function(l){var h,m=[];for(h in l)c(l,h)&&m.push(h);return m};var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D(l,h,m){var S=this._calendar[l]||this._calendar.sameElse;return X(S)?S.call(h,m):S}function j(l,h,m){var S=""+Math.abs(l),M=h-S.length,G=l>=0;return(G?m?"+":"":"-")+Math.pow(10,Math.max(0,M)).toString().substr(1)+S}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 V(l,h,m,S){var M=S;typeof S=="string"&&(M=function(){return this[S]()}),l&&(se[l]=M),h&&(se[h[0]]=function(){return j(M.apply(this,arguments),h[1],h[2])}),m&&(se[m]=function(){return this.localeData().ordinal(M.apply(this,arguments),l)})}function J(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function ee(l){var h=l.match(W),m,S;for(m=0,S=h.length;m<S;m++)se[h[m]]?h[m]=se[h[m]]:h[m]=J(h[m]);return function(M){var G="",ue;for(ue=0;ue<S;ue++)G+=X(h[ue])?h[ue].call(M,l):h[ue];return G}}function te(l,h){return l.isValid()?(h=ce(h,l.localeData()),oe[h]=oe[h]||ee(h),oe[h](l)):l.localeData().invalidDate()}function ce(l,h){var m=5;function S(M){return h.longDateFormat(M)||M}for(ne.lastIndex=0;m>=0&&ne.test(l);)l=l.replace(ne,S),ne.lastIndex=0,m-=1;return l}var ie={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(l){var h=this._longDateFormat[l],m=this._longDateFormat[l.toUpperCase()];return h||!m?h:(this._longDateFormat[l]=m.match(W).map(function(S){return S==="MMMM"||S==="MM"||S==="DD"||S==="dddd"?S.slice(1):S}).join(""),this._longDateFormat[l])}var H="Invalid date";function re(){return this._invalidDate}var Q="%d",fe=/\d{1,2}/;function me(l){return this._ordinal.replace("%d",l)}var Ce={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 ve(l,h,m,S){var M=this._relativeTime[m];return X(M)?M(l,h,m,S):M.replace(/%d/i,l)}function _e(l,h){var m=this._relativeTime[l>0?"future":"past"];return X(m)?m(h):m.replace(/%s/i,h)}var $e={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 Ae(l){return typeof l=="string"?$e[l]||$e[l.toLowerCase()]:void 0}function rt(l){var h={},m,S;for(S in l)c(l,S)&&(m=Ae(S),m&&(h[m]=l[S]));return h}var ke={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 ft(l){var h=[],m;for(m in l)c(l,m)&&h.push({unit:m,priority:ke[m]});return h.sort(function(S,M){return S.priority-M.priority}),h}var Kt=/\d/,st=/\d\d/,Yt=/\d{3}/,Xt=/\d{4}/,on=/[+-]?\d{6}/,Ye=/\d\d?/,tt=/\d\d\d\d?/,Mn=/\d\d\d\d\d\d?/,hn=/\d{1,3}/,Me=/\d{1,4}/,He=/[+-]?\d{1,6}/,vt=/\d+/,ln=/[+-]?\d+/,ao=/Z|[+-]\d\d:?\d\d/gi,pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Qt=/[+-]?\d+(\.\d{1,3})?/,vn=/[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,Jt=/^[1-9]\d?/,Ar=/^([1-9]\d|\d)/,Fr;Fr={};function Re(l,h,m){Fr[l]=X(h)?h:function(S,M){return S&&m?m:h}}function nc(l,h){return c(Fr,l)?Fr[l](h._strict,h._locale):new RegExp(oa(l))}function oa(l){return $n(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,m,S,M,G){return m||S||M||G}))}function $n(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Sn(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function Ue(l){var h=+l,m=0;return h!==0&&isFinite(h)&&(m=Sn(h)),m}var Lr={};function mt(l,h){var m,S=h,M;for(typeof l=="string"&&(l=[l]),f(h)&&(S=function(G,ue){ue[h]=Ue(G)}),M=l.length,m=0;m<M;m++)Lr[l[m]]=S}function dr(l,h){mt(l,function(m,S,M,G){M._w=M._w||{},h(m,M._w,M,G)})}function oc(l,h,m){h!=null&&c(Lr,l)&&Lr[l](h,m._a,m,l)}function $r(l){return l%4===0&&l%100!==0||l%400===0}var rn=0,U=1,pe=2,we=3,Ne=4,Be=5,Je=6,Xe=7,qe=8;V("Y",0,0,function(){var l=this.year();return l<=9999?j(l,4):"+"+l}),V(0,["YY",2],0,function(){return this.year()%100}),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),Re("Y",ln),Re("YY",Ye,st),Re("YYYY",Me,Xt),Re("YYYYY",He,on),Re("YYYYYY",He,on),mt(["YYYYY","YYYYYY"],rn),mt("YYYY",function(l,h){h[rn]=l.length===2?o.parseTwoDigitYear(l):Ue(l)}),mt("YY",function(l,h){h[rn]=o.parseTwoDigitYear(l)}),mt("Y",function(l,h){h[rn]=parseInt(l,10)});function Ut(l){return $r(l)?366:365}o.parseTwoDigitYear=function(l){return Ue(l)+(Ue(l)>68?1900:2e3)};var At=en("FullYear",!0);function Ht(){return $r(this.year())}function en(l,h){return function(m){return m!=null?(lo(this,l,m),o.updateOffset(this,h),this):jn(this,l)}}function jn(l,h){if(!l.isValid())return NaN;var m=l._d,S=l._isUTC;switch(h){case"Milliseconds":return S?m.getUTCMilliseconds():m.getMilliseconds();case"Seconds":return S?m.getUTCSeconds():m.getSeconds();case"Minutes":return S?m.getUTCMinutes():m.getMinutes();case"Hours":return S?m.getUTCHours():m.getHours();case"Date":return S?m.getUTCDate():m.getDate();case"Day":return S?m.getUTCDay():m.getDay();case"Month":return S?m.getUTCMonth():m.getMonth();case"FullYear":return S?m.getUTCFullYear():m.getFullYear();default:return NaN}}function lo(l,h,m){var S,M,G,ue,Ee;if(!(!l.isValid()||isNaN(m))){switch(S=l._d,M=l._isUTC,h){case"Milliseconds":return void(M?S.setUTCMilliseconds(m):S.setMilliseconds(m));case"Seconds":return void(M?S.setUTCSeconds(m):S.setSeconds(m));case"Minutes":return void(M?S.setUTCMinutes(m):S.setMinutes(m));case"Hours":return void(M?S.setUTCHours(m):S.setHours(m));case"Date":return void(M?S.setUTCDate(m):S.setDate(m));case"FullYear":break;default:return}G=m,ue=l.month(),Ee=l.date(),Ee=Ee===29&&ue===1&&!$r(G)?28:Ee,M?S.setUTCFullYear(G,ue,Ee):S.setFullYear(G,ue,Ee)}}function fn(l){return l=Ae(l),X(this[l])?this[l]():this}function Is(l,h){if(typeof l=="object"){l=rt(l);var m=ft(l),S,M=m.length;for(S=0;S<M;S++)this[m[S].unit](l[m[S].unit])}else if(l=Ae(l),X(this[l]))return this[l](h);return this}function rc(l,h){return(l%h+h)%h}var jt;Array.prototype.indexOf?jt=Array.prototype.indexOf:jt=function(l){var h;for(h=0;h<this.length;++h)if(this[h]===l)return h;return-1};function sc(l,h){if(isNaN(l)||isNaN(h))return NaN;var m=rc(h,12);return l+=(h-m)/12,m===1?$r(l)?29:28:31-m%7%2}V("M",["MM",2],"Mo",function(){return this.month()+1}),V("MMM",0,0,function(l){return this.localeData().monthsShort(this,l)}),V("MMMM",0,0,function(l){return this.localeData().months(this,l)}),Re("M",Ye,Jt),Re("MM",Ye,st),Re("MMM",function(l,h){return h.monthsShortRegex(l)}),Re("MMMM",function(l,h){return h.monthsRegex(l)}),mt(["M","MM"],function(l,h){h[U]=Ue(l)-1}),mt(["MMM","MMMM"],function(l,h,m,S){var M=m._locale.monthsParse(l,S,m._strict);M!=null?h[U]=M:v(m).invalidMonth=l});var wv="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Bd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Cv=vn,Sv=vn;function xv(l,h){return l?i(this._months)?this._months[l.month()]:this._months[(this._months.isFormat||Bd).test(h)?"format":"standalone"][l.month()]:i(this._months)?this._months:this._months.standalone}function _v(l,h){return l?i(this._monthsShort)?this._monthsShort[l.month()]:this._monthsShort[Bd.test(h)?"format":"standalone"][l.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Rv(l,h,m){var S,M,G,ue=l.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],S=0;S<12;++S)G=b([2e3,S]),this._shortMonthsParse[S]=this.monthsShort(G,"").toLocaleLowerCase(),this._longMonthsParse[S]=this.months(G,"").toLocaleLowerCase();return m?h==="MMM"?(M=jt.call(this._shortMonthsParse,ue),M!==-1?M:null):(M=jt.call(this._longMonthsParse,ue),M!==-1?M:null):h==="MMM"?(M=jt.call(this._shortMonthsParse,ue),M!==-1?M:(M=jt.call(this._longMonthsParse,ue),M!==-1?M:null)):(M=jt.call(this._longMonthsParse,ue),M!==-1?M:(M=jt.call(this._shortMonthsParse,ue),M!==-1?M:null))}function Tv(l,h,m){var S,M,G;if(this._monthsParseExact)return Rv.call(this,l,h,m);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),S=0;S<12;S++){if(M=b([2e3,S]),m&&!this._longMonthsParse[S]&&(this._longMonthsParse[S]=new RegExp("^"+this.months(M,"").replace(".","")+"$","i"),this._shortMonthsParse[S]=new RegExp("^"+this.monthsShort(M,"").replace(".","")+"$","i")),!m&&!this._monthsParse[S]&&(G="^"+this.months(M,"")+"|^"+this.monthsShort(M,""),this._monthsParse[S]=new RegExp(G.replace(".",""),"i")),m&&h==="MMMM"&&this._longMonthsParse[S].test(l))return S;if(m&&h==="MMM"&&this._shortMonthsParse[S].test(l))return S;if(!m&&this._monthsParse[S].test(l))return S}}function Yd(l,h){if(!l.isValid())return l;if(typeof h=="string"){if(/^\d+$/.test(h))h=Ue(h);else if(h=l.localeData().monthsParse(h),!f(h))return l}var m=h,S=l.date();return S=S<29?S:Math.min(S,sc(l.year(),m)),l._isUTC?l._d.setUTCMonth(m,S):l._d.setMonth(m,S),l}function Ud(l){return l!=null?(Yd(this,l),o.updateOffset(this,!0),this):jn(this,"Month")}function Ev(){return sc(this.year(),this.month())}function Pv(l){return this._monthsParseExact?(c(this,"_monthsRegex")||qd.call(this),l?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Cv),this._monthsShortStrictRegex&&l?this._monthsShortStrictRegex:this._monthsShortRegex)}function kv(l){return this._monthsParseExact?(c(this,"_monthsRegex")||qd.call(this),l?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Sv),this._monthsStrictRegex&&l?this._monthsStrictRegex:this._monthsRegex)}function qd(){function l(Ve,et){return et.length-Ve.length}var h=[],m=[],S=[],M,G,ue,Ee;for(M=0;M<12;M++)G=b([2e3,M]),ue=$n(this.monthsShort(G,"")),Ee=$n(this.months(G,"")),h.push(ue),m.push(Ee),S.push(Ee),S.push(ue);h.sort(l),m.sort(l),S.sort(l),this._monthsRegex=new RegExp("^("+S.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function Dv(l,h,m,S,M,G,ue){var Ee;return l<100&&l>=0?(Ee=new Date(l+400,h,m,S,M,G,ue),isFinite(Ee.getFullYear())&&Ee.setFullYear(l)):Ee=new Date(l,h,m,S,M,G,ue),Ee}function Ns(l){var h,m;return l<100&&l>=0?(m=Array.prototype.slice.call(arguments),m[0]=l+400,h=new Date(Date.UTC.apply(null,m)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(l)):h=new Date(Date.UTC.apply(null,arguments)),h}function ra(l,h,m){var S=7+h-m,M=(7+Ns(l,0,S).getUTCDay()-h)%7;return-M+S-1}function Gd(l,h,m,S,M){var G=(7+m-S)%7,ue=ra(l,S,M),Ee=1+7*(h-1)+G+ue,Ve,et;return Ee<=0?(Ve=l-1,et=Ut(Ve)+Ee):Ee>Ut(l)?(Ve=l+1,et=Ee-Ut(l)):(Ve=l,et=Ee),{year:Ve,dayOfYear:et}}function As(l,h,m){var S=ra(l.year(),h,m),M=Math.floor((l.dayOfYear()-S-1)/7)+1,G,ue;return M<1?(ue=l.year()-1,G=M+Eo(ue,h,m)):M>Eo(l.year(),h,m)?(G=M-Eo(l.year(),h,m),ue=l.year()+1):(ue=l.year(),G=M),{week:G,year:ue}}function Eo(l,h,m){var S=ra(l,h,m),M=ra(l+1,h,m);return(Ut(l)-S+M)/7}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),Re("w",Ye,Jt),Re("ww",Ye,st),Re("W",Ye,Jt),Re("WW",Ye,st),dr(["w","ww","W","WW"],function(l,h,m,S){h[S.substr(0,1)]=Ue(l)});function Ov(l){return As(l,this._week.dow,this._week.doy).week}var Mv={dow:0,doy:6};function Iv(){return this._week.dow}function Nv(){return this._week.doy}function Av(l){var h=this.localeData().week(this);return l==null?h:this.add((l-h)*7,"d")}function Fv(l){var h=As(this,1,4).week;return l==null?h:this.add((l-h)*7,"d")}V("d",0,"do","day"),V("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),V("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),V("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),Re("d",Ye),Re("e",Ye),Re("E",Ye),Re("dd",function(l,h){return h.weekdaysMinRegex(l)}),Re("ddd",function(l,h){return h.weekdaysShortRegex(l)}),Re("dddd",function(l,h){return h.weekdaysRegex(l)}),dr(["dd","ddd","dddd"],function(l,h,m,S){var M=m._locale.weekdaysParse(l,S,m._strict);M!=null?h.d=M:v(m).invalidWeekday=l}),dr(["d","e","E"],function(l,h,m,S){h[S]=Ue(l)});function Lv(l,h){return typeof l!="string"?l:isNaN(l)?(l=h.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function $v(l,h){return typeof l=="string"?h.weekdaysParse(l)%7||7:isNaN(l)?null:l}function ic(l,h){return l.slice(h,7).concat(l.slice(0,h))}var jv="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Kd="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vv="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Wv=vn,Hv=vn,zv=vn;function Bv(l,h){var m=i(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return l===!0?ic(m,this._week.dow):l?m[l.day()]:m}function Yv(l){return l===!0?ic(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function Uv(l){return l===!0?ic(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function qv(l,h,m){var S,M,G,ue=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],S=0;S<7;++S)G=b([2e3,1]).day(S),this._minWeekdaysParse[S]=this.weekdaysMin(G,"").toLocaleLowerCase(),this._shortWeekdaysParse[S]=this.weekdaysShort(G,"").toLocaleLowerCase(),this._weekdaysParse[S]=this.weekdays(G,"").toLocaleLowerCase();return m?h==="dddd"?(M=jt.call(this._weekdaysParse,ue),M!==-1?M:null):h==="ddd"?(M=jt.call(this._shortWeekdaysParse,ue),M!==-1?M:null):(M=jt.call(this._minWeekdaysParse,ue),M!==-1?M:null):h==="dddd"?(M=jt.call(this._weekdaysParse,ue),M!==-1||(M=jt.call(this._shortWeekdaysParse,ue),M!==-1)?M:(M=jt.call(this._minWeekdaysParse,ue),M!==-1?M:null)):h==="ddd"?(M=jt.call(this._shortWeekdaysParse,ue),M!==-1||(M=jt.call(this._weekdaysParse,ue),M!==-1)?M:(M=jt.call(this._minWeekdaysParse,ue),M!==-1?M:null)):(M=jt.call(this._minWeekdaysParse,ue),M!==-1||(M=jt.call(this._weekdaysParse,ue),M!==-1)?M:(M=jt.call(this._shortWeekdaysParse,ue),M!==-1?M:null))}function Gv(l,h,m){var S,M,G;if(this._weekdaysParseExact)return qv.call(this,l,h,m);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),S=0;S<7;S++){if(M=b([2e3,1]).day(S),m&&!this._fullWeekdaysParse[S]&&(this._fullWeekdaysParse[S]=new RegExp("^"+this.weekdays(M,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[S]=new RegExp("^"+this.weekdaysShort(M,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[S]=new RegExp("^"+this.weekdaysMin(M,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[S]||(G="^"+this.weekdays(M,"")+"|^"+this.weekdaysShort(M,"")+"|^"+this.weekdaysMin(M,""),this._weekdaysParse[S]=new RegExp(G.replace(".",""),"i")),m&&h==="dddd"&&this._fullWeekdaysParse[S].test(l))return S;if(m&&h==="ddd"&&this._shortWeekdaysParse[S].test(l))return S;if(m&&h==="dd"&&this._minWeekdaysParse[S].test(l))return S;if(!m&&this._weekdaysParse[S].test(l))return S}}function Kv(l){if(!this.isValid())return l!=null?this:NaN;var h=jn(this,"Day");return l!=null?(l=Lv(l,this.localeData()),this.add(l-h,"d")):h}function Xv(l){if(!this.isValid())return l!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return l==null?h:this.add(l-h,"d")}function Zv(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var h=$v(l,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function Qv(l){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ac.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Wv),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function Jv(l){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ac.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Hv),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function eb(l){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||ac.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zv),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ac(){function l(bn,Mo){return Mo.length-bn.length}var h=[],m=[],S=[],M=[],G,ue,Ee,Ve,et;for(G=0;G<7;G++)ue=b([2e3,1]).day(G),Ee=$n(this.weekdaysMin(ue,"")),Ve=$n(this.weekdaysShort(ue,"")),et=$n(this.weekdays(ue,"")),h.push(Ee),m.push(Ve),S.push(et),M.push(Ee),M.push(Ve),M.push(et);h.sort(l),m.sort(l),S.sort(l),M.sort(l),this._weekdaysRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function lc(){return this.hours()%12||12}function tb(){return this.hours()||24}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,lc),V("k",["kk",2],0,tb),V("hmm",0,0,function(){return""+lc.apply(this)+j(this.minutes(),2)}),V("hmmss",0,0,function(){return""+lc.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),V("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),V("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)});function Xd(l,h){V(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}Xd("a",!0),Xd("A",!1);function Zd(l,h){return h._meridiemParse}Re("a",Zd),Re("A",Zd),Re("H",Ye,Ar),Re("h",Ye,Jt),Re("k",Ye,Jt),Re("HH",Ye,st),Re("hh",Ye,st),Re("kk",Ye,st),Re("hmm",tt),Re("hmmss",Mn),Re("Hmm",tt),Re("Hmmss",Mn),mt(["H","HH"],we),mt(["k","kk"],function(l,h,m){var S=Ue(l);h[we]=S===24?0:S}),mt(["a","A"],function(l,h,m){m._isPm=m._locale.isPM(l),m._meridiem=l}),mt(["h","hh"],function(l,h,m){h[we]=Ue(l),v(m).bigHour=!0}),mt("hmm",function(l,h,m){var S=l.length-2;h[we]=Ue(l.substr(0,S)),h[Ne]=Ue(l.substr(S)),v(m).bigHour=!0}),mt("hmmss",function(l,h,m){var S=l.length-4,M=l.length-2;h[we]=Ue(l.substr(0,S)),h[Ne]=Ue(l.substr(S,2)),h[Be]=Ue(l.substr(M)),v(m).bigHour=!0}),mt("Hmm",function(l,h,m){var S=l.length-2;h[we]=Ue(l.substr(0,S)),h[Ne]=Ue(l.substr(S))}),mt("Hmmss",function(l,h,m){var S=l.length-4,M=l.length-2;h[we]=Ue(l.substr(0,S)),h[Ne]=Ue(l.substr(S,2)),h[Be]=Ue(l.substr(M))});function nb(l){return(l+"").toLowerCase().charAt(0)==="p"}var ob=/[ap]\.?m?\.?/i,rb=en("Hours",!0);function sb(l,h,m){return l>11?m?"pm":"PM":m?"am":"AM"}var Qd={calendar:I,longDateFormat:ie,invalidDate:H,ordinal:Q,dayOfMonthOrdinalParse:fe,relativeTime:Ce,months:wv,monthsShort:zd,week:Mv,weekdays:jv,weekdaysMin:Vv,weekdaysShort:Kd,meridiemParse:ob},Ft={},Fs={},Ls;function ib(l,h){var m,S=Math.min(l.length,h.length);for(m=0;m<S;m+=1)if(l[m]!==h[m])return m;return S}function Jd(l){return l&&l.toLowerCase().replace("_","-")}function ab(l){for(var h=0,m,S,M,G;h<l.length;){for(G=Jd(l[h]).split("-"),m=G.length,S=Jd(l[h+1]),S=S?S.split("-"):null;m>0;){if(M=sa(G.slice(0,m).join("-")),M)return M;if(S&&S.length>=m&&ib(G,S)>=m-1)break;m--}h++}return Ls}function lb(l){return!!(l&&l.match("^[^/\\\\]*$"))}function sa(l){var h=null,m;if(Ft[l]===void 0&&e&&e.exports&&lb(l))try{h=Ls._abbr,m=kI,m("./locale/"+l),Xo(h)}catch{Ft[l]=null}return Ft[l]}function Xo(l,h){var m;return l&&(d(h)?m=Po(l):m=cc(l,h),m?Ls=m:typeof console<"u"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),Ls._abbr}function cc(l,h){if(h!==null){var m,S=Qd;if(h.abbr=l,Ft[l]!=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."),S=Ft[l]._config;else if(h.parentLocale!=null)if(Ft[h.parentLocale]!=null)S=Ft[h.parentLocale]._config;else if(m=sa(h.parentLocale),m!=null)S=m._config;else return Fs[h.parentLocale]||(Fs[h.parentLocale]=[]),Fs[h.parentLocale].push({name:l,config:h}),null;return Ft[l]=new z(Y(S,h)),Fs[l]&&Fs[l].forEach(function(M){cc(M.name,M.config)}),Xo(l),Ft[l]}else return delete Ft[l],null}function cb(l,h){if(h!=null){var m,S,M=Qd;Ft[l]!=null&&Ft[l].parentLocale!=null?Ft[l].set(Y(Ft[l]._config,h)):(S=sa(l),S!=null&&(M=S._config),h=Y(M,h),S==null&&(h.abbr=l),m=new z(h),m.parentLocale=Ft[l],Ft[l]=m),Xo(l)}else Ft[l]!=null&&(Ft[l].parentLocale!=null?(Ft[l]=Ft[l].parentLocale,l===Xo()&&Xo(l)):Ft[l]!=null&&delete Ft[l]);return Ft[l]}function Po(l){var h;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return Ls;if(!i(l)){if(h=sa(l),h)return h;l=[l]}return ab(l)}function ub(){return ae(Ft)}function uc(l){var h,m=l._a;return m&&v(l).overflow===-2&&(h=m[U]<0||m[U]>11?U:m[pe]<1||m[pe]>sc(m[rn],m[U])?pe:m[we]<0||m[we]>24||m[we]===24&&(m[Ne]!==0||m[Be]!==0||m[Je]!==0)?we:m[Ne]<0||m[Ne]>59?Ne:m[Be]<0||m[Be]>59?Be:m[Je]<0||m[Je]>999?Je:-1,v(l)._overflowDayOfYear&&(h<rn||h>pe)&&(h=pe),v(l)._overflowWeeks&&h===-1&&(h=Xe),v(l)._overflowWeekday&&h===-1&&(h=qe),v(l).overflow=h),l}var db=/^\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)?)?$/,hb=/^\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)?)?$/,fb=/Z|[+-]\d\d(?::?\d\d)?/,ia=[["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]],dc=[["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/]],pb=/^\/?Date\((-?\d+)/i,mb=/^(?:(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}))$/,gb={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 eh(l){var h,m,S=l._i,M=db.exec(S)||hb.exec(S),G,ue,Ee,Ve,et=ia.length,bn=dc.length;if(M){for(v(l).iso=!0,h=0,m=et;h<m;h++)if(ia[h][1].exec(M[1])){ue=ia[h][0],G=ia[h][2]!==!1;break}if(ue==null){l._isValid=!1;return}if(M[3]){for(h=0,m=bn;h<m;h++)if(dc[h][1].exec(M[3])){Ee=(M[2]||" ")+dc[h][0];break}if(Ee==null){l._isValid=!1;return}}if(!G&&Ee!=null){l._isValid=!1;return}if(M[4])if(fb.exec(M[4]))Ve="Z";else{l._isValid=!1;return}l._f=ue+(Ee||"")+(Ve||""),fc(l)}else l._isValid=!1}function yb(l,h,m,S,M,G){var ue=[vb(l),zd.indexOf(h),parseInt(m,10),parseInt(S,10),parseInt(M,10)];return G&&ue.push(parseInt(G,10)),ue}function vb(l){var h=parseInt(l,10);return h<=49?2e3+h:h<=999?1900+h:h}function bb(l){return l.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function wb(l,h,m){if(l){var S=Kd.indexOf(l),M=new Date(h[0],h[1],h[2]).getDay();if(S!==M)return v(m).weekdayMismatch=!0,m._isValid=!1,!1}return!0}function Cb(l,h,m){if(l)return gb[l];if(h)return 0;var S=parseInt(m,10),M=S%100,G=(S-M)/100;return G*60+M}function th(l){var h=mb.exec(bb(l._i)),m;if(h){if(m=yb(h[4],h[3],h[2],h[5],h[6],h[7]),!wb(h[1],m,l))return;l._a=m,l._tzm=Cb(h[8],h[9],h[10]),l._d=Ns.apply(null,l._a),l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),v(l).rfc2822=!0}else l._isValid=!1}function Sb(l){var h=pb.exec(l._i);if(h!==null){l._d=new Date(+h[1]);return}if(eh(l),l._isValid===!1)delete l._isValid;else return;if(th(l),l._isValid===!1)delete l._isValid;else return;l._strict?l._isValid=!1:o.createFromInputFallback(l)}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(l){l._d=new Date(l._i+(l._useUTC?" UTC":""))});function jr(l,h,m){return l??h??m}function xb(l){var h=new Date(o.now());return l._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function hc(l){var h,m,S=[],M,G,ue;if(!l._d){for(M=xb(l),l._w&&l._a[pe]==null&&l._a[U]==null&&_b(l),l._dayOfYear!=null&&(ue=jr(l._a[rn],M[rn]),(l._dayOfYear>Ut(ue)||l._dayOfYear===0)&&(v(l)._overflowDayOfYear=!0),m=Ns(ue,0,l._dayOfYear),l._a[U]=m.getUTCMonth(),l._a[pe]=m.getUTCDate()),h=0;h<3&&l._a[h]==null;++h)l._a[h]=S[h]=M[h];for(;h<7;h++)l._a[h]=S[h]=l._a[h]==null?h===2?1:0:l._a[h];l._a[we]===24&&l._a[Ne]===0&&l._a[Be]===0&&l._a[Je]===0&&(l._nextDay=!0,l._a[we]=0),l._d=(l._useUTC?Ns:Dv).apply(null,S),G=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[we]=24),l._w&&typeof l._w.d<"u"&&l._w.d!==G&&(v(l).weekdayMismatch=!0)}}function _b(l){var h,m,S,M,G,ue,Ee,Ve,et;h=l._w,h.GG!=null||h.W!=null||h.E!=null?(G=1,ue=4,m=jr(h.GG,l._a[rn],As(Dt(),1,4).year),S=jr(h.W,1),M=jr(h.E,1),(M<1||M>7)&&(Ve=!0)):(G=l._locale._week.dow,ue=l._locale._week.doy,et=As(Dt(),G,ue),m=jr(h.gg,l._a[rn],et.year),S=jr(h.w,et.week),h.d!=null?(M=h.d,(M<0||M>6)&&(Ve=!0)):h.e!=null?(M=h.e+G,(h.e<0||h.e>6)&&(Ve=!0)):M=G),S<1||S>Eo(m,G,ue)?v(l)._overflowWeeks=!0:Ve!=null?v(l)._overflowWeekday=!0:(Ee=Gd(m,S,M,G,ue),l._a[rn]=Ee.year,l._dayOfYear=Ee.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function fc(l){if(l._f===o.ISO_8601){eh(l);return}if(l._f===o.RFC_2822){th(l);return}l._a=[],v(l).empty=!0;var h=""+l._i,m,S,M,G,ue,Ee=h.length,Ve=0,et,bn;for(M=ce(l._f,l._locale).match(W)||[],bn=M.length,m=0;m<bn;m++)G=M[m],S=(h.match(nc(G,l))||[])[0],S&&(ue=h.substr(0,h.indexOf(S)),ue.length>0&&v(l).unusedInput.push(ue),h=h.slice(h.indexOf(S)+S.length),Ve+=S.length),se[G]?(S?v(l).empty=!1:v(l).unusedTokens.push(G),oc(G,S,l)):l._strict&&!S&&v(l).unusedTokens.push(G);v(l).charsLeftOver=Ee-Ve,h.length>0&&v(l).unusedInput.push(h),l._a[we]<=12&&v(l).bigHour===!0&&l._a[we]>0&&(v(l).bigHour=void 0),v(l).parsedDateParts=l._a.slice(0),v(l).meridiem=l._meridiem,l._a[we]=Rb(l._locale,l._a[we],l._meridiem),et=v(l).era,et!==null&&(l._a[rn]=l._locale.erasConvertYear(et,l._a[rn])),hc(l),uc(l)}function Rb(l,h,m){var S;return m==null?h:l.meridiemHour!=null?l.meridiemHour(h,m):(l.isPM!=null&&(S=l.isPM(m),S&&h<12&&(h+=12),!S&&h===12&&(h=0)),h)}function Tb(l){var h,m,S,M,G,ue,Ee=!1,Ve=l._f.length;if(Ve===0){v(l).invalidFormat=!0,l._d=new Date(NaN);return}for(M=0;M<Ve;M++)G=0,ue=!1,h=O({},l),l._useUTC!=null&&(h._useUTC=l._useUTC),h._f=l._f[M],fc(h),k(h)&&(ue=!0),G+=v(h).charsLeftOver,G+=v(h).unusedTokens.length*10,v(h).score=G,Ee?G<S&&(S=G,m=h):(S==null||G<S||ue)&&(S=G,m=h,ue&&(Ee=!0));w(l,m||h)}function Eb(l){if(!l._d){var h=rt(l._i),m=h.day===void 0?h.date:h.day;l._a=y([h.year,h.month,m,h.hour,h.minute,h.second,h.millisecond],function(S){return S&&parseInt(S,10)}),hc(l)}}function Pb(l){var h=new N(uc(nh(l)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function nh(l){var h=l._i,m=l._f;return l._locale=l._locale||Po(l._l),h===null||m===void 0&&h===""?_({nullInput:!0}):(typeof h=="string"&&(l._i=h=l._locale.preparse(h)),A(h)?new N(uc(h)):(p(h)?l._d=h:i(m)?Tb(l):m?fc(l):kb(l),k(l)||(l._d=null),l))}function kb(l){var h=l._i;d(h)?l._d=new Date(o.now()):p(h)?l._d=new Date(h.valueOf()):typeof h=="string"?Sb(l):i(h)?(l._a=y(h.slice(0),function(m){return parseInt(m,10)}),hc(l)):a(h)?Eb(l):f(h)?l._d=new Date(h):o.createFromInputFallback(l)}function oh(l,h,m,S,M){var G={};return(h===!0||h===!1)&&(S=h,h=void 0),(m===!0||m===!1)&&(S=m,m=void 0),(a(l)&&u(l)||i(l)&&l.length===0)&&(l=void 0),G._isAMomentObject=!0,G._useUTC=G._isUTC=M,G._l=m,G._i=l,G._f=h,G._strict=S,Pb(G)}function Dt(l,h,m,S){return oh(l,h,m,S,!1)}var Db=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=Dt.apply(null,arguments);return this.isValid()&&l.isValid()?l<this?this:l:_()}),Ob=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=Dt.apply(null,arguments);return this.isValid()&&l.isValid()?l>this?this:l:_()});function rh(l,h){var m,S;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Dt();for(m=h[0],S=1;S<h.length;++S)(!h[S].isValid()||h[S][l](m))&&(m=h[S]);return m}function Mb(){var l=[].slice.call(arguments,0);return rh("isBefore",l)}function Ib(){var l=[].slice.call(arguments,0);return rh("isAfter",l)}var Nb=function(){return Date.now?Date.now():+new Date},$s=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ab(l){var h,m=!1,S,M=$s.length;for(h in l)if(c(l,h)&&!(jt.call($s,h)!==-1&&(l[h]==null||!isNaN(l[h]))))return!1;for(S=0;S<M;++S)if(l[$s[S]]){if(m)return!1;parseFloat(l[$s[S]])!==Ue(l[$s[S]])&&(m=!0)}return!0}function Fb(){return this._isValid}function Lb(){return Jn(NaN)}function aa(l){var h=rt(l),m=h.year||0,S=h.quarter||0,M=h.month||0,G=h.week||h.isoWeek||0,ue=h.day||0,Ee=h.hour||0,Ve=h.minute||0,et=h.second||0,bn=h.millisecond||0;this._isValid=Ab(h),this._milliseconds=+bn+et*1e3+Ve*6e4+Ee*1e3*60*60,this._days=+ue+G*7,this._months=+M+S*3+m*12,this._data={},this._locale=Po(),this._bubble()}function la(l){return l instanceof aa}function pc(l){return l<0?Math.round(-1*l)*-1:Math.round(l)}function $b(l,h,m){var S=Math.min(l.length,h.length),M=Math.abs(l.length-h.length),G=0,ue;for(ue=0;ue<S;ue++)Ue(l[ue])!==Ue(h[ue])&&G++;return G+M}function sh(l,h){V(l,0,0,function(){var m=this.utcOffset(),S="+";return m<0&&(m=-m,S="-"),S+j(~~(m/60),2)+h+j(~~m%60,2)})}sh("Z",":"),sh("ZZ",""),Re("Z",pt),Re("ZZ",pt),mt(["Z","ZZ"],function(l,h,m){m._useUTC=!0,m._tzm=mc(pt,l)});var jb=/([\+\-]|\d\d)/gi;function mc(l,h){var m=(h||"").match(l),S,M,G;return m===null?null:(S=m[m.length-1]||[],M=(S+"").match(jb)||["-",0,0],G=+(M[1]*60)+Ue(M[2]),G===0?0:M[0]==="+"?G:-G)}function gc(l,h){var m,S;return h._isUTC?(m=h.clone(),S=(A(l)||p(l)?l.valueOf():Dt(l).valueOf())-m.valueOf(),m._d.setTime(m._d.valueOf()+S),o.updateOffset(m,!1),m):Dt(l).local()}function yc(l){return-Math.round(l._d.getTimezoneOffset())}o.updateOffset=function(){};function Vb(l,h,m){var S=this._offset||0,M;if(!this.isValid())return l!=null?this:NaN;if(l!=null){if(typeof l=="string"){if(l=mc(pt,l),l===null)return this}else Math.abs(l)<16&&!m&&(l=l*60);return!this._isUTC&&h&&(M=yc(this)),this._offset=l,this._isUTC=!0,M!=null&&this.add(M,"m"),S!==l&&(!h||this._changeInProgress?ch(this,Jn(l-S,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?S:yc(this)}function Wb(l,h){return l!=null?(typeof l!="string"&&(l=-l),this.utcOffset(l,h),this):-this.utcOffset()}function Hb(l){return this.utcOffset(0,l)}function zb(l){return this._isUTC&&(this.utcOffset(0,l),this._isUTC=!1,l&&this.subtract(yc(this),"m")),this}function Bb(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var l=mc(ao,this._i);l!=null?this.utcOffset(l):this.utcOffset(0,!0)}return this}function Yb(l){return this.isValid()?(l=l?Dt(l).utcOffset():0,(this.utcOffset()-l)%60===0):!1}function Ub(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qb(){if(!d(this._isDSTShifted))return this._isDSTShifted;var l={},h;return O(l,this),l=nh(l),l._a?(h=l._isUTC?b(l._a):Dt(l._a),this._isDSTShifted=this.isValid()&&$b(l._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Gb(){return this.isValid()?!this._isUTC:!1}function Kb(){return this.isValid()?this._isUTC:!1}function ih(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Xb=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Zb=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jn(l,h){var m=l,S=null,M,G,ue;return la(l)?m={ms:l._milliseconds,d:l._days,M:l._months}:f(l)||!isNaN(+l)?(m={},h?m[h]=+l:m.milliseconds=+l):(S=Xb.exec(l))?(M=S[1]==="-"?-1:1,m={y:0,d:Ue(S[pe])*M,h:Ue(S[we])*M,m:Ue(S[Ne])*M,s:Ue(S[Be])*M,ms:Ue(pc(S[Je]*1e3))*M}):(S=Zb.exec(l))?(M=S[1]==="-"?-1:1,m={y:hr(S[2],M),M:hr(S[3],M),w:hr(S[4],M),d:hr(S[5],M),h:hr(S[6],M),m:hr(S[7],M),s:hr(S[8],M)}):m==null?m={}:typeof m=="object"&&("from"in m||"to"in m)&&(ue=Qb(Dt(m.from),Dt(m.to)),m={},m.ms=ue.milliseconds,m.M=ue.months),G=new aa(m),la(l)&&c(l,"_locale")&&(G._locale=l._locale),la(l)&&c(l,"_isValid")&&(G._isValid=l._isValid),G}Jn.fn=aa.prototype,Jn.invalid=Lb;function hr(l,h){var m=l&&parseFloat(l.replace(",","."));return(isNaN(m)?0:m)*h}function ah(l,h){var m={};return m.months=h.month()-l.month()+(h.year()-l.year())*12,l.clone().add(m.months,"M").isAfter(h)&&--m.months,m.milliseconds=+h-+l.clone().add(m.months,"M"),m}function Qb(l,h){var m;return l.isValid()&&h.isValid()?(h=gc(h,l),l.isBefore(h)?m=ah(l,h):(m=ah(h,l),m.milliseconds=-m.milliseconds,m.months=-m.months),m):{milliseconds:0,months:0}}function lh(l,h){return function(m,S){var M,G;return S!==null&&!isNaN(+S)&&(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."),G=m,m=S,S=G),M=Jn(m,S),ch(this,M,l),this}}function ch(l,h,m,S){var M=h._milliseconds,G=pc(h._days),ue=pc(h._months);l.isValid()&&(S=S??!0,ue&&Yd(l,jn(l,"Month")+ue*m),G&&lo(l,"Date",jn(l,"Date")+G*m),M&&l._d.setTime(l._d.valueOf()+M*m),S&&o.updateOffset(l,G||ue))}var Jb=lh(1,"add"),ew=lh(-1,"subtract");function uh(l){return typeof l=="string"||l instanceof String}function tw(l){return A(l)||p(l)||uh(l)||f(l)||ow(l)||nw(l)||l===null||l===void 0}function nw(l){var h=a(l)&&!u(l),m=!1,S=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],M,G,ue=S.length;for(M=0;M<ue;M+=1)G=S[M],m=m||c(l,G);return h&&m}function ow(l){var h=i(l),m=!1;return h&&(m=l.filter(function(S){return!f(S)&&uh(l)}).length===0),h&&m}function rw(l){var h=a(l)&&!u(l),m=!1,S=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],M,G;for(M=0;M<S.length;M+=1)G=S[M],m=m||c(l,G);return h&&m}function sw(l,h){var m=l.diff(h,"days",!0);return m<-6?"sameElse":m<-1?"lastWeek":m<0?"lastDay":m<1?"sameDay":m<2?"nextDay":m<7?"nextWeek":"sameElse"}function iw(l,h){arguments.length===1&&(arguments[0]?tw(arguments[0])?(l=arguments[0],h=void 0):rw(arguments[0])&&(h=arguments[0],l=void 0):(l=void 0,h=void 0));var m=l||Dt(),S=gc(m,this).startOf("day"),M=o.calendarFormat(this,S)||"sameElse",G=h&&(X(h[M])?h[M].call(this,m):h[M]);return this.format(G||this.localeData().calendar(M,this,Dt(m)))}function aw(){return new N(this)}function lw(l,h){var m=A(l)?l:Dt(l);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()>m.valueOf():m.valueOf()<this.clone().startOf(h).valueOf()):!1}function cw(l,h){var m=A(l)?l:Dt(l);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()<m.valueOf():this.clone().endOf(h).valueOf()<m.valueOf()):!1}function uw(l,h,m,S){var M=A(l)?l:Dt(l),G=A(h)?h:Dt(h);return this.isValid()&&M.isValid()&&G.isValid()?(S=S||"()",(S[0]==="("?this.isAfter(M,m):!this.isBefore(M,m))&&(S[1]===")"?this.isBefore(G,m):!this.isAfter(G,m))):!1}function dw(l,h){var m=A(l)?l:Dt(l),S;return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()===m.valueOf():(S=m.valueOf(),this.clone().startOf(h).valueOf()<=S&&S<=this.clone().endOf(h).valueOf())):!1}function hw(l,h){return this.isSame(l,h)||this.isAfter(l,h)}function fw(l,h){return this.isSame(l,h)||this.isBefore(l,h)}function pw(l,h,m){var S,M,G;if(!this.isValid())return NaN;if(S=gc(l,this),!S.isValid())return NaN;switch(M=(S.utcOffset()-this.utcOffset())*6e4,h=Ae(h),h){case"year":G=ca(this,S)/12;break;case"month":G=ca(this,S);break;case"quarter":G=ca(this,S)/3;break;case"second":G=(this-S)/1e3;break;case"minute":G=(this-S)/6e4;break;case"hour":G=(this-S)/36e5;break;case"day":G=(this-S-M)/864e5;break;case"week":G=(this-S-M)/6048e5;break;default:G=this-S}return m?G:Sn(G)}function ca(l,h){if(l.date()<h.date())return-ca(h,l);var m=(h.year()-l.year())*12+(h.month()-l.month()),S=l.clone().add(m,"months"),M,G;return h-S<0?(M=l.clone().add(m-1,"months"),G=(h-S)/(S-M)):(M=l.clone().add(m+1,"months"),G=(h-S)/(M-S)),-(m+G)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function mw(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function gw(l){if(!this.isValid())return null;var h=l!==!0,m=h?this.clone().utc():this;return m.year()<0||m.year()>9999?te(m,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):X(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",te(m,"Z")):te(m,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yw(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",h="",m,S,M,G;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),m="["+l+'("]',S=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",M="-MM-DD[T]HH:mm:ss.SSS",G=h+'[")]',this.format(m+S+M+G)}function vw(l){l||(l=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,l);return this.localeData().postformat(h)}function bw(l,h){return this.isValid()&&(A(l)&&l.isValid()||Dt(l).isValid())?Jn({to:this,from:l}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function ww(l){return this.from(Dt(),l)}function Cw(l,h){return this.isValid()&&(A(l)&&l.isValid()||Dt(l).isValid())?Jn({from:this,to:l}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function Sw(l){return this.to(Dt(),l)}function dh(l){var h;return l===void 0?this._locale._abbr:(h=Po(l),h!=null&&(this._locale=h),this)}var hh=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(l){return l===void 0?this.localeData():this.locale(l)});function fh(){return this._locale}var ua=1e3,Vr=60*ua,da=60*Vr,ph=(365*400+97)*24*da;function Wr(l,h){return(l%h+h)%h}function mh(l,h,m){return l<100&&l>=0?new Date(l+400,h,m)-ph:new Date(l,h,m).valueOf()}function gh(l,h,m){return l<100&&l>=0?Date.UTC(l+400,h,m)-ph:Date.UTC(l,h,m)}function xw(l){var h,m;if(l=Ae(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?gh:mh,l){case"year":h=m(this.year(),0,1);break;case"quarter":h=m(this.year(),this.month()-this.month()%3,1);break;case"month":h=m(this.year(),this.month(),1);break;case"week":h=m(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=m(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=m(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=Wr(h+(this._isUTC?0:this.utcOffset()*Vr),da);break;case"minute":h=this._d.valueOf(),h-=Wr(h,Vr);break;case"second":h=this._d.valueOf(),h-=Wr(h,ua);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function _w(l){var h,m;if(l=Ae(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?gh:mh,l){case"year":h=m(this.year()+1,0,1)-1;break;case"quarter":h=m(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=m(this.year(),this.month()+1,1)-1;break;case"week":h=m(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=m(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=m(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=da-Wr(h+(this._isUTC?0:this.utcOffset()*Vr),da)-1;break;case"minute":h=this._d.valueOf(),h+=Vr-Wr(h,Vr)-1;break;case"second":h=this._d.valueOf(),h+=ua-Wr(h,ua)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function Rw(){return this._d.valueOf()-(this._offset||0)*6e4}function Tw(){return Math.floor(this.valueOf()/1e3)}function Ew(){return new Date(this.valueOf())}function Pw(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function kw(){var l=this;return{years:l.year(),months:l.month(),date:l.date(),hours:l.hours(),minutes:l.minutes(),seconds:l.seconds(),milliseconds:l.milliseconds()}}function Dw(){return this.isValid()?this.toISOString():null}function Ow(){return k(this)}function Mw(){return w({},v(this))}function Iw(){return v(this).overflow}function Nw(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}V("N",0,0,"eraAbbr"),V("NN",0,0,"eraAbbr"),V("NNN",0,0,"eraAbbr"),V("NNNN",0,0,"eraName"),V("NNNNN",0,0,"eraNarrow"),V("y",["y",1],"yo","eraYear"),V("y",["yy",2],0,"eraYear"),V("y",["yyy",3],0,"eraYear"),V("y",["yyyy",4],0,"eraYear"),Re("N",vc),Re("NN",vc),Re("NNN",vc),Re("NNNN",Yw),Re("NNNNN",Uw),mt(["N","NN","NNN","NNNN","NNNNN"],function(l,h,m,S){var M=m._locale.erasParse(l,S,m._strict);M?v(m).era=M:v(m).invalidEra=l}),Re("y",vt),Re("yy",vt),Re("yyy",vt),Re("yyyy",vt),Re("yo",qw),mt(["y","yy","yyy","yyyy"],rn),mt(["yo"],function(l,h,m,S){var M;m._locale._eraYearOrdinalRegex&&(M=l.match(m._locale._eraYearOrdinalRegex)),m._locale.eraYearOrdinalParse?h[rn]=m._locale.eraYearOrdinalParse(l,M):h[rn]=parseInt(l,10)});function Aw(l,h){var m,S,M,G=this._eras||Po("en")._eras;for(m=0,S=G.length;m<S;++m){switch(typeof G[m].since){case"string":M=o(G[m].since).startOf("day"),G[m].since=M.valueOf();break}switch(typeof G[m].until){case"undefined":G[m].until=1/0;break;case"string":M=o(G[m].until).startOf("day").valueOf(),G[m].until=M.valueOf();break}}return G}function Fw(l,h,m){var S,M,G=this.eras(),ue,Ee,Ve;for(l=l.toUpperCase(),S=0,M=G.length;S<M;++S)if(ue=G[S].name.toUpperCase(),Ee=G[S].abbr.toUpperCase(),Ve=G[S].narrow.toUpperCase(),m)switch(h){case"N":case"NN":case"NNN":if(Ee===l)return G[S];break;case"NNNN":if(ue===l)return G[S];break;case"NNNNN":if(Ve===l)return G[S];break}else if([ue,Ee,Ve].indexOf(l)>=0)return G[S]}function Lw(l,h){var m=l.since<=l.until?1:-1;return h===void 0?o(l.since).year():o(l.since).year()+(h-l.offset)*m}function $w(){var l,h,m,S=this.localeData().eras();for(l=0,h=S.length;l<h;++l)if(m=this.clone().startOf("day").valueOf(),S[l].since<=m&&m<=S[l].until||S[l].until<=m&&m<=S[l].since)return S[l].name;return""}function jw(){var l,h,m,S=this.localeData().eras();for(l=0,h=S.length;l<h;++l)if(m=this.clone().startOf("day").valueOf(),S[l].since<=m&&m<=S[l].until||S[l].until<=m&&m<=S[l].since)return S[l].narrow;return""}function Vw(){var l,h,m,S=this.localeData().eras();for(l=0,h=S.length;l<h;++l)if(m=this.clone().startOf("day").valueOf(),S[l].since<=m&&m<=S[l].until||S[l].until<=m&&m<=S[l].since)return S[l].abbr;return""}function Ww(){var l,h,m,S,M=this.localeData().eras();for(l=0,h=M.length;l<h;++l)if(m=M[l].since<=M[l].until?1:-1,S=this.clone().startOf("day").valueOf(),M[l].since<=S&&S<=M[l].until||M[l].until<=S&&S<=M[l].since)return(this.year()-o(M[l].since).year())*m+M[l].offset;return this.year()}function Hw(l){return c(this,"_erasNameRegex")||bc.call(this),l?this._erasNameRegex:this._erasRegex}function zw(l){return c(this,"_erasAbbrRegex")||bc.call(this),l?this._erasAbbrRegex:this._erasRegex}function Bw(l){return c(this,"_erasNarrowRegex")||bc.call(this),l?this._erasNarrowRegex:this._erasRegex}function vc(l,h){return h.erasAbbrRegex(l)}function Yw(l,h){return h.erasNameRegex(l)}function Uw(l,h){return h.erasNarrowRegex(l)}function qw(l,h){return h._eraYearOrdinalRegex||vt}function bc(){var l=[],h=[],m=[],S=[],M,G,ue,Ee,Ve,et=this.eras();for(M=0,G=et.length;M<G;++M)ue=$n(et[M].name),Ee=$n(et[M].abbr),Ve=$n(et[M].narrow),h.push(ue),l.push(Ee),m.push(Ve),S.push(ue),S.push(Ee),S.push(Ve);this._erasRegex=new RegExp("^("+S.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+m.join("|")+")","i")}V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ha(l,h){V(0,[l,l.length],0,h)}ha("gggg","weekYear"),ha("ggggg","weekYear"),ha("GGGG","isoWeekYear"),ha("GGGGG","isoWeekYear"),Re("G",ln),Re("g",ln),Re("GG",Ye,st),Re("gg",Ye,st),Re("GGGG",Me,Xt),Re("gggg",Me,Xt),Re("GGGGG",He,on),Re("ggggg",He,on),dr(["gggg","ggggg","GGGG","GGGGG"],function(l,h,m,S){h[S.substr(0,2)]=Ue(l)}),dr(["gg","GG"],function(l,h,m,S){h[S]=o.parseTwoDigitYear(l)});function Gw(l){return yh.call(this,l,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Kw(l){return yh.call(this,l,this.isoWeek(),this.isoWeekday(),1,4)}function Xw(){return Eo(this.year(),1,4)}function Zw(){return Eo(this.isoWeekYear(),1,4)}function Qw(){var l=this.localeData()._week;return Eo(this.year(),l.dow,l.doy)}function Jw(){var l=this.localeData()._week;return Eo(this.weekYear(),l.dow,l.doy)}function yh(l,h,m,S,M){var G;return l==null?As(this,S,M).year:(G=Eo(l,S,M),h>G&&(h=G),e0.call(this,l,h,m,S,M))}function e0(l,h,m,S,M){var G=Gd(l,h,m,S,M),ue=Ns(G.year,0,G.dayOfYear);return this.year(ue.getUTCFullYear()),this.month(ue.getUTCMonth()),this.date(ue.getUTCDate()),this}V("Q",0,"Qo","quarter"),Re("Q",Kt),mt("Q",function(l,h){h[U]=(Ue(l)-1)*3});function t0(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}V("D",["DD",2],"Do","date"),Re("D",Ye,Jt),Re("DD",Ye,st),Re("Do",function(l,h){return l?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],pe),mt("Do",function(l,h){h[pe]=Ue(l.match(Ye)[0])});var vh=en("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),Re("DDD",hn),Re("DDDD",Yt),mt(["DDD","DDDD"],function(l,h,m){m._dayOfYear=Ue(l)});function n0(l){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?h:this.add(l-h,"d")}V("m",["mm",2],0,"minute"),Re("m",Ye,Ar),Re("mm",Ye,st),mt(["m","mm"],Ne);var o0=en("Minutes",!1);V("s",["ss",2],0,"second"),Re("s",Ye,Ar),Re("ss",Ye,st),mt(["s","ss"],Be);var r0=en("Seconds",!1);V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return this.millisecond()*10}),V(0,["SSSSS",5],0,function(){return this.millisecond()*100}),V(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),V(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),V(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),V(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Re("S",hn,Kt),Re("SS",hn,st),Re("SSS",hn,Yt);var Zo,bh;for(Zo="SSSS";Zo.length<=9;Zo+="S")Re(Zo,vt);function s0(l,h){h[Je]=Ue(("0."+l)*1e3)}for(Zo="S";Zo.length<=9;Zo+="S")mt(Zo,s0);bh=en("Milliseconds",!1),V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");function i0(){return this._isUTC?"UTC":""}function a0(){return this._isUTC?"Coordinated Universal Time":""}var ge=N.prototype;ge.add=Jb,ge.calendar=iw,ge.clone=aw,ge.diff=pw,ge.endOf=_w,ge.format=vw,ge.from=bw,ge.fromNow=ww,ge.to=Cw,ge.toNow=Sw,ge.get=fn,ge.invalidAt=Iw,ge.isAfter=lw,ge.isBefore=cw,ge.isBetween=uw,ge.isSame=dw,ge.isSameOrAfter=hw,ge.isSameOrBefore=fw,ge.isValid=Ow,ge.lang=hh,ge.locale=dh,ge.localeData=fh,ge.max=Ob,ge.min=Db,ge.parsingFlags=Mw,ge.set=Is,ge.startOf=xw,ge.subtract=ew,ge.toArray=Pw,ge.toObject=kw,ge.toDate=Ew,ge.toISOString=gw,ge.inspect=yw,typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ge.toJSON=Dw,ge.toString=mw,ge.unix=Tw,ge.valueOf=Rw,ge.creationData=Nw,ge.eraName=$w,ge.eraNarrow=jw,ge.eraAbbr=Vw,ge.eraYear=Ww,ge.year=At,ge.isLeapYear=Ht,ge.weekYear=Gw,ge.isoWeekYear=Kw,ge.quarter=ge.quarters=t0,ge.month=Ud,ge.daysInMonth=Ev,ge.week=ge.weeks=Av,ge.isoWeek=ge.isoWeeks=Fv,ge.weeksInYear=Qw,ge.weeksInWeekYear=Jw,ge.isoWeeksInYear=Xw,ge.isoWeeksInISOWeekYear=Zw,ge.date=vh,ge.day=ge.days=Kv,ge.weekday=Xv,ge.isoWeekday=Zv,ge.dayOfYear=n0,ge.hour=ge.hours=rb,ge.minute=ge.minutes=o0,ge.second=ge.seconds=r0,ge.millisecond=ge.milliseconds=bh,ge.utcOffset=Vb,ge.utc=Hb,ge.local=zb,ge.parseZone=Bb,ge.hasAlignedHourOffset=Yb,ge.isDST=Ub,ge.isLocal=Gb,ge.isUtcOffset=Kb,ge.isUtc=ih,ge.isUTC=ih,ge.zoneAbbr=i0,ge.zoneName=a0,ge.dates=R("dates accessor is deprecated. Use date instead.",vh),ge.months=R("months accessor is deprecated. Use month instead",Ud),ge.years=R("years accessor is deprecated. Use year instead",At),ge.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Wb),ge.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qb);function l0(l){return Dt(l*1e3)}function c0(){return Dt.apply(null,arguments).parseZone()}function wh(l){return l}var lt=z.prototype;lt.calendar=D,lt.longDateFormat=he,lt.invalidDate=re,lt.ordinal=me,lt.preparse=wh,lt.postformat=wh,lt.relativeTime=ve,lt.pastFuture=_e,lt.set=q,lt.eras=Aw,lt.erasParse=Fw,lt.erasConvertYear=Lw,lt.erasAbbrRegex=zw,lt.erasNameRegex=Hw,lt.erasNarrowRegex=Bw,lt.months=xv,lt.monthsShort=_v,lt.monthsParse=Tv,lt.monthsRegex=kv,lt.monthsShortRegex=Pv,lt.week=Ov,lt.firstDayOfYear=Nv,lt.firstDayOfWeek=Iv,lt.weekdays=Bv,lt.weekdaysMin=Uv,lt.weekdaysShort=Yv,lt.weekdaysParse=Gv,lt.weekdaysRegex=Qv,lt.weekdaysShortRegex=Jv,lt.weekdaysMinRegex=eb,lt.isPM=nb,lt.meridiem=sb;function fa(l,h,m,S){var M=Po(),G=b().set(S,h);return M[m](G,l)}function Ch(l,h,m){if(f(l)&&(h=l,l=void 0),l=l||"",h!=null)return fa(l,h,m,"month");var S,M=[];for(S=0;S<12;S++)M[S]=fa(l,S,m,"month");return M}function wc(l,h,m,S){typeof l=="boolean"?(f(h)&&(m=h,h=void 0),h=h||""):(h=l,m=h,l=!1,f(h)&&(m=h,h=void 0),h=h||"");var M=Po(),G=l?M._week.dow:0,ue,Ee=[];if(m!=null)return fa(h,(m+G)%7,S,"day");for(ue=0;ue<7;ue++)Ee[ue]=fa(h,(ue+G)%7,S,"day");return Ee}function u0(l,h){return Ch(l,h,"months")}function d0(l,h){return Ch(l,h,"monthsShort")}function h0(l,h,m){return wc(l,h,m,"weekdays")}function f0(l,h,m){return wc(l,h,m,"weekdaysShort")}function p0(l,h,m){return wc(l,h,m,"weekdaysMin")}Xo("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(l){var h=l%10,m=Ue(l%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return l+m}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",Xo),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Po);var ko=Math.abs;function m0(){var l=this._data;return this._milliseconds=ko(this._milliseconds),this._days=ko(this._days),this._months=ko(this._months),l.milliseconds=ko(l.milliseconds),l.seconds=ko(l.seconds),l.minutes=ko(l.minutes),l.hours=ko(l.hours),l.months=ko(l.months),l.years=ko(l.years),this}function Sh(l,h,m,S){var M=Jn(h,m);return l._milliseconds+=S*M._milliseconds,l._days+=S*M._days,l._months+=S*M._months,l._bubble()}function g0(l,h){return Sh(this,l,h,1)}function y0(l,h){return Sh(this,l,h,-1)}function xh(l){return l<0?Math.floor(l):Math.ceil(l)}function v0(){var l=this._milliseconds,h=this._days,m=this._months,S=this._data,M,G,ue,Ee,Ve;return l>=0&&h>=0&&m>=0||l<=0&&h<=0&&m<=0||(l+=xh(Cc(m)+h)*864e5,h=0,m=0),S.milliseconds=l%1e3,M=Sn(l/1e3),S.seconds=M%60,G=Sn(M/60),S.minutes=G%60,ue=Sn(G/60),S.hours=ue%24,h+=Sn(ue/24),Ve=Sn(_h(h)),m+=Ve,h-=xh(Cc(Ve)),Ee=Sn(m/12),m%=12,S.days=h,S.months=m,S.years=Ee,this}function _h(l){return l*4800/146097}function Cc(l){return l*146097/4800}function b0(l){if(!this.isValid())return NaN;var h,m,S=this._milliseconds;if(l=Ae(l),l==="month"||l==="quarter"||l==="year")switch(h=this._days+S/864e5,m=this._months+_h(h),l){case"month":return m;case"quarter":return m/3;case"year":return m/12}else switch(h=this._days+Math.round(Cc(this._months)),l){case"week":return h/7+S/6048e5;case"day":return h+S/864e5;case"hour":return h*24+S/36e5;case"minute":return h*1440+S/6e4;case"second":return h*86400+S/1e3;case"millisecond":return Math.floor(h*864e5)+S;default:throw new Error("Unknown unit "+l)}}function Do(l){return function(){return this.as(l)}}var Rh=Do("ms"),w0=Do("s"),C0=Do("m"),S0=Do("h"),x0=Do("d"),_0=Do("w"),R0=Do("M"),T0=Do("Q"),E0=Do("y"),P0=Rh;function k0(){return Jn(this)}function D0(l){return l=Ae(l),this.isValid()?this[l+"s"]():NaN}function fr(l){return function(){return this.isValid()?this._data[l]:NaN}}var O0=fr("milliseconds"),M0=fr("seconds"),I0=fr("minutes"),N0=fr("hours"),A0=fr("days"),F0=fr("months"),L0=fr("years");function $0(){return Sn(this.days()/7)}var Oo=Math.round,Hr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function j0(l,h,m,S,M){return M.relativeTime(h||1,!!m,l,S)}function V0(l,h,m,S){var M=Jn(l).abs(),G=Oo(M.as("s")),ue=Oo(M.as("m")),Ee=Oo(M.as("h")),Ve=Oo(M.as("d")),et=Oo(M.as("M")),bn=Oo(M.as("w")),Mo=Oo(M.as("y")),Qo=G<=m.ss&&["s",G]||G<m.s&&["ss",G]||ue<=1&&["m"]||ue<m.m&&["mm",ue]||Ee<=1&&["h"]||Ee<m.h&&["hh",Ee]||Ve<=1&&["d"]||Ve<m.d&&["dd",Ve];return m.w!=null&&(Qo=Qo||bn<=1&&["w"]||bn<m.w&&["ww",bn]),Qo=Qo||et<=1&&["M"]||et<m.M&&["MM",et]||Mo<=1&&["y"]||["yy",Mo],Qo[2]=h,Qo[3]=+l>0,Qo[4]=S,j0.apply(null,Qo)}function W0(l){return l===void 0?Oo:typeof l=="function"?(Oo=l,!0):!1}function H0(l,h){return Hr[l]===void 0?!1:h===void 0?Hr[l]:(Hr[l]=h,l==="s"&&(Hr.ss=h-1),!0)}function z0(l,h){if(!this.isValid())return this.localeData().invalidDate();var m=!1,S=Hr,M,G;return typeof l=="object"&&(h=l,l=!1),typeof l=="boolean"&&(m=l),typeof h=="object"&&(S=Object.assign({},Hr,h),h.s!=null&&h.ss==null&&(S.ss=h.s-1)),M=this.localeData(),G=V0(this,!m,S,M),m&&(G=M.pastFuture(+this,G)),M.postformat(G)}var Sc=Math.abs;function zr(l){return(l>0)-(l<0)||+l}function pa(){if(!this.isValid())return this.localeData().invalidDate();var l=Sc(this._milliseconds)/1e3,h=Sc(this._days),m=Sc(this._months),S,M,G,ue,Ee=this.asSeconds(),Ve,et,bn,Mo;return Ee?(S=Sn(l/60),M=Sn(S/60),l%=60,S%=60,G=Sn(m/12),m%=12,ue=l?l.toFixed(3).replace(/\.?0+$/,""):"",Ve=Ee<0?"-":"",et=zr(this._months)!==zr(Ee)?"-":"",bn=zr(this._days)!==zr(Ee)?"-":"",Mo=zr(this._milliseconds)!==zr(Ee)?"-":"",Ve+"P"+(G?et+G+"Y":"")+(m?et+m+"M":"")+(h?bn+h+"D":"")+(M||S||l?"T":"")+(M?Mo+M+"H":"")+(S?Mo+S+"M":"")+(l?Mo+ue+"S":"")):"P0D"}var nt=aa.prototype;nt.isValid=Fb,nt.abs=m0,nt.add=g0,nt.subtract=y0,nt.as=b0,nt.asMilliseconds=Rh,nt.asSeconds=w0,nt.asMinutes=C0,nt.asHours=S0,nt.asDays=x0,nt.asWeeks=_0,nt.asMonths=R0,nt.asQuarters=T0,nt.asYears=E0,nt.valueOf=P0,nt._bubble=v0,nt.clone=k0,nt.get=D0,nt.milliseconds=O0,nt.seconds=M0,nt.minutes=I0,nt.hours=N0,nt.days=A0,nt.weeks=$0,nt.months=F0,nt.years=L0,nt.humanize=z0,nt.toISOString=pa,nt.toString=pa,nt.toJSON=pa,nt.locale=dh,nt.localeData=fh,nt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pa),nt.lang=hh,V("X",0,0,"unix"),V("x",0,0,"valueOf"),Re("x",ln),Re("X",Qt),mt("X",function(l,h,m){m._d=new Date(parseFloat(l)*1e3)}),mt("x",function(l,h,m){m._d=new Date(Ue(l))});//! moment.js
|
|
262
|
+
return o.version="2.30.1",r(Dt),o.fn=ge,o.min=Mb,o.max=Ib,o.now=Nb,o.utc=b,o.unix=l0,o.months=u0,o.isDate=p,o.locale=Xo,o.invalid=_,o.duration=Jn,o.isMoment=A,o.weekdays=h0,o.parseZone=c0,o.localeData=Po,o.isDuration=la,o.monthsShort=d0,o.weekdaysMin=p0,o.defineLocale=cc,o.updateLocale=cb,o.locales=ub,o.weekdaysShort=f0,o.normalizeUnits=Ae,o.relativeTimeRounding=W0,o.relativeTimeThreshold=H0,o.calendarFormat=sw,o.prototype=ge,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})}(Ba)),Ba.exports}OI();const MI=`
|
|
237
263
|
html body {
|
|
238
264
|
font-family: "Courier", "sans-serif";
|
|
239
265
|
font-size: 12px;
|
|
@@ -278,4 +304,24 @@ return i.version="2.30.1",s(Ke),i.fn=X,i.min=Qd,i.max=ef,i.now=tf,i.utc=R,i.unix
|
|
|
278
304
|
.align_left {
|
|
279
305
|
text-align: left;
|
|
280
306
|
}
|
|
281
|
-
`;class
|
|
307
|
+
`;class My{constructor(){this.clientId=0,this.clientName="",this.cssStyles=MI}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 c=document.createElement("th");c.classList.add("column_name"),typeof a=="string"?c.innerText=a:c.innerText=" ",n.append(c)}),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(u=>u.forPrint),a=o.getData();return LI(a).forEach((u,d)=>{const f=this.createTr(i,d,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),c=a.__group,u=a.__groupTotals;if(c){const d=document.createElement("td");d.setAttribute("colspan","100%"),d.innerText=Ag(a.title),r.append(d)}else t.forEach(d=>{const f=document.createElement("td");d.cssClass&&f.classList.add(d.cssClass);const p=d.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=d.printer||w||d.formatter;let g=a[p];if(u){const v=d.groupTotalsFormatter;g=v?v(a,d,o):""}else b&&(g=b(0,0,g,d,a,o));f.innerText=g||"",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 II(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:c}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||c>=n}class NI{constructor(t){this.hotKeysBehavior=new GP,this.filter=new QM,this.downloadManager=new qP,this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new My;const{downloadManager:n,filter:o,hotKeys:r,id:i,name:a,printer:c}=t;this.id=i,this.name=a||"",r&&(this.hotKeysBehavior=r),c&&(this.printer=c),o&&(this.filter=o),n&&(this.downloadManager=n)}createGrid(t,n,o){this.reset();const r=new _I(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(xp(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){II(`#${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(xp(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class AI extends Ed{constructor(){super(...arguments),this.x=0,this.y=0}}const Cn=new AI,FI=()=>{Dy.commitCurrentEdit()},LI=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t};function $I(e){return function(t){t.preventDefault(),FI(),Cn.table=e,Cn.x=t.pageX||0,Cn.y=t.pageY||0,Cn.notify()}}class jI extends Ed{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}new jI;const xp=e=>t=>{t.keyCode===Gp.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},VI=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)},_r=function(){const e=function(_,x,C,O){for(C=C||{},O=_.length;O--;C[_[O]]=x);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],c=[1,10],u=[1,11],d=[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],g=[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(x,C,O,N,A,B,R){const $=B.length-1;switch(A){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(X){return X==0?1:K(X-1)*X}(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(x);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:c,8:u,9:d,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:c,8:u,9:d,10:f,11:p,12:y,14:[1,23]},e(b,[2,2],{8:u,9:d,10:f,11:p,12:y}),e(b,[2,3],{8:u,9:d,10:f,11:p,12:y}),e(g,[2,4],{10:f,11:p,12:y}),e(g,[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(x,C){if(C.recoverable)this.trace(x);else{const O=new Error(x);throw O.hash=C,O}},parse:function(x){const C=this;let O=[0],N=[null],A=[];const B=this.table;let R="",$=0,K=0;const X=2,q=1,Y=A.slice.call(arguments,1),z=Object.create(this.lexer),ae={yy:{}};for(let ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ie)&&(ae.yy[ie]=this.yy[ie]);z.setInput(x,ae.yy),ae.yy.lexer=z,ae.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});let I=z.yylloc;A.push(I);const D=z.options&&z.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var j=function(){let ie;return ie=z.lex()||q,typeof ie!="number"&&(ie=C.symbols_[ie]||ie),ie};let W,ne,oe,se;const V={};let J,ee,te,ce;for(;;){if(ne=O[O.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((W===null||typeof W>"u")&&(W=j()),oe=B[ne]&&B[ne][W]),typeof oe>"u"||!oe.length||!oe[0]){let ie="";ce=[];for(J in B[ne])this.terminals_[J]&&J>X&&ce.push("'"+this.terminals_[J]+"'");z.showPosition?ie="Parse error on line "+($+1)+`:
|
|
308
|
+
`+z.showPosition()+`
|
|
309
|
+
Expecting `+ce.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ie="Parse error on line "+($+1)+": Unexpected "+(W==q?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ie,{text:z.match,token:this.terminals_[W]||W,line:z.yylineno,loc:I,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),N.push(z.yytext),A.push(z.yylloc),O.push(oe[1]),W=null,K=z.yyleng,R=z.yytext,$=z.yylineno,I=z.yylloc;break;case 2:if(ee=this.productions_[oe[1]][1],V.$=N[N.length-ee],V._$={first_line:A[A.length-(ee||1)].first_line,last_line:A[A.length-1].last_line,first_column:A[A.length-(ee||1)].first_column,last_column:A[A.length-1].last_column},D&&(V._$.range=[A[A.length-(ee||1)].range[0],A[A.length-1].range[1]]),se=this.performAction.apply(V,[R,K,$,ae.yy,oe[1],N,A].concat(Y)),typeof se<"u")return se;ee&&(O=O.slice(0,-1*ee*2),N=N.slice(0,-1*ee),A=A.slice(0,-1*ee)),O.push(this.productions_[oe[1]][0]),N.push(V.$),A.push(V._$),te=B[O[O.length-2]][O[O.length-1]],O.push(te);break;case 3:return!0}}return!0}},E=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(x,C){return this.yy=C||this.yy||{},this._input=x,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 x=this._input[0];return this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x,x.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),x},unput:function(x){const C=x.length,O=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;const N=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 A=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===N.length?this.yylloc.first_column:0)+N[N.length-O.length].length-O[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[A[0],A[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).
|
|
310
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(x){this.unput(this.match.slice(x))},pastInput:function(){const x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const x=this.pastInput(),C=new Array(x.length+1).join("-");return x+this.upcomingInput()+`
|
|
311
|
+
`+C+"^"},test_match:function(x,C){let O,N,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),N=x[0].match(/(?:\r\n?|\n).*/g),N&&(this.yylineno+=N.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:N?N[N.length-1].length-N[N.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+x[0].length},this.yytext+=x[0],this.match+=x[0],this.matches=x,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(x[0].length),this.matched+=x[0],O=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(let B in A)this[B]=A[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);let x,C,O,N;this._more||(this.yytext="",this.match="");const A=this._currentRules();for(let B=0;B<A.length;B++)if(O=this._input.match(this.rules[A[B]]),O&&(!C||O[0].length>C[0].length)){if(C=O,N=B,this.options.backtrack_lexer){if(x=this.test_match(O,A[B]),x!==!1)return x;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(x=this.test_match(C,A[N]),x!==!1?x:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
312
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,O,N,A){switch(N){case 0:break;case 1:return 15;case 2:return 8;case 3:return 9;case 4:return 7;case 5:return 6;case 6:return 10;case 7:return 11;case 8:return 12;case 9:return 13;case 10:return 14;case 11:return 17;case 12:return 16;case 13:return 5;case 14:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:[0-9]+(\.[0-9]+)?\b)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:!)/,/^(?:%)/,/^(?:\()/,/^(?:\))/,/^(?:PI\b)/,/^(?:E\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],inclusive:!0}}}}();v.lexer=E;function k(){this.yy={},this.parse=this.parse.bind(this)}return k.prototype=v,v.Parser=k,new k}();typeof require<"u"&&typeof exports<"u"&&(exports.parser=_r,exports.Parser=_r.Parser,exports.parse=function(){return _r.parse.apply(_r,arguments)});const Iy=2;class WI extends mp{isValueChanged(){const t=VI(this.defaultValue);let n=0;try{n=_r.parse(this.input.value||"0")}catch{return!0}return!n&&!t?!1:n!==t}loadValue(t){const n=Number(t[this.args.column.field]||"0");this.defaultValue=n.toFixed(Iy),this.input.value=this.defaultValue,this.input.defaultValue=this.input.value,this.input.select()}serializeValue(){let t=_r.parse(this.input.value||"0");mp.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;const n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}validate(){let t=0;try{if(t=_r.parse(`${this.input.value}`),t===1/0)throw new Error}catch{return{valid:!1,msg:"Please enter a valid number"}}if(this.args.column.validator){const n=this.args.column.validator(t,this.args);if(!n.valid)return n}return{valid:!0,msg:null}}}WI.DefaultDecimalPlaces=Iy;var Ya={exports:{}};const HI=U0(KM);/*!
|
|
313
|
+
* Pikaday
|
|
314
|
+
*
|
|
315
|
+
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
316
|
+
*/var zI=Ya.exports,_p;function BI(){return _p||(_p=1,function(e,t){(function(n,o){var r;{try{r=HI}catch{}e.exports=o(r)}})(zI,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,c=function(I,D,j,W){r?I.addEventListener(D,j,!!W):I.attachEvent("on"+D,j)},u=function(I,D,j,W){r?I.removeEventListener(D,j,!!W):I.detachEvent("on"+D,j)},d=function(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")},f=function(I,D){return(" "+I.className+" ").indexOf(" "+D+" ")!==-1},p=function(I,D){f(I,D)||(I.className=I.className===""?D:I.className+" "+D)},y=function(I,D){I.className=d((" "+I.className+" ").replace(" "+D+" "," "))},w=function(I){return/Array/.test(Object.prototype.toString.call(I))},b=function(I){return/Date/.test(Object.prototype.toString.call(I))&&!isNaN(I.getTime())},g=function(I){var D=I.getDay();return D===0||D===6},v=function(I){return I%4===0&&I%100!==0||I%400===0},E=function(I,D){return[31,v(I)?29:28,31,30,31,30,31,31,30,31,30,31][D]},k=function(I){b(I)&&I.setHours(0,0,0,0)},_=function(I,D){return I.getTime()===D.getTime()},x=function(I,D,j){var W,ne;for(W in D)ne=I[W]!==void 0,ne&&typeof D[W]=="object"&&D[W]!==null&&D[W].nodeName===void 0?b(D[W])?j&&(I[W]=new Date(D[W].getTime())):w(D[W])?j&&(I[W]=D[W].slice(0)):I[W]=x({},D[W],j):(j||!ne)&&(I[W]=D[W]);return I},C=function(I,D,j){var W;i.createEvent?(W=i.createEvent("HTMLEvents"),W.initEvent(D,!0,!1),W=x(W,j),I.dispatchEvent(W)):i.createEventObject&&(W=i.createEventObject(),W=x(W,j),I.fireEvent("on"+D,W))},O=function(I){return I.month<0&&(I.year-=Math.ceil(Math.abs(I.month)/12),I.month+=12),I.month>11&&(I.year+=Math.floor(Math.abs(I.month)/12),I.month-=12),I},N={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},A=function(I,D,j){for(D+=I.firstDay;D>=7;)D-=7;return j?I.i18n.weekdaysShort[D]:I.i18n.weekdays[D]},B=function(I){var D=[],j="false";if(I.isEmpty)if(I.showDaysInNextAndPreviousMonths)D.push("is-outside-current-month"),I.enableSelectionDaysInNextAndPreviousMonths||D.push("is-selection-disabled");else return'<td class="is-empty"></td>';return I.isDisabled&&D.push("is-disabled"),I.isToday&&D.push("is-today"),I.isSelected&&(D.push("is-selected"),j="true"),I.hasEvent&&D.push("has-event"),I.isInRange&&D.push("is-inrange"),I.isStartRange&&D.push("is-startrange"),I.isEndRange&&D.push("is-endrange"),'<td data-day="'+I.day+'" class="'+D.join(" ")+'" aria-selected="'+j+'"><button class="pika-button pika-day" type="button" data-pika-year="'+I.year+'" data-pika-month="'+I.month+'" data-pika-day="'+I.day+'">'+I.day+"</button></td>"},R=function(I,D){I.setHours(0,0,0,0);var j=I.getDate(),W=I.getDay(),ne=D,oe=ne-1,se=7,V=function(ie){return(ie+se-1)%se};I.setDate(j+oe-V(W));var J=new Date(I.getFullYear(),0,ne),ee=24*60*60*1e3,te=(I.getTime()-J.getTime())/ee,ce=1+Math.round((te-oe+V(J.getDay()))/se);return ce},$=function(I,D,j,W){var ne=new Date(j,D,I),oe=o?n(ne).isoWeek():R(ne,W);return'<td class="pika-week">'+oe+"</td>"},K=function(I,D,j,W){return'<tr class="pika-row'+(j?" pick-whole-week":"")+(W?" is-selected":"")+'">'+(D?I.reverse():I).join("")+"</tr>"},X=function(I){return"<tbody>"+I.join("")+"</tbody>"},q=function(I){var D,j=[];for(I.showWeekNumber&&j.push("<th></th>"),D=0;D<7;D++)j.push('<th scope="col"><abbr title="'+A(I,D)+'">'+A(I,D,!0)+"</abbr></th>");return"<thead><tr>"+(I.isRTL?j.reverse():j).join("")+"</tr></thead>"},Y=function(I,D,j,W,ne,oe){var se,V,J,ee=I._o,te=j===ee.minYear,ce=j===ee.maxYear,ie='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,H,re=!0,Q=!0;for(J=[],se=0;se<12;se++)J.push('<option value="'+(j===ne?se-D:12+se-D)+'"'+(se===W?' selected="selected"':"")+(te&&se<ee.minMonth||ce&&se>ee.maxMonth?' disabled="disabled"':"")+">"+ee.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+ee.i18n.months[W]+'<select class="pika-select pika-select-month" tabindex="-1">'+J.join("")+"</select></div>",w(ee.yearRange)?(se=ee.yearRange[0],V=ee.yearRange[1]+1):(se=j-ee.yearRange,V=1+j+ee.yearRange),J=[];se<V&&se<=ee.maxYear;se++)se>=ee.minYear&&J.push('<option value="'+se+'"'+(se===j?' selected="selected"':"")+">"+se+"</option>");return H='<div class="pika-label">'+j+ee.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+J.join("")+"</select></div>",ee.showMonthAfterYear?ie+=H+he:ie+=he+H,te&&(W===0||ee.minMonth>=W)&&(re=!1),ce&&(W===11||ee.maxMonth<=W)&&(Q=!1),D===0&&(ie+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+ee.i18n.previousMonth+"</button>"),D===I._o.numberOfMonths-1&&(ie+='<button class="pika-next'+(Q?"":" is-disabled")+'" type="button">'+ee.i18n.nextMonth+"</button>"),ie+="</div>"},z=function(I,D,j){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+j+'">'+q(I)+X(D)+"</table>"},ae=function(I){var D=this,j=D.config(I);D._onMouseDown=function(ne){if(D._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")?(D.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),j.bound&&a(function(){D.hide(),j.blurFieldOnSelect&&j.field&&j.field.blur()},100)):f(oe,"pika-prev")?D.prevMonth():f(oe,"pika-next")&&D.nextMonth()),f(oe,"pika-select"))D._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},D._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?D.gotoMonth(oe.value):f(oe,"pika-select-year")&&D.gotoYear(oe.value))},D._onKeyChange=function(ne){if(ne=ne||window.event,D.isVisible())switch(ne.keyCode){case 13:case 27:j.field&&j.field.blur();break;case 37:D.adjustDate("subtract",1);break;case 38:D.adjustDate("subtract",7);break;case 39:D.adjustDate("add",1);break;case 40:D.adjustDate("add",7);break;case 8:case 46:D.setDate(null);break}},D._parseFieldValue=function(){if(j.parse)return j.parse(j.field.value,j.format);if(o){var ne=n(j.field.value,j.format,j.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(j.field.value))},D._onInputChange=function(ne){var oe;ne.firedBy!==D&&(oe=D._parseFieldValue(),b(oe)&&D.setDate(oe),D._v||D.show())},D._onInputFocus=function(){D.show()},D._onInputClick=function(){D.show()},D._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);D._c||(D._b=a(function(){D.hide()},50)),D._c=!1},D._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;"),c(oe,"change",D._onChange)));do if(f(se,"pika-single")||se===j.trigger)return;while(se=se.parentNode);D._v&&oe!==j.trigger&&se!==j.trigger&&D.hide()}},D.el=i.createElement("div"),D.el.className="pika-single"+(j.isRTL?" is-rtl":"")+(j.theme?" "+j.theme:""),c(D.el,"mousedown",D._onMouseDown,!0),c(D.el,"touchend",D._onMouseDown,!0),c(D.el,"change",D._onChange),j.keyboardInput&&c(i,"keydown",D._onKeyChange),j.field&&(j.container?j.container.appendChild(D.el):j.bound?i.body.appendChild(D.el):j.field.parentNode.insertBefore(D.el,j.field.nextSibling),c(j.field,"change",D._onInputChange),j.defaultDate||(j.defaultDate=D._parseFieldValue(),j.setDefaultDate=!0));var W=j.defaultDate;b(W)?j.setDefaultDate?D.setDate(W,!0):D.gotoDate(W):D.gotoDate(new Date),j.bound?(this.hide(),D.el.className+=" is-bound",c(j.trigger,"click",D._onInputClick),c(j.trigger,"focus",D._onInputFocus),c(j.trigger,"blur",D._onInputBlur)):this.show()};return ae.prototype={config:function(I){this._o||(this._o=x({},N,!0));var D=x(this._o,I,!0);D.isRTL=!!D.isRTL,D.field=D.field&&D.field.nodeName?D.field:null,D.theme=typeof D.theme=="string"&&D.theme?D.theme:null,D.bound=!!(D.bound!==void 0?D.field&&D.bound:D.field),D.trigger=D.trigger&&D.trigger.nodeName?D.trigger:D.field,D.disableWeekends=!!D.disableWeekends,D.disableDayFn=typeof D.disableDayFn=="function"?D.disableDayFn:null;var j=parseInt(D.numberOfMonths,10)||1;if(D.numberOfMonths=j>4?4:j,b(D.minDate)||(D.minDate=!1),b(D.maxDate)||(D.maxDate=!1),D.minDate&&D.maxDate&&D.maxDate<D.minDate&&(D.maxDate=D.minDate=!1),D.minDate&&this.setMinDate(D.minDate),D.maxDate&&this.setMaxDate(D.maxDate),w(D.yearRange)){var W=new Date().getFullYear()-10;D.yearRange[0]=parseInt(D.yearRange[0],10)||W,D.yearRange[1]=parseInt(D.yearRange[1],10)||W}else D.yearRange=Math.abs(parseInt(D.yearRange,10))||N.yearRange,D.yearRange>100&&(D.yearRange=100);return D},toString:function(I){return I=I||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,I):o?n(this._d).format(I):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(I,D){o&&n.isMoment(I)&&this.setDate(I.toDate(),D)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(I,D){if(!I)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof I=="string"&&(I=new Date(Date.parse(I))),!!b(I)){var j=this._o.minDate,W=this._o.maxDate;b(j)&&I<j?I=j:b(W)&&I>W&&(I=W),this._d=new Date(I.getTime()),k(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!D&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(I){var D=!0;if(b(I)){if(this.calendars){var j=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=I.getTime();W.setMonth(W.getMonth()+1),W.setDate(W.getDate()-1),D=ne<j.getTime()||W.getTime()<ne}D&&(this.calendars=[{month:I.getMonth(),year:I.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(I,D){var j=this.getDate()||new Date,W=parseInt(D)*24*60*60*1e3,ne;I==="add"?ne=new Date(j.valueOf()+W):I==="subtract"&&(ne=new Date(j.valueOf()-W)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var I=1;I<this._o.numberOfMonths;I++)this.calendars[I]=O({month:this.calendars[0].month+I,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(I){isNaN(I)||(this.calendars[0].month=parseInt(I,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(I){isNaN(I)||(this.calendars[0].year=parseInt(I,10),this.adjustCalendars())},setMinDate:function(I){I instanceof Date?(k(I),this._o.minDate=I,this._o.minYear=I.getFullYear(),this._o.minMonth=I.getMonth()):(this._o.minDate=N.minDate,this._o.minYear=N.minYear,this._o.minMonth=N.minMonth,this._o.startRange=N.startRange),this.draw()},setMaxDate:function(I){I instanceof Date?(k(I),this._o.maxDate=I,this._o.maxYear=I.getFullYear(),this._o.maxMonth=I.getMonth()):(this._o.maxDate=N.maxDate,this._o.maxYear=N.maxYear,this._o.maxMonth=N.maxMonth,this._o.endRange=N.endRange),this.draw()},setStartRange:function(I){this._o.startRange=I},setEndRange:function(I){this._o.endRange=I},draw:function(I){if(!(!this._v&&!I)){var D=this._o,j=D.minYear,W=D.maxYear,ne=D.minMonth,oe=D.maxMonth,se="",V;this._y<=j&&(this._y=j,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=W&&(this._y=W,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var J=0;J<D.numberOfMonths;J++)V="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,J,this.calendars[J].year,this.calendars[J].month,this.calendars[0].year,V)+this.render(this.calendars[J].year,this.calendars[J].month,V)+"</div>";this.el.innerHTML=se,D.bound&&D.field.type!=="hidden"&&a(function(){D.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),D.bound&&D.field.setAttribute("aria-label",D.ariaLabel)}},adjustPosition:function(){var I,D,j,W,ne,oe,se,V,J,ee,te,ce;if(!this._o.container){if(this.el.style.position="absolute",I=this._o.trigger,D=I,j=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 I.getBoundingClientRect=="function")ee=I.getBoundingClientRect(),V=ee.left+window.pageXOffset,J=ee.bottom+window.pageYOffset;else for(V=D.offsetLeft,J=D.offsetTop+D.offsetHeight;D=D.offsetParent;)V+=D.offsetLeft,J+=D.offsetTop;(this._o.reposition&&V+j>ne||this._o.position.indexOf("right")>-1&&V-j+I.offsetWidth>0)&&(V=V-j+I.offsetWidth,te=!1),(this._o.reposition&&J+W>oe+se||this._o.position.indexOf("top")>-1&&J-W-I.offsetHeight>0)&&(J=J-W-I.offsetHeight,ce=!1),this.el.style.left=V+"px",this.el.style.top=J+"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(I,D,j){var W=this._o,ne=new Date,oe=E(I,D),se=new Date(I,D,1).getDay(),V=[],J=[];k(ne),W.firstDay>0&&(se-=W.firstDay,se<0&&(se+=7));for(var ee=D===0?11:D-1,te=D===11?0:D+1,ce=D===0?I-1:I,ie=D===11?I+1:I,he=E(ce,ee),H=oe+se,re=H;re>7;)re-=7;H+=7-re;for(var Q=!1,fe=0,me=0;fe<H;fe++){var Ce=new Date(I,D,1+(fe-se)),ve=b(this._d)?_(Ce,this._d):!1,_e=_(Ce,ne),$e=W.events.indexOf(Ce.toDateString())!==-1,Ae=fe<se||fe>=oe+se,rt=1+(fe-se),ke=D,ft=I,Kt=W.startRange&&_(W.startRange,Ce),st=W.endRange&&_(W.endRange,Ce),Yt=W.startRange&&W.endRange&&W.startRange<Ce&&Ce<W.endRange,Xt=W.minDate&&Ce<W.minDate||W.maxDate&&Ce>W.maxDate||W.disableWeekends&&g(Ce)||W.disableDayFn&&W.disableDayFn(Ce);Ae&&(fe<se?(rt=he+rt,ke=ee,ft=ce):(rt=rt-oe,ke=te,ft=ie));var on={day:rt,month:ke,year:ft,hasEvent:$e,isSelected:ve,isToday:_e,isDisabled:Xt,isEmpty:Ae,isStartRange:Kt,isEndRange:st,isInRange:Yt,showDaysInNextAndPreviousMonths:W.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:W.enableSelectionDaysInNextAndPreviousMonths};W.pickWholeWeek&&ve&&(Q=!0),J.push(B(on)),++me===7&&(W.showWeekNumber&&J.unshift($(fe-se,D,I,W.firstWeekOfYearMinDays)),V.push(K(J,W.isRTL,W.pickWholeWeek,Q)),J=[],me=0,Q=!1)}return z(W,V,j)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(c(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var I=this._v;I!==!1&&(this._o.bound&&u(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,I!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var I=this._o;this.hide(),u(this.el,"mousedown",this._onMouseDown,!0),u(this.el,"touchend",this._onMouseDown,!0),u(this.el,"change",this._onChange),I.keyboardInput&&u(i,"keydown",this._onKeyChange),I.field&&(u(I.field,"change",this._onInputChange),I.bound&&(u(I.trigger,"click",this._onInputClick),u(I.trigger,"focus",this._onInputFocus),u(I.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(Ya)),Ya.exports}BI();function YI(e){if(!e.getSelectionModel())return Rp(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Rp(e)),t}function Rp(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}class UI{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=is(t||this.emptyValue),r=is(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}}const qI=new UI;class GI{constructor(){this.resetSorting=!1,this.sort=qI,this.sortedColumnId="",this.withFormatter=[er.TEXT,er.NUMBER_FORMATTED]}onSort(){return(t,n)=>{const{grid:o,sortCol:r,sortAsc:i}=n;if(!o)return;const{formatter:a}=r;this.reset(n);const c=o.getData(),u=r?.sortAs;c.getItems().sort((f,p)=>{if(this.resetSorting)return f.id-p.id;const y=r?.field;if(!y)return 0;const w=i?1:-1;let b=f[y],g=p[y];switch(a&&this.withFormatter.includes(u)&&(b=a(0,0,b,r,f,o),g=a(0,0,g,r,p,o)),u){case er.DATE:return this.priority(f,p)||this.sort.dates(b,g)*w;case er.NUMBER:case er.NUMBER_FORMATTED:return this.priority(f,p)||this.sort.numbers(b,g)*w;case er.TEXT:return this.priority(f,p)||this.sort.strings(b,g)*w}}),c.refresh()}}priority(t,n){return 0}reset(t){const{grid:n,sortCol:o,sortAsc:r}=t;if(n)if(r&&this.sortedColumnId===o?.id)this.resetSorting=!0,n.setSortColumns([]),this.sortedColumnId="";else{this.resetSorting=!1;const i=n.getSortColumns();this.sortedColumnId=i[0]?.columnId}}}new GI;function KI(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]?Dr.highlightColumn(n,t):Dr.resetColumn(n,t))}const Uo=YP(KI),_s={1:"",2:""},to={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function XI(e){switch(e){case sn.Boolean:return je.Boolean;case sn.Date:return je.DateEqual;case sn.MultipleSelect:return je.MultipleSelect;case sn.Number:case sn.NumberFormatted:return je.NumberEqual;case sn.Text:return je.TextContain}}function ZI(e,t,n){Ze.useEffect(()=>{if(!e)return;const o=document.getElementById(_u);if(!o)return;const{columnId:r,group:i,table:a,x:c,y:u}=wn;if(!a?.grid)return;const f=a.filter.args;Kp(o,c,u);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||XI(i),b=y||_s;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function QI(e){Ze.useEffect(()=>{function t(){e(!0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}function Cu(e){return{format:Er.ui,value:e?xe(e,XM):null}}const JI=le(os)({width:"5em",alignSelf:"flex-end"}),eN={Button:JI},tN=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=wn;if(!i||!i.grid)return;const c=i.filter.args;delete c.columnFilters?.[r],i.filter.args=c,Dr.resetColumn(i,r),t(_s),e(!1)}return P.jsx(eN.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},nN=le(Zu)({padding:0}),oN=le(Cg)({margin:"0.5em 0 0 1em"}),ka={Checkbox:nN,FormGroup:oN},rN=({setValue:e,value:t})=>{function n(o){e(o),Uo(o)}return P.jsxs(ka.FormGroup,{children:[P.jsx(ja,{control:P.jsx(ka.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),P.jsx(ja,{control:P.jsx(ka.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),P.jsx(ja,{control:P.jsx(ka.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},sN={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"},iN={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"},Tp=["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(`
|
|
317
|
+
`);class Ny{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=sN,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(Tp);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(Tp);return r}const a=i==="default"?this.moment.defaultZone?.name??"system":i;if(a==="system")return r.clone().local();const c=r.clone();return c.tz(a),c},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 c=a[0];return c==="L"||c===";"?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 c=0,u=i;const d=[];for(;u.isBefore(a);){const f=Math.floor(c/7);d[f]=d[f]||[],d[f].push(u),u=this.addDays(u,1),c+=1}return d},this.getWeekNumber=r=>r.week(),this.getDayOfWeek=r=>r.day()+1,this.moment=o||xe,this.locale=t,this.formats=Z({},iN,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 Zs=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),aN=({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}},cl=(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},pi=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:c})=>{const u=cl(a,a.date(void 0,c),e);n&&a.isBefore(r,u)&&(r=u),t&&a.isAfter(o,u)&&(o=u);let d=e,f=e;for(a.isBefore(e,r)&&(d=r,f=null),a.isAfter(e,o)&&(f&&(f=o),d=null);d||f;){if(d&&a.isAfter(d,o)&&(d=null),f&&a.isBefore(f,r)&&(f=null),d){if(!i(d))return d;d=a.addDays(d,1)}if(f){if(!i(f))return f;f=a.addDays(f,-1)}}return null},lN=(e,t)=>t==null||!e.isValid(t)?null:t,Gn=(e,t,n)=>t==null||!e.isValid(t)?n:t,cN=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),kd=(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},Ay=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),uN=["year","month","day"],Ep=e=>uN.includes(e),Dd=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return Zs(n,["year"])?r.year:Zs(n,["month"])?r.month:Zs(n,["day"])?r.dayOfMonth:Zs(n,["month","year"])?`${r.month} ${r.year}`:Zs(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},dN=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},hN=["hours","minutes","seconds"],fN=e=>hN.includes(e),Pp=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),pN=(e,t)=>(n,o)=>e?t.isAfter(n,o):Pp(n,t)>Pp(o,t),mo={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},mN=e=>Math.max(...e.map(t=>mo[t.type]??1)),Qs=(e,t,n)=>{if(t===mo.year)return e.startOfYear(n);if(t===mo.month)return e.startOfMonth(n);if(t===mo.day)return e.startOfDay(n);let o=n;return t<mo.minutes&&(o=e.setMinutes(o,0)),t<mo.seconds&&(o=e.setSeconds(o,0)),t<mo.milliseconds&&(o=e.setMilliseconds(o,0)),o},gN=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():Qs(t,n,Ay(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Qs(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Qs(t,n,e.maxDate));const a=pN(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Qs(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:cl(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Qs(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:cl(t,i,e.maxTime))),i},Od=(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(`
|
|
318
|
+
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},yN=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Kl=(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(c=>e.formatByString(c,t))},Fy=(e,t,n,o)=>{switch(n){case"month":return kd(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return Kl(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[]}},kp="s",vN=["0","1","2","3","4","5","6","7","8","9"],bN=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),kp)==="0"?vN:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),kp))},Or=(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("")},Md=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Dp=(e,t)=>{const n=Or(e,t);return n!==" "&&!Number.isNaN(Number(n))},Ly=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},$y=(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.'
|
|
319
|
+
This type of format is only supported for 'day' sections`].join(`
|
|
320
|
+
`));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=Ly(i,r.maxLength)),Md(i,o)},wN=(e,t,n,o,r,i,a,c)=>{const u=yN(o),d=o==="Home",f=o==="End",p=n.value===""||d||f,y=()=>{const b=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=_=>$y(e,_,b,i,n),v=n.type==="minutes"&&c?.minutesStep?c.minutesStep:1;let k=parseInt(Or(n.value,i),10)+u*v;if(p){if(n.type==="year"&&!f&&!d)return e.formatByString(e.date(void 0,t),n.format);u>0||d?k=b.minimum:k=b.maximum}return k%v!==0&&((u<0||d)&&(k+=v-(v+k)%v),(u>0||f)&&(k-=k%v)),k>b.maximum?g(b.minimum+(k-b.maximum-1)%(b.maximum-b.minimum+1)):k<b.minimum?g(b.maximum-(b.minimum-k-1)%(b.maximum-b.minimum+1)):g(k)},w=()=>{const b=Fy(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return u>0||d?b[0]:b[b.length-1];const E=((b.indexOf(n.value)+u)%b.length+b.length)%b.length;return b[E]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():w()},Id=(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(Or(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},Op=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Od(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},jy=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Vy=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return jy(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")}},CN=(e,t,n)=>{const o=t.some(u=>u.type==="day"),r=[],i=[];for(let u=0;u<t.length;u+=1){const d=t[u];o&&d.type==="weekDay"||(r.push(d.format),i.push(Id(d,"non-input",n)))}const a=r.join(" "),c=i.join(" ");return e.parse(c,a)},SN=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),xN=(e,t,n)=>{const r=e.map(i=>{const a=Id(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},_N=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:c}=kd(e,o).reduce((u,d)=>{const f=e.getDaysInMonth(d);return f>u.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:d}:u},{maxDaysInMonth:0,longestMonth:null});return{year:({format:u})=>({minimum:0,maximum:jy(e,u)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:u})=>({minimum:1,maximum:u!=null&&e.isValid(u)?e.getDaysInMonth(u):a,longestMonth:c}),weekDay:({format:u,contentType:d})=>{if(d==="digit"){const f=Kl(e,u).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:u})=>{const d=e.getHours(i);return Or(e.formatByString(e.endOfDay(o),u),t)!==d.toString()?{minimum:1,maximum:Number(Or(e.formatByString(e.startOfDay(o),u),t))}:{minimum:0,maximum:d}},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 Mp=!1;const Ip=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Mp){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('", "')}"]\`.`),Mp=!0)}},RN=(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=Kl(e,t.format),i=e.formatByString(n,t.format),a=r.indexOf(i),u=r.indexOf(t.value)-a;return e.addDays(n,u)}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}},Np={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Ap=(e,t,n,o,r)=>[...n].sort((i,a)=>Np[i.type]-Np[a.type]).reduce((i,a)=>!r||a.modified?RN(e,a,t,i):i,o),TN=()=>navigator.userAgent.toLowerCase().includes("android"),EN=(e,t)=>{const n={};if(!t)return e.forEach((u,d)=>{const f=d===0?null:d-1,p=d===e.length-1?null:d+1;n[d]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,c=e.length-1;for(;c>=0;){a=e.findIndex((u,d)=>d>=i&&u.endSeparator?.includes(" ")&&u.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let u=a;u>=i;u-=1)r[u]=c,o[c]=u,c-=1;i=a+1}return e.forEach((u,d)=>{const f=r[d],p=f===0?null:o[f-1],y=f===e.length-1?null:o[f+1];n[d]={leftIndex:p,rightIndex:y}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},Su=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,PN=(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}},kN=(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}},DN=["value","referenceDate"],_o={emptyValue:null,getTodayValue:Ay,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=We(e,DN);return t!=null&&o.utils.isValid(t)?t:n??gN(o)},cleanValue:lN,areValuesEqual:cN,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)},ON={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o)=>!e.isValid(t)&&!!n?n:o(t),getV7HiddenInputValueFromSections:SN,getV6InputValueFromSections:xN,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)},MN=["localeText"],ul=T.createContext(null);process.env.NODE_ENV!=="production"&&(ul.displayName="MuiPickersAdapterContext");const Xl=function(t){const{localeText:n}=t,o=We(t,MN),{utils:r,localeText:i}=T.useContext(ul)??{utils:void 0,localeText:void 0},a=Mt({props:o,name:"MuiLocalizationProvider"}),{children:c,dateAdapter:u,dateFormats:d,dateLibInstance:f,adapterLocale:p,localeText:y}=a,w=T.useMemo(()=>Z({},y,i,n),[y,i,n]),b=T.useMemo(()=>{if(!u)return r||null;const E=new u({locale:p,formats:d,instance:f});if(!E.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(`
|
|
321
|
+
`));return E},[u,p,d,f,r]),g=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:g,localeText:w}),[g,b,w]);return P.jsx(ul.Provider,{value:v,children:c})};process.env.NODE_ENV!=="production"&&(Xl.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 IN=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Z({},e)}}}}),Wy=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)}},Hy={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"},NN=Hy;IN(Hy);const Nr=()=>{const e=T.useContext(ul);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(`
|
|
322
|
+
`));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(`
|
|
323
|
+
`));const t=T.useMemo(()=>Z({},NN,e.localeText),[e.localeText]);return T.useMemo(()=>Z({},e,{localeText:t}),[e,t])},Nt=()=>Nr().utils,ta=()=>Nr().defaultDates,Zl=e=>{const t=Nt(),n=T.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function AN(e){return Oe("MuiPickersToolbar",e)}De("MuiPickersToolbar",["root","content"]);const FN=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],LN=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},AN,t)},$N=le("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"}}]})),jN=le("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"}}]}),VN=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:a,hidden:c,titleId:u}=o,d=We(o,FN),f=o,p=LN(f);return c?null:P.jsxs($N,Z({ref:n,className:Se(p.root,i),ownerState:f},d,{children:[P.jsx(Tn,{color:"text.secondary",variant:"overline",id:u,children:a}),P.jsx(jN,{className:p.content,ownerState:f,children:r})]}))}),Ko=()=>Nr().localeText;function WN(e){return Oe("MuiDatePickerToolbar",e)}De("MuiDatePickerToolbar",["root","title"]);const HN=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],zN=e=>{const{classes:t}=e;return Ie({root:["root"],title:["title"]},WN,t)},BN=le(VN,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YN=le(Tn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),zy=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:c="––",views:u,className:d}=o,f=We(o,HN),p=Nt(),y=Ko(),w=zN(o),b=T.useMemo(()=>{if(!r)return c;const v=Dd(p,{format:a,views:u},!0);return p.formatByString(r,v)},[r,a,c,p,u]),g=o;return P.jsx(BN,Z({ref:n,toolbarTitle:y.datePickerToolbarTitle,isLandscape:i,className:Se(w.root,d)},f,{children:P.jsx(YN,{variant:"h4",align:i?"left":"center",ownerState:g,className:w.title,children:b})}))});process.env.NODE_ENV!=="production"&&(zy.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 By(e,t){const n=Nt(),o=ta(),r=Mt({props:e,name:t}),i=T.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Z({},r.localeText,{datePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return Z({},r,{localeText:i},aN({views:r.views,openTo:r.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,minDate:Gn(n,r.minDate,o.minDate),maxDate:Gn(n,r.maxDate,o.maxDate),slots:Z({toolbar:zy},r.slots)})}const na=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:c,disableFuture:u}=e,d=o.utils.date(void 0,n),f=Gn(o.utils,e.minDate,o.defaultDates.minDate),p=Gn(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!!(u&&o.utils.isAfterDay(t,d)):return"disableFuture";case!!(c&&o.utils.isBeforeDay(t,d)):return"disablePast";case!!(f&&o.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&o.utils.isAfterDay(t,p)):return"maxDate";default:return null}};na.valueManager=_o;const Yy=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],UN=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],qN=["minDateTime","maxDateTime"],GN=[...Yy,...UN,...qN],Uy=e=>GN.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function qy(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Nr(),c=T.useRef(n.valueManager.defaultErrorState),u=n({adapter:a,value:o,timezone:r,props:t}),d=n.valueManager.hasError(u);T.useEffect(()=>{i&&!n.valueManager.isSameError(u,c.current)&&i(u,o),c.current=u},[n,i,u,o]);const f=Te(p=>n({adapter:a,value:p,timezone:r,props:t}));return{validationError:u,hasValidationError:d,getValidationErrorForNewValue:f}}function KN(e){return Oe("MuiPickersPopper",e)}De("MuiPickersPopper",["root","paper"]);function XN(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const ZN=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},In=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?In(t.shadowRoot):t:null},QN="@media (pointer: fine)",JN="@media (prefers-reduced-motion: reduce)",fs=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Fp=fs&&fs[1]?parseInt(fs[1],10):null,Lp=fs&&fs[2]?parseInt(fs[2],10):null,eA=Fp&&Fp<10||Lp&&Lp<13||!1,Gy=()=>Em(JN,{defaultMatches:!1})||eA,tA=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],nA=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},KN,t)},oA=le(ug,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),rA=le(Es,{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 sA(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function iA(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 u(){i.current=!0}return document.addEventListener("mousedown",u,!0),document.addEventListener("touchstart",u,!0),()=>{document.removeEventListener("mousedown",u,!0),document.removeEventListener("touchstart",u,!0),i.current=!1}},[e]);const a=Te(u=>{if(!i.current)return;const d=o.current;o.current=!1;const f=gn(r.current);if(!r.current||"clientX"in u&&sA(u,f))return;if(n.current){n.current=!1;return}let p;u.composedPath?p=u.composedPath().indexOf(r.current)>-1:p=!f.documentElement.contains(u.target)||r.current.contains(u.target),!p&&!d&&t(u)}),c=()=>{o.current=!0};return T.useEffect(()=>{if(e){const u=gn(r.current),d=()=>{n.current=!0};return u.addEventListener("touchstart",a),u.addEventListener("touchmove",d),()=>{u.removeEventListener("touchstart",a),u.removeEventListener("touchmove",d)}}},[e,a]),T.useEffect(()=>{if(e){const u=gn(r.current);return u.addEventListener("click",a),()=>{u.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,c,c]}const aA=T.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:r,children:i,paperSlotProps:a,paperClasses:c,onPaperClick:u,onPaperTouchStart:d}=e,f=We(e,tA),p=Z({},r,{placement:o}),y=ct({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:c,ownerState:p});return P.jsx(n,Z({},f,y,{onClick:w=>{u(w),y.onClick?.(w)},onTouchStart:w=>{d(w),y.onTouchStart?.(w)},ownerState:p,children:i}))});function lA(e){const t=Mt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:o,containerRef:r=null,shouldRestoreFocus:i,onBlur:a,onDismiss:c,open:u,role:d,placement:f,slots:p,slotProps:y,reduceAnimations:w}=t;T.useEffect(()=>{function Y(z){u&&z.key==="Escape"&&c()}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[c,u]);const b=T.useRef(null);T.useEffect(()=>{d==="tooltip"||i&&!i()||(u?b.current=In(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[u,d,i]);const[g,v,E]=iA(u,a??c),k=T.useRef(null),_=at(k,r),x=at(_,g),C=t,O=nA(C),N=Gy(),A=w??N,B=Y=>{Y.key==="Escape"&&(Y.stopPropagation(),c())},R=p?.desktopTransition??A?Mr:ki,$=p?.desktopTrapFocus??Ei,K=p?.desktopPaper??rA,X=p?.popper??oA,q=ct({elementType:X,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:d,open:u,anchorEl:n,placement:f,onKeyDown:B},className:O.root,ownerState:t});return P.jsx(X,Z({},q,{children:({TransitionProps:Y,placement:z})=>P.jsx($,Z({open:u,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:d==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:P.jsx(R,Z({},Y,y?.desktopTransition,{children:P.jsx(aA,{PaperComponent:K,ownerState:C,popperPlacement:z,ref:x,onPaperClick:v,onPaperTouchStart:E,paperClasses:O.paper,paperSlotProps:y?.desktopPaper,children:o})}))}))}))}const $p=new Set;function cA(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
324
|
+
`):e;$p.has(n)||($p.add(n),t==="error"?console.error(n):console.warn(n))}const uA=({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(c=>{o||i(c),c&&t&&t(),!c&&n&&n()},[o,t,n]);return{isOpen:r,setIsOpen:a}},Nd=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:r})=>{const i=Nt(),a=T.useRef(n),c=t??a.current??r.emptyValue,u=T.useMemo(()=>r.getTimezone(i,c),[i,r,c]),d=Te(w=>u==null?w:r.setTimezone(i,u,w)),f=e??u??"default",p=T.useMemo(()=>r.setTimezone(i,f,c),[r,i,f,c]),y=Te((w,...b)=>{const g=d(w);o?.(g,...b)});return{value:p,handleValueChange:y,timezone:f}},Ad=({name:e,timezone:t,value:n,defaultValue:o,onChange:r,valueManager:i})=>{const[a,c]=Co({name:e,state:"value",controlled:n,default:o??i.emptyValue}),u=Te((d,...f)=>{c(d),r?.(d,...f)});return Nd({timezone:t,value:a,defaultValue:void 0,onChange:u,valueManager:i})},dA=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},hA=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},fA=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},pA=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:r})=>{const{onAccept:i,onChange:a,value:c,defaultValue:u,closeOnSelect:d=o==="desktop",timezone:f}=e,{current:p}=T.useRef(u),{current:y}=T.useRef(c!==void 0);process.env.NODE_ENV!=="production"&&(T.useEffect(()=>{y!==(c!==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(`
|
|
325
|
+
`))},[c]),T.useEffect(()=>{!y&&p!==u&&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(`
|
|
326
|
+
`))},[JSON.stringify(p)]));const w=Nt(),b=Nr(),{isOpen:g,setIsOpen:v}=uA(e),{timezone:E,value:k,handleValueChange:_}=Nd({timezone:f,value:c,defaultValue:p,onChange:a,valueManager:t}),[x,C]=T.useState(()=>{let V;return k!==void 0?V=k:p!==void 0?V=p:V=t.emptyValue,{draft:V,lastPublishedValue:V,lastCommittedValue:V,lastControlledValue:k,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:O}=qy({props:e,validator:r,timezone:E,value:x.draft,onError:e.onError}),N=Te(V=>{const J={action:V,dateState:x,hasChanged:H=>!t.areValuesEqual(w,V.value,H),isControlled:y,closeOnSelect:d},ee=dA(J),te=hA(J),ce=fA(J);C(H=>Z({},H,{draft:V.value,lastPublishedValue:ee?V.value:H.lastPublishedValue,lastCommittedValue:te?V.value:H.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ie=null;const he=()=>(ie||(ie={validationError:V.name==="setValueFromField"?V.context.validationError:O(V.value)},V.name==="setValueFromShortcut"&&(ie.shortcut=V.shortcut)),ie);ee&&_(V.value,he()),te&&i&&i(V.value,he()),ce&&v(!1)});if(k!==void 0&&(x.lastControlledValue===void 0||!t.areValuesEqual(w,x.lastControlledValue,k))){const V=t.areValuesEqual(w,x.draft,k);C(J=>Z({},J,{lastControlledValue:k},V?{}:{lastCommittedValue:k,lastPublishedValue:k,draft:k,hasBeenModifiedSinceMount:!0}))}const A=Te(()=>{N({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=Te(()=>{N({value:x.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{N({value:x.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{N({value:x.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{N({value:t.getTodayValue(w,E,n),name:"setValueFromAction",pickerAction:"today"})}),X=Te(V=>{V.preventDefault(),v(!0)}),q=Te(V=>{V?.preventDefault(),v(!1)}),Y=Te((V,J="partial")=>N({name:"setValueFromView",value:V,selectionState:J})),z=Te((V,J,ee)=>N({name:"setValueFromShortcut",value:V,changeImportance:J,shortcut:ee})),ae=Te((V,J)=>N({name:"setValueFromField",value:V,context:J})),I={onClear:A,onAccept:B,onDismiss:R,onCancel:$,onSetToday:K,onOpen:X,onClose:q},D={value:x.draft,onChange:ae},j=T.useMemo(()=>t.cleanValue(w,x.draft),[w,t,x.draft]),W={value:j,onChange:Y,onClose:q,open:g},oe=Z({},I,{value:j,onChange:Y,onSelectShortcut:z,isValid:V=>{const J=r({adapter:b,value:V,timezone:E,props:e});return!t.hasError(J)}}),se=T.useMemo(()=>({onOpen:X,onClose:q,open:g}),[g,q,X]);return{open:g,fieldProps:D,viewProps:W,layoutProps:oe,actions:I,contextValue:se}};let Uc=!1;function Ky({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:c}){process.env.NODE_ENV!=="production"&&(Uc||(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('", "')}"]\`.`),Uc=!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('", "')}"]\`.`),Uc=!0)));const u=T.useRef(n),d=T.useRef(r),f=T.useRef(r.includes(n)?n:r[0]),[p,y]=Co({name:"useViews",state:"view",controlled:o,default:f.current}),w=T.useRef(i?p:null),[b,g]=Co({name:"useViews",state:"focusedView",controlled:a,default:w.current});T.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(N=>!r.includes(N)))&&(y(r.includes(n)?n:r[0]),d.current=r,u.current=n)},[n,y,p,r]);const v=r.indexOf(p),E=r[v-1]??null,k=r[v+1]??null,_=Te((N,A)=>{g(A?N:B=>N===B?null:B),c?.(N,A)}),x=Te(N=>{_(N,!0),N!==p&&(y(N),t&&t(N))}),C=Te(()=>{k&&x(k)}),O=Te((N,A,B)=>{const R=A==="finish",$=B?r.indexOf(B)<r.length-1:!!k;if(e(N,R&&$?"partial":A,B),B&&B!==p){const X=r[r.indexOf(B)+1];X&&x(X)}else R&&C()});return{view:p,setView:x,focusedView:b,setFocusedView:_,nextView:k,previousView:E,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:O}}const mA=["className","sx"],gA=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:c,onClose:u}=t,{view:d,views:f,openTo:p,onViewChange:y,viewRenderers:w,timezone:b}=e,g=We(e,mA),{view:v,setView:E,defaultView:k,focusedView:_,setFocusedView:x,setValueAndGoToNextView:C}=Ky({view:d,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:O,viewModeLookup:N}=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]),A=T.useMemo(()=>f.reduce((q,Y)=>w[Y]!=null&&fN(Y)?q+1:q,0),[w,f]),B=N[v],R=Te(()=>B==="UI"),[$,K]=T.useState(B==="UI"?v:null);return $!==v&&N[v]==="UI"&&K(v),nn(()=>{B==="field"&&c&&(u(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),nn(()=>{if(!c)return;let q=v;B==="field"&&$!=null&&(q=$),q!==k&&N[q]==="UI"&&N[k]==="UI"&&(q=k),q!==v&&E(q),x(q,!0)},[c]),{hasUIView:O,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:E},renderCurrentView:()=>{if($==null)return null;const q=w[$];if(q==null)return null;const Y=Z({},g,n,t,{views:f,timezone:b,onChange:C,view:$,onViewChange:E,focusedView:_,onFocusedViewChange:x,showViewSwitcher:A>1,timeViewsCount:A});return r?r(w,$,Y):q(Y)}}};function jp(){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 yA=(e,t)=>{const[n,o]=T.useState(jp);return nn(()=>{const i=()=>{o(jp())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),XN(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},vA=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=yA(n.views,r),a=so();return{layoutProps:Z({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function bA(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 Xy=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:c,fieldRef:u})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&cA(["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 d=pA({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=gA({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:u,propsFromPickerValue:d.viewProps,rendererInterceptor:c}),p=vA({props:e,wrapperVariant:o,propsFromPickerValue:d.layoutProps,propsFromPickerViews:f.layoutProps}),y=bA({props:e,pickerValueResponse:d});return{open:d.open,actions:d.actions,fieldProps:d.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:d.contextValue,ownerState:y}};function Zy(e){return Oe("MuiPickersLayout",e)}const yr=De("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),wA=["onAccept","onClear","onCancel","onSetToday","actions"];function Qy(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=We(e,wA),c=Ko();if(i==null||i.length===0)return null;const u=i?.map(d=>{switch(d){case"clear":return P.jsx(os,{onClick:n,children:c.clearButtonLabel},d);case"cancel":return P.jsx(os,{onClick:o,children:c.cancelButtonLabel},d);case"accept":return P.jsx(os,{onClick:t,children:c.okButtonLabel},d);case"today":return P.jsx(os,{onClick:r,children:c.todayButtonLabel},d);default:return null}});return P.jsx(bg,Z({},a,{children:u}))}process.env.NODE_ENV!=="production"&&(Qy.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 Ai=36,Ql=2,Jl=320,CA=280,Fd=336,SA=["items","changeImportance","isLandscape","onChange","isValid"],xA=["getValue"];function Jy(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=We(e,SA);if(t==null||t.length===0)return null;const a=t.map(c=>{let{getValue:u}=c,d=We(c,xA);const f=u({isValid:r});return Z({},d,{label:d.label,onClick:()=>{o(f,n,d)},disabled:!r(f)})});return P.jsx(td,Z({dense:!0,sx:[{maxHeight:Fd,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(c=>P.jsx(xg,{children:P.jsx(dg,Z({},c))},c.id??c.label))}))}process.env.NODE_ENV!=="production"&&(Jy.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 _A(e){return e.view!==null}const RA=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"]},Zy,t)},TA=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:c,onViewChange:u,value:d,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:w,disabled:b,readOnly:g,children:v,slots:E,slotProps:k}=e,_=RA(e),x=E?.actionBar??Qy,C=ct({elementType:x,externalSlotProps:k?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:_.actionBar,ownerState:Z({},e,{wrapperVariant:t})}),O=P.jsx(x,Z({},C)),N=E?.toolbar,A=ct({elementType:N,externalSlotProps:k?.toolbar,additionalProps:{isLandscape:w,onChange:f,value:d,view:a,onViewChange:u,views:c,disabled:b,readOnly:g},className:_.toolbar,ownerState:Z({},e,{wrapperVariant:t})}),B=_A(A)&&N?P.jsx(N,Z({},A)):null,R=v,$=E?.tabs,K=a&&$?P.jsx($,Z({view:a,onViewChange:u,className:_.tabs},k?.tabs)):null,X=E?.shortcuts??Jy,q=ct({elementType:X,externalSlotProps:k?.shortcuts,additionalProps:{isValid:y,isLandscape:w,onChange:p},className:_.shortcuts,ownerState:{isValid:y,isLandscape:w,onChange:p,wrapperVariant:t}}),Y=a&&X?P.jsx(X,Z({},q)):null;return{toolbar:B,content:R,tabs:K,actionBar:O,shortcuts:Y}},EA=e=>{const{isLandscape:t,classes:n}=e;return Ie({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Zy,n)},PA=le("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${yr.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${yr.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${yr.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${yr.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${yr.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${yr.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${yr.shortcuts}`]:{gridColumn:3}}}]}),kA=le("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Ld=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:c,shortcuts:u}=TA(o),{sx:d,className:f,isLandscape:p,wrapperVariant:y}=o,w=EA(o);return P.jsxs(PA,{ref:n,sx:d,className:Se(w.root,f),ownerState:o,children:[p?u:r,p?r:u,P.jsx(kA,{className:w.contentWrapper,children:y==="desktop"?P.jsxs(T.Fragment,{children:[i,a]}):P.jsxs(T.Fragment,{children:[a,i]})}),c]})});process.env.NODE_ENV!=="production"&&(Ld.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 DA=T.createContext(null);function ev(e){const{contextValue:t,localeText:n,children:o}=e;return P.jsx(DA.Provider,{value:t,children:P.jsx(Xl,{localeText:n,children:o})})}const OA=["props","getOpenDialogAriaText"],MA=["ownerState"],IA=["ownerState"],NA=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,OA);const{slots:r,slotProps:i,className:a,sx:c,format:u,formatDensity:d,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:g,inputRef:v,readOnly:E,disabled:k,autoFocus:_,localeText:x,reduceAnimations:C}=t,O=T.useRef(null),N=T.useRef(null),A=lr(),B=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:X,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:z,contextValue:ae,ownerState:I}=Xy(Z({},o,{props:t,fieldRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),D=r.inputAdornment??ed,j=ct({elementType:D,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),W=We(j,MA),ne=r.openPickerButton??Ps,oe=ct({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:k||E,onClick:R?$.onClose:$.onOpen,"aria-label":n(z.value),edge:W.position},ownerState:t}),se=We(oe,IA),V=r.openPickerIcon,J=ct({elementType:V,externalSlotProps:i?.openPickerIcon,ownerState:I}),ee=r.field,te=ct({elementType:ee,externalSlotProps:i?.field,additionalProps:Z({},z,B&&{id:A},{readOnly:E,disabled:k,className:a,sx:c,format:u,formatDensity:d,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:g,name:b,autoFocus:_&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Z({},te.InputProps,{ref:O},!t.disableOpenPicker&&{[`${W.position}Adornment`]:P.jsx(D,Z({},W,{children:P.jsx(ne,Z({},se,{children:P.jsx(V,Z({},J))}))}))}));const ce=Z({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),ie=r.layout??Ld;let he=A;B&&(g?he=`${A}-label`:he=void 0);const H=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:A}),popper:Z({"aria-labelledby":he},i?.popper)}),re=at(N,te.unstableFieldRef);return{renderPicker:()=>P.jsxs(ev,{contextValue:ae,localeText:x,children:[P.jsx(ee,Z({},te,{slots:ce,slotProps:H,unstableFieldRef:re})),P.jsx(lA,Z({role:"dialog",placement:"bottom-start",anchorEl:O.current},$,{open:R,slots:r,slotProps:H,shouldRestoreFocus:Y,reduceAnimations:C,children:P.jsx(ie,Z({},X,H?.layout,{slots:r,slotProps:H,children:q()}))}))]})}},AA=an(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),FA=an(P.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),LA=an(P.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),$A=an(P.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");an(P.jsxs(T.Fragment,{children:[P.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"}),P.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");an(P.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");an(P.jsxs(T.Fragment,{children:[P.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"}),P.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const jA=an(P.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"),VA=({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},WA=({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},HA=(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}},zA=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:c})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const u=Od(e,a),d=Vy(e,u.contentType,u.type,a),f=n?d:u.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",w=null;if(f)if(d)w=y===""?e.formatByString(i,a).length:y.length;else{if(u.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);w=u.maxLength,p&&(y=Md(Ly(Or(y,r),w),r))}return Z({},u,{format:a,maxLength:w,value:y,placeholder:HA(e,o,u,a),hasLeadingZerosInFormat:d,hasLeadingZerosInInput:f,startSeparator:c,endSeparator:"",modified:!1})},BA=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const c=Object.keys(t.formatTokenMap).sort((w,b)=>b.length-w.length),u=/^([a-zA-Z]+)/,d=new RegExp(`^(${c.join("|")})*$`),f=new RegExp(`^(${c.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,g=u.exec(n.slice(y))?.[1];if(!b&&g!=null&&d.test(g)){let v=g;for(;v.length>0;){const E=f.exec(v)[1];v=v.slice(E.length),i.push(zA(Z({},e,{now:r,token:E,startSeparator:a}))),a=""}y+=g.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},YA=({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}),Vp=e=>{let t=VA(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=WA(Z({},e,{expandedFormat:t})),o=BA(Z({},e,{expandedFormat:t,escapedParts:n}));return YA(Z({},e,{sections:o}))},UA=e=>{const t=Nt(),n=Ko(),o=Nr(),r=so(),{valueManager:i,fieldValueManager:a,valueType:c,validator:u,internalProps:d,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:w,format:b,formatDensity:g="dense",selectedSections:v,onSelectedSectionsChange:E,shouldRespectLeadingZeros:k=!1,timezone:_,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:C,value:O,handleValueChange:N}=Nd({timezone:_,value:f,defaultValue:p,onChange:w,valueManager:i}),A=T.useMemo(()=>bN(t),[t]),B=T.useMemo(()=>_N(t,A,C),[t,A,C]),R=T.useCallback((V,J=null)=>a.getSectionsFromValue(t,V,J,ee=>Vp({utils:t,localeText:n,localizedDigits:A,format:b,date:ee,formatDensity:g,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:x,isRtl:r})),[a,b,n,A,r,k,t,g,x]),[$,K]=T.useState(()=>{const V=R(O);Ip(V,c);const J={sections:V,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},ee=mN(V),te=i.getInitialReferenceValue({referenceDate:y,value:O,utils:t,props:d,granularity:ee,timezone:C});return Z({},J,{referenceValue:te})}),[X,q]=Co({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=V=>{q(V),E?.(V)},z=T.useMemo(()=>Su(X,$.sections),[X,$.sections]),ae=z==="all"?0:z,I=({value:V,referenceValue:J,sections:ee})=>{if(K(ce=>Z({},ce,{sections:ee,value:V,referenceValue:J,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,V))return;const te={validationError:u({adapter:o,value:V,timezone:C,props:d})};N(V,te)},D=(V,J)=>{const ee=[...$.sections];return ee[V]=Z({},ee[V],{value:J,modified:!0}),ee},j=()=>{I({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},W=()=>{if(ae==null)return;const V=$.sections[ae],J=a.getActiveDateManager(t,$,V),te=J.getSections($.sections).filter(H=>H.value!=="").length===(V.value===""?0:1),ce=D(ae,""),ie=te?null:t.getInvalidDate(),he=J.getNewValuesFromNewActiveDate(ie);I(Z({},he,{sections:ce}))},ne=V=>{const J=(ce,ie)=>{const he=t.parse(ce,b);if(he==null||!t.isValid(he))return null;const H=Vp({utils:t,localeText:n,localizedDigits:A,format:b,date:he,formatDensity:g,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:x,isRtl:r});return Ap(t,he,H,ie,!1)},ee=a.parseValueStr(V,$.referenceValue,J),te=a.updateReferenceValue(t,ee,$.referenceValue);I({value:ee,referenceValue:te,sections:R(ee,$.sections)})},oe=({activeSection:V,newSectionValue:J,shouldGoToNextSection:ee})=>{ee&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,V),ce=D(ae,J),ie=te.getSections(ce),he=CN(t,ie,A);let H,re;if(he!=null&&t.isValid(he)){const Q=Ap(t,he,ie,te.referenceDate,!0);H=te.getNewValuesFromNewActiveDate(Q),re=!0}else H=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?I(Z({},H,{sections:ce})):K(Q=>Z({},Q,H,{sections:ce,tempValueStrAndroid:null}))},se=V=>K(J=>Z({},J,{tempValueStrAndroid:V}));return T.useEffect(()=>{const V=R($.value);Ip(V,c),K(J=>Z({},J,{sections:V}))},[b,t.locale,r]),T.useEffect(()=>{let V;i.areValuesEqual(t,$.value,O)?V=i.getTimezone(t,$.value)!==i.getTimezone(t,O):V=!0,V&&K(J=>Z({},J,{value:O,referenceValue:a.updateReferenceValue(t,O,J.referenceValue),sections:R(O)}))},[O]),{state:$,activeSectionIndex:ae,parsedSelectedSections:z,setSelectedSections:Y,clearValue:j,clearActiveSection:W,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:B,localizedDigits:A,timezone:C}},qA=5e3,Jr=e=>e.saveQuery!=null,GA=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Nt(),[c,u]=T.useState(null),d=Te(()=>u(null));T.useEffect(()=>{c!=null&&e[c.sectionIndex]?.type!==c.sectionType&&d()},[e,c,d]),T.useEffect(()=>{if(c!=null){const b=setTimeout(()=>d(),qA);return()=>{clearTimeout(b)}}return()=>{}},[c,d]);const f=({keyPressed:b,sectionIndex:g},v,E)=>{const k=b.toLowerCase(),_=e[g];if(c!=null&&(!E||E(c.value))&&c.sectionIndex===g){const C=`${c.value}${k}`,O=v(C,_);if(!Jr(O))return u({sectionIndex:g,value:C,sectionType:_.type}),O}const x=v(k,_);return Jr(x)&&!x.saveQuery?(d(),null):(u({sectionIndex:g,value:k,sectionType:_.type}),Jr(x)?null:x)},p=b=>{const g=(k,_,x)=>{const C=_.filter(O=>O.toLowerCase().startsWith(x));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(k,_,x,C)=>{const O=N=>Fy(a,i,_.type,N);if(_.contentType==="letter")return g(_.format,O(_.format),k);if(x&&C!=null&&Od(a,x).contentType==="letter"){const N=O(x),A=g(x,N,k);return Jr(A)?{saveQuery:!1}:Z({},A,{sectionValue:C(A.sectionValue,N)})}return{saveQuery:!1}};return f(b,(k,_)=>{switch(_.type){case"month":{const x=C=>Op(a,C,a.formats.month,_.format);return v(k,_,a.formats.month,x)}case"weekDay":{const x=(C,O)=>O.indexOf(C).toString();return v(k,_,a.formats.weekday,x)}case"meridiem":return v(k,_);default:return{saveQuery:!1}}})},y=b=>{const g=(E,k)=>{const _=Or(E,o),x=Number(_),C=n[k.type]({currentDate:null,format:k.format,contentType:k.contentType});if(x>C.maximum)return{saveQuery:!1};if(x<C.minimum)return{saveQuery:!0};const O=x*10>C.maximum||_.length===C.maximum.toString().length;return{sectionValue:$y(a,x,C,o,k),shouldGoToNextSection:O}};return f(b,(E,k)=>{if(k.contentType==="digit"||k.contentType==="digit-with-letter")return g(E,k);if(k.type==="month"){Vy(a,"digit","month","MM");const _=g(E,{type:k.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Jr(_))return _;const x=Op(a,_.sectionValue,"MM",k.format);return Z({},_,{sectionValue:x})}if(k.type==="weekDay"){const _=g(E,k);if(Jr(_))return _;const x=Kl(a,k.format)[Number(_.sectionValue)-1];return Z({},_,{sectionValue:x})}return{saveQuery:!1}},E=>Dp(E,o))};return{applyCharacterEditing:Te(b=>{const g=e[b.sectionIndex],E=Dp(b.keyPressed,o)?y(Z({},b,{keyPressed:Md(b.keyPressed,o)})):p(b);if(E==null){r(null);return}t({activeSection:g,newSectionValue:E.sectionValue,shouldGoToNextSection:E.shouldGoToNextSection})}),resetCharacterQuery:d}},KA=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:c,onPaste:u,focused:d,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:w,setSelectedSections:b,parsedSelectedSections:g,state:v,clearActiveSection:E,clearValue:k,updateSectionValue:_,updateValueFromValueStr:x,sectionOrder:C,areAllSectionsEmpty:O,sectionsValueBoundaries:N}=e,A=T.useRef(null),B=at(o,A),R=Ko(),$=Nt(),K=lr(),[X,q]=T.useState(!1),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!A.current)return;const re=document.getSelection();if(!re)return;if(g==null){re.rangeCount>0&&A.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),X&&A.current.getRoot().blur();return}if(!A.current.getRoot().contains(In(document)))return;const Q=new window.Range;let fe;g==="all"?fe=A.current.getRoot():v.sections[g].type==="empty"?fe=A.current.getSectionContainer(g):fe=A.current.getSectionContent(g),Q.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Q)},getActiveSectionIndexFromDOM:()=>{const re=In(document);return!re||!A.current||!A.current.getRoot().contains(re)?null:A.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!A.current)return;const Q=Su(re,v.sections);q(!0),A.current.getSectionContent(Q).focus()},setSelectedSections:re=>{if(!A.current)return;const Q=Su(re,v.sections);q((Q==="all"?0:Q)!==null),b(re)},isFieldFocused:()=>{const re=In(document);return!!A.current&&A.current.getRoot().contains(re)}}),[g,b,v.sections,X]),z=Te(re=>{if(!A.current)return;const Q=v.sections[re];A.current.getSectionContent(re).innerHTML=Q.value||Q.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Q)=>{re.isDefaultPrevented()||!A.current||(q(!0),i?.(re,...Q),g==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){b(C.startIndex);return}let me=0,Ce=0;for(;Ce<fe&&me<v.sections.length;){const ve=v.sections[me];me+=1,Ce+=`${ve.startSeparator}${ve.value||ve.placeholder}${ve.endSeparator}`.length}b(me-1)}):X?A.current.getRoot().contains(re.target)||b(C.startIndex):(q(!0),b(C.startIndex)))}),I=Te(re=>{if(c?.(re),!A.current||g!=="all")return;const fe=re.target.textContent??"";A.current.getRoot().innerHTML=v.sections.map(me=>`${me.startSeparator}${me.value||me.placeholder}${me.endSeparator}`).join(""),Y.syncSelectionToDOM(),fe.length===0||fe.charCodeAt(0)===10?(w(),k(),b("all")):fe.length>1?x(fe):y({keyPressed:fe,sectionIndex:0})}),D=Te(re=>{if(u?.(re),n||g!=="all"){re.preventDefault();return}const Q=re.clipboardData.getData("text");re.preventDefault(),w(),x(Q)}),j=Te((...re)=>{if(a?.(...re),X||!A.current)return;q(!0),A.current.getSectionIndexFromDOMElement(In(document))!=null||b(C.startIndex)}),W=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!A.current)return;const Q=In(document);!A.current.getRoot().contains(Q)&&(q(!1),b(null))})}),ne=Te(re=>Q=>{Q.isDefaultPrevented()||b(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{b(re)}),V=Te(re=>{if(re.preventDefault(),n||t||typeof g!="number")return;const Q=v.sections[g],fe=re.clipboardData.getData("text"),me=/^[a-zA-Z]+$/.test(fe),Ce=/^[0-9]+$/.test(fe),ve=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);Q.contentType==="letter"&&me||Q.contentType==="digit"&&Ce||Q.contentType==="digit-with-letter"&&ve?(w(),_({activeSection:Q,newSectionValue:fe,shouldGoToNextSection:!0})):!me&&!Ce&&(w(),x(fe))}),J=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),ee=Te(re=>{if(!A.current)return;const Q=re.target,fe=Q.textContent??"",me=A.current.getSectionIndexFromDOMElement(Q),Ce=v.sections[me];if(n||!A.current){z(me);return}if(fe.length===0){if(Ce.value===""){z(me);return}const ve=re.nativeEvent.inputType;if(ve==="insertParagraph"||ve==="insertLineBreak"){z(me);return}w(),E();return}y({keyPressed:fe,sectionIndex:me}),z(me)});nn(()=>{if(!(!X||!A.current)){if(g==="all")A.current.getRoot().focus();else if(typeof g=="number"){const re=A.current.getSectionContent(g);re&&re.focus()}}},[g,X]);const te=T.useMemo(()=>v.sections.reduce((re,Q)=>(re[Q.type]=N[Q.type]({currentDate:null,contentType:Q.contentType,format:Q.format}),re),{}),[N,v.sections]),ce=g==="all",ie=T.useMemo(()=>v.sections.map((re,Q)=>{const fe=!ce&&!t&&!n;return{container:{"data-sectionindex":Q,onClick:ne(Q)},content:{tabIndex:ce||Q>0?-1:0,contentEditable:!ce&&!t&&!n,role:"spinbutton",id:`${K}-${re.type}`,"aria-labelledby":`${K}-${re.type}`,"aria-readonly":n,"aria-valuenow":kN(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?PN(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:ee,onPaste:V,onFocus:se(Q),onDragOver:J,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,V,J,ee,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{x(re.target.value)}),H=T.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(v.sections),[O,v.sections,p]);return T.useEffect(()=>{if(A.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(`
|
|
327
|
+
`));f&&A.current&&A.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:d??X,sectionListRef:B,onBlur:W,onClick:ae,onFocus:j,onInput:I,onPaste:D,enableAccessibleFieldDOMStructure:!0,elements:ie,tabIndex:g===0?-1:0,contentEditable:ce,value:H,onChange:he,areAllSectionsEmpty:O}}},as=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),XA=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const c=e[a],u=Id(c,n?"input-rtl":"input-ltr",t),d=`${c.startSeparator}${u}${c.endSeparator}`,f=as(d).length,p=d.length,y=as(u),w=r+(y===""?0:u.indexOf(y[0]))+c.startSeparator.length,b=w+y.length;i.push(Z({},c,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},ZA=e=>{const t=so(),n=T.useRef(),o=T.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:c,inputRef:u,placeholder:d},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:g,valueManager:v,applyCharacterEditing:E,resetCharacterQuery:k,updateSectionValue:_,updateValueFromValueStr:x,clearActiveSection:C,clearValue:O,setTempAndroidValueStr:N,setSelectedSections:A,getSectionsFromValue:B,areAllSectionsEmpty:R,localizedDigits:$}=e,K=T.useRef(null),X=at(u,K),q=T.useMemo(()=>XA(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!==In(document))return;const ee=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,ie=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ce!==K.current.selectionStart||ie!==K.current.selectionEnd)&&K.current===In(document)&&K.current.setSelectionRange(ce,ie),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===In(document)&&K.current.selectionStart===K.current.selectionEnd&&(K.current.selectionStart!==ce||K.current.selectionEnd!==ie)&&Y.syncSelectionToDOM()})}K.current.scrollTop=ee},getActiveSectionIndexFromDOM:()=>{const ee=K.current.selectionStart??0,te=K.current.selectionEnd??0;if(ee===0&&te===0)return null;const ce=ee<=q[0].startInInput?1:q.findIndex(ie=>ie.startInInput-ie.startSeparator.length>ee);return ce===-1?q.length-1:ce-1},focusField:(ee=0)=>{K.current?.focus(),A(ee)},setSelectedSections:ee=>A(ee),isFieldFocused:()=>K.current===In(document)}),[K,y,q,A]),z=()=>{const ee=K.current.selectionStart??0;let te;ee<=q[0].startInInput||ee>=q[q.length-1].endInInput?te=1:te=q.findIndex(ie=>ie.startInInput-ie.startSeparator.length>ee);const ce=te===-1?q.length-1:te-1;A(ce)},ae=Te((...ee)=>{r?.(...ee);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?A("all"):z())})}),I=Te((ee,...te)=>{ee.isDefaultPrevented()||(i?.(ee,...te),z())}),D=Te(ee=>{if(a?.(ee),ee.preventDefault(),f||p)return;const te=ee.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],ie=/^[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"&&ie||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&H){k(),_({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(ie||he)return}k(),x(te)}),j=Te((...ee)=>{c?.(...ee),A(null)}),W=Te(ee=>{if(f)return;const te=ee.target.value;if(te===""){k(),O();return}const ce=ee.nativeEvent.data,ie=ce&&ce.length>1,he=ie?ce:te,H=as(he);if(w==null||ie){x(ie?ce:H);return}let re;if(y==="all"&&H.length===1)re=H;else{const Q=as(g.getV6InputValueFromSections(q,$,t));let fe=-1,me=-1;for(let $e=0;$e<Q.length;$e+=1)fe===-1&&Q[$e]!==H[$e]&&(fe=$e),me===-1&&Q[Q.length-$e-1]!==H[H.length-$e-1]&&(me=$e);const Ce=q[w];if(fe<Ce.start||Q.length-me-1>Ce.end)return;const _e=H.length-Q.length+Ce.end-as(Ce.endSeparator||"").length;re=H.slice(Ce.start+as(Ce.startSeparator||"").length,_e)}if(re.length===0){TN()&&N(he),k(),C();return}E({keyPressed:re,sectionIndex:w})}),ne=T.useMemo(()=>d!==void 0?d:g.getV6InputValueFromSections(B(v.emptyValue),$,t),[d,g,B,v.emptyValue,$,t]),oe=T.useMemo(()=>b.tempValueStrAndroid??g.getV6InputValueFromSections(b.sections,$,t),[b.sections,g,b.tempValueStrAndroid,$,t]);T.useEffect(()=>(K.current&&K.current===In(document)&&A("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=T.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),J=!(K.current&&K.current===In(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:j,onClick:I,onFocus:ae,onPaste:D,inputRef:X,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:J?"":oe,onChange:W}}},QA=e=>{const t=Nt(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:c=!1},forwardedProps:{onKeyDown:u,error:d,clearable:f,onClear:p},fieldValueManager:y,valueManager:w,validator:b}=e,g=so(),v=UA(e),{state:E,activeSectionIndex:k,parsedSelectedSections:_,setSelectedSections:x,clearValue:C,clearActiveSection:O,updateSectionValue:N,setTempAndroidValueStr:A,sectionsValueBoundaries:B,localizedDigits:R,timezone:$}=v,K=GA({sections:E.sections,updateSectionValue:N,sectionsValueBoundaries:B,localizedDigits:R,setTempAndroidValueStr:A,timezone:$}),{resetCharacterQuery:X}=K,q=w.areValuesEqual(t,E.value,w.emptyValue),Y=i?KA:ZA,z=T.useMemo(()=>EN(E.sections,g&&!i),[E.sections,g,i]),{returnedValue:ae,interactions:I}=Y(Z({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:z})),D=Te(V=>{if(u?.(V),!a)switch(!0){case((V.ctrlKey||V.metaKey)&&String.fromCharCode(V.keyCode)==="A"&&!V.shiftKey&&!V.altKey):{V.preventDefault(),x("all");break}case V.key==="ArrowRight":{if(V.preventDefault(),_==null)x(z.startIndex);else if(_==="all")x(z.endIndex);else{const J=z.neighbors[_].rightIndex;J!==null&&x(J)}break}case V.key==="ArrowLeft":{if(V.preventDefault(),_==null)x(z.endIndex);else if(_==="all")x(z.startIndex);else{const J=z.neighbors[_].leftIndex;J!==null&&x(J)}break}case V.key==="Delete":{if(V.preventDefault(),c)break;_==null||_==="all"?C():O(),X();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(V.key):{if(V.preventDefault(),c||k==null)break;const J=E.sections[k],ee=y.getActiveDateManager(t,E,J),te=wN(t,$,J,V.key,B,R,ee.date,{minutesStep:r});N({activeSection:J,newSectionValue:te,shouldGoToNextSection:!1});break}}});nn(()=>{I.syncSelectionToDOM()});const{hasValidationError:j}=qy({props:n,validator:b,timezone:$,value:E.value,onError:n.onError}),W=T.useMemo(()=>d!==void 0?d:j,[j,d]);T.useEffect(()=>{!W&&k==null&&X()},[E.referenceValue,k,W]),T.useEffect(()=>{E.tempValueStrAndroid!=null&&k!=null&&(X(),O())},[E.sections]),T.useImperativeHandle(o,()=>({getSections:()=>E.sections,getActiveSectionIndex:I.getActiveSectionIndexFromDOM,setSelectedSections:I.setSelectedSections,focusField:I.focusField,isFieldFocused:I.isFieldFocused}));const ne=Te((V,...J)=>{V.preventDefault(),p?.(V,...J),C(),I.isFieldFocused()?x(z.startIndex):I.focusField(0)}),oe={onKeyDown:D,onClear:ne,error:W,clearable:!!(f&&!q&&!c&&!a)},se={disabled:a,readOnly:c};return Z({},e.forwardedProps,oe,se,ae)},JA=["clearable","onClear","InputProps","sx","slots","slotProps"],eF=["ownerState"],tF=e=>{const t=Ko(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:c}=e,u=We(e,JA),d=a?.clearButton??Ps,f=ct({elementType:d,externalSlotProps:c?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=We(f,eF),y=a?.clearIcon??jA,w=ct({elementType:y,externalSlotProps:c?.clearIcon,ownerState:{}});return Z({},u,{InputProps:Z({},r,{endAdornment:P.jsxs(T.Fragment,{children:[n&&P.jsx(ed,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:P.jsx(d,Z({},p,{onClick:o,children:P.jsx(y,Z({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]]})},nF=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],oF=(e,t)=>T.useMemo(()=>{const n=Z({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return nF.forEach(r),Yy.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),rF=e=>{const t=Nt(),n=ta();return Z({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Gn(t,e.minDate,n.minDate),maxDate:Gn(t,e.maxDate,n.maxDate)})},sF=e=>{const t=rF(e),{forwardedProps:n,internalProps:o}=oF(t,"date");return QA({forwardedProps:n,internalProps:o,valueManager:_o,fieldValueManager:ON,validator:na,valueType:"date"})};function iF(e){return Oe("MuiPickersTextField",e)}De("MuiPickersTextField",["root","focused","disabled","error","required"]);function aF(e){return Oe("MuiPickersInputBase",e)}const ps=De("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function lF(e){return Oe("MuiPickersSectionList",e)}const Js=De("MuiPickersSectionList",["root","section","sectionContent"]),cF=["slots","slotProps","elements","sectionListRef"],tv=le("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),nv=le("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),ov=le("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),rv=le("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),uF=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},lF,t)};function sv(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??nv,a=ct({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),c=t?.sectionContent??rv,u=ct({elementType:c,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),d=t?.sectionSeparator??ov,f=ct({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=ct({elementType:d,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return P.jsxs(i,Z({},a,{children:[P.jsx(d,Z({},f)),P.jsx(c,Z({},u)),P.jsx(d,Z({},p))]}))}process.env.NODE_ENV!=="production"&&(sv.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 iv=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:c}=o,u=We(o,cF),d=uF(o),f=T.useRef(null),p=at(n,f),y=g=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return f.current};T.useImperativeHandle(c,()=>({getRoot(){return y("getRoot")},getSectionContainer(g){return y("getSectionContainer").querySelector(`.${Js.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return y("getSectionContent").querySelector(`.${Js.section}[data-sectionindex="${g}"] .${Js.sectionContent}`)},getSectionIndexFromDOMElement(g){const v=y("getSectionIndexFromDOMElement");if(g==null||!v.contains(g))return null;let E=null;return g.classList.contains(Js.section)?E=g:g.classList.contains(Js.sectionContent)&&(E=g.parentElement),E==null?null:Number(E.dataset.sectionindex)}}));const w=r?.root??tv,b=ct({elementType:w,externalSlotProps:i?.root,externalForwardedProps:u,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:d.root,ownerState:{}});return P.jsx(w,Z({},b,{children:b.contentEditable?a.map(({content:g,before:v,after:E})=>`${v.children}${g.children}${E.children}`).join(""):P.jsx(T.Fragment,{children:a.map((g,v)=>P.jsx(sv,{slots:r,slotProps:i,element:g,classes:d},v))})}))});process.env.NODE_ENV!=="production"&&(iv.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 dF=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],hF=e=>Math.round(e*1e5)/1e5,ec=le("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Z({},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:`${hF(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),$d=le(tv,{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}}]})),fF=le(nv,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),pF=le(rv,{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"})),mF=le(ov,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),gF=le("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Z({},jx)),yF=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:c,size:u,endAdornment:d,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${be(c)}`,u==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(p,aF,r)},tc=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:c,id:u,endAdornment:d,startAdornment:f,renderSuffix:p,slots:y,slotProps:w,contentEditable:b,tabIndex:g,onInput:v,onPaste:E,onKeyDown:k,name:_,readOnly:x,inputProps:C,inputRef:O,sectionListRef:N}=o,A=We(o,dF),B=T.useRef(null),R=at(n,B),$=at(C?.ref,O),K=so(),X=On();if(!X)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=j=>{if(X.disabled){j.stopPropagation();return}X.onFocus?.(j)};T.useEffect(()=>{X&&X.setAdornedStart(!!f)},[X,f]),T.useEffect(()=>{X&&(i?X.onEmpty():X.onFilled())},[X,i]);const Y=Z({},o,X,{isRtl:K}),z=yF(Y),ae=y?.root||ec,I=ct({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:A,additionalProps:{"aria-invalid":X.error,ref:R},className:z.root,ownerState:Y}),D=y?.input||$d;return P.jsxs(ae,Z({},I,{children:[f,P.jsx(iv,{sectionListRef:N,elements:r,contentEditable:b,tabIndex:g,className:z.sectionsContainer,onFocus:q,onBlur:X.onBlur,onInput:v,onPaste:E,onKeyDown:k,slots:{root:D,section:fF,sectionContent:pF,sectionSeparator:mF},slotProps:{root:{ownerState:Y},sectionContent:{className:ps.sectionContent},sectionSeparator:({position:j})=>({className:j==="before"?ps.sectionBefore:ps.sectionAfter})}}),d,p?p(Z({},X)):null,P.jsx(gF,Z({name:_,className:z.input,value:a,onChange:c,id:u,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:X.required,disabled:X.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&(tc.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:Wt,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 vF(e){return Oe("MuiPickersOutlinedInput",e)}const eo=Z({},ps,De("MuiPickersOutlinedInput",["root","notchedOutline","input"])),bF=["children","className","label","notched","shrink"],wF=le("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}}),Wp=le("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),CF=le("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 SF(e){const{className:t,label:n}=e,o=We(e,bF),r=n!=null&&n!=="",i=Z({},e,{withLabel:r});return P.jsx(wF,Z({"aria-hidden":!0,className:t},o,{ownerState:i,children:P.jsx(CF,{ownerState:i,children:r?P.jsx(Wp,{children:n}):P.jsx(Wp,{className:"notranslate",children:""})})}))}const xF=["label","autoFocus","ownerState","notched"],_F=le(ec,{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 .${eo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${eo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${eo.focused} .${eo.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${eo.disabled}`]:{[`& .${eo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${eo.error} .${eo.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:{[`&.${eo.focused}:not(.${eo.error}) .${eo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),RF=le($d,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),TF=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vF,t);return Z({},t,o)},jd=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,c=We(o,xF),u=On(),d=Z({},o,i,u,{color:u?.color||"primary"}),f=TF(d);return P.jsx(tc,Z({slots:{root:_F,input:RF},renderSuffix:p=>P.jsx(SF,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&u?.required?P.jsxs(T.Fragment,{children:[r," ","*"]}):r,ownerState:d})},c,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(jd.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:Wt,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});jd.muiName="Input";function EF(e){return Oe("MuiPickersFilledInput",e)}const vr=Z({},ps,De("MuiPickersFilledInput",["root","underline","input"])),PF=["label","autoFocus","disableUnderline","ownerState"],kF=le(ec,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Fa(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}},[`&.${vr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${vr.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"},[`&.${vr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vr.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(.${vr.disabled}, .${vr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),DF=le($d,{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}}]}),OF=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},EF,t);return Z({},t,r)},Vd=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,c=We(o,PF),u=On(),d=Z({},o,a,u,{color:u?.color||"primary"}),f=OF(d);return P.jsx(tc,Z({slots:{root:kF,input:DF},slotProps:{root:{disableUnderline:i}}},c,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Vd.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:Wt,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});Vd.muiName="Input";function MF(e){return Oe("MuiPickersFilledInput",e)}const ei=Z({},ps,De("MuiPickersInput",["root","input"])),IF=["label","autoFocus","disableUnderline","ownerState"],NF=le(ec,{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"},[`&.${ei.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ei.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(.${ei.disabled}, .${ei.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ei.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),AF=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},MF,t);return Z({},t,r)},Wd=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,c=We(o,IF),u=On(),d=Z({},o,a,u,{disableUnderline:i,color:u?.color||"primary"}),f=AF(d);return P.jsx(tc,Z({slots:{root:NF}},c,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Wd.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:Wt,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});Wd.muiName="Input";const FF=["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"],LF={standard:Wd,filled:Vd,outlined:jd},$F=le(Gi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jF=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},iF,o)},av=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:c="primary",disabled:u=!1,error:d=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:w,inputRef:b,sectionListRef:g,elements:v,areAllSectionsEmpty:E,onClick:k,onKeyDown:_,onKeyUp:x,onPaste:C,onInput:O,endAdornment:N,startAdornment:A,tabIndex:B,contentEditable:R,focused:$,value:K,onChange:X,fullWidth:q,id:Y,name:z,helperText:ae,FormHelperTextProps:I,label:D,InputLabelProps:j}=o,W=We(o,FF),ne=T.useRef(null),oe=at(n,ne),se=lr(Y),V=ae&&se?`${se}-helper-text`:void 0,J=D&&se?`${se}-label`:void 0,ee=Z({},o,{color:c,disabled:u,error:d,focused:$,required:p,variant:f}),te=jF(ee),ce=LF[f];return P.jsxs($F,Z({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:u,variant:f,error:d,color:c,fullWidth:q,required:p,ownerState:ee},W,{children:[P.jsx(Ki,Z({htmlFor:se,id:J},j,{children:D})),P.jsx(ce,Z({elements:v,areAllSectionsEmpty:E,onClick:k,onKeyDown:_,onKeyUp:x,onInput:O,onPaste:C,endAdornment:N,startAdornment:A,tabIndex:B,contentEditable:R,value:K,onChange:X,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:g,label:D,name:z,role:"group","aria-labelledby":J},y)),ae&&P.jsx(Ju,Z({id:V},I,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(av.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:Wt,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 VF=["enableAccessibleFieldDOMStructure"],WF=["InputProps","readOnly"],HF=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],zF=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=We(e,VF);if(t){const{InputProps:p,readOnly:y}=n,w=We(n,WF);return Z({},w,{InputProps:Z({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:c,inputProps:u,inputRef:d}=n,f=We(n,HF);return Z({},f,{InputProps:Z({},c??{},{readOnly:a}),inputProps:Z({},u??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:d})})},BF=["slots","slotProps","InputProps","inputProps"],Hd=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:c}=o,u=We(o,BF),d=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?av:xs),p=ct({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:u,additionalProps:{ref:n},ownerState:d});p.inputProps=Z({},c,p.inputProps),p.InputProps=Z({},a,p.InputProps);const y=sF(p),w=zF(y),b=tF(Z({},w,{slots:r,slotProps:i}));return P.jsx(f,Z({},b))});process.env.NODE_ENV!=="production"&&(Hd.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:Wt,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 lv=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:c})=>{const u=Nr();return T.useCallback(d=>na({adapter:u,value:d,timezone:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[u,e,t,n,o,r,i,a,c])},YF=(e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return Z({},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))),Z({},o,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Z({},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 Z({},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")}},UF=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:c,onMonthChange:u,reduceAnimations:d,shouldDisableDate:f,timezone:p}=e,y=Nt(),w=T.useRef(YF(!!d,i,y)).current,b=T.useMemo(()=>_o.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:mo.day}),[n,p]),[g,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 E=T.useCallback(O=>{v(Z({type:"changeMonth"},O)),u&&u(O.newMonth)},[u]),k=T.useCallback(O=>{const N=O;y.isSameMonth(N,g.currentMonth)||E({newMonth:y.startOfMonth(N),direction:y.isAfterDay(N,g.currentMonth)?"left":"right"})},[g.currentMonth,E,y]),_=lv({shouldDisableDate:f,minDate:c,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),x=T.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((O,N)=>{_(O)||v({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:N})});return{referenceDate:b,calendarState:g,changeMonth:k,changeFocusedDay:C,isDateDisabled:_,onMonthSwitchingAnimationEnd:x,handleChangeMonth:E}},qF=e=>Oe("MuiPickersFadeTransitionGroup",e);De("MuiPickersFadeTransitionGroup",["root"]);const GF=e=>{const{classes:t}=e;return Ie({root:["root"]},qF,t)},KF=le(Bi,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function cv(e){const t=Mt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=GF(t),c=Ts();return r?n:P.jsx(KF,{className:Se(a.root,o),children:P.jsx(Mr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:c.transitions.duration.enteringScreen,enter:c.transitions.duration.enteringScreen,exit:0},children:n},i)})}function XF(e){return Oe("MuiPickersDay",e)}const br=De("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),ZF=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],QF=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:c,classes:u}=e,d=a&&!c;return Ie({root:["root",t&&!d&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&c&&"dayOutsideMonth",d&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},XF,u)},uv=({theme:e})=>Z({},e.typography.caption,{width:Ai,height:Ai,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})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${br.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${br.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}},[`&.${br.disabled}:not(.${br.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${br.disabled}&.${br.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Ql}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${br.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),dv=(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]},JF=le(sr,{name:"MuiPickersDay",slot:"Root",overridesResolver:dv})(uv),eL=le("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:dv})(({theme:e})=>Z({},uv({theme:e}),{opacity:0,pointerEvents:"none"})),ti=()=>{},hv=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:c=!1,disableHighlightToday:u=!1,disableMargin:d=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:w=ti,onBlur:b=ti,onKeyDown:g=ti,onMouseDown:v=ti,onMouseEnter:E=ti,outsideCurrentMonth:k,selected:_=!1,showDaysOutsideCurrentMonth:x=!1,children:C,today:O=!1}=o,N=We(o,ZF),A=Z({},o,{autoFocus:r,disabled:c,disableHighlightToday:u,disableMargin:d,selected:_,showDaysOutsideCurrentMonth:x,today:O}),B=QF(A),R=Nt(),$=T.useRef(null),K=at($,n);nn(()=>{r&&!c&&!f&&!k&&$.current.focus()},[r,c,f,k]);const X=Y=>{v(Y),k&&Y.preventDefault()},q=Y=>{c||y(a),k&&Y.currentTarget.focus(),p&&p(Y)};return k&&!x?P.jsx(eL,{className:Se(B.root,B.hiddenDaySpacingFiller,i),ownerState:A,role:N.role}):P.jsx(JF,Z({className:Se(B.root,i),ref:K,centerRipple:!0,disabled:c,tabIndex:_?0:-1,onKeyDown:Y=>g(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>E(Y,a),onClick:q,onMouseDown:X},N,{ownerState:A,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(hv.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 tL=T.memo(hv),nL=e=>Oe("MuiPickersSlideTransition",e),Vn=De("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),oL=["children","className","reduceAnimations","slideDirection","transKey","classes"],rL=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,nL,t)},sL=le(Bi,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Vn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Vn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Vn.slideEnterActive}`]:t.slideEnterActive},{[`.${Vn.slideExit}`]:t.slideExit},{[`.${Vn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Vn["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},[`& .${Vn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Vn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Vn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Vn.slideExit}`]:{transform:"translate(0%)"},[`& .${Vn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Vn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function iL(e){const t=Mt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=We(t,oL),c=rL(t),u=Ts();if(r)return P.jsx("div",{className:Se(c.root,o),children:n});const d={exit:c.exit,enterActive:c.enterActive,enter:c.enter,exitActive:c.exitActive};return P.jsx(sL,{className:Se(c.root,o),childFactory:f=>T.cloneElement(f,{classNames:d}),role:"presentation",children:P.jsx(Wu,Z({mountOnEnter:!0,unmountOnExit:!0,timeout:u.transitions.duration.complex,classNames:d},a,{children:n}),i)})}const aL=e=>Oe("MuiDayCalendar",e);De("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const lL=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],cL=["ownerState"],uL=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"]},aL,t)},fv=(Ai+Ql*2)*6,dL=le("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hL=le("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),fL=le(Tn,{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})),pL=le(Tn,{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})),mL=le(Tn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Z({},e.typography.caption,{width:Ai,height:Ai,padding:0,margin:`0 ${Ql}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),gL=le("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:fv}),yL=le(iL,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:fv}),vL=le("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),bL=le("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ql}px 0`,display:"flex",justifyContent:"center"});function wL(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:c}=e,u=We(e,lL);const{disabled:d,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:g}=t,v=Nt(),E=Zl(g),k=o!==null&&v.isSameDay(n,o),_=r.some(K=>v.isSameDay(K,n)),x=v.isSameDay(n,E),C=w?.day??tL,O=ct({elementType:C,externalSlotProps:b?.day,additionalProps:Z({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},u),ownerState:Z({},t,{day:n,selected:_})}),N=We(O,cL),A=T.useMemo(()=>d||i(n),[d,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 P.jsx(C,Z({},N,{day:n,disabled:A,autoFocus:c&&k,today:x,outsideCurrentMonth:B,isFirstVisibleCell:R,isLastVisibleCell:$,selected:_,tabIndex:k?0:-1,"aria-selected":_,"aria-current":x?"date":void 0}))}function CL(e){const t=Mt({props:e,name:"MuiDayCalendar"}),n=Nt(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:w=()=>P.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:g,disablePast:v,disableFuture:E,minDate:k,maxDate:_,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:O,dayOfWeekFormatter:N=me=>n.format(me,"weekdayShort").charAt(0).toUpperCase(),hasFocus:A,onFocusedViewChange:B,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:X,timezone:q}=t,Y=Zl(q),z=uL(t),ae=so(),I=lv({shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:O,minDate:k,maxDate:_,disablePast:v,disableFuture:E,timezone:q}),D=Ko(),[j,W]=Co({name:"DayCalendar",state:"hasFocus",controlled:A,default:X??!1}),[ne,oe]=T.useState(()=>c||Y),se=Te(me=>{p||d(me)}),V=me=>{I(me)||(o(me),oe(me),B?.(!0),W(!0))},J=Te((me,Ce)=>{switch(me.key){case"ArrowUp":V(n.addDays(Ce,-7)),me.preventDefault();break;case"ArrowDown":V(n.addDays(Ce,7)),me.preventDefault();break;case"ArrowLeft":{const ve=n.addDays(Ce,ae?1:-1),_e=n.addMonths(Ce,ae?1:-1),$e=pi({utils:n,date:ve,minDate:ae?ve:n.startOfMonth(_e),maxDate:ae?n.endOfMonth(_e):ve,isDateDisabled:I,timezone:q});V($e||ve),me.preventDefault();break}case"ArrowRight":{const ve=n.addDays(Ce,ae?-1:1),_e=n.addMonths(Ce,ae?-1:1),$e=pi({utils:n,date:ve,minDate:ae?n.startOfMonth(_e):ve,maxDate:ae?ve:n.endOfMonth(_e),isDateDisabled:I,timezone:q});V($e||ve),me.preventDefault();break}case"Home":V(n.startOfWeek(Ce)),me.preventDefault();break;case"End":V(n.endOfWeek(Ce)),me.preventDefault();break;case"PageUp":V(n.addMonths(Ce,1)),me.preventDefault();break;case"PageDown":V(n.addMonths(Ce,-1)),me.preventDefault();break}}),ee=Te((me,Ce)=>V(Ce)),te=Te((me,Ce)=>{j&&n.isSameDay(ne,Ce)&&B?.(!1)}),ce=n.getMonth(i),ie=n.getYear(i),he=T.useMemo(()=>a.filter(me=>!!me).map(me=>n.startOfDay(me)),[n,a]),H=`${ie}-${ce}`,re=T.useMemo(()=>T.createRef(),[H]),Q=T.useMemo(()=>{const me=n.startOfMonth(i),Ce=n.endOfMonth(i);return I(ne)||n.isAfterDay(ne,Ce)||n.isBeforeDay(ne,me)?pi({utils:n,date:ne,minDate:me,maxDate:Ce,disablePast:v,disableFuture:E,isDateDisabled:I,timezone:q}):ne},[i,E,v,ne,I,n,q]),fe=T.useMemo(()=>{const me=n.getWeekArray(i);let Ce=n.addMonths(i,1);for(;K&&me.length<K;){const ve=n.getWeekArray(Ce),_e=n.isSameDay(me[me.length-1][0],ve[0][0]);ve.slice(_e?1:0).forEach($e=>{me.length<K&&me.push($e)}),Ce=n.addMonths(Ce,1)}return me},[i,K,n]);return P.jsxs(dL,{role:"grid","aria-labelledby":R,className:z.root,children:[P.jsxs(hL,{role:"row",className:z.header,children:[$&&P.jsx(pL,{variant:"caption",role:"columnheader","aria-label":D.calendarWeekNumberHeaderLabel,className:z.weekNumberLabel,children:D.calendarWeekNumberHeaderText}),dN(n,Y).map((me,Ce)=>P.jsx(fL,{variant:"caption",role:"columnheader","aria-label":n.format(me,"weekday"),className:z.weekDayLabel,children:N(me)},Ce.toString()))]}),u?P.jsx(gL,{className:z.loadingContainer,children:w()}):P.jsx(yL,Z({transKey:H,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,z.slideTransition)},g,{nodeRef:re,children:P.jsx(vL,{ref:re,role:"rowgroup",className:z.monthContainer,children:fe.map((me,Ce)=>P.jsxs(bL,{role:"row",className:z.weekContainer,"aria-rowindex":Ce+1,children:[$&&P.jsx(mL,{className:z.weekNumber,role:"rowheader","aria-label":D.calendarWeekNumberAriaLabelText(n.getWeekNumber(me[0])),children:D.calendarWeekNumberText(n.getWeekNumber(me[0]))}),me.map((ve,_e)=>P.jsx(wL,{parentProps:t,day:ve,selectedDays:he,focusableDay:Q,onKeyDown:J,onFocus:ee,onBlur:te,onDaySelect:se,isDateDisabled:I,currentMonthNumber:ce,isViewFocused:j,"aria-colindex":_e+1},ve.toString()))]},`week-${me[0]}`))})}))]})}function SL(e){return Oe("MuiPickersMonth",e)}const Da=De("MuiPickersMonth",["root","monthButton","disabled","selected"]),xL=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],_L=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},SL,o)},RL=le("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%"}}]}),TL=le("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Da.disabled}`]:t.disabled},{[`&.${Da.selected}`]:t.selected}]})(({theme:e})=>Z({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})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Da.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Da.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),EL=T.memo(function(t){const n=Mt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:c,value:u,tabIndex:d,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,"aria-label":g,slots:v,slotProps:E}=n,k=We(n,xL),_=T.useRef(null),x=_L(n);nn(()=>{o&&_.current?.focus()},[o]);const C=v?.monthButton??TL,O=ct({elementType:C,externalSlotProps:E?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:d,ref:_,type:"button",role:"radio","aria-current":b,"aria-checked":c,"aria-label":g,onClick:N=>f(N,u),onKeyDown:N=>p(N,u),onFocus:N=>y(N,u),onBlur:N=>w(N,u)},ownerState:n,className:x.monthButton});return P.jsx(RL,Z({className:Se(x.root,r),ownerState:n},k,{children:P.jsx(C,Z({},O))}))});function PL(e){return Oe("MuiMonthCalendar",e)}De("MuiMonthCalendar",["root"]);const kL=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],DL=e=>{const{classes:t}=e;return Ie({root:["root"]},PL,t)};function OL(e,t){const n=Nt(),o=ta(),r=Mt({props:e,name:t});return Z({disableFuture:!1,disablePast:!1},r,{minDate:Gn(n,r.minDate,o.minDate),maxDate:Gn(n,r.maxDate,o.maxDate)})}const ML=le("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Jl,boxSizing:"border-box"}),pv=T.forwardRef(function(t,n){const o=OL(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:c,disabled:u,disableFuture:d,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:g,autoFocus:v=!1,onMonthFocus:E,hasFocus:k,onFocusedViewChange:_,monthsPerRow:x=3,timezone:C,gridLabelId:O,slots:N,slotProps:A}=o,B=We(o,kL),{value:R,handleValueChange:$,timezone:K}=Ad({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:_o}),X=Zl(K),q=so(),Y=Nt(),z=T.useMemo(()=>_o.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:c,granularity:mo.month}),[]),ae=o,I=DL(ae),D=T.useMemo(()=>Y.getMonth(X),[Y,X]),j=T.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[W,ne]=T.useState(()=>j||Y.getMonth(z)),[oe,se]=Co({name:"MonthCalendar",state:"hasFocus",controlled:k,default:v??!1}),V=Te(H=>{se(H),_&&_(H)}),J=T.useCallback(H=>{const re=Y.startOfMonth(f&&Y.isAfter(X,y)?X:y),Q=Y.startOfMonth(d&&Y.isBefore(X,p)?X:p),fe=Y.startOfMonth(H);return Y.isBefore(fe,re)||Y.isAfter(fe,Q)?!0:b?b(fe):!1},[d,f,p,y,X,b,Y]),ee=Te((H,re)=>{if(g)return;const Q=Y.setMonth(R??z,re);$(Q)}),te=Te(H=>{J(Y.setMonth(R??z,H))||(ne(H),V(!0),E&&E(H))});T.useEffect(()=>{ne(H=>j!==null&&H!==j?j:H)},[j]);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}}),ie=Te((H,re)=>{te(re)}),he=Te((H,re)=>{W===re&&V(!1)});return P.jsx(ML,Z({ref:n,className:Se(I.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":O},B,{children:kd(Y,R??z).map(H=>{const re=Y.getMonth(H),Q=Y.format(H,"monthShort"),fe=Y.format(H,"month"),me=re===j,Ce=u||J(H);return P.jsx(EL,{selected:me,value:re,onClick:ee,onKeyDown:ce,autoFocus:oe&&re===W,disabled:Ce,tabIndex:re===W&&!Ce?0:-1,onFocus:ie,onBlur:he,"aria-current":D===re?"date":void 0,"aria-label":fe,monthsPerRow:x,slots:N,slotProps:A,children:Q},Q)})}))});process.env.NODE_ENV!=="production"&&(pv.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 IL(e){return Oe("MuiPickersYear",e)}const Oa=De("MuiPickersYear",["root","yearButton","selected","disabled"]),NL=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],AL=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},IL,o)},FL=le("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%"}}]}),LL=le("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Oa.disabled}`]:t.disabled},{[`&.${Oa.selected}`]:t.selected}]})(({theme:e})=>Z({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})`:it(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Oa.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Oa.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),$L=T.memo(function(t){const n=Mt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:c,value:u,tabIndex:d,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,slots:g,slotProps:v}=n,E=We(n,NL),k=T.useRef(null),_=AL(n);nn(()=>{o&&k.current?.focus()},[o]);const x=g?.yearButton??LL,C=ct({elementType:x,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:d,ref:k,type:"button",role:"radio","aria-current":b,"aria-checked":c,onClick:O=>f(O,u),onKeyDown:O=>p(O,u),onFocus:O=>y(O,u),onBlur:O=>w(O,u)},ownerState:n,className:_.yearButton});return P.jsx(FL,Z({className:Se(_.root,r),ownerState:n},E,{children:P.jsx(x,Z({},C))}))});function jL(e){return Oe("MuiYearCalendar",e)}De("MuiYearCalendar",["root"]);const VL=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],WL=e=>{const{classes:t}=e;return Ie({root:["root"]},jL,t)};function HL(e,t){const n=Nt(),o=ta(),r=Mt({props:e,name:t});return Z({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:Gn(n,r.minDate,o.minDate),maxDate:Gn(n,r.maxDate,o.maxDate)})}const zL=le("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Jl,maxHeight:CA,boxSizing:"border-box",position:"relative"}),mv=T.forwardRef(function(t,n){const o=HL(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:c,referenceDate:u,disabled:d,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:g,shouldDisableYear:v,onYearFocus:E,hasFocus:k,onFocusedViewChange:_,yearsOrder:x="asc",yearsPerRow:C,timezone:O,gridLabelId:N,slots:A,slotProps:B}=o,R=We(o,VL),{value:$,handleValueChange:K,timezone:X}=Ad({name:"YearCalendar",timezone:O,value:a,defaultValue:c,onChange:b,valueManager:_o}),q=Zl(X),Y=so(),z=Nt(),ae=T.useMemo(()=>_o.getInitialReferenceValue({value:$,utils:z,props:o,timezone:X,referenceDate:u,granularity:mo.year}),[]),I=o,D=WL(I),j=T.useMemo(()=>z.getYear(q),[z,q]),W=T.useMemo(()=>$!=null?z.getYear($):null,[$,z]),[ne,oe]=T.useState(()=>W||z.getYear(ae)),[se,V]=Co({name:"YearCalendar",state:"hasFocus",controlled:k,default:r??!1}),J=Te(ve=>{V(ve),_&&_(ve)}),ee=T.useCallback(ve=>{if(p&&z.isBeforeYear(ve,q)||f&&z.isAfterYear(ve,q)||w&&z.isBeforeYear(ve,w)||y&&z.isAfterYear(ve,y))return!0;if(!v)return!1;const _e=z.startOfYear(ve);return v(_e)},[f,p,y,w,q,v,z]),te=Te((ve,_e)=>{if(g)return;const $e=z.setYear($??ae,_e);K($e)}),ce=Te(ve=>{ee(z.setYear($??ae,ve))||(oe(ve),J(!0),E?.(ve))});T.useEffect(()=>{oe(ve=>W!==null&&ve!==W?W:ve)},[W]);const ie=x!=="desc"?C*1:C*-1,he=Y&&x==="asc"||!Y&&x==="desc"?-1:1,H=Te((ve,_e)=>{switch(ve.key){case"ArrowUp":ce(_e-ie),ve.preventDefault();break;case"ArrowDown":ce(_e+ie),ve.preventDefault();break;case"ArrowLeft":ce(_e-he),ve.preventDefault();break;case"ArrowRight":ce(_e+he),ve.preventDefault();break}}),re=Te((ve,_e)=>{ce(_e)}),Q=Te((ve,_e)=>{ne===_e&&J(!1)}),fe=T.useRef(null),me=at(n,fe);T.useEffect(()=>{if(r||fe.current===null)return;const ve=fe.current.querySelector('[tabindex="0"]');if(!ve)return;const _e=ve.offsetHeight,$e=ve.offsetTop,Ae=fe.current.clientHeight,rt=fe.current.scrollTop,ke=$e+_e;_e>Ae||$e<rt||(fe.current.scrollTop=ke-Ae/2-_e/2)},[r]);const Ce=z.getYearRange([w,y]);return x==="desc"&&Ce.reverse(),P.jsx(zL,Z({ref:me,className:Se(D.root,i),ownerState:I,role:"radiogroup","aria-labelledby":N},R,{children:Ce.map(ve=>{const _e=z.getYear(ve),$e=_e===W,Ae=d||ee(ve);return P.jsx($L,{selected:$e,value:_e,onClick:te,onKeyDown:H,autoFocus:se&&_e===ne,disabled:Ae,tabIndex:_e===ne&&!Ae?0:-1,onFocus:re,onBlur:Q,"aria-current":j===_e?"date":void 0,yearsPerRow:C,slots:A,slotProps:B,children:z.format(ve,"year")},z.format(ve,"year"))})}))});process.env.NODE_ENV!=="production"&&(mv.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 BL=e=>Oe("MuiPickersCalendarHeader",e),YL=De("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function UL(e){return Oe("MuiPickersArrowSwitcher",e)}De("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const qL=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],GL=["ownerState"],KL=["ownerState"],XL=le("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),ZL=le("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Hp=le(Ps,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),QL=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},UL,t)},JL=T.forwardRef(function(t,n){const o=so(),r=Mt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:c,slotProps:u,isNextDisabled:d,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:g,previousLabel:v,labelId:E}=r,k=We(r,qL),_=r,x=QL(_),C={isDisabled:d,isHidden:f,goTo:p,label:y},O={isDisabled:w,isHidden:b,goTo:g,label:v},N=c?.previousIconButton??Hp,A=ct({elementType:N,externalSlotProps:u?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Z({},_,{hidden:O.isHidden}),className:Se(x.button,x.previousIconButton)}),B=c?.nextIconButton??Hp,R=ct({elementType:B,externalSlotProps:u?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Z({},_,{hidden:C.isHidden}),className:Se(x.button,x.nextIconButton)}),$=c?.leftArrowIcon??FA,K=ct({elementType:$,externalSlotProps:u?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:_,className:x.leftArrowIcon}),X=We(K,GL),q=c?.rightArrowIcon??LA,Y=ct({elementType:q,externalSlotProps:u?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:_,className:x.rightArrowIcon}),z=We(Y,KL);return P.jsxs(XL,Z({ref:n,className:Se(x.root,a),ownerState:_},k,{children:[P.jsx(N,Z({},A,{children:o?P.jsx(q,Z({},z)):P.jsx($,Z({},X))})),i?P.jsx(Tn,{variant:"subtitle1",component:"span",id:E,children:i}):P.jsx(ZL,{className:x.spacer,ownerState:_}),P.jsx(B,Z({},R,{children:o?P.jsx($,Z({},X)):P.jsx(q,Z({},z))}))]}))});function e$(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Nt();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 t$(e,{disablePast:t,minDate:n,timezone:o}){const r=Nt();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 n$=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],o$=["ownerState"],r$=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},BL,t)},s$=le("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}),i$=le("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),a$=le("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),l$=le(Ps,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${YL.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),c$=le(AA,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),gv=T.forwardRef(function(t,n){const o=Ko(),r=Nt(),i=Mt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:c,currentMonth:u,disabled:d,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:g,view:v,reduceAnimations:E,views:k,labelId:_,className:x,timezone:C,format:O=`${r.formats.month} ${r.formats.year}`}=i,N=We(i,n$),A=i,B=r$(i),R=a?.switchViewButton??l$,$=ct({elementType:R,externalSlotProps:c?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:A,className:B.switchViewButton}),K=a?.switchViewIcon??c$,X=ct({elementType:K,externalSlotProps:c?.switchViewIcon,ownerState:A,className:B.switchViewIcon}),q=We(X,o$),Y=()=>b(r.addMonths(u,1),"left"),z=()=>b(r.addMonths(u,-1),"right"),ae=e$(u,{disableFuture:f,maxDate:y,timezone:C}),I=t$(u,{disablePast:p,minDate:w,timezone:C}),D=()=>{if(!(k.length===1||!g||d))if(k.length===2)g(k.find(W=>W!==v)||k[0]);else{const W=k.indexOf(v)!==0?0:1;g(k[W])}};if(k.length===1&&k[0]==="year")return null;const j=r.formatByString(u,O);return P.jsxs(s$,Z({},N,{ownerState:A,className:Se(B.root,x),ref:n,children:[P.jsxs(i$,{role:"presentation",onClick:D,ownerState:A,"aria-live":"polite",className:B.labelContainer,children:[P.jsx(cv,{reduceAnimations:E,transKey:j,children:P.jsx(a$,{id:_,ownerState:A,className:B.label,children:j})}),k.length>1&&!d&&P.jsx(R,Z({},$,{children:P.jsx(K,Z({},q))}))]}),P.jsx(Mr,{in:v==="day",children:P.jsx(JL,{slots:a,slotProps:c,onGoToPrevious:z,isPreviousDisabled:I,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(gv.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 u$=le("div")({overflow:"hidden",width:Jl,maxHeight:Fd,display:"flex",flexDirection:"column",margin:"0 auto"}),d$=e=>Oe("MuiDateCalendar",e);De("MuiDateCalendar",["root","viewTransitionContainer"]);const h$=["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"],f$=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},d$,t)};function p$(e,t){const n=Nt(),o=ta(),r=Gy(),i=Mt({props:e,name:t});return Z({},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??(()=>P.jsx("span",{children:"..."})),minDate:Gn(n,i.minDate,o.minDate),maxDate:Gn(n,i.maxDate,o.maxDate)})}const m$=le(u$,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Fd}),g$=le(cv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),yv=T.forwardRef(function(t,n){const o=Nt(),r=lr(),i=p$(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:c,value:u,defaultValue:d,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:g,reduceAnimations:v,shouldDisableDate:E,shouldDisableMonth:k,shouldDisableYear:_,view:x,views:C,openTo:O,className:N,disabled:A,readOnly:B,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:X,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:z,dayOfWeekFormatter:ae,slots:I,slotProps:D,loading:j,renderLoading:W,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:V,timezone:J}=i,ee=We(i,h$),{value:te,handleValueChange:ce,timezone:ie}=Ad({name:"DateCalendar",timezone:J,value:u,defaultValue:d,onChange:w,valueManager:_o}),{view:he,setView:H,focusedView:re,setFocusedView:Q,goToNextView:fe,setValueAndGoToNextView:me}=Ky({view:x,views:C,openTo:O,onChange:ce,onViewChange:c,autoFocus:a,focusedView:X,onFocusedViewChange:q}),{referenceDate:Ce,calendarState:ve,changeFocusedDay:_e,changeMonth:$e,handleChangeMonth:Ae,isDateDisabled:rt,onMonthSwitchingAnimationEnd:ke}=UF({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:g,minDate:R,maxDate:$,shouldDisableDate:E,disablePast:y,disableFuture:p,timezone:ie}),ft=A&&te||R,Kt=A&&te||$,st=`${r}-grid-label`,Yt=re!==null,Xt=I?.calendarHeader??gv,on=ct({elementType:Xt,externalSlotProps:D?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ve.currentMonth,onViewChange:H,onMonthChange:(pt,Qt)=>Ae({newMonth:pt,direction:Qt}),minDate:ft,maxDate:Kt,disabled:A,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:ie,labelId:st},ownerState:i}),Ye=Te(pt=>{const Qt=o.startOfMonth(pt),vn=o.endOfMonth(pt),Jt=rt(pt)?pi({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:rt,timezone:ie}):pt;Jt?(me(Jt,"finish"),g?.(Qt)):(fe(),$e(Qt)),_e(Jt,!0)}),tt=Te(pt=>{const Qt=o.startOfYear(pt),vn=o.endOfYear(pt),Jt=rt(pt)?pi({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:rt,timezone:ie}):pt;Jt?(me(Jt,"finish"),b?.(Jt)):(fe(),$e(Qt)),_e(Jt,!0)}),Mn=Te(pt=>ce(pt&&cl(o,pt,te??Ce),"finish",he));T.useEffect(()=>{te!=null&&o.isValid(te)&&$e(te)},[te]);const hn=i,Me=f$(hn),He={disablePast:y,disableFuture:p,maxDate:$,minDate:R},vt={disableHighlightToday:K,readOnly:B,disabled:A,timezone:ie,gridLabelId:st,slots:I,slotProps:D},ln=T.useRef(he);T.useEffect(()=>{ln.current!==he&&(re===ln.current&&Q(he,!0),ln.current=he)},[re,Q,he]);const ao=T.useMemo(()=>[te],[te]);return P.jsxs(m$,Z({ref:n,className:Se(Me.root,N),ownerState:hn},ee,{children:[P.jsx(Xt,Z({},on,{slots:I,slotProps:D})),P.jsx(g$,{reduceAnimations:v,className:Me.viewTransitionContainer,transKey:he,ownerState:hn,children:P.jsxs("div",{children:[he==="year"&&P.jsx(mv,Z({},He,vt,{value:te,onChange:tt,shouldDisableYear:_,hasFocus:Yt,onFocusedViewChange:pt=>Q("year",pt),yearsOrder:oe,yearsPerRow:se,referenceDate:Ce})),he==="month"&&P.jsx(pv,Z({},He,vt,{hasFocus:Yt,className:N,value:te,onChange:Ye,shouldDisableMonth:k,onFocusedViewChange:pt=>Q("month",pt),monthsPerRow:V,referenceDate:Ce})),he==="day"&&P.jsx(CL,Z({},ve,He,vt,{onMonthSwitchingAnimationEnd:ke,onFocusedDayChange:_e,reduceAnimations:v,selectedDays:ao,onSelectedDaysChange:Mn,shouldDisableDate:E,shouldDisableMonth:k,shouldDisableYear:_,hasFocus:Yt,onFocusedViewChange:pt=>Q("day",pt),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:z,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:j,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(yv.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 ms=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:c,onChange:u,className:d,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:E,reduceAnimations:k,onMonthChange:_,monthsPerRow:x,onYearChange:C,yearsOrder:O,yearsPerRow:N,slots:A,slotProps:B,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:z,sx:ae,autoFocus:I,fixedWeekNumber:D,displayWeekNumber:j,timezone:W})=>P.jsx(yv,{view:e,onViewChange:t,views:n.filter(Ep),focusedView:o&&Ep(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:c,onChange:u,className:d,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:E,reduceAnimations:k,onMonthChange:_,monthsPerRow:x,onYearChange:C,yearsOrder:O,yearsPerRow:N,slots:A,slotProps:B,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:z,sx:ae,autoFocus:I,fixedWeekNumber:D,displayWeekNumber:j,timezone:W}),vv=T.forwardRef(function(t,n){const o=Ko(),r=Nt(),i=By(t,"MuiDesktopDatePicker"),a=Z({day:ms,month:ms,year:ms},i.viewRenderers),c=Z({},i,{viewRenderers:a,format:Dd(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Z({openPickerIcon:$A,field:Hd},i.slots),slotProps:Z({},i.slotProps,{field:d=>Z({},kl(i.slotProps?.field,d),Uy(i),{ref:n}),toolbar:Z({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:u}=NA({props:c,valueManager:_o,valueType:"date",getOpenDialogAriaText:Wy({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:c.localeText?.openDatePickerDialogue}),validator:na});return u()});vv.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:Wt,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 y$=le(vg)({[`& .${di.container}`]:{outline:0},[`& .${di.paper}`]:{outline:0,minWidth:Jl}}),v$=le(wg)({"&:first-of-type":{padding:0}});function b$(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??y$,c=r?.mobileTransition??Mr;return P.jsx(a,Z({open:o,onClose:n},i?.dialog,{TransitionComponent:c,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:P.jsx(v$,{children:t})}))}const w$=["props","getOpenDialogAriaText"],C$=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,w$);const{slots:r,slotProps:i,className:a,sx:c,format:u,formatDensity:d,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:g,inputRef:v,readOnly:E,disabled:k,localeText:_}=t,x=T.useRef(null),C=lr(),O=i?.toolbar?.hidden??!1,{open:N,actions:A,layoutProps:B,renderCurrentView:R,fieldProps:$,contextValue:K}=Xy(Z({},o,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),X=r.field,q=ct({elementType:X,externalSlotProps:i?.field,additionalProps:Z({},$,O&&{id:C},!(k||E)&&{onClick:A.onOpen,onKeyDown:ZN(A.onOpen)},{readOnly:E??!0,disabled:k,className:a,sx:c,format:u,formatDensity:d,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:g,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Z({},q.inputProps,{"aria-label":n($.value)});const Y=Z({textField:r.textField},q.slots),z=r.layout??Ld;let ae=C;O&&(g?ae=`${C}-label`:ae=void 0);const I=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:C}),mobilePaper:Z({"aria-labelledby":ae},i?.mobilePaper)}),D=at(x,q.unstableFieldRef);return{renderPicker:()=>P.jsxs(ev,{contextValue:K,localeText:_,children:[P.jsx(X,Z({},q,{slots:Y,slotProps:I,unstableFieldRef:D})),P.jsx(b$,Z({},A,{open:N,slots:r,slotProps:I,children:P.jsx(z,Z({},B,I?.layout,{slots:r,slotProps:I,children:R()}))}))]})}},bv=T.forwardRef(function(t,n){const o=Ko(),r=Nt(),i=By(t,"MuiMobileDatePicker"),a=Z({day:ms,month:ms,year:ms},i.viewRenderers),c=Z({},i,{viewRenderers:a,format:Dd(r,i,!1),slots:Z({field:Hd},i.slots),slotProps:Z({},i.slotProps,{field:d=>Z({},kl(i.slotProps?.field,d),Uy(i),{ref:n}),toolbar:Z({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:u}=C$({props:c,valueManager:_o,valueType:"date",getOpenDialogAriaText:Wy({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:c.localeText?.openDatePickerDialogue}),validator:na});return u()});bv.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:Wt,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 S$=["desktopModeMediaQuery"],dl=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=QN}=o,i=We(o,S$);return Em(r,{defaultMatches:!0})?P.jsx(vv,Z({ref:n},i)):P.jsx(bv,Z({ref:n},i))});process.env.NODE_ENV!=="production"&&(dl.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:Wt,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 xu=le(ks)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),x$=({setValue:e,value:t})=>{function n(r){const i=r?.format(Er.db)||"",a={...t,1:i===yu?_s[1]:i};e(a),Uo(a)}function o(r){const i=r?.format(Er.db)||"",a={...t,2:i===yu?_s[2]:i};e(a),Uo(a)}return P.jsxs(Xl,{dateAdapter:Ny,children:[P.jsx(xu,{children:P.jsx(dl,{label:to.from,onChange:n,...Cu(t[1])})}),P.jsx(xu,{children:P.jsx(dl,{label:to.to,onChange:o,...Cu(t[2])})})]})},qc=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Er.db)||"",a={...n,1:i===yu?_s[1]:i};t(a),Uo(a)}return P.jsx(Xl,{dateAdapter:Ny,children:P.jsx(xu,{children:P.jsx(dl,{label:e,onChange:o,...Cu(n[1])})})})},zp={label:"",options:[]};function _$(){const{columnId:e,table:t}=wn,n=t?.grid;if(!n)return zp;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return zp;const r=o.name,i=[],{formatter:a,id:c}=o,u=n.getData(),d=new Set;u.getItems().forEach(p=>{d.add(a?a(0,0,p[c],o,null,n):p[c])});for(const p of d)i.push(p);return{label:r,options:i}}function R$(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const T$=le(Zu)({padding:0}),Bp={Checkbox:T$},E$=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=_$(),i=a=>{const c=a.target.value;let u;c[c.length-1]==="All"||!c.length?u={1:"",2:""}:(c.length>1&&c[0]==="All"&&c.shift(),u={...t,1:JSON.stringify(c)}),e(u),Uo(u)};return P.jsxs(Gi,{size:"small",children:[P.jsx(Ki,{id:"column-filter-multiple-select-label",children:o}),P.jsxs(Xi,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:P.jsx(Ss,{label:o}),renderValue:a=>a.join(", "),children:[P.jsxs(nl,{value:"All",children:[P.jsx(Bp.Checkbox,{checked:n.indexOf("All")>-1}),P.jsx(cu,{primary:"All"})]},0),r.sort(R$).map(a=>P.jsxs(nl,{value:a,children:[P.jsx(Bp.Checkbox,{checked:n.indexOf(a)>-1}),P.jsx(cu,{primary:a})]},a))]})]})},P$=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),Uo(i)}function o(r){const i={...t,2:r.target.value};e(i),Uo(i)}return P.jsxs(Ze.Fragment,{children:[P.jsx(xs,{label:to.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),P.jsx(xs,{label:to.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},Gc=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),Uo(i)}return P.jsx(xs,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},Ma=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),Uo(r)}return P.jsx(xs,{label:to.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},k$=({filterId:e,setValue:t,value:n})=>P.jsxs(Ze.Fragment,{children:[e===je.Boolean&&P.jsx(rN,{setValue:t,value:n}),e===je.TextEqual&&P.jsx(Ma,{setValue:t,value:n}),e===je.TextNotEqual&&P.jsx(Ma,{setValue:t,value:n}),e===je.TextContain&&P.jsx(Ma,{setValue:t,value:n}),e===je.TextNotContain&&P.jsx(Ma,{setValue:t,value:n}),e===je.MultipleSelect&&P.jsx(E$,{setValue:t,value:n}),e===je.NumberEqual&&P.jsx(Gc,{label:to.filter,setValue:t,value:n}),e===je.NumberFrom&&P.jsx(Gc,{label:to.from,setValue:t,value:n}),e===je.NumberTo&&P.jsx(Gc,{label:to.to,setValue:t,value:n}),e===je.NumberBetween&&P.jsx(P$,{setValue:t,value:n}),e===je.DateEqual&&P.jsx(qc,{label:to.filter,setValue:t,value:n}),e===je.DateFrom&&P.jsx(qc,{label:to.from,setValue:t,value:n}),e===je.DateTo&&P.jsx(qc,{label:to.to,setValue:t,value:n}),e===je.DateBetween&&P.jsx(x$,{setValue:t,value:n})]}),D$=le(nl)({fontSize:"12px"}),Yp={MenuItem:D$},O$=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:c="12.8em",height:u,disabled:d=!1})=>P.jsxs(Gi,{variant:"outlined",size:"small",children:[P.jsx(Ki,{id:"reportType",children:e}),P.jsxs(Xi,{labelId:"reportType",id:e,label:e,autoWidth:!0,value:`${r??(o||0)}`,defaultValue:`${o||0}`,onChange:n,disabled:d,"data-testid":a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0},sx:{height:u,width:c},children:[i&&P.jsx(Yp.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>P.jsx(Yp.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),M$={id:je.DateBetween,name:"Between"},I$={id:je.DateEqual,name:"Equal"},N$={id:je.DateFrom,name:"From"},A$={id:je.DateTo,name:"To"},F$={id:je.NumberBetween,name:"Between"},L$={id:je.NumberEqual,name:"Equal"},$$={id:je.NumberFrom,name:"From"},j$={id:je.NumberTo,name:"To"},V$={id:je.TextContain,name:"Contains"},W$={id:je.TextEqual,name:"Equal"},H$={id:je.TextNotContain,name:"Does not contain"},z$={id:je.TextNotEqual,name:"Not equal"},Up=[L$,$$,j$,F$],B$={[sn.Boolean]:[],[sn.Date]:[I$,N$,A$,M$],[sn.MultipleSelect]:[],[sn.Number]:Up,[sn.NumberFormatted]:Up,[sn.Text]:[V$,H$,W$,z$]},Y$=({filterId:e,setFilterId:t})=>{const n=B$[wn.group],o=n.some(({id:i})=>i===e)?e:n[0]?.id;function r(i){const{columnId:a,table:c}=wn;if(!a||!c)return;const u=c.filter.args,d=i.target.value;u.columnFilters&&(c.filter.args={...u,columnFilters:{...u.columnFilters,[a]:{...u.columnFilters[a],filterId:d}}},t(d))}return o?P.jsx(O$,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},U$=le(ks)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),q$={Wrapper:U$},G$=()=>{const[e,t]=Ze.useState(_s),[n,o]=Ze.useState(je.TextContain),[r,i]=Ze.useState(!1);return QI(i),ZI(r,o,t),r?P.jsx(Ng,{setIsOpened:i,children:P.jsxs(q$.Wrapper,{children:[P.jsx(Y$,{filterId:n,setFilterId:o}),P.jsx(k$,{filterId:n,setValue:t,value:e}),P.jsx(tN,{setIsOpened:i,setValue:t,value:e})]})}):null};function K$(e){Ze.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(_u);if(!n)return;const{x:o,y:r}=Cn;Kp(n,o,r)},0)}return Cn.subscribe(t),()=>{Cn.unsubscribe(t)}},[])}const X$=le("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),Z$=le("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),Q$=le("span")(({theme:e})=>({backgroundColor:e.palette.text.primary})),dn={Ul:X$,Li:Z$,Icon:Q$},J$=({clientId:e,clientName:t,setIsOpened:n})=>{const o=()=>{const r=Cn.table,i=r?.grid;if(!r||!i){n(!1);return}r.downloadManager.download(r,e,t),n(!1)};return P.jsxs(dn.Li,{onClick:o,children:[P.jsx(dn.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},ej=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:P.jsxs(dn.Li,{onClick:n,children:[P.jsx(dn.Icon,{className:"sgi sgi-link"}),"Group"]})};function tj(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const nj=({setIsOpened:e})=>{const t=Cn.table;function n(){if(!t){e(!1);return}const o=t.filter.args;delete o.columnFilters,t.filter.args=o,Dr.highlightAllColumns(o,t.id),e(!1)}return tj(t)?P.jsxs(Ze.Fragment,{children:[P.jsx(tl,{}),P.jsxs(dn.Li,{onClick:n,children:[P.jsx(dn.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},oj=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?P.jsxs(dn.Li,{onClick:n,children:[P.jsx(dn.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},rj=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?P.jsxs(dn.Li,{onClick:n,children:[P.jsx(dn.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},sj=({setIsOpened:e})=>{function t(){const n=Cn.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 P.jsxs(dn.Li,{onClick:t,children:[P.jsx(dn.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},ij=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?P.jsxs(dn.Li,{onClick:n,children:[P.jsx(dn.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},aj=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=Cn.table;r?.printer.print(r,e,t),n(!1)}return P.jsxs(dn.Li,{onClick:o,children:[P.jsx(dn.Icon,{className:"sgi sgi-printer"}),"Print"]})},lj=({clientId:e,clientName:t})=>{const[n,o]=Ze.useState(!1);return K$(o),n?P.jsx(Ng,{setIsOpened:o,children:P.jsxs(dn.Ul,{children:[P.jsx(aj,{clientId:e,clientName:t,setIsOpened:o}),P.jsx(sj,{setIsOpened:o}),P.jsx(J$,{clientId:e,clientName:t,setIsOpened:o}),P.jsx(nj,{setIsOpened:o}),P.jsx(oj,{setIsOpened:o}),P.jsx(ej,{setIsOpened:o}),P.jsx(ij,{setIsOpened:o}),P.jsx(rj,{setIsOpened:o})]})}):null};exports.ColumnFilters=G$;exports.ContextMenu=lj;exports.DecoratorColumnFilter=PI;exports.DecoratorFilter=Py;exports.DefaultPrinter=My;exports.DeletedRowsFilter=ZM;exports.EColumnFiltersGroup=sn;exports.Filter=Ey;exports.SlickTable=NI;exports.handleHeaderButtons=nI;exports.headerButtons=Dr;exports.openColumnFilter=JM;exports.openContextMenu=$I;
|