slick-table 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +26 -26
- package/dist/index.es.js +1385 -1385
- package/dist/types/shared/lib/slickgrid/lib/editors/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/types/shared/model/enums/EKey.d.ts +2 -1
- package/dist/types/shared/model/enums/EKey.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
`+ee+U}}var ce=!1,ie;{var he=typeof WeakMap=="function"?WeakMap:Map;ie=new he}function W(U,pe){if(!U||ce)return"";{var we=ie.get(U);if(we!==void 0)return we}var Ne;ce=!0;var Ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Je;Je=J.current,J.current=null,se();try{if(pe){var Ze=function(){throw Error()};if(Object.defineProperty(Ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ze,[])}catch(fn){Ne=fn}Reflect.construct(U,[],Ze)}else{try{Ze.call()}catch(fn){Ne=fn}U.call(Ze.prototype)}}else{try{throw Error()}catch(fn){Ne=fn}U()}}catch(fn){if(fn&&Ne&&typeof fn.stack=="string"){for(var Ge=fn.stack.split(`
|
|
19
19
|
`),Ut=Ne.stack.split(`
|
|
20
20
|
`),At=Ge.length-1,Wt=Ut.length-1;At>=1&&Wt>=0&&Ge[At]!==Ut[Wt];)Wt--;for(;At>=1&&Wt>=0;At--,Wt--)if(Ge[At]!==Ut[Wt]){if(At!==1||Wt!==1)do if(At--,Wt--,Wt<0||Ge[At]!==Ut[Wt]){var en=`
|
|
21
|
-
`+Ge[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&&Wt>=0);break}}}finally{ce=!1,J.current=Je,j(),Error.prepareStackTrace=Ye}var jn=U?U.displayName||U.name:"",ho=jn?te(jn):"";return typeof U=="function"&&ie.set(U,ho),ho}function re(U,pe,we){return W(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 W(U,Q(U));if(typeof U=="string")return te(U);switch(U){case u:return te("Suspense");case f:return te("SuspenseList")}if(typeof U=="object")switch(U.$$typeof){case d:return re(U.render);case p:return fe(U.type,pe,we);case y:{var Ne=U,Ye=Ne._payload,Je=Ne._init;try{return fe(Je(Ye),pe,we)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,Ce={},ve=T.ReactDebugCurrentFrame;function xe(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,Ye){{var Je=Function.call.bind(me);for(var Ze in U)if(Je(U,Ze)){var Ge=void 0;try{if(typeof U[Ze]!="function"){var Ut=Error((Ne||"React class")+": "+we+" type `"+Ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof U[Ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ut.name="Invariant Violation",Ut}Ge=U[Ze](pe,Ze,Ne,we,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){Ge=At}Ge&&!(Ge instanceof Error)&&(xe(Ye),P("%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,Ze,typeof Ge),xe(null)),Ge instanceof Error&&!(Ge.message in Ce)&&(Ce[Ge.message]=!0,xe(Ye),P("Failed %s type: %s",we,Ge.message),xe(null))}}}var Ae=Array.isArray;function st(U){return Ae(U)}function Pe(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 it(U){if(ft(U))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pe(U)),Kt(U)}var Yt=T.ReactCurrentOwner,Xt={key:!0,ref:!0,__self:!0,__source:!0},on,Ue;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 Ie(U,pe){{var we=function(){on||(on=!0,P("%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(){Ue||(Ue=!0,P("%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,Ye,Je,Ze){var Ge={$$typeof:t,type:U,key:pe,ref:we,props:Ze,_owner:Je};return Ge._store={},Object.defineProperty(Ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.defineProperty(Ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ye}),Object.freeze&&(Object.freeze(Ge.props),Object.freeze(Ge)),Ge};function ln(U,pe,we,Ne,Ye){{var Je,Ze={},Ge=null,Ut=null;we!==void 0&&(it(we),Ge=""+we),Mn(pe)&&(it(pe.key),Ge=""+pe.key),tt(pe)&&(Ut=pe.ref,hn(pe,Ye));for(Je in pe)me.call(pe,Je)&&!Xt.hasOwnProperty(Je)&&(Ze[Je]=pe[Je]);if(U&&U.defaultProps){var At=U.defaultProps;for(Je in At)Ze[Je]===void 0&&(Ze[Je]=At[Je])}if(Ge||Ut){var Wt=typeof U=="function"?U.displayName||U.name||"Unknown":U;Ge&&Ie(Ze,Wt),Ut&&He(Ze,Wt)}return vt(U,Ge,Ut,Ye,Ne,Yt.current,Ze)}}var uo=T.ReactCurrentOwner,pt=T.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
|
|
21
|
+
`+Ge[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&&Wt>=0);break}}}finally{ce=!1,J.current=Je,j(),Error.prepareStackTrace=Ye}var jn=U?U.displayName||U.name:"",ho=jn?te(jn):"";return typeof U=="function"&&ie.set(U,ho),ho}function re(U,pe,we){return W(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 W(U,Q(U));if(typeof U=="string")return te(U);switch(U){case u:return te("Suspense");case f:return te("SuspenseList")}if(typeof U=="object")switch(U.$$typeof){case d:return re(U.render);case p:return fe(U.type,pe,we);case y:{var Ne=U,Ye=Ne._payload,Je=Ne._init;try{return fe(Je(Ye),pe,we)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,Ce={},ve=T.ReactDebugCurrentFrame;function xe(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,Ye){{var Je=Function.call.bind(me);for(var Ze in U)if(Je(U,Ze)){var Ge=void 0;try{if(typeof U[Ze]!="function"){var Ut=Error((Ne||"React class")+": "+we+" type `"+Ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof U[Ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ut.name="Invariant Violation",Ut}Ge=U[Ze](pe,Ze,Ne,we,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){Ge=At}Ge&&!(Ge instanceof Error)&&(xe(Ye),P("%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,Ze,typeof Ge),xe(null)),Ge instanceof Error&&!(Ge.message in Ce)&&(Ce[Ge.message]=!0,xe(Ye),P("Failed %s type: %s",we,Ge.message),xe(null))}}}var Ae=Array.isArray;function st(U){return Ae(U)}function Pe(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 it(U){if(ft(U))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pe(U)),Kt(U)}var Yt=T.ReactCurrentOwner,Xt={key:!0,ref:!0,__self:!0,__source:!0},on,Ue;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 Ie(U,pe){{var we=function(){on||(on=!0,P("%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(){Ue||(Ue=!0,P("%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,Ye,Je,Ze){var Ge={$$typeof:t,type:U,key:pe,ref:we,props:Ze,_owner:Je};return Ge._store={},Object.defineProperty(Ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.defineProperty(Ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ye}),Object.freeze&&(Object.freeze(Ge.props),Object.freeze(Ge)),Ge};function ln(U,pe,we,Ne,Ye){{var Je,Ze={},Ge=null,Ut=null;we!==void 0&&(it(we),Ge=""+we),Mn(pe)&&(it(pe.key),Ge=""+pe.key),tt(pe)&&(Ut=pe.ref,hn(pe,Ye));for(Je in pe)me.call(pe,Je)&&!Xt.hasOwnProperty(Je)&&(Ze[Je]=pe[Je]);if(U&&U.defaultProps){var At=U.defaultProps;for(Je in At)Ze[Je]===void 0&&(Ze[Je]=At[Je])}if(Ge||Ut){var Wt=typeof U=="function"?U.displayName||U.name||"Unknown":U;Ge&&Ie(Ze,Wt),Ut&&He(Ze,Wt)}return vt(U,Ge,Ut,Ye,Ne,Yt.current,Ze)}}var uo=T.ReactCurrentOwner,pt=T.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 Hr(){{if(uo.current){var U=X(uo.current.type);if(U)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+U+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+U+"`."}return""}}function zr(U){return""}var Re={};function Cc(U){{var pe=Hr();if(!pe){var we=typeof U=="string"?U:U.displayName||U.name;we&&(pe=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+we+">.")}return pe}}function va(U,pe){{if(!U._store||U._store.validated||U.key!=null)return;U._store.validated=!0;var we=Cc(pe);if(Re[we])return;Re[we]=!0;var Ne="";U&&U._owner&&U._owner!==uo.current&&(Ne=" It was passed a child from "+X(U._owner.type)+"."),Qt(U),P('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 Vn(U,pe){{if(typeof U!="object")return;if(st(U))for(var we=0;we<U.length;we++){var Ne=U[we];Jt(Ne)&&va(Ne,pe)}else if(Jt(U))U._store&&(U._store.validated=!0);else if(U){var Ye=v(U);if(typeof Ye=="function"&&Ye!==U.entries)for(var Je=Ye.call(U),Ze;!(Ze=Je.next()).done;)Jt(Ze.value)&&va(Ze.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===d||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 Ye=X(pe);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ye||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qe(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),P("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),P("Invalid attribute `ref` supplied to `React.Fragment`."),Qt(null))}}var
|
|
25
|
+
Check the top-level render call using <`+we+">.")}return pe}}function va(U,pe){{if(!U._store||U._store.validated||U.key!=null)return;U._store.validated=!0;var we=Cc(pe);if(Re[we])return;Re[we]=!0;var Ne="";U&&U._owner&&U._owner!==uo.current&&(Ne=" It was passed a child from "+X(U._owner.type)+"."),Qt(U),P('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 Vn(U,pe){{if(typeof U!="object")return;if(st(U))for(var we=0;we<U.length;we++){var Ne=U[we];Jt(Ne)&&va(Ne,pe)}else if(Jt(U))U._store&&(U._store.validated=!0);else if(U){var Ye=v(U);if(typeof Ye=="function"&&Ye!==U.entries)for(var Je=Ye.call(U),Ze;!(Ze=Je.next()).done;)Jt(Ze.value)&&va(Ze.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===d||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 Ye=X(pe);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ye||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qe(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),P("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),P("Invalid attribute `ref` supplied to `React.Fragment`."),Qt(null))}}var Yr={};function mt(U,pe,we,Ne,Ye,Je){{var Ze=R(U);if(!Ze){var Ge="";(U===void 0||typeof U=="object"&&U!==null&&Object.keys(U).length===0)&&(Ge+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ut=zr();Ut?Ge+=Ut:Ge+=Hr();var At;U===null?At="null":st(U)?At="array":U!==void 0&&U.$$typeof===t?(At="<"+(X(U.type)||"Unknown")+" />",Ge=" Did you accidentally export a JSX literal instead of a component?"):At=typeof U,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",At,Ge)}var Wt=ln(U,pe,we,Ye,Je);if(Wt==null)return Wt;if(Ze){var en=pe.children;if(en!==void 0)if(Ne)if(st(en)){for(var jn=0;jn<en.length;jn++)Vn(en[jn],U);Object.freeze&&Object.freeze(en)}else P("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 Vn(en,U)}if(me.call(pe,"key")){var ho=X(U),fn=Object.keys(pe).filter(function(Vt){return Vt!=="key"}),Ws=fn.length>0?"{key: someKey, "+fn.join(": ..., ")+": ...}":"{key: someKey}";if(!Yr[ho+Ws]){var _c=fn.length>0?"{"+fn.join(": ..., ")+": ...}":"{}";P(`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} />`,Ws,ho,_c,ho),zr[ho+Ws]=!0}}return U===o?qe(Wt):Sn(Wt),Wt}}function yr(U,pe,we){return mt(U,pe,we,!0)}function Sc(U,pe,we){return mt(U,pe,we,!1)}var Yr=Sc,rn=yr;Ks.Fragment=o,Ks.jsx=Yr,Ks.jsxs=rn}()),Ks}var cf;function US(){return cf||(cf=1,process.env.NODE_ENV==="production"?Da.exports=zS():Da.exports=YS()),Da.exports}var D=US();const Ei={black:"#000",white:"#fff"},Zr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Jr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},es={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ts={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Xs={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},qS={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 _o(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 Xi="$$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 GS(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 KS(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 XS=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(KS(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=GS(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-",ll="-moz-",gt="-webkit-",Dm="comm",nu="rule",ou="decl",ZS="@import",Om="@keyframes",QS="@layer",JS=Math.abs,Pl=String.fromCharCode,e0=Object.assign;function t0(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 Mm(e){return e.trim()}function n0(e,t){return(e=t.exec(e))?e[0]:e}function yt(e,t,n){return e.replace(t,n)}function Rd(e,t){return e.indexOf(t)}function cn(e,t){return e.charCodeAt(t)|0}function Pi(e,t,n){return e.slice(t,n)}function go(e){return e.length}function ru(e){return e.length}function Oa(e,t){return t.push(e),e}function o0(e,t){return e.map(t).join("")}var Dl=1,_s=1,Im=0,Pn=0,Zt=0,Ms="";function Ol(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Dl,column:_s,length:a,return:""}}function Zs(e,t){return e0(Ol("",null,null,"",null,null,0),e,{length:-e.length},t)}function r0(){return Zt}function s0(){return Zt=Pn>0?cn(Ms,--Pn):0,_s--,Zt===10&&(_s=1,Dl--),Zt}function Fn(){return Zt=Pn<Im?cn(Ms,Pn++):0,_s++,Zt===10&&(_s=1,Dl++),Zt}function Co(){return cn(Ms,Pn)}function Ka(){return Pn}function Zi(e,t){return Pi(Ms,e,t)}function Di(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 Nm(e){return Dl=_s=1,Im=go(Ms=e),Pn=0,[]}function Am(e){return Ms="",e}function Xa(e){return Mm(Zi(Pn-1,Td(e===91?e+2:e===40?e+1:e)))}function i0(e){for(;(Zt=Co())&&Zt<33;)Fn();return Di(e)>2||Di(Zt)>3?"":" "}function a0(e,t){for(;--t&&Fn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Zi(e,Ka()+(t<6&&Co()==32&&Fn()==32))}function Td(e){for(;Fn();)switch(Zt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&Td(Zt);break;case 40:e===41&&Td(e);break;case 92:Fn();break}return Pn}function l0(e,t){for(;Fn()&&e+Zt!==57;)if(e+Zt===84&&Co()===47)break;return"/*"+Zi(t,Pn-1)+"*"+Pl(e===47?e:Fn())}function c0(e){for(;!Di(Co());)Fn();return Zi(e,Pn)}function d0(e){return Am(Za("",null,null,null,[""],e=Nm(e),0,[0],e))}function Za(e,t,n,o,r,i,a,l,d){for(var u=0,f=0,p=a,y=0,b=0,w=0,g=1,v=1,T=1,P=0,x="",S=r,C=i,O=o,A=x;v;)switch(w=P,P=Fn()){case 40:if(w!=108&&cn(A,p-1)==58){Rd(A+=yt(Xa(P),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:A+=Xa(P);break;case 9:case 10:case 13:case 32:A+=i0(w);break;case 92:A+=a0(Ka()-1,7);continue;case 47:switch(Co()){case 42:case 47:Oa(u0(l0(Fn(),Ka()),t,n),d);break;default:A+="/"}break;case 123*g:l[u++]=go(A)*T;case 125*g:case 59:case 0:switch(P){case 0:case 125:v=0;case 59+f:T==-1&&(A=yt(A,/\f/g,"")),b>0&&go(A)-p&&Oa(b>32?uf(A+";",o,n,p-1):uf(yt(A," ","")+";",o,n,p-2),d);break;case 59:A+=";";default:if(Oa(O=df(A,t,n,u,f,r,l,x,S=[],C=[],p),i),P===123)if(f===0)Za(A,t,O,O,S,i,p,l,C);else switch(y===99&&cn(A,3)===110?100:y){case 100:case 108:case 109:case 115:Za(e,O,O,o&&Oa(df(e,O,O,0,0,r,l,x,r,S=[],p),C),r,C,p,l,o?S:C);break;default:Za(A,O,O,O,[""],C,0,l,C)}}u=f=b=0,g=T=1,x=A="",p=a;break;case 58:p=1+go(A),b=w;default:if(g<1){if(P==123)--g;else if(P==125&&g++==0&&s0()==125)continue}switch(A+=Pl(P),P*g){case 38:T=f>0?1:(A+="\f",-1);break;case 44:l[u++]=(go(A)-1)*T,T=1;break;case 64:Co()===45&&(A+=Xa(Fn())),y=Co(),f=p=go(x=A+=c0(Ka())),P++;break;case 45:w===45&&go(A)==2&&(g=0)}}return i}function df(e,t,n,o,r,i,a,l,d,u,f){for(var p=r-1,y=r===0?i:[""],b=ru(y),w=0,g=0,v=0;w<o;++w)for(var T=0,P=Pi(e,p+1,p=JS(g=a[w])),x=e;T<b;++T)(x=Mm(g>0?y[T]+" "+P:yt(P,/&\f/g,y[T])))&&(d[v++]=x);return Ol(e,t,n,r===0?nu:l,d,u,f)}function u0(e,t,n){return Ol(e,t,n,Dm,Pl(r0()),Pi(e,2,-2),0)}function uf(e,t,n,o){return Ol(e,t,n,ou,Pi(e,0,o),Pi(e,o+1,-1),o)}function ms(e,t){for(var n="",o=ru(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function h0(e,t,n,o){switch(e.type){case QS:if(e.children.length)break;case ZS:case ou:return e.return=e.return||e.value;case Dm:return"";case Om:return e.return=e.value+"{"+ms(e.children,o)+"}";case nu:e.value=e.props.join(",")}return go(n=ms(e.children,o))?e.return=e.value+"{"+n+"}":""}function f0(e){var t=ru(e);return function(n,o,r,i){for(var a="",l=0;l<t;l++)a+=e[l](n,o,r,i)||"";return a}}function p0(e){return function(t){t.root||(t=t.return)&&e(t)}}function Fm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var m0=function(t,n,o){for(var r=0,i=0;r=i,i=Co(),r===38&&i===12&&(n[o]=1),!Di(i);)Fn();return Zi(t,Pn)},g0=function(t,n){var o=-1,r=44;do switch(Di(r)){case 0:r===38&&Co()===12&&(n[o]=1),t[o]+=m0(Pn-1,n,o);break;case 2:t[o]+=Xa(r);break;case 4:if(r===44){t[++o]=Co()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=Pl(r)}while(r=Fn());return t},y0=function(t,n){return Am(g0(Nm(t),n))},hf=new WeakMap,v0=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&&!hf.get(o))&&!r){hf.set(t,!0);for(var i=[],a=y0(n,i),l=o.props,d=0,u=0;d<a.length;d++)for(var f=0;f<l.length;f++,u++)t.props[u]=i[d]?a[d].replace(/&\f/g,l[f]):l[f]+" "+a[d]}}},b0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Lm(e,t){switch(t0(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+ll+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(go(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"+ll+(cn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rd(e,"stretch")?Lm(yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(cn(e,t+1)!==115)break;case 6444:switch(cn(e,go(e)-3-(~Rd(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 w0=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case ou:t.return=Lm(t.value,t.length);break;case Om:return ms([Zs(t,{value:yt(t.value,"@","@"+gt)})],r);case nu:if(t.length)return o0(t.props,function(i){switch(n0(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ms([Zs(t,{props:[yt(i,/:(read-\w+)/,":"+ll+"$1")]})],r);case"::placeholder":return ms([Zs(t,{props:[yt(i,/:(plac\w+)/,":"+gt+"input-$1")]}),Zs(t,{props:[yt(i,/:(plac\w+)/,":"+ll+"$1")]}),Zs(t,{props:[yt(i,/:(plac\w+)/,pn+"input-$1")]})],r)}return""})}},C0=[w0],S0=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||C0,i={},a,l=[];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(" "),T=1;T<v.length;T++)i[v[T]]=!0;l.push(g)});var d,u=[v0,b0];{var f,p=[h0,p0(function(g){f.insert(g)})],y=f0(u.concat(r,p)),b=function(v){return ms(d0(v),y)};d=function(v,T,P,x){f=P,b(v?v+"{"+T.styles+"}":T.styles),x&&(w.inserted[T.name]=!0)}}var w={key:n,sheet:new XS({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:d};return w.sheet.hydrate(l),w},Ma={exports:{}},bt={};/** @license React v16.13.1
|
|
30
|
+
<%s key={someKey} {...props} />`,Ws,ho,_c,ho),Yr[ho+Ws]=!0}}return U===o?qe(Wt):Sn(Wt),Wt}}function yr(U,pe,we){return mt(U,pe,we,!0)}function Sc(U,pe,we){return mt(U,pe,we,!1)}var Ur=Sc,rn=yr;Ks.Fragment=o,Ks.jsx=Ur,Ks.jsxs=rn}()),Ks}var cf;function US(){return cf||(cf=1,process.env.NODE_ENV==="production"?Da.exports=zS():Da.exports=YS()),Da.exports}var D=US();const Ei={black:"#000",white:"#fff"},Qr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Jr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},es={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ts={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ns={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Xs={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},qS={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 _o(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 Xi="$$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 GS(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 KS(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 XS=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(KS(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=GS(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-",ll="-moz-",gt="-webkit-",Dm="comm",nu="rule",ou="decl",ZS="@import",Om="@keyframes",QS="@layer",JS=Math.abs,Pl=String.fromCharCode,e0=Object.assign;function t0(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 Mm(e){return e.trim()}function n0(e,t){return(e=t.exec(e))?e[0]:e}function yt(e,t,n){return e.replace(t,n)}function Rd(e,t){return e.indexOf(t)}function cn(e,t){return e.charCodeAt(t)|0}function Pi(e,t,n){return e.slice(t,n)}function go(e){return e.length}function ru(e){return e.length}function Oa(e,t){return t.push(e),e}function o0(e,t){return e.map(t).join("")}var Dl=1,_s=1,Im=0,Pn=0,Zt=0,Ms="";function Ol(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Dl,column:_s,length:a,return:""}}function Zs(e,t){return e0(Ol("",null,null,"",null,null,0),e,{length:-e.length},t)}function r0(){return Zt}function s0(){return Zt=Pn>0?cn(Ms,--Pn):0,_s--,Zt===10&&(_s=1,Dl--),Zt}function Fn(){return Zt=Pn<Im?cn(Ms,Pn++):0,_s++,Zt===10&&(_s=1,Dl++),Zt}function Co(){return cn(Ms,Pn)}function Ka(){return Pn}function Zi(e,t){return Pi(Ms,e,t)}function Di(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 Nm(e){return Dl=_s=1,Im=go(Ms=e),Pn=0,[]}function Am(e){return Ms="",e}function Xa(e){return Mm(Zi(Pn-1,Td(e===91?e+2:e===40?e+1:e)))}function i0(e){for(;(Zt=Co())&&Zt<33;)Fn();return Di(e)>2||Di(Zt)>3?"":" "}function a0(e,t){for(;--t&&Fn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Zi(e,Ka()+(t<6&&Co()==32&&Fn()==32))}function Td(e){for(;Fn();)switch(Zt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&Td(Zt);break;case 40:e===41&&Td(e);break;case 92:Fn();break}return Pn}function l0(e,t){for(;Fn()&&e+Zt!==57;)if(e+Zt===84&&Co()===47)break;return"/*"+Zi(t,Pn-1)+"*"+Pl(e===47?e:Fn())}function c0(e){for(;!Di(Co());)Fn();return Zi(e,Pn)}function d0(e){return Am(Za("",null,null,null,[""],e=Nm(e),0,[0],e))}function Za(e,t,n,o,r,i,a,l,d){for(var u=0,f=0,p=a,y=0,b=0,w=0,g=1,v=1,T=1,P=0,x="",S=r,C=i,O=o,A=x;v;)switch(w=P,P=Fn()){case 40:if(w!=108&&cn(A,p-1)==58){Rd(A+=yt(Xa(P),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:A+=Xa(P);break;case 9:case 10:case 13:case 32:A+=i0(w);break;case 92:A+=a0(Ka()-1,7);continue;case 47:switch(Co()){case 42:case 47:Oa(u0(l0(Fn(),Ka()),t,n),d);break;default:A+="/"}break;case 123*g:l[u++]=go(A)*T;case 125*g:case 59:case 0:switch(P){case 0:case 125:v=0;case 59+f:T==-1&&(A=yt(A,/\f/g,"")),b>0&&go(A)-p&&Oa(b>32?uf(A+";",o,n,p-1):uf(yt(A," ","")+";",o,n,p-2),d);break;case 59:A+=";";default:if(Oa(O=df(A,t,n,u,f,r,l,x,S=[],C=[],p),i),P===123)if(f===0)Za(A,t,O,O,S,i,p,l,C);else switch(y===99&&cn(A,3)===110?100:y){case 100:case 108:case 109:case 115:Za(e,O,O,o&&Oa(df(e,O,O,0,0,r,l,x,r,S=[],p),C),r,C,p,l,o?S:C);break;default:Za(A,O,O,O,[""],C,0,l,C)}}u=f=b=0,g=T=1,x=A="",p=a;break;case 58:p=1+go(A),b=w;default:if(g<1){if(P==123)--g;else if(P==125&&g++==0&&s0()==125)continue}switch(A+=Pl(P),P*g){case 38:T=f>0?1:(A+="\f",-1);break;case 44:l[u++]=(go(A)-1)*T,T=1;break;case 64:Co()===45&&(A+=Xa(Fn())),y=Co(),f=p=go(x=A+=c0(Ka())),P++;break;case 45:w===45&&go(A)==2&&(g=0)}}return i}function df(e,t,n,o,r,i,a,l,d,u,f){for(var p=r-1,y=r===0?i:[""],b=ru(y),w=0,g=0,v=0;w<o;++w)for(var T=0,P=Pi(e,p+1,p=JS(g=a[w])),x=e;T<b;++T)(x=Mm(g>0?y[T]+" "+P:yt(P,/&\f/g,y[T])))&&(d[v++]=x);return Ol(e,t,n,r===0?nu:l,d,u,f)}function u0(e,t,n){return Ol(e,t,n,Dm,Pl(r0()),Pi(e,2,-2),0)}function uf(e,t,n,o){return Ol(e,t,n,ou,Pi(e,0,o),Pi(e,o+1,-1),o)}function ms(e,t){for(var n="",o=ru(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function h0(e,t,n,o){switch(e.type){case QS:if(e.children.length)break;case ZS:case ou:return e.return=e.return||e.value;case Dm:return"";case Om:return e.return=e.value+"{"+ms(e.children,o)+"}";case nu:e.value=e.props.join(",")}return go(n=ms(e.children,o))?e.return=e.value+"{"+n+"}":""}function f0(e){var t=ru(e);return function(n,o,r,i){for(var a="",l=0;l<t;l++)a+=e[l](n,o,r,i)||"";return a}}function p0(e){return function(t){t.root||(t=t.return)&&e(t)}}function Fm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var m0=function(t,n,o){for(var r=0,i=0;r=i,i=Co(),r===38&&i===12&&(n[o]=1),!Di(i);)Fn();return Zi(t,Pn)},g0=function(t,n){var o=-1,r=44;do switch(Di(r)){case 0:r===38&&Co()===12&&(n[o]=1),t[o]+=m0(Pn-1,n,o);break;case 2:t[o]+=Xa(r);break;case 4:if(r===44){t[++o]=Co()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=Pl(r)}while(r=Fn());return t},y0=function(t,n){return Am(g0(Nm(t),n))},hf=new WeakMap,v0=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&&!hf.get(o))&&!r){hf.set(t,!0);for(var i=[],a=y0(n,i),l=o.props,d=0,u=0;d<a.length;d++)for(var f=0;f<l.length;f++,u++)t.props[u]=i[d]?a[d].replace(/&\f/g,l[f]):l[f]+" "+a[d]}}},b0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Lm(e,t){switch(t0(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+ll+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(go(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"+ll+(cn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rd(e,"stretch")?Lm(yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(cn(e,t+1)!==115)break;case 6444:switch(cn(e,go(e)-3-(~Rd(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 w0=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case ou:t.return=Lm(t.value,t.length);break;case Om:return ms([Zs(t,{value:yt(t.value,"@","@"+gt)})],r);case nu:if(t.length)return o0(t.props,function(i){switch(n0(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ms([Zs(t,{props:[yt(i,/:(read-\w+)/,":"+ll+"$1")]})],r);case"::placeholder":return ms([Zs(t,{props:[yt(i,/:(plac\w+)/,":"+gt+"input-$1")]}),Zs(t,{props:[yt(i,/:(plac\w+)/,":"+ll+"$1")]}),Zs(t,{props:[yt(i,/:(plac\w+)/,pn+"input-$1")]})],r)}return""})}},C0=[w0],S0=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||C0,i={},a,l=[];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(" "),T=1;T<v.length;T++)i[v[T]]=!0;l.push(g)});var d,u=[v0,b0];{var f,p=[h0,p0(function(g){f.insert(g)})],y=f0(u.concat(r,p)),b=function(v){return ms(d0(v),y)};d=function(v,T,P,x){f=P,b(v?v+"{"+T.styles+"}":T.styles),x&&(w.inserted[T.name]=!0)}}var w={key:n,sheet:new XS({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:d};return w.sheet.hydrate(l),w},Ma={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.
|
|
@@ -87,14 +87,14 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var W=he(ee,ie,se,j,J+".
|
|
|
87
87
|
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:_o(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function d_(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const d=t(e.breakpoints.not(...l),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const u_={borderRadius:4},hr=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function bi(e,t){return t?mn(e,t,{clone:!1}):e}const Il={xs:0,sm:600,md:900,lg:1200,xl:1536},Vf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Il[e]}px)`},h_={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Il[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Uo(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||Vf;return t.reduce((a,l,d)=>(a[i.up(i.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const i=o.breakpoints||Vf;return Object.keys(t).reduce((a,l)=>{if(l_(i.keys,l)){const d=c_(o.containerQueries?o:h_,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(i.values||Il).includes(l)){const d=i.up(l);a[d]=n(t[l],l)}else{const d=l;a[d]=t[d]}return a},{})}return n(t)}function f_(e={}){return e.keys?.reduce((n,o)=>{const r=e.up(o);return n[r]={},n},{})||{}}function p_(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.":_o(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Nl(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 dl(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=Nl(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 l=a[t],d=a.theme,u=Nl(d,o)||{};return Uo(a,l,p=>{let y=dl(u,r,p);return p===y&&typeof p=="string"&&(y=dl(u,r,`${t}${p==="default"?"":be(p)}`,p)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:hr}:{},i.filterProps=[t],i}function m_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const g_={m:"margin",p:"padding"},y_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},v_=m_(e=>{if(e.length>2)if(jf[e])e=jf[e];else return[e];const[t,n]=e.split(""),o=g_[t],r=y_[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Al=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],b_=[...Al,...Fl];function Ji(e,t,n,o){const r=Nl(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof r=="string"?`calc(${i} * ${r})`:r*i):Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
|
|
88
88
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
89
89
|
`)));const l=r[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof r=="function"?r:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
90
|
-
`)),()=>{})}function uu(e){return Ji(e,"spacing",8,"spacing")}function ea(e,t){return typeof t=="string"||t==null?t:e(t)}function w_(e,t){return n=>e.reduce((o,r)=>(o[r]=ea(t,n),o),{})}function C_(e,t,n,o){if(!t.includes(n))return null;const r=v_(n),i=w_(r,o),a=e[n];return Uo(e,a,i)}function Gm(e,t){const n=uu(e.theme);return Object.keys(e).map(o=>C_(e,t,o,n)).reduce(bi,{})}function Ht(e){return Gm(e,Al)}Ht.propTypes=process.env.NODE_ENV!=="production"?Al.reduce((e,t)=>(e[t]=hr,e),{}):{};Ht.filterProps=Al;function zt(e){return Gm(e,Fl)}zt.propTypes=process.env.NODE_ENV!=="production"?Fl.reduce((e,t)=>(e[t]=hr,e),{}):{};zt.filterProps=Fl;process.env.NODE_ENV!=="production"&&b_.reduce((e,t)=>(e[t]=hr,e),{});function Km(e=8,t=uu({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 Ll(...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]?bi(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 Yn(e){return typeof e!="number"?e:`${e}px solid`}function Zn(e,t){return Gt({prop:e,themeKey:"borders",transform:t})}const S_=Zn("border",Yn),__=Zn("borderTop",Yn),x_=Zn("borderRight",Yn),R_=Zn("borderBottom",Yn),T_=Zn("borderLeft",Yn),k_=Zn("borderColor"),E_=Zn("borderTopColor"),P_=Zn("borderRightColor"),D_=Zn("borderBottomColor"),O_=Zn("borderLeftColor"),M_=Zn("outline",Yn),I_=Zn("outlineColor"),$l=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ji(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:ea(t,o)});return Uo(e,e.borderRadius,n)}return null};$l.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:hr}:{};$l.filterProps=["borderRadius"];Ll(S_,__,x_,R_,T_,k_,E_,P_,D_,O_,$l,M_,I_);const Vl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ji(e.theme,"spacing",8,"gap"),n=o=>({gap:ea(t,o)});return Uo(e,e.gap,n)}return null};Vl.propTypes=process.env.NODE_ENV!=="production"?{gap:hr}:{};Vl.filterProps=["gap"];const jl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ji(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:ea(t,o)});return Uo(e,e.columnGap,n)}return null};jl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:hr}:{};jl.filterProps=["columnGap"];const Bl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ji(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:ea(t,o)});return Uo(e,e.rowGap,n)}return null};Bl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:hr}:{};Bl.filterProps=["rowGap"];const N_=Gt({prop:"gridColumn"}),A_=Gt({prop:"gridRow"}),F_=Gt({prop:"gridAutoFlow"}),L_=Gt({prop:"gridAutoColumns"}),$_=Gt({prop:"gridAutoRows"}),V_=Gt({prop:"gridTemplateColumns"}),j_=Gt({prop:"gridTemplateRows"}),B_=Gt({prop:"gridTemplateAreas"}),W_=Gt({prop:"gridArea"});Ll(Vl,jl,Bl,N_,A_,F_,L_,$_,V_,j_,B_,W_);function gs(e,t){return t==="grey"?t:e}const H_=Gt({prop:"color",themeKey:"palette",transform:gs}),z_=Gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gs}),Y_=Gt({prop:"backgroundColor",themeKey:"palette",transform:gs});Ll(H_,z_,Y_);function An(e){return e<=1&&e!==0?`${e*100}%`:e}const U_=Gt({prop:"width",transform:An}),hu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Il[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:An(n)}};return Uo(e,e.maxWidth,t)}return null};hu.filterProps=["maxWidth"];const q_=Gt({prop:"minWidth",transform:An}),G_=Gt({prop:"height",transform:An}),K_=Gt({prop:"maxHeight",transform:An}),X_=Gt({prop:"minHeight",transform:An});Gt({prop:"size",cssProperty:"width",transform:An});Gt({prop:"size",cssProperty:"height",transform:An});const Z_=Gt({prop:"boxSizing"});Ll(U_,hu,q_,G_,K_,X_,Z_);const ta={border:{themeKey:"borders",transform:Yn},borderTop:{themeKey:"borders",transform:Yn},borderRight:{themeKey:"borders",transform:Yn},borderBottom:{themeKey:"borders",transform:Yn},borderLeft:{themeKey:"borders",transform:Yn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$l},color:{themeKey:"palette",transform:gs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gs},backgroundColor:{themeKey:"palette",transform:gs},p:{style:zt},pt:{style:zt},pr:{style:zt},pb:{style:zt},pl:{style:zt},px:{style:zt},py:{style:zt},padding:{style:zt},paddingTop:{style:zt},paddingRight:{style:zt},paddingBottom:{style:zt},paddingLeft:{style:zt},paddingX:{style:zt},paddingY:{style:zt},paddingInline:{style:zt},paddingInlineStart:{style:zt},paddingInlineEnd:{style:zt},paddingBlock:{style:zt},paddingBlockStart:{style:zt},paddingBlockEnd:{style:zt},m:{style:Ht},mt:{style:Ht},mr:{style:Ht},mb:{style:Ht},ml:{style:Ht},mx:{style:Ht},my:{style:Ht},margin:{style:Ht},marginTop:{style:Ht},marginRight:{style:Ht},marginBottom:{style:Ht},marginLeft:{style:Ht},marginX:{style:Ht},marginY:{style:Ht},marginInline:{style:Ht},marginInlineStart:{style:Ht},marginInlineEnd:{style:Ht},marginBlock:{style:Ht},marginBlockStart:{style:Ht},marginBlockEnd:{style:Ht},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:Vl},rowGap:{style:Bl},columnGap:{style:jl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:An},maxWidth:{style:hu},minWidth:{transform:An},height:{transform:An},maxHeight:{transform:An},minHeight:{transform:An},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 Q_(...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 J_(e,t){return typeof e=="function"?e(t):e}function ex(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:f,style:p}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const y=Nl(r,u)||{};return p?p(a):Uo(a,o,w=>{let g=dl(y,f,w);return w===g&&typeof w=="string"&&(g=dl(y,f,`${n}${w==="default"?"":be(w)}`,w)),d===!1?g:{[d]:g}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??ta;function a(l){let d=l;if(typeof l=="function")d=l(r);else if(typeof l!="object")return l;if(!d)return null;const u=f_(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(d).forEach(y=>{const b=J_(d[y],r);if(b!=null)if(typeof b=="object")if(i[y])p=bi(p,e(y,b,r,i));else{const w=Uo({theme:r},b,g=>({[y]:g}));Q_(w,b)?p[y]=t({sx:b,theme:r}):p=bi(p,w)}else p=bi(p,e(y,b,r,i))}),a_(r,p_(f,p))}return Array.isArray(o)?o.map(a):a(o)}return t}const Nr=ex();Nr.filterProps=["sx"];function tx(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 fu(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=i_(n),d=Km(r);let u=mn({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...u_,...i}},a);return u=d_(u),u.applyStyles=tx,u=t.reduce((f,p)=>mn(f,p),u),u.unstable_sxConfig={...ta,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Nr({sx:p,theme:this})},u}function nx(e){return Object.keys(e).length===0}function Xm(e=null){const t=k.useContext(Ml);return!t||nx(t)?e:t}const ox=fu();function Wl(e=ox){return Xm(e)}function Zm({styles:e,themeId:t,defaultTheme:n={}}){const o=Wl(n),r=typeof e=="function"?e(t&&o[t]||o):e;return D.jsx(Ym,{styles:r})}process.env.NODE_ENV!=="production"&&(Zm.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const rx=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ta;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Qm(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=rx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return bo(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}const Bf=e=>e,sx=()=>{let e=Bf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Bf}}},Jm=sx();function eg(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=eg(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=eg(e))&&(o&&(o+=" "),o+=t);return o}function ix(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=Um("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Nr);return k.forwardRef(function(d,u){const f=Wl(n),{className:p,component:y="div",...b}=Qm(d);return D.jsx(i,{as:y,ref:u,className:Se(p,r?r(o):o),theme:t&&f[t]||f,...b})})}const ax={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=ax[t];return o?`${n}-${o}`:`${Jm.generate(e)}-${t}`}function De(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Oe(e,r,n)}),o}function tg(e,t=""){return e.displayName||e.name||t}function Wf(e,t,n){const o=tg(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function lx(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return tg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case cl.ForwardRef:return Wf(e,e.render,"ForwardRef");case cl.Memo:return Wf(e,e.type,"memo");default:return}}}function ng(e){const{variants:t,...n}=e,o={variants:t,style:Af(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Af(r.style))}),o}const cx=fu();function Qa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function dx(e){return e?(t,n)=>n[e]:null}function ux(e,t,n){e.theme=mx(e.theme)?n:e.theme[t]||e.theme}function Ja(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Ja(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return og(e,n.variants,[o])}return n?.isProcessed?n.style:n}function og(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 hx(e={}){const{themeId:t,defaultTheme:n=cx,rootShouldForwardProp:o=Qa,slotShouldForwardProp:r=Qa}=e;function i(l){ux(l,t,n)}return(l,d={})=>{t_(l,C=>C.filter(O=>O!==Nr));const{name:u,slot:f,skipVariantsResolver:p,skipSx:y,overridesResolver:b=dx(rg(f)),...w}=d,g=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let T=Qa;f==="Root"||f==="root"?T=o:f?T=r:gx(l)&&(T=void 0);const P=Um(l,{shouldForwardProp:T,label:px(u,f),...w}),x=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(A){return Ja(A,C)};if(bo(C)){const O=ng(C);return O.variants?function(F){return Ja(F,O)}:O.style}return C},S=(...C)=>{const O=[],A=C.map(x),F=[];if(O.push(i),u&&b&&F.push(function(K){const q=K.theme.components?.[u]?.styleOverrides;if(!q)return null;const Y={};for(const H in q)Y[H]=Ja(K,q[H]);return b(K,Y)}),u&&!g&&F.push(function(K){const q=K.theme?.components?.[u]?.variants;return q?og(K,q):null}),v||F.push(Nr),Array.isArray(A[0])){const $=A.shift(),K=new Array(O.length).fill(""),X=new Array(F.length).fill("");let q;q=[...K,...$,...X],q.raw=[...K,...$.raw,...X],O.unshift(q)}const z=[...O,...A,...F],R=P(...z);return l.muiName&&(R.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=fx(u,f,l)),R};return P.withConfig&&(S.withConfig=P.withConfig),S}}function fx(e,t,n){return e?`${e}${be(t||"")}`:`Styled(${lx(n)})`}function px(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${rg(t||"Root")}`),n}function mx(e){for(const t in e)return!1;return!0}function gx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rg(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Mi(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],a=t[r];if(!a)n[r]=i||{};else if(!i)n[r]=a;else{n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const d=l;n[r][d]=Mi(i[d],a[d])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function sg(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Mi(t.components[n].defaultProps,o)}function yx({props:e,name:t,defaultTheme:n,themeId:o}){let r=Wl(n);return r=r[o]||r,sg({theme:r,name:t,props:e})}const nn=typeof window<"u"?k.useLayoutEffect:k.useEffect;function vx(e,t,n,o,r){const[i,a]=k.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return nn(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),i}const bx={...k},ig=bx.useSyncExternalStore;function wx(e,t,n,o,r){const i=k.useCallback(()=>t,[t]),a=k.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:f}=o(e);return()=>f}return i},[i,e,o,r,n]),[l,d]=k.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 ig(d,l,a)}function Cx(e={}){const{themeId:t}=e;return function(o,r={}){let i=Xm();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=sg({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
90
|
+
`)),()=>{})}function uu(e){return Ji(e,"spacing",8,"spacing")}function ea(e,t){return typeof t=="string"||t==null?t:e(t)}function w_(e,t){return n=>e.reduce((o,r)=>(o[r]=ea(t,n),o),{})}function C_(e,t,n,o){if(!t.includes(n))return null;const r=v_(n),i=w_(r,o),a=e[n];return Uo(e,a,i)}function Gm(e,t){const n=uu(e.theme);return Object.keys(e).map(o=>C_(e,t,o,n)).reduce(bi,{})}function Ht(e){return Gm(e,Al)}Ht.propTypes=process.env.NODE_ENV!=="production"?Al.reduce((e,t)=>(e[t]=hr,e),{}):{};Ht.filterProps=Al;function zt(e){return Gm(e,Fl)}zt.propTypes=process.env.NODE_ENV!=="production"?Fl.reduce((e,t)=>(e[t]=hr,e),{}):{};zt.filterProps=Fl;process.env.NODE_ENV!=="production"&&b_.reduce((e,t)=>(e[t]=hr,e),{});function Km(e=8,t=uu({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 Ll(...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]?bi(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 Yn(e){return typeof e!="number"?e:`${e}px solid`}function Zn(e,t){return Gt({prop:e,themeKey:"borders",transform:t})}const S_=Zn("border",Yn),__=Zn("borderTop",Yn),x_=Zn("borderRight",Yn),R_=Zn("borderBottom",Yn),T_=Zn("borderLeft",Yn),k_=Zn("borderColor"),E_=Zn("borderTopColor"),P_=Zn("borderRightColor"),D_=Zn("borderBottomColor"),O_=Zn("borderLeftColor"),M_=Zn("outline",Yn),I_=Zn("outlineColor"),$l=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ji(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:ea(t,o)});return Uo(e,e.borderRadius,n)}return null};$l.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:hr}:{};$l.filterProps=["borderRadius"];Ll(S_,__,x_,R_,T_,k_,E_,P_,D_,O_,$l,M_,I_);const Vl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ji(e.theme,"spacing",8,"gap"),n=o=>({gap:ea(t,o)});return Uo(e,e.gap,n)}return null};Vl.propTypes=process.env.NODE_ENV!=="production"?{gap:hr}:{};Vl.filterProps=["gap"];const jl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ji(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:ea(t,o)});return Uo(e,e.columnGap,n)}return null};jl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:hr}:{};jl.filterProps=["columnGap"];const Bl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ji(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:ea(t,o)});return Uo(e,e.rowGap,n)}return null};Bl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:hr}:{};Bl.filterProps=["rowGap"];const N_=Gt({prop:"gridColumn"}),A_=Gt({prop:"gridRow"}),F_=Gt({prop:"gridAutoFlow"}),L_=Gt({prop:"gridAutoColumns"}),$_=Gt({prop:"gridAutoRows"}),V_=Gt({prop:"gridTemplateColumns"}),j_=Gt({prop:"gridTemplateRows"}),B_=Gt({prop:"gridTemplateAreas"}),W_=Gt({prop:"gridArea"});Ll(Vl,jl,Bl,N_,A_,F_,L_,$_,V_,j_,B_,W_);function gs(e,t){return t==="grey"?t:e}const H_=Gt({prop:"color",themeKey:"palette",transform:gs}),z_=Gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gs}),Y_=Gt({prop:"backgroundColor",themeKey:"palette",transform:gs});Ll(H_,z_,Y_);function An(e){return e<=1&&e!==0?`${e*100}%`:e}const U_=Gt({prop:"width",transform:An}),hu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Il[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:An(n)}};return Uo(e,e.maxWidth,t)}return null};hu.filterProps=["maxWidth"];const q_=Gt({prop:"minWidth",transform:An}),G_=Gt({prop:"height",transform:An}),K_=Gt({prop:"maxHeight",transform:An}),X_=Gt({prop:"minHeight",transform:An});Gt({prop:"size",cssProperty:"width",transform:An});Gt({prop:"size",cssProperty:"height",transform:An});const Z_=Gt({prop:"boxSizing"});Ll(U_,hu,q_,G_,K_,X_,Z_);const ta={border:{themeKey:"borders",transform:Yn},borderTop:{themeKey:"borders",transform:Yn},borderRight:{themeKey:"borders",transform:Yn},borderBottom:{themeKey:"borders",transform:Yn},borderLeft:{themeKey:"borders",transform:Yn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$l},color:{themeKey:"palette",transform:gs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gs},backgroundColor:{themeKey:"palette",transform:gs},p:{style:zt},pt:{style:zt},pr:{style:zt},pb:{style:zt},pl:{style:zt},px:{style:zt},py:{style:zt},padding:{style:zt},paddingTop:{style:zt},paddingRight:{style:zt},paddingBottom:{style:zt},paddingLeft:{style:zt},paddingX:{style:zt},paddingY:{style:zt},paddingInline:{style:zt},paddingInlineStart:{style:zt},paddingInlineEnd:{style:zt},paddingBlock:{style:zt},paddingBlockStart:{style:zt},paddingBlockEnd:{style:zt},m:{style:Ht},mt:{style:Ht},mr:{style:Ht},mb:{style:Ht},ml:{style:Ht},mx:{style:Ht},my:{style:Ht},margin:{style:Ht},marginTop:{style:Ht},marginRight:{style:Ht},marginBottom:{style:Ht},marginLeft:{style:Ht},marginX:{style:Ht},marginY:{style:Ht},marginInline:{style:Ht},marginInlineStart:{style:Ht},marginInlineEnd:{style:Ht},marginBlock:{style:Ht},marginBlockStart:{style:Ht},marginBlockEnd:{style:Ht},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:Vl},rowGap:{style:Bl},columnGap:{style:jl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:An},maxWidth:{style:hu},minWidth:{transform:An},height:{transform:An},maxHeight:{transform:An},minHeight:{transform:An},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 Q_(...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 J_(e,t){return typeof e=="function"?e(t):e}function ex(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:f,style:p}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const y=Nl(r,u)||{};return p?p(a):Uo(a,o,w=>{let g=dl(y,f,w);return w===g&&typeof w=="string"&&(g=dl(y,f,`${n}${w==="default"?"":be(w)}`,w)),d===!1?g:{[d]:g}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??ta;function a(l){let d=l;if(typeof l=="function")d=l(r);else if(typeof l!="object")return l;if(!d)return null;const u=f_(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(d).forEach(y=>{const b=J_(d[y],r);if(b!=null)if(typeof b=="object")if(i[y])p=bi(p,e(y,b,r,i));else{const w=Uo({theme:r},b,g=>({[y]:g}));Q_(w,b)?p[y]=t({sx:b,theme:r}):p=bi(p,w)}else p=bi(p,e(y,b,r,i))}),a_(r,p_(f,p))}return Array.isArray(o)?o.map(a):a(o)}return t}const Ar=ex();Ar.filterProps=["sx"];function tx(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 fu(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=i_(n),d=Km(r);let u=mn({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...u_,...i}},a);return u=d_(u),u.applyStyles=tx,u=t.reduce((f,p)=>mn(f,p),u),u.unstable_sxConfig={...ta,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Ar({sx:p,theme:this})},u}function nx(e){return Object.keys(e).length===0}function Xm(e=null){const t=k.useContext(Ml);return!t||nx(t)?e:t}const ox=fu();function Wl(e=ox){return Xm(e)}function Zm({styles:e,themeId:t,defaultTheme:n={}}){const o=Wl(n),r=typeof e=="function"?e(t&&o[t]||o):e;return D.jsx(Ym,{styles:r})}process.env.NODE_ENV!=="production"&&(Zm.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const rx=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ta;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Qm(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=rx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return bo(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}const Bf=e=>e,sx=()=>{let e=Bf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Bf}}},Jm=sx();function eg(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=eg(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=eg(e))&&(o&&(o+=" "),o+=t);return o}function ix(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=Um("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Ar);return k.forwardRef(function(d,u){const f=Wl(n),{className:p,component:y="div",...b}=Qm(d);return D.jsx(i,{as:y,ref:u,className:Se(p,r?r(o):o),theme:t&&f[t]||f,...b})})}const ax={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=ax[t];return o?`${n}-${o}`:`${Jm.generate(e)}-${t}`}function De(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Oe(e,r,n)}),o}function tg(e,t=""){return e.displayName||e.name||t}function Wf(e,t,n){const o=tg(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function lx(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return tg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case cl.ForwardRef:return Wf(e,e.render,"ForwardRef");case cl.Memo:return Wf(e,e.type,"memo");default:return}}}function ng(e){const{variants:t,...n}=e,o={variants:t,style:Af(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Af(r.style))}),o}const cx=fu();function Qa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function dx(e){return e?(t,n)=>n[e]:null}function ux(e,t,n){e.theme=mx(e.theme)?n:e.theme[t]||e.theme}function Ja(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Ja(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return og(e,n.variants,[o])}return n?.isProcessed?n.style:n}function og(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 hx(e={}){const{themeId:t,defaultTheme:n=cx,rootShouldForwardProp:o=Qa,slotShouldForwardProp:r=Qa}=e;function i(l){ux(l,t,n)}return(l,d={})=>{t_(l,C=>C.filter(O=>O!==Ar));const{name:u,slot:f,skipVariantsResolver:p,skipSx:y,overridesResolver:b=dx(rg(f)),...w}=d,g=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let T=Qa;f==="Root"||f==="root"?T=o:f?T=r:gx(l)&&(T=void 0);const P=Um(l,{shouldForwardProp:T,label:px(u,f),...w}),x=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(A){return Ja(A,C)};if(bo(C)){const O=ng(C);return O.variants?function(F){return Ja(F,O)}:O.style}return C},S=(...C)=>{const O=[],A=C.map(x),F=[];if(O.push(i),u&&b&&F.push(function(K){const q=K.theme.components?.[u]?.styleOverrides;if(!q)return null;const Y={};for(const H in q)Y[H]=Ja(K,q[H]);return b(K,Y)}),u&&!g&&F.push(function(K){const q=K.theme?.components?.[u]?.variants;return q?og(K,q):null}),v||F.push(Ar),Array.isArray(A[0])){const $=A.shift(),K=new Array(O.length).fill(""),X=new Array(F.length).fill("");let q;q=[...K,...$,...X],q.raw=[...K,...$.raw,...X],O.unshift(q)}const z=[...O,...A,...F],R=P(...z);return l.muiName&&(R.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=fx(u,f,l)),R};return P.withConfig&&(S.withConfig=P.withConfig),S}}function fx(e,t,n){return e?`${e}${be(t||"")}`:`Styled(${lx(n)})`}function px(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${rg(t||"Root")}`),n}function mx(e){for(const t in e)return!1;return!0}function gx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rg(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Mi(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],a=t[r];if(!a)n[r]=i||{};else if(!i)n[r]=a;else{n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const d=l;n[r][d]=Mi(i[d],a[d])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function sg(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Mi(t.components[n].defaultProps,o)}function yx({props:e,name:t,defaultTheme:n,themeId:o}){let r=Wl(n);return r=r[o]||r,sg({theme:r,name:t,props:e})}const nn=typeof window<"u"?k.useLayoutEffect:k.useEffect;function vx(e,t,n,o,r){const[i,a]=k.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return nn(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),i}const bx={...k},ig=bx.useSyncExternalStore;function wx(e,t,n,o,r){const i=k.useCallback(()=>t,[t]),a=k.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:f}=o(e);return()=>f}return i},[i,e,o,r,n]),[l,d]=k.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 ig(d,l,a)}function Cx(e={}){const{themeId:t}=e;return function(o,r={}){let i=Xm();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=sg({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
91
91
|
`));let p=typeof o=="function"?o(i):o;p=p.replace(/^@media( ?)/m,""),p.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
92
92
|
`));const b=(ig!==void 0?wx:vx)(p,l,d,u,f);return process.env.NODE_ENV!=="production"&&k.useDebugValue({query:p,match:b}),b}}const ag=Cx();function Sx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function pu(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}].`),Sx(e,t,n)}function _x(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 cr(e){if(e.type)return e;if(e.charAt(0)==="#")return cr(_x(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
93
93
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:_o(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
94
|
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:_o(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const xx=e=>{const t=cr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},mi=(e,t)=>{try{return xx(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Hl(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 lg(e){e=cr(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(u,f=(u+n/30)%12)=>r-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),Hl({type:l,values:d})}function Pd(e){e=cr(e);let t=e.type==="hsl"||e.type==="hsla"?cr(lg(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 Hf(e,t){const n=Pd(e),o=Pd(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function ot(e,t){return e=cr(e),t=pu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hl(e)}function Fa(e,t,n){try{return ot(e,t)}catch{return e}}function Ii(e,t){if(e=cr(e),t=pu(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 Hl(e)}function Et(e,t,n){try{return Ii(e,t)}catch{return e}}function Ni(e,t){if(e=cr(e),t=pu(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 Hl(e)}function Pt(e,t,n){try{return Ni(e,t)}catch{return e}}function Rx(e,t=.15){return Pd(e)>.5?Ii(e,t):Ni(e,t)}function La(e,t,n){try{return Rx(e,t)}catch{return e}}function fr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Tx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function cg(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;const d=i.type;return typeof d=="function"&&!Tx(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const na=fr(s.element,cg);na.isRequired=fr(s.element.isRequired,cg);function kx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Ex(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!kx(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const zl=fr(s.elementType,Ex),Px="exact-prop: ";function dg(e){return process.env.NODE_ENV==="production"?e:{...e,[Px]: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 qo(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 Bt=s.oneOfType([s.func,s.object]);function zf(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function ug(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 wi(e,t){return k.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function gn(e){return e&&e.ownerDocument||document}function Go(e){return gn(e).defaultView||window}function Yf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Uf=0;function Dx(e){const[t,n]=k.useState(e),o=e||t;return k.useEffect(()=>{t==null&&(Uf+=1,n(`mui-${Uf}`))},[t]),o}const Ox={...k},qf=Ox.useId;function pr(e){if(qf!==void 0){const t=qf();return e??t}return Dx(e)}function Mx(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 xo({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=k.useRef(e!==void 0),[i,a]=k.useState(t),l=r?e:i;if(process.env.NODE_ENV!=="production"){k.useEffect(()=>{r!==(e!==void 0)&&console.error([`MUI: A component is changing the ${r?"":"un"}controlled ${o} state of ${n} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
95
95
|
`))},[o,n,e]);const{current:u}=k.useRef(t);k.useEffect(()=>{!r&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
96
96
|
`))},[JSON.stringify(t)])}const d=k.useCallback(u=>{r||a(u)},[]);return[l,d]}function Te(e){const t=k.useRef(e);return nn(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function at(...e){const t=k.useRef(void 0),n=k.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i?.())}},e);return k.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const Gf={};function hg(e,t){const n=k.useRef(Gf);return n.current===Gf&&(n.current=e(t)),n}const Ix=[];function Nx(e){k.useEffect(e,Ix)}class mu{static create(){return new mu}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 fg(){const e=hg(mu.create).current;return Nx(e.disposeEffect),e}function Kf(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 pg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Ax={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Fx(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 mg(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=Fx(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function gg(e,t,...n){return e[t]===void 0?null:mg(e,t,...n)}function Dd(){return null}gg.isRequired=mg;Dd.isRequired=Dd;const yg=process.env.NODE_ENV==="production"?Dd:gg;function Me(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let d=0;d<i.length;d+=1){const u=i[d];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[r]=a}return o}function Lx(e){return typeof e=="string"}function vg(e,t,n){return e===void 0||Lx(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bg(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 Xf(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 wg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const b=Se(n?.className,i,r?.className,o?.className),w={...n?.style,...r?.style,...o?.style},g={...n,...r,...o};return b.length>0&&(g.className=b),Object.keys(w).length>0&&(g.style=w),{props:g,internalRef:void 0}}const a=bg({...r,...o}),l=Xf(o),d=Xf(r),u=t(a),f=Se(u?.className,n?.className,i,r?.className,o?.className),p={...u?.style,...n?.style,...r?.style,...o?.style},y={...u,...n,...d,...l};return f.length>0&&(y.className=f),Object.keys(p).length>0&&(y.style=p),{props:y,internalRef:u.ref}}function Yl(e,t,n){return typeof e=="function"?e(t,n):e}function dt(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:Yl(n,o),{props:l,internalRef:d}=wg({...i,externalSlotProps:a}),u=at(d,a?.ref,e.additionalProps?.ref);return vg(t,{...l,ref:u},o)}function oa(e){return parseInt(k.version,10)>=19?e?.props?.ref||null:e?.ref||null}const $x=k.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const ao=()=>k.useContext($x)??!1,Vx=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function jx(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?Mi(r.defaultProps,o):!r.styleOverrides&&!r.variants?Mi(r,o):o}function Bx({props:e,name:t}){const n=k.useContext(Vx);return jx({props:e,name:t,theme:{components:n}})}const Zf={theme:void 0};function Wx(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Zf.theme=r.theme,i=ng(e(Zf)),t=i,n=r.theme),i}}function Hx(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 Qf=(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])})},zx=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([l,d])=>{(!n||n&&!n([...i,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?o(d,[...i,l],Array.isArray(d)?[...a,l]:a):t([...i,l],d,a))})}o(e)},Yx=(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 Xc(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return zx(e,(l,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!o||!o(l,d))){const f=`--${n?`${n}-`:""}${l.join("-")}`,p=Yx(l,d);Object.assign(r,{[f]:p}),Qf(i,l,`var(${f})`,u),Qf(a,l,`var(${f}, ${p})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function Ux(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...d}=e,{vars:u,css:f,varsWithDefaults:p}=Xc(d,t);let y=p;const b={},{[l]:w,...g}=i;if(Object.entries(g||{}).forEach(([x,S])=>{const{vars:C,css:O,varsWithDefaults:A}=Xc(S,t);y=mn(y,A),b[x]={css:O,vars:C}}),w){const{css:x,vars:S,varsWithDefaults:C}=Xc(w,t);y=mn(y,C),b[l]={css:x,vars:S}}function v(x,S){let C=r;if(r==="class"&&(C=".%s"),r==="data"&&(C="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(C=`[${r}="%s"]`),x){if(C==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":S}};if(C)return e.defaultColorScheme===x?`:root, ${C.replace("%s",String(x))}`:C.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...u};return Object.entries(b).forEach(([,{vars:S}])=>{x=mn(x,S)}),x},generateStyleSheets:()=>{const x=[],S=e.defaultColorScheme||"light";function C(F,z){Object.keys(z).length&&x.push(typeof F=="string"?{[F]:{...z}}:F)}C(n(void 0,{...f}),f);const{[S]:O,...A}=b;if(O){const{css:F}=O,z=i[S]?.palette?.mode,R=!o&&z?{colorScheme:z,...F}:{...F};C(n(S,{...R}),R)}return Object.entries(A).forEach(([F,{css:z}])=>{const R=i[F]?.palette?.mode,$=!o&&R?{colorScheme:R,...z}:{...z};C(n(F,{...$}),$)}),x}}}function qx(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 Cg(){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:Ei.white,default:Ei.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 Gx=Cg();function Sg(){return{text:{primary:Ei.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:Ei.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 Jf=Sg();function ep(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=Ni(e.main,r):t==="dark"&&(e.dark=Ii(e.main,i)))}function Kx(e="light"){return e==="dark"?{main:
|
|
97
|
+
`))}return!1}function pg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Ax={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Fx(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 mg(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=Fx(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function gg(e,t,...n){return e[t]===void 0?null:mg(e,t,...n)}function Dd(){return null}gg.isRequired=mg;Dd.isRequired=Dd;const yg=process.env.NODE_ENV==="production"?Dd:gg;function Me(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let d=0;d<i.length;d+=1){const u=i[d];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[r]=a}return o}function Lx(e){return typeof e=="string"}function vg(e,t,n){return e===void 0||Lx(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bg(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 Xf(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 wg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const b=Se(n?.className,i,r?.className,o?.className),w={...n?.style,...r?.style,...o?.style},g={...n,...r,...o};return b.length>0&&(g.className=b),Object.keys(w).length>0&&(g.style=w),{props:g,internalRef:void 0}}const a=bg({...r,...o}),l=Xf(o),d=Xf(r),u=t(a),f=Se(u?.className,n?.className,i,r?.className,o?.className),p={...u?.style,...n?.style,...r?.style,...o?.style},y={...u,...n,...d,...l};return f.length>0&&(y.className=f),Object.keys(p).length>0&&(y.style=p),{props:y,internalRef:u.ref}}function Yl(e,t,n){return typeof e=="function"?e(t,n):e}function dt(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:Yl(n,o),{props:l,internalRef:d}=wg({...i,externalSlotProps:a}),u=at(d,a?.ref,e.additionalProps?.ref);return vg(t,{...l,ref:u},o)}function oa(e){return parseInt(k.version,10)>=19?e?.props?.ref||null:e?.ref||null}const $x=k.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const ao=()=>k.useContext($x)??!1,Vx=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function jx(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?Mi(r.defaultProps,o):!r.styleOverrides&&!r.variants?Mi(r,o):o}function Bx({props:e,name:t}){const n=k.useContext(Vx);return jx({props:e,name:t,theme:{components:n}})}const Zf={theme:void 0};function Wx(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Zf.theme=r.theme,i=ng(e(Zf)),t=i,n=r.theme),i}}function Hx(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 Qf=(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])})},zx=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([l,d])=>{(!n||n&&!n([...i,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?o(d,[...i,l],Array.isArray(d)?[...a,l]:a):t([...i,l],d,a))})}o(e)},Yx=(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 Xc(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return zx(e,(l,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!o||!o(l,d))){const f=`--${n?`${n}-`:""}${l.join("-")}`,p=Yx(l,d);Object.assign(r,{[f]:p}),Qf(i,l,`var(${f})`,u),Qf(a,l,`var(${f}, ${p})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function Ux(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...d}=e,{vars:u,css:f,varsWithDefaults:p}=Xc(d,t);let y=p;const b={},{[l]:w,...g}=i;if(Object.entries(g||{}).forEach(([x,S])=>{const{vars:C,css:O,varsWithDefaults:A}=Xc(S,t);y=mn(y,A),b[x]={css:O,vars:C}}),w){const{css:x,vars:S,varsWithDefaults:C}=Xc(w,t);y=mn(y,C),b[l]={css:x,vars:S}}function v(x,S){let C=r;if(r==="class"&&(C=".%s"),r==="data"&&(C="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(C=`[${r}="%s"]`),x){if(C==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":S}};if(C)return e.defaultColorScheme===x?`:root, ${C.replace("%s",String(x))}`:C.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...u};return Object.entries(b).forEach(([,{vars:S}])=>{x=mn(x,S)}),x},generateStyleSheets:()=>{const x=[],S=e.defaultColorScheme||"light";function C(F,z){Object.keys(z).length&&x.push(typeof F=="string"?{[F]:{...z}}:F)}C(n(void 0,{...f}),f);const{[S]:O,...A}=b;if(O){const{css:F}=O,z=i[S]?.palette?.mode,R=!o&&z?{colorScheme:z,...F}:{...F};C(n(S,{...R}),R)}return Object.entries(A).forEach(([F,{css:z}])=>{const R=i[F]?.palette?.mode,$=!o&&R?{colorScheme:R,...z}:{...z};C(n(F,{...$}),$)}),x}}}function qx(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 Cg(){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:Ei.white,default:Ei.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 Gx=Cg();function Sg(){return{text:{primary:Ei.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:Ei.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 Jf=Sg();function ep(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=Ni(e.main,r):t==="dark"&&(e.dark=Ii(e.main,i)))}function Kx(e="light"){return e==="dark"?{main:es[200],light:es[50],dark:es[400]}:{main:es[700],light:es[400],dark:es[800]}}function Xx(e="light"){return e==="dark"?{main:Jr[200],light:Jr[50],dark:Jr[400]}:{main:Jr[500],light:Jr[300],dark:Jr[700]}}function Zx(e="light"){return e==="dark"?{main:Qr[500],light:Qr[300],dark:Qr[700]}:{main:Qr[700],light:Qr[400],dark:Qr[800]}}function Qx(e="light"){return e==="dark"?{main:ts[400],light:ts[300],dark:ts[700]}:{main:ts[700],light:ts[500],dark:ts[900]}}function Jx(e="light"){return e==="dark"?{main:ns[400],light:ns[300],dark:ns[700]}:{main:ns[800],light:ns[500],dark:ns[900]}}function eR(e="light"){return e==="dark"?{main:Xs[400],light:Xs[300],dark:Xs[700]}:{main:"#ed6c02",light:Xs[500],dark:Xs[900]}}function gu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||Kx(t),a=e.secondary||Xx(t),l=e.error||Zx(t),d=e.info||Qx(t),u=e.success||Jx(t),f=e.warning||eR(t);function p(g){const v=Hf(g,Jf.text.primary)>=n?Jf.text.primary:Gx.text.primary;if(process.env.NODE_ENV!=="production"){const T=Hf(g,v);T<3&&console.error([`MUI: The contrast ratio of ${T}: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
98
|
`))}return v}const y=({color:g,name:v,mainShade:T=500,lightShade:P=300,darkShade:x=700})=>{if(g={...g},!g.main&&g[T]&&(g.main=g[T]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
99
99
|
The color object needs to have a \`main\` property or a \`${T}\` property.`:_o(11,v?` (${v})`:"",T));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
100
|
\`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
|
|
@@ -118,8 +118,8 @@ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
|
118
118
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
119
119
|
|
|
120
120
|
export default theme;`}function Od(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:d,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":_o(20));const f=gu(i),p=fu(e);let y=mn(p,{mixins:nR(p.breakpoints,o),palette:f,shadows:lR.slice(),typography:rR(f,l),transitions:hR(a),zIndex:{...fR}});if(y=mn(y,u),y=t.reduce((b,w)=>mn(b,w),y),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],w=(g,v)=>{let T;for(T in g){const P=g[T];if(b.includes(T)&&Object.keys(P).length>0){if(process.env.NODE_ENV!=="production"){const x=Oe("",T);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(g,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:P}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
121
|
-
`))}g[T]={}}}};Object.keys(y.components).forEach(g=>{const v=y.components[g].styleOverrides;v&&g.startsWith("Mui")&&w(v,g)})}return y.unstable_sxConfig={...ta,...u?.unstable_sxConfig},y.unstable_sx=function(w){return
|
|
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 CR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fo=e=>{try{return e()}catch{}},SR=(e="mui")=>Hx(e);function Zc(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=gR({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=Od({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...xg(r),...t?.opacity},overlays:t?.overlays||Rg(r)},a}function _R(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=yR,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),y=SR(i),{[p]:b,light:w,dark:g,...v}=n,T={...v};let P=b;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(P=!0),!P)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:_o(21,p));const x=Zc(T,P,u,p);w&&!T.light&&Zc(T,w,void 0,"light"),g&&!T.dark&&Zc(T,g,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:T,font:{...tR(x.typography),...x.font},spacing:CR(u.spacing)};Object.keys(S.colorSchemes).forEach(z=>{const R=S.colorSchemes[z].palette,$=K=>{const X=K.split("-"),q=X[1],Y=X[2];return y(K,R[q][Y])};if(R.mode==="light"&&(ue(R.common,"background","#fff"),ue(R.common,"onBackground","#000")),R.mode==="dark"&&(ue(R.common,"background","#000"),ue(R.common,"onBackground","#fff")),wR(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ue(R.Alert,"errorColor",Et(R.error.light,.6)),ue(R.Alert,"infoColor",Et(R.info.light,.6)),ue(R.Alert,"successColor",Et(R.success.light,.6)),ue(R.Alert,"warningColor",Et(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-main")),ue(R.Alert,"infoFilledBg",$("palette-info-main")),ue(R.Alert,"successFilledBg",$("palette-success-main")),ue(R.Alert,"warningFilledBg",$("palette-warning-main")),ue(R.Alert,"errorFilledColor",fo(()=>R.getContrastText(R.error.main))),ue(R.Alert,"infoFilledColor",fo(()=>R.getContrastText(R.info.main))),ue(R.Alert,"successFilledColor",fo(()=>R.getContrastText(R.success.main))),ue(R.Alert,"warningFilledColor",fo(()=>R.getContrastText(R.warning.main))),ue(R.Alert,"errorStandardBg",Pt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Pt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Pt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Pt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-100")),ue(R.Avatar,"defaultBg",$("palette-grey-400")),ue(R.Button,"inheritContainedBg",$("palette-grey-300")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ue(R.Chip,"defaultBorder",$("palette-grey-400")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-700")),ue(R.Chip,"defaultIconColor",$("palette-grey-700")),ue(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(R.LinearProgress,"primaryBg",Pt(R.primary.main,.62)),ue(R.LinearProgress,"secondaryBg",Pt(R.secondary.main,.62)),ue(R.LinearProgress,"errorBg",Pt(R.error.main,.62)),ue(R.LinearProgress,"infoBg",Pt(R.info.main,.62)),ue(R.LinearProgress,"successBg",Pt(R.success.main,.62)),ue(R.LinearProgress,"warningBg",Pt(R.warning.main,.62)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ue(R.Slider,"primaryTrack",Pt(R.primary.main,.62)),ue(R.Slider,"secondaryTrack",Pt(R.secondary.main,.62)),ue(R.Slider,"errorTrack",Pt(R.error.main,.62)),ue(R.Slider,"infoTrack",Pt(R.info.main,.62)),ue(R.Slider,"successTrack",Pt(R.success.main,.62)),ue(R.Slider,"warningTrack",Pt(R.warning.main,.62));const K=La(R.background.default,.8);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",La(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-400")),ue(R.StepContent,"border",$("palette-grey-400")),ue(R.Switch,"defaultColor",$("palette-common-white")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-100")),ue(R.Switch,"primaryDisabledColor",Pt(R.primary.main,.62)),ue(R.Switch,"secondaryDisabledColor",Pt(R.secondary.main,.62)),ue(R.Switch,"errorDisabledColor",Pt(R.error.main,.62)),ue(R.Switch,"infoDisabledColor",Pt(R.info.main,.62)),ue(R.Switch,"successDisabledColor",Pt(R.success.main,.62)),ue(R.Switch,"warningDisabledColor",Pt(R.warning.main,.62)),ue(R.TableCell,"border",Pt(Fa(R.divider,1),.88)),ue(R.Tooltip,"bg",Fa(R.grey[700],.92))}if(R.mode==="dark"){ue(R.Alert,"errorColor",Pt(R.error.light,.6)),ue(R.Alert,"infoColor",Pt(R.info.light,.6)),ue(R.Alert,"successColor",Pt(R.success.light,.6)),ue(R.Alert,"warningColor",Pt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-dark")),ue(R.Alert,"infoFilledBg",$("palette-info-dark")),ue(R.Alert,"successFilledBg",$("palette-success-dark")),ue(R.Alert,"warningFilledBg",$("palette-warning-dark")),ue(R.Alert,"errorFilledColor",fo(()=>R.getContrastText(R.error.dark))),ue(R.Alert,"infoFilledColor",fo(()=>R.getContrastText(R.info.dark))),ue(R.Alert,"successFilledColor",fo(()=>R.getContrastText(R.success.dark))),ue(R.Alert,"warningFilledColor",fo(()=>R.getContrastText(R.warning.dark))),ue(R.Alert,"errorStandardBg",Et(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Et(R.info.light,.9)),ue(R.Alert,"successStandardBg",Et(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Et(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-900")),ue(R.AppBar,"darkBg",$("palette-background-paper")),ue(R.AppBar,"darkColor",$("palette-text-primary")),ue(R.Avatar,"defaultBg",$("palette-grey-600")),ue(R.Button,"inheritContainedBg",$("palette-grey-800")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-700")),ue(R.Chip,"defaultBorder",$("palette-grey-700")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-300")),ue(R.Chip,"defaultIconColor",$("palette-grey-300")),ue(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(R.LinearProgress,"primaryBg",Et(R.primary.main,.5)),ue(R.LinearProgress,"secondaryBg",Et(R.secondary.main,.5)),ue(R.LinearProgress,"errorBg",Et(R.error.main,.5)),ue(R.LinearProgress,"infoBg",Et(R.info.main,.5)),ue(R.LinearProgress,"successBg",Et(R.success.main,.5)),ue(R.LinearProgress,"warningBg",Et(R.warning.main,.5)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ue(R.Slider,"primaryTrack",Et(R.primary.main,.5)),ue(R.Slider,"secondaryTrack",Et(R.secondary.main,.5)),ue(R.Slider,"errorTrack",Et(R.error.main,.5)),ue(R.Slider,"infoTrack",Et(R.info.main,.5)),ue(R.Slider,"successTrack",Et(R.success.main,.5)),ue(R.Slider,"warningTrack",Et(R.warning.main,.5));const K=La(R.background.default,.98);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",La(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-600")),ue(R.StepContent,"border",$("palette-grey-600")),ue(R.Switch,"defaultColor",$("palette-grey-300")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-600")),ue(R.Switch,"primaryDisabledColor",Et(R.primary.main,.55)),ue(R.Switch,"secondaryDisabledColor",Et(R.secondary.main,.55)),ue(R.Switch,"errorDisabledColor",Et(R.error.main,.55)),ue(R.Switch,"infoDisabledColor",Et(R.info.main,.55)),ue(R.Switch,"successDisabledColor",Et(R.success.main,.55)),ue(R.Switch,"warningDisabledColor",Et(R.warning.main,.55)),ue(R.TableCell,"border",Et(Fa(R.divider,1),.68)),ue(R.Tooltip,"bg",Fa(R.grey[700],.92))}Fo(R.background,"default"),Fo(R.background,"paper"),Fo(R.common,"background"),Fo(R.common,"onBackground"),Fo(R,"divider"),Object.keys(R).forEach(K=>{const X=R[K];X&&typeof X=="object"&&(X.main&&ue(R[K],"mainChannel",mi(gi(X.main))),X.light&&ue(R[K],"lightChannel",mi(gi(X.light))),X.dark&&ue(R[K],"darkChannel",mi(gi(X.dark))),X.contrastText&&ue(R[K],"contrastTextChannel",mi(gi(X.contrastText))),K==="text"&&(Fo(R[K],"primary"),Fo(R[K],"secondary")),K==="action"&&(X.active&&Fo(R[K],"active"),X.selected&&Fo(R[K],"selected")))})}),S=t.reduce((z,R)=>mn(z,R),S);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:bR(S)},{vars:O,generateThemeVars:A,generateStyleSheets:F}=Ux(S,C);return S.vars=O,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([z,R])=>{S[z]=R}),S.generateThemeVars=A,S.generateStyleSheets=F,S.generateSpacing=function(){return Km(u.spacing,uu(this))},S.getColorSchemeSelector=qx(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...ta,...u?.unstable_sxConfig},S.unstable_sx=function(R){return Nr({sx:R,theme:this})},S.toRuntimeSource=_g,S}function rp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:gu({...n===!0?{}:n.palette,mode:t})})}function Tg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",d=r?.[l],u={...r,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Od(e,...t);let f=n;"palette"in e||u[l]&&(u[l]!==!0?f=u[l].palette:l==="dark"&&(f={mode:"dark"}));const p=Od({...e,palette:f},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},rp(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},rp(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),_R({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}function xR(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function RR(e){return parseFloat(e)}const Ul=Tg();function Ns(){const e=Wl(Ul);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[Xi]||e}function Mt({props:e,name:t}){return yx({props:e,name:t,defaultTheme:Ul,themeId:Xi})}function kg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dn=e=>kg(e)&&e!=="classes",le=hx({themeId:Xi,defaultTheme:Ul,rootShouldForwardProp:Dn});function Eg(e){return D.jsx(Zm,{...e,defaultTheme:Ul,themeId:Xi})}process.env.NODE_ENV!=="production"&&(Eg.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function TR(e){return function(n){return D.jsx(Eg,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function kR(){return Qm}const lt=Wx;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ke(e){return Bx(e)}function ER(e){return Oe("MuiSvgIcon",e)}De("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const PR=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${be(t)}`,`fontSize${be(n)}`]};return Me(r,ER,o)},DR=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)}`]]}})(lt(({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}}]}))),Ai=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:y="0 0 24 24",...b}=o,w=k.isValidElement(r)&&r.type==="svg",g={...o,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:w},v={};f||(v.viewBox=y);const T=PR(g);return D.jsxs(DR,{as:l,className:Se(T.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...b,...w&&r.props,ownerState:g,children:[w?r.props.children:r,p?D.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Ai.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});Ai&&(Ai.muiName="SvgIcon");function an(e,t){function n(o,r){return D.jsx(Ai,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ai.muiName,k.memo(k.forwardRef(n))}var $a={exports:{}},_t={};/**
|
|
121
|
+
`))}g[T]={}}}};Object.keys(y.components).forEach(g=>{const v=y.components[g].styleOverrides;v&&g.startsWith("Mui")&&w(v,g)})}return y.unstable_sxConfig={...ta,...u?.unstable_sxConfig},y.unstable_sx=function(w){return Ar({sx:w,theme:this})},y.toRuntimeSource=_g,y}function Md(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 mR=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Md(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function xg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Rg(e){return e==="dark"?mR:[]}function gR(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=gu(t);return{palette:i,opacity:{...xg(i.mode),...n},overlays:o||Rg(i.mode),...r}}function yR(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 vR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],bR=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 vR(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function wR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ue(e,t,n){!e[t]&&n&&(e[t]=n)}function gi(e){return!e||!e.startsWith("hsl")?e:lg(e)}function Fo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=mi(gi(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 CR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fo=e=>{try{return e()}catch{}},SR=(e="mui")=>Hx(e);function Zc(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=gR({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=Od({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...xg(r),...t?.opacity},overlays:t?.overlays||Rg(r)},a}function _R(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=yR,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),y=SR(i),{[p]:b,light:w,dark:g,...v}=n,T={...v};let P=b;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(P=!0),!P)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:_o(21,p));const x=Zc(T,P,u,p);w&&!T.light&&Zc(T,w,void 0,"light"),g&&!T.dark&&Zc(T,g,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:T,font:{...tR(x.typography),...x.font},spacing:CR(u.spacing)};Object.keys(S.colorSchemes).forEach(z=>{const R=S.colorSchemes[z].palette,$=K=>{const X=K.split("-"),q=X[1],Y=X[2];return y(K,R[q][Y])};if(R.mode==="light"&&(ue(R.common,"background","#fff"),ue(R.common,"onBackground","#000")),R.mode==="dark"&&(ue(R.common,"background","#000"),ue(R.common,"onBackground","#fff")),wR(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ue(R.Alert,"errorColor",Et(R.error.light,.6)),ue(R.Alert,"infoColor",Et(R.info.light,.6)),ue(R.Alert,"successColor",Et(R.success.light,.6)),ue(R.Alert,"warningColor",Et(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-main")),ue(R.Alert,"infoFilledBg",$("palette-info-main")),ue(R.Alert,"successFilledBg",$("palette-success-main")),ue(R.Alert,"warningFilledBg",$("palette-warning-main")),ue(R.Alert,"errorFilledColor",fo(()=>R.getContrastText(R.error.main))),ue(R.Alert,"infoFilledColor",fo(()=>R.getContrastText(R.info.main))),ue(R.Alert,"successFilledColor",fo(()=>R.getContrastText(R.success.main))),ue(R.Alert,"warningFilledColor",fo(()=>R.getContrastText(R.warning.main))),ue(R.Alert,"errorStandardBg",Pt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Pt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Pt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Pt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-100")),ue(R.Avatar,"defaultBg",$("palette-grey-400")),ue(R.Button,"inheritContainedBg",$("palette-grey-300")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ue(R.Chip,"defaultBorder",$("palette-grey-400")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-700")),ue(R.Chip,"defaultIconColor",$("palette-grey-700")),ue(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(R.LinearProgress,"primaryBg",Pt(R.primary.main,.62)),ue(R.LinearProgress,"secondaryBg",Pt(R.secondary.main,.62)),ue(R.LinearProgress,"errorBg",Pt(R.error.main,.62)),ue(R.LinearProgress,"infoBg",Pt(R.info.main,.62)),ue(R.LinearProgress,"successBg",Pt(R.success.main,.62)),ue(R.LinearProgress,"warningBg",Pt(R.warning.main,.62)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ue(R.Slider,"primaryTrack",Pt(R.primary.main,.62)),ue(R.Slider,"secondaryTrack",Pt(R.secondary.main,.62)),ue(R.Slider,"errorTrack",Pt(R.error.main,.62)),ue(R.Slider,"infoTrack",Pt(R.info.main,.62)),ue(R.Slider,"successTrack",Pt(R.success.main,.62)),ue(R.Slider,"warningTrack",Pt(R.warning.main,.62));const K=La(R.background.default,.8);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",La(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-400")),ue(R.StepContent,"border",$("palette-grey-400")),ue(R.Switch,"defaultColor",$("palette-common-white")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-100")),ue(R.Switch,"primaryDisabledColor",Pt(R.primary.main,.62)),ue(R.Switch,"secondaryDisabledColor",Pt(R.secondary.main,.62)),ue(R.Switch,"errorDisabledColor",Pt(R.error.main,.62)),ue(R.Switch,"infoDisabledColor",Pt(R.info.main,.62)),ue(R.Switch,"successDisabledColor",Pt(R.success.main,.62)),ue(R.Switch,"warningDisabledColor",Pt(R.warning.main,.62)),ue(R.TableCell,"border",Pt(Fa(R.divider,1),.88)),ue(R.Tooltip,"bg",Fa(R.grey[700],.92))}if(R.mode==="dark"){ue(R.Alert,"errorColor",Pt(R.error.light,.6)),ue(R.Alert,"infoColor",Pt(R.info.light,.6)),ue(R.Alert,"successColor",Pt(R.success.light,.6)),ue(R.Alert,"warningColor",Pt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-dark")),ue(R.Alert,"infoFilledBg",$("palette-info-dark")),ue(R.Alert,"successFilledBg",$("palette-success-dark")),ue(R.Alert,"warningFilledBg",$("palette-warning-dark")),ue(R.Alert,"errorFilledColor",fo(()=>R.getContrastText(R.error.dark))),ue(R.Alert,"infoFilledColor",fo(()=>R.getContrastText(R.info.dark))),ue(R.Alert,"successFilledColor",fo(()=>R.getContrastText(R.success.dark))),ue(R.Alert,"warningFilledColor",fo(()=>R.getContrastText(R.warning.dark))),ue(R.Alert,"errorStandardBg",Et(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Et(R.info.light,.9)),ue(R.Alert,"successStandardBg",Et(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Et(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-900")),ue(R.AppBar,"darkBg",$("palette-background-paper")),ue(R.AppBar,"darkColor",$("palette-text-primary")),ue(R.Avatar,"defaultBg",$("palette-grey-600")),ue(R.Button,"inheritContainedBg",$("palette-grey-800")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-700")),ue(R.Chip,"defaultBorder",$("palette-grey-700")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-300")),ue(R.Chip,"defaultIconColor",$("palette-grey-300")),ue(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(R.LinearProgress,"primaryBg",Et(R.primary.main,.5)),ue(R.LinearProgress,"secondaryBg",Et(R.secondary.main,.5)),ue(R.LinearProgress,"errorBg",Et(R.error.main,.5)),ue(R.LinearProgress,"infoBg",Et(R.info.main,.5)),ue(R.LinearProgress,"successBg",Et(R.success.main,.5)),ue(R.LinearProgress,"warningBg",Et(R.warning.main,.5)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ue(R.Slider,"primaryTrack",Et(R.primary.main,.5)),ue(R.Slider,"secondaryTrack",Et(R.secondary.main,.5)),ue(R.Slider,"errorTrack",Et(R.error.main,.5)),ue(R.Slider,"infoTrack",Et(R.info.main,.5)),ue(R.Slider,"successTrack",Et(R.success.main,.5)),ue(R.Slider,"warningTrack",Et(R.warning.main,.5));const K=La(R.background.default,.98);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",La(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-600")),ue(R.StepContent,"border",$("palette-grey-600")),ue(R.Switch,"defaultColor",$("palette-grey-300")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-600")),ue(R.Switch,"primaryDisabledColor",Et(R.primary.main,.55)),ue(R.Switch,"secondaryDisabledColor",Et(R.secondary.main,.55)),ue(R.Switch,"errorDisabledColor",Et(R.error.main,.55)),ue(R.Switch,"infoDisabledColor",Et(R.info.main,.55)),ue(R.Switch,"successDisabledColor",Et(R.success.main,.55)),ue(R.Switch,"warningDisabledColor",Et(R.warning.main,.55)),ue(R.TableCell,"border",Et(Fa(R.divider,1),.68)),ue(R.Tooltip,"bg",Fa(R.grey[700],.92))}Fo(R.background,"default"),Fo(R.background,"paper"),Fo(R.common,"background"),Fo(R.common,"onBackground"),Fo(R,"divider"),Object.keys(R).forEach(K=>{const X=R[K];X&&typeof X=="object"&&(X.main&&ue(R[K],"mainChannel",mi(gi(X.main))),X.light&&ue(R[K],"lightChannel",mi(gi(X.light))),X.dark&&ue(R[K],"darkChannel",mi(gi(X.dark))),X.contrastText&&ue(R[K],"contrastTextChannel",mi(gi(X.contrastText))),K==="text"&&(Fo(R[K],"primary"),Fo(R[K],"secondary")),K==="action"&&(X.active&&Fo(R[K],"active"),X.selected&&Fo(R[K],"selected")))})}),S=t.reduce((z,R)=>mn(z,R),S);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:bR(S)},{vars:O,generateThemeVars:A,generateStyleSheets:F}=Ux(S,C);return S.vars=O,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([z,R])=>{S[z]=R}),S.generateThemeVars=A,S.generateStyleSheets=F,S.generateSpacing=function(){return Km(u.spacing,uu(this))},S.getColorSchemeSelector=qx(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...ta,...u?.unstable_sxConfig},S.unstable_sx=function(R){return Ar({sx:R,theme:this})},S.toRuntimeSource=_g,S}function rp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:gu({...n===!0?{}:n.palette,mode:t})})}function Tg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",d=r?.[l],u={...r,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Od(e,...t);let f=n;"palette"in e||u[l]&&(u[l]!==!0?f=u[l].palette:l==="dark"&&(f={mode:"dark"}));const p=Od({...e,palette:f},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},rp(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},rp(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),_R({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}function xR(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function RR(e){return parseFloat(e)}const Ul=Tg();function Ns(){const e=Wl(Ul);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[Xi]||e}function Mt({props:e,name:t}){return yx({props:e,name:t,defaultTheme:Ul,themeId:Xi})}function kg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dn=e=>kg(e)&&e!=="classes",le=hx({themeId:Xi,defaultTheme:Ul,rootShouldForwardProp:Dn});function Eg(e){return D.jsx(Zm,{...e,defaultTheme:Ul,themeId:Xi})}process.env.NODE_ENV!=="production"&&(Eg.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function TR(e){return function(n){return D.jsx(Eg,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function kR(){return Qm}const lt=Wx;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ke(e){return Bx(e)}function ER(e){return Oe("MuiSvgIcon",e)}De("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const PR=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${be(t)}`,`fontSize${be(n)}`]};return Me(r,ER,o)},DR=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)}`]]}})(lt(({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}}]}))),Ai=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:y="0 0 24 24",...b}=o,w=k.isValidElement(r)&&r.type==="svg",g={...o,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:w},v={};f||(v.viewBox=y);const T=PR(g);return D.jsxs(DR,{as:l,className:Se(T.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...b,...w&&r.props,ownerState:g,children:[w?r.props.children:r,p?D.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Ai.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});Ai&&(Ai.muiName="SvgIcon");function an(e,t){function n(o,r){return D.jsx(Ai,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ai.muiName,k.memo(k.forwardRef(n))}var $a={exports:{}},_t={};/**
|
|
123
123
|
* @license React
|
|
124
124
|
* react-is.production.min.js
|
|
125
125
|
*
|
|
@@ -135,7 +135,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
135
135
|
*
|
|
136
136
|
* This source code is licensed under the MIT license found in the
|
|
137
137
|
* LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/var ip;function MR(){return ip||(ip=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),w=!1,g=!1,v=!1,T=!1,P=!1,x;x=Symbol.for("react.module.reference");function S(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===n||Q===r||P||Q===o||Q===u||Q===f||T||Q===b||w||g||v||typeof Q=="object"&&Q!==null&&(Q.$$typeof===y||Q.$$typeof===p||Q.$$typeof===i||Q.$$typeof===a||Q.$$typeof===d||Q.$$typeof===x||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 u:case f:return me;default:var Ce=me&&me.$$typeof;switch(Ce){case l:case a:case d:case y:case p:case i:return Ce;default:return fe}}case t:return fe}}}var O=a,A=i,F=e,z=d,R=n,$=y,K=p,X=t,q=r,Y=o,H=u,ae=f,N=!1,M=!1;function V(Q){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(Q){return M||(M=!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 j(Q){return C(Q)===d}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 W(Q){return C(Q)===u}function re(Q){return C(Q)===f}xt.ContextConsumer=O,xt.ContextProvider=A,xt.Element=F,xt.ForwardRef=z,xt.Fragment=R,xt.Lazy=$,xt.Memo=K,xt.Portal=X,xt.Profiler=q,xt.StrictMode=Y,xt.Suspense=H,xt.SuspenseList=ae,xt.isAsyncMode=V,xt.isConcurrentMode=B,xt.isContextConsumer=ne,xt.isContextProvider=oe,xt.isElement=se,xt.isForwardRef=j,xt.isFragment=J,xt.isLazy=ee,xt.isMemo=te,xt.isPortal=ce,xt.isProfiler=ie,xt.isStrictMode=he,xt.isSuspense=W,xt.isSuspenseList=re,xt.isValidElementType=S,xt.typeOf=C}()),xt}var ap;function IR(){return ap||(ap=1,process.env.NODE_ENV==="production"?$a.exports=OR():$a.exports=MR()),$a.exports}var yu=IR();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 Id(e,t){return Id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Id(e,t)}function vu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Id(e,t)}function NR(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function AR(e,t){e.classList?e.classList.add(t):NR(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function lp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function FR(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=lp(e.className,t):e.setAttribute("class",lp(e.className&&e.className.baseVal||"",t))}const cp={disabled:!1};var LR=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,$R=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 ul=Be.createContext(null);var Pg=function(t){return t.scrollTop},yi="unmounted",Tr="exited",kr="entering",as="entered",Nd="exiting",Qn=function(e){vu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,d;return i.appearStatus=null,o.in?l?(d=Tr,i.appearStatus=kr):d=as:o.unmountOnExit||o.mountOnEnter?d=yi:d=Tr,i.state={status:d},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===yi?{status:Tr}: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!==kr&&a!==as&&(i=kr):(a===kr||a===as)&&(i=Nd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:pi.findDOMNode(this);a&&Pg(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tr&&this.setState({status:yi})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,d=this.props.nodeRef?[l]:[pi.findDOMNode(this),l],u=d[0],f=d[1],p=this.getTimeouts(),y=l?p.appear:p.enter;if(!r&&!a||cp.disabled){this.safeSetState({status:as},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:kr},function(){i.props.onEntering(u,f),i.onTransitionEnd(y,function(){i.safeSetState({status:as},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:pi.findDOMNode(this);if(!i||cp.disabled){this.safeSetState({status:Tr},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Nd},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Tr},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:pi.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=d[0],f=d[1];this.props.addEndListener(u,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===yi)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=We(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Be.createElement(ul.Provider,{value:null},typeof a=="function"?a(r,l):Be.cloneElement(Be.Children.only(a),l))},t}(Be.Component);Qn.contextType=ul;Qn.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=LR;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 ns(){}Qn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ns,onEntering:ns,onEntered:ns,onExit:ns,onExiting:ns,onExited:ns};Qn.UNMOUNTED=yi;Qn.EXITED=Tr;Qn.ENTERING=kr;Qn.ENTERED=as;Qn.EXITING=Nd;var VR=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return AR(t,o)})},Qc=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return FR(t,o)})},bu=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(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1];o.removeClasses(f,"exit"),o.addClass(f,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,d)},o.onEntering=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.addClass(f,y,"active"),o.props.onEntering&&o.props.onEntering(l,d)},o.onEntered=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.removeClasses(f,y),o.addClass(f,y,"done"),o.props.onEntered&&o.props.onEntered(l,d)},o.onExit=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var d=o.resolveArguments(l),u=d[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,d){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,d]},o.getClassNames=function(l){var d=o.props.classNames,u=typeof d=="string",f=u&&d?d+"-":"",p=u?""+f+l:d[l],y=u?p+"-active":d[l+"Active"],b=u?p+"-done":d[l+"Done"];return{baseClassName:p,activeClassName:y,doneClassName:b}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],d=this.getClassNames("enter"),u=d.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&Pg(r),l&&(this.appliedClasses[i][a]=l,VR(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,d=a.active,u=a.done;this.appliedClasses[i]={},l&&Qc(r,l),d&&Qc(r,d),u&&Qc(r,u)},n.render=function(){var r=this.props;r.classNames;var i=We(r,["classNames"]);return Be.createElement(Qn,Z({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Be.Component);bu.defaultProps={classNames:""};bu.propTypes=process.env.NODE_ENV!=="production"?Z({},Qn.propTypes,{classNames:$R,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function jR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wu(e,t){var n=function(i){return t&&Be.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Be.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function BR(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var d in t){if(o[d])for(a=0;a<o[d].length;a++){var u=o[d][a];l[o[d][a]]=n(u)}l[d]=n(d)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function Er(e,t,n){return n[t]!=null?n[t]:e.props[t]}function WR(e,t){return wu(e.children,function(n){return Be.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Er(n,"appear",e),enter:Er(n,"enter",e),exit:Er(n,"exit",e)})})}function HR(e,t,n){var o=wu(e.children),r=BR(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(Be.isValidElement(a)){var l=i in t,d=i in o,u=t[i],f=Be.isValidElement(u)&&!u.props.in;d&&(!l||f)?r[i]=Be.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Er(a,"exit",e),enter:Er(a,"enter",e)}):!d&&l&&!f?r[i]=Be.cloneElement(a,{in:!1}):d&&l&&Be.isValidElement(u)&&(r[i]=Be.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Er(a,"exit",e),enter:Er(a,"enter",e)}))}}),r}var zR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},YR={component:"div",childFactory:function(t){return t}},ra=function(e){vu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(jR(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var a=i.children,l=i.handleExited,d=i.firstRender;return{children:d?WR(r,l):HR(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=wu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var d=Z({},l.children);return delete d[r.key],{children:d}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=We(r,["component","childFactory"]),d=this.state.contextValue,u=zR(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?Be.createElement(ul.Provider,{value:d},u):Be.createElement(ul.Provider,{value:d},Be.createElement(i,l,u))},t}(Be.Component);ra.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};ra.defaultProps=YR;const Dg=e=>e.scrollTop;function hl(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 UR(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 qR=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Me(i,UR,r)},GR=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}`]]}})(lt(({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)"}}]}))),As=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiPaper"}),r=Ns(),{className:i,component:a="div",elevation:l=1,square:d=!1,variant:u="elevation",...f}=o,p={...o,component:a,elevation:l,square:d,variant:u},y=qR(p);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
138
|
+
*/var ip;function MR(){return ip||(ip=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),w=!1,g=!1,v=!1,T=!1,P=!1,x;x=Symbol.for("react.module.reference");function S(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===n||Q===r||P||Q===o||Q===u||Q===f||T||Q===b||w||g||v||typeof Q=="object"&&Q!==null&&(Q.$$typeof===y||Q.$$typeof===p||Q.$$typeof===i||Q.$$typeof===a||Q.$$typeof===d||Q.$$typeof===x||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 u:case f:return me;default:var Ce=me&&me.$$typeof;switch(Ce){case l:case a:case d:case y:case p:case i:return Ce;default:return fe}}case t:return fe}}}var O=a,A=i,F=e,z=d,R=n,$=y,K=p,X=t,q=r,Y=o,H=u,ae=f,N=!1,M=!1;function V(Q){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(Q){return M||(M=!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 j(Q){return C(Q)===d}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 W(Q){return C(Q)===u}function re(Q){return C(Q)===f}xt.ContextConsumer=O,xt.ContextProvider=A,xt.Element=F,xt.ForwardRef=z,xt.Fragment=R,xt.Lazy=$,xt.Memo=K,xt.Portal=X,xt.Profiler=q,xt.StrictMode=Y,xt.Suspense=H,xt.SuspenseList=ae,xt.isAsyncMode=V,xt.isConcurrentMode=B,xt.isContextConsumer=ne,xt.isContextProvider=oe,xt.isElement=se,xt.isForwardRef=j,xt.isFragment=J,xt.isLazy=ee,xt.isMemo=te,xt.isPortal=ce,xt.isProfiler=ie,xt.isStrictMode=he,xt.isSuspense=W,xt.isSuspenseList=re,xt.isValidElementType=S,xt.typeOf=C}()),xt}var ap;function IR(){return ap||(ap=1,process.env.NODE_ENV==="production"?$a.exports=OR():$a.exports=MR()),$a.exports}var yu=IR();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 Id(e,t){return Id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Id(e,t)}function vu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Id(e,t)}function NR(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function AR(e,t){e.classList?e.classList.add(t):NR(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function lp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function FR(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=lp(e.className,t):e.setAttribute("class",lp(e.className&&e.className.baseVal||"",t))}const cp={disabled:!1};var LR=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,$R=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 ul=Be.createContext(null);var Pg=function(t){return t.scrollTop},yi="unmounted",Tr="exited",kr="entering",ls="entered",Nd="exiting",Qn=function(e){vu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,d;return i.appearStatus=null,o.in?l?(d=Tr,i.appearStatus=kr):d=ls:o.unmountOnExit||o.mountOnEnter?d=yi:d=Tr,i.state={status:d},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===yi?{status:Tr}: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!==kr&&a!==ls&&(i=kr):(a===kr||a===ls)&&(i=Nd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:pi.findDOMNode(this);a&&Pg(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tr&&this.setState({status:yi})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,d=this.props.nodeRef?[l]:[pi.findDOMNode(this),l],u=d[0],f=d[1],p=this.getTimeouts(),y=l?p.appear:p.enter;if(!r&&!a||cp.disabled){this.safeSetState({status:ls},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:kr},function(){i.props.onEntering(u,f),i.onTransitionEnd(y,function(){i.safeSetState({status:ls},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:pi.findDOMNode(this);if(!i||cp.disabled){this.safeSetState({status:Tr},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Nd},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Tr},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:pi.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=d[0],f=d[1];this.props.addEndListener(u,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===yi)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=We(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Be.createElement(ul.Provider,{value:null},typeof a=="function"?a(r,l):Be.cloneElement(Be.Children.only(a),l))},t}(Be.Component);Qn.contextType=ul;Qn.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=LR;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 os(){}Qn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:os,onEntering:os,onEntered:os,onExit:os,onExiting:os,onExited:os};Qn.UNMOUNTED=yi;Qn.EXITED=Tr;Qn.ENTERING=kr;Qn.ENTERED=ls;Qn.EXITING=Nd;var VR=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return AR(t,o)})},Qc=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return FR(t,o)})},bu=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(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1];o.removeClasses(f,"exit"),o.addClass(f,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,d)},o.onEntering=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.addClass(f,y,"active"),o.props.onEntering&&o.props.onEntering(l,d)},o.onEntered=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.removeClasses(f,y),o.addClass(f,y,"done"),o.props.onEntered&&o.props.onEntered(l,d)},o.onExit=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var d=o.resolveArguments(l),u=d[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,d){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,d]},o.getClassNames=function(l){var d=o.props.classNames,u=typeof d=="string",f=u&&d?d+"-":"",p=u?""+f+l:d[l],y=u?p+"-active":d[l+"Active"],b=u?p+"-done":d[l+"Done"];return{baseClassName:p,activeClassName:y,doneClassName:b}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],d=this.getClassNames("enter"),u=d.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&Pg(r),l&&(this.appliedClasses[i][a]=l,VR(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,d=a.active,u=a.done;this.appliedClasses[i]={},l&&Qc(r,l),d&&Qc(r,d),u&&Qc(r,u)},n.render=function(){var r=this.props;r.classNames;var i=We(r,["classNames"]);return Be.createElement(Qn,Z({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Be.Component);bu.defaultProps={classNames:""};bu.propTypes=process.env.NODE_ENV!=="production"?Z({},Qn.propTypes,{classNames:$R,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function jR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wu(e,t){var n=function(i){return t&&Be.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Be.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function BR(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var d in t){if(o[d])for(a=0;a<o[d].length;a++){var u=o[d][a];l[o[d][a]]=n(u)}l[d]=n(d)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function Pr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function WR(e,t){return wu(e.children,function(n){return Be.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Pr(n,"appear",e),enter:Pr(n,"enter",e),exit:Pr(n,"exit",e)})})}function HR(e,t,n){var o=wu(e.children),r=BR(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(Be.isValidElement(a)){var l=i in t,d=i in o,u=t[i],f=Be.isValidElement(u)&&!u.props.in;d&&(!l||f)?r[i]=Be.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Pr(a,"exit",e),enter:Pr(a,"enter",e)}):!d&&l&&!f?r[i]=Be.cloneElement(a,{in:!1}):d&&l&&Be.isValidElement(u)&&(r[i]=Be.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Pr(a,"exit",e),enter:Pr(a,"enter",e)}))}}),r}var zR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},YR={component:"div",childFactory:function(t){return t}},ra=function(e){vu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(jR(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var a=i.children,l=i.handleExited,d=i.firstRender;return{children:d?WR(r,l):HR(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=wu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var d=Z({},l.children);return delete d[r.key],{children:d}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=We(r,["component","childFactory"]),d=this.state.contextValue,u=zR(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?Be.createElement(ul.Provider,{value:d},u):Be.createElement(ul.Provider,{value:d},Be.createElement(i,l,u))},t}(Be.Component);ra.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};ra.defaultProps=YR;const Dg=e=>e.scrollTop;function hl(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 UR(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 qR=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Me(i,UR,r)},GR=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}`]]}})(lt(({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)"}}]}))),As=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiPaper"}),r=Ns(),{className:i,component:a="div",elevation:l=1,square:d=!1,variant:u="elevation",...f}=o,p={...o,component:a,elevation:l,square:d,variant:u},y=qR(p);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
139
139
|
`)),D.jsx(GR,{as:a,ownerState:p,className:Se(y.root,i),ref:n,...f,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ot("#fff",Md(l))}, ${ot("#fff",Md(l))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(As.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:fr(yg,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:l,...d}=t,{component:u,slots:f={[e]:void 0},slotProps:p={[e]:void 0},...y}=i,b=f[e]||o,w=Yl(p[e],r),{props:{component:g,...v},internalRef:T}=wg({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:w}),P=at(T,w?.ref,t.ref),x=a?a(v):{},S={...r,...x},C=e==="root"?g||u:g,O=vg(b,{...e==="root"&&!u&&!f[e]&&l,...e!=="root"&&!f[e]&&l,...v,...C&&{as:C},ref:P},S);return Object.keys(x).forEach(A=>{delete O[A]}),[b,O]}class fl{static create(){return new fl}static use(){const t=hg(fl.create).current,[n,o]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=o,k.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=XR(),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 KR(){return fl.use()}function XR(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Og(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:l,onExited:d,timeout:u}=e,[f,p]=k.useState(!1),y=Se(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},w=Se(n.child,f&&n.childLeaving,o&&n.childPulsate);return!l&&!f&&p(!0),k.useEffect(()=>{if(!l&&d!=null){const g=setTimeout(d,u);return()=>{clearTimeout(g)}}},[d,l,u]),D.jsx("span",{className:y,style:b,children:D.jsx("span",{className:w})})}process.env.NODE_ENV!=="production"&&(Og.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 zn=De("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ad=550,ZR=80,QR=Is`
|
|
140
140
|
0% {
|
|
141
141
|
transform: scale(0);
|
|
@@ -210,13 +210,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
210
210
|
animation-delay: 200ms;
|
|
211
211
|
}
|
|
212
212
|
`,Mg=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...l}=o,[d,u]=k.useState([]),f=k.useRef(0),p=k.useRef(null);k.useEffect(()=>{p.current&&(p.current(),p.current=null)},[d]);const y=k.useRef(!1),b=fg(),w=k.useRef(null),g=k.useRef(null),v=k.useCallback(S=>{const{pulsate:C,rippleX:O,rippleY:A,rippleSize:F,cb:z}=S;u(R=>[...R,D.jsx(nT,{classes:{ripple:Se(i.ripple,zn.ripple),rippleVisible:Se(i.rippleVisible,zn.rippleVisible),ripplePulsate:Se(i.ripplePulsate,zn.ripplePulsate),child:Se(i.child,zn.child),childLeaving:Se(i.childLeaving,zn.childLeaving),childPulsate:Se(i.childPulsate,zn.childPulsate)},timeout:Ad,pulsate:C,rippleX:O,rippleY:A,rippleSize:F},f.current)]),f.current+=1,p.current=z},[i]),T=k.useCallback((S={},C={},O=()=>{})=>{const{pulsate:A=!1,center:F=r||C.pulsate,fakeElement:z=!1}=C;if(S?.type==="mousedown"&&y.current){y.current=!1;return}S?.type==="touchstart"&&(y.current=!0);const R=z?null:g.current,$=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let K,X,q;if(F||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)K=Math.round($.width/2),X=Math.round($.height/2);else{const{clientX:Y,clientY:H}=S.touches&&S.touches.length>0?S.touches[0]:S;K=Math.round(Y-$.left),X=Math.round(H-$.top)}if(F)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,H=Math.max(Math.abs((R?R.clientHeight:0)-X),X)*2+2;q=Math.sqrt(Y**2+H**2)}S?.touches?w.current===null&&(w.current=()=>{v({pulsate:A,rippleX:K,rippleY:X,rippleSize:q,cb:O})},b.start(ZR,()=>{w.current&&(w.current(),w.current=null)})):v({pulsate:A,rippleX:K,rippleY:X,rippleSize:q,cb:O})},[r,v,b]),P=k.useCallback(()=>{T({},{pulsate:!0})},[T]),x=k.useCallback((S,C)=>{if(b.clear(),S?.type==="touchend"&&w.current){w.current(),w.current=null,b.start(0,()=>{x(S,C)});return}w.current=null,u(O=>O.length>0?O.slice(1):O),p.current=C},[b]);return k.useImperativeHandle(n,()=>({pulsate:P,start:T,stop:x}),[P,T,x]),D.jsx(tT,{className:Se(zn.root,i.root,a),ref:g,...l,children:D.jsx(ra,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(Mg.propTypes={center:s.bool,classes:s.object,className:s.string});function oT(e){return Oe("MuiButtonBase",e)}const rT=De("MuiButtonBase",["root","disabled","focusVisible"]),sT=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Me({root:["root",t&&"disabled",n&&"focusVisible"]},oT,r);return n&&o&&(a.root+=` ${o}`),a},iT=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"},[`&.${rT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dr=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:l,component:d="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:y=!1,focusVisibleClassName:b,LinkComponent:w="a",onBlur:g,onClick:v,onContextMenu:T,onDragLeave:P,onFocus:x,onFocusVisible:S,onKeyDown:C,onKeyUp:O,onMouseDown:A,onMouseLeave:F,onMouseUp:z,onTouchEnd:R,onTouchMove:$,onTouchStart:K,tabIndex:X=0,TouchRippleProps:q,touchRippleRef:Y,type:H,...ae}=o,N=k.useRef(null),M=KR(),V=at(M.ref,Y),[B,ne]=k.useState(!1);u&&B&&ne(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{ne(!0),N.current.focus()}}),[]);const oe=M.shouldMount&&!f&&!u;k.useEffect(()=>{B&&y&&!f&&M.pulsate()},[f,y,B,M]);function se(Pe,ft,Kt=p){return Te(it=>(ft&&ft(it),Kt||M[Pe](it),!0))}const j=se("start",A),J=se("stop",T),ee=se("stop",P),te=se("stop",z),ce=se("stop",Pe=>{B&&Pe.preventDefault(),F&&F(Pe)}),ie=se("start",K),he=se("stop",R),W=se("stop",$),re=se("stop",Pe=>{Kf(Pe.target)||ne(!1),g&&g(Pe)},!1),Q=Te(Pe=>{N.current||(N.current=Pe.currentTarget),Kf(Pe.target)&&(ne(!0),S&&S(Pe)),x&&x(Pe)}),fe=()=>{const Pe=N.current;return d&&d!=="button"&&!(Pe.tagName==="A"&&Pe.href)},me=Te(Pe=>{y&&!Pe.repeat&&B&&Pe.key===" "&&M.stop(Pe,()=>{M.start(Pe)}),Pe.target===Pe.currentTarget&&fe()&&Pe.key===" "&&Pe.preventDefault(),C&&C(Pe),Pe.target===Pe.currentTarget&&fe()&&Pe.key==="Enter"&&!u&&(Pe.preventDefault(),v&&v(Pe))}),Ce=Te(Pe=>{y&&Pe.key===" "&&B&&!Pe.defaultPrevented&&M.stop(Pe,()=>{M.pulsate(Pe)}),O&&O(Pe),v&&Pe.target===Pe.currentTarget&&fe()&&Pe.key===" "&&!Pe.defaultPrevented&&v(Pe)});let ve=d;ve==="button"&&(ae.href||ae.to)&&(ve=w);const xe={};ve==="button"?(xe.type=H===void 0?"button":H,xe.disabled=u):(!ae.href&&!ae.to&&(xe.role="button"),u&&(xe["aria-disabled"]=u));const $e=at(n,N),Ae={...o,centerRipple:i,component:d,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:y,tabIndex:X,focusVisible:B},st=sT(Ae);return D.jsxs(iT,{as:ve,className:Se(st.root,l),ownerState:Ae,onBlur:re,onClick:v,onContextMenu:J,onFocus:Q,onKeyDown:me,onKeyUp:Ce,onMouseDown:j,onMouseLeave:ce,onMouseUp:te,onDragLeave:ee,onTouchEnd:he,onTouchMove:W,onTouchStart:ie,ref:$e,tabIndex:u?-1:X,type:H,...xe,...ae,children:[a,oe?D.jsx(Mg,{ref:V,center:i,...q}):null]})});process.env.NODE_ENV!=="production"&&(dr.propTypes={action:Bt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:zl,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 aT(e){return typeof e.main=="string"}function lT(e,t=[]){if(!aT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function dn(e=[]){return([,t])=>t&&lT(t,e)}function cT(e){return Oe("MuiAlert",e)}const dp=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 dT(e){return Oe("MuiIconButton",e)}const uT=De("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),hT=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 Me(a,dT,t)},fT=le(dr,{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)}`]]}})(lt(({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})`:ot(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}}]})),lt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot((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)}}],[`&.${uT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Fs=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiIconButton"}),{edge:r=!1,children:i,className:a,color:l="default",disabled:d=!1,disableFocusRipple:u=!1,size:f="medium",...p}=o,y={...o,edge:r,color:l,disabled:d,disableFocusRipple:u,size:f},b=hT(y);return D.jsx(fT,{className:Se(b.root,a),centerRipple:!0,focusRipple:!u,disabled:d,ref:n,...p,ownerState:y,children:i})});process.env.NODE_ENV!=="production"&&(Fs.propTypes={children:fr(s.node,e=>k.Children.toArray(e.children).some(n=>k.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 pT=an(D.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"),mT=an(D.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),gT=an(D.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"),yT=an(D.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"),vT=an(D.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"),bT=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 Me(i,cT,r)},wT=le(As,{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)}`]]}})(lt(({theme:e})=>{const t=e.palette.mode==="light"?Ii:Ni,n=e.palette.mode==="light"?Ni:Ii;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(dn(["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),[`& .${dp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(dn(["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}`,[`& .${dp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(dn(["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)}}}))]}})),CT=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),ST=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),up=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}),hp={success:D.jsx(pT,{fontSize:"inherit"}),warning:D.jsx(mT,{fontSize:"inherit"}),error:D.jsx(gT,{fontSize:"inherit"}),info:D.jsx(yT,{fontSize:"inherit"})},Ig=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiAlert"}),{action:r,children:i,className:a,closeText:l="Close",color:d,components:u={},componentsProps:f={},icon:p,iconMapping:y=hp,onClose:b,role:w="alert",severity:g="success",slotProps:v={},slots:T={},variant:P="standard",...x}=o,S={...o,color:d,severity:g,variant:P,colorSeverity:d||g},C=bT(S),O={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...T},slotProps:{...f,...v}},[A,F]=Rn("closeButton",{elementType:Fs,externalForwardedProps:O,ownerState:S}),[z,R]=Rn("closeIcon",{elementType:vT,externalForwardedProps:O,ownerState:S});return D.jsxs(wT,{role:w,elevation:0,ownerState:S,className:Se(C.root,a),ref:n,...x,children:[p!==!1?D.jsx(CT,{ownerState:S,className:C.icon,children:p||y[g]||hp[g]}):null,D.jsx(ST,{ownerState:S,className:C.message,children:i}),r!=null?D.jsx(up,{ownerState:S,className:C.action,children:r}):null,r==null&&b?D.jsx(up,{ownerState:S,className:C.action,children:D.jsx(A,{size:"small","aria-label":l,title:l,color:"inherit",onClick:b,...F,children:D.jsx(z,{fontSize:"small",...R})})}):null]})});process.env.NODE_ENV!=="production"&&(Ig.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 _T(e){return Oe("MuiTypography",e)}const fp=De("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),xT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},RT=kR(),TT=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${be(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Me(l,_T,a)},kT=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]}})(lt(({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(dn()).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}}]}))),pp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tn=k.forwardRef(function(t,n){const{color:o,...r}=Ke({props:t,name:"MuiTypography"}),i=!xT[o],a=RT({...r,...i&&{color:o}}),{align:l="inherit",className:d,component:u,gutterBottom:f=!1,noWrap:p=!1,paragraph:y=!1,variant:b="body1",variantMapping:w=pp,...g}=a,v={...a,align:l,color:o,className:d,component:u,gutterBottom:f,noWrap:p,paragraph:y,variant:b,variantMapping:w},T=u||(y?"p":w[b]||pp[b])||"span",P=TT(v);return D.jsx(kT,{as:T,ref:n,className:Se(P.root,d),...g,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...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 kn="top",Gn="bottom",Kn="right",En="left",Cu="auto",sa=[kn,Gn,Kn,En],xs="start",Fi="end",ET="clippingParents",Ng="viewport",Qs="popper",PT="reference",mp=sa.reduce(function(e,t){return e.concat([t+"-"+xs,t+"-"+Fi])},[]),Ag=[].concat(sa,[Cu]).reduce(function(e,t){return e.concat([t,t+"-"+xs,t+"-"+Fi])},[]),DT="beforeRead",OT="read",MT="afterRead",IT="beforeMain",NT="main",AT="afterMain",FT="beforeWrite",LT="write",$T="afterWrite",VT=[DT,OT,MT,IT,NT,AT,FT,LT,$T];function Ro(e){return e?(e.nodeName||"").toLowerCase():null}function Ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ar(e){var t=Ln(e).Element;return e instanceof t||e instanceof Element}function qn(e){var t=Ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Su(e){if(typeof ShadowRoot>"u")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function jT(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];!qn(i)||!Ro(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function BT(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]),l=a.reduce(function(d,u){return d[u]="",d},{});!qn(r)||!Ro(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(d){r.removeAttribute(d)}))})}}const WT={name:"applyStyles",enabled:!0,phase:"write",fn:jT,effect:BT,requires:["computeStyles"]};function So(e){return e.split("-")[0]}var Or=Math.max,pl=Math.min,Rs=Math.round;function Fd(){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 Fg(){return!/^((?!chrome|android).)*safari/i.test(Fd())}function Ts(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&qn(e)&&(r=e.offsetWidth>0&&Rs(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Rs(o.height)/e.offsetHeight||1);var a=Ar(e)?Ln(e):window,l=a.visualViewport,d=!Fg()&&n,u=(o.left+(d&&l?l.offsetLeft:0))/r,f=(o.top+(d&&l?l.offsetTop:0))/i,p=o.width/r,y=o.height/i;return{width:p,height:y,top:f,right:u+p,bottom:f+y,left:u,x:u,y:f}}function _u(e){var t=Ts(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 Lg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Su(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ko(e){return Ln(e).getComputedStyle(e)}function HT(e){return["table","td","th"].indexOf(Ro(e))>=0}function mr(e){return((Ar(e)?e.ownerDocument:e.document)||window.document).documentElement}function ql(e){return Ro(e)==="html"?e:e.assignedSlot||e.parentNode||(Su(e)?e.host:null)||mr(e)}function gp(e){return!qn(e)||Ko(e).position==="fixed"?null:e.offsetParent}function zT(e){var t=/firefox/i.test(Fd()),n=/Trident/i.test(Fd());if(n&&qn(e)){var o=Ko(e);if(o.position==="fixed")return null}var r=ql(e);for(Su(r)&&(r=r.host);qn(r)&&["html","body"].indexOf(Ro(r))<0;){var i=Ko(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 ia(e){for(var t=Ln(e),n=gp(e);n&&HT(n)&&Ko(n).position==="static";)n=gp(n);return n&&(Ro(n)==="html"||Ro(n)==="body"&&Ko(n).position==="static")?t:n||zT(e)||t}function xu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ci(e,t,n){return Or(e,pl(t,n))}function YT(e,t,n){var o=Ci(e,t,n);return o>n?n:o}function $g(){return{top:0,right:0,bottom:0,left:0}}function Vg(e){return Object.assign({},$g(),e)}function jg(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var UT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Vg(typeof t!="number"?t:jg(t,sa))};function qT(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=So(n.placement),d=xu(l),u=[En,Kn].indexOf(l)>=0,f=u?"height":"width";if(!(!i||!a)){var p=UT(r.padding,n),y=_u(i),b=d==="y"?kn:En,w=d==="y"?Gn:Kn,g=n.rects.reference[f]+n.rects.reference[d]-a[d]-n.rects.popper[f],v=a[d]-n.rects.reference[d],T=ia(i),P=T?d==="y"?T.clientHeight||0:T.clientWidth||0:0,x=g/2-v/2,S=p[b],C=P-y[f]-p[w],O=P/2-y[f]/2+x,A=Ci(S,O,C),F=d;n.modifiersData[o]=(t={},t[F]=A,t.centerOffset=A-O,t)}}function GT(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)||Lg(t.elements.popper,r)&&(t.elements.arrow=r))}const KT={name:"arrow",enabled:!0,phase:"main",fn:qT,effect:GT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ks(e){return e.split("-")[1]}var XT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZT(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Rs(n*r)/r||0,y:Rs(o*r)/r||0}}function yp(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,d=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,y=a.x,b=y===void 0?0:y,w=a.y,g=w===void 0?0:w,v=typeof f=="function"?f({x:b,y:g}):{x:b,y:g};b=v.x,g=v.y;var T=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),x=En,S=kn,C=window;if(u){var O=ia(n),A="clientHeight",F="clientWidth";if(O===Ln(n)&&(O=mr(n),Ko(O).position!=="static"&&l==="absolute"&&(A="scrollHeight",F="scrollWidth")),O=O,r===kn||(r===En||r===Kn)&&i===Fi){S=Gn;var z=p&&O===C&&C.visualViewport?C.visualViewport.height:O[A];g-=z-o.height,g*=d?1:-1}if(r===En||(r===kn||r===Gn)&&i===Fi){x=Kn;var R=p&&O===C&&C.visualViewport?C.visualViewport.width:O[F];b-=R-o.width,b*=d?1:-1}}var $=Object.assign({position:l},u&&XT),K=f===!0?ZT({x:b,y:g},Ln(n)):{x:b,y:g};if(b=K.x,g=K.y,d){var X;return Object.assign({},$,(X={},X[S]=P?"0":"",X[x]=T?"0":"",X.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+g+"px)":"translate3d("+b+"px, "+g+"px, 0)",X))}return Object.assign({},$,(t={},t[S]=P?g+"px":"",t[x]=T?b+"px":"",t.transform="",t))}function QT(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,l=n.roundOffsets,d=l===void 0?!0:l,u={placement:So(t.placement),variation:ks(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,yp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const JT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:QT,data:{}};var Va={passive:!0};function ek(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,d=Ln(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",n.update,Va)}),l&&d.addEventListener("resize",n.update,Va),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Va)}),l&&d.removeEventListener("resize",n.update,Va)}}const tk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ek,data:{}};var nk={left:"right",right:"left",bottom:"top",top:"bottom"};function el(e){return e.replace(/left|right|bottom|top/g,function(t){return nk[t]})}var ok={start:"end",end:"start"};function vp(e){return e.replace(/start|end/g,function(t){return ok[t]})}function Ru(e){var t=Ln(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Tu(e){return Ts(mr(e)).left+Ru(e).scrollLeft}function rk(e,t){var n=Ln(e),o=mr(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,d=0;if(r){i=r.width,a=r.height;var u=Fg();(u||!u&&t==="fixed")&&(l=r.offsetLeft,d=r.offsetTop)}return{width:i,height:a,x:l+Tu(e),y:d}}function sk(e){var t,n=mr(e),o=Ru(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Or(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Or(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Tu(e),d=-o.scrollTop;return Ko(r||n).direction==="rtl"&&(l+=Or(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:d}}function ku(e){var t=Ko(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Bg(e){return["html","body","#document"].indexOf(Ro(e))>=0?e.ownerDocument.body:qn(e)&&ku(e)?e:Bg(ql(e))}function Si(e,t){var n;t===void 0&&(t=[]);var o=Bg(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Ln(o),a=r?[i].concat(i.visualViewport||[],ku(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(Si(ql(a)))}function Ld(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ik(e,t){var n=Ts(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 bp(e,t,n){return t===Ng?Ld(rk(e,n)):Ar(t)?ik(t,n):Ld(sk(mr(e)))}function ak(e){var t=Si(ql(e)),n=["absolute","fixed"].indexOf(Ko(e).position)>=0,o=n&&qn(e)?ia(e):e;return Ar(o)?t.filter(function(r){return Ar(r)&&Lg(r,o)&&Ro(r)!=="body"}):[]}function lk(e,t,n,o){var r=t==="clippingParents"?ak(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(d,u){var f=bp(e,u,o);return d.top=Or(f.top,d.top),d.right=pl(f.right,d.right),d.bottom=pl(f.bottom,d.bottom),d.left=Or(f.left,d.left),d},bp(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wg(e){var t=e.reference,n=e.element,o=e.placement,r=o?So(o):null,i=o?ks(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(r){case kn:d={x:a,y:t.y-n.height};break;case Gn:d={x:a,y:t.y+t.height};break;case Kn:d={x:t.x+t.width,y:l};break;case En:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var u=r?xu(r):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case xs:d[u]=d[u]-(t[f]/2-n[f]/2);break;case Fi:d[u]=d[u]+(t[f]/2-n[f]/2);break}}return d}function Li(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,l=n.boundary,d=l===void 0?ET:l,u=n.rootBoundary,f=u===void 0?Ng:u,p=n.elementContext,y=p===void 0?Qs:p,b=n.altBoundary,w=b===void 0?!1:b,g=n.padding,v=g===void 0?0:g,T=Vg(typeof v!="number"?v:jg(v,sa)),P=y===Qs?PT:Qs,x=e.rects.popper,S=e.elements[w?P:y],C=lk(Ar(S)?S:S.contextElement||mr(e.elements.popper),d,f,a),O=Ts(e.elements.reference),A=Wg({reference:O,element:x,placement:r}),F=Ld(Object.assign({},x,A)),z=y===Qs?F:O,R={top:C.top-z.top+T.top,bottom:z.bottom-C.bottom+T.bottom,left:C.left-z.left+T.left,right:z.right-C.right+T.right},$=e.modifiersData.offset;if(y===Qs&&$){var K=$[r];Object.keys(R).forEach(function(X){var q=[Kn,Gn].indexOf(X)>=0?1:-1,Y=[kn,Gn].indexOf(X)>=0?"y":"x";R[X]+=K[Y]*q})}return R}function ck(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,u=d===void 0?Ag:d,f=ks(o),p=f?l?mp:mp.filter(function(w){return ks(w)===f}):sa,y=p.filter(function(w){return u.indexOf(w)>=0});y.length===0&&(y=p);var b=y.reduce(function(w,g){return w[g]=Li(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[So(g)],w},{});return Object.keys(b).sort(function(w,g){return b[w]-b[g]})}function dk(e){if(So(e)===Cu)return[];var t=el(e);return[vp(e),t,vp(t)]}function uk(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,l=a===void 0?!0:a,d=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,w=b===void 0?!0:b,g=n.allowedAutoPlacements,v=t.options.placement,T=So(v),P=T===v,x=d||(P||!w?[el(v)]:dk(v)),S=[v].concat(x).reduce(function(se,j){return se.concat(So(j)===Cu?ck(t,{placement:j,boundary:f,rootBoundary:p,padding:u,flipVariations:w,allowedAutoPlacements:g}):j)},[]),C=t.rects.reference,O=t.rects.popper,A=new Map,F=!0,z=S[0],R=0;R<S.length;R++){var $=S[R],K=So($),X=ks($)===xs,q=[kn,Gn].indexOf(K)>=0,Y=q?"width":"height",H=Li(t,{placement:$,boundary:f,rootBoundary:p,altBoundary:y,padding:u}),ae=q?X?Kn:En:X?Gn:kn;C[Y]>O[Y]&&(ae=el(ae));var N=el(ae),M=[];if(i&&M.push(H[K]<=0),l&&M.push(H[ae]<=0,H[N]<=0),M.every(function(se){return se})){z=$,F=!1;break}A.set($,M)}if(F)for(var V=w?3:1,B=function(j){var J=S.find(function(ee){var te=A.get(ee);if(te)return te.slice(0,j).every(function(ce){return ce})});if(J)return z=J,"break"},ne=V;ne>0;ne--){var oe=B(ne);if(oe==="break")break}t.placement!==z&&(t.modifiersData[o]._skip=!0,t.placement=z,t.reset=!0)}}const hk={name:"flip",enabled:!0,phase:"main",fn:uk,requiresIfExists:["offset"],data:{_skip:!1}};function wp(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 Cp(e){return[kn,Kn,Gn,En].some(function(t){return e[t]>=0})}function fk(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Li(t,{elementContext:"reference"}),l=Li(t,{altBoundary:!0}),d=wp(a,o),u=wp(l,r,i),f=Cp(d),p=Cp(u);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const pk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fk};function mk(e,t,n){var o=So(e),r=[En,kn].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[En,Kn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function gk(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=Ag.reduce(function(f,p){return f[p]=mk(p,t.rects,i),f},{}),l=a[t.placement],d=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const yk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gk};function vk(e){var t=e.state,n=e.name;t.modifiersData[n]=Wg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bk={name:"popperOffsets",enabled:!0,phase:"read",fn:vk,data:{}};function wk(e){return e==="x"?"y":"x"}function Ck(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,d=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,y=n.tether,b=y===void 0?!0:y,w=n.tetherOffset,g=w===void 0?0:w,v=Li(t,{boundary:d,rootBoundary:u,padding:p,altBoundary:f}),T=So(t.placement),P=ks(t.placement),x=!P,S=xu(T),C=wk(S),O=t.modifiersData.popperOffsets,A=t.rects.reference,F=t.rects.popper,z=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,K={x:0,y:0};if(O){if(i){var X,q=S==="y"?kn:En,Y=S==="y"?Gn:Kn,H=S==="y"?"height":"width",ae=O[S],N=ae+v[q],M=ae-v[Y],V=b?-F[H]/2:0,B=P===xs?A[H]:F[H],ne=P===xs?-F[H]:-A[H],oe=t.elements.arrow,se=b&&oe?_u(oe):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$g(),J=j[q],ee=j[Y],te=Ci(0,A[H],se[H]),ce=x?A[H]/2-V-te-J-R.mainAxis:B-te-J-R.mainAxis,ie=x?-A[H]/2+V+te+ee+R.mainAxis:ne+te+ee+R.mainAxis,he=t.elements.arrow&&ia(t.elements.arrow),W=he?S==="y"?he.clientTop||0:he.clientLeft||0:0,re=(X=$?.[S])!=null?X:0,Q=ae+ce-re-W,fe=ae+ie-re,me=Ci(b?pl(N,Q):N,ae,b?Or(M,fe):M);O[S]=me,K[S]=me-ae}if(l){var Ce,ve=S==="x"?kn:En,xe=S==="x"?Gn:Kn,$e=O[C],Ae=C==="y"?"height":"width",st=$e+v[ve],Pe=$e-v[xe],ft=[kn,En].indexOf(T)!==-1,Kt=(Ce=$?.[C])!=null?Ce:0,it=ft?st:$e-A[Ae]-F[Ae]-Kt+R.altAxis,Yt=ft?$e+A[Ae]+F[Ae]-Kt-R.altAxis:Pe,Xt=b&&ft?YT(it,$e,Yt):Ci(b?it:st,$e,b?Yt:Pe);O[C]=Xt,K[C]=Xt-$e}t.modifiersData[o]=K}}const Sk={name:"preventOverflow",enabled:!0,phase:"main",fn:Ck,requiresIfExists:["offset"]};function _k(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xk(e){return e===Ln(e)||!qn(e)?Ru(e):_k(e)}function Rk(e){var t=e.getBoundingClientRect(),n=Rs(t.width)/e.offsetWidth||1,o=Rs(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Tk(e,t,n){n===void 0&&(n=!1);var o=qn(t),r=qn(t)&&Rk(t),i=mr(t),a=Ts(e,r,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&((Ro(t)!=="body"||ku(i))&&(l=xk(t)),qn(t)?(d=Ts(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=Tu(i))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function kk(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(l){if(!n.has(l)){var d=t.get(l);d&&r(d)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function Ek(e){var t=kk(e);return VT.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Pk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Dk(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 Sp={placement:"bottom",modifiers:[],strategy:"absolute"};function _p(){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 Ok(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Sp:r;return function(l,d,u){u===void 0&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Sp,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},p=[],y=!1,b={state:f,setOptions:function(T){var P=typeof T=="function"?T(f.options):T;g(),f.options=Object.assign({},i,f.options,P),f.scrollParents={reference:Ar(l)?Si(l):l.contextElement?Si(l.contextElement):[],popper:Si(d)};var x=Ek(Dk([].concat(o,f.options.modifiers)));return f.orderedModifiers=x.filter(function(S){return S.enabled}),w(),b.update()},forceUpdate:function(){if(!y){var T=f.elements,P=T.reference,x=T.popper;if(_p(P,x)){f.rects={reference:Tk(P,ia(x),f.options.strategy==="fixed"),popper:_u(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(R){return f.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var C=f.orderedModifiers[S],O=C.fn,A=C.options,F=A===void 0?{}:A,z=C.name;typeof O=="function"&&(f=O({state:f,options:F,name:z,instance:b})||f)}}}},update:Pk(function(){return new Promise(function(v){b.forceUpdate(),v(f)})}),destroy:function(){g(),y=!0}};if(!_p(l,d))return b;b.setOptions(u).then(function(v){!y&&u.onFirstUpdate&&u.onFirstUpdate(v)});function w(){f.orderedModifiers.forEach(function(v){var T=v.name,P=v.options,x=P===void 0?{}:P,S=v.effect;if(typeof S=="function"){var C=S({state:f,name:T,instance:b,options:x}),O=function(){};p.push(C||O)}})}function g(){p.forEach(function(v){return v()}),p=[]}return b}}var Mk=[tk,bk,JT,WT,yk,hk,Sk,KT,pk],Ik=Ok({defaultModifiers:Mk});function Nk(e){return typeof e=="function"?e():e}const $i=k.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=k.useState(null),d=at(k.isValidElement(o)?oa(o):null,n);if(nn(()=>{i||l(Nk(r)||document.body)},[r,i]),nn(()=>{if(a&&!i)return Yf(n,a),()=>{Yf(n,null)}},[n,a,i]),i){if(k.isValidElement(o)){const u={ref:d};return k.cloneElement(o,u)}return D.jsx(k.Fragment,{children:o})}return D.jsx(k.Fragment,{children:a&&BS.createPortal(o,a)})});process.env.NODE_ENV!=="production"&&($i.propTypes={children:s.node,container:s.oneOfType([qo,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&($i.propTypes=dg($i.propTypes));function Ak(e){return Oe("MuiPopper",e)}De("MuiPopper",["root"]);function Fk(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 ml(e){return typeof e=="function"?e():e}function Gl(e){return e.nodeType!==void 0}function Lk(e){return!Gl(e)}const $k=e=>{const{classes:t}=e;return Me({root:["root"]},Ak,t)},Vk={},jk=k.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:l,open:d,placement:u,popperOptions:f,popperRef:p,slotProps:y={},slots:b={},TransitionProps:w,ownerState:g,...v}=t,T=k.useRef(null),P=at(T,n),x=k.useRef(null),S=at(x,p),C=k.useRef(S);nn(()=>{C.current=S},[S]),k.useImperativeHandle(p,()=>x.current,[]);const O=Fk(u,i),[A,F]=k.useState(O),[z,R]=k.useState(ml(o));k.useEffect(()=>{x.current&&x.current.forceUpdate()}),k.useEffect(()=>{o&&R(ml(o))},[o]),nn(()=>{if(!z||!d)return;const Y=N=>{F(N.placement)};if(process.env.NODE_ENV!=="production"&&z&&Gl(z)&&z.nodeType===1){const N=z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&N.top===0&&N.left===0&&N.right===0&&N.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(`
|
|
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 pT=an(D.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"),mT=an(D.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),gT=an(D.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"),yT=an(D.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"),vT=an(D.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"),bT=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 Me(i,cT,r)},wT=le(As,{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)}`]]}})(lt(({theme:e})=>{const t=e.palette.mode==="light"?Ii:Ni,n=e.palette.mode==="light"?Ni:Ii;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(dn(["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),[`& .${dp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(dn(["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}`,[`& .${dp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(dn(["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)}}}))]}})),CT=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),ST=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),up=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}),hp={success:D.jsx(pT,{fontSize:"inherit"}),warning:D.jsx(mT,{fontSize:"inherit"}),error:D.jsx(gT,{fontSize:"inherit"}),info:D.jsx(yT,{fontSize:"inherit"})},Ig=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiAlert"}),{action:r,children:i,className:a,closeText:l="Close",color:d,components:u={},componentsProps:f={},icon:p,iconMapping:y=hp,onClose:b,role:w="alert",severity:g="success",slotProps:v={},slots:T={},variant:P="standard",...x}=o,S={...o,color:d,severity:g,variant:P,colorSeverity:d||g},C=bT(S),O={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...T},slotProps:{...f,...v}},[A,F]=Rn("closeButton",{elementType:Fs,externalForwardedProps:O,ownerState:S}),[z,R]=Rn("closeIcon",{elementType:vT,externalForwardedProps:O,ownerState:S});return D.jsxs(wT,{role:w,elevation:0,ownerState:S,className:Se(C.root,a),ref:n,...x,children:[p!==!1?D.jsx(CT,{ownerState:S,className:C.icon,children:p||y[g]||hp[g]}):null,D.jsx(ST,{ownerState:S,className:C.message,children:i}),r!=null?D.jsx(up,{ownerState:S,className:C.action,children:r}):null,r==null&&b?D.jsx(up,{ownerState:S,className:C.action,children:D.jsx(A,{size:"small","aria-label":l,title:l,color:"inherit",onClick:b,...F,children:D.jsx(z,{fontSize:"small",...R})})}):null]})});process.env.NODE_ENV!=="production"&&(Ig.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 _T(e){return Oe("MuiTypography",e)}const fp=De("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),xT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},RT=kR(),TT=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${be(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Me(l,_T,a)},kT=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]}})(lt(({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(dn()).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}}]}))),pp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tn=k.forwardRef(function(t,n){const{color:o,...r}=Ke({props:t,name:"MuiTypography"}),i=!xT[o],a=RT({...r,...i&&{color:o}}),{align:l="inherit",className:d,component:u,gutterBottom:f=!1,noWrap:p=!1,paragraph:y=!1,variant:b="body1",variantMapping:w=pp,...g}=a,v={...a,align:l,color:o,className:d,component:u,gutterBottom:f,noWrap:p,paragraph:y,variant:b,variantMapping:w},T=u||(y?"p":w[b]||pp[b])||"span",P=TT(v);return D.jsx(kT,{as:T,ref:n,className:Se(P.root,d),...g,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...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 kn="top",Gn="bottom",Kn="right",En="left",Cu="auto",sa=[kn,Gn,Kn,En],xs="start",Fi="end",ET="clippingParents",Ng="viewport",Qs="popper",PT="reference",mp=sa.reduce(function(e,t){return e.concat([t+"-"+xs,t+"-"+Fi])},[]),Ag=[].concat(sa,[Cu]).reduce(function(e,t){return e.concat([t,t+"-"+xs,t+"-"+Fi])},[]),DT="beforeRead",OT="read",MT="afterRead",IT="beforeMain",NT="main",AT="afterMain",FT="beforeWrite",LT="write",$T="afterWrite",VT=[DT,OT,MT,IT,NT,AT,FT,LT,$T];function Ro(e){return e?(e.nodeName||"").toLowerCase():null}function Ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fr(e){var t=Ln(e).Element;return e instanceof t||e instanceof Element}function qn(e){var t=Ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Su(e){if(typeof ShadowRoot>"u")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function jT(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];!qn(i)||!Ro(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function BT(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]),l=a.reduce(function(d,u){return d[u]="",d},{});!qn(r)||!Ro(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(d){r.removeAttribute(d)}))})}}const WT={name:"applyStyles",enabled:!0,phase:"write",fn:jT,effect:BT,requires:["computeStyles"]};function So(e){return e.split("-")[0]}var Mr=Math.max,pl=Math.min,Rs=Math.round;function Fd(){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 Fg(){return!/^((?!chrome|android).)*safari/i.test(Fd())}function Ts(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&qn(e)&&(r=e.offsetWidth>0&&Rs(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Rs(o.height)/e.offsetHeight||1);var a=Fr(e)?Ln(e):window,l=a.visualViewport,d=!Fg()&&n,u=(o.left+(d&&l?l.offsetLeft:0))/r,f=(o.top+(d&&l?l.offsetTop:0))/i,p=o.width/r,y=o.height/i;return{width:p,height:y,top:f,right:u+p,bottom:f+y,left:u,x:u,y:f}}function _u(e){var t=Ts(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 Lg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Su(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ko(e){return Ln(e).getComputedStyle(e)}function HT(e){return["table","td","th"].indexOf(Ro(e))>=0}function mr(e){return((Fr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ql(e){return Ro(e)==="html"?e:e.assignedSlot||e.parentNode||(Su(e)?e.host:null)||mr(e)}function gp(e){return!qn(e)||Ko(e).position==="fixed"?null:e.offsetParent}function zT(e){var t=/firefox/i.test(Fd()),n=/Trident/i.test(Fd());if(n&&qn(e)){var o=Ko(e);if(o.position==="fixed")return null}var r=ql(e);for(Su(r)&&(r=r.host);qn(r)&&["html","body"].indexOf(Ro(r))<0;){var i=Ko(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 ia(e){for(var t=Ln(e),n=gp(e);n&&HT(n)&&Ko(n).position==="static";)n=gp(n);return n&&(Ro(n)==="html"||Ro(n)==="body"&&Ko(n).position==="static")?t:n||zT(e)||t}function xu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ci(e,t,n){return Mr(e,pl(t,n))}function YT(e,t,n){var o=Ci(e,t,n);return o>n?n:o}function $g(){return{top:0,right:0,bottom:0,left:0}}function Vg(e){return Object.assign({},$g(),e)}function jg(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var UT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Vg(typeof t!="number"?t:jg(t,sa))};function qT(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=So(n.placement),d=xu(l),u=[En,Kn].indexOf(l)>=0,f=u?"height":"width";if(!(!i||!a)){var p=UT(r.padding,n),y=_u(i),b=d==="y"?kn:En,w=d==="y"?Gn:Kn,g=n.rects.reference[f]+n.rects.reference[d]-a[d]-n.rects.popper[f],v=a[d]-n.rects.reference[d],T=ia(i),P=T?d==="y"?T.clientHeight||0:T.clientWidth||0:0,x=g/2-v/2,S=p[b],C=P-y[f]-p[w],O=P/2-y[f]/2+x,A=Ci(S,O,C),F=d;n.modifiersData[o]=(t={},t[F]=A,t.centerOffset=A-O,t)}}function GT(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)||Lg(t.elements.popper,r)&&(t.elements.arrow=r))}const KT={name:"arrow",enabled:!0,phase:"main",fn:qT,effect:GT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ks(e){return e.split("-")[1]}var XT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZT(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Rs(n*r)/r||0,y:Rs(o*r)/r||0}}function yp(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,d=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,y=a.x,b=y===void 0?0:y,w=a.y,g=w===void 0?0:w,v=typeof f=="function"?f({x:b,y:g}):{x:b,y:g};b=v.x,g=v.y;var T=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),x=En,S=kn,C=window;if(u){var O=ia(n),A="clientHeight",F="clientWidth";if(O===Ln(n)&&(O=mr(n),Ko(O).position!=="static"&&l==="absolute"&&(A="scrollHeight",F="scrollWidth")),O=O,r===kn||(r===En||r===Kn)&&i===Fi){S=Gn;var z=p&&O===C&&C.visualViewport?C.visualViewport.height:O[A];g-=z-o.height,g*=d?1:-1}if(r===En||(r===kn||r===Gn)&&i===Fi){x=Kn;var R=p&&O===C&&C.visualViewport?C.visualViewport.width:O[F];b-=R-o.width,b*=d?1:-1}}var $=Object.assign({position:l},u&&XT),K=f===!0?ZT({x:b,y:g},Ln(n)):{x:b,y:g};if(b=K.x,g=K.y,d){var X;return Object.assign({},$,(X={},X[S]=P?"0":"",X[x]=T?"0":"",X.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+g+"px)":"translate3d("+b+"px, "+g+"px, 0)",X))}return Object.assign({},$,(t={},t[S]=P?g+"px":"",t[x]=T?b+"px":"",t.transform="",t))}function QT(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,l=n.roundOffsets,d=l===void 0?!0:l,u={placement:So(t.placement),variation:ks(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,yp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const JT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:QT,data:{}};var Va={passive:!0};function ek(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,d=Ln(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",n.update,Va)}),l&&d.addEventListener("resize",n.update,Va),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Va)}),l&&d.removeEventListener("resize",n.update,Va)}}const tk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ek,data:{}};var nk={left:"right",right:"left",bottom:"top",top:"bottom"};function el(e){return e.replace(/left|right|bottom|top/g,function(t){return nk[t]})}var ok={start:"end",end:"start"};function vp(e){return e.replace(/start|end/g,function(t){return ok[t]})}function Ru(e){var t=Ln(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Tu(e){return Ts(mr(e)).left+Ru(e).scrollLeft}function rk(e,t){var n=Ln(e),o=mr(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,d=0;if(r){i=r.width,a=r.height;var u=Fg();(u||!u&&t==="fixed")&&(l=r.offsetLeft,d=r.offsetTop)}return{width:i,height:a,x:l+Tu(e),y:d}}function sk(e){var t,n=mr(e),o=Ru(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Mr(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Mr(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Tu(e),d=-o.scrollTop;return Ko(r||n).direction==="rtl"&&(l+=Mr(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:d}}function ku(e){var t=Ko(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Bg(e){return["html","body","#document"].indexOf(Ro(e))>=0?e.ownerDocument.body:qn(e)&&ku(e)?e:Bg(ql(e))}function Si(e,t){var n;t===void 0&&(t=[]);var o=Bg(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Ln(o),a=r?[i].concat(i.visualViewport||[],ku(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(Si(ql(a)))}function Ld(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ik(e,t){var n=Ts(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 bp(e,t,n){return t===Ng?Ld(rk(e,n)):Fr(t)?ik(t,n):Ld(sk(mr(e)))}function ak(e){var t=Si(ql(e)),n=["absolute","fixed"].indexOf(Ko(e).position)>=0,o=n&&qn(e)?ia(e):e;return Fr(o)?t.filter(function(r){return Fr(r)&&Lg(r,o)&&Ro(r)!=="body"}):[]}function lk(e,t,n,o){var r=t==="clippingParents"?ak(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(d,u){var f=bp(e,u,o);return d.top=Mr(f.top,d.top),d.right=pl(f.right,d.right),d.bottom=pl(f.bottom,d.bottom),d.left=Mr(f.left,d.left),d},bp(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wg(e){var t=e.reference,n=e.element,o=e.placement,r=o?So(o):null,i=o?ks(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(r){case kn:d={x:a,y:t.y-n.height};break;case Gn:d={x:a,y:t.y+t.height};break;case Kn:d={x:t.x+t.width,y:l};break;case En:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var u=r?xu(r):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case xs:d[u]=d[u]-(t[f]/2-n[f]/2);break;case Fi:d[u]=d[u]+(t[f]/2-n[f]/2);break}}return d}function Li(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,l=n.boundary,d=l===void 0?ET:l,u=n.rootBoundary,f=u===void 0?Ng:u,p=n.elementContext,y=p===void 0?Qs:p,b=n.altBoundary,w=b===void 0?!1:b,g=n.padding,v=g===void 0?0:g,T=Vg(typeof v!="number"?v:jg(v,sa)),P=y===Qs?PT:Qs,x=e.rects.popper,S=e.elements[w?P:y],C=lk(Fr(S)?S:S.contextElement||mr(e.elements.popper),d,f,a),O=Ts(e.elements.reference),A=Wg({reference:O,element:x,placement:r}),F=Ld(Object.assign({},x,A)),z=y===Qs?F:O,R={top:C.top-z.top+T.top,bottom:z.bottom-C.bottom+T.bottom,left:C.left-z.left+T.left,right:z.right-C.right+T.right},$=e.modifiersData.offset;if(y===Qs&&$){var K=$[r];Object.keys(R).forEach(function(X){var q=[Kn,Gn].indexOf(X)>=0?1:-1,Y=[kn,Gn].indexOf(X)>=0?"y":"x";R[X]+=K[Y]*q})}return R}function ck(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,u=d===void 0?Ag:d,f=ks(o),p=f?l?mp:mp.filter(function(w){return ks(w)===f}):sa,y=p.filter(function(w){return u.indexOf(w)>=0});y.length===0&&(y=p);var b=y.reduce(function(w,g){return w[g]=Li(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[So(g)],w},{});return Object.keys(b).sort(function(w,g){return b[w]-b[g]})}function dk(e){if(So(e)===Cu)return[];var t=el(e);return[vp(e),t,vp(t)]}function uk(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,l=a===void 0?!0:a,d=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,w=b===void 0?!0:b,g=n.allowedAutoPlacements,v=t.options.placement,T=So(v),P=T===v,x=d||(P||!w?[el(v)]:dk(v)),S=[v].concat(x).reduce(function(se,j){return se.concat(So(j)===Cu?ck(t,{placement:j,boundary:f,rootBoundary:p,padding:u,flipVariations:w,allowedAutoPlacements:g}):j)},[]),C=t.rects.reference,O=t.rects.popper,A=new Map,F=!0,z=S[0],R=0;R<S.length;R++){var $=S[R],K=So($),X=ks($)===xs,q=[kn,Gn].indexOf(K)>=0,Y=q?"width":"height",H=Li(t,{placement:$,boundary:f,rootBoundary:p,altBoundary:y,padding:u}),ae=q?X?Kn:En:X?Gn:kn;C[Y]>O[Y]&&(ae=el(ae));var N=el(ae),M=[];if(i&&M.push(H[K]<=0),l&&M.push(H[ae]<=0,H[N]<=0),M.every(function(se){return se})){z=$,F=!1;break}A.set($,M)}if(F)for(var V=w?3:1,B=function(j){var J=S.find(function(ee){var te=A.get(ee);if(te)return te.slice(0,j).every(function(ce){return ce})});if(J)return z=J,"break"},ne=V;ne>0;ne--){var oe=B(ne);if(oe==="break")break}t.placement!==z&&(t.modifiersData[o]._skip=!0,t.placement=z,t.reset=!0)}}const hk={name:"flip",enabled:!0,phase:"main",fn:uk,requiresIfExists:["offset"],data:{_skip:!1}};function wp(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 Cp(e){return[kn,Kn,Gn,En].some(function(t){return e[t]>=0})}function fk(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Li(t,{elementContext:"reference"}),l=Li(t,{altBoundary:!0}),d=wp(a,o),u=wp(l,r,i),f=Cp(d),p=Cp(u);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const pk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fk};function mk(e,t,n){var o=So(e),r=[En,kn].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[En,Kn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function gk(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=Ag.reduce(function(f,p){return f[p]=mk(p,t.rects,i),f},{}),l=a[t.placement],d=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const yk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gk};function vk(e){var t=e.state,n=e.name;t.modifiersData[n]=Wg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bk={name:"popperOffsets",enabled:!0,phase:"read",fn:vk,data:{}};function wk(e){return e==="x"?"y":"x"}function Ck(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,d=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,y=n.tether,b=y===void 0?!0:y,w=n.tetherOffset,g=w===void 0?0:w,v=Li(t,{boundary:d,rootBoundary:u,padding:p,altBoundary:f}),T=So(t.placement),P=ks(t.placement),x=!P,S=xu(T),C=wk(S),O=t.modifiersData.popperOffsets,A=t.rects.reference,F=t.rects.popper,z=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,K={x:0,y:0};if(O){if(i){var X,q=S==="y"?kn:En,Y=S==="y"?Gn:Kn,H=S==="y"?"height":"width",ae=O[S],N=ae+v[q],M=ae-v[Y],V=b?-F[H]/2:0,B=P===xs?A[H]:F[H],ne=P===xs?-F[H]:-A[H],oe=t.elements.arrow,se=b&&oe?_u(oe):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$g(),J=j[q],ee=j[Y],te=Ci(0,A[H],se[H]),ce=x?A[H]/2-V-te-J-R.mainAxis:B-te-J-R.mainAxis,ie=x?-A[H]/2+V+te+ee+R.mainAxis:ne+te+ee+R.mainAxis,he=t.elements.arrow&&ia(t.elements.arrow),W=he?S==="y"?he.clientTop||0:he.clientLeft||0:0,re=(X=$?.[S])!=null?X:0,Q=ae+ce-re-W,fe=ae+ie-re,me=Ci(b?pl(N,Q):N,ae,b?Mr(M,fe):M);O[S]=me,K[S]=me-ae}if(l){var Ce,ve=S==="x"?kn:En,xe=S==="x"?Gn:Kn,$e=O[C],Ae=C==="y"?"height":"width",st=$e+v[ve],Pe=$e-v[xe],ft=[kn,En].indexOf(T)!==-1,Kt=(Ce=$?.[C])!=null?Ce:0,it=ft?st:$e-A[Ae]-F[Ae]-Kt+R.altAxis,Yt=ft?$e+A[Ae]+F[Ae]-Kt-R.altAxis:Pe,Xt=b&&ft?YT(it,$e,Yt):Ci(b?it:st,$e,b?Yt:Pe);O[C]=Xt,K[C]=Xt-$e}t.modifiersData[o]=K}}const Sk={name:"preventOverflow",enabled:!0,phase:"main",fn:Ck,requiresIfExists:["offset"]};function _k(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xk(e){return e===Ln(e)||!qn(e)?Ru(e):_k(e)}function Rk(e){var t=e.getBoundingClientRect(),n=Rs(t.width)/e.offsetWidth||1,o=Rs(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Tk(e,t,n){n===void 0&&(n=!1);var o=qn(t),r=qn(t)&&Rk(t),i=mr(t),a=Ts(e,r,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&((Ro(t)!=="body"||ku(i))&&(l=xk(t)),qn(t)?(d=Ts(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=Tu(i))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function kk(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(l){if(!n.has(l)){var d=t.get(l);d&&r(d)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function Ek(e){var t=kk(e);return VT.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Pk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Dk(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 Sp={placement:"bottom",modifiers:[],strategy:"absolute"};function _p(){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 Ok(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Sp:r;return function(l,d,u){u===void 0&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Sp,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},p=[],y=!1,b={state:f,setOptions:function(T){var P=typeof T=="function"?T(f.options):T;g(),f.options=Object.assign({},i,f.options,P),f.scrollParents={reference:Fr(l)?Si(l):l.contextElement?Si(l.contextElement):[],popper:Si(d)};var x=Ek(Dk([].concat(o,f.options.modifiers)));return f.orderedModifiers=x.filter(function(S){return S.enabled}),w(),b.update()},forceUpdate:function(){if(!y){var T=f.elements,P=T.reference,x=T.popper;if(_p(P,x)){f.rects={reference:Tk(P,ia(x),f.options.strategy==="fixed"),popper:_u(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(R){return f.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var C=f.orderedModifiers[S],O=C.fn,A=C.options,F=A===void 0?{}:A,z=C.name;typeof O=="function"&&(f=O({state:f,options:F,name:z,instance:b})||f)}}}},update:Pk(function(){return new Promise(function(v){b.forceUpdate(),v(f)})}),destroy:function(){g(),y=!0}};if(!_p(l,d))return b;b.setOptions(u).then(function(v){!y&&u.onFirstUpdate&&u.onFirstUpdate(v)});function w(){f.orderedModifiers.forEach(function(v){var T=v.name,P=v.options,x=P===void 0?{}:P,S=v.effect;if(typeof S=="function"){var C=S({state:f,name:T,instance:b,options:x}),O=function(){};p.push(C||O)}})}function g(){p.forEach(function(v){return v()}),p=[]}return b}}var Mk=[tk,bk,JT,WT,yk,hk,Sk,KT,pk],Ik=Ok({defaultModifiers:Mk});function Nk(e){return typeof e=="function"?e():e}const $i=k.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=k.useState(null),d=at(k.isValidElement(o)?oa(o):null,n);if(nn(()=>{i||l(Nk(r)||document.body)},[r,i]),nn(()=>{if(a&&!i)return Yf(n,a),()=>{Yf(n,null)}},[n,a,i]),i){if(k.isValidElement(o)){const u={ref:d};return k.cloneElement(o,u)}return D.jsx(k.Fragment,{children:o})}return D.jsx(k.Fragment,{children:a&&BS.createPortal(o,a)})});process.env.NODE_ENV!=="production"&&($i.propTypes={children:s.node,container:s.oneOfType([qo,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&($i.propTypes=dg($i.propTypes));function Ak(e){return Oe("MuiPopper",e)}De("MuiPopper",["root"]);function Fk(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 ml(e){return typeof e=="function"?e():e}function Gl(e){return e.nodeType!==void 0}function Lk(e){return!Gl(e)}const $k=e=>{const{classes:t}=e;return Me({root:["root"]},Ak,t)},Vk={},jk=k.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:l,open:d,placement:u,popperOptions:f,popperRef:p,slotProps:y={},slots:b={},TransitionProps:w,ownerState:g,...v}=t,T=k.useRef(null),P=at(T,n),x=k.useRef(null),S=at(x,p),C=k.useRef(S);nn(()=>{C.current=S},[S]),k.useImperativeHandle(p,()=>x.current,[]);const O=Fk(u,i),[A,F]=k.useState(O),[z,R]=k.useState(ml(o));k.useEffect(()=>{x.current&&x.current.forceUpdate()}),k.useEffect(()=>{o&&R(ml(o))},[o]),nn(()=>{if(!z||!d)return;const Y=N=>{F(N.placement)};if(process.env.NODE_ENV!=="production"&&z&&Gl(z)&&z.nodeType===1){const N=z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&N.top===0&&N.left===0&&N.right===0&&N.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
214
|
`))}let H=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{Y(N)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const ae=Ik(z,T.current,{placement:O,...f,modifiers:H});return C.current(ae),()=>{ae.destroy(),C.current(null)}},[z,a,l,d,f,O]);const $={placement:A};w!==null&&($.TransitionProps=w);const K=$k(t),X=b.root??"div",q=dt({elementType:X,externalSlotProps:y.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:K.root});return D.jsx(X,{...q,children:typeof r=="function"?r($):r})}),Hg=k.forwardRef(function(t,n){const{anchorEl:o,children:r,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:y=Vk,popperRef:b,style:w,transition:g=!1,slotProps:v={},slots:T={},...P}=t,[x,S]=k.useState(!0),C=()=>{S(!1)},O=()=>{S(!0)};if(!d&&!f&&(!g||x))return null;let A;if(i)A=i;else if(o){const R=ml(o);A=R&&Gl(R)?gn(R).body:gn(null).body}const F=!f&&d&&(!g||x)?"none":void 0,z=g?{in:f,onEnter:C,onExited:O}:void 0;return D.jsx($i,{disablePortal:l,container:A,children:D.jsx(jk,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:g?!x:f,placement:p,popperOptions:y,popperRef:b,slotProps:v,slots:T,...P,style:{position:"fixed",top:0,left:0,display:F,...w},TransitionProps:z,children:r})})});process.env.NODE_ENV!=="production"&&(Hg.propTypes={anchorEl:fr(s.oneOfType([qo,s.object,s.func]),e=>{if(e.open){const t=ml(e.anchorEl);if(t&&Gl(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
215
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||Lk(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
216
216
|
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([qo,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:Bt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const Bk=le(Hg,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zg=k.forwardRef(function(t,n){const o=ao(),r=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:d,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:b,placement:w,popperOptions:g,popperRef:v,transition:T,slots:P,slotProps:x,...S}=r,C=P?.root??l?.Root,O={anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:b,placement:w,popperOptions:g,popperRef:v,transition:T,...S};return D.jsx(Bk,{as:a,direction:o?"rtl":"ltr",slots:{root:C},slotProps:x??d,...O,ref:n})});process.env.NODE_ENV!=="production"&&(zg.propTypes={anchorEl:s.oneOfType([qo,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([qo,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:Bt,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 Wk=an(D.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 Hk(e){return Oe("MuiChip",e)}const Xe=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"]),zk=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:l,variant:d}=e,u={root:["root",d,n&&"disabled",`size${be(o)}`,`color${be(r)}`,l&&"clickable",l&&`clickableColor${be(r)}`,a&&"deletable",a&&`deletableColor${be(r)}`,`${d}${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(d)}Color${be(r)}`]};return Me(u,Hk,t)},Yk=le("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:d}=n;return[{[`& .${Xe.avatar}`]:t.avatar},{[`& .${Xe.avatar}`]:t[`avatar${be(l)}`]},{[`& .${Xe.avatar}`]:t[`avatarColor${be(o)}`]},{[`& .${Xe.icon}`]:t.icon},{[`& .${Xe.icon}`]:t[`icon${be(l)}`]},{[`& .${Xe.icon}`]:t[`iconColor${be(r)}`]},{[`& .${Xe.deleteIcon}`]:t.deleteIcon},{[`& .${Xe.deleteIcon}`]:t[`deleteIcon${be(l)}`]},{[`& .${Xe.deleteIcon}`]:t[`deleteIconColor${be(o)}`]},{[`& .${Xe.deleteIcon}`]:t[`deleteIcon${be(d)}Color${be(o)}`]},t.root,t[`size${be(l)}`],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[d],t[`${d}${be(o)}`]]}})(lt(({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",[`&.${Xe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Xe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Xe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Xe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Xe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Xe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Xe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ot(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)`:ot(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Xe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Xe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(dn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Xe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:ot(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Xe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Xe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Xe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(dn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Xe.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}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Xe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(dn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Xe.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]}`,[`&.${Xe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Xe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Xe.avatar}`]:{marginLeft:4},[`& .${Xe.avatarSmall}`]:{marginLeft:2},[`& .${Xe.icon}`]:{marginLeft:4},[`& .${Xe.iconSmall}`]:{marginLeft:2},[`& .${Xe.deleteIcon}`]:{marginRight:5},[`& .${Xe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(dn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ot(e.palette[n].main,.7)}`,[`&.${Xe.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Xe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ot(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Xe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ot(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Uk=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 xp(e){return e.key==="Backspace"||e.key==="Delete"}const Yg=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:l="default",component:d,deleteIcon:u,disabled:f=!1,icon:p,label:y,onClick:b,onDelete:w,onKeyDown:g,onKeyUp:v,size:T="medium",variant:P="filled",tabIndex:x,skipFocusWhenDisabled:S=!1,...C}=o,O=k.useRef(null),A=at(O,n),F=M=>{M.stopPropagation(),w&&w(M)},z=M=>{M.currentTarget===M.target&&xp(M)&&M.preventDefault(),g&&g(M)},R=M=>{M.currentTarget===M.target&&w&&xp(M)&&w(M),v&&v(M)},$=a!==!1&&b?!0:a,K=$||w?dr:d||"div",X={...o,component:K,disabled:f,size:T,color:l,iconColor:k.isValidElement(p)&&p.props.color||l,onDelete:!!w,clickable:$,variant:P},q=zk(X),Y=K===dr?{component:d||"div",focusVisibleClassName:q.focusVisible,...w&&{disableRipple:!0}}:{};let H=null;w&&(H=u&&k.isValidElement(u)?k.cloneElement(u,{className:Se(u.props.className,q.deleteIcon),onClick:F}):D.jsx(Wk,{className:Se(q.deleteIcon),onClick:F}));let ae=null;r&&k.isValidElement(r)&&(ae=k.cloneElement(r,{className:Se(q.avatar,r.props.className)}));let N=null;return p&&k.isValidElement(p)&&(N=k.cloneElement(p,{className:Se(q.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&ae&&N&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),D.jsxs(Yk,{as:K,className:Se(q.root,i),disabled:$&&f?!0:void 0,onClick:b,onKeyDown:z,onKeyUp:R,ref:A,tabIndex:S&&f?-1:x,ownerState:X,...Y,...C,children:[ae||N,D.jsx(Uk,{className:Se(q.label),ownerState:X,children:y}),H]})});process.env.NODE_ENV!=="production"&&(Yg.propTypes={avatar:s.element,children:Mx,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 ja(e){return parseInt(e,10)||0}const qk={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Gk(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Ug=k.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...d}=t,{current:u}=k.useRef(l!=null),f=k.useRef(null),p=at(n,f),y=k.useRef(null),b=k.useRef(null),w=k.useCallback(()=>{const T=f.current,x=Go(T).getComputedStyle(T);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=b.current;S.style.width=x.width,S.value=T.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
217
217
|
`&&(S.value+=" ");const C=x.boxSizing,O=ja(x.paddingBottom)+ja(x.paddingTop),A=ja(x.borderBottomWidth)+ja(x.borderTopWidth),F=S.scrollHeight;S.value="x";const z=S.scrollHeight;let R=F;i&&(R=Math.max(Number(i)*z,R)),r&&(R=Math.min(Number(r)*z,R)),R=Math.max(R,z);const $=R+(C==="border-box"?O+A:0),K=Math.abs(R-F)<=1;return{outerHeightStyle:$,overflowing:K}},[r,i,t.placeholder]),g=k.useCallback(()=>{const T=w();if(Gk(T))return;const P=T.outerHeightStyle,x=f.current;y.current!==P&&(y.current=P,x.style.height=`${P}px`),x.style.overflow=T.overflowing?"hidden":""},[w]);nn(()=>{const T=()=>{g()};let P;const x=()=>{cancelAnimationFrame(P),P=requestAnimationFrame(()=>{T()})},S=ug(T),C=f.current,O=Go(C);O.addEventListener("resize",S);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(process.env.NODE_ENV==="test"?x:T),A.observe(C)),()=>{S.clear(),cancelAnimationFrame(P),O.removeEventListener("resize",S),A&&A.disconnect()}},[w,g]),nn(()=>{g()});const v=T=>{u||g(),o&&o(T)};return D.jsxs(k.Fragment,{children:[D.jsx("textarea",{value:l,onChange:v,ref:p,rows:i,style:a,...d}),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...qk.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Ug.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 Vi(e){return typeof e=="string"}function gr({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 aa=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(aa.displayName="FormControlContext");function On(){return k.useContext(aa)}function Rp(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function gl(e,t=!1){return e&&(Rp(e.value)&&e.value!==""||t&&Rp(e.defaultValue)&&e.defaultValue!=="")}function Kk(e){return e.startAdornment}function Xk(e){return Oe("MuiInputBase",e)}const Es=De("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Tp;const Kl=(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]},Xl=(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]},Zk=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:d,hiddenLabel:u,multiline:f,readOnly:p,size:y,startAdornment:b,type:w}=e,g={root:["root",`color${be(n)}`,o&&"disabled",r&&"error",d&&"fullWidth",a&&"focused",l&&"formControl",y&&y!=="medium"&&`size${be(y)}`,f&&"multiline",b&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",w==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return Me(g,Xk,t)},Zl=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Kl})(lt(({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",[`&.${Es.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%"}}]}))),Ql=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xl})(lt(({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] + .${Es.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},[`&.${Es.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"}}]}})),kp=TR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Jl=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,color:d,components:u={},componentsProps:f={},defaultValue:p,disabled:y,disableInjectingGlobalStyles:b,endAdornment:w,error:g,fullWidth:v=!1,id:T,inputComponent:P="input",inputProps:x={},inputRef:S,margin:C,maxRows:O,minRows:A,multiline:F=!1,name:z,onBlur:R,onChange:$,onClick:K,onFocus:X,onKeyDown:q,onKeyUp:Y,placeholder:H,readOnly:ae,renderSuffix:N,rows:M,size:V,slotProps:B={},slots:ne={},startAdornment:oe,type:se="text",value:j,...J}=o,ee=x.value!=null?x.value:j,{current:te}=k.useRef(ee!=null),ce=k.useRef(),ie=k.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,S,x.ref,ie),[W,re]=k.useState(!1),Q=On();process.env.NODE_ENV!=="production"&&k.useEffect(()=>{if(Q)return Q.registerEffect()},[Q]);const fe=gr({props:o,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=Q?Q.focused:W,k.useEffect(()=>{!Q&&y&&W&&(re(!1),R&&R())},[Q,y,W,R]);const me=Q&&Q.onFilled,Ce=Q&&Q.onEmpty,ve=k.useCallback(tt=>{gl(tt)?me&&me():Ce&&Ce()},[me,Ce]);nn(()=>{te&&ve({value:ee})},[ee,ve,te]);const xe=tt=>{X&&X(tt),x.onFocus&&x.onFocus(tt),Q&&Q.onFocus?Q.onFocus(tt):re(!0)},$e=tt=>{R&&R(tt),x.onBlur&&x.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.":_o(1));ve({value:hn.value})}x.onChange&&x.onChange(tt,...Mn),$&&$(tt,...Mn)};k.useEffect(()=>{ve(ce.current)},[]);const st=tt=>{ce.current&&tt.currentTarget===tt.target&&ce.current.focus(),K&&K(tt)};let Pe=P,ft=x;F&&Pe==="input"&&(M?(process.env.NODE_ENV!=="production"&&(A||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ft={type:void 0,minRows:M,maxRows:M,...ft}):ft={type:void 0,maxRows:O,minRows:A,...ft},Pe=Ug);const Kt=tt=>{ve(tt.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};k.useEffect(()=>{Q&&Q.setAdornedStart(!!oe)},[Q,oe]);const it={...o,color:fe.color||"primary",disabled:fe.disabled,endAdornment:w,error:fe.error,focused:fe.focused,formControl:Q,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:F,size:fe.size,startAdornment:oe,type:se},Yt=Zk(it),Xt=ne.root||u.Root||Zl,on=B.root||f.root||{},Ue=ne.input||u.Input||Ql;return ft={...ft,...B.input??f.input},D.jsxs(k.Fragment,{children:[!b&&typeof kp=="function"&&(Tp||(Tp=D.jsx(kp,{}))),D.jsxs(Xt,{...on,ref:n,onClick:st,...J,...!Vi(Xt)&&{ownerState:{...it,...on.ownerState}},className:Se(Yt.root,on.className,l,ae&&"MuiInputBase-readOnly"),children:[oe,D.jsx(aa.Provider,{value:null,children:D.jsx(Ue,{"aria-invalid":fe.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:p,disabled:fe.disabled,id:T,onAnimationStart:Kt,name:z,placeholder:H,readOnly:ae,required:fe.required,rows:M,value:ee,onKeyDown:q,onKeyUp:Y,type:se,...ft,...!Vi(Ue)&&{as:Pe,ownerState:{...it,...ft.ownerState}},ref:he,className:Se(Yt.input,ft.className,ae&&"MuiInputBase-readOnly"),onBlur:$e,onChange:Ae,onFocus:xe})}),w,N?N({...fe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(Jl.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:zl,inputProps:s.object,inputRef:Bt,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 Qk(e){return Oe("MuiInput",e)}const Js={...Es,...De("MuiInput",["root","underline","input"])};function Jk(e){return Oe("MuiOutlinedInput",e)}const po={...Es,...De("MuiOutlinedInput",["root","notchedOutline","input"])};function eE(e){return Oe("MuiFilledInput",e)}const wr={...Es,...De("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},tE=an(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),nE={entering:{opacity:1},entered:{opacity:1}},$r=k.forwardRef(function(t,n){const o=Ns(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:d,in:u,onEnter:f,onEntered:p,onEntering:y,onExit:b,onExited:w,onExiting:g,style:v,timeout:T=r,TransitionComponent:P=Qn,...x}=t,S=k.useRef(null),C=at(S,oa(l),n),O=q=>Y=>{if(q){const H=S.current;Y===void 0?q(H):q(H,Y)}},A=O(y),F=O((q,Y)=>{Dg(q);const H=hl({style:v,timeout:T,easing:d},{mode:"enter"});q.style.webkitTransition=o.transitions.create("opacity",H),q.style.transition=o.transitions.create("opacity",H),f&&f(q,Y)}),z=O(p),R=O(g),$=O(q=>{const Y=hl({style:v,timeout:T,easing:d},{mode:"exit"});q.style.webkitTransition=o.transitions.create("opacity",Y),q.style.transition=o.transitions.create("opacity",Y),b&&b(q)}),K=O(w),X=q=>{i&&i(S.current,q)};return D.jsx(P,{appear:a,in:u,nodeRef:S,onEnter:F,onEntered:z,onEntering:A,onExit:$,onExited:K,onExiting:R,addEndListener:X,timeout:T,...x,children:(q,Y)=>k.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!u?"hidden":void 0,...nE[q],...v,...l.props.style},ref:C,...Y})})});process.env.NODE_ENV!=="production"&&($r.propTypes={addEndListener:s.func,appear:s.bool,children:na.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 oE(e){return Oe("MuiBackdrop",e)}De("MuiBackdrop",["root","invisible"]);const rE=e=>{const{ownerState:t,...n}=e;return n},sE=e=>{const{classes:t,invisible:n}=e;return Me({root:["root",n&&"invisible"]},oE,t)},iE=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"}}]}),Eu=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:d,components:u={},componentsProps:f={},slotProps:p={},slots:y={},TransitionComponent:b,transitionDuration:w,...g}=o,v={...o,component:a,invisible:l},T=sE(v),P={transition:b,root:u.Root,...y},x={...f,...p},S={slots:P,slotProps:x},[C,O]=Rn("root",{elementType:iE,externalForwardedProps:S,className:Se(T.root,i),ownerState:v}),[A,F]=Rn("transition",{elementType:$r,externalForwardedProps:S,ownerState:v}),z=rE(F);return D.jsx(A,{in:d,timeout:w,...g,...z,children:D.jsx(C,{"aria-hidden":!0,...O,classes:T,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Eu.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 aE=De("MuiBox",["root"]),lE=Tg(),Ls=ix({themeId:Xi,defaultTheme:lE,defaultClassName:aE.root,generateClassName:Jm.generate});process.env.NODE_ENV!=="production"&&(Ls.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 cE(e){return Oe("MuiButton",e)}const os=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"]),qg=k.createContext({});process.env.NODE_ENV!=="production"&&(qg.displayName="ButtonGroupContext");const Gg=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(Gg.displayName="ButtonGroupButtonContext");const dE=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:a}=e,l={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)}`]},d=Me(l,cE,a);return{...a,...d}},Kg=[{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}}}],uE=le(dr,{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]}})(lt(({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"},[`&.${os.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]},[`&.${os.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${os.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)",[`&.${os.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(dn()).map(([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)`:ot(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})`:ot(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})`:ot(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})`:ot(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(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"},[`&.${os.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${os.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),hE=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}},...Kg]}),fE=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}},...Kg]}),ds=k.forwardRef(function(t,n){const o=k.useContext(qg),r=k.useContext(Gg),i=Mi(o,t),a=Ke({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:f,disabled:p=!1,disableElevation:y=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:g,fullWidth:v=!1,size:T="medium",startIcon:P,type:x,variant:S="text",...C}=a,O={...a,color:d,component:u,disabled:p,disableElevation:y,disableFocusRipple:b,fullWidth:v,size:T,type:x,variant:S},A=dE(O),F=P&&D.jsx(hE,{className:A.startIcon,ownerState:O,children:P}),z=w&&D.jsx(fE,{className:A.endIcon,ownerState:O,children:w}),R=r||"";return D.jsxs(uE,{ownerState:O,className:Se(o.className,A.root,f,R),component:u,disabled:p,focusRipple:!b,focusVisibleClassName:Se(A.focusVisible,g),ref:n,type:x,...C,classes:A,children:[F,l,z]})});process.env.NODE_ENV!=="production"&&(ds.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 pE(e){return Oe("PrivateSwitchBase",e)}De("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const mE=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 Me(i,pE,t)},gE=le(dr)({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}}]}),yE=le("input",{shouldForwardProp:Dn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Xg=k.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:i,className:a,defaultChecked:l,disabled:d,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:y,inputProps:b,inputRef:w,name:g,onBlur:v,onChange:T,onFocus:P,readOnly:x,required:S=!1,tabIndex:C,type:O,value:A,...F}=t,[z,R]=xo({controlled:r,default:!!l,name:"SwitchBase",state:"checked"}),$=On(),K=M=>{P&&P(M),$&&$.onFocus&&$.onFocus(M)},X=M=>{v&&v(M),$&&$.onBlur&&$.onBlur(M)},q=M=>{if(M.nativeEvent.defaultPrevented)return;const V=M.target.checked;R(V),T&&T(M,V)};let Y=d;$&&typeof Y>"u"&&(Y=$.disabled);const H=O==="checkbox"||O==="radio",ae={...t,checked:z,disabled:Y,disableFocusRipple:u,edge:f},N=mE(ae);return D.jsxs(gE,{component:"span",className:Se(N.root,a),centerRipple:!0,focusRipple:!u,disabled:Y,tabIndex:null,role:void 0,onFocus:K,onBlur:X,ownerState:ae,ref:n,...F,children:[D.jsx(yE,{autoFocus:o,checked:r,defaultChecked:l,className:N.input,disabled:Y,id:H?y:void 0,name:g,onChange:q,readOnly:x,ref:w,required:S,ownerState:ae,tabIndex:C,type:O,...O==="checkbox"&&A===void 0?{}:{value:A},...b}),z?i:p]})});process.env.NODE_ENV!=="production"&&(Xg.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:Bt,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 vE=an(D.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"),bE=an(D.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"),wE=an(D.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 CE(e){return Oe("MuiCheckbox",e)}const Jc=De("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),SE=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,i={root:["root",n&&"indeterminate",`color${be(o)}`,`size${be(r)}`]},a=Me(i,CE,t);return{...t,...a}},_E=le(Xg,{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)}`]]}})(lt(({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})`:ot(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{[`&.${Jc.checked}, &.${Jc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Jc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),xE=D.jsx(bE,{}),RE=D.jsx(vE,{}),TE=D.jsx(wE,{}),Pu=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:r=xE,color:i="primary",icon:a=RE,indeterminate:l=!1,indeterminateIcon:d=TE,inputProps:u,size:f="medium",disableRipple:p=!1,className:y,...b}=o,w=l?d:a,g=l?d:r,v={...o,disableRipple:p,color:i,indeterminate:l,size:f},T=SE(v);return D.jsx(_E,{type:"checkbox",inputProps:{"data-indeterminate":l,...u},icon:k.cloneElement(w,{fontSize:w.props.fontSize??f}),checkedIcon:k.cloneElement(g,{fontSize:g.props.fontSize??f}),ownerState:v,ref:n,className:Se(T.root,y),disableRipple:p,...b,classes:T})});process.env.NODE_ENV!=="production"&&(Pu.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:Bt,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?Go(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _i(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ep(e){return parseInt(Go(e).getComputedStyle(e).paddingRight,10)||0}function EE(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 Pp(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),d=!EE(a);l&&d&&_i(a,r)})}function ed(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function PE(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(kE(o)){const a=pg(Go(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Ep(o)+a}px`;const l=gn(o).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Ep(d)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=gn(o).body;else{const a=o.parentElement,l=Go(o);i=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function DE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class OE{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&&_i(t.modalRef,!1);const r=DE(n);Pp(n,t.mount,t.modalRef,r,!0);const i=ed(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=ed(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=PE(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=ed(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&&_i(t.modalRef,n),Pp(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&&_i(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const ME=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IE(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 NE(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 AE(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||NE(e))}function FE(e){const t=[],n=[];return Array.from(e.querySelectorAll(ME)).forEach((o,r)=>{const i=IE(o);i===-1||!AE(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 LE(){return!0}function ji(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=FE,isEnabled:a=LE,open:l}=e,d=k.useRef(!1),u=k.useRef(null),f=k.useRef(null),p=k.useRef(null),y=k.useRef(null),b=k.useRef(!1),w=k.useRef(null),g=at(oa(t),w),v=k.useRef(null);k.useEffect(()=>{!l||!w.current||(b.current=!n)},[n,l]),k.useEffect(()=>{if(!l||!w.current)return;const x=gn(w.current);return w.current.contains(x.activeElement)||(w.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
|
-
`)),w.current.setAttribute("tabIndex","-1")),b.current&&w.current.focus()),()=>{r||(p.current&&p.current.focus&&(d.current=!0,p.current.focus()),p.current=null)}},[l]),k.useEffect(()=>{if(!l||!w.current)return;const x=gn(w.current),S=A=>{v.current=A,!(o||!a()||A.key!=="Tab")&&x.activeElement===w.current&&A.shiftKey&&(d.current=!0,f.current&&f.current.focus())},C=()=>{const A=w.current;if(A===null)return;if(!x.hasFocus()||!a()||d.current){d.current=!1;return}if(A.contains(x.activeElement)||o&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!b.current)return;let F=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(F=i(w.current)),F.length>0){const z=!!(v.current?.shiftKey&&v.current?.key==="Tab"),R=F[0],$=F[F.length-1];typeof R!="string"&&typeof $!="string"&&(z?$.focus():R.focus())}else A.focus()};x.addEventListener("focusin",C),x.addEventListener("keydown",S,!0);const O=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(O),x.removeEventListener("focusin",C),x.removeEventListener("keydown",S,!0)}},[n,o,r,a,l,i]);const T=x=>{p.current===null&&(p.current=x.relatedTarget),b.current=!0,y.current=x.target;const S=t.props.onFocus;S&&S(x)},P=x=>{p.current===null&&(p.current=x.relatedTarget),b.current=!0};return D.jsxs(k.Fragment,{children:[D.jsx("div",{tabIndex:l?0:-1,onFocus:P,ref:u,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:g,onFocus:T}),D.jsx("div",{tabIndex:l?0:-1,onFocus:P,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ji.propTypes={children:na,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(ji.propTypes=dg(ji.propTypes));function $E(e){return typeof e=="function"?e():e}function VE(e){return e?e.props.hasOwnProperty("in"):!1}const Ba=new OE;function jE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:d,open:u,rootRef:f}=e,p=k.useRef({}),y=k.useRef(null),b=k.useRef(null),w=at(b,f),[g,v]=k.useState(!u),T=VE(l);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const x=()=>gn(y.current),S=()=>(p.current.modalRef=b.current,p.current.mount=y.current,p.current),C=()=>{Ba.mount(S(),{disableScrollLock:o}),b.current&&(b.current.scrollTop=0)},O=Te(()=>{const Y=$E(t)||x().body;Ba.add(S(),Y),b.current&&C()}),A=()=>Ba.isTopModal(S()),F=Te(Y=>{y.current=Y,Y&&(u&&A()?C():b.current&&_i(b.current,P))}),z=k.useCallback(()=>{Ba.remove(S(),P)},[P]);k.useEffect(()=>()=>{z()},[z]),k.useEffect(()=>{u?O():(!T||!r)&&z()},[u,z,T,r,O]);const R=Y=>H=>{Y.onKeyDown?.(H),!(H.key!=="Escape"||H.which===229||!A())&&(n||(H.stopPropagation(),d&&d(H,"escapeKeyDown")))},$=Y=>H=>{Y.onClick?.(H),H.target===H.currentTarget&&d&&d(H,"backdropClick")};return{getRootProps:(Y={})=>{const H=bg(e);delete H.onTransitionEnter,delete H.onTransitionExited;const ae={...H,...Y};return{role:"presentation",...ae,onKeyDown:R(ae),ref:w}},getBackdropProps:(Y={})=>{const H=Y;return{"aria-hidden":!0,...H,onClick:$(H),open:u}},getTransitionProps:()=>{const Y=()=>{v(!1),i&&i()},H=()=>{v(!0),a&&a(),r&&z()};return{onEnter:zf(Y,l?.props.onEnter),onExited:zf(H,l?.props.onExited)}},rootRef:w,portalRef:F,isTopModal:A,exited:g,hasTransition:T}}function BE(e){return Oe("MuiModal",e)}De("MuiModal",["root","hidden","backdrop"]);const WE=e=>{const{open:t,exited:n,classes:o}=e;return Me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},BE,o)},HE=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(lt(({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"}}]}))),zE=le(Eu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Du=k.forwardRef(function(t,n){const o=Ke({name:"MuiModal",props:t}),{BackdropComponent:r=zE,BackdropProps:i,classes:a,className:l,closeAfterTransition:d=!1,children:u,container:f,component:p,components:y={},componentsProps:b={},disableAutoFocus:w=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:v=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:O,onClose:A,onTransitionEnter:F,onTransitionExited:z,open:R,slotProps:$={},slots:K={},theme:X,...q}=o,Y={...o,closeAfterTransition:d,disableAutoFocus:w,disableEnforceFocus:g,disableEscapeKeyDown:v,disablePortal:T,disableRestoreFocus:P,disableScrollLock:x,hideBackdrop:S,keepMounted:C},{getRootProps:H,getBackdropProps:ae,getTransitionProps:N,portalRef:M,isTopModal:V,exited:B,hasTransition:ne}=jE({...Y,rootRef:n}),oe={...Y,exited:B},se=WE(oe),j={};if(u.props.tabIndex===void 0&&(j.tabIndex="-1"),ne){const{onEnter:W,onExited:re}=N();j.onEnter=W,j.onExited=re}const J={...q,slots:{root:y.Root,backdrop:y.Backdrop,...K},slotProps:{...b,...$}},[ee,te]=Rn("root",{elementType:HE,externalForwardedProps:J,getSlotProps:H,additionalProps:{ref:n,as:p},ownerState:oe,className:Se(l,se?.root,!oe.open&&oe.exited&&se?.hidden)}),[ce,ie]=Rn("backdrop",{elementType:r,externalForwardedProps:J,additionalProps:i,getSlotProps:W=>ae({...W,onClick:re=>{O&&O(re),W?.onClick&&W.onClick(re)}}),className:Se(i?.className,se?.backdrop),ownerState:oe}),he=at(i?.ref,ie.ref);return!C&&!R&&(!ne||B)?null:D.jsx($i,{ref:M,container:f,disablePortal:T,children:D.jsxs(ee,{...te,children:[!S&&r?D.jsx(ce,{...ie,ref:he}):null,D.jsx(ji,{disableEnforceFocus:g,disableAutoFocus:w,disableRestoreFocus:P,isEnabled:V,open:R,children:k.cloneElement(u,j)})]})})});process.env.NODE_ENV!=="production"&&(Du.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:na.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([qo,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 YE(e){return Oe("MuiDialog",e)}const xi=De("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Zg=k.createContext({});process.env.NODE_ENV!=="production"&&(Zg.displayName="DialogContext");const UE=le(Eu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),qE=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 Me(a,YE,t)},GE=le(Du,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),KE=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"}}}]}),XE=le(As,{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]}})(lt(({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)`,[`&.${xi.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}`,[`&.${xi.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,[`&.${xi.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Qg=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialog"}),r=Ns(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:u,BackdropProps:f,children:p,className:y,disableEscapeKeyDown:b=!1,fullScreen:w=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:T,onClick:P,onClose:x,open:S,PaperComponent:C=As,PaperProps:O={},scroll:A="paper",TransitionComponent:F=$r,transitionDuration:z=i,TransitionProps:R,...$}=o,K={...o,disableEscapeKeyDown:b,fullScreen:w,fullWidth:g,maxWidth:v,scroll:A},X=qE(K),q=k.useRef(),Y=M=>{q.current=M.target===M.currentTarget},H=M=>{P&&P(M),q.current&&(q.current=null,T&&T(M),x&&x(M,"backdropClick"))},ae=pr(l),N=k.useMemo(()=>({titleId:ae}),[ae]);return D.jsx(GE,{className:Se(X.root,y),closeAfterTransition:!0,components:{Backdrop:UE},componentsProps:{backdrop:{transitionDuration:z,as:u,...f}},disableEscapeKeyDown:b,onClose:x,open:S,ref:n,onClick:H,ownerState:K,...$,children:D.jsx(F,{appear:!0,in:S,timeout:z,role:"presentation",...R,children:D.jsx(KE,{className:Se(X.container),onMouseDown:Y,ownerState:K,children:D.jsx(XE,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":ae,"aria-modal":d,...O,className:Se(X.paper,O.className),ownerState:K,children:D.jsx(Zg.Provider,{value:N,children:p})})})})})});process.env.NODE_ENV!=="production"&&(Qg.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 ZE(e){return Oe("MuiDialogActions",e)}De("MuiDialogActions",["root","spacing"]);const QE=e=>{const{classes:t,disableSpacing:n}=e;return Me({root:["root",!n&&"spacing"]},ZE,t)},JE=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}}}]}),Jg=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},d=QE(l);return D.jsx(JE,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Jg.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 eP(e){return Oe("MuiDialogContent",e)}De("MuiDialogContent",["root","dividers"]);const tP=De("MuiDialogTitle",["root"]),nP=e=>{const{classes:t,dividers:n}=e;return Me({root:["root",n&&"dividers"]},eP,t)},oP=le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(lt(({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:{[`.${tP.root} + &`]:{paddingTop:0}}}]}))),ey=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},d=nP(l);return D.jsx(oP,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(ey.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 rP(e){return Oe("MuiDivider",e)}const Dp=De("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sP=e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:a,textAlign:l,variant:d}=e;return Me({root:["root",t&&"absolute",d,i&&"light",a==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},rP,o)},iP=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]}})(lt(({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)`:ot(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%"}}}]}))),aP=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(lt(({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)`}}]}))),yl=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDivider"}),{absolute:r=!1,children:i,className:a,orientation:l="horizontal",component:d=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:f=!1,role:p=d!=="hr"?"separator":void 0,textAlign:y="center",variant:b="fullWidth",...w}=o,g={...o,absolute:r,component:d,flexItem:u,light:f,orientation:l,role:p,textAlign:y,variant:b},v=sP(g);return D.jsx(iP,{as:d,className:Se(v.root,a),role:p,ref:n,ownerState:g,"aria-orientation":p==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...w,children:i?D.jsx(aP,{className:v.wrapper,ownerState:g,children:i}):null})});yl&&(yl.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(yl.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 lP=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,d={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${be(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=Me(d,eE,t);return{...t,...u}},cP=le(Zl,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Kl(e,t),!n.disableUnderline&&t.underline]}})(lt(({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}},[`&.${wr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${wr.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"},[`&.${wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wr.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(.${wr.disabled}, .${wr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${wr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dn()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),dP=le(Ql,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xl})(lt(({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}}]}))),Bi=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:y={},type:b="text",...w}=o,g={...o,disableUnderline:r,fullWidth:l,inputComponent:u,multiline:f,type:b},v=lP(o),T={root:{ownerState:g},input:{ownerState:g}},P=p??a?mn(T,p??a):T,x=y.root??i.Root??cP,S=y.input??i.Input??dP;return D.jsx(Jl,{slots:{root:x,input:S},componentsProps:P,fullWidth:l,inputComponent:u,multiline:f,ref:n,type:b,...w,classes:v})});process.env.NODE_ENV!=="production"&&(Bi.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:Bt,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});Bi&&(Bi.muiName="Input");function uP(e){return Oe("MuiFormControl",e)}De("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hP=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${be(n)}`,o&&"fullWidth"]};return Me(r,uP,t)},fP=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%"}}]}),la=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:d=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:y=!1,margin:b="none",required:w=!1,size:g="medium",variant:v="outlined",...T}=o,P={...o,color:a,component:l,disabled:d,error:u,fullWidth:p,hiddenLabel:y,margin:b,required:w,size:g,variant:v},x=hP(P),[S,C]=k.useState(()=>{let q=!1;return r&&k.Children.forEach(r,Y=>{if(!wi(Y,["Input","Select"]))return;const H=wi(Y,["Select"])?Y.props.input:Y;H&&Kk(H.props)&&(q=!0)}),q}),[O,A]=k.useState(()=>{let q=!1;return r&&k.Children.forEach(r,Y=>{wi(Y,["Input","Select"])&&(gl(Y.props,!0)||gl(Y.props.inputProps,!0))&&(q=!0)}),q}),[F,z]=k.useState(!1);d&&F&&z(!1);const R=f!==void 0&&!d?f:F;let $;const K=k.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(`
|
|
218
|
+
`))},[]),he=at(ce,S,x.ref,ie),[W,re]=k.useState(!1),Q=On();process.env.NODE_ENV!=="production"&&k.useEffect(()=>{if(Q)return Q.registerEffect()},[Q]);const fe=gr({props:o,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=Q?Q.focused:W,k.useEffect(()=>{!Q&&y&&W&&(re(!1),R&&R())},[Q,y,W,R]);const me=Q&&Q.onFilled,Ce=Q&&Q.onEmpty,ve=k.useCallback(tt=>{gl(tt)?me&&me():Ce&&Ce()},[me,Ce]);nn(()=>{te&&ve({value:ee})},[ee,ve,te]);const xe=tt=>{X&&X(tt),x.onFocus&&x.onFocus(tt),Q&&Q.onFocus?Q.onFocus(tt):re(!0)},$e=tt=>{R&&R(tt),x.onBlur&&x.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.":_o(1));ve({value:hn.value})}x.onChange&&x.onChange(tt,...Mn),$&&$(tt,...Mn)};k.useEffect(()=>{ve(ce.current)},[]);const st=tt=>{ce.current&&tt.currentTarget===tt.target&&ce.current.focus(),K&&K(tt)};let Pe=P,ft=x;F&&Pe==="input"&&(M?(process.env.NODE_ENV!=="production"&&(A||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ft={type:void 0,minRows:M,maxRows:M,...ft}):ft={type:void 0,maxRows:O,minRows:A,...ft},Pe=Ug);const Kt=tt=>{ve(tt.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};k.useEffect(()=>{Q&&Q.setAdornedStart(!!oe)},[Q,oe]);const it={...o,color:fe.color||"primary",disabled:fe.disabled,endAdornment:w,error:fe.error,focused:fe.focused,formControl:Q,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:F,size:fe.size,startAdornment:oe,type:se},Yt=Zk(it),Xt=ne.root||u.Root||Zl,on=B.root||f.root||{},Ue=ne.input||u.Input||Ql;return ft={...ft,...B.input??f.input},D.jsxs(k.Fragment,{children:[!b&&typeof kp=="function"&&(Tp||(Tp=D.jsx(kp,{}))),D.jsxs(Xt,{...on,ref:n,onClick:st,...J,...!Vi(Xt)&&{ownerState:{...it,...on.ownerState}},className:Se(Yt.root,on.className,l,ae&&"MuiInputBase-readOnly"),children:[oe,D.jsx(aa.Provider,{value:null,children:D.jsx(Ue,{"aria-invalid":fe.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:p,disabled:fe.disabled,id:T,onAnimationStart:Kt,name:z,placeholder:H,readOnly:ae,required:fe.required,rows:M,value:ee,onKeyDown:q,onKeyUp:Y,type:se,...ft,...!Vi(Ue)&&{as:Pe,ownerState:{...it,...ft.ownerState}},ref:he,className:Se(Yt.input,ft.className,ae&&"MuiInputBase-readOnly"),onBlur:$e,onChange:Ae,onFocus:xe})}),w,N?N({...fe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(Jl.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:zl,inputProps:s.object,inputRef:Bt,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 Qk(e){return Oe("MuiInput",e)}const Js={...Es,...De("MuiInput",["root","underline","input"])};function Jk(e){return Oe("MuiOutlinedInput",e)}const po={...Es,...De("MuiOutlinedInput",["root","notchedOutline","input"])};function eE(e){return Oe("MuiFilledInput",e)}const wr={...Es,...De("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},tE=an(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),nE={entering:{opacity:1},entered:{opacity:1}},Vr=k.forwardRef(function(t,n){const o=Ns(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:d,in:u,onEnter:f,onEntered:p,onEntering:y,onExit:b,onExited:w,onExiting:g,style:v,timeout:T=r,TransitionComponent:P=Qn,...x}=t,S=k.useRef(null),C=at(S,oa(l),n),O=q=>Y=>{if(q){const H=S.current;Y===void 0?q(H):q(H,Y)}},A=O(y),F=O((q,Y)=>{Dg(q);const H=hl({style:v,timeout:T,easing:d},{mode:"enter"});q.style.webkitTransition=o.transitions.create("opacity",H),q.style.transition=o.transitions.create("opacity",H),f&&f(q,Y)}),z=O(p),R=O(g),$=O(q=>{const Y=hl({style:v,timeout:T,easing:d},{mode:"exit"});q.style.webkitTransition=o.transitions.create("opacity",Y),q.style.transition=o.transitions.create("opacity",Y),b&&b(q)}),K=O(w),X=q=>{i&&i(S.current,q)};return D.jsx(P,{appear:a,in:u,nodeRef:S,onEnter:F,onEntered:z,onEntering:A,onExit:$,onExited:K,onExiting:R,addEndListener:X,timeout:T,...x,children:(q,Y)=>k.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!u?"hidden":void 0,...nE[q],...v,...l.props.style},ref:C,...Y})})});process.env.NODE_ENV!=="production"&&(Vr.propTypes={addEndListener:s.func,appear:s.bool,children:na.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 oE(e){return Oe("MuiBackdrop",e)}De("MuiBackdrop",["root","invisible"]);const rE=e=>{const{ownerState:t,...n}=e;return n},sE=e=>{const{classes:t,invisible:n}=e;return Me({root:["root",n&&"invisible"]},oE,t)},iE=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"}}]}),Eu=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:d,components:u={},componentsProps:f={},slotProps:p={},slots:y={},TransitionComponent:b,transitionDuration:w,...g}=o,v={...o,component:a,invisible:l},T=sE(v),P={transition:b,root:u.Root,...y},x={...f,...p},S={slots:P,slotProps:x},[C,O]=Rn("root",{elementType:iE,externalForwardedProps:S,className:Se(T.root,i),ownerState:v}),[A,F]=Rn("transition",{elementType:Vr,externalForwardedProps:S,ownerState:v}),z=rE(F);return D.jsx(A,{in:d,timeout:w,...g,...z,children:D.jsx(C,{"aria-hidden":!0,...O,classes:T,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Eu.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 aE=De("MuiBox",["root"]),lE=Tg(),Ls=ix({themeId:Xi,defaultTheme:lE,defaultClassName:aE.root,generateClassName:Jm.generate});process.env.NODE_ENV!=="production"&&(Ls.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 cE(e){return Oe("MuiButton",e)}const rs=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"]),qg=k.createContext({});process.env.NODE_ENV!=="production"&&(qg.displayName="ButtonGroupContext");const Gg=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(Gg.displayName="ButtonGroupButtonContext");const dE=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:a}=e,l={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)}`]},d=Me(l,cE,a);return{...a,...d}},Kg=[{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}}}],uE=le(dr,{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]}})(lt(({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"},[`&.${rs.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]},[`&.${rs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${rs.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)",[`&.${rs.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(dn()).map(([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)`:ot(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})`:ot(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})`:ot(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})`:ot(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(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"},[`&.${rs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),hE=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}},...Kg]}),fE=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}},...Kg]}),ds=k.forwardRef(function(t,n){const o=k.useContext(qg),r=k.useContext(Gg),i=Mi(o,t),a=Ke({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:f,disabled:p=!1,disableElevation:y=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:g,fullWidth:v=!1,size:T="medium",startIcon:P,type:x,variant:S="text",...C}=a,O={...a,color:d,component:u,disabled:p,disableElevation:y,disableFocusRipple:b,fullWidth:v,size:T,type:x,variant:S},A=dE(O),F=P&&D.jsx(hE,{className:A.startIcon,ownerState:O,children:P}),z=w&&D.jsx(fE,{className:A.endIcon,ownerState:O,children:w}),R=r||"";return D.jsxs(uE,{ownerState:O,className:Se(o.className,A.root,f,R),component:u,disabled:p,focusRipple:!b,focusVisibleClassName:Se(A.focusVisible,g),ref:n,type:x,...C,classes:A,children:[F,l,z]})});process.env.NODE_ENV!=="production"&&(ds.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 pE(e){return Oe("PrivateSwitchBase",e)}De("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const mE=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 Me(i,pE,t)},gE=le(dr)({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}}]}),yE=le("input",{shouldForwardProp:Dn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Xg=k.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:i,className:a,defaultChecked:l,disabled:d,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:y,inputProps:b,inputRef:w,name:g,onBlur:v,onChange:T,onFocus:P,readOnly:x,required:S=!1,tabIndex:C,type:O,value:A,...F}=t,[z,R]=xo({controlled:r,default:!!l,name:"SwitchBase",state:"checked"}),$=On(),K=M=>{P&&P(M),$&&$.onFocus&&$.onFocus(M)},X=M=>{v&&v(M),$&&$.onBlur&&$.onBlur(M)},q=M=>{if(M.nativeEvent.defaultPrevented)return;const V=M.target.checked;R(V),T&&T(M,V)};let Y=d;$&&typeof Y>"u"&&(Y=$.disabled);const H=O==="checkbox"||O==="radio",ae={...t,checked:z,disabled:Y,disableFocusRipple:u,edge:f},N=mE(ae);return D.jsxs(gE,{component:"span",className:Se(N.root,a),centerRipple:!0,focusRipple:!u,disabled:Y,tabIndex:null,role:void 0,onFocus:K,onBlur:X,ownerState:ae,ref:n,...F,children:[D.jsx(yE,{autoFocus:o,checked:r,defaultChecked:l,className:N.input,disabled:Y,id:H?y:void 0,name:g,onChange:q,readOnly:x,ref:w,required:S,ownerState:ae,tabIndex:C,type:O,...O==="checkbox"&&A===void 0?{}:{value:A},...b}),z?i:p]})});process.env.NODE_ENV!=="production"&&(Xg.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:Bt,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 vE=an(D.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"),bE=an(D.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"),wE=an(D.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 CE(e){return Oe("MuiCheckbox",e)}const Jc=De("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),SE=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,i={root:["root",n&&"indeterminate",`color${be(o)}`,`size${be(r)}`]},a=Me(i,CE,t);return{...t,...a}},_E=le(Xg,{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)}`]]}})(lt(({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})`:ot(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{[`&.${Jc.checked}, &.${Jc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Jc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),xE=D.jsx(bE,{}),RE=D.jsx(vE,{}),TE=D.jsx(wE,{}),Pu=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:r=xE,color:i="primary",icon:a=RE,indeterminate:l=!1,indeterminateIcon:d=TE,inputProps:u,size:f="medium",disableRipple:p=!1,className:y,...b}=o,w=l?d:a,g=l?d:r,v={...o,disableRipple:p,color:i,indeterminate:l,size:f},T=SE(v);return D.jsx(_E,{type:"checkbox",inputProps:{"data-indeterminate":l,...u},icon:k.cloneElement(w,{fontSize:w.props.fontSize??f}),checkedIcon:k.cloneElement(g,{fontSize:g.props.fontSize??f}),ownerState:v,ref:n,className:Se(T.root,y),disableRipple:p,...b,classes:T})});process.env.NODE_ENV!=="production"&&(Pu.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:Bt,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?Go(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _i(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ep(e){return parseInt(Go(e).getComputedStyle(e).paddingRight,10)||0}function EE(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 Pp(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),d=!EE(a);l&&d&&_i(a,r)})}function ed(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function PE(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(kE(o)){const a=pg(Go(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Ep(o)+a}px`;const l=gn(o).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Ep(d)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=gn(o).body;else{const a=o.parentElement,l=Go(o);i=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function DE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class OE{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&&_i(t.modalRef,!1);const r=DE(n);Pp(n,t.mount,t.modalRef,r,!0);const i=ed(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=ed(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=PE(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=ed(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&&_i(t.modalRef,n),Pp(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&&_i(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const ME=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IE(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 NE(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 AE(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||NE(e))}function FE(e){const t=[],n=[];return Array.from(e.querySelectorAll(ME)).forEach((o,r)=>{const i=IE(o);i===-1||!AE(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 LE(){return!0}function ji(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=FE,isEnabled:a=LE,open:l}=e,d=k.useRef(!1),u=k.useRef(null),f=k.useRef(null),p=k.useRef(null),y=k.useRef(null),b=k.useRef(!1),w=k.useRef(null),g=at(oa(t),w),v=k.useRef(null);k.useEffect(()=>{!l||!w.current||(b.current=!n)},[n,l]),k.useEffect(()=>{if(!l||!w.current)return;const x=gn(w.current);return w.current.contains(x.activeElement)||(w.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
|
+
`)),w.current.setAttribute("tabIndex","-1")),b.current&&w.current.focus()),()=>{r||(p.current&&p.current.focus&&(d.current=!0,p.current.focus()),p.current=null)}},[l]),k.useEffect(()=>{if(!l||!w.current)return;const x=gn(w.current),S=A=>{v.current=A,!(o||!a()||A.key!=="Tab")&&x.activeElement===w.current&&A.shiftKey&&(d.current=!0,f.current&&f.current.focus())},C=()=>{const A=w.current;if(A===null)return;if(!x.hasFocus()||!a()||d.current){d.current=!1;return}if(A.contains(x.activeElement)||o&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!b.current)return;let F=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(F=i(w.current)),F.length>0){const z=!!(v.current?.shiftKey&&v.current?.key==="Tab"),R=F[0],$=F[F.length-1];typeof R!="string"&&typeof $!="string"&&(z?$.focus():R.focus())}else A.focus()};x.addEventListener("focusin",C),x.addEventListener("keydown",S,!0);const O=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(O),x.removeEventListener("focusin",C),x.removeEventListener("keydown",S,!0)}},[n,o,r,a,l,i]);const T=x=>{p.current===null&&(p.current=x.relatedTarget),b.current=!0,y.current=x.target;const S=t.props.onFocus;S&&S(x)},P=x=>{p.current===null&&(p.current=x.relatedTarget),b.current=!0};return D.jsxs(k.Fragment,{children:[D.jsx("div",{tabIndex:l?0:-1,onFocus:P,ref:u,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:g,onFocus:T}),D.jsx("div",{tabIndex:l?0:-1,onFocus:P,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ji.propTypes={children:na,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(ji.propTypes=dg(ji.propTypes));function $E(e){return typeof e=="function"?e():e}function VE(e){return e?e.props.hasOwnProperty("in"):!1}const Ba=new OE;function jE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:d,open:u,rootRef:f}=e,p=k.useRef({}),y=k.useRef(null),b=k.useRef(null),w=at(b,f),[g,v]=k.useState(!u),T=VE(l);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const x=()=>gn(y.current),S=()=>(p.current.modalRef=b.current,p.current.mount=y.current,p.current),C=()=>{Ba.mount(S(),{disableScrollLock:o}),b.current&&(b.current.scrollTop=0)},O=Te(()=>{const Y=$E(t)||x().body;Ba.add(S(),Y),b.current&&C()}),A=()=>Ba.isTopModal(S()),F=Te(Y=>{y.current=Y,Y&&(u&&A()?C():b.current&&_i(b.current,P))}),z=k.useCallback(()=>{Ba.remove(S(),P)},[P]);k.useEffect(()=>()=>{z()},[z]),k.useEffect(()=>{u?O():(!T||!r)&&z()},[u,z,T,r,O]);const R=Y=>H=>{Y.onKeyDown?.(H),!(H.key!=="Escape"||H.which===229||!A())&&(n||(H.stopPropagation(),d&&d(H,"escapeKeyDown")))},$=Y=>H=>{Y.onClick?.(H),H.target===H.currentTarget&&d&&d(H,"backdropClick")};return{getRootProps:(Y={})=>{const H=bg(e);delete H.onTransitionEnter,delete H.onTransitionExited;const ae={...H,...Y};return{role:"presentation",...ae,onKeyDown:R(ae),ref:w}},getBackdropProps:(Y={})=>{const H=Y;return{"aria-hidden":!0,...H,onClick:$(H),open:u}},getTransitionProps:()=>{const Y=()=>{v(!1),i&&i()},H=()=>{v(!0),a&&a(),r&&z()};return{onEnter:zf(Y,l?.props.onEnter),onExited:zf(H,l?.props.onExited)}},rootRef:w,portalRef:F,isTopModal:A,exited:g,hasTransition:T}}function BE(e){return Oe("MuiModal",e)}De("MuiModal",["root","hidden","backdrop"]);const WE=e=>{const{open:t,exited:n,classes:o}=e;return Me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},BE,o)},HE=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(lt(({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"}}]}))),zE=le(Eu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Du=k.forwardRef(function(t,n){const o=Ke({name:"MuiModal",props:t}),{BackdropComponent:r=zE,BackdropProps:i,classes:a,className:l,closeAfterTransition:d=!1,children:u,container:f,component:p,components:y={},componentsProps:b={},disableAutoFocus:w=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:v=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:O,onClose:A,onTransitionEnter:F,onTransitionExited:z,open:R,slotProps:$={},slots:K={},theme:X,...q}=o,Y={...o,closeAfterTransition:d,disableAutoFocus:w,disableEnforceFocus:g,disableEscapeKeyDown:v,disablePortal:T,disableRestoreFocus:P,disableScrollLock:x,hideBackdrop:S,keepMounted:C},{getRootProps:H,getBackdropProps:ae,getTransitionProps:N,portalRef:M,isTopModal:V,exited:B,hasTransition:ne}=jE({...Y,rootRef:n}),oe={...Y,exited:B},se=WE(oe),j={};if(u.props.tabIndex===void 0&&(j.tabIndex="-1"),ne){const{onEnter:W,onExited:re}=N();j.onEnter=W,j.onExited=re}const J={...q,slots:{root:y.Root,backdrop:y.Backdrop,...K},slotProps:{...b,...$}},[ee,te]=Rn("root",{elementType:HE,externalForwardedProps:J,getSlotProps:H,additionalProps:{ref:n,as:p},ownerState:oe,className:Se(l,se?.root,!oe.open&&oe.exited&&se?.hidden)}),[ce,ie]=Rn("backdrop",{elementType:r,externalForwardedProps:J,additionalProps:i,getSlotProps:W=>ae({...W,onClick:re=>{O&&O(re),W?.onClick&&W.onClick(re)}}),className:Se(i?.className,se?.backdrop),ownerState:oe}),he=at(i?.ref,ie.ref);return!C&&!R&&(!ne||B)?null:D.jsx($i,{ref:M,container:f,disablePortal:T,children:D.jsxs(ee,{...te,children:[!S&&r?D.jsx(ce,{...ie,ref:he}):null,D.jsx(ji,{disableEnforceFocus:g,disableAutoFocus:w,disableRestoreFocus:P,isEnabled:V,open:R,children:k.cloneElement(u,j)})]})})});process.env.NODE_ENV!=="production"&&(Du.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:na.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([qo,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 YE(e){return Oe("MuiDialog",e)}const xi=De("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Zg=k.createContext({});process.env.NODE_ENV!=="production"&&(Zg.displayName="DialogContext");const UE=le(Eu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),qE=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 Me(a,YE,t)},GE=le(Du,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),KE=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"}}}]}),XE=le(As,{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]}})(lt(({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)`,[`&.${xi.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}`,[`&.${xi.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,[`&.${xi.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Qg=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialog"}),r=Ns(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:u,BackdropProps:f,children:p,className:y,disableEscapeKeyDown:b=!1,fullScreen:w=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:T,onClick:P,onClose:x,open:S,PaperComponent:C=As,PaperProps:O={},scroll:A="paper",TransitionComponent:F=Vr,transitionDuration:z=i,TransitionProps:R,...$}=o,K={...o,disableEscapeKeyDown:b,fullScreen:w,fullWidth:g,maxWidth:v,scroll:A},X=qE(K),q=k.useRef(),Y=M=>{q.current=M.target===M.currentTarget},H=M=>{P&&P(M),q.current&&(q.current=null,T&&T(M),x&&x(M,"backdropClick"))},ae=pr(l),N=k.useMemo(()=>({titleId:ae}),[ae]);return D.jsx(GE,{className:Se(X.root,y),closeAfterTransition:!0,components:{Backdrop:UE},componentsProps:{backdrop:{transitionDuration:z,as:u,...f}},disableEscapeKeyDown:b,onClose:x,open:S,ref:n,onClick:H,ownerState:K,...$,children:D.jsx(F,{appear:!0,in:S,timeout:z,role:"presentation",...R,children:D.jsx(KE,{className:Se(X.container),onMouseDown:Y,ownerState:K,children:D.jsx(XE,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":ae,"aria-modal":d,...O,className:Se(X.paper,O.className),ownerState:K,children:D.jsx(Zg.Provider,{value:N,children:p})})})})})});process.env.NODE_ENV!=="production"&&(Qg.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 ZE(e){return Oe("MuiDialogActions",e)}De("MuiDialogActions",["root","spacing"]);const QE=e=>{const{classes:t,disableSpacing:n}=e;return Me({root:["root",!n&&"spacing"]},ZE,t)},JE=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}}}]}),Jg=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},d=QE(l);return D.jsx(JE,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Jg.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 eP(e){return Oe("MuiDialogContent",e)}De("MuiDialogContent",["root","dividers"]);const tP=De("MuiDialogTitle",["root"]),nP=e=>{const{classes:t,dividers:n}=e;return Me({root:["root",n&&"dividers"]},eP,t)},oP=le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(lt(({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:{[`.${tP.root} + &`]:{paddingTop:0}}}]}))),ey=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},d=nP(l);return D.jsx(oP,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(ey.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 rP(e){return Oe("MuiDivider",e)}const Dp=De("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sP=e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:a,textAlign:l,variant:d}=e;return Me({root:["root",t&&"absolute",d,i&&"light",a==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},rP,o)},iP=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]}})(lt(({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)`:ot(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%"}}}]}))),aP=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(lt(({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)`}}]}))),yl=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDivider"}),{absolute:r=!1,children:i,className:a,orientation:l="horizontal",component:d=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:f=!1,role:p=d!=="hr"?"separator":void 0,textAlign:y="center",variant:b="fullWidth",...w}=o,g={...o,absolute:r,component:d,flexItem:u,light:f,orientation:l,role:p,textAlign:y,variant:b},v=sP(g);return D.jsx(iP,{as:d,className:Se(v.root,a),role:p,ref:n,ownerState:g,"aria-orientation":p==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...w,children:i?D.jsx(aP,{className:v.wrapper,ownerState:g,children:i}):null})});yl&&(yl.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(yl.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 lP=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,d={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${be(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=Me(d,eE,t);return{...t,...u}},cP=le(Zl,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Kl(e,t),!n.disableUnderline&&t.underline]}})(lt(({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}},[`&.${wr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${wr.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"},[`&.${wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wr.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(.${wr.disabled}, .${wr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${wr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dn()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),dP=le(Ql,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xl})(lt(({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}}]}))),Bi=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:y={},type:b="text",...w}=o,g={...o,disableUnderline:r,fullWidth:l,inputComponent:u,multiline:f,type:b},v=lP(o),T={root:{ownerState:g},input:{ownerState:g}},P=p??a?mn(T,p??a):T,x=y.root??i.Root??cP,S=y.input??i.Input??dP;return D.jsx(Jl,{slots:{root:x,input:S},componentsProps:P,fullWidth:l,inputComponent:u,multiline:f,ref:n,type:b,...w,classes:v})});process.env.NODE_ENV!=="production"&&(Bi.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:Bt,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});Bi&&(Bi.muiName="Input");function uP(e){return Oe("MuiFormControl",e)}De("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hP=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${be(n)}`,o&&"fullWidth"]};return Me(r,uP,t)},fP=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%"}}]}),la=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:d=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:y=!1,margin:b="none",required:w=!1,size:g="medium",variant:v="outlined",...T}=o,P={...o,color:a,component:l,disabled:d,error:u,fullWidth:p,hiddenLabel:y,margin:b,required:w,size:g,variant:v},x=hP(P),[S,C]=k.useState(()=>{let q=!1;return r&&k.Children.forEach(r,Y=>{if(!wi(Y,["Input","Select"]))return;const H=wi(Y,["Select"])?Y.props.input:Y;H&&Kk(H.props)&&(q=!0)}),q}),[O,A]=k.useState(()=>{let q=!1;return r&&k.Children.forEach(r,Y=>{wi(Y,["Input","Select"])&&(gl(Y.props,!0)||gl(Y.props.inputProps,!0))&&(q=!0)}),q}),[F,z]=k.useState(!1);d&&F&&z(!1);const R=f!==void 0&&!d?f:F;let $;const K=k.useRef(!1);process.env.NODE_ENV!=="production"&&($=()=>(K.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
220
220
|
`)),K.current=!0,()=>{K.current=!1}));const X=k.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:a,disabled:d,error:u,filled:O,focused:R,fullWidth:p,hiddenLabel:y,size:g,onBlur:()=>{z(!1)},onEmpty:()=>{A(!1)},onFilled:()=>{A(!0)},onFocus:()=>{z(!0)},registerEffect:$,required:w,variant:v}),[S,a,d,u,O,R,p,y,$,w,g,v]);return D.jsx(aa.Provider,{value:X,children:D.jsx(fP,{as:l,ownerState:P,className:Se(x.root,i),ref:n,...T,children:r})})});process.env.NODE_ENV!=="production"&&(la.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 pP(e){return Oe("MuiFormControlLabel",e)}const vi=De("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mP=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 Me(a,pP,t)},gP=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vi.label}`]:t.label},t.root,t[`labelPlacement${be(n.labelPlacement)}`]]}})(lt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${vi.disabled}`]:{cursor:"default"},[`& .${vi.label}`]:{[`&.${vi.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}}]}))),yP=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(lt(({theme:e})=>({[`&.${vi.error}`]:{color:(e.vars||e).palette.error.main}}))),tl=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormControlLabel"}),{checked:r,className:i,componentsProps:a={},control:l,disabled:d,disableTypography:u,inputRef:f,label:p,labelPlacement:y="end",name:b,onChange:w,required:g,slots:v={},slotProps:T={},value:P,...x}=o,S=On(),C=d??l.props.disabled??S?.disabled,O=g??l.props.required,A={disabled:C,required:O};["checked","name","onChange","value","inputRef"].forEach(Y=>{typeof l.props[Y]>"u"&&typeof o[Y]<"u"&&(A[Y]=o[Y])});const F=gr({props:o,muiFormControl:S,states:["error"]}),z={...o,disabled:C,labelPlacement:y,required:O,error:F.error},R=mP(z),$={slots:v,slotProps:{...a,...T}},[K,X]=Rn("typography",{elementType:Tn,externalForwardedProps:$,ownerState:z});let q=p;return q!=null&&q.type!==Tn&&!u&&(q=D.jsx(K,{component:"span",...X,className:Se(R.label,X?.className),children:q})),D.jsxs(gP,{className:Se(R.root,i),ownerState:z,ref:n,...x,children:[k.cloneElement(l,A),O?D.jsxs("div",{children:[q,D.jsxs(yP,{ownerState:z,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):q]})});process.env.NODE_ENV!=="production"&&(tl.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:Bt,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 vP(e){return Oe("MuiFormGroup",e)}De("MuiFormGroup",["root","row","error"]);const bP=e=>{const{classes:t,row:n,error:o}=e;return Me({root:["root",n&&"row",o&&"error"]},vP,t)},wP=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"}}]}),ty=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormGroup"}),{className:r,row:i=!1,...a}=o,l=On(),d=gr({props:o,muiFormControl:l,states:["error"]}),u={...o,row:i,error:d.error},f=bP(u);return D.jsx(wP,{className:Se(f.root,r),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(ty.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 CP(e){return Oe("MuiFormHelperText",e)}const Op=De("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Mp;const SP=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:l,required:d}=e,u={root:["root",r&&"disabled",i&&"error",o&&`size${be(o)}`,n&&"contained",l&&"focused",a&&"filled",d&&"required"]};return Me(u,CP,t)},_P=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]}})(lt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Op.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Op.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}}]}))),Ou=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:d,filled:u,focused:f,margin:p,required:y,variant:b,...w}=o,g=On(),v=gr({props:o,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),T={...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 T.ownerState;const P=SP(T);return D.jsx(_P,{as:a,className:Se(P.root,i),ref:n,...w,ownerState:T,children:r===" "?Mp||(Mp=D.jsx("span",{className:"notranslate",children:""})):r})});process.env.NODE_ENV!=="production"&&(Ou.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 xP(e){return Oe("MuiFormLabel",e)}const Ri=De("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),RP=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:l}=e,d={root:["root",`color${be(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Me(d,xP,t)},TP=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(lt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{[`&.${Ri.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ri.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ri.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),kP=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(lt(({theme:e})=>({[`&.${Ri.error}`]:{color:(e.vars||e).palette.error.main}}))),ny=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:d,error:u,filled:f,focused:p,required:y,...b}=o,w=On(),g=gr({props:o,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),v={...o,color:g.color||"primary",component:l,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},T=RP(v);return D.jsxs(TP,{as:l,ownerState:v,className:Se(T.root,i),ref:n,...b,children:[r,g.required&&D.jsxs(kP,{ownerState:v,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(ny.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 $d(e){return`scale(${e}, ${e**2})`}const EP={entering:{opacity:1,transform:$d(1)},entered:{opacity:1,transform:"none"}},td=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wi=k.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:d,onEntered:u,onEntering:f,onExit:p,onExited:y,onExiting:b,style:w,timeout:g="auto",TransitionComponent:v=Qn,...T}=t,P=fg(),x=k.useRef(),S=Ns(),C=k.useRef(null),O=at(C,oa(i),n),A=Y=>H=>{if(Y){const ae=C.current;H===void 0?Y(ae):Y(ae,H)}},F=A(f),z=A((Y,H)=>{Dg(Y);const{duration:ae,delay:N,easing:M}=hl({style:w,timeout:g,easing:a},{mode:"enter"});let V;g==="auto"?(V=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=V):V=ae,Y.style.transition=[S.transitions.create("opacity",{duration:V,delay:N}),S.transitions.create("transform",{duration:td?V:V*.666,delay:N,easing:M})].join(","),d&&d(Y,H)}),R=A(u),$=A(b),K=A(Y=>{const{duration:H,delay:ae,easing:N}=hl({style:w,timeout:g,easing:a},{mode:"exit"});let M;g==="auto"?(M=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=M):M=H,Y.style.transition=[S.transitions.create("opacity",{duration:M,delay:ae}),S.transitions.create("transform",{duration:td?M:M*.666,delay:td?ae:ae||M*.333,easing:N})].join(","),Y.style.opacity=0,Y.style.transform=$d(.75),p&&p(Y)}),X=A(y),q=Y=>{g==="auto"&&P.start(x.current||0,Y),o&&o(C.current,Y)};return D.jsx(v,{appear:r,in:l,nodeRef:C,onEnter:z,onEntered:R,onEntering:F,onExit:K,onExited:X,onExiting:$,addEndListener:q,timeout:g==="auto"?null:g,...T,children:(Y,H)=>k.cloneElement(i,{style:{opacity:0,transform:$d(.75),visibility:Y==="exited"&&!l?"hidden":void 0,...EP[Y],...w,...i.props.style},ref:O,...H})})});process.env.NODE_ENV!=="production"&&(Wi.propTypes={addEndListener:s.func,appear:s.bool,children:na.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})])});Wi&&(Wi.muiSupportAuto=!0);const PP=e=>{const{classes:t,disableUnderline:n}=e,r=Me({root:["root",!n&&"underline"],input:["input"]},Qk,t);return{...t,...r}},DP=le(Zl,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Kl(e,t),!n.disableUnderline&&t.underline]}})(lt(({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"},[`&.${Js.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Js.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(.${Js.disabled}, .${Js.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Js.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dn()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),OP=le(Ql,{name:"MuiInput",slot:"Input",overridesResolver:Xl})({}),Hi=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:p={},type:y="text",...b}=o,w=PP(o),v={root:{ownerState:{disableUnderline:r}}},T=f??a?mn(f??a,v):v,P=p.root??i.Root??DP,x=p.input??i.Input??OP;return D.jsx(Jl,{slots:{root:P,input:x},slotProps:T,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:y,...b,classes:w})});process.env.NODE_ENV!=="production"&&(Hi.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:Bt,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});Hi&&(Hi.muiName="Input");function MP(e){return Oe("MuiInputAdornment",e)}const Ip=De("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Np;const IP=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${be(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},NP=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",r&&`position${be(r)}`,a,o&&"hiddenLabel",i&&`size${be(i)}`]};return Me(l,MP,t)},AP=le("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:IP})(lt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Ip.positionStart}&:not(.${Ip.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Mu=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:d=!1,position:u,variant:f,...p}=o,y=On()||{};let b=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&&!b&&(b=y.variant);const w={...o,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:u,variant:b},g=NP(w);return D.jsx(aa.Provider,{value:null,children:D.jsx(AP,{as:a,ownerState:w,className:Se(g.root,i),ref:n,...p,children:typeof r=="string"&&!d?D.jsx(Tn,{color:"textSecondary",children:r}):D.jsxs(k.Fragment,{children:[u==="start"?Np||(Np=D.jsx("span",{className:"notranslate",children:""})):null,r]})})})});process.env.NODE_ENV!=="production"&&(Mu.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 FP(e){return Oe("MuiInputLabel",e)}De("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const LP=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:l}=e,d={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="normal"&&`size${be(o)}`,a],asterisk:[l&&"asterisk"]},u=Me(d,FP,t);return{...t,...u}},$P=le(ny,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ri.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]]}})(lt(({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)"}}]}))),ca=k.forwardRef(function(t,n){const o=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:d,...u}=o,f=On();let p=a;typeof p>"u"&&f&&(p=f.filled||f.focused||f.adornedStart);const y=gr({props:o,muiFormControl:f,states:["size","variant","required","focused"]}),b={...o,disableAnimation:r,formControl:f,shrink:p,size:y.size,variant:y.variant,required:y.required,focused:y.focused},w=LP(b);return D.jsx($P,{"data-shrink":p,ref:n,className:Se(w.root,d),...u,ownerState:b,classes:w})});process.env.NODE_ENV!=="production"&&(ca.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 Ho=k.createContext({});process.env.NODE_ENV!=="production"&&(Ho.displayName="ListContext");function VP(e){return Oe("MuiList",e)}De("MuiList",["root","padding","dense","subheader"]);const jP=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Me({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},VP,t)},BP=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}}]}),Iu=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:u,...f}=o,p=k.useMemo(()=>({dense:l}),[l]),y={...o,component:a,dense:l,disablePadding:d},b=jP(y);return D.jsx(Ho.Provider,{value:p,children:D.jsxs(BP,{as:a,className:Se(b.root,i),ref:n,ownerState:y,...f,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Iu.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 WP(e){return Oe("MuiListItem",e)}De("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const HP=De("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function zP(e){return Oe("MuiListItemSecondaryAction",e)}De("MuiListItemSecondaryAction",["root","disableGutters"]);const YP=e=>{const{disableGutters:t,classes:n}=e;return Me({root:["root",t&&"disableGutters"]},zP,n)},UP=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}}]}),Nu=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=k.useContext(Ho),l={...o,disableGutters:a.disableGutters},d=YP(l);return D.jsx(UP,{className:Se(d.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Nu.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])});Nu.muiName="ListItemSecondaryAction";const qP=(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]},GP=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Me({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},WP,n)},KP=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:qP})(lt(({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:{[`& > .${HP.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}}]}))),XP=le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),oy=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:l,components:d={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:p,...y}={},dense:b=!1,disableGutters:w=!1,disablePadding:g=!1,divider:v=!1,secondaryAction:T,slotProps:P={},slots:x={},...S}=o,C=k.useContext(Ho),O=k.useMemo(()=>({dense:b||C.dense||!1,alignItems:r,disableGutters:w}),[r,C.dense,b,w]),A=k.useRef(null),F=k.Children.toArray(i),z=F.length&&wi(F[F.length-1],["ListItemSecondaryAction"]),R={...o,alignItems:r,dense:O.dense,disableGutters:w,disablePadding:g,divider:v,hasSecondaryAction:z},$=GP(R),K=at(A,n),X=x.root||d.Root||KP,q=P.root||u.root||{},Y={className:Se($.root,q.className,a),...S};let H=l||"li";return z?(H=!Y.component&&!l?"div":H,f==="li"&&(H==="li"?H="div":Y.component==="li"&&(Y.component="div")),D.jsx(Ho.Provider,{value:O,children:D.jsxs(XP,{as:f,className:Se($.container,p),ref:K,ownerState:R,...y,children:[D.jsx(X,{...q,...!Vi(X)&&{as:H,ownerState:{...R,...q.ownerState}},...Y,children:F}),F.pop()]})})):D.jsx(Ho.Provider,{value:O,children:D.jsxs(X,{...q,as:H,ref:K,...!Vi(X)&&{ownerState:{...R,...q.ownerState}},...Y,children:[F,T&&D.jsx(Nu,{children:T})]})})});process.env.NODE_ENV!=="production"&&(oy.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:fr(s.node,e=>{const t=k.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(wi(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:zl,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 Ap=De("MuiListItemIcon",["root","alignItemsFlexStart"]);function ZP(e){return Oe("MuiListItemText",e)}const us=De("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),QP=e=>{const{classes:t,inset:n,primary:o,secondary:r,dense:i}=e;return Me({root:["root",n&&"inset",i&&"dense",o&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},ZP,t)},JP=le("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${us.primary}`]:t.primary},{[`& .${us.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${fp.root}:where(& .${us.primary})`]:{display:"block"},[`.${fp.root}:where(& .${us.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Vd=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItemText"}),{children:r,className:i,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:p,...y}=o,{dense:b}=k.useContext(Ho);let w=d??r,g=f;const v={...o,disableTypography:a,inset:l,primary:!!w,secondary:!!g,dense:b},T=QP(v);return w!=null&&w.type!==Tn&&!a&&(w=D.jsx(Tn,{variant:b?"body2":"body1",className:T.primary,component:u?.variant?void 0:"span",...u,children:w})),g!=null&&g.type!==Tn&&!a&&(g=D.jsx(Tn,{variant:"body2",className:T.secondary,color:"textSecondary",...p,children:g})),D.jsxs(JP,{className:Se(T.root,i),ownerState:v,ref:n,...y,children:[w,g]})});process.env.NODE_ENV!=="production"&&(Vd.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 nd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ry(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 ei(e,t,n,o,r,i){let a=!1,l=r(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const d=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!ry(l,i)||d)l=r(e,l,n);else return l.focus(),!0}return!1}const sy=k.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu",...y}=t,b=k.useRef(null),w=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nn(()=>{r&&b.current.focus()},[r]),k.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const C=!b.current.style.width;if(x.clientHeight<b.current.clientHeight&&C){const O=`${pg(Go(x))}px`;b.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=O,b.current.style.width=`calc(100% + ${O})`}return b.current}}),[]);const g=x=>{const S=b.current,C=x.key;if(x.ctrlKey||x.metaKey||x.altKey){f&&f(x);return}const A=gn(S).activeElement;if(C==="ArrowDown")x.preventDefault(),ei(S,A,u,d,nd);else if(C==="ArrowUp")x.preventDefault(),ei(S,A,u,d,Fp);else if(C==="Home")x.preventDefault(),ei(S,null,u,d,nd);else if(C==="End")x.preventDefault(),ei(S,null,u,d,Fp);else if(C.length===1){const F=w.current,z=C.toLowerCase(),R=performance.now();F.keys.length>0&&(R-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&z!==F.keys[0]&&(F.repeating=!1)),F.lastTime=R,F.keys.push(z);const $=A&&!F.repeating&&ry(A,F);F.previousKeyMatched&&($||ei(S,A,!1,d,nd,F))?x.preventDefault():F.previousKeyMatched=!1}f&&f(x)},v=at(b,n);let T=-1;k.Children.forEach(a,(x,S)=>{if(!k.isValidElement(x)){T===S&&(T+=1,T>=a.length&&(T=-1));return}process.env.NODE_ENV!=="production"&&yu.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
221
221
|
`)),x.props.disabled||(p==="selectedMenu"&&x.props.selected||T===-1)&&(T=S),T===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(T+=1,T>=a.length&&(T=-1))});const P=k.Children.map(a,(x,S)=>{if(S===T){const C={};return i&&(C.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(C.tabIndex=0),k.cloneElement(x,C)}return x});return D.jsx(Iu,{role:"menu",ref:v,className:l,onKeyDown:g,tabIndex:r?0:-1,...y,children:P})});process.env.NODE_ENV!=="production"&&(sy.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function e1(e){return Oe("MuiPopover",e)}De("MuiPopover",["root","paper"]);function Lp(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function $p(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Vp(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function nl(e){return typeof e=="function"?e():e}const t1=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},e1,t)},n1=le(Du,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iy=le(As,{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}),ay=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:u,className:f,container:p,elevation:y=8,marginThreshold:b=16,open:w,PaperProps:g={},slots:v={},slotProps:T={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:x=Wi,transitionDuration:S="auto",TransitionProps:{onEntering:C,...O}={},disableScrollLock:A=!1,...F}=o,z=T?.paper??g,R=k.useRef(),$={...o,anchorOrigin:a,anchorReference:d,elevation:y,marginThreshold:b,externalPaperSlotProps:z,transformOrigin:P,TransitionComponent:x,transitionDuration:S,TransitionProps:O},K=t1($),X=k.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const ie=nl(i),he=ie&&ie.nodeType===1?ie:gn(R.current).body,W=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
222
|
`))}return{top:W.top+Lp(W,a.vertical),left:W.left+$p(W,a.horizontal)}},[i,a.horizontal,a.vertical,l,d]),q=k.useCallback(ie=>({vertical:Lp(ie,P.vertical),horizontal:$p(ie,P.horizontal)}),[P.horizontal,P.vertical]),Y=k.useCallback(ie=>{const he={width:ie.offsetWidth,height:ie.offsetHeight},W=q(he);if(d==="none")return{top:null,left:null,transformOrigin:Vp(W)};const re=X();let Q=re.top-W.vertical,fe=re.left-W.horizontal;const me=Q+he.height,Ce=fe+he.width,ve=Go(nl(i)),xe=ve.innerHeight-b,$e=ve.innerWidth-b;if(b!==null&&Q<b){const Ae=Q-b;Q-=Ae,W.vertical+=Ae}else if(b!==null&&me>xe){const Ae=me-xe;Q-=Ae,W.vertical+=Ae}if(process.env.NODE_ENV!=="production"&&he.height>xe&&he.height&&xe&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${he.height-xe}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
@@ -261,17 +261,17 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
261
261
|
transparent,
|
|
262
262
|
${(e.vars||e).palette.action.hover},
|
|
263
263
|
transparent
|
|
264
|
-
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:L1||{"&::after":{animation:`${Bd} 2s linear 0.5s infinite`}}}]}})),py=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:a="span",height:l,style:d,variant:u="text",width:f,...p}=o,y={...o,animation:r,component:a,variant:u,hasChildren:!!p.children},b=A1(y);return D.jsx($1,{as:a,ref:n,className:Se(b.root,i),ownerState:y,...p,style:{width:f,height:l,...d}})});process.env.NODE_ENV!=="production"&&(py.propTypes={animation:s.oneOf(["pulse","wave",!1]),children:s.node,classes:s.object,className:s.string,component:s.elementType,height:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rectangular","rounded","text"]),s.string]),width:s.oneOfType([s.number,s.string])});function V1(e){return Oe("MuiTextField",e)}De("MuiTextField",["root"]);const j1={standard:Hi,filled:Bi,outlined:Ps},B1=e=>{const{classes:t}=e;return Me({root:["root"]},V1,t)},W1=le(la,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ds=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:b=!1,helperText:w,id:g,InputLabelProps:v,inputProps:T,InputProps:P,inputRef:x,label:S,maxRows:C,minRows:O,multiline:A=!1,name:F,onBlur:z,onChange:R,onFocus:$,placeholder:K,required:X=!1,rows:q,select:Y=!1,SelectProps:H,slots:ae={},slotProps:N={},type:M,value:V,variant:B="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:b,multiline:A,required:X,select:Y,variant:B},se=B1(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=pr(g),J=w&&j?`${j}-helper-text`:void 0,ee=S&&j?`${j}-label`:void 0,te=j1[B],ce={slots:ae,slotProps:{input:P,inputLabel:v,htmlInput:T,formHelperText:y,select:H,...N}},ie={},he=ce.slotProps.inputLabel;B==="outlined"&&(he&&typeof he.shrink<"u"&&(ie.notched=he.shrink),ie.label=S),Y&&((!H||!H.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const[W,re]=Rn("input",{elementType:te,externalForwardedProps:ce,additionalProps:ie,ownerState:oe}),[Q,fe]=Rn("inputLabel",{elementType:ca,externalForwardedProps:ce,ownerState:oe}),[me,Ce]=Rn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ve,xe]=Rn("formHelperText",{elementType:Ou,externalForwardedProps:ce,ownerState:oe}),[$e,Ae]=Rn("select",{elementType:da,externalForwardedProps:ce,ownerState:oe}),st=D.jsx(W,{"aria-describedby":J,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:b,multiline:A,name:F,rows:q,maxRows:C,minRows:O,type:M,value:V,id:j,inputRef:x,onBlur:z,onChange:R,onFocus:$,placeholder:K,inputProps:Ce,slots:{input:ae.htmlInput?me:void 0},...re});return D.jsxs(W1,{className:Se(se.root,l),disabled:f,error:p,fullWidth:b,ref:n,required:X,color:d,variant:B,ownerState:oe,...ne,children:[S!=null&&S!==""&&D.jsx(Q,{htmlFor:j,id:ee,...fe,children:S}),Y?D.jsx($e,{"aria-describedby":J,id:j,labelId:ee,value:V,input:st,...Ae,children:a}):st,w&&D.jsx(ve,{id:J,...xe,children:w})]})});process.env.NODE_ENV!=="production"&&(Ds.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:Bt,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 H1=le(py)({width:"100%",borderRadius:"10px"}),z1={Skeleton:H1},Y1=({height:e="calc(100% - 1em)"})=>D.jsx(z1.Skeleton,{variant:"rectangular",height:e});var Ve=(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))(Ve||{}),sn=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(sn||{}),
|
|
264
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:L1||{"&::after":{animation:`${Bd} 2s linear 0.5s infinite`}}}]}})),py=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:a="span",height:l,style:d,variant:u="text",width:f,...p}=o,y={...o,animation:r,component:a,variant:u,hasChildren:!!p.children},b=A1(y);return D.jsx($1,{as:a,ref:n,className:Se(b.root,i),ownerState:y,...p,style:{width:f,height:l,...d}})});process.env.NODE_ENV!=="production"&&(py.propTypes={animation:s.oneOf(["pulse","wave",!1]),children:s.node,classes:s.object,className:s.string,component:s.elementType,height:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rectangular","rounded","text"]),s.string]),width:s.oneOfType([s.number,s.string])});function V1(e){return Oe("MuiTextField",e)}De("MuiTextField",["root"]);const j1={standard:Hi,filled:Bi,outlined:Ps},B1=e=>{const{classes:t}=e;return Me({root:["root"]},V1,t)},W1=le(la,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ds=k.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:b=!1,helperText:w,id:g,InputLabelProps:v,inputProps:T,InputProps:P,inputRef:x,label:S,maxRows:C,minRows:O,multiline:A=!1,name:F,onBlur:z,onChange:R,onFocus:$,placeholder:K,required:X=!1,rows:q,select:Y=!1,SelectProps:H,slots:ae={},slotProps:N={},type:M,value:V,variant:B="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:b,multiline:A,required:X,select:Y,variant:B},se=B1(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=pr(g),J=w&&j?`${j}-helper-text`:void 0,ee=S&&j?`${j}-label`:void 0,te=j1[B],ce={slots:ae,slotProps:{input:P,inputLabel:v,htmlInput:T,formHelperText:y,select:H,...N}},ie={},he=ce.slotProps.inputLabel;B==="outlined"&&(he&&typeof he.shrink<"u"&&(ie.notched=he.shrink),ie.label=S),Y&&((!H||!H.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const[W,re]=Rn("input",{elementType:te,externalForwardedProps:ce,additionalProps:ie,ownerState:oe}),[Q,fe]=Rn("inputLabel",{elementType:ca,externalForwardedProps:ce,ownerState:oe}),[me,Ce]=Rn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ve,xe]=Rn("formHelperText",{elementType:Ou,externalForwardedProps:ce,ownerState:oe}),[$e,Ae]=Rn("select",{elementType:da,externalForwardedProps:ce,ownerState:oe}),st=D.jsx(W,{"aria-describedby":J,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:b,multiline:A,name:F,rows:q,maxRows:C,minRows:O,type:M,value:V,id:j,inputRef:x,onBlur:z,onChange:R,onFocus:$,placeholder:K,inputProps:Ce,slots:{input:ae.htmlInput?me:void 0},...re});return D.jsxs(W1,{className:Se(se.root,l),disabled:f,error:p,fullWidth:b,ref:n,required:X,color:d,variant:B,ownerState:oe,...ne,children:[S!=null&&S!==""&&D.jsx(Q,{htmlFor:j,id:ee,...fe,children:S}),Y?D.jsx($e,{"aria-describedby":J,id:j,labelId:ee,value:V,input:st,...Ae,children:a}):st,w&&D.jsx(ve,{id:J,...xe,children:w})]})});process.env.NODE_ENV!=="production"&&(Ds.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:Bt,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 H1=le(py)({width:"100%",borderRadius:"10px"}),z1={Skeleton:H1},Y1=({height:e="calc(100% - 1em)"})=>D.jsx(z1.Skeleton,{variant:"rectangular",height:e});var Ve=(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))(Ve||{}),sn=(e=>(e.Boolean="Boolean",e.Date="Date",e.MultipleSelect="MultipleSelect",e.Number="Number",e.NumberFormatted="NumberFormatted",e.Text="Text",e))(sn||{}),Lr=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(Lr||{}),Er=(e=>(e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Control="Control",e.Enter="Enter",e.Tab="Tab",e))(Er||{}),$s=(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))($s||{}),jo=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT=4]="TEXT",e))(jo||{});function my(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const U1=le(Ls)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),q1={Wrapper:U1},gy=({setIsOpened:e})=>D.jsx(q1.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),G1=le(Ls)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),K1={Wrapper:G1},yy=({children:e,id:t})=>D.jsx(K1.Wrapper,{id:t,children:e});function vy(e,t=300){let n;return function(...o){const r=()=>e.apply(this,o);clearTimeout(n),n=setTimeout(r,t)}}const od=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function by(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const X1=["FormatterStatus","FormatterNumber"];class Z1{constructor(){this.table=null}download(t,n,o){if(this.table||(this.table=t),this.table=t,!t.grid)return;const i=this.createCSV(t),a=document.createElement("a");a.href="data:text/csv;charset=utf-8,"+encodeURIComponent(i),a.target="_blank",a.download=`${n}-${o}-${t.id}.csv`,a.click()}createCSV(t){this.table||(this.table=t);const n=t.grid;if(!n)return"";const o=this.getTitle(),r=this.getCSVHeader(n),i=this.getCSVBody(n);return`${o}${r}${i}`}getTitle(){return""}getCSVHeader(t){const r=t.getColumns().filter(i=>i.forPrint).reduce((i,a)=>{if(typeof a.name=="string"){const l=od(a.name);return i.concat(`"${l}",`)}else return i.concat('" ",')},"");return this.addRowSeparator(r)}getCSVBody(t){const n=t.getData(),r=t.getColumns().filter(i=>i.forPrint);return YA(t).reduce((i,a)=>{const l=n.getItemMetadata(a),d=n.getItem(a),u=d.__group,f=d.__groupTotals;let p="";if(u){const y=od(by(d.title));p+=`"${y}",`}else for(let y=0;y<r.length;++y){const b=r[y],w=b.field,g=l?.columns?.[w]?.formatter,v=b.printer||g||b.formatter;let T=d[w];if(f){const x=b.groupTotalsFormatter;T=x?x(d,b,t):""}else v&&!X1.includes(v.name)&&(T=v(0,0,T,b,d,t));const P=od(T);p+=`"${P}",`}return this.addRowSeparator(`${i}${p}`)},"")}addRowSeparator(t){return`${t}
|
|
265
265
|
`}}class Q1{constructor(){this.externalVariables={},this.commandQueue=[],this.queueIndex=-1}getQueueIndex(){return this.queueIndex}setQueueIndex(t){this.queueIndex=t}handleKeyboardEvent(t,n){const o=n.grid;if(!n.isActive||!o)return;const r=o.getData();if(Sv(t)){if(t.preventDefault(),t.stopImmediatePropagation(),_A(o)||this.externalVariables.editingAllowed===!1)return;Rv(o),o.invalidate(),this.pushToCommandQueue(o),n.isEdited=!0}else if(SA(t)){t.preventDefault(),t.stopImmediatePropagation();const i=o.getSelectedRows();if(!i.length)return;i.forEach(a=>{const l=r.getItem(a);l.isDeleted=!0}),o.setSelectedRows([]),r.refresh(),o.invalidate(),this.pushToCommandQueue(o),n.isEdited=!0}else if(xv(t)){t.preventDefault(),t.stopImmediatePropagation();const i=this.getQueueIndex();if(i<1)return;const a=i-1;this.setQueueIndex(a),r.setItems(rd(this.commandQueue[a])),o.invalidate(),n.isEdited=a!==0}else if(_v(t)){t.preventDefault(),t.stopImmediatePropagation();const i=this.getQueueIndex();if(i===this.commandQueue.length-1)return;const a=i+1;this.setQueueIndex(a),r.setItems(rd(this.commandQueue[a])),o.invalidate(),n.isEdited=!0}}pushToCommandQueue(t){if(!t)return;const o=t.getData().getItems(),i=this.getQueueIndex()+1;this.commandQueue.length=i,this.commandQueue.push(rd(o)),this.setQueueIndex(i)}resetQueue(){this.commandQueue.length=0,this.queueIndex=-1}setExternalVariables(t){this.externalVariables={...this.externalVariables,...t}}getExternalVariables(){return this.externalVariables}}function rd(e){return e.map(t=>({...t}))}class J1{handleKeyboardEvent(){}pushToCommandQueue(){}resetQueue(){}setExternalVariables(t){}getExternalVariables(){return{}}}class Lu{constructor(t){this.hotKeysBehaviour=t}handleKeyboardEvent(t,n){this.hotKeysBehaviour.handleKeyboardEvent(t,n)}pushToCommandQueue(t){this.hotKeysBehaviour.pushToCommandQueue(t)}resetQueue(){this.hotKeysBehaviour.resetQueue()}setExternalVariables(t){this.hotKeysBehaviour.setExternalVariables(t)}getExternalVariables(){return this.hotKeysBehaviour.getExternalVariables()}}class eD extends Lu{handleKeyboardEvent(t,n){n.isActive&&(Sv(t)||super.handleKeyboardEvent.call(this,t,n))}}class tD extends Lu{handleKeyboardEvent(t,n){n.isActive&&(_v(t)||xv(t))&&super.handleKeyboardEvent.call(this,t,n)}}const Wd="checkboxSelector";//! moment.js
|
|
266
266
|
//! version : 2.30.1
|
|
267
267
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
268
268
|
//! license : MIT
|
|
269
269
|
//! momentjs.com
|
|
270
|
-
var wy;function _e(){return wy.apply(null,arguments)}function nD(e){wy=e}function so(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function
|
|
270
|
+
var wy;function _e(){return wy.apply(null,arguments)}function nD(e){wy=e}function so(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ir(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ut(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $u(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 xn(e){return e===void 0}function Xo(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ua(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Cy(e,t){var n=[],o,r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function ir(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 Eo(e,t,n,o){return zy(e,t,n,o,!0).utc()}function oD(){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=oD()),e._pf}var Hd;Array.prototype.some?Hd=Array.prototype.some:Hd=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 Vu(e){var t=null,n=!1,o=e._d&&!isNaN(e._d.getTime());if(o&&(t=ze(e),n=Hd.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 ec(e){var t=Eo(NaN);return e!=null?ir(ze(t),e):ze(t).userInvalidated=!0,t}var Hp=_e.momentProperties=[],sd=!1;function ju(e,t){var n,o,r,i=Hp.length;if(xn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),xn(t._i)||(e._i=t._i),xn(t._f)||(e._f=t._f),xn(t._l)||(e._l=t._l),xn(t._strict)||(e._strict=t._strict),xn(t._tzm)||(e._tzm=t._tzm),xn(t._isUTC)||(e._isUTC=t._isUTC),xn(t._offset)||(e._offset=t._offset),xn(t._pf)||(e._pf=ze(t)),xn(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)o=Hp[n],r=t[o],xn(r)||(e[o]=r);return e}function ha(e){ju(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),sd===!1&&(sd=!0,_e.updateOffset(this),sd=!1)}function io(e){return e instanceof ha||e!=null&&e._isAMomentObject!=null}function Sy(e){_e.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Jn(e,t){var n=!0;return ir(function(){if(_e.deprecationHandler!=null&&_e.deprecationHandler(null,e),n){var o=[],r,i,a,l=arguments.length;for(i=0;i<l;i++){if(r="",typeof arguments[i]=="object"){r+=`
|
|
271
271
|
[`+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)}Sy(e+`
|
|
272
272
|
Arguments: `+Array.prototype.slice.call(o).join("")+`
|
|
273
|
-
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var zp={};function _y(e,t){_e.deprecationHandler!=null&&_e.deprecationHandler(e,t),zp[e]||(Sy(t),zp[e]=!0)}_e.suppressDeprecationWarnings=!1;_e.deprecationHandler=null;function Po(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function rD(e){var t,n;for(n in e)ut(e,n)&&(t=e[n],Po(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 zd(e,t){var n=ir({},e),o;for(o in t)ut(t,o)&&(Mr(e[o])&&Mr(t[o])?(n[o]={},ir(n[o],e[o]),ir(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)ut(e,o)&&!ut(t,o)&&Mr(e[o])&&(n[o]=ir({},n[o]));return n}function Bu(e){e!=null&&this.set(e)}var Yd;Object.keys?Yd=Object.keys:Yd=function(e){var t,n=[];for(t in e)ut(e,t)&&n.push(t);return n};var sD={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function iD(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return Po(o)?o.call(t,n):o}function To(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 Wu=/(\[[^\[]*\])|(\\)?([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,Wa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,id={},ys={};function Le(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(ys[e]=r),t&&(ys[t[0]]=function(){return To(r.apply(this,arguments),t[1],t[2])}),n&&(ys[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function aD(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function lD(e){var t=e.match(Wu),n,o;for(n=0,o=t.length;n<o;n++)ys[t[n]]?t[n]=ys[t[n]]:t[n]=aD(t[n]);return function(r){var i="",a;for(a=0;a<o;a++)i+=Po(t[a])?t[a].call(r,e):t[a];return i}}function ol(e,t){return e.isValid()?(t=xy(t,e.localeData()),id[t]=id[t]||lD(t),id[t](e)):e.localeData().invalidDate()}function xy(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(Wa.lastIndex=0;n>=0&&Wa.test(e);)e=e.replace(Wa,o),Wa.lastIndex=0,n-=1;return e}var cD={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 dD(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Wu).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var uD="Invalid date";function hD(){return this._invalidDate}var fD="%d",pD=/\d{1,2}/;function mD(e){return this._ordinal.replace("%d",e)}var gD={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 yD(e,t,n,o){var r=this._relativeTime[n];return Po(r)?r(e,t,n,o):r.replace(/%d/i,e)}function vD(e,t){var n=this._relativeTime[e>0?"future":"past"];return Po(n)?n(t):n.replace(/%s/i,t)}var Yp={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 eo(e){return typeof e=="string"?Yp[e]||Yp[e.toLowerCase()]:void 0}function Hu(e){var t={},n,o;for(o in e)ut(e,o)&&(n=eo(o),n&&(t[n]=e[o]));return t}var bD={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 wD(e){var t=[],n;for(n in e)ut(e,n)&&t.push({unit:n,priority:bD[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var Ry=/\d/,$n=/\d\d/,Ty=/\d{3}/,zu=/\d{4}/,tc=/[+-]?\d{6}/,It=/\d\d?/,ky=/\d\d\d\d?/,Ey=/\d\d\d\d\d\d?/,nc=/\d{1,3}/,Yu=/\d{1,4}/,oc=/[+-]?\d{1,6}/,Vs=/\d+/,rc=/[+-]?\d+/,CD=/Z|[+-]\d\d:?\d\d/gi,sc=/Z|[+-]\d\d(?::?\d\d)?/gi,SD=/[+-]?\d+(\.\d{1,3})?/,fa=/[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,js=/^[1-9]\d?/,Uu=/^([1-9]\d|\d)/,bl;bl={};function Ee(e,t,n){bl[e]=Po(t)?t:function(o,r){return o&&n?n:t}}function _D(e,t){return ut(bl,e)?bl[e](t._strict,t._locale):new RegExp(xD(e))}function xD(e){return zo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,i){return n||o||r||i}))}function zo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Un(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=Un(t)),n}var Ud={};function kt(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),Xo(t)&&(o=function(i,a){a[t]=Qe(i)}),r=e.length,n=0;n<r;n++)Ud[e[n]]=o}function pa(e,t){kt(e,function(n,o,r,i){r._w=r._w||{},t(n,r._w,r,i)})}function RD(e,t,n){t!=null&&ut(Ud,e)&&Ud[e](t,n._a,n,e)}function ic(e){return e%4===0&&e%100!==0||e%400===0}var yn=0,Bo=1,wo=2,tn=3,ro=4,Wo=5,Pr=6,TD=7,kD=8;Le("Y",0,0,function(){var e=this.year();return e<=9999?To(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");Ee("Y",rc);Ee("YY",It,$n);Ee("YYYY",Yu,zu);Ee("YYYYY",oc,tc);Ee("YYYYYY",oc,tc);kt(["YYYYY","YYYYYY"],yn);kt("YYYY",function(e,t){t[yn]=e.length===2?_e.parseTwoDigitYear(e):Qe(e)});kt("YY",function(e,t){t[yn]=_e.parseTwoDigitYear(e)});kt("Y",function(e,t){t[yn]=parseInt(e,10)});function Ti(e){return ic(e)?366:365}_e.parseTwoDigitYear=function(e){return Qe(e)+(Qe(e)>68?1900:2e3)};var Py=Bs("FullYear",!0);function ED(){return ic(this.year())}function Bs(e,t){return function(n){return n!=null?(Dy(this,e,n),_e.updateOffset(this,t),this):zi(this,e)}}function zi(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 Dy(e,t,n){var o,r,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(r?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(r?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(r?o.setUTCHours(n):o.setHours(n));case"Date":return void(r?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!ic(i)?28:l,r?o.setUTCFullYear(i,a,l):o.setFullYear(i,a,l)}}function PD(e){return e=eo(e),Po(this[e])?this[e]():this}function DD(e,t){if(typeof e=="object"){e=Hu(e);var n=wD(e),o,r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(e=eo(e),Po(this[e]))return this[e](t);return this}function OD(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 qu(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=OD(t,12);return e+=(t-n)/12,n===1?ic(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)});Ee("M",It,js);Ee("MM",It,$n);Ee("MMM",function(e,t){return t.monthsShortRegex(e)});Ee("MMMM",function(e,t){return t.monthsRegex(e)});kt(["M","MM"],function(e,t){t[Bo]=Qe(e)-1});kt(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);r!=null?t[Bo]=r:ze(n).invalidMonth=e});var MD="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),My=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ID=fa,ND=fa;function AD(e,t){return e?so(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||My).test(t)?"format":"standalone"][e.month()]:so(this._months)?this._months:this._months.standalone}function FD(e,t){return e?so(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[My.test(t)?"format":"standalone"][e.month()]:so(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function LD(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=Eo([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 $D(e,t,n){var o,r,i;if(this._monthsParseExact)return LD.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=Eo([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 Iy(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),!Xo(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,qu(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function Ny(e){return e!=null?(Iy(this,e),_e.updateOffset(this,!0),this):zi(this,"Month")}function VD(){return qu(this.year(),this.month())}function jD(e){return this._monthsParseExact?(ut(this,"_monthsRegex")||Ay.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ut(this,"_monthsShortRegex")||(this._monthsShortRegex=ID),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function BD(e){return this._monthsParseExact?(ut(this,"_monthsRegex")||Ay.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ut(this,"_monthsRegex")||(this._monthsRegex=ND),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ay(){function e(d,u){return u.length-d.length}var t=[],n=[],o=[],r,i,a,l;for(r=0;r<12;r++)i=Eo([2e3,r]),a=zo(this.monthsShort(i,"")),l=zo(this.months(i,"")),t.push(a),n.push(l),o.push(l),o.push(a);t.sort(e),n.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function WD(e,t,n,o,r,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,o,r,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,o,r,i,a),l}function Yi(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 wl(e,t,n){var o=7+t-n,r=(7+Yi(e,0,o).getUTCDay()-t)%7;return-r+o-1}function Fy(e,t,n,o,r){var i=(7+n-o)%7,a=wl(e,o,r),l=1+7*(t-1)+i+a,d,u;return l<=0?(d=e-1,u=Ti(d)+l):l>Ti(e)?(d=e+1,u=l-Ti(e)):(d=e,u=l),{year:d,dayOfYear:u}}function Ui(e,t,n){var o=wl(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+Yo(a,t,n)):r>Yo(e.year(),t,n)?(i=r-Yo(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function Yo(e,t,n){var o=wl(e,t,n),r=wl(e+1,t,n);return(Ti(e)-o+r)/7}Le("w",["ww",2],"wo","week");Le("W",["WW",2],"Wo","isoWeek");Ee("w",It,js);Ee("ww",It,$n);Ee("W",It,js);Ee("WW",It,$n);pa(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=Qe(e)});function HD(e){return Ui(e,this._week.dow,this._week.doy).week}var zD={dow:0,doy:6};function YD(){return this._week.dow}function UD(){return this._week.doy}function qD(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function GD(e){var t=Ui(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");Ee("d",It);Ee("e",It);Ee("E",It);Ee("dd",function(e,t){return t.weekdaysMinRegex(e)});Ee("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ee("dddd",function(e,t){return t.weekdaysRegex(e)});pa(["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});pa(["d","e","E"],function(e,t,n,o){t[o]=Qe(e)});function KD(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function XD(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Gu(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ZD="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ly="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),QD="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),JD=fa,eO=fa,tO=fa;function nO(e,t){var n=so(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Gu(n,this._week.dow):e?n[e.day()]:n}function oO(e){return e===!0?Gu(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function rO(e){return e===!0?Gu(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function sO(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=Eo([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 iO(e,t,n){var o,r,i;if(this._weekdaysParseExact)return sO.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=Eo([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 aO(e){if(!this.isValid())return e!=null?this:NaN;var t=zi(this,"Day");return e!=null?(e=KD(e,this.localeData()),this.add(e-t,"d")):t}function lO(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 cO(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=XD(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function dO(e){return this._weekdaysParseExact?(ut(this,"_weekdaysRegex")||Ku.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ut(this,"_weekdaysRegex")||(this._weekdaysRegex=JD),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function uO(e){return this._weekdaysParseExact?(ut(this,"_weekdaysRegex")||Ku.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ut(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=eO),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function hO(e){return this._weekdaysParseExact?(ut(this,"_weekdaysRegex")||Ku.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ut(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tO),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ku(){function e(f,p){return p.length-f.length}var t=[],n=[],o=[],r=[],i,a,l,d,u;for(i=0;i<7;i++)a=Eo([2e3,1]).day(i),l=zo(this.weekdaysMin(a,"")),d=zo(this.weekdaysShort(a,"")),u=zo(this.weekdays(a,"")),t.push(l),n.push(d),o.push(u),r.push(l),r.push(d),r.push(u);t.sort(e),n.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xu(){return this.hours()%12||12}function fO(){return this.hours()||24}Le("H",["HH",2],0,"hour");Le("h",["hh",2],0,Xu);Le("k",["kk",2],0,fO);Le("hmm",0,0,function(){return""+Xu.apply(this)+To(this.minutes(),2)});Le("hmmss",0,0,function(){return""+Xu.apply(this)+To(this.minutes(),2)+To(this.seconds(),2)});Le("Hmm",0,0,function(){return""+this.hours()+To(this.minutes(),2)});Le("Hmmss",0,0,function(){return""+this.hours()+To(this.minutes(),2)+To(this.seconds(),2)});function $y(e,t){Le(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}$y("a",!0);$y("A",!1);function Vy(e,t){return t._meridiemParse}Ee("a",Vy);Ee("A",Vy);Ee("H",It,Uu);Ee("h",It,js);Ee("k",It,js);Ee("HH",It,$n);Ee("hh",It,$n);Ee("kk",It,$n);Ee("hmm",ky);Ee("hmmss",Ey);Ee("Hmm",ky);Ee("Hmmss",Ey);kt(["H","HH"],tn);kt(["k","kk"],function(e,t,n){var o=Qe(e);t[tn]=o===24?0:o});kt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});kt(["h","hh"],function(e,t,n){t[tn]=Qe(e),ze(n).bigHour=!0});kt("hmm",function(e,t,n){var o=e.length-2;t[tn]=Qe(e.substr(0,o)),t[ro]=Qe(e.substr(o)),ze(n).bigHour=!0});kt("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[tn]=Qe(e.substr(0,o)),t[ro]=Qe(e.substr(o,2)),t[Wo]=Qe(e.substr(r)),ze(n).bigHour=!0});kt("Hmm",function(e,t,n){var o=e.length-2;t[tn]=Qe(e.substr(0,o)),t[ro]=Qe(e.substr(o))});kt("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[tn]=Qe(e.substr(0,o)),t[ro]=Qe(e.substr(o,2)),t[Wo]=Qe(e.substr(r))});function pO(e){return(e+"").toLowerCase().charAt(0)==="p"}var mO=/[ap]\.?m?\.?/i,gO=Bs("Hours",!0);function yO(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var jy={calendar:sD,longDateFormat:cD,invalidDate:uD,ordinal:fD,dayOfMonthOrdinalParse:pD,relativeTime:gD,months:MD,monthsShort:Oy,week:zD,weekdays:ZD,weekdaysMin:QD,weekdaysShort:Ly,meridiemParse:mO},$t={},oi={},qi;function vO(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 Up(e){return e&&e.toLowerCase().replace("_","-")}function bO(e){for(var t=0,n,o,r,i;t<e.length;){for(i=Up(e[t]).split("-"),n=i.length,o=Up(e[t+1]),o=o?o.split("-"):null;n>0;){if(r=ac(i.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&vO(i,o)>=n-1)break;n--}t++}return qi}function wO(e){return!!(e&&e.match("^[^/\\\\]*$"))}function ac(e){var t=null,n;if($t[e]===void 0&&typeof module<"u"&&module&&module.exports&&wO(e))try{t=qi._abbr,n=require,n("./locale/"+e),lr(t)}catch{$t[e]=null}return $t[e]}function lr(e,t){var n;return e&&(xn(t)?n=Qo(e):n=Zu(e,t),n?qi=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),qi._abbr}function Zu(e,t){if(t!==null){var n,o=jy;if(t.abbr=e,$t[e]!=null)_y("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=ac(t.parentLocale),n!=null)o=n._config;else return oi[t.parentLocale]||(oi[t.parentLocale]=[]),oi[t.parentLocale].push({name:e,config:t}),null;return $t[e]=new Bu(zd(o,t)),oi[e]&&oi[e].forEach(function(r){Zu(r.name,r.config)}),lr(e),$t[e]}else return delete $t[e],null}function CO(e,t){if(t!=null){var n,o,r=jy;$t[e]!=null&&$t[e].parentLocale!=null?$t[e].set(zd($t[e]._config,t)):(o=ac(e),o!=null&&(r=o._config),t=zd(r,t),o==null&&(t.abbr=e),n=new Bu(t),n.parentLocale=$t[e],$t[e]=n),lr(e)}else $t[e]!=null&&($t[e].parentLocale!=null?($t[e]=$t[e].parentLocale,e===lr()&&lr(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 qi;if(!so(e)){if(t=ac(e),t)return t;e=[e]}return bO(e)}function SO(){return Yd($t)}function Qu(e){var t,n=e._a;return n&&ze(e).overflow===-2&&(t=n[Bo]<0||n[Bo]>11?Bo:n[wo]<1||n[wo]>qu(n[yn],n[Bo])?wo:n[tn]<0||n[tn]>24||n[tn]===24&&(n[ro]!==0||n[Wo]!==0||n[Pr]!==0)?tn:n[ro]<0||n[ro]>59?ro:n[Wo]<0||n[Wo]>59?Wo:n[Pr]<0||n[Pr]>999?Pr:-1,ze(e)._overflowDayOfYear&&(t<yn||t>wo)&&(t=wo),ze(e)._overflowWeeks&&t===-1&&(t=TD),ze(e)._overflowWeekday&&t===-1&&(t=kD),ze(e).overflow=t),e}var _O=/^\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)?)?$/,xO=/^\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)?)?$/,RO=/Z|[+-]\d\d(?::?\d\d)?/,Ha=[["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]],ad=[["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/]],TO=/^\/?Date\((-?\d+)/i,kO=/^(?:(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}))$/,EO={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 By(e){var t,n,o=e._i,r=_O.exec(o)||xO.exec(o),i,a,l,d,u=Ha.length,f=ad.length;if(r){for(ze(e).iso=!0,t=0,n=u;t<n;t++)if(Ha[t][1].exec(r[1])){a=Ha[t][0],i=Ha[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,n=f;t<n;t++)if(ad[t][1].exec(r[3])){l=(r[2]||" ")+ad[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(r[4])if(RO.exec(r[4]))d="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(d||""),eh(e)}else e._isValid=!1}function PO(e,t,n,o,r,i){var a=[DO(e),Oy.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function DO(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function OO(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function MO(e,t,n){if(e){var o=Ly.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 IO(e,t,n){if(e)return EO[e];if(t)return 0;var o=parseInt(n,10),r=o%100,i=(o-r)/100;return i*60+r}function Wy(e){var t=kO.exec(OO(e._i)),n;if(t){if(n=PO(t[4],t[3],t[2],t[5],t[6],t[7]),!MO(t[1],n,e))return;e._a=n,e._tzm=IO(t[8],t[9],t[10]),e._d=Yi.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ze(e).rfc2822=!0}else e._isValid=!1}function NO(e){var t=TO.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(By(e),e._isValid===!1)delete e._isValid;else return;if(Wy(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_e.createFromInputFallback(e)}_e.createFromInputFallback=Jn("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 cs(e,t,n){return e??t??n}function AO(e){var t=new Date(_e.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ju(e){var t,n,o=[],r,i,a;if(!e._d){for(r=AO(e),e._w&&e._a[wo]==null&&e._a[Bo]==null&&FO(e),e._dayOfYear!=null&&(a=cs(e._a[yn],r[yn]),(e._dayOfYear>Ti(a)||e._dayOfYear===0)&&(ze(e)._overflowDayOfYear=!0),n=Yi(a,0,e._dayOfYear),e._a[Bo]=n.getUTCMonth(),e._a[wo]=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[ro]===0&&e._a[Wo]===0&&e._a[Pr]===0&&(e._nextDay=!0,e._a[tn]=0),e._d=(e._useUTC?Yi:WD).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 FO(e){var t,n,o,r,i,a,l,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=cs(t.GG,e._a[yn],Ui(Ot(),1,4).year),o=cs(t.W,1),r=cs(t.E,1),(r<1||r>7)&&(d=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Ui(Ot(),i,a),n=cs(t.gg,e._a[yn],u.year),o=cs(t.w,u.week),t.d!=null?(r=t.d,(r<0||r>6)&&(d=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(d=!0)):r=i),o<1||o>Yo(n,i,a)?ze(e)._overflowWeeks=!0:d!=null?ze(e)._overflowWeekday=!0:(l=Fy(n,o,r,i,a),e._a[yn]=l.year,e._dayOfYear=l.dayOfYear)}_e.ISO_8601=function(){};_e.RFC_2822=function(){};function eh(e){if(e._f===_e.ISO_8601){By(e);return}if(e._f===_e.RFC_2822){Wy(e);return}e._a=[],ze(e).empty=!0;var t=""+e._i,n,o,r,i,a,l=t.length,d=0,u,f;for(r=xy(e._f,e._locale).match(Wu)||[],f=r.length,n=0;n<f;n++)i=r[n],o=(t.match(_D(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),d+=o.length),ys[i]?(o?ze(e).empty=!1:ze(e).unusedTokens.push(i),RD(i,o,e)):e._strict&&!o&&ze(e).unusedTokens.push(i);ze(e).charsLeftOver=l-d,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]=LO(e._locale,e._a[tn],e._meridiem),u=ze(e).era,u!==null&&(e._a[yn]=e._locale.erasConvertYear(u,e._a[yn])),Ju(e),Qu(e)}function LO(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 $O(e){var t,n,o,r,i,a,l=!1,d=e._f.length;if(d===0){ze(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<d;r++)i=0,a=!1,t=ju({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],eh(t),Vu(t)&&(a=!0),i+=ze(t).charsLeftOver,i+=ze(t).unusedTokens.length*10,ze(t).score=i,l?i<o&&(o=i,n=t):(o==null||i<o||a)&&(o=i,n=t,a&&(l=!0));ir(e,n||t)}function VO(e){if(!e._d){var t=Hu(e._i),n=t.day===void 0?t.date:t.day;e._a=Cy([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),Ju(e)}}function jO(e){var t=new ha(Qu(Hy(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Hy(e){var t=e._i,n=e._f;return e._locale=e._locale||Qo(e._l),t===null||n===void 0&&t===""?ec({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),io(t)?new ha(Qu(t)):(ua(t)?e._d=t:so(n)?$O(e):n?eh(e):BO(e),Vu(e)||(e._d=null),e))}function BO(e){var t=e._i;xn(t)?e._d=new Date(_e.now()):ua(t)?e._d=new Date(t.valueOf()):typeof t=="string"?NO(e):so(t)?(e._a=Cy(t.slice(0),function(n){return parseInt(n,10)}),Ju(e)):Mr(t)?VO(e):Xo(t)?e._d=new Date(t):_e.createFromInputFallback(e)}function zy(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),(Mr(e)&&$u(e)||so(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,jO(i)}function Ot(e,t,n,o){return zy(e,t,n,o,!1)}var WO=Jn("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:ec()}),HO=Jn("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:ec()});function Yy(e,t){var n,o;if(t.length===1&&so(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 zO(){var e=[].slice.call(arguments,0);return Yy("isBefore",e)}function YO(){var e=[].slice.call(arguments,0);return Yy("isAfter",e)}var UO=function(){return Date.now?Date.now():+new Date},ri=["year","quarter","month","week","day","hour","minute","second","millisecond"];function qO(e){var t,n=!1,o,r=ri.length;for(t in e)if(ut(e,t)&&!(qt.call(ri,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[ri[o]]){if(n)return!1;parseFloat(e[ri[o]])!==Qe(e[ri[o]])&&(n=!0)}return!0}function GO(){return this._isValid}function KO(){return lo(NaN)}function lc(e){var t=Hu(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,d=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=qO(t),this._milliseconds=+f+u*1e3+d*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+r+o*3+n*12,this._data={},this._locale=Qo(),this._bubble()}function rl(e){return e instanceof lc}function qd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function XO(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 Uy(e,t){Le(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+To(~~(n/60),2)+t+To(~~n%60,2)})}Uy("Z",":");Uy("ZZ","");Ee("Z",sc);Ee("ZZ",sc);kt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=th(sc,e)});var ZO=/([\+\-]|\d\d)/gi;function th(e,t){var n=(t||"").match(e),o,r,i;return n===null?null:(o=n[n.length-1]||[],r=(o+"").match(ZO)||["-",0,0],i=+(r[1]*60)+Qe(r[2]),i===0?0:r[0]==="+"?i:-i)}function nh(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(io(e)||ua(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),_e.updateOffset(n,!1),n):Ot(e).local()}function Gd(e){return-Math.round(e._d.getTimezoneOffset())}_e.updateOffset=function(){};function QO(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=th(sc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=Gd(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Ky(this,lo(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_e.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:Gd(this)}function JO(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function eM(e){return this.utcOffset(0,e)}function tM(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gd(this),"m")),this}function nM(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=th(CD,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function oM(e){return this.isValid()?(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function rM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sM(){if(!xn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ju(e,this),e=Hy(e),e._a?(t=e._isUTC?Eo(e._a):Ot(e._a),this._isDSTShifted=this.isValid()&&XO(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function iM(){return this.isValid()?!this._isUTC:!1}function aM(){return this.isValid()?this._isUTC:!1}function qy(){return this.isValid()?this._isUTC&&this._offset===0:!1}var lM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,cM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function lo(e,t){var n=e,o=null,r,i,a;return rl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Xo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=lM.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:Qe(o[wo])*r,h:Qe(o[tn])*r,m:Qe(o[ro])*r,s:Qe(o[Wo])*r,ms:Qe(qd(o[Pr]*1e3))*r}):(o=cM.exec(e))?(r=o[1]==="-"?-1:1,n={y:Cr(o[2],r),M:Cr(o[3],r),w:Cr(o[4],r),d:Cr(o[5],r),h:Cr(o[6],r),m:Cr(o[7],r),s:Cr(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=dM(Ot(n.from),Ot(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new lc(n),rl(e)&&ut(e,"_locale")&&(i._locale=e._locale),rl(e)&&ut(e,"_isValid")&&(i._isValid=e._isValid),i}lo.fn=lc.prototype;lo.invalid=KO;function Cr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function qp(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 dM(e,t){var n;return e.isValid()&&t.isValid()?(t=nh(t,e),e.isBefore(t)?n=qp(e,t):(n=qp(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Gy(e,t){return function(n,o){var r,i;return o!==null&&!isNaN(+o)&&(_y(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=lo(n,o),Ky(this,r,e),this}}function Ky(e,t,n,o){var r=t._milliseconds,i=qd(t._days),a=qd(t._months);e.isValid()&&(o=o??!0,a&&Iy(e,zi(e,"Month")+a*n),i&&Dy(e,"Date",zi(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&_e.updateOffset(e,i||a))}var uM=Gy(1,"add"),hM=Gy(-1,"subtract");function Xy(e){return typeof e=="string"||e instanceof String}function fM(e){return io(e)||ua(e)||Xy(e)||Xo(e)||mM(e)||pM(e)||e===null||e===void 0}function pM(e){var t=Mr(e)&&!$u(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 mM(e){var t=so(e),n=!1;return t&&(n=e.filter(function(o){return!Xo(o)&&Xy(e)}).length===0),t&&n}function gM(e){var t=Mr(e)&&!$u(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 yM(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 vM(e,t){arguments.length===1&&(arguments[0]?fM(arguments[0])?(e=arguments[0],t=void 0):gM(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),o=nh(n,this).startOf("day"),r=_e.calendarFormat(this,o)||"sameElse",i=t&&(Po(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,Ot(n)))}function bM(){return new ha(this)}function wM(e,t){var n=io(e)?e:Ot(e);return this.isValid()&&n.isValid()?(t=eo(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function CM(e,t){var n=io(e)?e:Ot(e);return this.isValid()&&n.isValid()?(t=eo(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function SM(e,t,n,o){var r=io(e)?e:Ot(e),i=io(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 _M(e,t){var n=io(e)?e:Ot(e),o;return this.isValid()&&n.isValid()?(t=eo(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 xM(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function RM(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function TM(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=nh(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,t=eo(t),t){case"year":i=sl(this,o)/12;break;case"month":i=sl(this,o);break;case"quarter":i=sl(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:Un(i)}function sl(e,t){if(e.date()<t.date())return-sl(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}_e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function kM(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function EM(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?ol(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Po(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ol(n,"Z")):ol(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function PM(){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 DM(e){e||(e=this.isUtc()?_e.defaultFormatUtc:_e.defaultFormat);var t=ol(this,e);return this.localeData().postformat(t)}function OM(e,t){return this.isValid()&&(io(e)&&e.isValid()||Ot(e).isValid())?lo({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function MM(e){return this.from(Ot(),e)}function IM(e,t){return this.isValid()&&(io(e)&&e.isValid()||Ot(e).isValid())?lo({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function NM(e){return this.to(Ot(),e)}function Zy(e){var t;return e===void 0?this._locale._abbr:(t=Qo(e),t!=null&&(this._locale=t),this)}var Qy=Jn("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 Jy(){return this._locale}var Cl=1e3,vs=60*Cl,Sl=60*vs,ev=(365*400+97)*24*Sl;function bs(e,t){return(e%t+t)%t}function tv(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ev:new Date(e,t,n).valueOf()}function nv(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ev:Date.UTC(e,t,n)}function AM(e){var t,n;if(e=eo(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?nv:tv,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-=bs(t+(this._isUTC?0:this.utcOffset()*vs),Sl);break;case"minute":t=this._d.valueOf(),t-=bs(t,vs);break;case"second":t=this._d.valueOf(),t-=bs(t,Cl);break}return this._d.setTime(t),_e.updateOffset(this,!0),this}function FM(e){var t,n;if(e=eo(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?nv:tv,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+=Sl-bs(t+(this._isUTC?0:this.utcOffset()*vs),Sl)-1;break;case"minute":t=this._d.valueOf(),t+=vs-bs(t,vs)-1;break;case"second":t=this._d.valueOf(),t+=Cl-bs(t,Cl)-1;break}return this._d.setTime(t),_e.updateOffset(this,!0),this}function LM(){return this._d.valueOf()-(this._offset||0)*6e4}function $M(){return Math.floor(this.valueOf()/1e3)}function VM(){return new Date(this.valueOf())}function jM(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function BM(){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 WM(){return this.isValid()?this.toISOString():null}function HM(){return Vu(this)}function zM(){return ir({},ze(this))}function YM(){return ze(this).overflow}function UM(){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");Ee("N",oh);Ee("NN",oh);Ee("NNN",oh);Ee("NNNN",oI);Ee("NNNNN",rI);kt(["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});Ee("y",Vs);Ee("yy",Vs);Ee("yyy",Vs);Ee("yyyy",Vs);Ee("yo",sI);kt(["y","yy","yyy","yyyy"],yn);kt(["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 qM(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=_e(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=_e(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf();break}}return i}function GM(e,t,n){var o,r,i=this.eras(),a,l,d;for(e=e.toUpperCase(),o=0,r=i.length;o<r;++o)if(a=i[o].name.toUpperCase(),l=i[o].abbr.toUpperCase(),d=i[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[o];break;case"NNNN":if(a===e)return i[o];break;case"NNNNN":if(d===e)return i[o];break}else if([a,l,d].indexOf(e)>=0)return i[o]}function KM(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_e(e.since).year():_e(e.since).year()+(t-e.offset)*n}function XM(){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 ZM(){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 QM(){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 JM(){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()-_e(r[e].since).year())*n+r[e].offset;return this.year()}function eI(e){return ut(this,"_erasNameRegex")||rh.call(this),e?this._erasNameRegex:this._erasRegex}function tI(e){return ut(this,"_erasAbbrRegex")||rh.call(this),e?this._erasAbbrRegex:this._erasRegex}function nI(e){return ut(this,"_erasNarrowRegex")||rh.call(this),e?this._erasNarrowRegex:this._erasRegex}function oh(e,t){return t.erasAbbrRegex(e)}function oI(e,t){return t.erasNameRegex(e)}function rI(e,t){return t.erasNarrowRegex(e)}function sI(e,t){return t._eraYearOrdinalRegex||Vs}function rh(){var e=[],t=[],n=[],o=[],r,i,a,l,d,u=this.eras();for(r=0,i=u.length;r<i;++r)a=zo(u[r].name),l=zo(u[r].abbr),d=zo(u[r].narrow),t.push(a),e.push(l),n.push(d),o.push(a),o.push(l),o.push(d);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Le(0,["gg",2],0,function(){return this.weekYear()%100});Le(0,["GG",2],0,function(){return this.isoWeekYear()%100});function cc(e,t){Le(0,[e,e.length],0,t)}cc("gggg","weekYear");cc("ggggg","weekYear");cc("GGGG","isoWeekYear");cc("GGGGG","isoWeekYear");Ee("G",rc);Ee("g",rc);Ee("GG",It,$n);Ee("gg",It,$n);Ee("GGGG",Yu,zu);Ee("gggg",Yu,zu);Ee("GGGGG",oc,tc);Ee("ggggg",oc,tc);pa(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=Qe(e)});pa(["gg","GG"],function(e,t,n,o){t[o]=_e.parseTwoDigitYear(e)});function iI(e){return ov.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function aI(e){return ov.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function lI(){return Yo(this.year(),1,4)}function cI(){return Yo(this.isoWeekYear(),1,4)}function dI(){var e=this.localeData()._week;return Yo(this.year(),e.dow,e.doy)}function uI(){var e=this.localeData()._week;return Yo(this.weekYear(),e.dow,e.doy)}function ov(e,t,n,o,r){var i;return e==null?Ui(this,o,r).year:(i=Yo(e,o,r),t>i&&(t=i),hI.call(this,e,t,n,o,r))}function hI(e,t,n,o,r){var i=Fy(e,t,n,o,r),a=Yi(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Le("Q",0,"Qo","quarter");Ee("Q",Ry);kt("Q",function(e,t){t[Bo]=(Qe(e)-1)*3});function fI(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Le("D",["DD",2],"Do","date");Ee("D",It,js);Ee("DD",It,$n);Ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});kt(["D","DD"],wo);kt("Do",function(e,t){t[wo]=Qe(e.match(It)[0])});var rv=Bs("Date",!0);Le("DDD",["DDDD",3],"DDDo","dayOfYear");Ee("DDD",nc);Ee("DDDD",Ty);kt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Qe(e)});function pI(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");Ee("m",It,Uu);Ee("mm",It,$n);kt(["m","mm"],ro);var mI=Bs("Minutes",!1);Le("s",["ss",2],0,"second");Ee("s",It,Uu);Ee("ss",It,$n);kt(["s","ss"],Wo);var gI=Bs("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});Ee("S",nc,Ry);Ee("SS",nc,$n);Ee("SSS",nc,Ty);var ar,sv;for(ar="SSSS";ar.length<=9;ar+="S")Ee(ar,Vs);function yI(e,t){t[Pr]=Qe(("0."+e)*1e3)}for(ar="S";ar.length<=9;ar+="S")kt(ar,yI);sv=Bs("Milliseconds",!1);Le("z",0,0,"zoneAbbr");Le("zz",0,0,"zoneName");function vI(){return this._isUTC?"UTC":""}function bI(){return this._isUTC?"Coordinated Universal Time":""}var ye=ha.prototype;ye.add=uM;ye.calendar=vM;ye.clone=bM;ye.diff=TM;ye.endOf=FM;ye.format=DM;ye.from=OM;ye.fromNow=MM;ye.to=IM;ye.toNow=NM;ye.get=PD;ye.invalidAt=YM;ye.isAfter=wM;ye.isBefore=CM;ye.isBetween=SM;ye.isSame=_M;ye.isSameOrAfter=xM;ye.isSameOrBefore=RM;ye.isValid=HM;ye.lang=Qy;ye.locale=Zy;ye.localeData=Jy;ye.max=HO;ye.min=WO;ye.parsingFlags=zM;ye.set=DD;ye.startOf=AM;ye.subtract=hM;ye.toArray=jM;ye.toObject=BM;ye.toDate=VM;ye.toISOString=EM;ye.inspect=PM;typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ye.toJSON=WM;ye.toString=kM;ye.unix=$M;ye.valueOf=LM;ye.creationData=UM;ye.eraName=XM;ye.eraNarrow=ZM;ye.eraAbbr=QM;ye.eraYear=JM;ye.year=Py;ye.isLeapYear=ED;ye.weekYear=iI;ye.isoWeekYear=aI;ye.quarter=ye.quarters=fI;ye.month=Ny;ye.daysInMonth=VD;ye.week=ye.weeks=qD;ye.isoWeek=ye.isoWeeks=GD;ye.weeksInYear=dI;ye.weeksInWeekYear=uI;ye.isoWeeksInYear=lI;ye.isoWeeksInISOWeekYear=cI;ye.date=rv;ye.day=ye.days=aO;ye.weekday=lO;ye.isoWeekday=cO;ye.dayOfYear=pI;ye.hour=ye.hours=gO;ye.minute=ye.minutes=mI;ye.second=ye.seconds=gI;ye.millisecond=ye.milliseconds=sv;ye.utcOffset=QO;ye.utc=eM;ye.local=tM;ye.parseZone=nM;ye.hasAlignedHourOffset=oM;ye.isDST=rM;ye.isLocal=iM;ye.isUtcOffset=aM;ye.isUtc=qy;ye.isUTC=qy;ye.zoneAbbr=vI;ye.zoneName=bI;ye.dates=Jn("dates accessor is deprecated. Use date instead.",rv);ye.months=Jn("months accessor is deprecated. Use month instead",Ny);ye.years=Jn("years accessor is deprecated. Use year instead",Py);ye.zone=Jn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",JO);ye.isDSTShifted=Jn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sM);function wI(e){return Ot(e*1e3)}function CI(){return Ot.apply(null,arguments).parseZone()}function iv(e){return e}var ht=Bu.prototype;ht.calendar=iD;ht.longDateFormat=dD;ht.invalidDate=hD;ht.ordinal=mD;ht.preparse=iv;ht.postformat=iv;ht.relativeTime=yD;ht.pastFuture=vD;ht.set=rD;ht.eras=qM;ht.erasParse=GM;ht.erasConvertYear=KM;ht.erasAbbrRegex=tI;ht.erasNameRegex=eI;ht.erasNarrowRegex=nI;ht.months=AD;ht.monthsShort=FD;ht.monthsParse=$D;ht.monthsRegex=BD;ht.monthsShortRegex=jD;ht.week=HD;ht.firstDayOfYear=UD;ht.firstDayOfWeek=YD;ht.weekdays=nO;ht.weekdaysMin=rO;ht.weekdaysShort=oO;ht.weekdaysParse=iO;ht.weekdaysRegex=dO;ht.weekdaysShortRegex=uO;ht.weekdaysMinRegex=hO;ht.isPM=pO;ht.meridiem=yO;function _l(e,t,n,o){var r=Qo(),i=Eo().set(o,t);return r[n](i,e)}function av(e,t,n){if(Xo(e)&&(t=e,e=void 0),e=e||"",t!=null)return _l(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=_l(e,o,n,"month");return r}function sh(e,t,n,o){typeof e=="boolean"?(Xo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Xo(t)&&(n=t,t=void 0),t=t||"");var r=Qo(),i=e?r._week.dow:0,a,l=[];if(n!=null)return _l(t,(n+i)%7,o,"day");for(a=0;a<7;a++)l[a]=_l(t,(a+i)%7,o,"day");return l}function SI(e,t){return av(e,t,"months")}function _I(e,t){return av(e,t,"monthsShort")}function xI(e,t,n){return sh(e,t,n,"weekdays")}function RI(e,t,n){return sh(e,t,n,"weekdaysShort")}function TI(e,t,n){return sh(e,t,n,"weekdaysMin")}lr("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}});_e.lang=Jn("moment.lang is deprecated. Use moment.locale instead.",lr);_e.langData=Jn("moment.langData is deprecated. Use moment.localeData instead.",Qo);var Lo=Math.abs;function kI(){var e=this._data;return this._milliseconds=Lo(this._milliseconds),this._days=Lo(this._days),this._months=Lo(this._months),e.milliseconds=Lo(e.milliseconds),e.seconds=Lo(e.seconds),e.minutes=Lo(e.minutes),e.hours=Lo(e.hours),e.months=Lo(e.months),e.years=Lo(e.years),this}function lv(e,t,n,o){var r=lo(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function EI(e,t){return lv(this,e,t,1)}function PI(e,t){return lv(this,e,t,-1)}function Gp(e){return e<0?Math.floor(e):Math.ceil(e)}function DI(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,i,a,l,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Gp(Kd(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Un(e/1e3),o.seconds=r%60,i=Un(r/60),o.minutes=i%60,a=Un(i/60),o.hours=a%24,t+=Un(a/24),d=Un(cv(t)),n+=d,t-=Gp(Kd(d)),l=Un(n/12),n%=12,o.days=t,o.months=n,o.years=l,this}function cv(e){return e*4800/146097}function Kd(e){return e*146097/4800}function OI(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=eo(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+cv(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Kd(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 Jo(e){return function(){return this.as(e)}}var dv=Jo("ms"),MI=Jo("s"),II=Jo("m"),NI=Jo("h"),AI=Jo("d"),FI=Jo("w"),LI=Jo("M"),$I=Jo("Q"),VI=Jo("y"),jI=dv;function BI(){return lo(this)}function WI(e){return e=eo(e),this.isValid()?this[e+"s"]():NaN}function Vr(e){return function(){return this.isValid()?this._data[e]:NaN}}var HI=Vr("milliseconds"),zI=Vr("seconds"),YI=Vr("minutes"),UI=Vr("hours"),qI=Vr("days"),GI=Vr("months"),KI=Vr("years");function XI(){return Un(this.days()/7)}var Vo=Math.round,hs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ZI(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function QI(e,t,n,o){var r=lo(e).abs(),i=Vo(r.as("s")),a=Vo(r.as("m")),l=Vo(r.as("h")),d=Vo(r.as("d")),u=Vo(r.as("M")),f=Vo(r.as("w")),p=Vo(r.as("y")),y=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(y=y||f<=1&&["w"]||f<n.w&&["ww",f]),y=y||u<=1&&["M"]||u<n.M&&["MM",u]||p<=1&&["y"]||["yy",p],y[2]=t,y[3]=+e>0,y[4]=o,ZI.apply(null,y)}function JI(e){return e===void 0?Vo:typeof e=="function"?(Vo=e,!0):!1}function eN(e,t){return hs[e]===void 0?!1:t===void 0?hs[e]:(hs[e]=t,e==="s"&&(hs.ss=t-1),!0)}function tN(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=hs,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},hs,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),r=this.localeData(),i=QI(this,!n,o,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var ld=Math.abs;function rs(e){return(e>0)-(e<0)||+e}function dc(){if(!this.isValid())return this.localeData().invalidDate();var e=ld(this._milliseconds)/1e3,t=ld(this._days),n=ld(this._months),o,r,i,a,l=this.asSeconds(),d,u,f,p;return l?(o=Un(e/60),r=Un(o/60),e%=60,o%=60,i=Un(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",u=rs(this._months)!==rs(l)?"-":"",f=rs(this._days)!==rs(l)?"-":"",p=rs(this._milliseconds)!==rs(l)?"-":"",d+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+a+"S":"")):"P0D"}var rt=lc.prototype;rt.isValid=GO;rt.abs=kI;rt.add=EI;rt.subtract=PI;rt.as=OI;rt.asMilliseconds=dv;rt.asSeconds=MI;rt.asMinutes=II;rt.asHours=NI;rt.asDays=AI;rt.asWeeks=FI;rt.asMonths=LI;rt.asQuarters=$I;rt.asYears=VI;rt.valueOf=jI;rt._bubble=DI;rt.clone=BI;rt.get=WI;rt.milliseconds=HI;rt.seconds=zI;rt.minutes=YI;rt.hours=UI;rt.days=qI;rt.weeks=XI;rt.months=GI;rt.years=KI;rt.humanize=tN;rt.toISOString=dc;rt.toString=dc;rt.toJSON=dc;rt.locale=Zy;rt.localeData=Jy;rt.toIsoString=Jn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",dc);rt.lang=Qy;Le("X",0,0,"unix");Le("x",0,0,"valueOf");Ee("x",rc);Ee("X",SD);kt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});kt("x",function(e,t,n){n._d=new Date(Qe(e))});//! moment.js
|
|
274
|
-
_e.version="2.30.1";nD(Ot);_e.fn=ye;_e.min=zO;_e.max=YO;_e.now=UO;_e.utc=Eo;_e.unix=wI;_e.months=SI;_e.isDate=ua;_e.locale=lr;_e.invalid=ec;_e.duration=lo;_e.isMoment=io;_e.weekdays=xI;_e.parseZone=CI;_e.localeData=Qo;_e.isDuration=rl;_e.monthsShort=_I;_e.weekdaysMin=TI;_e.defineLocale=Zu;_e.updateLocale=CO;_e.locales=SO;_e.weekdaysShort=RI;_e.normalizeUnits=eo;_e.relativeTimeRounding=JI;_e.relativeTimeThreshold=eN;_e.calendarFormat=yM;_e.prototype=ye;_e.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 nN=Object.freeze(Object.defineProperty({__proto__:null,default:_e},Symbol.toStringTag,{value:"Module"})),oN=[_e.ISO_8601,Fr.ui,Fr.db],Xd="Invalid date";le(Ig)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});let uv=class{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args={};const t=this.grid.getData();t.setFilterArgs(this.args),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class rN extends uv{getFilterFn(){return t=>!t?.isDeleted}}class sN{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 fs(e){return new Date(e).getTime()}class hv{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 iN(e){return{tooltip:"Apply column filter",command:e}}class ih{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 aN extends ih{constructor(){super(...arguments),this.columnId="",this.group=sn.Text,this.target=null,this.x=0,this.y=0}}const wn=new aN;class lN{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 ur=new lN;function fv(e){return ur.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 cN=Object.defineProperty,dN=(e,t,n)=>t in e?cN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>dN(e,typeof t!="symbol"?t+"":t,n),Gi=class{constructor(e,t){this.event=e,this.args=t,E(this,"_isPropagationStopped",!1),E(this,"_isImmediatePropagationStopped",!1),E(this,"_isDefaultPrevented",!1),E(this,"returnValues",[]),E(this,"returnValue"),E(this,"_eventTarget"),E(this,"nativeEvent"),E(this,"arguments_"),E(this,"altKey"),E(this,"ctrlKey"),E(this,"metaKey"),E(this,"shiftKey"),E(this,"key"),E(this,"keyCode"),E(this,"clientX"),E(this,"clientY"),E(this,"offsetX"),E(this,"offsetY"),E(this,"pageX"),E(this,"pageY"),E(this,"bubbles"),E(this,"target"),E(this,"type"),E(this,"which"),E(this,"x"),E(this,"y"),this.nativeEvent=e,this.arguments_=t,e&&["altKey","ctrlKey","metaKey","shiftKey","key","keyCode","clientX","clientY","offsetX","offsetY","pageX","pageY","bubbles","target","type","which","x","y"].forEach(n=>this[n]=e[n]),this._eventTarget=this.nativeEvent?this.nativeEvent.target:void 0}get defaultPrevented(){return this._isDefaultPrevented}stopPropagation(){this._isPropagationStopped=!0,this.nativeEvent?.stopPropagation()}isPropagationStopped(){return this._isPropagationStopped}stopImmediatePropagation(){this._isImmediatePropagationStopped=!0,this.nativeEvent&&this.nativeEvent.stopImmediatePropagation()}isImmediatePropagationStopped(){return this._isImmediatePropagationStopped}getNativeEvent(){return this.nativeEvent}preventDefault(){this.nativeEvent&&this.nativeEvent.preventDefault(),this._isDefaultPrevented=!0}isDefaultPrevented(){return this.nativeEvent?this.nativeEvent.defaultPrevented:this._isDefaultPrevented}addReturnValue(e){this.returnValues.push(e),this.returnValue===void 0&&e!==void 0&&(this.returnValue=e)}getReturnValue(){return this.returnValue}getArguments(){return this.arguments_}},jr=class{constructor(e,t){this.eventName=e,this.pubSub=t,E(this,"_handlers",[]),E(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 Gi?t:new Gi(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}},ma=class{constructor(){E(this,"handlers",[])}subscribe(e,t){return this.handlers.push({event:e,handler:t}),e.subscribe(t),this}unsubscribe(e,t){let n=this.handlers.length;for(;n--;)if(this.handlers[n].event===e&&this.handlers[n].handler===t){this.handlers.splice(n,1),e.unsubscribe(t);return}return this}unsubscribeAll(){let e=this.handlers.length;for(;e--;)this.handlers[e].event.unsubscribe(this.handlers[e].handler);return this.handlers=[],this}},ah=class{constructor(e,t,n,o){E(this,"fromRow"),E(this,"fromCell"),E(this,"toCell"),E(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})`}},pv=class{constructor(){E(this,"__nonDataRow",!0)}},mv=class extends pv{constructor(){super(),E(this,"__group",!0),E(this,"level",0),E(this,"count",0),E(this,"value",null),E(this,"title",null),E(this,"collapsed",!1),E(this,"selectChecked",!1),E(this,"totals",null),E(this,"rows",[]),E(this,"groups",null),E(this,"groupingKey",null)}equals(e){return this.value===e.value&&this.count===e.count&&this.collapsed===e.collapsed&&this.title===e.title}},uN=class extends pv{constructor(){super(),E(this,"__groupTotals",!0),E(this,"group",null),E(this,"initialized",!1)}},hN=class{constructor(){E(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}},uc=class{constructor(){E(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)}}},Hn=class jt{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||jt.toString.call(t)!=="[object Object]")return!1;let n=jt.getProto(t);if(!n)return!0;let o=jt.hasOwn.call(n,"constructor")&&n.constructor;return typeof o=="function"&&jt.fnToString.call(o)===jt.ObjectFunctionString}static calculateAvailableSpace(t){let n=0,o=0,r=0,i=0,a=window.innerHeight||0,l=window.innerWidth||0,d=jt.windowScrollPosition(),u=d.top,f=d.left,p=jt.offset(t);if(p){let y=p.top||0,b=p.left||0;o=y-u,n=a-(y-u),r=b-f,i=l-(b-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,l,d=t[0],u=1,f=!1,p=t.length;for(typeof d=="boolean"?(f=d,d=t[u]||{},u++):d=d||{},typeof d!="object"&&!jt.isFunction(d)&&(d={}),u===p&&(d=this,u--);u<p;u++)if(jt.isDefined(n=t[u]))for(o in n)i=n[o],!(o==="__proto__"||d===i)&&(f&&i&&(jt.isPlainObject(i)||(a=Array.isArray(i)))?(r=d[o],a&&!Array.isArray(r)?l=[]:!a&&!jt.isPlainObject(r)?l={}:l=r,a=!1,d[o]=jt.extend(f,l,i)):i!==void 0&&(d[o]=i));return d}static createDomElement(t,n,o){let r=document.createElement(t);return n&&Object.keys(n).forEach(i=>{i==="innerHTML"&&console.warn(`[SlickGrid] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${t}', { innerHTML: 'some html'})", it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);let a=n[i];typeof a=="object"?Object.assign(r[i],a):r[i]=n[i]}),o?.appendChild&&o.appendChild(r),r}static getHtmlStringOutput(t,n="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,o=>o[n]).join("")||t.textContent||"":t instanceof HTMLElement?t[n]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(n=>n)}static innerSize(t,n){let o=0;if(t){let r=n==="height"?"clientHeight":"clientWidth",i=n==="height"?["top","bottom"]:["left","right"];o=t[r];for(let a of i){let l=parseFloat(jt.getElementProp(t,`padding-${a}`)||"")||0;o-=l}}return o}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,n){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(n):null}static getFunctionDetails(t,n=!0){let o=!1,r=i=>{let a=i.toString();if(o=a.includes("async "),a.replaceAll(" ","").includes("=>({")){let u=a.match(/(({.*}))/g)||[];return u.length>=1?`return ${u[0].trimStart()}`:a}let l=!a.includes("{")&&a.includes("=>"),d=a.substring(a.indexOf("{")+1||a.indexOf("=>")+2,a.includes("}")?a.lastIndexOf("}"):a.length);return n&&l&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(i=>{let a=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,l=/([^\s,]+)/g,d=i.toString().replace(a,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(l)??[]})(t),body:r(t),isAsync:o}}static insertAfterElement(t,n){t.parentNode?.insertBefore(n,t.nextSibling)}static isEmptyObject(t){return t==null?!0:Object.entries(t).length===0}static noop(){}static offset(t){if(!t||!t.getBoundingClientRect)return;let n=t.getBoundingClientRect(),o=document.documentElement;return{top:n.top+window.pageYOffset-o.clientTop,left:n.left+window.pageXOffset-o.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,n){if(!(!t||!t.getBoundingClientRect)){if(n===void 0)return t.getBoundingClientRect().width;jt.setStyleSize(t,"width",n)}}static height(t,n){if(t){if(n===void 0)return t.getBoundingClientRect().height;jt.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:!jt.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?jt.isHidden(t)&&o.push(t):r?jt.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 jt.slideAnimation(t,"slideUp",n)}static slideDown(t,n){return jt.slideAnimation(t,"slideDown",n)}static slideAnimation(t,n,o){if(window.jQuery!==void 0){window.jQuery(t)[n]("fast",o);return}n==="slideUp"?jt.hide(t):jt.show(t),o()}static applyDefaults(t,n){typeof n=="object"&&Object.keys(n).forEach(o=>{n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n[o])})}static addSlickEventPubSubWhenDefined(t,n){if(t)for(let o in n)n[o]instanceof jr&&typeof n[o].setPubSubService=="function"&&n[o].setPubSubService(t)}};E(Hn,"getProto",Object.getPrototypeOf),E(Hn,"class2type",{}),E(Hn,"toString",Hn.class2type.toString),E(Hn,"hasOwn",Hn.class2type.hasOwnProperty),E(Hn,"fnToString",Hn.hasOwn.toString),E(Hn,"ObjectFunctionString",Hn.fnToString.call(Object)),E(Hn,"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 co=Hn,gv=new hN,fN={Event:jr,EventHandler:ma,GlobalEditorLock:gv,keyCode:{SPACE:8,DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38},preClickClassName:"slick-edit-preclick",GridAutosizeColsMode:{None:"NOA",LegacyOff:"LOF",LegacyForceFit:"LFF",IgnoreViewport:"IGV",FitColsToViewport:"FCV",FitViewportToCols:"FVC"},ColAutosizeMode:{Locked:"LCK",Guide:"GUI",ContentExpandOnly:"CXO",ContentIntelligent:"CTI"},RowSelectionMode:{FirstRow:"FS1",FirstNRows:"FSN",AllRows:"ALL",LastRow:"LS1"},ValueFilterMode:{None:"NONE",DeDuplicate:"DEDP",GetGreatestAndSub:"GR8T",GetLongestTextAndSub:"LNSB",GetLongestText:"LNSC"},WidthEvalMode:{Auto:"AUTO",TextOnly:"CANV"}},{Event:pN,EventHandler:mN,GlobalEditorLock:gN,keyCode:Ir,preClickClassName:yN,GridAutosizeColsMode:yv,ColAutosizeMode:vN,RowSelectionMode:bN,ValueFilterMode:wN,WidthEvalMode:CN}=fN,SN=co,vv=class{constructor(e,t){this.grid=e,E(this,"pluginName","CellRangeDecorator"),E(this,"_options"),E(this,"_elem"),E(this,"_defaults",{selectionCssClass:"slick-range-decorator",selectionCss:{zIndex:"9999",border:"2px dashed red"},offset:{top:-1,left:-1,height:-2,width:-2}}),this._options=SN.extend(!0,{},this._defaults,t)}destroy(){this.hide()}init(){}hide(){this._elem?.remove(),this._elem=null}show(e){if(!this._elem){this._elem=document.createElement("div"),this._elem.className=this._options.selectionCssClass,Object.keys(this._options.selectionCss).forEach(r=>{this._elem.style[r]=this._options.selectionCss[r]}),this._elem.style.position="absolute";let o=this.grid.getActiveCanvasNode();o&&o.appendChild(this._elem)}let t=this.grid.getCellNodeBox(e.fromRow,e.fromCell),n=this.grid.getCellNodeBox(e.toRow,e.toCell);return t&&n&&this._options?.offset&&(this._elem.style.top=`${t.top+this._options.offset.top}px`,this._elem.style.left=`${t.left+this._options.offset.left}px`,this._elem.style.height=`${n.bottom-t.top+this._options.offset.height}px`,this._elem.style.width=`${n.right-t.left+this._options.offset.width}px`),this._elem}},_N=co;function lh(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,l,d,u,f,p,y;t||(t=document.body);let b={dragSource:t,dragHandle:null};function w(){t&&(t.addEventListener("mousedown",P),t.addEventListener("touchstart",P))}function g(C,O,A){if(typeof C=="function")return C(O,A)}function v(){t&&(t.removeEventListener("mousedown",P),t.removeEventListener("touchstart",P))}function T(C){let O=!1;return a&&a.forEach(A=>{C[A]&&(O=!0)}),O}function P(C){if(!T(C)){l=C.target;let O=C?.touches?.[0]??C,{target:A}=O;if(!e.allowDragFrom||e.allowDragFrom&&l.matches(e.allowDragFrom)||e.allowDragFromClosest&&l.closest(e.allowDragFromClosest)){b.dragHandle=l;let F=_N.windowScrollPosition();d=F.left+O.clientX,u=F.top+O.clientY,f=O.clientX-O.clientX,p=O.clientY-O.clientY,b=Object.assign(b,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(n,C,b)!==!1&&(document.body.addEventListener("mousemove",x),document.body.addEventListener("touchmove",x),document.body.addEventListener("mouseup",S),document.body.addEventListener("touchend",S),document.body.addEventListener("touchcancel",S))}}}function x(C){if(!T(C)){let O=C?.touches?.[0]??C;f=O.clientX-d,p=O.clientY-u;let{target:A}=O;y||(b=Object.assign(b,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(o,C,b),y=!0),b=Object.assign(b,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(r,C,b)}}function S(C){if(document.body.removeEventListener("mousemove",x),document.body.removeEventListener("touchmove",x),document.body.removeEventListener("mouseup",S),document.body.removeEventListener("touchend",S),document.body.removeEventListener("touchcancel",S),y){let{target:O}=C;b=Object.assign(b,{target:O}),g(i,C,b),y=!1}}return w(),{destroy:v}}function xN(e){let{element:t,onMouseWheel:n}=e;function o(){t.removeEventListener("wheel",i),t.removeEventListener("mousewheel",i)}function r(){t.addEventListener("wheel",i),t.addEventListener("mousewheel",i)}function i(a){let l=a||window.event,d=0,u=0,f=0;l.wheelDelta&&(d=l.wheelDelta/120),l.detail&&(d=-l.detail/3),f=d,l.axis!==void 0&&l.axis===l.HORIZONTAL_AXIS&&(f=0,u=-1*d),l.wheelDeltaY!==void 0&&(f=l.wheelDeltaY/120),l.wheelDeltaX!==void 0&&(u=-1*l.wheelDeltaX/120),typeof n=="function"&&n(a,d,u,f)}return r(),{destroy:o}}function RN(e){let{resizeableElement:t,resizeableHandleElement:n,onResizeStart:o,onResize:r,onResizeEnd:i}=e;if(!n||typeof n.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function a(){n.addEventListener("mousedown",u),n.addEventListener("touchstart",u)}function l(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",u),n.removeEventListener("touchstart",u))}function d(y,b){if(typeof y=="function")return y(b,{resizeableElement:t,resizeableHandleElement:n})}function u(y){y.preventDefault();let b=y.touches?y.changedTouches[0]:y;d(o,b)!==!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 b=y.touches?y.changedTouches[0]:y;typeof r=="function"&&r(b,{resizeableElement:t,resizeableHandleElement:n})}function p(y){let b=y.touches?y.changedTouches[0]:y;d(i,b),document.body.removeEventListener("mousemove",f),document.body.removeEventListener("mouseup",p),document.body.removeEventListener("touchmove",f),document.body.removeEventListener("touchend",p)}return a(),{destroy:l}}var cd=jr,TN=ma,dd=ah,kN=lh,EN=vv,si=co,PN=class{constructor(e){E(this,"pluginName","CellRangeSelector"),E(this,"onBeforeCellRangeSelected",new cd("onBeforeCellRangeSelected")),E(this,"onCellRangeSelected",new cd("onCellRangeSelected")),E(this,"onCellRangeSelecting",new cd("onCellRangeSelecting")),E(this,"_grid"),E(this,"_currentlySelectedRange",null),E(this,"_canvas",null),E(this,"_decorator"),E(this,"_gridOptions"),E(this,"_activeCanvas"),E(this,"_dragging",!1),E(this,"_handler",new TN),E(this,"_options"),E(this,"_defaults",{autoScroll:!0,minIntervalToShowNextCell:30,maxIntervalToShowNextCell:600,accelerateInterval:5,selectionCss:{border:"2px dashed blue"}}),E(this,"_rowOffset",0),E(this,"_columnOffset",0),E(this,"_isRightCanvas",!1),E(this,"_isBottomCanvas",!1),E(this,"_activeViewport"),E(this,"_autoScrollTimerId"),E(this,"_draggingMouseOffset"),E(this,"_moveDistanceForOneCell"),E(this,"_xDelayForNextCell",0),E(this,"_yDelayForNextCell",0),E(this,"_viewportHeight",0),E(this,"_viewportWidth",0),E(this,"_isRowMoveRegistered",!1),E(this,"_scrollLeft",0),E(this,"_scrollTop",0),this._options=si.extend(!0,{},this._defaults,e)}init(e){if(kN===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');this._decorator=this._options.cellDecorator||new EN(e,this._options),this._grid=e,si.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._canvas=this._grid.getCanvasNode(),this._gridOptions=this._grid.getOptions(),this._handler.subscribe(this._grid.onScroll,this.handleScroll.bind(this)).subscribe(this._grid.onDragInit,this.handleDragInit.bind(this)).subscribe(this._grid.onDragStart,this.handleDragStart.bind(this)).subscribe(this._grid.onDrag,this.handleDrag.bind(this)).subscribe(this._grid.onDragEnd,this.handleDragEnd.bind(this))}destroy(){this._handler.unsubscribeAll(),this._activeCanvas=null,this._activeViewport=null,this._canvas=null,this._decorator?.destroy()}getCellDecorator(){return this._decorator}handleScroll(e,t){this._scrollTop=t.scrollTop,this._scrollLeft=t.scrollLeft}handleDragInit(e){this._activeCanvas=this._grid.getActiveCanvasNode(e),this._activeViewport=this._grid.getActiveViewportNode(e);let t=this._grid.getDisplayedScrollbarDimensions();if(this._viewportWidth=this._activeViewport.offsetWidth-t.width,this._viewportHeight=this._activeViewport.offsetHeight-t.height,this._moveDistanceForOneCell={x:this._grid.getAbsoluteColumnMinWidth()/2,y:this._grid.getOptions().rowHeight/2},this._isRowMoveRegistered=this.hasRowMoveManager(),this._rowOffset=0,this._columnOffset=0,this._isBottomCanvas=this._activeCanvas.classList.contains("grid-canvas-bottom"),this._gridOptions.frozenRow>-1&&this._isBottomCanvas){let n=`.${this._grid.getUID()} .grid-canvas-${this._gridOptions.frozenBottom?"bottom":"top"}`,o=document.querySelector(n);o&&(this._rowOffset=o.clientHeight||0)}if(this._isRightCanvas=this._activeCanvas.classList.contains("grid-canvas-right"),this._gridOptions.frozenColumn>-1&&this._isRightCanvas){let n=document.querySelector(`.${this._grid.getUID()} .grid-canvas-left`);n&&(this._columnOffset=n.clientWidth||0)}e.stopImmediatePropagation(),e.preventDefault()}handleDragStart(e,t){let n=this._grid.getCellFromEvent(e);if(n&&this.onBeforeCellRangeSelected.notify(n).getReturnValue()!==!1&&this._grid.canCellBeSelected(n.row,n.cell)&&(this._dragging=!0,e.stopImmediatePropagation()),!this._dragging)return;this._grid.focus();let o=si.offset(this._canvas),r=t.startX-(o?.left??0);this._gridOptions.frozenColumn>=0&&this._isRightCanvas&&(r+=this._scrollLeft);let i=t.startY-(o?.top??0);this._gridOptions.frozenRow>=0&&this._isBottomCanvas&&(i+=this._scrollTop);let a=this._grid.getCellFromPoint(r,i);return t.range={start:a,end:{}},this._currentlySelectedRange=t.range,this._decorator.show(new dd(a.row,a.cell))}handleDrag(e,t){if(!this._dragging&&!this._isRowMoveRegistered)return;this._isRowMoveRegistered||e.stopImmediatePropagation();let n=e.getNativeEvent();if(this._options.autoScroll&&(this._draggingMouseOffset=this.getMouseOffsetViewport(n,t),this._draggingMouseOffset.isOutsideViewport))return this.handleDragOutsideViewport();this.stopIntervalTimer(),this.handleDragTo(n,t)}getMouseOffsetViewport(e,t){let n=e?.touches?.[0]??e,o=this._activeViewport.scrollLeft,r=this._activeViewport.scrollTop,i=o+this._viewportWidth,a=r+this._viewportHeight,l=si.offset(this._activeViewport),d=l?.left??0,u=l?.top??0,f=d+this._viewportWidth,p=u+this._viewportHeight,y={e,dd:t,viewport:{left:o,top:r,right:i,bottom:a,offset:{left:d,top:u,right:f,bottom:p}},offset:{x:0,y:0},isOutsideViewport:!1};return n.pageX<d?y.offset.x=n.pageX-d:n.pageX>f&&(y.offset.x=n.pageX-f),n.pageY<u?y.offset.y=u-n.pageY:n.pageY>p&&(y.offset.y=p-n.pageY),y.isOutsideViewport=!!y.offset.x||!!y.offset.y,y}handleDragOutsideViewport(){if(this._xDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.x)*this._options.accelerateInterval,this._yDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.y)*this._options.accelerateInterval,!this._autoScrollTimerId){let e=0,t=0;this._autoScrollTimerId=window.setInterval(()=>{let n=!1,o=!1;this._draggingMouseOffset.offset.x?(e+=this._options.minIntervalToShowNextCell,n=e>=this._xDelayForNextCell):e=0,this._draggingMouseOffset.offset.y?(t+=this._options.minIntervalToShowNextCell,o=t>=this._yDelayForNextCell):t=0,(n||o)&&(n&&(e=0),o&&(t=0),this.handleDragToNewPosition(n,o))},this._options.minIntervalToShowNextCell)}}handleDragToNewPosition(e,t){let n=this._draggingMouseOffset.e.pageX,o=this._draggingMouseOffset.e.pageY,r=this._draggingMouseOffset.offset.x,i=this._draggingMouseOffset.offset.y,a=this._draggingMouseOffset.viewport.offset;e&&r&&(r>0?n=a.right+this._moveDistanceForOneCell.x:n=a.left-this._moveDistanceForOneCell.x),t&&i&&(i>0?o=a.top-this._moveDistanceForOneCell.y:o=a.bottom+this._moveDistanceForOneCell.y),this.handleDragTo({pageX:n,pageY:o},this._draggingMouseOffset.dd)}stopIntervalTimer(){this._autoScrollTimerId&&(window.clearInterval(this._autoScrollTimerId),this._autoScrollTimerId=void 0)}handleDragTo(e,t){let n=e?.touches?.[0]??e,o=si.offset(this._activeCanvas),r=this._grid.getCellFromPoint(n.pageX-(o?.left??0)+this._columnOffset,n.pageY-(o?.top??0)+this._rowOffset);if(!(this._gridOptions.frozenColumn>=0&&!this._isRightCanvas&&r.cell>this._gridOptions.frozenColumn||this._isRightCanvas&&r.cell<=this._gridOptions.frozenColumn)&&!(this._gridOptions.frozenRow>=0&&!this._isBottomCanvas&&r.row>=this._gridOptions.frozenRow||this._isBottomCanvas&&r.row<this._gridOptions.frozenRow)){if(this._options.autoScroll&&this._draggingMouseOffset){let i=this._grid.getCellNodeBox(r.row,r.cell);if(!i)return;let a=this._draggingMouseOffset.viewport;(i.left<a.left||i.right>a.right||i.top<a.top||i.bottom>a.bottom)&&this._grid.scrollCellIntoView(r.row,r.cell)}if(this._grid.canCellBeSelected(r.row,r.cell)&&t?.range){t.range.end=r;let i=new dd(t.range.start.row??0,t.range.start.cell??0,r.row,r.cell);this._decorator.show(i),this.onCellRangeSelecting.notify({range:i})}}}hasRowMoveManager(){return!!(this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager"))}handleDragEnd(e,t){this._decorator.hide(),this._dragging&&(this._dragging=!1,e.stopImmediatePropagation(),this.stopIntervalTimer(),this.onCellRangeSelected.notify({range:new dd(t.range.start.row??0,t.range.start.cell??0,t.range.end.row,t.range.end.cell)}))}getCurrentRange(){return this._currentlySelectedRange}},DN=uc,ON=ma,rr=co,MN=class{constructor(e){E(this,"pluginName","CheckboxSelectColumn"),E(this,"_dataView"),E(this,"_grid"),E(this,"_isUsingDataView",!1),E(this,"_selectableOverride",null),E(this,"_headerRowNode"),E(this,"_selectAll_UID"),E(this,"_handler",new ON),E(this,"_selectedRowsLookup",{}),E(this,"_checkboxColumnCellIndex",null),E(this,"_options"),E(this,"_defaults",{columnId:"_checkbox_selector",cssClass:void 0,hideSelectAllCheckbox:!1,name:"",toolTip:"Select/Deselect All",width:30,reorderable:!1,applySelectOnAllPages:!1,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0}),E(this,"_isSelectAllChecked",!1),E(this,"_bindingEventService"),this._bindingEventService=new DN,this._options=rr.extend(!0,{},this._defaults,e),this._selectAll_UID=this.createUID(),typeof this._options.selectableOverride=="function"&&this.selectableOverride(this._options.selectableOverride)}init(e){this._grid=e,this._isUsingDataView=!Array.isArray(e.getData()),this._isUsingDataView&&(this._dataView=e.getData()),this._handler.subscribe(this._grid.onSelectedRowsChanged,this.handleSelectedRowsChanged.bind(this)).subscribe(this._grid.onClick,this.handleClick.bind(this)).subscribe(this._grid.onKeyDown,this.handleKeyDown.bind(this)).subscribe(this._grid.onAfterSetColumns,()=>this.renderSelectAllCheckbox(this._isSelectAllChecked)),this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages&&this._handler.subscribe(this._dataView.onSelectedRowIdsChanged,this.handleDataViewSelectedIdsChanged.bind(this)).subscribe(this._dataView.onPagingInfoChanged,this.handleDataViewSelectedIdsChanged.bind(this)),this._options.hideInFilterHeaderRow||this.addCheckboxToFilterHeaderRow(e),this._options.hideInColumnTitleRow||this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}getOptions(){return this._options}setOptions(e){if(this._options=rr.extend(!0,{},this._options,e),this._options.hideSelectAllCheckbox)this.hideSelectAllFromColumnHeaderTitleRow(),this.hideSelectAllFromColumnHeaderFilterRow();else if(this._options.hideInColumnTitleRow?(this.hideSelectAllFromColumnHeaderTitleRow(),this._options.name&&this._grid.updateColumnHeader(this._options.columnId||"",this._options.name,"")):(this.renderSelectAllCheckbox(this._isSelectAllChecked),this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))),this._options.hideInFilterHeaderRow)this.hideSelectAllFromColumnHeaderFilterRow();else{let t=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");if(t){t.style.display="flex";let n=t.querySelector('input[type="checkbox"]');n&&(n.checked=this._isSelectAllChecked)}}}hideSelectAllFromColumnHeaderTitleRow(){this._grid.updateColumnHeader(this._options.columnId||"",this._options.name||"","")}hideSelectAllFromColumnHeaderFilterRow(){let e=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");e&&(e.style.display="none")}handleSelectedRowsChanged(){let e=this._grid.getSelectedRows(),t={},n=0,o=0,r=0,i=0;if(typeof this._selectableOverride=="function")for(r=0;r<this._grid.getDataLength();r++){let l=this._grid.getDataItem(r);this.checkSelectableOverride(o,l,this._grid)||i++}let a=[];for(o=0;o<e.length;o++){n=e[o];let l=this._grid.getDataItem(n);this.checkSelectableOverride(o,l,this._grid)?(t[n]=!0,t[n]!==this._selectedRowsLookup[n]&&(this._grid.invalidateRow(n),delete this._selectedRowsLookup[n])):a.push(n)}if(typeof this._selectedRowsLookup=="object"&&Object.keys(this._selectedRowsLookup).forEach(l=>{l!==void 0&&this._grid.invalidateRow(+l)}),this._selectedRowsLookup=t,this._grid.render(),this._isSelectAllChecked=(e?.length??0)+i>=this._grid.getDataLength(),(!this._isUsingDataView||!this._options.applySelectOnAllPages)&&(!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow)){let l=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);l&&(l.checked=this._isSelectAllChecked)}if(a.length>0){for(o=0;o<a.length;o++){let l=e.indexOf(a[o]);e.splice(l,1)}this._grid.setSelectedRows(e,"click.cleanup")}}handleDataViewSelectedIdsChanged(){let e=this._dataView.getAllSelectedFilteredIds(),t=this._dataView.getFilteredItems(),n=0;if(typeof this._selectableOverride=="function"&&e.length>0)for(let o=0;o<this._dataView.getItemCount();o++){let r=this._dataView.getItemByIdx(o),i=this._dataView.getIdPropertyName(),a=r[i];t.findIndex(function(l){return l[i]===a})>=0&&!this.checkSelectableOverride(o,r,this._grid)&&n++}if(this._isSelectAllChecked=(e&&e.length)+n>=t.length,!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow){let o=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);o&&(o.checked=this._isSelectAllChecked)}}handleKeyDown(e,t){e.which===32&&this._grid.getColumns()[t.cell].id===this._options.columnId&&((!this._grid.getEditorLock().isActive()||this._grid.getEditorLock().commitCurrentEdit())&&this.toggleRowSelection(t.row),e.preventDefault(),e.stopImmediatePropagation())}handleClick(e,t){if(this._grid.getColumns()[t.cell].id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}this.toggleRowSelection(t.row),e.stopPropagation(),e.stopImmediatePropagation()}}toggleRowSelection(e){let t=this._grid.getDataItem(e);if(this.checkSelectableOverride(e,t,this._grid)){if(this._selectedRowsLookup[e]){let n=this._grid.getSelectedRows().filter(o=>o!==e);this._grid.setSelectedRows(n,"click.toggle")}else this._grid.setSelectedRows(this._grid.getSelectedRows().concat(e),"click.toggle");this._grid.setActiveCell(e,this.getCheckboxColumnCellIndex())}}selectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]||(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().concat(t),"SlickCheckboxSelectColumn.selectRows")}deSelectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]&&(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().filter(n=>t.indexOf(n)<0),"SlickCheckboxSelectColumn.deSelectRows")}handleHeaderClick(e,t){if(t.column.id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}let n=e.target.checked,o=n?"click.selectAll":"click.unselectAll",r=[];if(n){for(let i=0;i<this._grid.getDataLength();i++){let a=this._grid.getDataItem(i);!a.__group&&!a.__groupTotals&&this.checkSelectableOverride(i,a,this._grid)&&r.push(i)}n=!0}if(this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages){let i=[],a=this._dataView.getFilteredItems();for(let l=0;l<a.length;l++){let d=a[l];this.checkSelectableOverride(l,d,this._grid)&&i.push(d[this._dataView.getIdPropertyName()])}this._dataView.setSelectedIds(i,{isRowBeingAdded:n})}this._grid.setSelectedRows(r,o),e.stopPropagation(),e.stopImmediatePropagation()}}getCheckboxColumnCellIndex(){if(this._checkboxColumnCellIndex===null){this._checkboxColumnCellIndex=0;let e=this._grid.getColumns();for(let t=0;t<e.length;t++)e[t].id===this._options.columnId&&(this._checkboxColumnCellIndex=t)}return this._checkboxColumnCellIndex}createCheckboxElement(e,t=!1){let n=new DocumentFragment;return n.appendChild(rr.createDomElement("input",{id:e,type:"checkbox",checked:t,ariaChecked:String(t)})),n.appendChild(rr.createDomElement("label",{htmlFor:e})),n}getColumnDefinition(){return{id:this._options.columnId,reorderable:this._options.reorderable,name:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?this._options.name||"":this.createCheckboxElement(`header-selector${this._selectAll_UID}`),toolTip:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?"":this._options.toolTip,field:"sel",width:this._options.width,resizable:!1,sortable:!1,cssClass:this._options.cssClass,hideSelectAllCheckbox:this._options.hideSelectAllCheckbox,formatter:this.checkboxSelectionFormatter.bind(this),excludeFromColumnPicker:this._options.excludeFromColumnPicker??!0,excludeFromGridMenu:this._options.excludeFromGridMenu??!0,excludeFromHeaderMenu:this._options.excludeFromHeaderMenu??!0}}addCheckboxToFilterHeaderRow(e){this._handler.subscribe(e.onHeaderRowCellRendered,(t,n)=>{if(n.column.field==="sel"){rr.emptyElement(n.node);let o=rr.createDomElement("span",{id:"filter-checkbox-selectall-container",ariaChecked:"false"});o.appendChild(rr.createDomElement("input",{type:"checkbox",id:`header-filter-selector${this._selectAll_UID}`})),o.appendChild(rr.createDomElement("label",{htmlFor:`header-filter-selector${this._selectAll_UID}`})),n.node.appendChild(o),this._headerRowNode=n.node,this._bindingEventService.bind(o,"click",r=>this.handleHeaderClick(r,n))}})}createUID(){return Math.round(1e7*Math.random())}checkboxSelectionFormatter(e,t,n,o,r,i){if(r&&this.checkSelectableOverride(e,r,i)){let a=this.createUID()+e;return this.createCheckboxElement(`selector${a}`,!!this._selectedRowsLookup[e])}return null}checkSelectableOverride(e,t,n){return typeof this._selectableOverride=="function"?this._selectableOverride(e,t,n):!0}renderSelectAllCheckbox(e){this._grid.updateColumnHeader(this._options.columnId||"",this.createCheckboxElement(`header-selector${this._selectAll_UID}`,!!e),this._options.toolTip)}selectableOverride(e){this._selectableOverride=e}},IN=uc,NN=jr,AN=mN,ud=co,FN=class{constructor(e){E(this,"pluginName","HeaderButtons"),E(this,"onCommand",new NN("onCommand")),E(this,"_grid"),E(this,"_handler",new AN),E(this,"_bindingEventService",new IN),E(this,"_defaults",{buttonCssClass:"slick-header-button"}),E(this,"_options"),this._options=ud.extend(!0,{},this._defaults,e)}init(e){this._grid=e,ud.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns())}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}handleHeaderCellRendered(e,t){let n=t.column;if(n.header?.buttons){let o=n.header.buttons.length;for(;o--;){let r=n.header.buttons[o],i=this.runOverrideFunctionWhenExists(r.itemVisibilityOverride,t),a=this.runOverrideFunctionWhenExists(r.itemUsabilityOverride,t);if(!i)continue;Object.prototype.hasOwnProperty.call(r,"itemUsabilityOverride")&&(r.disabled=!a);let l=document.createElement("div");l.className=this._options.buttonCssClass||"",l.ariaLabel="Header Button",l.role="button",r.disabled&&l.classList.add("slick-header-button-disabled"),r.showOnHover&&l.classList.add("slick-header-button-hidden"),r.image&&(l.style.backgroundImage=`url(${r.image})`),r.cssClass&&l.classList.add(...ud.classNameToList(r.cssClass)),r.tooltip&&(l.title=r.tooltip),r.handler&&!r.disabled&&this._bindingEventService.bind(l,"click",r.handler),this._bindingEventService.bind(l,"click",this.handleButtonClick.bind(this,r,t.column)),t.node.appendChild(l)}}}handleBeforeHeaderCellDestroy(e,t){if(t.column.header?.buttons){let n=(this._options.buttonCssClass||"").replace(/(\s+)/g,".");n&&t.node.querySelectorAll(`.${n}`).forEach(o=>o.remove())}}handleButtonClick(e,t,n){let o=e.command||"",r={grid:this._grid,column:t,button:e};o&&(r.command=o),typeof e.action=="function"&&e.action.call(this,n,r),o&&!e.disabled&&(this.onCommand.notify(r,n,this),this._grid.updateColumnHeader(t.id)),n.preventDefault(),n.stopPropagation()}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},LN=uc,hd=pN,$N=ma,In=co,VN=class{constructor(e){E(this,"pluginName","HeaderMenu"),E(this,"onAfterMenuShow",new hd("onAfterMenuShow")),E(this,"onBeforeMenuShow",new hd("onBeforeMenuShow")),E(this,"onCommand",new hd("onCommand")),E(this,"_grid"),E(this,"_gridUid",""),E(this,"_handler",new $N),E(this,"_bindingEventService",new LN),E(this,"_defaults",{buttonCssClass:void 0,buttonImage:void 0,minWidth:100,autoAlign:!0,autoAlignOffset:0,subMenuOpenByEvent:"mouseover"}),E(this,"_options"),E(this,"_activeHeaderColumnElm"),E(this,"_menuElm"),E(this,"_subMenuParentId",""),this._options=In.extend(!0,{},e,this._defaults)}init(e){this._grid=e,this._gridUid=e?.getUID()||"",In.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns()),this._bindingEventService.bind(document.body,"click",this.handleBodyMouseDown.bind(this))}setOptions(e){this._options=In.extend(!0,{},this._options,e)}getGridUidSelector(){let e=this._grid.getUID()||"";return e?`.${e}`:""}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll(),this._menuElm=this._menuElm||document.body.querySelector(`.slick-header-menu${this.getGridUidSelector()}`),this._menuElm?.remove(),this._activeHeaderColumnElm=void 0}destroyAllMenus(){this.destroySubMenus(),this._bindingEventService.unbindAll("parent-menu"),document.querySelectorAll(`.slick-header-menu${this.getGridUidSelector()}`).forEach(e=>e.remove())}destroySubMenus(){this._bindingEventService.unbindAll("sub-menu"),document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(e=>e.remove())}handleBodyMouseDown(e){let t=!1;this._menuElm?.contains(e.target)&&(t=!0),t||document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(n=>{n.contains(e.target)&&(t=!0)}),(this._menuElm!==e.target&&!t&&!e.defaultPrevented||e.target.className==="close")&&this.hideMenu()}hideMenu(){this._menuElm&&(this._menuElm.remove(),this._menuElm=void 0),this._activeHeaderColumnElm?.classList.remove("slick-header-column-active"),this.destroySubMenus()}handleHeaderCellRendered(e,t){let n=t.column?.header?.menu;if(n?.items&&console.warn('[SlickGrid] Header Menu "items" property was deprecated in favor of "commandItems" to align with all other Menu plugins.'),n){if(!this.runOverrideFunctionWhenExists(this._options.menuUsabilityOverride,t))return;let o=document.createElement("div");if(o.className="slick-header-menubutton",o.ariaLabel="Header Menu",o.role="button",!this._options.buttonCssClass&&!this._options.buttonImage&&(this._options.buttonCssClass="caret"),this._options.buttonCssClass){let r=document.createElement("span");r.classList.add(...In.classNameToList(this._options.buttonCssClass)),o.appendChild(r)}this._options.buttonImage&&(o.style.backgroundImage=`url(${this._options.buttonImage})`),this._options.tooltip&&(o.title=this._options.tooltip),this._bindingEventService.bind(o,"click",r=>{this.destroyAllMenus(),this.createParentMenu(r,n,t.column)}),t.node.appendChild(o)}}handleBeforeHeaderCellDestroy(e,t){t.column.header?.menu&&t.node.querySelectorAll(".slick-header-menubutton").forEach(n=>n.remove())}addSubMenuTitleWhenExists(e,t){if(e!=="divider"&&e?.subMenuTitle){let n=document.createElement("div");n.className="slick-menu-title",n.textContent=e.subMenuTitle;let o=e.subMenuTitleCssClass;o&&n.classList.add(...In.classNameToList(o)),t.appendChild(n)}}createParentMenu(e,t,n){let o={grid:this._grid,column:n,menu:t};if(this.onBeforeMenuShow.notify(o,e,this).getReturnValue()===!1)return;this._menuElm=this.createMenu(t.commandItems||t.items,n);let r=this._grid.getContainerNode();r&&r.appendChild(this._menuElm),this.repositionMenu(e,this._menuElm),this.onAfterMenuShow.notify(o,e,this).getReturnValue()!==!1&&(e.preventDefault(),e.stopPropagation())}createMenu(e,t,n=0,o){let r=n>0,i=o?.command,a=n===1&&i?i.replaceAll(" ",""):"";a&&(this._subMenuParentId=a),r&&(a=this._subMenuParentId);let l=`slick-header-menu slick-menu-level-${n} ${this._gridUid}`,d=document.body.querySelector(`.slick-header-menu.slick-menu-level-${n}${this.getGridUidSelector()}`);if(d){if(d.dataset.subMenuParent===a)return d;this.destroySubMenus()}let u=document.createElement("div");u.className=l,n>0&&(u.classList.add("slick-submenu"),a&&(u.dataset.subMenuParent=a)),u.classList.add(this._gridUid),u.role="menu",u.ariaLabel=n>1?"SubMenu":"Header Menu",u.style.minWidth=`${this._options.minWidth}px`,u.setAttribute("aria-expanded","true");let f={grid:this._grid,column:t,menu:{items:e}};o&&n>0&&this.addSubMenuTitleWhenExists(o,u);for(let p=0;p<e.length;p++){let y=!0,b=e[p],w=this.runOverrideFunctionWhenExists(b.itemVisibilityOverride,f),g=this.runOverrideFunctionWhenExists(b.itemUsabilityOverride,f);if(!w)continue;Object.prototype.hasOwnProperty.call(b,"itemUsabilityOverride")&&(b.disabled=!g);let v=document.createElement("div");v.className="slick-header-menuitem",v.role="menuitem",(b.divider||b==="divider")&&(v.classList.add("slick-header-menuitem-divider"),y=!1),b.disabled&&v.classList.add("slick-header-menuitem-disabled"),b.hidden&&v.classList.add("slick-header-menuitem-hidden"),b.cssClass&&v.classList.add(...In.classNameToList(b.cssClass)),b.tooltip&&(v.title=b.tooltip||"");let T=document.createElement("div");T.className="slick-header-menuicon",v.appendChild(T),b.iconCssClass&&T.classList.add(...In.classNameToList(b.iconCssClass)),b.iconImage&&(T.style.backgroundImage="url("+b.iconImage+")");let P=document.createElement("span");if(P.className="slick-header-menucontent",P.textContent=b.title||"",v.appendChild(P),b.textCssClass&&P.classList.add(...In.classNameToList(b.textCssClass)),u.appendChild(v),y){let x=r?"sub-menu":"parent-menu";this._bindingEventService.bind(v,"click",this.handleMenuItemClick.bind(this,b,t,n),void 0,x)}if(this._options.subMenuOpenByEvent==="mouseover"&&this._bindingEventService.bind(v,"mouseover",x=>{b.commandItems||b.items?this.repositionSubMenu(b,t,n,x):r||this.destroySubMenus()}),b.commandItems||b.items){let x=document.createElement("div");x.className="sub-item-chevron",this._options.subItemChevronClass?x.classList.add(...In.classNameToList(this._options.subItemChevronClass)):x.textContent="⮞",v.classList.add("slick-submenu-item"),v.appendChild(x)}}return u}handleMenuItemClick(e,t,n=0,o){if(e!=="divider"&&!e.disabled&&!e.divider){let r=e.command||"";if(In.isDefined(r)&&!e.commandItems&&!e.items){let i={grid:this._grid,column:t,command:r,item:e};this.onCommand.notify(i,o,this),typeof e.action=="function"&&e.action.call(this,o,i),o.defaultPrevented||this.hideMenu()}else e.commandItems||e.items?this.repositionSubMenu(e,t,n,o):this.destroySubMenus()}}repositionSubMenu(e,t,n,o){o.target.classList.contains("slick-header-menubutton")&&this.destroySubMenus();let r=this.createMenu(e.commandItems||e.items||[],t,n+1,e);document.body.appendChild(r),this.repositionMenu(o,r)}repositionMenu(e,t){let n=e.target,o=t.classList.contains("slick-submenu"),r=o?e.target.closest(".slick-header-menuitem"):n,i=In.offset(n),a=this._grid.getGridPosition(),l=t.offsetWidth,d=In.offset(this._menuElm),u=In.offset(r),f=o?u?.top??0:n.clientHeight??i?.top??0+(this._options?.menuOffsetTop??0),p=o?u?.left??0:i?.left??0;if(o&&r){let y=p+Number(l);o&&(y+=r.clientWidth);let b=document.documentElement.clientWidth;(y>=a.width||y>=b?"left":"right")=="left"?(t.classList.remove("dropright"),t.classList.add("dropleft"),p-=l):(t.classList.remove("dropleft"),t.classList.add("dropright"),o&&(p+=r.offsetWidth))}else p+t.offsetWidth>=a.width&&(p=p+n.clientWidth-t.clientWidth+(this._options.autoAlignOffset||0)),p-=d?.left??0;t.style.top=`${f}px`,t.style.left=`${p}px`,this._activeHeaderColumnElm=t.closest(".slick-header-column"),this._activeHeaderColumnElm&&this._activeHeaderColumnElm.classList.add("slick-header-column-active")}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},jN=lh,fd=Ir,BN=vv,WN=PN,HN=jr,zN=Gi,YN=ma,pd=ah,za=co,UN=class{constructor(e){E(this,"pluginName","RowSelectionModel"),E(this,"onSelectedRangesChanged",new HN("onSelectedRangesChanged")),E(this,"_grid"),E(this,"_ranges",[]),E(this,"_eventHandler",new YN),E(this,"_inHandler",!1),E(this,"_selector"),E(this,"_isRowMoveManagerHandler"),E(this,"_options"),E(this,"_defaults",{selectActiveRow:!0,dragToSelect:!1,autoScrollWhenDrag:!0,cellRangeSelector:void 0}),this._options=za.extend(!0,{},this._defaults,e)}init(e){if(jN===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');if(this._selector=this._options.cellRangeSelector,this._grid=e,za.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),!this._selector&&this._options.dragToSelect){if(!BN)throw new Error("Slick.CellRangeDecorator is required when option dragToSelect set to true");this._selector=new WN({selectionCss:{border:"none"},autoScroll:this._options.autoScrollWhenDrag})}this._eventHandler.subscribe(this._grid.onActiveCellChanged,this.wrapHandler(this.handleActiveCellChange).bind(this)),this._eventHandler.subscribe(this._grid.onKeyDown,this.wrapHandler(this.handleKeyDown).bind(this)),this._eventHandler.subscribe(this._grid.onClick,this.wrapHandler(this.handleClick).bind(this)),this._selector&&(e.registerPlugin(this._selector),this._selector.onCellRangeSelecting.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.subscribe(this.handleBeforeCellRangeSelected.bind(this)))}destroy(){this._eventHandler.unsubscribeAll(),this._selector&&(this._selector.onCellRangeSelecting.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.unsubscribe(this.handleBeforeCellRangeSelected.bind(this)),this._grid.unregisterPlugin(this._selector),this._selector.destroy&&this._selector.destroy())}wrapHandler(e){return(...t)=>{this._inHandler||(this._inHandler=!0,e.apply(this,t),this._inHandler=!1)}}rangesToRows(e){let t=[];for(let n=0;n<e.length;n++)for(let o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}rowsToRanges(e){let t=[],n=this._grid.getColumns().length-1;return e.forEach(o=>t.push(new pd(o,0,o,n))),t}getRowsRange(e,t){let n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}getSelectedRows(){return this.rangesToRows(this._ranges)}setSelectedRows(e){this.setSelectedRanges(this.rowsToRanges(e),"SlickRowSelectionModel.setSelectedRows")}setSelectedRanges(e,t="SlickRowSelectionModel.setSelectedRanges"){if((!this._ranges||this._ranges.length===0)&&(!e||e.length===0))return;this._ranges=e;let n=new zN(new CustomEvent("click",{detail:{caller:t}}),this._ranges);this.onSelectedRangesChanged.notify(this._ranges,n)}getSelectedRanges(){return this._ranges}refreshSelections(){this.setSelectedRows(this.getSelectedRows())}handleActiveCellChange(e,t){this._options.selectActiveRow&&za.isDefined(t.row)&&this.setSelectedRanges([new pd(t.row,0,t.row,this._grid.getColumns().length-1)])}handleKeyDown(e){let t=this._grid.getActiveCell();if(this._grid.getOptions().multiSelect&&t&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which===fd.UP||e.which===fd.DOWN)){let n=this.getSelectedRows();n.sort(function(a,l){return a-l}),n.length||(n=[t.row]);let o=n[0],r=n[n.length-1],i;if(e.which===fd.DOWN?i=t.row<r||o===r?++r:++o:i=t.row<r?--r:--o,i>=0&&i<this._grid.getDataLength()){this._grid.scrollRowIntoView(i);let a=this.rowsToRanges(this.getRowsRange(o,r));this.setSelectedRanges(a)}e.preventDefault(),e.stopPropagation()}}handleClick(e){let t=this._grid.getCellFromEvent(e);if(!t||!this._grid.canCellBeActive(t.row,t.cell)||!this._grid.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;let n=this.rangesToRows(this._ranges),o=n.indexOf(t.row);if(o===-1&&(e.ctrlKey||e.metaKey))n.push(t.row),this._grid.setActiveCell(t.row,t.cell);else if(o!==-1&&(e.ctrlKey||e.metaKey))n=n.filter(i=>i!==t.row),this._grid.setActiveCell(t.row,t.cell);else if(n.length&&e.shiftKey){let i=n.pop(),a=Math.min(t.row,i),l=Math.max(t.row,i);n=[];for(let d=a;d<=l;d++)d!==i&&n.push(d);n.push(i),this._grid.setActiveCell(t.row,t.cell)}let r=this.rowsToRanges(n);return this.setSelectedRanges(r),e.stopImmediatePropagation(),!0}handleBeforeCellRangeSelected(e,t){if(!this._isRowMoveManagerHandler){let n=this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager");this._isRowMoveManagerHandler=n?n.isHandlerColumn:za.noop}if(this._grid.getEditorLock().isActive()||this._isRowMoveManagerHandler(t.cell))return e.stopPropagation(),!1;this._grid.setActiveCell(t.row,t.cell)}handleCellRangeSelected(e,t){if(!this._grid.getOptions().multiSelect||!this._options.selectActiveRow)return!1;this.setSelectedRanges([new pd(t.range.fromRow,0,t.range.toRow,this._grid.getColumns().length-1)])}},qN=Ir,md=mv,ii=co,bv=class{constructor(e){E(this,"pluginName","GroupItemMetadataProvider"),E(this,"_grid"),E(this,"_options"),E(this,"_defaults",{checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:this.defaultGroupCellFormatter.bind(this),totalsFormatter:this.defaultTotalsCellFormatter.bind(this),includeHeaderTotals:!1}),this._options=ii.extend(!0,{},this._defaults,e)}get dataView(){return this._grid?.getData?.()??{}}getOptions(){return this._options}setOptions(e){ii.extend(!0,this._options,e)}defaultGroupCellFormatter(e,t,n,o,r){if(!this._options.enableExpandCollapse)return r.title;let i=`${r.level*15}px`,a=r.collapsed?this._options.toggleCollapsedCssClass:this._options.toggleExpandedCssClass,l=document.createDocumentFragment();this._options.checkboxSelect&&l.appendChild(ii.createDomElement("span",{className:`${this._options.checkboxSelectCssClass} ${r.selectChecked?"checked":"unchecked"}`})),l.appendChild(ii.createDomElement("span",{className:`${this._options.toggleCssClass} ${a}`,ariaExpanded:String(!r.collapsed),style:{marginLeft:i}}));let d=ii.createDomElement("span",{className:this._options.groupTitleCssClass||""});return d.setAttribute("level",r.level),r.title instanceof HTMLElement?d.appendChild(r.title):this._grid.applyHtmlCode(d,r.title??""),l.appendChild(d),l}defaultTotalsCellFormatter(e,t,n,o,r,i){return o?.groupTotalsFormatter?.(r,o,i)??""}init(e){this._grid=e,this._grid.onClick.subscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.subscribe(this.handleGridKeyDown.bind(this))}destroy(){this._grid&&(this._grid.onClick.unsubscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.unsubscribe(this.handleGridKeyDown.bind(this)))}handleGridClick(e,t){let n=e.target,o=this._grid.getDataItem(t.row);if(o&&o instanceof md&&n.classList.contains(this._options.toggleCssClass||"")&&(this.handleDataViewExpandOrCollapse(o),e.stopImmediatePropagation(),e.preventDefault()),o&&o instanceof md&&n.classList.contains(this._options.checkboxSelectCssClass||"")){o.selectChecked=!o.selectChecked,n.classList.remove(o.selectChecked?"unchecked":"checked"),n.classList.add(o.selectChecked?"checked":"unchecked");let r=this.dataView.mapItemsToRows(o.rows);o.selectChecked?this._options.checkboxSelectPlugin.selectRows(r):this._options.checkboxSelectPlugin.deSelectRows(r)}}handleGridKeyDown(e){if(this._options.enableExpandCollapse&&e.which===qN.SPACE){let t=this._grid.getActiveCell();if(t){let n=this._grid.getDataItem(t.row);n&&n instanceof md&&(this.handleDataViewExpandOrCollapse(n),e.stopImmediatePropagation(),e.preventDefault())}}}handleDataViewExpandOrCollapse(e){let t=this._grid.getRenderedRange();this.dataView.setRefreshHints({ignoreDiffsBefore:t.top,ignoreDiffsAfter:t.bottom+1}),e.collapsed?this.dataView.expandGroup(e.groupingKey):this.dataView.collapseGroup(e.groupingKey)}getGroupRowMetadata(e,t,n){let o=e?.level;return{selectable:!1,focusable:this._options.groupFocusable,cssClasses:`${this._options.groupCssClass} slick-group-level-${o}`,formatter:this._options.includeHeaderTotals&&this._options.totalsFormatter||void 0,columns:{0:{colspan:this._options.includeHeaderTotals?"1":"*",formatter:this._options.groupFormatter,editor:null}}}}getTotalsRowMetadata(e,t,n){let o=e?.group?.level;return{selectable:!1,focusable:this._options.totalsFocusable,cssClasses:`${this._options.totalsCssClass} slick-group-level-${o}`,formatter:this._options.totalsFormatter,editor:null}}},$o=jr,gd=Gi,Kp=mv,GN=uN,Bn=co,KN=bv,XN=class{constructor(e,t){this.externalPubSub=t,E(this,"defaults",{globalItemMetadataProvider:null,groupItemMetadataProvider:null,inlineFilters:!1,useCSPSafeFilter:!1}),E(this,"idProperty","id"),E(this,"items",[]),E(this,"rows",[]),E(this,"idxById",new Map),E(this,"rowsById"),E(this,"filter",null),E(this,"filterCSPSafe",null),E(this,"updated",null),E(this,"suspend",!1),E(this,"isBulkSuspend",!1),E(this,"bulkDeleteIds",new Map),E(this,"sortAsc",!0),E(this,"fastSortField"),E(this,"sortComparer"),E(this,"refreshHints",{}),E(this,"prevRefreshHints",{}),E(this,"filterArgs"),E(this,"filteredItems",[]),E(this,"compiledFilter"),E(this,"compiledFilterCSPSafe"),E(this,"compiledFilterWithCaching"),E(this,"compiledFilterWithCachingCSPSafe"),E(this,"filterCache",[]),E(this,"_grid"),E(this,"groupingInfoDefaults",{getter:void 0,formatter:void 0,comparer:(n,o)=>n.value===o.value?0:n.value>o.value?1:-1,predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1}),E(this,"groupingInfos",[]),E(this,"groups",[]),E(this,"toggledGroupsByLevel",[]),E(this,"groupingDelimiter",":|:"),E(this,"selectedRowIds",[]),E(this,"preSelectedRowIdsChangeFn"),E(this,"pagesize",0),E(this,"pagenum",0),E(this,"totalRows",0),E(this,"_options"),E(this,"_container"),E(this,"onBeforePagingInfoChanged"),E(this,"onGroupExpanded"),E(this,"onGroupCollapsed"),E(this,"onPagingInfoChanged"),E(this,"onRowCountChanged"),E(this,"onRowsChanged"),E(this,"onRowsOrCountChanged"),E(this,"onSelectedRowIdsChanged"),E(this,"onSetItemsCalled"),this.onBeforePagingInfoChanged=new $o("onBeforePagingInfoChanged",t),this.onGroupExpanded=new $o("onGroupExpanded",t),this.onGroupCollapsed=new $o("onGroupCollapsed",t),this.onPagingInfoChanged=new $o("onPagingInfoChanged",t),this.onRowCountChanged=new $o("onRowCountChanged",t),this.onRowsChanged=new $o("onRowsChanged",t),this.onRowsOrCountChanged=new $o("onRowsOrCountChanged",t),this.onSelectedRowIdsChanged=new $o("onSelectedRowIdsChanged",t),this.onSetItemsCalled=new $o("onSetItemsCalled",t),this._options=Bn.extend(!0,{},this.defaults,e)}beginUpdate(e){this.suspend=!0,this.isBulkSuspend=e===!0}endUpdate(){let e=this.isBulkSuspend;this.isBulkSuspend=!1,this.suspend=!1,e&&(this.processBulkDelete(),this.ensureIdUniqueness()),this.refresh()}destroy(){this.items=[],this.idxById=null,this.rowsById=null,this.filter=null,this.filterCSPSafe=null,this.updated=null,this.sortComparer=null,this.filterCache=[],this.filteredItems=[],this.compiledFilter=null,this.compiledFilterCSPSafe=null,this.compiledFilterWithCaching=null,this.compiledFilterWithCachingCSPSafe=null,this._grid&&this._grid.onSelectedRowsChanged&&this._grid.onCellCssStylesChanged&&(this._grid.onSelectedRowsChanged.unsubscribe(),this._grid.onCellCssStylesChanged.unsubscribe()),this.onRowsOrCountChanged&&this.onRowsOrCountChanged.unsubscribe()}setRefreshHints(e){this.refreshHints=e}getFilterArgs(){return this.filterArgs}setFilterArgs(e){this.filterArgs=e}processBulkDelete(){if(!this.idxById)return;let e,t,n=0;for(let o=0,r=this.items.length;o<r;o++){if(t=this.items[o],e=t[this.idProperty],e===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.bulkDeleteIds.has(e)?this.idxById.delete(e):(this.items[n]=t,this.idxById.set(e,n),++n)}this.items.length=n,this.bulkDeleteIds=new Map}updateIdxById(e){if(this.isBulkSuspend||!this.idxById)return;e=e||0;let t;for(let n=e,o=this.items.length;n<o;n++){if(t=this.items[n][this.idProperty],t===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.idxById.set(t,n)}}ensureIdUniqueness(){if(this.isBulkSuspend||!this.idxById)return;let e;for(let t=0,n=this.items.length;t<n;t++)if(e=this.items[t][this.idProperty],e===void 0||this.idxById.get(e)!==t)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property")}getItems(){return this.items}getIdPropertyName(){return this.idProperty}setItems(e,t){t!==void 0&&(this.idProperty=t),this.items=this.filteredItems=e,this.onSetItemsCalled.notify({idProperty:this.idProperty,itemCount:this.items.length},null,this),this.idxById=new Map,this.updateIdxById(),this.ensureIdUniqueness(),this.refresh()}setPagingOptions(e){this.onBeforePagingInfoChanged.notify(this.getPagingInfo(),null,this).getReturnValue()!==!1&&(Bn.isDefined(e.pageSize)&&(this.pagesize=e.pageSize,this.pagenum=this.pagesize?Math.min(this.pagenum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1)):0),Bn.isDefined(e.pageNum)&&(this.pagenum=Math.min(e.pageNum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1))),this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),this.refresh())}getPagingInfo(){let e=this.pagesize?Math.max(1,Math.ceil(this.totalRows/this.pagesize)):1;return{pageSize:this.pagesize,pageNum:this.pagenum,totalRows:this.totalRows,totalPages:e,dataView:this}}sort(e,t){this.sortAsc=t,this.sortComparer=e,this.fastSortField=null,t===!1&&this.items.reverse(),this.items.sort(e),t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}fastSort(e,t){this.sortAsc=t,this.fastSortField=e,this.sortComparer=null;let n=Object.prototype.toString;Object.prototype.toString=typeof e=="function"?e:function(){return this[e]},t===!1&&this.items.reverse(),this.items.sort(),Object.prototype.toString=n,t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}reSort(){this.sortComparer?this.sort(this.sortComparer,this.sortAsc):this.fastSortField&&this.fastSort(this.fastSortField,this.sortAsc)}getFilteredItems(){return this.filteredItems}getFilteredItemCount(){return this.filteredItems.length}getFilter(){return this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter}setFilter(e){this.filterCSPSafe=e,this.filter=e,this._options.inlineFilters&&(this.compiledFilterCSPSafe=this.compileFilterCSPSafe,this.compiledFilterWithCachingCSPSafe=this.compileFilterWithCachingCSPSafe,this.compiledFilter=this.compileFilter(this._options.useCSPSafeFilter),this.compiledFilterWithCaching=this.compileFilterWithCaching(this._options.useCSPSafeFilter)),this.refresh()}getGrouping(){return this.groupingInfos}setGrouping(e){this._options.groupItemMetadataProvider||(this._options.groupItemMetadataProvider=new KN),this.groups=[],this.toggledGroupsByLevel=[],e=e||[],this.groupingInfos=e instanceof Array?e:[e];for(let t=0;t<this.groupingInfos.length;t++){let n=this.groupingInfos[t]=Bn.extend(!0,{},this.groupingInfoDefaults,this.groupingInfos[t]);n.getterIsAFn=typeof n.getter=="function",n.compiledAccumulators=[];let o=n.aggregators.length;for(;o--;)n.compiledAccumulators[o]=this.compileAccumulatorLoopCSPSafe(n.aggregators[o]);this.toggledGroupsByLevel[t]={}}this.refresh()}getItemByIdx(e){return this.items[e]}getIdxById(e){return this.idxById?.get(e)}ensureRowsByIdCache(){if(!this.rowsById){this.rowsById={};for(let e=0,t=this.rows.length;e<t;e++)this.rowsById[this.rows[e][this.idProperty]]=e}}getRowByItem(e){return this.ensureRowsByIdCache(),this.rowsById?.[e[this.idProperty]]}getRowById(e){return this.ensureRowsByIdCache(),this.rowsById?.[e]}getItemById(e){return this.items[this.idxById.get(e)]}mapItemsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n][this.idProperty]];Bn.isDefined(r)&&(t[t.length]=r)}return t}mapIdsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n]];Bn.isDefined(r)&&(t[t.length]=r)}return t}mapRowsToIds(e){let t=[];for(let n=0,o=e.length;n<o;n++)if(e[n]<this.rows.length){let r=this.rows[e[n]];t[t.length]=r[this.idProperty]}return t}updateSingleItem(e,t){if(this.idxById){if(!this.idxById.has(e))throw new Error("[SlickGrid DataView] Invalid id");if(e!==t[this.idProperty]){let n=t[this.idProperty];if(!Bn.isDefined(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a null id");if(this.idxById.has(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a non-unique id");this.idxById.set(n,this.idxById.get(e)),this.idxById.delete(e),this.updated?.[e]&&delete this.updated[e],e=n}this.items[this.idxById.get(e)]=t,this.updated||(this.updated={}),this.updated[e]=!0}}updateItem(e,t){this.updateSingleItem(e,t),this.refresh()}updateItems(e,t){if(e.length!==t.length)throw new Error("[SlickGrid DataView] Mismatch on the length of ids and items provided to update");for(let n=0,o=t.length;n<o;n++)this.updateSingleItem(e[n],t[n]);this.refresh()}insertItem(e,t){this.items.splice(e,0,t),this.updateIdxById(e),this.refresh()}insertItems(e,t){Array.prototype.splice.apply(this.items,[e,0].concat(t)),this.updateIdxById(e),this.refresh()}addItem(e){this.items.push(e),this.updateIdxById(this.items.length-1),this.refresh()}addItems(e){this.items=this.items.concat(e),this.updateIdxById(this.items.length-e.length),this.refresh()}deleteItem(e){if(this.idxById)if(this.isBulkSuspend)this.bulkDeleteIds.set(e,!0);else{let t=this.idxById.get(e);if(t===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(e),this.items.splice(t,1),this.updateIdxById(t),this.refresh()}}deleteItems(e){if(!(e.length===0||!this.idxById))if(this.isBulkSuspend)for(let t=0,n=e.length;t<n;t++){let o=e[t];if(this.idxById.get(o)===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.bulkDeleteIds.set(o,!0)}else{let t=[];for(let n=0,o=e.length;n<o;n++){let r=e[n],i=this.idxById.get(r);if(i===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(r),t.push(i)}t.sort();for(let n=t.length-1;n>=0;--n)this.items.splice(t[n],1);this.updateIdxById(t[0]),this.refresh()}}sortedAddItem(e){if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedAddItem() requires a sort comparer, use sort()");this.insertItem(this.sortedIndex(e),e)}sortedUpdateItem(e,t){if(!this.idxById)return;if(!this.idxById.has(e)||e!==t[this.idProperty])throw new Error("[SlickGrid DataView] Invalid or non-matching id "+this.idxById.get(e));if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedUpdateItem() requires a sort comparer, use sort()");let n=this.getItemById(e);this.sortComparer(n,t)!==0?(this.deleteItem(e),this.sortedAddItem(t)):this.updateItem(e,t)}sortedIndex(e){let t=0,n=this.items.length;for(;t<n;){let o=t+n>>>1;this.sortComparer(this.items[o],e)===-1?t=o+1:n=o}return t}getItemCount(){return this.items.length}getLength(){return this.rows.length}getItem(e){let t=this.rows[e];if(t?.__group&&t.totals&&!t.totals?.initialized){let n=this.groupingInfos[t.level];n.displayTotalsRow||(this.calculateTotals(t.totals),t.title=n.formatter?n.formatter(t):t.value)}else t?.__groupTotals&&!t.initialized&&this.calculateTotals(t);return t}getItemMetadata(e){let t=this.rows[e];return t===void 0?null:this._options.globalItemMetadataProvider?.getRowMetadata?this._options.globalItemMetadataProvider.getRowMetadata(t,e):t.__group&&this._options.groupItemMetadataProvider?.getGroupRowMetadata?this._options.groupItemMetadataProvider.getGroupRowMetadata(t,e):t.__groupTotals&&this._options.groupItemMetadataProvider?.getTotalsRowMetadata?this._options.groupItemMetadataProvider.getTotalsRowMetadata(t,e):null}expandCollapseAllGroups(e,t){if(Bn.isDefined(e))this.toggledGroupsByLevel[e]={},this.groupingInfos[e].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:e,groupingKey:null}):this.onGroupExpanded.notify({level:e,groupingKey:null});else for(let n=0;n<this.groupingInfos.length;n++)this.toggledGroupsByLevel[n]={},this.groupingInfos[n].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:n,groupingKey:null}):this.onGroupExpanded.notify({level:n,groupingKey:null});this.refresh()}collapseAllGroups(e){this.expandCollapseAllGroups(e,!0)}expandAllGroups(e){this.expandCollapseAllGroups(e,!1)}expandCollapseGroup(e,t,n){this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed^n,this.refresh()}collapseGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(n=t,o=t.split(this.groupingDelimiter).length-1):(n=e.join(this.groupingDelimiter),o=e.length-1),this.expandCollapseGroup(o,n,!0),this.onGroupCollapsed.notify({level:o,groupingKey:n})}expandGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(o=t.split(this.groupingDelimiter).length-1,n=t):(o=e.length-1,n=e.join(this.groupingDelimiter)),this.expandCollapseGroup(o,n,!1),this.onGroupExpanded.notify({level:o,groupingKey:n})}getGroups(){return this.groups}extractGroups(e,t){let n,o,r=[],i={},a,l=t?t.level+1:0,d=this.groupingInfos[l];for(let u=0,f=d.predefinedValues?.length??0;u<f;u++)o=d.predefinedValues?.[u],n=i[o],n||(n=new Kp,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n);for(let u=0,f=e.length;u<f;u++)a=e[u],o=d.getterIsAFn?d.getter(a):a[d.getter],n=i[o],n||(n=new Kp,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n),n.rows[n.count++]=a;if(l<this.groupingInfos.length-1)for(let u=0;u<r.length;u++)n=r[u],n.groups=this.extractGroups(n.rows,n);return r.length&&this.addTotals(r,l),r.sort(this.groupingInfos[l].comparer),r}calculateTotals(e){let t=e.group,n=this.groupingInfos[t.level??0],o=t.level===this.groupingInfos.length,r,i=n.aggregators.length;if(!o&&n.aggregateChildGroups){let a=t.groups?.length??0;for(;a--;)t.groups[a].totals.initialized||this.calculateTotals(t.groups[a].totals)}for(;i--;)r=n.aggregators[i],r.init(),!o&&n.aggregateChildGroups?n.compiledAccumulators[i].call(r,t.groups):n.compiledAccumulators[i].call(r,t.rows),r.storeResult(e);e.initialized=!0}addGroupTotals(e){let t=this.groupingInfos[e.level],n=new GN;n.group=e,e.totals=n,t.lazyTotalsCalculation||this.calculateTotals(n)}addTotals(e,t){t=t||0;let n=this.groupingInfos[t],o=n.collapsed,r=this.toggledGroupsByLevel[t],i=e.length,a;for(;i--;)a=e[i],!(a.collapsed&&!n.aggregateCollapsed)&&(a.groups&&this.addTotals(a.groups,t+1),n.aggregators?.length&&(n.aggregateEmpty||a.rows.length||a.groups?.length)&&this.addGroupTotals(a),a.collapsed=o^r[a.groupingKey],a.title=n.formatter?n.formatter(a):a.value)}flattenGroupedRows(e,t){t=t||0;let n=this.groupingInfos[t],o=[],r,i=0,a;for(let l=0,d=e.length;l<d;l++){if(a=e[l],o[i++]=a,!a.collapsed){r=a.groups?this.flattenGroupedRows(a.groups,t+1):a.rows;for(let u=0,f=r.length;u<f;u++)o[i++]=r[u]}a.totals&&n.displayTotalsRow&&(!a.collapsed||n.aggregateCollapsed)&&(o[i++]=a.totals)}return o}compileAccumulatorLoopCSPSafe(e){return e.accumulate?function(t){let n;for(let o=0;o<t.length;o++){let r=t[o];n=e.accumulate.call(e,r)}return n}:function(){}}compileFilterCSPSafe(e,t){if(typeof this.filterCSPSafe!="function")return[];let n=[],o=e.length;for(let r=0;r<o;r++)this.filterCSPSafe(e[r],t)&&n.push(e[r]);return n}compileFilter(e=!1){if(e)return null;let t=Bn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args",i),l="compiledFilter";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCaching(e=!1){if(e)return null;let t=Bn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args,_cache",i),l="compiledFilterWithCaching";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCachingCSPSafe(e,t,n){if(typeof this.filterCSPSafe!="function")return[];let o=[],r=e.length;for(let i=0;i<r;i++)(n[i]||this.filterCSPSafe(e[i],t))&&o.push(e[i]);return o}setFunctionName(e,t){try{Object.defineProperty(e,"name",{writable:!0,value:t})}catch{e.name=t}}uncompiledFilter(e,t){let n=[],o=0;for(let r=0,i=e.length;r<i;r++)this.filter?.(e[r],t)&&(n[o++]=e[r]);return n}uncompiledFilterWithCaching(e,t,n){let o=[],r=0,i;for(let a=0,l=e.length;a<l;a++)i=e[a],n[a]?o[r++]=i:this.filter?.(i,t)&&(o[r++]=i,n[a]=!0);return o}getFilteredAndPagedItems(e){if(this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter){let n,o;this._options.useCSPSafeFilter?(n=this._options.inlineFilters?this.compiledFilterCSPSafe:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCachingCSPSafe:this.uncompiledFilterWithCaching):(n=this._options.inlineFilters?this.compiledFilter:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCaching:this.uncompiledFilterWithCaching),this.refreshHints.isFilterNarrowing?this.filteredItems=n.call(this,this.filteredItems,this.filterArgs):this.refreshHints.isFilterExpanding?this.filteredItems=o.call(this,e,this.filterArgs,this.filterCache):this.refreshHints.isFilterUnchanged||(this.filteredItems=n.call(this,e,this.filterArgs))}else this.filteredItems=this.pagesize?e:e.concat();let t;return this.pagesize?(this.filteredItems.length<=this.pagenum*this.pagesize&&(this.filteredItems.length===0?this.pagenum=0:this.pagenum=Math.floor((this.filteredItems.length-1)/this.pagesize)),t=this.filteredItems.slice(this.pagesize*this.pagenum,this.pagesize*this.pagenum+this.pagesize)):t=this.filteredItems,{totalRows:this.filteredItems.length,rows:t}}getRowDiffs(e,t){let n,o,r,i=[],a=0,l=Math.max(t.length,e.length);this.refreshHints?.ignoreDiffsBefore&&(a=Math.max(0,Math.min(t.length,this.refreshHints.ignoreDiffsBefore))),this.refreshHints?.ignoreDiffsAfter&&(l=Math.min(t.length,Math.max(0,this.refreshHints.ignoreDiffsAfter)));for(let d=a,u=e.length;d<l;d++)d>=u?i[i.length]=d:(n=t[d],o=e[d],(!n||this.groupingInfos.length&&(r=n.__nonDataRow||o.__nonDataRow)&&n.__group!==o.__group||n.__group&&!n.equals(o)||r&&(n.__groupTotals||o.__groupTotals)||n[this.idProperty]!==o[this.idProperty]||this.updated?.[n[this.idProperty]])&&(i[i.length]=d));return i}recalc(e){this.rowsById=void 0,(this.refreshHints.isFilterNarrowing!==this.prevRefreshHints.isFilterNarrowing||this.refreshHints.isFilterExpanding!==this.prevRefreshHints.isFilterExpanding)&&(this.filterCache=[]);let t=this.getFilteredAndPagedItems(e);this.totalRows=t.totalRows;let n=t.rows;this.groups=[],this.groupingInfos.length&&(this.groups=this.extractGroups(n),this.groups.length&&(n=this.flattenGroupedRows(this.groups)));let o=this.getRowDiffs(this.rows,n);return this.rows=n,o}refresh(){if(this.suspend)return;let e=Bn.extend(!0,{},this.getPagingInfo()),t=this.rows.length,n=this.totalRows,o=this.recalc(this.items);this.pagesize&&this.totalRows<this.pagenum*this.pagesize&&(this.pagenum=Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1),o=this.recalc(this.items)),this.updated=null,this.prevRefreshHints=this.refreshHints,this.refreshHints={},n!==this.totalRows&&this.onBeforePagingInfoChanged.notify(e,null,this).getReturnValue()!==!1&&this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),t!==this.rows.length&&this.onRowCountChanged.notify({previous:t,current:this.rows.length,itemCount:this.items.length,dataView:this,callingOnRowsChanged:o.length>0},null,this),o.length>0&&this.onRowsChanged.notify({rows:o,itemCount:this.items.length,dataView:this,calledOnRowCountChanged:t!==this.rows.length},null,this),(t!==this.rows.length||o.length>0)&&this.onRowsOrCountChanged.notify({rowsDiff:o,previousRowCount:t,currentRowCount:this.rows.length,itemCount:this.items.length,rowCountChanged:t!==this.rows.length,rowsChanged:o.length>0,dataView:this},null,this)}syncGridSelection(e,t,n){this._grid=e;let o;this.selectedRowIds=this.mapRowsToIds(e.getSelectedRows());let r=a=>{a===!1?this.selectedRowIds=[]:this.selectedRowIds.sort().join(",")!==a.sort().join(",")&&(this.selectedRowIds=a)},i=()=>{if((this.selectedRowIds||[]).length>0&&!o){o=!0;let a=this.mapIdsToRows(this.selectedRowIds||[]);if(!t){let l={grid:this._grid,ids:this.mapRowsToIds(a),rows:a,dataView:this};this.preSelectedRowIdsChangeFn(l),this.onSelectedRowIdsChanged.notify(Object.assign(l,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new gd,this)}e.setSelectedRows(a),o=!1}};return e.onSelectedRowsChanged.subscribe((a,l)=>{if(!o){let d=this.mapRowsToIds(l.rows),u={grid:this._grid,ids:d,rows:l.rows,added:!0,dataView:this};this.preSelectedRowIdsChangeFn(u),this.onSelectedRowIdsChanged.notify(Object.assign(u,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new gd,this)}}),this.preSelectedRowIdsChangeFn=a=>{if(!o){if(o=!0,typeof a.added>"u")r(a.ids);else{let l;if(a.added)n&&e.getOptions().multiSelect?l=(this.selectedRowIds?.filter(d=>this.getRowById(d)===void 0)).concat(a.ids):l=a.ids;else if(n&&e.getOptions().multiSelect){let d=new Set(a.ids);l=this.selectedRowIds?.filter(u=>!d.has(u))}else l=[];r(l)}o=!1}},this.onRowsOrCountChanged.subscribe(i.bind(this)),this.onSelectedRowIdsChanged}getAllSelectedIds(){return this.selectedRowIds}getAllSelectedFilteredIds(){return this.getAllSelectedFilteredItems().map(e=>e[this.idProperty])}setSelectedIds(e,t){let n=t?.isRowBeingAdded,o=t?.shouldTriggerEvent,r=t?.applyRowSelectionToGrid;n!==!1&&(n=!0);let i=this.mapIdsToRows(e),a={grid:this._grid,ids:e,rows:i,added:n,dataView:this};this.preSelectedRowIdsChangeFn?.(a),o!==!1&&this.onSelectedRowIdsChanged.notify(Object.assign(a,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new gd,this),r!==!1&&this._grid&&this._grid.setSelectedRows(i)}getAllSelectedItems(){let e=[];return this.getAllSelectedIds().forEach(t=>{e.push(this.getItemById(t))}),e}getAllSelectedFilteredItems(){if(!Array.isArray(this.selectedRowIds))return[];let e=new Set(this.selectedRowIds);return this.filteredItems.filter(t=>e.has(t[this.idProperty]))||[]}syncGridCellCssStyles(e,t){let n,o,r=a=>{n={},typeof a=="object"&&Object.keys(a).forEach(l=>{if(a){let d=this.rows[l][this.idProperty];n[d]=a[l]}})};r(e.getCellCssStyles(t));let i=()=>{if(typeof n=="object"){o=!0,this.ensureRowsByIdCache();let a={};Object.keys(n).forEach(l=>{let d=this.rowsById?.[l];Bn.isDefined(d)&&(a[d]=n[l])}),e.setCellCssStyles(t,a),o=!1}};e.onCellCssStylesChanged.subscribe((a,l)=>{o||t===l.key&&(l.hash?r(l.hash):(e.onCellCssStylesChanged.unsubscribe(),this.onRowsOrCountChanged.unsubscribe(i)))}),this.onRowsOrCountChanged.subscribe(i.bind(this))}},xl=Ir,yd=co,Zd=class Qd{constructor(t){this.args=t,E(this,"input"),E(this,"defaultValue"),E(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=yd.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?Zp:Qp),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?Zp:Qp),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return yd.isDefined(t)||(t=Qd.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);Qd.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===""&&!yd.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}}};E(Zd,"DefaultDecimalPlaces"),E(Zd,"AllowEmptyValue",!1);var Xp=Zd;function Zp(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===xl.LEFT&&t>0||e.keyCode===xl.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function Qp(e){(e.keyCode===xl.LEFT||e.keyCode===xl.RIGHT)&&e.stopImmediatePropagation()}var ZN=uc,sr=vN,Fe=jr,ai=Gi,QN=gN,_n=yv,mo=Ir,JN=yN,eA=ah,ss=bN,Sr=wN,L=co,vd=CN,Jp=lh,em=xN,tm=RN,tA=class{constructor(e,t,n,o,r){if(this.container=e,this.data=t,this.columns=n,this.externalPubSub=r,E(this,"slickGridVersion","5.15.5"),E(this,"cid",""),E(this,"onActiveCellChanged"),E(this,"onActiveCellPositionChanged"),E(this,"onAddNewRow"),E(this,"onAfterSetColumns"),E(this,"onAutosizeColumns"),E(this,"onBeforeAppendCell"),E(this,"onBeforeCellEditorDestroy"),E(this,"onBeforeColumnsResize"),E(this,"onBeforeDestroy"),E(this,"onBeforeEditCell"),E(this,"onBeforeFooterRowCellDestroy"),E(this,"onBeforeHeaderCellDestroy"),E(this,"onBeforeHeaderRowCellDestroy"),E(this,"onBeforeRemoveCachedRow"),E(this,"onBeforeSetColumns"),E(this,"onBeforeSort"),E(this,"onBeforeUpdateColumns"),E(this,"onCellChange"),E(this,"onCellCssStylesChanged"),E(this,"onClick"),E(this,"onColumnsReordered"),E(this,"onColumnsDrag"),E(this,"onColumnsResized"),E(this,"onColumnsResizeDblClick"),E(this,"onCompositeEditorChange"),E(this,"onContextMenu"),E(this,"onDrag"),E(this,"onDblClick"),E(this,"onDragInit"),E(this,"onDragStart"),E(this,"onDragEnd"),E(this,"onFooterClick"),E(this,"onFooterContextMenu"),E(this,"onFooterRowCellRendered"),E(this,"onHeaderCellRendered"),E(this,"onHeaderClick"),E(this,"onHeaderContextMenu"),E(this,"onHeaderMouseEnter"),E(this,"onHeaderMouseLeave"),E(this,"onHeaderRowCellRendered"),E(this,"onHeaderRowMouseEnter"),E(this,"onHeaderRowMouseLeave"),E(this,"onPreHeaderContextMenu"),E(this,"onPreHeaderClick"),E(this,"onKeyDown"),E(this,"onMouseEnter"),E(this,"onMouseLeave"),E(this,"onRendered"),E(this,"onScroll"),E(this,"onSelectedRowsChanged"),E(this,"onSetOptions"),E(this,"onActivateChangedOptions"),E(this,"onSort"),E(this,"onValidationError"),E(this,"onViewportChanged"),E(this,"scrollbarDimensions"),E(this,"maxSupportedCssHeight"),E(this,"canvas",null),E(this,"canvas_context",null),E(this,"_options"),E(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:QN,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:_n.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}),E(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}),E(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:sr.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:ss.FirstNRows,rowSelectionCount:100,valueFilterMode:Sr.None,widthEvalMode:vd.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),E(this,"_columnResizeTimer"),E(this,"_executionBlockTimer"),E(this,"_flashCellTimer"),E(this,"_highlightRowTimer"),E(this,"th"),E(this,"h"),E(this,"ph"),E(this,"n"),E(this,"cj"),E(this,"page",0),E(this,"offset",0),E(this,"vScrollDir",1),E(this,"_bindingEventService",new ZN),E(this,"initialized",!1),E(this,"_container"),E(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),E(this,"_focusSink"),E(this,"_focusSink2"),E(this,"_groupHeaders",[]),E(this,"_headerScroller",[]),E(this,"_headers",[]),E(this,"_headerRows"),E(this,"_headerRowScroller"),E(this,"_headerRowSpacerL"),E(this,"_headerRowSpacerR"),E(this,"_footerRow"),E(this,"_footerRowScroller"),E(this,"_footerRowSpacerL"),E(this,"_footerRowSpacerR"),E(this,"_preHeaderPanel"),E(this,"_preHeaderPanelScroller"),E(this,"_preHeaderPanelSpacer"),E(this,"_preHeaderPanelR"),E(this,"_preHeaderPanelScrollerR"),E(this,"_preHeaderPanelSpacerR"),E(this,"_topHeaderPanel"),E(this,"_topHeaderPanelScroller"),E(this,"_topHeaderPanelSpacer"),E(this,"_topPanelScrollers"),E(this,"_topPanels"),E(this,"_viewport"),E(this,"_canvas"),E(this,"_style"),E(this,"_boundAncestors",[]),E(this,"stylesheet"),E(this,"columnCssRulesL"),E(this,"columnCssRulesR"),E(this,"viewportH",0),E(this,"viewportW",0),E(this,"canvasWidth",0),E(this,"canvasWidthL",0),E(this,"canvasWidthR",0),E(this,"headersWidth",0),E(this,"headersWidthL",0),E(this,"headersWidthR",0),E(this,"viewportHasHScroll",!1),E(this,"viewportHasVScroll",!1),E(this,"headerColumnWidthDiff",0),E(this,"headerColumnHeightDiff",0),E(this,"cellWidthDiff",0),E(this,"cellHeightDiff",0),E(this,"absoluteColumnMinWidth"),E(this,"hasFrozenRows",!1),E(this,"frozenRowsHeight",0),E(this,"actualFrozenRow",-1),E(this,"paneTopH",0),E(this,"paneBottomH",0),E(this,"viewportTopH",0),E(this,"viewportBottomH",0),E(this,"topPanelH",0),E(this,"headerRowH",0),E(this,"footerRowH",0),E(this,"tabbingDirection",1),E(this,"_activeCanvasNode"),E(this,"_activeViewportNode"),E(this,"activePosX"),E(this,"activePosY"),E(this,"activeRow"),E(this,"activeCell"),E(this,"activeCellNode",null),E(this,"currentEditor",null),E(this,"serializedEditorValue"),E(this,"editController"),E(this,"_prevDataLength",0),E(this,"_prevInvalidatedRowsCount",0),E(this,"_rowSpanIsCached",!1),E(this,"_colsWithRowSpanCache",{}),E(this,"rowsCache",{}),E(this,"renderedRows",0),E(this,"numVisibleRows",0),E(this,"prevScrollTop",0),E(this,"scrollHeight",0),E(this,"scrollTop",0),E(this,"lastRenderedScrollTop",0),E(this,"lastRenderedScrollLeft",0),E(this,"prevScrollLeft",0),E(this,"scrollLeft",0),E(this,"selectionModel"),E(this,"selectedRows",[]),E(this,"plugins",[]),E(this,"cellCssClasses",{}),E(this,"columnsById",{}),E(this,"sortColumns",[]),E(this,"columnPosLeft",[]),E(this,"columnPosRight",[]),E(this,"pagingActive",!1),E(this,"pagingIsLastPage",!1),E(this,"scrollThrottle"),E(this,"h_editorLoader"),E(this,"h_postrender"),E(this,"h_postrenderCleanup"),E(this,"postProcessedRows",{}),E(this,"postProcessToRow",null),E(this,"postProcessFromRow",null),E(this,"postProcessedCleanupQueue",[]),E(this,"postProcessgroupId",0),E(this,"counter_rows_rendered",0),E(this,"counter_rows_removed",0),E(this,"_paneHeaderL"),E(this,"_paneHeaderR"),E(this,"_paneTopL"),E(this,"_paneTopR"),E(this,"_paneBottomL"),E(this,"_paneBottomR"),E(this,"_headerScrollerL"),E(this,"_headerScrollerR"),E(this,"_headerL"),E(this,"_headerR"),E(this,"_groupHeadersL"),E(this,"_groupHeadersR"),E(this,"_headerRowScrollerL"),E(this,"_headerRowScrollerR"),E(this,"_footerRowScrollerL"),E(this,"_footerRowScrollerR"),E(this,"_headerRowL"),E(this,"_headerRowR"),E(this,"_footerRowL"),E(this,"_footerRowR"),E(this,"_topPanelScrollerL"),E(this,"_topPanelScrollerR"),E(this,"_topPanelL"),E(this,"_topPanelR"),E(this,"_viewportTopL"),E(this,"_viewportTopR"),E(this,"_viewportBottomL"),E(this,"_viewportBottomR"),E(this,"_canvasTopL"),E(this,"_canvasTopR"),E(this,"_canvasBottomL"),E(this,"_canvasBottomR"),E(this,"_viewportScrollContainerX"),E(this,"_viewportScrollContainerY"),E(this,"_headerScrollContainer"),E(this,"_headerRowScrollContainer"),E(this,"_footerRowScrollContainer"),E(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),E(this,"_hiddenParents",[]),E(this,"oldProps",[]),E(this,"enforceFrozenRowHeightRecalc",!1),E(this,"columnResizeDragging",!1),E(this,"slickDraggableInstance",null),E(this,"slickMouseWheelInstances",[]),E(this,"slickResizableInstances",[]),E(this,"sortableSideLeftInstance"),E(this,"sortableSideRightInstance"),E(this,"logMessageCount",0),E(this,"logMessageMaxCount",30),E(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),L.applyDefaults(this._options,this._defaults)):this._options=L.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)},L.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=L.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=L.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=L.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||L.hide(this._topHeaderPanelScroller)),this._paneHeaderL=L.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=L.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=L.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=L.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=L.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=L.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=L.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=L.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=L.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=L.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(L.hide(this._preHeaderPanelScroller),L.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=L.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=L.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=L.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=L.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=L.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=L.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=L.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=L.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=L.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=L.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=L.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=L.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(o=>{L.hide(o)}),this._options.showTopPanel||this._topPanelScrollers.forEach(o=>{L.hide(o)}),this._options.showHeaderRow||this._headerRowScroller.forEach(o=>{L.hide(o)}),this._viewportTopL=L.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=L.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=L.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=L.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(...L.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=L.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=L.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=L.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=L.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&&L.width(this._topHeaderPanelSpacer,n),this._preHeaderPanelSpacer&&L.width(this._preHeaderPanelSpacer,n),this._headers.forEach(o=>{L.width(o,this.getHeadersWidth())}),L.width(this._headerRowSpacerL,n),L.width(this._headerRowSpacerR,n),this._options.createFooterRow&&(this._footerRowScrollerR=L.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=L.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),L.width(this._footerRowSpacerL,n),this._footerRowSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),L.width(this._footerRowSpacerR,n),this._footerRowL=L.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=L.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=>{L.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(em({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))}),Jp&&(this.slickDraggableInstance=Jp({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=L.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")}),L.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(;L.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=L.extend(!0,{},this._options);this._options=L.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(em({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=_n.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(!L.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=L.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:n,grid:this})})}),L.emptyElement(this._footerRowL),L.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let n=L.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),L.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=L.storage.get(n,"column");if(o.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let r=this.sortColumns.slice(),i=null,a=0;for(;a<this.sortColumns.length;a++)if(this.sortColumns[a].columnId===o.id){i=this.sortColumns[a],i.sortAsc=!i.sortAsc;break}let l=!!i;this._options.tristateMultiColumnSort?(i||(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o}),l&&i.sortAsc&&(this.sortColumns.splice(a,1),i=null),this._options.multiColumnSort||(this.sortColumns=[]),i&&(!l||!this._options.multiColumnSort)&&this.sortColumns.push(i)):t.metaKey&&this._options.multiColumnSort?i&&this.sortColumns.splice(a,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),i?this.sortColumns.length===0&&this.sortColumns.push(i):(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o},this.sortColumns.push(i)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:r,sortCols:this.sortColumns.map(u=>{let f=this.columns[this.getColumnIndex(u.columnId)];return!f||f.hidden?null:{columnId:f.id,sortCol:f,sortAsc:u.sortAsc}}).filter(u=>u)}:d={multiColumnSort:!1,previousSortColumns:r,columnId:this.sortColumns.length>0?o.id:null,sortCol:this.sortColumns.length>0?o:null,sortAsc:this.sortColumns.length>0?this.sortColumns[0].sortAsc:!0},this.trigger(this.onBeforeSort,d,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,d,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let n=L.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:n,grid:this})})}),L.emptyElement(this._headerL),L.emptyElement(this._headerR),this.getHeadersWidth(),L.width(this._headerL,this.headersWidthL),L.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let n=L.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:n,grid:this})})}),L.emptyElement(this._headerRowL),L.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=L.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),L.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=L.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),L.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=L.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=L.createDomElement("span",{className:"slick-column-name"},r);this.applyHtmlCode(i,t.name),L.width(r,t.width-this.headerColumnWidthDiff);let a=t.headerCssClass||null;if(a&&r.classList.add(...L.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)),L.storage.put(r,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(l=>{t.headerCellAttrs.hasOwnProperty(l)&&r.setAttribute(l,t.headerCellAttrs[l])}),t.sortable&&(r.classList.add("slick-header-sortable"),L.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},r),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&L.createDomElement("div",{className:"slick-sort-indicator-numbered"},r)),this.trigger(this.onHeaderCellRendered,{node:r,column:t,grid:this}),this._options.showHeaderRow){let l=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},o),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&l.classList.add(d),this._bindingEventService.bind(l,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(l,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),L.storage.put(l,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:l,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let l=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},l);L.storage.put(d,"column",t),this.trigger(this.onFooterRowCellRendered,{node:d,column:t,grid:this})}}this.setSortColumns(this.sortColumns),this.setupColumnResize(),this._options.enableColumnReorder&&(typeof this._options.enableColumnReorder=="function"?this._options.enableColumnReorder(this,this._headers,this.headerColumnWidthDiff,this.setColumns,this.setupColumnResize,this.columns,this.getColumnIndex,this.uid,this.trigger):this.setupColumnReorder())}setupColumnReorder(){this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy();let e=null,t=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft+10,n=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,o=!1,r={animation:50,direction:"horizontal",chosenClass:"slick-header-column-active",ghostClass:"slick-sortable-placeholder",draggable:".slick-header-column",dragoverBubble:!1,revertClone:!0,scroll:!this.hasFrozenColumns(),filter:`.${this._options.unorderableColumnCssClass}`,onMove:i=>!i.related.classList.contains(this._options.unorderableColumnCssClass),onStart:i=>{i.item.classList.add("slick-header-column-active"),o=!this.hasFrozenColumns()||L.offset(i.item).left>L.offset(this._viewportScrollContainerX).left,o&&i.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):o&&i.originalEvent.pageX<L.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(n,100)):(window.clearInterval(e),e=null)},onEnd:i=>{if(i.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let a=this.sortableSideLeftInstance?.toArray()??[];a=a.concat(this.sortableSideRightInstance?.toArray()??[]);let l=[];for(let d=0;d<a.length;d++)l.push(this.columns[this.getColumnIndex(a[d])]);this.setColumns(l),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),i.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,r),this.sortableSideRightInstance=Sortable.create(this._headerR,r)}getHeaderChildren(){let e=Array.from(this._headers[0].children),t=Array.from(this._headers[1].children);return e.concat(t)}handleResizeableDoubleClick(e){let t=e.target.parentElement.id.replace(this.uid,"");this.trigger(this.onColumnsResizeDblClick,{triggeredByColumn:t})}setupColumnResize(){if(typeof tm>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,l=-1,d=0,u=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<u.length;p++)u[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),l=p);if(a!==void 0)for(let p=0;p<u.length;p++){let y=u[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=l)continue;let b=L.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(b,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(tm({resizeableElement:y,resizeableHandleElement:b,onResizeStart:(w,g)=>{let v=w.touches?w.changedTouches[0]:w;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,d=0,g.resizeableElement.classList.add("slick-header-column-active");let T=null,P=null;for(let C=0;C<u.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=u[C].offsetWidth);if(this._options.forceFitColumns)for(T=0,P=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(P!==null&&(n.maxWidth?P+=n.maxWidth-(n.previousWidth||0):P=null),T+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));let x=0,S=0;for(e=0;e<=p;e++)n=f[e],n?.resizable&&(S!==null&&(n.maxWidth?S+=n.maxWidth-(n.previousWidth||0):S=null),x+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));T===null&&(T=1e5),x===null&&(x=1e5),P===null&&(P=1e5),S===null&&(S=1e5),i=o+Math.min(T,S),r=o-Math.min(x,P)},onResize:(w,g)=>{let v=w.touches?w.changedTouches[0]:w;this.columnResizeDragging=!0;let T,P=Math.min(i,Math.max(r,v.pageX))-o,x,S=0,C=0,O=this.getViewportInnerWidth();if(P<0){for(x=P,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(T=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<T?(x+=(n.previousWidth||0)-T,n.width=T):(n.width=(n.previousWidth||0)+x,x=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0))}else{for(x=P,S=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x)x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let A=(n.previousWidth||0)+x,F=this.canvasWidthL+x;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(A>d&&F<O-this._options.frozenRightViewportMinWidth&&(d=A),n.width=F+this._options.frozenRightViewportMinWidth>O?d:A):n.width=A,x=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(T=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<T?(x+=(n.previousWidth||0)-T,n.width=T):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0)}this.hasFrozenColumns()&&S!==this.canvasWidthL&&(L.width(this._headerL,S+1e3),L.setStyleSize(this._paneHeaderR,"left",S)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:g.resizeableElement,resizeHandle:g.resizeableHandleElement})},onResizeEnd:(w,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 T;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(T=u[e].offsetWidth,n.previousWidth!==T&&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===_n.LegacyForceFit||e===_n.LegacyOff){this.legacyAutosizeColumns();return}if(e===_n.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let n=this.getCanvasNode(0,0),o=this.getViewportInnerWidth(),r,i,a,l=!1,d=0,u=0,f=0,p=0,y=0;for(r=0;r<this.columns.length;r++)i=this.columns[r],this.getColAutosizeWidth(i,r,n,t||!1,r),y+=i.autoSize?.autosizeMode===sr.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===sr.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,d+=i.autoSize?.widthPx||0,u+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let b=d-u;if(e===_n.FitViewportToCols){let w=d+(this.scrollbarDimensions?.width??0);e=_n.IgnoreViewport,this._options.viewportMaxWidthPx&&w>this._options.viewportMaxWidthPx?(w=this._options.viewportMaxWidthPx,e=_n.FitColsToViewport):this._options.viewportMinWidthPx&&w<this._options.viewportMinWidthPx&&(w=this._options.viewportMinWidthPx,e=_n.FitColsToViewport),L.width(this._container,w)}if(e===_n.FitColsToViewport)if(b>0&&u<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let w=o-u;i.autoSize?.sizeToRemaining?a=w*(i.autoSize?.widthPx||0)/b:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(l=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&u+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=_n.IgnoreViewport;else{let w=u-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!==sr.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=g/w*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),w-=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&&(l=!0),i.width=a)}if(e===_n.IgnoreViewport)for(r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(a=this.columns[r].autoSize?.widthPx||0,this.columns[r].rerenderOnResize&&this.columns[r].width!==a&&(l=!0),this.columns[r].width=a);this.reRenderColumns(l)}getColAutosizeWidth(e,t,n,o,r){let i=e.autoSize;if(i.widthPx=e.width,i.autosizeMode===sr.Locked||i.autosizeMode===sr.Guide)return;let a=this.getDataLength(),l=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(i.autosizeMode===sr.ContentIntelligent){let f=i.colDataTypeOf,p;if(a>0){let y=this.getDataItem(0);y&&(p=y[e.field],l.test(p)&&(p=Date.parse(p)),f=typeof p,f==="object"&&(p instanceof Date&&(f="date"),typeof moment<"u"&&p instanceof moment&&(f="moment")))}f==="boolean"&&(i.colValueArray=[!0,!1]),f==="number"&&(i.valueFilterMode=Sr.GetGreatestAndSub,i.rowSelectionMode=ss.AllRows),f==="string"&&(i.valueFilterMode=Sr.GetLongestText,i.rowSelectionMode=ss.AllRows,i.allowAddlPercent=5),f==="date"&&(i.colValueArray=[new Date(2009,8,30,12,20,20)]),f==="moment"&&typeof moment<"u"&&(i.colValueArray=[moment([2009,8,30,12,20,20])])}let d=i.contentSizePx=this.getColContentSize(e,t,n,o,r);d===0&&(d=i.widthPx||0);let u=i.allowAddlPercent?1+i.allowAddlPercent/100:1;d=d*u+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(i.autosizeMode===sr.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),i.widthPx=d}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,l,d,u=0,f=0;if(i.headerWidthPx=0,i.ignoreHeaderText||(i.headerWidthPx=this.getColHeaderWidth(e)),i.headerWidthPx===0&&(i.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),i.colValueArray)return f=this.getColWidth(e,n,i.colValueArray),Math.max(i.headerWidthPx,f);let p={};p.colIndex=t,p.rowCount=this.getDataLength(),p.startIndex=0,p.endIndex=p.rowCount-1,p.valueArr=null,p.getRowVal=b=>this.getDataItem(b)[e.field];let y=(o?i.rowSelectionModeOnInit:void 0)||i.rowSelectionMode;if(y===ss.FirstRow&&(p.endIndex=0),y===ss.LastRow&&(p.endIndex=p.startIndex=p.rowCount-1),y===ss.FirstNRows&&(p.endIndex=Math.min(i.rowSelectionCount||0,p.rowCount)-1),i.valueFilterMode===Sr.DeDuplicate){let b={};for(l=p.startIndex;l<=p.endIndex;l++)b[p.getRowVal(l)]=!0;if(Object.keys)p.valueArr=Object.keys(b);else{p.valueArr=[];for(let w in b)b&&p.valueArr.push(w)}p.startIndex=0,p.endIndex=p.length-1}if(i.valueFilterMode===Sr.GetGreatestAndSub){let b,w=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),Math.abs(d)>w&&(b=d,w=Math.abs(d));b=""+b,b=Array(b.length+1).join("9"),b=+b,p.valueArr=[b],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Sr.GetLongestTextAndSub){for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length);d=Array(u+1).join("m"),a=this._options.autosizeTextAvgToMWidthRatio||0,p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Sr.GetLongestText){u=0;let b=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length,b=l);d=p.getRowVal(b),p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}return p.maxLen&&p.maxLen>30&&r>1&&(i.sizeToRemaining=!0),f=this.getColWidth(e,n,p)*a,Math.max(i.headerWidthPx,f)}getColWidth(e,t,n){let o=L.createDomElement("div",{className:"slick-row ui-widget-content"},t),r=L.createDomElement("div",{className:"slick-cell"},o);r.style.position="absolute",r.style.visibility="hidden",r.style.textOverflow="initial",r.style.whiteSpace="nowrap";let i,a,l=0,d="",u,f,p=e.autoSize.widthEvalMode===vd.TextOnly;if(e.autoSize?.widthEvalMode===vd.Auto){let y=!e.formatterOverride&&!e.formatter,b=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;p=y||b}if(this.canvas_context&&p){let y=getComputedStyle(r);for(this.canvas_context.font=y.fontSize+" "+y.fontFamily,i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,a=u?this.canvas_context.measureText(u).width:0,a>l&&(l=a,d=u);return r.textContent=d,a=r.offsetWidth,o.remove(),a}for(i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,this.applyFormatResultToCellNode(u,r),a=r.offsetWidth,a>l&&(l=a);return o.remove(),l}getColHeaderWidth(e){let t=0,n=this.getUID()+e.id,o=document.getElementById(n),r=`${n}_`,i=o.cloneNode(!0);if(o)i.id=r,i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",o.parentNode.insertBefore(i,o),t=i.offsetWidth,i.parentNode.removeChild(i);else{let a=this.getHeader(e);o=L.createDomElement("div",{id:r,className:"ui-state-default slick-state-default slick-header-column"},a);let l=L.createDomElement("span",{className:"slick-column-name"},o);this.applyHtmlCode(l,e.name),i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&o.classList.add(...L.classNameToList(e.headerCssClass)),t=o.offsetWidth,a.removeChild(o)}return t}legacyAutosizeColumns(){let e,t,n=0,o=0,r=0,i=[],a=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){i.push(0);continue}i.push(t.width||0),o+=t.width||0,t.resizable&&(n+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(r=o;o>a&&n;){let d=(o-a)/n;for(e=0;e<this.columns.length&&o>a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e];if(!t.resizable||u<=t.minWidth||u<=this.absoluteColumnMinWidth)continue;let f=Math.max(t.minWidth,this.absoluteColumnMinWidth),p=Math.floor(d*(u-f))||1;p=Math.min(p,u-f),o-=p,n-=p,i[e]-=p}if(r<=o)break;r=o}for(r=o;o<a;){let d=a/o;for(e=0;e<this.columns.length&&o<a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e],f;!t.resizable||t.maxWidth<=u?f=0:f=Math.min(Math.floor(d*u)-u,t.maxWidth-u||1e6)||1,o+=f,i[e]+=o<=a?f:0}if(r>=o)break;r=o}let l=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==i[e]&&(l=!0),this.columns[e].width=i[e]);this.reRenderColumns(l)}reRenderColumns(e){this.applyColumnHeaderWidths(),this.updateCanvasWidth(!0),this.trigger(this.onAutosizeColumns,{columns:this.columns}),e&&(this.invalidateAllRows(),this.render())}getVisibleColumns(){return this.columns.filter(e=>!e.hidden)}getColumnIndex(e){return this.columnsById[e]}applyColumnHeaderWidths(){if(!this.initialized)return;let e=0,t=this.getVisibleColumns();this._headers.forEach(n=>{for(let o=0;o<n.children.length;o++,e++){let r=n.children[o],i=((t[e]||{}).width||0)-this.headerColumnWidthDiff;L.width(r)!==i&&L.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=>{L.isDefined(o.sortAsc)||(o.sortAsc=!0);let r=this.getColumnIndex(o.columnId);if(L.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?(L.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),L.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=L.extend({},this._columnDefaults,t),t.autoSize=L.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(){L.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,L.isDefined(this.activeCellNode)){let i=L.offset(this.activeCellNode),a=Math.floor(L.offset(L.parents(this.activeCellNode,".grid-canvas")[0]).top),l=L.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&l&&(a-=this._options.frozenBottom?L.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(i.left,Math.ceil(i.top)-a);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!L.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(u=>u.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(u=>u.classList.add("active"))),this._options.editable&&t&&this.isCellPotentiallyEditable(this.activeRow,this.activeCell)&&(this._options.asyncEditorLoading?(window.clearTimeout(this.h_editorLoader),this.h_editorLoader=window.setTimeout(()=>{this.makeActiveCellEditable(void 0,n,r)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,n,r))}else this.activeRow=this.activeCell=null;o||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let n=this.getDataLength();return!(e<n&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=n||!this.columns[t]||this.columns[t].hidden||!this.getEditor(e,t))}makeActiveCellNormal(e=!1){if(this.currentEditor){if(this.trigger(this.onBeforeCellEditorDestroy,{editor:this.currentEditor}),this.currentEditor.destroy(),this.currentEditor=null,this.activeCellNode){let t=this.getDataItem(this.activeRow);if(this.activeCellNode.classList.remove("editable"),this.activeCellNode.classList.remove("invalid"),t){let n=this.columns[this.activeCell],o=this.getFormatter(this.activeRow,n)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,n),n,t,this);this.applyFormatResultToCellNode(o,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,n){this.makeActiveCellEditable(e,t,n)}makeActiveCellEditable(e,t,n){if(!this.activeCellNode)return;if(!this._options.editable)throw new Error("SlickGrid makeActiveCellEditable : should never get called when this._options.editable is false");if(window.clearTimeout(this.h_editorLoader),!this.isCellPotentiallyEditable(this.activeRow,this.activeCell))return;let o=this.columns[this.activeCell],r=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:r,column:o,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let i=e||this.getEditor(this.activeRow,this.activeCell);if(!i||typeof i!="function")return;!e&&!i.suppressClearOnEdit&&L.emptyElement(this.activeCellNode);let a=this.getItemMetadaWhenExists(this.activeRow);a=a?.columns;let l=a&&(a[o.id]||a[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:o,columnMetaData:l,item:r||{},event:n,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new i(d),r&&this.currentEditor&&(this.currentEditor.loadValue(r),t&&this.currentEditor?.preClick&&this.currentEditor.preClick()),this.serializedEditorValue=this.currentEditor?.serializeValue(),this.currentEditor?.position&&this.handleActiveCellPositionChange()}commitEditAndSetFocus(){this.getEditorLock()?.commitCurrentEdit()&&(this.setFocus(),this._options.autoEdit&&!this._options.autoCommitEdit&&this.navigateDown())}cancelEditAndSetFocus(){this.getEditorLock()?.cancelCurrentEdit()&&this.setFocus()}commitCurrentEdit(){let e=this,t=e.getDataItem(e.activeRow),n=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let o=e.currentEditor.validate();if(o.valid){let r=e.activeRow,i=e.activeCell,a=e.currentEditor,l=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let u={row:r,cell:i,editor:a,serializedValue:l,prevSerializedValue:d,execute:()=>{a.applyValue(t,l),e.updateRow(r),e.trigger(e.onCellChange,{command:"execute",row:r,cell:i,item:t,column:n})},undo:()=>{a.applyValue(t,d),e.updateRow(r),e.trigger(e.onCellChange,{command:"undo",row:r,cell:i,item:t,column:n})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,n,u)):(u.execute(),e.makeActiveCellNormal(!0))}else{let u={};e.currentEditor.applyValue(u,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:u,column:n})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),L.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 ai(n,t),r=t||{};return r.grid=this,e.notify(r,o,this)}handleCellMouseOut(e){this.trigger(this.onMouseLeave,{},e)}handleHeaderMouseHoverOn(e){e?.target.classList.add("ui-state-hover","slick-state-hover")}handleHeaderMouseHoverOff(e){e?.target.classList.remove("ui-state-hover","slick-state-hover")}handleSelectedRangesChanged(e,t){let n=e.getNativeEvent(),o=this.selectedRows.slice(0);this.selectedRows=[];let r={};for(let i=0;i<t.length;i++)for(let a=t[i].fromRow;a<=t[i].toRow;a++){r[a]||(this.selectedRows.push(a),r[a]={});for(let l=t[i].fromCell;l<=t[i].toCell;l++)this.canCellBeSelected(a,l)&&(r[a][this.columns[l].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",r),this.simpleArrayEquals(o,this.selectedRows)){let i=n?.detail?.caller??"click",a=new Set(this.getSelectedRows()),l=new Set(o),d=Array.from(a).filter(f=>!l.has(f)),u=Array.from(l).filter(f=>!a.has(f));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:o,caller:i,changedSelectedRows:d,changedUnselectedRows:u},e)}}handleMouseWheel(e,t,n,o){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-o*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragInit,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDragStart(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragStart,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDrag(e,t){return this.trigger(this.onDrag,t,e).getReturnValue()}handleDragEnd(e,t){this.trigger(this.onDragEnd,t,e)}handleKeyDown(e){let t=this.trigger(this.onKeyDown,{row:this.activeRow,cell:this.activeCell},e).isImmediatePropagationStopped();if(!t&&!e.shiftKey&&!e.altKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;e.ctrlKey&&e.key==="Home"?this.navigateTopStart():e.ctrlKey&&e.key==="End"?this.navigateBottomEnd():e.ctrlKey&&e.key==="ArrowUp"?this.navigateTop():e.ctrlKey&&e.key==="ArrowDown"?this.navigateBottom():e.ctrlKey&&e.key==="ArrowLeft"||!e.ctrlKey&&e.key==="Home"?this.navigateRowStart():(e.ctrlKey&&e.key==="ArrowRight"||!e.ctrlKey&&e.key==="End")&&this.navigateRowEnd()}if(!t)if(!e.shiftKey&&!e.altKey&&!e.ctrlKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which===mo.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===mo.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===mo.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===mo.LEFT?t=this.navigateLeft():e.which===mo.RIGHT?t=this.navigateRight():e.which===mo.UP?t=this.navigateUp():e.which===mo.DOWN?t=this.navigateDown():e.which===mo.TAB?t=this.navigateNext():e.which===mo.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===mo.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 ai?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===JN,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=L.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=L.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=L.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=L.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&&L.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&&L.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&&L.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:n},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&L.storage.get(t,"column");this.trigger(this.onFooterClick,{column:n},e)}handleCellMouseOver(e){this.trigger(this.onMouseEnter,{},e)}handleActiveCellPositionChange(){if(this.activeCellNode&&(this.trigger(this.onActiveCellPositionChanged,{}),this.currentEditor)){let e=this.getActiveCellPosition();this.currentEditor.show&&this.currentEditor.hide&&(e.visible?this.currentEditor.show():this.currentEditor.hide()),this.currentEditor.position&&this.currentEditor.position(e)}}actionThrottle(e,t){let n=!1,o=!1,r=()=>{n?o=!0:a()},i=()=>{o=!1},a=()=>{n=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(l,t),e.call(this)},l=()=>{o?(i(),a()):n=!1};return{enqueue:r.bind(this),dequeue:i.bind(this)}}getCellFromEvent(e){let t=e instanceof ai?e.getNativeEvent():e,n=t.touches?t.touches[0]:t,o=t.target.closest(".slick-cell");if(!o)return null;let r=this.getRowFromNode(o.parentNode);if(this.hasFrozenRows){let a=0,l=L.offset(L.parents(o,".grid-canvas")[0]);L.parents(o,".grid-canvas-bottom").length&&(a=this._options.frozenBottom?L.height(this._canvasTopL):this.frozenRowsHeight),r=this.getCellFromPoint(n.clientX-l.left,n.clientY-l.top+a+document.documentElement.scrollTop).row}let i=this.getCellFromNode(o);return!L.isDefined(r)||!L.isDefined(i)?null:{row:r,cell:i}}applyHtmlCode(e,t,n){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)n?.emptyTarget!==!1&&L.emptyElement(e),e.appendChild(t);else{if(n?.skipEmptyReassignment!==!1&&!L.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 ai&&(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 ai&&(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&&L.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(L.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),L.width(this._headerL,this.headersWidthL),L.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let i=L.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");L.width(this._canvasTopR,this.canvasWidthR),L.width(this._paneHeaderL,this.canvasWidthL),L.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),L.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),L.width(this._paneTopL,this.canvasWidthL),L.setStyleSize(this._paneTopR,"left",this.canvasWidthL),L.width(this._paneTopR,this.viewportW-this.canvasWidthL),L.width(this._headerRowScrollerL,this.canvasWidthL),L.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),L.width(this._headerRowL,this.canvasWidthL),L.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(L.width(this._footerRowScrollerL,this.canvasWidthL),L.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),L.width(this._footerRowL,this.canvasWidthL),L.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&L.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),L.width(this._viewportTopL,this.canvasWidthL),L.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(L.width(this._paneBottomL,this.canvasWidthL),L.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),L.width(this._viewportBottomL,this.canvasWidthL),L.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),L.width(this._canvasBottomL,this.canvasWidthL),L.width(this._canvasBottomR,this.canvasWidthR))}else L.width(this._paneHeaderL,"100%"),L.width(this._paneTopL,"100%"),L.width(this._headerRowScrollerL,"100%"),L.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(L.width(this._footerRowScrollerL,"100%"),L.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&L.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),L.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(L.width(this._viewportBottomL,"100%"),L.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),L.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),L.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(L.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),L.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()?(L.show(this._paneHeaderR),L.show(this._paneTopR),this.hasFrozenRows?(L.show(this._paneBottomL),L.show(this._paneBottomR)):(L.hide(this._paneBottomR),L.hide(this._paneBottomL))):(L.hide(this._paneHeaderR),L.hide(this._paneTopR),L.hide(this._paneBottomR),this.hasFrozenRows?L.show(this._paneBottomL):(L.hide(this._paneBottomR),L.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=L.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){L.slideDown(t,this.resizeCanvas.bind(this));return}L.show(t),this.resizeCanvas()}else{if(r){L.slideUp(t,this.resizeCanvas.bind(this));return}L.hide(t),this.resizeCanvas()}}setTopPanelVisibility(e,t){this.togglePanelVisibility("showTopPanel",this._topPanelScrollers,e,t)}setHeaderRowVisibility(e,t){this.togglePanelVisibility("showHeaderRow",this._headerRowScroller,e,t)}setColumnHeaderVisibility(e,t){this.togglePanelVisibility("showColumnHeader",this._headerScroller,e,t)}setFooterRowVisibility(e,t){this.togglePanelVisibility("showFooterRow",this._footerRowScroller,e,t)}setPreHeaderPanelVisibility(e,t){this.togglePanelVisibility("showPreHeaderPanel",[this._preHeaderPanelScroller,this._preHeaderPanelScrollerR],e,t)}setTopHeaderPanelVisibility(e){this.togglePanelVisibility("showTopHeaderPanel",this._topHeaderPanelScroller,e)}getRowHeight(){return this._options.rowHeight}getRowTop(e){return Math.round(this._options.rowHeight*e-this.offset)}getRowBottom(e){return this.getRowTop(e)+this._options.rowHeight}getRowFromPosition(e){return Math.floor((e+this.offset)/this._options.rowHeight)}appendRowHtml(e,t,n,o,r){let i=this.getDataItem(n),a=n<r&&!i,l="slick-row"+(this.hasFrozenRows&&n<=this._options.frozenRow?" frozen":"")+(a?" loading":"")+(n===this.activeRow&&this._options.showCellSelection?" active":"")+(n%2===1?" odd":" even");i||(l+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(n);d?.cssClasses&&(l+=` ${d.cssClasses}`);let u=L.createDomElement("div",{className:`ui-widget-content ${l}`,role:"row",dataset:{row:`${n}`}}),f=this.getFrozenRowOffset(n),p=this.getRowTop(n)-f;this._options.rowTopOffsetRenderType==="transform"?u.style.transform=`translateY(${p}px)`:u.style.top=`${p}px`;let y;e.push(u),this.hasFrozenColumns()&&(y=u.cloneNode(!0),t.push(y));let b=this.columns.length,w,g,v,T,P=!0;for(let x=0,S=b;x<S;x++){if(P=!0,T=this.columns[x],!T||T.hidden)continue;g=1,v=1,w=null,d?.columns&&(w=d.columns[T.id]||d.columns[x],g=w?.colspan||1,v=w?.rowspan||1,g==="*"&&(g=S-x),v>r-n&&(v=r-n)),!this._options.enableCellRowSpan&&v>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let C=g;if(!this.getParentRowSpanByCell(n,x)){if(this.columnPosRight[Math.min(S-1,x+C-1)]>o.leftPx){if(!T.alwaysRenderColumn&&this.columnPosLeft[x]>o.rightPx&&(P=!1),P){let O=this.hasFrozenColumns()&&x>this._options.frozenColumn?y:u;this.appendCellHtml(O,n,x,C,v,w,i)}}else(T.alwaysRenderColumn||this.hasFrozenColumns()&&x<=this._options.frozenColumn)&&this.appendCellHtml(u,n,x,C,v,w,i);C>1&&(x+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let l=this.columns[n],d=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(l.cssClass?` ${l.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[l.id]&&(d+=` ${this.cellCssClasses[v][t][l.id]}`)});let u=null,f="";a&&(u=this.getDataItemValueForColumn(a,l),f=this.getFormatter(t,l)(t,n,u,l,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:u,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=L.classNameToList((y?" ":"")+f.addClasses).join(" "));let b=f?.toolTip?`${f.toolTip}`:"",w=L.createDomElement("div",{className:L.classNameToList(`${d} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});w.setAttribute("aria-describedby",this.uid+l.id),b&&w.setAttribute("title",b);let g=this.getCellHeight(t,r);if(r>1&&g!==this._options.rowHeight-this.cellHeightDiff&&(w.style.height=`${g||0}px`),l.hasOwnProperty("cellAttrs")&&l.cellAttrs instanceof Object&&Object.keys(l.cellAttrs).forEach(v=>{l.cellAttrs.hasOwnProperty(v)&&w.setAttribute(v,l.cellAttrs[v])}),a){let v=Object.prototype.toString.call(f)!=="[object Object]"?f:f.html||f.text;this.applyHtmlCode(w,v)}e.appendChild(w),f.insertElementAfterTarget&&L.insertAfterElement(w,f.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(n),this.rowsCache[t].cellColSpans[n]=o}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let n=e.top,o=e.bottom;n<=o;n++){let r=this.getRowSpanIntersect(n);r!==null&&t.add(r)}Object.keys(this.rowsCache).forEach(n=>{if(this.rowsCache){let o=+n,r=!0;this.hasFrozenRows&&(this._options.frozenBottom&&o>=this.actualFrozenRow||!this._options.frozenBottom&&o<=this.actualFrozenRow)&&(r=!1),(o=parseInt(n,10))!==this.activeRow&&(o<e.top||o>e.bottom)&&r&&!t.has(o)&&this.removeRowFromCache(o)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let n=e.length,o=new Set,r=new Set,i=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let a=0;a<n;a++)if(t=e[a],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!i){o.add(t);let l=this.getRowSpanIntersect(t);l!==null&&o.add(l)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let l=this.getRowSpanColumnIntersects(a);for(let d of l){let u=this.getParentRowSpanByCell(a,d);u&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(u.range),r.add(u.range.split(":").map(Number)[0]))}}for(let a of Array.from(r))this.remapRowSpanMetadataByRow(a)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let n=this.getRowSpanIntersect(e);n!==null&&t.push(n)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(n=>n.parentElement?.removeChild(n)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let n=this.getCellNode(e,t);if(!n)return;let o=this.columns[t],r=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(r);else{let i=r?this.getFormatter(e,o)(e,t,this.getDataItemValueForColumn(r,o),o,r,this):"";this.applyFormatResultToCellNode(i,n),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let n,o=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(r=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(r))return;let i=+r,a=this.columns[i],l=t.cellNodesByColumnIdx[i];e===this.activeRow&&i===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(o):o?(n=this.getFormatter(e,a)(e,i,this.getDataItemValueForColumn(o,a),a,o,this),this.applyFormatResultToCellNode(n,l)):L.emptyElement(l)}),this.invalidatePostProcessingResults(e)}getViewportRowCount(){let e=this.getViewportHeight(),t=this.getScrollbarDimensions()?.height??0;return Math.floor((e-t)/this._options.rowHeight)}getViewportHeight(){if((!this._options.autoHeight||this._options.frozenColumn!==-1)&&(this.topPanelH=this._options.showTopPanel?this._options.topPanelHeight+this.getVBoxDelta(this._topPanelScrollers[0]):0,this.headerRowH=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,this.footerRowH=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0),this._options.autoHeight){let e=this._paneHeaderL.offsetHeight;e+=this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,e+=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,e+=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0,e+=this.getCanvasWidth()>this.viewportW?this.scrollbarDimensions?.height??0:0,this.viewportH=this._options.rowHeight*this.getDataLengthIncludingAddNew()+(this._options.frozenColumn===-1?e:0)}else{let e=getComputedStyle(this._container),t=e.boxSizing!=="content-box"?this.getVBoxDelta(this._container):0,n=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,o=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,r=this._options.showColumnHeader?L.toFloat(L.height(this._headerScroller[0])):0;this.viewportH=L.toFloat(e.height)-L.toFloat(e.paddingTop)-L.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(L.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),L.height(this._container,n)}this._paneTopL.style.position="relative"}let e=L.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),L.setStyleSize(this._paneTopL,"top",e||e),L.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||L.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let n=L.height(this._paneHeaderL);n&&(n+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),L.setStyleSize(this._paneTopR,"top",n),L.height(this._paneTopR,this.paneTopH),L.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(L.setStyleSize(this._paneBottomL,"top",t),L.height(this._paneBottomL,this.paneBottomH),L.setStyleSize(this._paneBottomR,"top",t),L.height(this._paneBottomR,this.paneBottomH),L.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(L.width(this._paneBottomL,"100%"),L.height(this._paneBottomL,this.paneBottomH),L.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(L.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(L.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&L.height(this._canvasBottomR,this.frozenRowsHeight)):(L.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&L.height(this._canvasTopR,this.frozenRowsHeight))):L.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===_n.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?L.height(this._canvasBottomL):L.height(this._canvasTopL);this.hasFrozenRows?n=this.getDataLength()-this._options.frozenRow:n=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let r=L.height(this._viewportScrollContainerY),i=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&n*this._options.rowHeight>r,this.makeActiveCellNormal();let a=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let u=+d;u>a&&this.removeRowFromCache(u)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>a&&this.resetActiveCell(),o=this.h,this._options.autoHeight?this.h=this._options.rowHeight*n:(this.th=Math.max(this._options.rowHeight*n,r-(this.scrollbarDimensions?.height??0)),this.th<this.maxSupportedCssHeight?(this.h=this.ph=this.th,this.n=1,this.cj=0):(this.h=this.maxSupportedCssHeight,this.ph=this.h/100,this.n=Math.floor(this.th/this.ph),this.cj=(this.th-this.h)/(this.n-1))),(this.h!==o||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(L.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&L.height(this._canvasBottomR,this.h)):(L.height(this._canvasTopL,this.h),L.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let l=this.scrollTop+this.offset<=this.th-r;this.th===0||this.scrollTop===0?this.page=this.offset=0:l?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-r+(this.scrollbarDimensions?.height??0)),this.h!==o&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===_n.LegacyForceFit&&i!==this.viewportHasVScroll&&this.autosizeColumns(),this.updateCanvasWidth(!1)}getViewport(e,t){return this.getVisibleRange(e,t)}getVisibleRange(e,t){return e??(e=this.scrollTop),t??(t=this.scrollLeft),{top:this.getRowFromPosition(e),bottom:this.getRowFromPosition(e+this.viewportH)+1,leftPx:t,rightPx:t+this.viewportW}}getRenderedRange(e,t){let n=this.getVisibleRange(e,t),o=Math.round(this.viewportH/this._options.rowHeight),r=this._options.minRowBuffer;return this.vScrollDir===-1?(n.top-=o,n.bottom+=r):this.vScrollDir===1?(n.top-=r,n.bottom+=o):(n.top-=r,n.bottom+=r),n.top=Math.max(0,n.top),n.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,n.bottom),n.leftPx-=this.viewportW,n.rightPx+=this.viewportW,n.leftPx=Math.max(0,n.leftPx),n.rightPx=Math.min(this.canvasWidth,n.rightPx),n}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let n=t.rowNode,o=Array.from(n[0].children);n.length>1&&(o=o.concat(Array.from(n[1].children)));let r=o.length-1;for(;t.cellRenderQueue.length;){let i=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[i]=o[r--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let n=this.rowsCache[t],o=[];Object.keys(n.cellNodesByColumnIdx).forEach(a=>{if(!n.cellNodesByColumnIdx.hasOwnProperty(a))return;let l=+a;if(l<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[l]?.alwaysRenderColumn)return;let d=n.cellColSpans[l];(this.columnPosLeft[l]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(l||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(l)===this.activeCell||o.push(l))});let r,i;for(;L.isDefined(r=o.pop());)i=n.cellNodesByColumnIdx[r],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[r]?this.queuePostProcessedCellForCleanup(i,r,t):i.parentElement?.removeChild(i),delete n.cellColSpans[r],delete n.cellNodesByColumnIdx[r],this.postProcessedRows[t]&&delete this.postProcessedRows[t][r]}cleanUpAndRenderCells(e){let t,n=document.createElement("div"),o=[],r,i,a,l=this.columns.length;for(let f=e.top,p=e.bottom;f<=p;f++){if(t=this.rowsCache[f],!t)continue;this.ensureCellNodesInRowsCache(f),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(f)===null)&&this.cleanUpCells(e,f),r=0;let y=this.getItemMetadaWhenExists(f);y=y?.columns;let b=this.getDataItem(f);for(let w=0,g=l;w<g;w++){if(!this.columns[w]||this.columns[w].hidden)continue;if(this.columnPosLeft[w]>e.rightPx)break;if(L.isDefined(i=t.cellColSpans[w])){w+=i>1?i-1:0;continue}i=1,a=null,y&&(a=y[this.columns[w].id]||y[w],i=a?.colspan??1,i==="*"&&(i=g-w));let v=i;if(!this.getParentRowSpanByCell(f,w)){if(this.columnPosRight[Math.min(g-1,w+v-1)]>e.leftPx){let T=this.getRowspan(f,w);this.appendCellHtml(n,f,w,v,T,a,b),r++}w+=v>1?v-1:0}}r&&o.push(f)}if(!n.children.length)return;let d,u;for(;L.isDefined(d=o.pop());){t=this.rowsCache[d];let f;for(;L.isDefined(f=t.cellRenderQueue.pop());)u=n.lastChild,u&&(this.hasFrozenColumns()&&f>this._options.frozenColumn?t.rowNode[1].appendChild(u):t.rowNode[0].appendChild(u),t.cellNodesByColumnIdx[f]=u)}}renderRows(e){let t=[],n=[],o=[],r=!1,i=this.getDataLength(),a=new Set,l=new Set;for(let u=e.top,f=e.bottom;u<=f;u++)if(!(this.rowsCache[u]||this.hasFrozenRows&&this._options.frozenBottom&&u===this.getDataLength())){if(this.renderedRows++,o.push(u),l.add(u),this.rowsCache[u]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let p=this.getRowSpanIntersect(u);p!==null&&l.add(p)}this.appendRowHtml(t,n,u,e,i),a.add(u),this.activeCellNode&&this.activeRow===u&&(r=!0),this.counter_rows_rendered++}let d=this.setDifference(l,a);if(d.size>0&&d.forEach(u=>{this.removeRowFromCache(u),o.push(u),this.rowsCache[u]=this.createEmptyCachingRow(),this.appendRowHtml(t,n,u,e,i)}),o.length){let u=document.createElement("div"),f=document.createElement("div");t.forEach(p=>u.appendChild(p)),n.forEach(p=>f.appendChild(p));for(let p=0,y=o.length;p<y;p++)this.hasFrozenRows&&o[p]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasBottomL.appendChild(u.firstChild),this._canvasBottomR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasBottomL.appendChild(u.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasTopL.appendChild(u.firstChild),this._canvasTopR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasTopL.appendChild(u.firstChild));r&&(this.activeCellNode=this.getCellNode(this.activeRow,this.activeCell))}}updateRowPositions(){for(let e in this.rowsCache)if(this.rowsCache){let t=e?parseInt(e,10):0,n=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?n.style.transform=`translateY(${this.getRowTop(t)}px)`:n.style.top=`${this.getRowTop(t)}px`}}render(){if(!this.initialized)return;this.scrollThrottle.dequeue();let e=this.getVisibleRange(),t=this.getRenderedRange();if(this.cleanupRows(t),this.lastRenderedScrollLeft!==this.scrollLeft){if(this.hasFrozenRows){let n=L.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)-L.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+L.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>n&&(this._viewportScrollContainerX.scrollLeft=Math.min(e,t-this._viewportScrollContainerX.clientWidth),this.handleScroll(),this.render())}scrollColumnIntoView(e){this.internalScrollColumnIntoView(this.columnPosLeft[e],this.columnPosRight[e])}updatePagingStatusFromView(e){this.pagingActive=e.pageSize!==0,this.pagingIsLastPage=e.pageNum===e.totalPages-1}getRowSpanColumnIntersects(e){return this.getRowSpanIntersection(e,"columns")}getRowSpanIntersect(e){return this.getRowSpanIntersection(e)}getRowSpanIntersection(e,t){let n=[],o=null;for(let r=0,i=this.columns.length;r<i;r++){let a=this._colsWithRowSpanCache[r];if(a)for(let l of Array.from(a)){let[d,u]=l.split(":").map(Number);if(e>=d&&e<=u)if(t==="columns")n.push(r);else{o=d;break}}}return t==="columns"?n:o}getParentRowSpanByCell(e,t,n=!0){let o=null,r=this._colsWithRowSpanCache[t]||new Set;for(let i of Array.from(r)){let[a,l]=i.split(":").map(Number);if((n?e>a:e>=a)&&e<=l){o={start:a,end:l,range:i};break}}return o}remapAllColumnsRowSpan(){let e=this.getDataLength();if(e>0){this._colsWithRowSpanCache={};for(let t=0;t<e;t++)this.remapRowSpanMetadataByRow(t);this._rowSpanIsCached=!0}}remapRowSpanMetadataByRow(e){let t=this.getItemMetadaWhenExists(e);t?.columns&&Object.keys(t.columns).forEach(n=>{let o=+n,r=t.columns[o],i=+(r?.colspan||1),a=+(r?.rowspan||1);this.remapRowSpanMetadata(e,o,i,a)})}remapRowSpanMetadata(e,t,n,o){var r,i,a;if(o>1){let l=`${e}:${e+o-1}`;if((r=this._colsWithRowSpanCache)[t]??(r[t]=new Set),this._colsWithRowSpanCache[t].add(l),n>1)for(let d=1;d<n;d++)(i=this._colsWithRowSpanCache)[a=t+d]??(i[a]=new Set),this._colsWithRowSpanCache[t+d].add(l)}}createEmptyCachingRow(){return{rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]}}scrollRowIntoView(e,t){if(!this.hasFrozenRows||!this._options.frozenBottom&&e>this.actualFrozenRow-1||this._options.frozenBottom&&e<this.actualFrozenRow-1){let n=L.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&&L.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||!L.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=!L.isDefined(this.activeCell)||!L.isDefined(this.activeRow);if(this._options.enableCellNavigation&&L.isDefined(this.activeRow)){let o=0,r=null,i=this.activePosX;for(;o<=this.activePosX;)this.canCellBeActive(e,o)&&(r=o,(!L.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(...L.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(...L.classNameToList(e.addClasses)),e.toolTip&&t.setAttribute("title",e.toolTip)}startPostProcessing(){this._options.enableAsyncPostRender&&(window.clearTimeout(this.h_postrender),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay))}startPostProcessingCleanup(){this._options.enableAsyncPostRenderCleanup&&(window.clearTimeout(this.h_postrenderCleanup),this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay))}invalidatePostProcessingResults(e){typeof this.postProcessedRows[e]=="object"&&Object.keys(this.postProcessedRows[e]).forEach(t=>{this.postProcessedRows[e].hasOwnProperty(t)&&(this.postProcessedRows[e][t]="C")}),this.postProcessFromRow=Math.min(this.postProcessFromRow,e),this.postProcessToRow=Math.max(this.postProcessToRow,e),this.startPostProcessing()}asyncPostProcessRows(){let e=this.getDataLength();for(;this.postProcessFromRow<=this.postProcessToRow;){let t=this.vScrollDir>=0?this.postProcessFromRow++:this.postProcessToRow--,n=this.rowsCache[t];if(!(!n||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(n.cellNodesByColumnIdx).forEach(o=>{if(n.cellNodesByColumnIdx.hasOwnProperty(o)){let r=+o,i=this.columns[r],a=this.postProcessedRows[t][r];if(i.asyncPostRender&&a!=="R"){let l=n.cellNodesByColumnIdx[r];l&&i.asyncPostRender(l,t,this.getDataItem(t),i,a==="C"),this.postProcessedRows[t][r]="R"}}}),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay);return}}}asyncPostProcessCleanupRows(){if(this.postProcessedCleanupQueue.length>0){let e=this.postProcessedCleanupQueue[0].groupId;for(;this.postProcessedCleanupQueue.length>0&&this.postProcessedCleanupQueue[0].groupId===e;){let t=this.postProcessedCleanupQueue.shift();if(t?.actionType==="R"&&t.node.forEach(n=>{n.remove()}),t?.actionType==="C"){let n=this.columns[t.columnIdx];n.asyncPostRenderCleanup&&t.node&&n.asyncPostRenderCleanup(t.node,t.rowIdx,n)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let n,o,r;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(i=>{this.rowsCache&&(r=t?.[i],o=e?.[i],r&&Object.keys(r).forEach(a=>{(!o||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.remove(r[a]))}),o&&Object.keys(o).forEach(a=>{(!r||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.add(o[a]))}))})}addCellCssStyles(e,t){if(this.cellCssClasses[e])throw new Error(`SlickGrid addCellCssStyles: cell CSS hash with key "${e}" already exists.`);this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,null),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}removeCellCssStyles(e){this.cellCssClasses[e]&&(this.updateCellCssStylesOnRenderedRows(null,this.cellCssClasses[e]),delete this.cellCssClasses[e],this.trigger(this.onCellCssStylesChanged,{key:e,hash:null,grid:this}))}setCellCssStyles(e,t){let n=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,n),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,n=250){let o=(r,i)=>{i<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{i%2===0?r.classList.add(this._options.cellFlashingCssClass||""):r.classList.remove(this._options.cellFlashingCssClass||""),o(r,i-1)},n))};if(this.rowsCache[e]){let r=this.getCellNode(e,t);r&&o(r,5)}}highlightRow(e,t){let n=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(n?.rowNode)&&this._options.rowHighlightCssClass&&(n.rowNode.forEach(o=>o.classList.add(...L.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{n.rowNode?.forEach(o=>o.classList.remove(...L.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=L.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),n=L.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=L.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let o=e*2;L.height(n,o);let r=L.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+=L.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=L.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+=L.toFloat(r[a])),t.forEach(a=>this.headerColumnHeightDiff+=L.toFloat(r[a]))),o.remove();let i=L.createDomElement("div",{className:"slick-row"},this._canvas[0]);o=L.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},i),r=getComputedStyle(o),r.boxSizing!=="border-box"&&(e.forEach(a=>this.cellWidthDiff+=L.toFloat(r[a])),t.forEach(a=>this.cellHeightDiff+=L.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 L.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 l=0;l<t;l++)!this.columns[l]||this.columns[l].hidden||(i+=this.columns[l].width||0,this._options.frozenColumn===l&&(i=0));let a=i+(this.columns[t]?.width||0);return{top:o,left:i,bottom:r,right:a}}absBox(e){let t={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:e.offsetWidth,height:e.offsetWidth,visible:!0};t.bottom=t.top+t.height,t.right=t.left+t.width;let n=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let o=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&o.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&o.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===n&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,n=e.offsetParent),t.bottom=t.top+t.height,t.right=t.left+t.width}return t}getActiveCellPosition(){return this.absBox(this.activeCellNode)}getGridPosition(){return this.absBox(this._container)}getCellEditor(){return this.currentEditor}getActiveCell(){return this.activeCellNode?{row:this.activeRow,cell:this.activeCell}:null}getActiveCellNode(){return this.activeCellNode}getTextSelection(){let e=null;if(window.getSelection){let t=window.getSelection();(t?.rangeCount??0)>0&&(e=t.getRangeAt(0))}return e}setTextSelection(e){if(window.getSelection&&e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}}sanitizeHtmlString(e,t){if(!this._options.sanitizer||typeof e!="string")return e;let n=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&n!==e&&(console.log(`sanitizer altered html: ${e} --> ${n}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),n}getRowspan(e,t){let n=1,o=this.getItemMetadaWhenExists(e);return o?.columns&&Object.keys(o.columns).forEach(r=>{let i=Number(r);if(i===t){let a=o.columns[i];n=Number(a?.rowspan||1)}}),n}findFocusableRow(e,t,n){let o=e,r=this._colsWithRowSpanCache[t]||new Set,i=!1;return Array.from(r).forEach(a=>{let[l,d]=a.split(":").map(Number);!i&&e>=l&&e<=d&&(o=n==="up"?l:d,this.canCellBeActive(o,t)&&(i=!0))}),o<0&&(o=0),o}findFirstFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);if(n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)){o=t;break}t+=this.getColspan(n,t)}return{cell:o,row:n}}findLastFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)&&(o=t),t+=this.getColspan(n,t)}return{cell:o,row:n}}rowsToRanges(e){let t=[],n=this.columns.length-1;for(let o=0;o<e.length;o++)t.push(new eA(e[o],0,e[o],n));return t}findSpanStartingCell(e,t){let n=this.getParentRowSpanByCell(e,t),o=n!==null&&n.start!==e?n.start:e,r=0,i=0;for(;r<this.columns.length;){if(r+=this.getColspan(o,r),r>t)return r=i,{cell:r,row:o};i=r}return{cell:r,row:o}}gotoRight(e,t,n,o){if(t>=this.columns.length)return null;let r=t+1,i=n;do{let a=this.findSpanStartingCell(n,r);if(i=a.row,r=a.cell,this.canCellBeActive(i,r)&&r>t)break;r+=this.getColspan(i,a.cell)}while(r<this.columns.length);return r<this.columns.length?{row:i,cell:r,posX:r,posY:n}:null}gotoLeft(e,t,n,o){if(t<=0)return null;let r=this.findFirstFocusableCell(e);if(r.cell===null||r.cell>=t)return null;let i,a={row:e,cell:r.cell,posX:r.cell,posY:n};for(;;){if(i=this.gotoRight(a.row,a.cell,a.posY,a.posX),!i)return null;if(i.cell>=t){let l=this.findFocusableRow(n,a.cell,"up");return l!==a.row&&(a.row=l),a}a=i}}gotoDown(e,t,n,o){let r,i=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,o),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e<=i&&!this.canCellBeActive(e,r));return e<=i?{row:e,cell:r,posX:o,posY:e}:null}gotoUp(e,t,n,o){let r;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,o,"up"),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,r));return t<=this.columns.length?{row:e,cell:r,posX:o,posY:e}:null}gotoNext(e,t,n,o){if(!L.isDefined(e)&&!L.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(!L.isDefined(e)&&!L.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()}};/**
|
|
273
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var zp={};function _y(e,t){_e.deprecationHandler!=null&&_e.deprecationHandler(e,t),zp[e]||(Sy(t),zp[e]=!0)}_e.suppressDeprecationWarnings=!1;_e.deprecationHandler=null;function Po(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function rD(e){var t,n;for(n in e)ut(e,n)&&(t=e[n],Po(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 zd(e,t){var n=ir({},e),o;for(o in t)ut(t,o)&&(Ir(e[o])&&Ir(t[o])?(n[o]={},ir(n[o],e[o]),ir(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)ut(e,o)&&!ut(t,o)&&Ir(e[o])&&(n[o]=ir({},n[o]));return n}function Bu(e){e!=null&&this.set(e)}var Yd;Object.keys?Yd=Object.keys:Yd=function(e){var t,n=[];for(t in e)ut(e,t)&&n.push(t);return n};var sD={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function iD(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return Po(o)?o.call(t,n):o}function To(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 Wu=/(\[[^\[]*\])|(\\)?([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,Wa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,id={},ys={};function Le(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(ys[e]=r),t&&(ys[t[0]]=function(){return To(r.apply(this,arguments),t[1],t[2])}),n&&(ys[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function aD(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function lD(e){var t=e.match(Wu),n,o;for(n=0,o=t.length;n<o;n++)ys[t[n]]?t[n]=ys[t[n]]:t[n]=aD(t[n]);return function(r){var i="",a;for(a=0;a<o;a++)i+=Po(t[a])?t[a].call(r,e):t[a];return i}}function ol(e,t){return e.isValid()?(t=xy(t,e.localeData()),id[t]=id[t]||lD(t),id[t](e)):e.localeData().invalidDate()}function xy(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(Wa.lastIndex=0;n>=0&&Wa.test(e);)e=e.replace(Wa,o),Wa.lastIndex=0,n-=1;return e}var cD={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 dD(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Wu).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var uD="Invalid date";function hD(){return this._invalidDate}var fD="%d",pD=/\d{1,2}/;function mD(e){return this._ordinal.replace("%d",e)}var gD={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 yD(e,t,n,o){var r=this._relativeTime[n];return Po(r)?r(e,t,n,o):r.replace(/%d/i,e)}function vD(e,t){var n=this._relativeTime[e>0?"future":"past"];return Po(n)?n(t):n.replace(/%s/i,t)}var Yp={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 eo(e){return typeof e=="string"?Yp[e]||Yp[e.toLowerCase()]:void 0}function Hu(e){var t={},n,o;for(o in e)ut(e,o)&&(n=eo(o),n&&(t[n]=e[o]));return t}var bD={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 wD(e){var t=[],n;for(n in e)ut(e,n)&&t.push({unit:n,priority:bD[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var Ry=/\d/,$n=/\d\d/,Ty=/\d{3}/,zu=/\d{4}/,tc=/[+-]?\d{6}/,It=/\d\d?/,ky=/\d\d\d\d?/,Ey=/\d\d\d\d\d\d?/,nc=/\d{1,3}/,Yu=/\d{1,4}/,oc=/[+-]?\d{1,6}/,Vs=/\d+/,rc=/[+-]?\d+/,CD=/Z|[+-]\d\d:?\d\d/gi,sc=/Z|[+-]\d\d(?::?\d\d)?/gi,SD=/[+-]?\d+(\.\d{1,3})?/,fa=/[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,js=/^[1-9]\d?/,Uu=/^([1-9]\d|\d)/,bl;bl={};function Ee(e,t,n){bl[e]=Po(t)?t:function(o,r){return o&&n?n:t}}function _D(e,t){return ut(bl,e)?bl[e](t._strict,t._locale):new RegExp(xD(e))}function xD(e){return zo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,i){return n||o||r||i}))}function zo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Un(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=Un(t)),n}var Ud={};function kt(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),Xo(t)&&(o=function(i,a){a[t]=Qe(i)}),r=e.length,n=0;n<r;n++)Ud[e[n]]=o}function pa(e,t){kt(e,function(n,o,r,i){r._w=r._w||{},t(n,r._w,r,i)})}function RD(e,t,n){t!=null&&ut(Ud,e)&&Ud[e](t,n._a,n,e)}function ic(e){return e%4===0&&e%100!==0||e%400===0}var yn=0,Bo=1,wo=2,tn=3,ro=4,Wo=5,Dr=6,TD=7,kD=8;Le("Y",0,0,function(){var e=this.year();return e<=9999?To(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");Ee("Y",rc);Ee("YY",It,$n);Ee("YYYY",Yu,zu);Ee("YYYYY",oc,tc);Ee("YYYYYY",oc,tc);kt(["YYYYY","YYYYYY"],yn);kt("YYYY",function(e,t){t[yn]=e.length===2?_e.parseTwoDigitYear(e):Qe(e)});kt("YY",function(e,t){t[yn]=_e.parseTwoDigitYear(e)});kt("Y",function(e,t){t[yn]=parseInt(e,10)});function Ti(e){return ic(e)?366:365}_e.parseTwoDigitYear=function(e){return Qe(e)+(Qe(e)>68?1900:2e3)};var Py=Bs("FullYear",!0);function ED(){return ic(this.year())}function Bs(e,t){return function(n){return n!=null?(Dy(this,e,n),_e.updateOffset(this,t),this):zi(this,e)}}function zi(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 Dy(e,t,n){var o,r,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(r?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(r?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(r?o.setUTCHours(n):o.setHours(n));case"Date":return void(r?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!ic(i)?28:l,r?o.setUTCFullYear(i,a,l):o.setFullYear(i,a,l)}}function PD(e){return e=eo(e),Po(this[e])?this[e]():this}function DD(e,t){if(typeof e=="object"){e=Hu(e);var n=wD(e),o,r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(e=eo(e),Po(this[e]))return this[e](t);return this}function OD(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 qu(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=OD(t,12);return e+=(t-n)/12,n===1?ic(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)});Ee("M",It,js);Ee("MM",It,$n);Ee("MMM",function(e,t){return t.monthsShortRegex(e)});Ee("MMMM",function(e,t){return t.monthsRegex(e)});kt(["M","MM"],function(e,t){t[Bo]=Qe(e)-1});kt(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);r!=null?t[Bo]=r:ze(n).invalidMonth=e});var MD="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),My=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ID=fa,ND=fa;function AD(e,t){return e?so(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||My).test(t)?"format":"standalone"][e.month()]:so(this._months)?this._months:this._months.standalone}function FD(e,t){return e?so(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[My.test(t)?"format":"standalone"][e.month()]:so(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function LD(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=Eo([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 $D(e,t,n){var o,r,i;if(this._monthsParseExact)return LD.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=Eo([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 Iy(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),!Xo(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,qu(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function Ny(e){return e!=null?(Iy(this,e),_e.updateOffset(this,!0),this):zi(this,"Month")}function VD(){return qu(this.year(),this.month())}function jD(e){return this._monthsParseExact?(ut(this,"_monthsRegex")||Ay.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ut(this,"_monthsShortRegex")||(this._monthsShortRegex=ID),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function BD(e){return this._monthsParseExact?(ut(this,"_monthsRegex")||Ay.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ut(this,"_monthsRegex")||(this._monthsRegex=ND),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ay(){function e(d,u){return u.length-d.length}var t=[],n=[],o=[],r,i,a,l;for(r=0;r<12;r++)i=Eo([2e3,r]),a=zo(this.monthsShort(i,"")),l=zo(this.months(i,"")),t.push(a),n.push(l),o.push(l),o.push(a);t.sort(e),n.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function WD(e,t,n,o,r,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,o,r,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,o,r,i,a),l}function Yi(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 wl(e,t,n){var o=7+t-n,r=(7+Yi(e,0,o).getUTCDay()-t)%7;return-r+o-1}function Fy(e,t,n,o,r){var i=(7+n-o)%7,a=wl(e,o,r),l=1+7*(t-1)+i+a,d,u;return l<=0?(d=e-1,u=Ti(d)+l):l>Ti(e)?(d=e+1,u=l-Ti(e)):(d=e,u=l),{year:d,dayOfYear:u}}function Ui(e,t,n){var o=wl(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+Yo(a,t,n)):r>Yo(e.year(),t,n)?(i=r-Yo(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function Yo(e,t,n){var o=wl(e,t,n),r=wl(e+1,t,n);return(Ti(e)-o+r)/7}Le("w",["ww",2],"wo","week");Le("W",["WW",2],"Wo","isoWeek");Ee("w",It,js);Ee("ww",It,$n);Ee("W",It,js);Ee("WW",It,$n);pa(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=Qe(e)});function HD(e){return Ui(e,this._week.dow,this._week.doy).week}var zD={dow:0,doy:6};function YD(){return this._week.dow}function UD(){return this._week.doy}function qD(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function GD(e){var t=Ui(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");Ee("d",It);Ee("e",It);Ee("E",It);Ee("dd",function(e,t){return t.weekdaysMinRegex(e)});Ee("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ee("dddd",function(e,t){return t.weekdaysRegex(e)});pa(["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});pa(["d","e","E"],function(e,t,n,o){t[o]=Qe(e)});function KD(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function XD(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Gu(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ZD="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ly="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),QD="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),JD=fa,eO=fa,tO=fa;function nO(e,t){var n=so(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Gu(n,this._week.dow):e?n[e.day()]:n}function oO(e){return e===!0?Gu(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function rO(e){return e===!0?Gu(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function sO(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=Eo([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 iO(e,t,n){var o,r,i;if(this._weekdaysParseExact)return sO.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=Eo([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 aO(e){if(!this.isValid())return e!=null?this:NaN;var t=zi(this,"Day");return e!=null?(e=KD(e,this.localeData()),this.add(e-t,"d")):t}function lO(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 cO(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=XD(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function dO(e){return this._weekdaysParseExact?(ut(this,"_weekdaysRegex")||Ku.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ut(this,"_weekdaysRegex")||(this._weekdaysRegex=JD),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function uO(e){return this._weekdaysParseExact?(ut(this,"_weekdaysRegex")||Ku.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ut(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=eO),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function hO(e){return this._weekdaysParseExact?(ut(this,"_weekdaysRegex")||Ku.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ut(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tO),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ku(){function e(f,p){return p.length-f.length}var t=[],n=[],o=[],r=[],i,a,l,d,u;for(i=0;i<7;i++)a=Eo([2e3,1]).day(i),l=zo(this.weekdaysMin(a,"")),d=zo(this.weekdaysShort(a,"")),u=zo(this.weekdays(a,"")),t.push(l),n.push(d),o.push(u),r.push(l),r.push(d),r.push(u);t.sort(e),n.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xu(){return this.hours()%12||12}function fO(){return this.hours()||24}Le("H",["HH",2],0,"hour");Le("h",["hh",2],0,Xu);Le("k",["kk",2],0,fO);Le("hmm",0,0,function(){return""+Xu.apply(this)+To(this.minutes(),2)});Le("hmmss",0,0,function(){return""+Xu.apply(this)+To(this.minutes(),2)+To(this.seconds(),2)});Le("Hmm",0,0,function(){return""+this.hours()+To(this.minutes(),2)});Le("Hmmss",0,0,function(){return""+this.hours()+To(this.minutes(),2)+To(this.seconds(),2)});function $y(e,t){Le(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}$y("a",!0);$y("A",!1);function Vy(e,t){return t._meridiemParse}Ee("a",Vy);Ee("A",Vy);Ee("H",It,Uu);Ee("h",It,js);Ee("k",It,js);Ee("HH",It,$n);Ee("hh",It,$n);Ee("kk",It,$n);Ee("hmm",ky);Ee("hmmss",Ey);Ee("Hmm",ky);Ee("Hmmss",Ey);kt(["H","HH"],tn);kt(["k","kk"],function(e,t,n){var o=Qe(e);t[tn]=o===24?0:o});kt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});kt(["h","hh"],function(e,t,n){t[tn]=Qe(e),ze(n).bigHour=!0});kt("hmm",function(e,t,n){var o=e.length-2;t[tn]=Qe(e.substr(0,o)),t[ro]=Qe(e.substr(o)),ze(n).bigHour=!0});kt("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[tn]=Qe(e.substr(0,o)),t[ro]=Qe(e.substr(o,2)),t[Wo]=Qe(e.substr(r)),ze(n).bigHour=!0});kt("Hmm",function(e,t,n){var o=e.length-2;t[tn]=Qe(e.substr(0,o)),t[ro]=Qe(e.substr(o))});kt("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[tn]=Qe(e.substr(0,o)),t[ro]=Qe(e.substr(o,2)),t[Wo]=Qe(e.substr(r))});function pO(e){return(e+"").toLowerCase().charAt(0)==="p"}var mO=/[ap]\.?m?\.?/i,gO=Bs("Hours",!0);function yO(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var jy={calendar:sD,longDateFormat:cD,invalidDate:uD,ordinal:fD,dayOfMonthOrdinalParse:pD,relativeTime:gD,months:MD,monthsShort:Oy,week:zD,weekdays:ZD,weekdaysMin:QD,weekdaysShort:Ly,meridiemParse:mO},$t={},oi={},qi;function vO(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 Up(e){return e&&e.toLowerCase().replace("_","-")}function bO(e){for(var t=0,n,o,r,i;t<e.length;){for(i=Up(e[t]).split("-"),n=i.length,o=Up(e[t+1]),o=o?o.split("-"):null;n>0;){if(r=ac(i.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&vO(i,o)>=n-1)break;n--}t++}return qi}function wO(e){return!!(e&&e.match("^[^/\\\\]*$"))}function ac(e){var t=null,n;if($t[e]===void 0&&typeof module<"u"&&module&&module.exports&&wO(e))try{t=qi._abbr,n=require,n("./locale/"+e),lr(t)}catch{$t[e]=null}return $t[e]}function lr(e,t){var n;return e&&(xn(t)?n=Qo(e):n=Zu(e,t),n?qi=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),qi._abbr}function Zu(e,t){if(t!==null){var n,o=jy;if(t.abbr=e,$t[e]!=null)_y("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=ac(t.parentLocale),n!=null)o=n._config;else return oi[t.parentLocale]||(oi[t.parentLocale]=[]),oi[t.parentLocale].push({name:e,config:t}),null;return $t[e]=new Bu(zd(o,t)),oi[e]&&oi[e].forEach(function(r){Zu(r.name,r.config)}),lr(e),$t[e]}else return delete $t[e],null}function CO(e,t){if(t!=null){var n,o,r=jy;$t[e]!=null&&$t[e].parentLocale!=null?$t[e].set(zd($t[e]._config,t)):(o=ac(e),o!=null&&(r=o._config),t=zd(r,t),o==null&&(t.abbr=e),n=new Bu(t),n.parentLocale=$t[e],$t[e]=n),lr(e)}else $t[e]!=null&&($t[e].parentLocale!=null?($t[e]=$t[e].parentLocale,e===lr()&&lr(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 qi;if(!so(e)){if(t=ac(e),t)return t;e=[e]}return bO(e)}function SO(){return Yd($t)}function Qu(e){var t,n=e._a;return n&&ze(e).overflow===-2&&(t=n[Bo]<0||n[Bo]>11?Bo:n[wo]<1||n[wo]>qu(n[yn],n[Bo])?wo:n[tn]<0||n[tn]>24||n[tn]===24&&(n[ro]!==0||n[Wo]!==0||n[Dr]!==0)?tn:n[ro]<0||n[ro]>59?ro:n[Wo]<0||n[Wo]>59?Wo:n[Dr]<0||n[Dr]>999?Dr:-1,ze(e)._overflowDayOfYear&&(t<yn||t>wo)&&(t=wo),ze(e)._overflowWeeks&&t===-1&&(t=TD),ze(e)._overflowWeekday&&t===-1&&(t=kD),ze(e).overflow=t),e}var _O=/^\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)?)?$/,xO=/^\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)?)?$/,RO=/Z|[+-]\d\d(?::?\d\d)?/,Ha=[["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]],ad=[["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/]],TO=/^\/?Date\((-?\d+)/i,kO=/^(?:(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}))$/,EO={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 By(e){var t,n,o=e._i,r=_O.exec(o)||xO.exec(o),i,a,l,d,u=Ha.length,f=ad.length;if(r){for(ze(e).iso=!0,t=0,n=u;t<n;t++)if(Ha[t][1].exec(r[1])){a=Ha[t][0],i=Ha[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,n=f;t<n;t++)if(ad[t][1].exec(r[3])){l=(r[2]||" ")+ad[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(r[4])if(RO.exec(r[4]))d="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(d||""),eh(e)}else e._isValid=!1}function PO(e,t,n,o,r,i){var a=[DO(e),Oy.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function DO(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function OO(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function MO(e,t,n){if(e){var o=Ly.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 IO(e,t,n){if(e)return EO[e];if(t)return 0;var o=parseInt(n,10),r=o%100,i=(o-r)/100;return i*60+r}function Wy(e){var t=kO.exec(OO(e._i)),n;if(t){if(n=PO(t[4],t[3],t[2],t[5],t[6],t[7]),!MO(t[1],n,e))return;e._a=n,e._tzm=IO(t[8],t[9],t[10]),e._d=Yi.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ze(e).rfc2822=!0}else e._isValid=!1}function NO(e){var t=TO.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(By(e),e._isValid===!1)delete e._isValid;else return;if(Wy(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_e.createFromInputFallback(e)}_e.createFromInputFallback=Jn("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 cs(e,t,n){return e??t??n}function AO(e){var t=new Date(_e.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ju(e){var t,n,o=[],r,i,a;if(!e._d){for(r=AO(e),e._w&&e._a[wo]==null&&e._a[Bo]==null&&FO(e),e._dayOfYear!=null&&(a=cs(e._a[yn],r[yn]),(e._dayOfYear>Ti(a)||e._dayOfYear===0)&&(ze(e)._overflowDayOfYear=!0),n=Yi(a,0,e._dayOfYear),e._a[Bo]=n.getUTCMonth(),e._a[wo]=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[ro]===0&&e._a[Wo]===0&&e._a[Dr]===0&&(e._nextDay=!0,e._a[tn]=0),e._d=(e._useUTC?Yi:WD).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 FO(e){var t,n,o,r,i,a,l,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=cs(t.GG,e._a[yn],Ui(Ot(),1,4).year),o=cs(t.W,1),r=cs(t.E,1),(r<1||r>7)&&(d=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Ui(Ot(),i,a),n=cs(t.gg,e._a[yn],u.year),o=cs(t.w,u.week),t.d!=null?(r=t.d,(r<0||r>6)&&(d=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(d=!0)):r=i),o<1||o>Yo(n,i,a)?ze(e)._overflowWeeks=!0:d!=null?ze(e)._overflowWeekday=!0:(l=Fy(n,o,r,i,a),e._a[yn]=l.year,e._dayOfYear=l.dayOfYear)}_e.ISO_8601=function(){};_e.RFC_2822=function(){};function eh(e){if(e._f===_e.ISO_8601){By(e);return}if(e._f===_e.RFC_2822){Wy(e);return}e._a=[],ze(e).empty=!0;var t=""+e._i,n,o,r,i,a,l=t.length,d=0,u,f;for(r=xy(e._f,e._locale).match(Wu)||[],f=r.length,n=0;n<f;n++)i=r[n],o=(t.match(_D(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),d+=o.length),ys[i]?(o?ze(e).empty=!1:ze(e).unusedTokens.push(i),RD(i,o,e)):e._strict&&!o&&ze(e).unusedTokens.push(i);ze(e).charsLeftOver=l-d,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]=LO(e._locale,e._a[tn],e._meridiem),u=ze(e).era,u!==null&&(e._a[yn]=e._locale.erasConvertYear(u,e._a[yn])),Ju(e),Qu(e)}function LO(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 $O(e){var t,n,o,r,i,a,l=!1,d=e._f.length;if(d===0){ze(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<d;r++)i=0,a=!1,t=ju({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],eh(t),Vu(t)&&(a=!0),i+=ze(t).charsLeftOver,i+=ze(t).unusedTokens.length*10,ze(t).score=i,l?i<o&&(o=i,n=t):(o==null||i<o||a)&&(o=i,n=t,a&&(l=!0));ir(e,n||t)}function VO(e){if(!e._d){var t=Hu(e._i),n=t.day===void 0?t.date:t.day;e._a=Cy([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),Ju(e)}}function jO(e){var t=new ha(Qu(Hy(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Hy(e){var t=e._i,n=e._f;return e._locale=e._locale||Qo(e._l),t===null||n===void 0&&t===""?ec({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),io(t)?new ha(Qu(t)):(ua(t)?e._d=t:so(n)?$O(e):n?eh(e):BO(e),Vu(e)||(e._d=null),e))}function BO(e){var t=e._i;xn(t)?e._d=new Date(_e.now()):ua(t)?e._d=new Date(t.valueOf()):typeof t=="string"?NO(e):so(t)?(e._a=Cy(t.slice(0),function(n){return parseInt(n,10)}),Ju(e)):Ir(t)?VO(e):Xo(t)?e._d=new Date(t):_e.createFromInputFallback(e)}function zy(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),(Ir(e)&&$u(e)||so(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,jO(i)}function Ot(e,t,n,o){return zy(e,t,n,o,!1)}var WO=Jn("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:ec()}),HO=Jn("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:ec()});function Yy(e,t){var n,o;if(t.length===1&&so(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 zO(){var e=[].slice.call(arguments,0);return Yy("isBefore",e)}function YO(){var e=[].slice.call(arguments,0);return Yy("isAfter",e)}var UO=function(){return Date.now?Date.now():+new Date},ri=["year","quarter","month","week","day","hour","minute","second","millisecond"];function qO(e){var t,n=!1,o,r=ri.length;for(t in e)if(ut(e,t)&&!(qt.call(ri,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[ri[o]]){if(n)return!1;parseFloat(e[ri[o]])!==Qe(e[ri[o]])&&(n=!0)}return!0}function GO(){return this._isValid}function KO(){return lo(NaN)}function lc(e){var t=Hu(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,d=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=qO(t),this._milliseconds=+f+u*1e3+d*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+r+o*3+n*12,this._data={},this._locale=Qo(),this._bubble()}function rl(e){return e instanceof lc}function qd(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function XO(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 Uy(e,t){Le(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+To(~~(n/60),2)+t+To(~~n%60,2)})}Uy("Z",":");Uy("ZZ","");Ee("Z",sc);Ee("ZZ",sc);kt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=th(sc,e)});var ZO=/([\+\-]|\d\d)/gi;function th(e,t){var n=(t||"").match(e),o,r,i;return n===null?null:(o=n[n.length-1]||[],r=(o+"").match(ZO)||["-",0,0],i=+(r[1]*60)+Qe(r[2]),i===0?0:r[0]==="+"?i:-i)}function nh(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(io(e)||ua(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),_e.updateOffset(n,!1),n):Ot(e).local()}function Gd(e){return-Math.round(e._d.getTimezoneOffset())}_e.updateOffset=function(){};function QO(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=th(sc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=Gd(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Ky(this,lo(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_e.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:Gd(this)}function JO(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function eM(e){return this.utcOffset(0,e)}function tM(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gd(this),"m")),this}function nM(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=th(CD,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function oM(e){return this.isValid()?(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function rM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sM(){if(!xn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ju(e,this),e=Hy(e),e._a?(t=e._isUTC?Eo(e._a):Ot(e._a),this._isDSTShifted=this.isValid()&&XO(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function iM(){return this.isValid()?!this._isUTC:!1}function aM(){return this.isValid()?this._isUTC:!1}function qy(){return this.isValid()?this._isUTC&&this._offset===0:!1}var lM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,cM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function lo(e,t){var n=e,o=null,r,i,a;return rl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Xo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=lM.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:Qe(o[wo])*r,h:Qe(o[tn])*r,m:Qe(o[ro])*r,s:Qe(o[Wo])*r,ms:Qe(qd(o[Dr]*1e3))*r}):(o=cM.exec(e))?(r=o[1]==="-"?-1:1,n={y:Cr(o[2],r),M:Cr(o[3],r),w:Cr(o[4],r),d:Cr(o[5],r),h:Cr(o[6],r),m:Cr(o[7],r),s:Cr(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=dM(Ot(n.from),Ot(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new lc(n),rl(e)&&ut(e,"_locale")&&(i._locale=e._locale),rl(e)&&ut(e,"_isValid")&&(i._isValid=e._isValid),i}lo.fn=lc.prototype;lo.invalid=KO;function Cr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function qp(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 dM(e,t){var n;return e.isValid()&&t.isValid()?(t=nh(t,e),e.isBefore(t)?n=qp(e,t):(n=qp(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Gy(e,t){return function(n,o){var r,i;return o!==null&&!isNaN(+o)&&(_y(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=lo(n,o),Ky(this,r,e),this}}function Ky(e,t,n,o){var r=t._milliseconds,i=qd(t._days),a=qd(t._months);e.isValid()&&(o=o??!0,a&&Iy(e,zi(e,"Month")+a*n),i&&Dy(e,"Date",zi(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&_e.updateOffset(e,i||a))}var uM=Gy(1,"add"),hM=Gy(-1,"subtract");function Xy(e){return typeof e=="string"||e instanceof String}function fM(e){return io(e)||ua(e)||Xy(e)||Xo(e)||mM(e)||pM(e)||e===null||e===void 0}function pM(e){var t=Ir(e)&&!$u(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 mM(e){var t=so(e),n=!1;return t&&(n=e.filter(function(o){return!Xo(o)&&Xy(e)}).length===0),t&&n}function gM(e){var t=Ir(e)&&!$u(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 yM(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 vM(e,t){arguments.length===1&&(arguments[0]?fM(arguments[0])?(e=arguments[0],t=void 0):gM(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),o=nh(n,this).startOf("day"),r=_e.calendarFormat(this,o)||"sameElse",i=t&&(Po(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,Ot(n)))}function bM(){return new ha(this)}function wM(e,t){var n=io(e)?e:Ot(e);return this.isValid()&&n.isValid()?(t=eo(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function CM(e,t){var n=io(e)?e:Ot(e);return this.isValid()&&n.isValid()?(t=eo(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function SM(e,t,n,o){var r=io(e)?e:Ot(e),i=io(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 _M(e,t){var n=io(e)?e:Ot(e),o;return this.isValid()&&n.isValid()?(t=eo(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 xM(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function RM(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function TM(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=nh(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,t=eo(t),t){case"year":i=sl(this,o)/12;break;case"month":i=sl(this,o);break;case"quarter":i=sl(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:Un(i)}function sl(e,t){if(e.date()<t.date())return-sl(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}_e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function kM(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function EM(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?ol(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Po(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ol(n,"Z")):ol(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function PM(){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 DM(e){e||(e=this.isUtc()?_e.defaultFormatUtc:_e.defaultFormat);var t=ol(this,e);return this.localeData().postformat(t)}function OM(e,t){return this.isValid()&&(io(e)&&e.isValid()||Ot(e).isValid())?lo({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function MM(e){return this.from(Ot(),e)}function IM(e,t){return this.isValid()&&(io(e)&&e.isValid()||Ot(e).isValid())?lo({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function NM(e){return this.to(Ot(),e)}function Zy(e){var t;return e===void 0?this._locale._abbr:(t=Qo(e),t!=null&&(this._locale=t),this)}var Qy=Jn("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 Jy(){return this._locale}var Cl=1e3,vs=60*Cl,Sl=60*vs,ev=(365*400+97)*24*Sl;function bs(e,t){return(e%t+t)%t}function tv(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ev:new Date(e,t,n).valueOf()}function nv(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ev:Date.UTC(e,t,n)}function AM(e){var t,n;if(e=eo(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?nv:tv,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-=bs(t+(this._isUTC?0:this.utcOffset()*vs),Sl);break;case"minute":t=this._d.valueOf(),t-=bs(t,vs);break;case"second":t=this._d.valueOf(),t-=bs(t,Cl);break}return this._d.setTime(t),_e.updateOffset(this,!0),this}function FM(e){var t,n;if(e=eo(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?nv:tv,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+=Sl-bs(t+(this._isUTC?0:this.utcOffset()*vs),Sl)-1;break;case"minute":t=this._d.valueOf(),t+=vs-bs(t,vs)-1;break;case"second":t=this._d.valueOf(),t+=Cl-bs(t,Cl)-1;break}return this._d.setTime(t),_e.updateOffset(this,!0),this}function LM(){return this._d.valueOf()-(this._offset||0)*6e4}function $M(){return Math.floor(this.valueOf()/1e3)}function VM(){return new Date(this.valueOf())}function jM(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function BM(){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 WM(){return this.isValid()?this.toISOString():null}function HM(){return Vu(this)}function zM(){return ir({},ze(this))}function YM(){return ze(this).overflow}function UM(){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");Ee("N",oh);Ee("NN",oh);Ee("NNN",oh);Ee("NNNN",oI);Ee("NNNNN",rI);kt(["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});Ee("y",Vs);Ee("yy",Vs);Ee("yyy",Vs);Ee("yyyy",Vs);Ee("yo",sI);kt(["y","yy","yyy","yyyy"],yn);kt(["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 qM(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=_e(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=_e(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf();break}}return i}function GM(e,t,n){var o,r,i=this.eras(),a,l,d;for(e=e.toUpperCase(),o=0,r=i.length;o<r;++o)if(a=i[o].name.toUpperCase(),l=i[o].abbr.toUpperCase(),d=i[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[o];break;case"NNNN":if(a===e)return i[o];break;case"NNNNN":if(d===e)return i[o];break}else if([a,l,d].indexOf(e)>=0)return i[o]}function KM(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_e(e.since).year():_e(e.since).year()+(t-e.offset)*n}function XM(){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 ZM(){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 QM(){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 JM(){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()-_e(r[e].since).year())*n+r[e].offset;return this.year()}function eI(e){return ut(this,"_erasNameRegex")||rh.call(this),e?this._erasNameRegex:this._erasRegex}function tI(e){return ut(this,"_erasAbbrRegex")||rh.call(this),e?this._erasAbbrRegex:this._erasRegex}function nI(e){return ut(this,"_erasNarrowRegex")||rh.call(this),e?this._erasNarrowRegex:this._erasRegex}function oh(e,t){return t.erasAbbrRegex(e)}function oI(e,t){return t.erasNameRegex(e)}function rI(e,t){return t.erasNarrowRegex(e)}function sI(e,t){return t._eraYearOrdinalRegex||Vs}function rh(){var e=[],t=[],n=[],o=[],r,i,a,l,d,u=this.eras();for(r=0,i=u.length;r<i;++r)a=zo(u[r].name),l=zo(u[r].abbr),d=zo(u[r].narrow),t.push(a),e.push(l),n.push(d),o.push(a),o.push(l),o.push(d);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Le(0,["gg",2],0,function(){return this.weekYear()%100});Le(0,["GG",2],0,function(){return this.isoWeekYear()%100});function cc(e,t){Le(0,[e,e.length],0,t)}cc("gggg","weekYear");cc("ggggg","weekYear");cc("GGGG","isoWeekYear");cc("GGGGG","isoWeekYear");Ee("G",rc);Ee("g",rc);Ee("GG",It,$n);Ee("gg",It,$n);Ee("GGGG",Yu,zu);Ee("gggg",Yu,zu);Ee("GGGGG",oc,tc);Ee("ggggg",oc,tc);pa(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=Qe(e)});pa(["gg","GG"],function(e,t,n,o){t[o]=_e.parseTwoDigitYear(e)});function iI(e){return ov.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function aI(e){return ov.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function lI(){return Yo(this.year(),1,4)}function cI(){return Yo(this.isoWeekYear(),1,4)}function dI(){var e=this.localeData()._week;return Yo(this.year(),e.dow,e.doy)}function uI(){var e=this.localeData()._week;return Yo(this.weekYear(),e.dow,e.doy)}function ov(e,t,n,o,r){var i;return e==null?Ui(this,o,r).year:(i=Yo(e,o,r),t>i&&(t=i),hI.call(this,e,t,n,o,r))}function hI(e,t,n,o,r){var i=Fy(e,t,n,o,r),a=Yi(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Le("Q",0,"Qo","quarter");Ee("Q",Ry);kt("Q",function(e,t){t[Bo]=(Qe(e)-1)*3});function fI(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Le("D",["DD",2],"Do","date");Ee("D",It,js);Ee("DD",It,$n);Ee("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});kt(["D","DD"],wo);kt("Do",function(e,t){t[wo]=Qe(e.match(It)[0])});var rv=Bs("Date",!0);Le("DDD",["DDDD",3],"DDDo","dayOfYear");Ee("DDD",nc);Ee("DDDD",Ty);kt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Qe(e)});function pI(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");Ee("m",It,Uu);Ee("mm",It,$n);kt(["m","mm"],ro);var mI=Bs("Minutes",!1);Le("s",["ss",2],0,"second");Ee("s",It,Uu);Ee("ss",It,$n);kt(["s","ss"],Wo);var gI=Bs("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});Ee("S",nc,Ry);Ee("SS",nc,$n);Ee("SSS",nc,Ty);var ar,sv;for(ar="SSSS";ar.length<=9;ar+="S")Ee(ar,Vs);function yI(e,t){t[Dr]=Qe(("0."+e)*1e3)}for(ar="S";ar.length<=9;ar+="S")kt(ar,yI);sv=Bs("Milliseconds",!1);Le("z",0,0,"zoneAbbr");Le("zz",0,0,"zoneName");function vI(){return this._isUTC?"UTC":""}function bI(){return this._isUTC?"Coordinated Universal Time":""}var ye=ha.prototype;ye.add=uM;ye.calendar=vM;ye.clone=bM;ye.diff=TM;ye.endOf=FM;ye.format=DM;ye.from=OM;ye.fromNow=MM;ye.to=IM;ye.toNow=NM;ye.get=PD;ye.invalidAt=YM;ye.isAfter=wM;ye.isBefore=CM;ye.isBetween=SM;ye.isSame=_M;ye.isSameOrAfter=xM;ye.isSameOrBefore=RM;ye.isValid=HM;ye.lang=Qy;ye.locale=Zy;ye.localeData=Jy;ye.max=HO;ye.min=WO;ye.parsingFlags=zM;ye.set=DD;ye.startOf=AM;ye.subtract=hM;ye.toArray=jM;ye.toObject=BM;ye.toDate=VM;ye.toISOString=EM;ye.inspect=PM;typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ye.toJSON=WM;ye.toString=kM;ye.unix=$M;ye.valueOf=LM;ye.creationData=UM;ye.eraName=XM;ye.eraNarrow=ZM;ye.eraAbbr=QM;ye.eraYear=JM;ye.year=Py;ye.isLeapYear=ED;ye.weekYear=iI;ye.isoWeekYear=aI;ye.quarter=ye.quarters=fI;ye.month=Ny;ye.daysInMonth=VD;ye.week=ye.weeks=qD;ye.isoWeek=ye.isoWeeks=GD;ye.weeksInYear=dI;ye.weeksInWeekYear=uI;ye.isoWeeksInYear=lI;ye.isoWeeksInISOWeekYear=cI;ye.date=rv;ye.day=ye.days=aO;ye.weekday=lO;ye.isoWeekday=cO;ye.dayOfYear=pI;ye.hour=ye.hours=gO;ye.minute=ye.minutes=mI;ye.second=ye.seconds=gI;ye.millisecond=ye.milliseconds=sv;ye.utcOffset=QO;ye.utc=eM;ye.local=tM;ye.parseZone=nM;ye.hasAlignedHourOffset=oM;ye.isDST=rM;ye.isLocal=iM;ye.isUtcOffset=aM;ye.isUtc=qy;ye.isUTC=qy;ye.zoneAbbr=vI;ye.zoneName=bI;ye.dates=Jn("dates accessor is deprecated. Use date instead.",rv);ye.months=Jn("months accessor is deprecated. Use month instead",Ny);ye.years=Jn("years accessor is deprecated. Use year instead",Py);ye.zone=Jn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",JO);ye.isDSTShifted=Jn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sM);function wI(e){return Ot(e*1e3)}function CI(){return Ot.apply(null,arguments).parseZone()}function iv(e){return e}var ht=Bu.prototype;ht.calendar=iD;ht.longDateFormat=dD;ht.invalidDate=hD;ht.ordinal=mD;ht.preparse=iv;ht.postformat=iv;ht.relativeTime=yD;ht.pastFuture=vD;ht.set=rD;ht.eras=qM;ht.erasParse=GM;ht.erasConvertYear=KM;ht.erasAbbrRegex=tI;ht.erasNameRegex=eI;ht.erasNarrowRegex=nI;ht.months=AD;ht.monthsShort=FD;ht.monthsParse=$D;ht.monthsRegex=BD;ht.monthsShortRegex=jD;ht.week=HD;ht.firstDayOfYear=UD;ht.firstDayOfWeek=YD;ht.weekdays=nO;ht.weekdaysMin=rO;ht.weekdaysShort=oO;ht.weekdaysParse=iO;ht.weekdaysRegex=dO;ht.weekdaysShortRegex=uO;ht.weekdaysMinRegex=hO;ht.isPM=pO;ht.meridiem=yO;function _l(e,t,n,o){var r=Qo(),i=Eo().set(o,t);return r[n](i,e)}function av(e,t,n){if(Xo(e)&&(t=e,e=void 0),e=e||"",t!=null)return _l(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=_l(e,o,n,"month");return r}function sh(e,t,n,o){typeof e=="boolean"?(Xo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Xo(t)&&(n=t,t=void 0),t=t||"");var r=Qo(),i=e?r._week.dow:0,a,l=[];if(n!=null)return _l(t,(n+i)%7,o,"day");for(a=0;a<7;a++)l[a]=_l(t,(a+i)%7,o,"day");return l}function SI(e,t){return av(e,t,"months")}function _I(e,t){return av(e,t,"monthsShort")}function xI(e,t,n){return sh(e,t,n,"weekdays")}function RI(e,t,n){return sh(e,t,n,"weekdaysShort")}function TI(e,t,n){return sh(e,t,n,"weekdaysMin")}lr("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}});_e.lang=Jn("moment.lang is deprecated. Use moment.locale instead.",lr);_e.langData=Jn("moment.langData is deprecated. Use moment.localeData instead.",Qo);var Lo=Math.abs;function kI(){var e=this._data;return this._milliseconds=Lo(this._milliseconds),this._days=Lo(this._days),this._months=Lo(this._months),e.milliseconds=Lo(e.milliseconds),e.seconds=Lo(e.seconds),e.minutes=Lo(e.minutes),e.hours=Lo(e.hours),e.months=Lo(e.months),e.years=Lo(e.years),this}function lv(e,t,n,o){var r=lo(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function EI(e,t){return lv(this,e,t,1)}function PI(e,t){return lv(this,e,t,-1)}function Gp(e){return e<0?Math.floor(e):Math.ceil(e)}function DI(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,i,a,l,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Gp(Kd(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Un(e/1e3),o.seconds=r%60,i=Un(r/60),o.minutes=i%60,a=Un(i/60),o.hours=a%24,t+=Un(a/24),d=Un(cv(t)),n+=d,t-=Gp(Kd(d)),l=Un(n/12),n%=12,o.days=t,o.months=n,o.years=l,this}function cv(e){return e*4800/146097}function Kd(e){return e*146097/4800}function OI(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=eo(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+cv(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Kd(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 Jo(e){return function(){return this.as(e)}}var dv=Jo("ms"),MI=Jo("s"),II=Jo("m"),NI=Jo("h"),AI=Jo("d"),FI=Jo("w"),LI=Jo("M"),$I=Jo("Q"),VI=Jo("y"),jI=dv;function BI(){return lo(this)}function WI(e){return e=eo(e),this.isValid()?this[e+"s"]():NaN}function jr(e){return function(){return this.isValid()?this._data[e]:NaN}}var HI=jr("milliseconds"),zI=jr("seconds"),YI=jr("minutes"),UI=jr("hours"),qI=jr("days"),GI=jr("months"),KI=jr("years");function XI(){return Un(this.days()/7)}var Vo=Math.round,hs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ZI(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function QI(e,t,n,o){var r=lo(e).abs(),i=Vo(r.as("s")),a=Vo(r.as("m")),l=Vo(r.as("h")),d=Vo(r.as("d")),u=Vo(r.as("M")),f=Vo(r.as("w")),p=Vo(r.as("y")),y=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(y=y||f<=1&&["w"]||f<n.w&&["ww",f]),y=y||u<=1&&["M"]||u<n.M&&["MM",u]||p<=1&&["y"]||["yy",p],y[2]=t,y[3]=+e>0,y[4]=o,ZI.apply(null,y)}function JI(e){return e===void 0?Vo:typeof e=="function"?(Vo=e,!0):!1}function eN(e,t){return hs[e]===void 0?!1:t===void 0?hs[e]:(hs[e]=t,e==="s"&&(hs.ss=t-1),!0)}function tN(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=hs,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},hs,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),r=this.localeData(),i=QI(this,!n,o,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var ld=Math.abs;function ss(e){return(e>0)-(e<0)||+e}function dc(){if(!this.isValid())return this.localeData().invalidDate();var e=ld(this._milliseconds)/1e3,t=ld(this._days),n=ld(this._months),o,r,i,a,l=this.asSeconds(),d,u,f,p;return l?(o=Un(e/60),r=Un(o/60),e%=60,o%=60,i=Un(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",u=ss(this._months)!==ss(l)?"-":"",f=ss(this._days)!==ss(l)?"-":"",p=ss(this._milliseconds)!==ss(l)?"-":"",d+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+a+"S":"")):"P0D"}var rt=lc.prototype;rt.isValid=GO;rt.abs=kI;rt.add=EI;rt.subtract=PI;rt.as=OI;rt.asMilliseconds=dv;rt.asSeconds=MI;rt.asMinutes=II;rt.asHours=NI;rt.asDays=AI;rt.asWeeks=FI;rt.asMonths=LI;rt.asQuarters=$I;rt.asYears=VI;rt.valueOf=jI;rt._bubble=DI;rt.clone=BI;rt.get=WI;rt.milliseconds=HI;rt.seconds=zI;rt.minutes=YI;rt.hours=UI;rt.days=qI;rt.weeks=XI;rt.months=GI;rt.years=KI;rt.humanize=tN;rt.toISOString=dc;rt.toString=dc;rt.toJSON=dc;rt.locale=Zy;rt.localeData=Jy;rt.toIsoString=Jn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",dc);rt.lang=Qy;Le("X",0,0,"unix");Le("x",0,0,"valueOf");Ee("x",rc);Ee("X",SD);kt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});kt("x",function(e,t,n){n._d=new Date(Qe(e))});//! moment.js
|
|
274
|
+
_e.version="2.30.1";nD(Ot);_e.fn=ye;_e.min=zO;_e.max=YO;_e.now=UO;_e.utc=Eo;_e.unix=wI;_e.months=SI;_e.isDate=ua;_e.locale=lr;_e.invalid=ec;_e.duration=lo;_e.isMoment=io;_e.weekdays=xI;_e.parseZone=CI;_e.localeData=Qo;_e.isDuration=rl;_e.monthsShort=_I;_e.weekdaysMin=TI;_e.defineLocale=Zu;_e.updateLocale=CO;_e.locales=SO;_e.weekdaysShort=RI;_e.normalizeUnits=eo;_e.relativeTimeRounding=JI;_e.relativeTimeThreshold=eN;_e.calendarFormat=yM;_e.prototype=ye;_e.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 nN=Object.freeze(Object.defineProperty({__proto__:null,default:_e},Symbol.toStringTag,{value:"Module"})),oN=[_e.ISO_8601,Lr.ui,Lr.db],Xd="Invalid date";le(Ig)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});let uv=class{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args={};const t=this.grid.getData();t.setFilterArgs(this.args),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class rN extends uv{getFilterFn(){return t=>!t?.isDeleted}}class sN{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 fs(e){return new Date(e).getTime()}class hv{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 iN(e){return{tooltip:"Apply column filter",command:e}}class ih{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 aN extends ih{constructor(){super(...arguments),this.columnId="",this.group=sn.Text,this.target=null,this.x=0,this.y=0}}const wn=new aN;class lN{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 ur=new lN;function fv(e){return ur.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 cN=Object.defineProperty,dN=(e,t,n)=>t in e?cN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>dN(e,typeof t!="symbol"?t+"":t,n),Gi=class{constructor(e,t){this.event=e,this.args=t,E(this,"_isPropagationStopped",!1),E(this,"_isImmediatePropagationStopped",!1),E(this,"_isDefaultPrevented",!1),E(this,"returnValues",[]),E(this,"returnValue"),E(this,"_eventTarget"),E(this,"nativeEvent"),E(this,"arguments_"),E(this,"altKey"),E(this,"ctrlKey"),E(this,"metaKey"),E(this,"shiftKey"),E(this,"key"),E(this,"keyCode"),E(this,"clientX"),E(this,"clientY"),E(this,"offsetX"),E(this,"offsetY"),E(this,"pageX"),E(this,"pageY"),E(this,"bubbles"),E(this,"target"),E(this,"type"),E(this,"which"),E(this,"x"),E(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_}},Br=class{constructor(e,t){this.eventName=e,this.pubSub=t,E(this,"_handlers",[]),E(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 Gi?t:new Gi(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}},ma=class{constructor(){E(this,"handlers",[])}subscribe(e,t){return this.handlers.push({event:e,handler:t}),e.subscribe(t),this}unsubscribe(e,t){let n=this.handlers.length;for(;n--;)if(this.handlers[n].event===e&&this.handlers[n].handler===t){this.handlers.splice(n,1),e.unsubscribe(t);return}return this}unsubscribeAll(){let e=this.handlers.length;for(;e--;)this.handlers[e].event.unsubscribe(this.handlers[e].handler);return this.handlers=[],this}},ah=class{constructor(e,t,n,o){E(this,"fromRow"),E(this,"fromCell"),E(this,"toCell"),E(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})`}},pv=class{constructor(){E(this,"__nonDataRow",!0)}},mv=class extends pv{constructor(){super(),E(this,"__group",!0),E(this,"level",0),E(this,"count",0),E(this,"value",null),E(this,"title",null),E(this,"collapsed",!1),E(this,"selectChecked",!1),E(this,"totals",null),E(this,"rows",[]),E(this,"groups",null),E(this,"groupingKey",null)}equals(e){return this.value===e.value&&this.count===e.count&&this.collapsed===e.collapsed&&this.title===e.title}},uN=class extends pv{constructor(){super(),E(this,"__groupTotals",!0),E(this,"group",null),E(this,"initialized",!1)}},hN=class{constructor(){E(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}},uc=class{constructor(){E(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)}}},Hn=class jt{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||jt.toString.call(t)!=="[object Object]")return!1;let n=jt.getProto(t);if(!n)return!0;let o=jt.hasOwn.call(n,"constructor")&&n.constructor;return typeof o=="function"&&jt.fnToString.call(o)===jt.ObjectFunctionString}static calculateAvailableSpace(t){let n=0,o=0,r=0,i=0,a=window.innerHeight||0,l=window.innerWidth||0,d=jt.windowScrollPosition(),u=d.top,f=d.left,p=jt.offset(t);if(p){let y=p.top||0,b=p.left||0;o=y-u,n=a-(y-u),r=b-f,i=l-(b-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,l,d=t[0],u=1,f=!1,p=t.length;for(typeof d=="boolean"?(f=d,d=t[u]||{},u++):d=d||{},typeof d!="object"&&!jt.isFunction(d)&&(d={}),u===p&&(d=this,u--);u<p;u++)if(jt.isDefined(n=t[u]))for(o in n)i=n[o],!(o==="__proto__"||d===i)&&(f&&i&&(jt.isPlainObject(i)||(a=Array.isArray(i)))?(r=d[o],a&&!Array.isArray(r)?l=[]:!a&&!jt.isPlainObject(r)?l={}:l=r,a=!1,d[o]=jt.extend(f,l,i)):i!==void 0&&(d[o]=i));return d}static createDomElement(t,n,o){let r=document.createElement(t);return n&&Object.keys(n).forEach(i=>{i==="innerHTML"&&console.warn(`[SlickGrid] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${t}', { innerHTML: 'some html'})", it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);let a=n[i];typeof a=="object"?Object.assign(r[i],a):r[i]=n[i]}),o?.appendChild&&o.appendChild(r),r}static getHtmlStringOutput(t,n="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,o=>o[n]).join("")||t.textContent||"":t instanceof HTMLElement?t[n]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(n=>n)}static innerSize(t,n){let o=0;if(t){let r=n==="height"?"clientHeight":"clientWidth",i=n==="height"?["top","bottom"]:["left","right"];o=t[r];for(let a of i){let l=parseFloat(jt.getElementProp(t,`padding-${a}`)||"")||0;o-=l}}return o}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,n){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(n):null}static getFunctionDetails(t,n=!0){let o=!1,r=i=>{let a=i.toString();if(o=a.includes("async "),a.replaceAll(" ","").includes("=>({")){let u=a.match(/(({.*}))/g)||[];return u.length>=1?`return ${u[0].trimStart()}`:a}let l=!a.includes("{")&&a.includes("=>"),d=a.substring(a.indexOf("{")+1||a.indexOf("=>")+2,a.includes("}")?a.lastIndexOf("}"):a.length);return n&&l&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(i=>{let a=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,l=/([^\s,]+)/g,d=i.toString().replace(a,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(l)??[]})(t),body:r(t),isAsync:o}}static insertAfterElement(t,n){t.parentNode?.insertBefore(n,t.nextSibling)}static isEmptyObject(t){return t==null?!0:Object.entries(t).length===0}static noop(){}static offset(t){if(!t||!t.getBoundingClientRect)return;let n=t.getBoundingClientRect(),o=document.documentElement;return{top:n.top+window.pageYOffset-o.clientTop,left:n.left+window.pageXOffset-o.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,n){if(!(!t||!t.getBoundingClientRect)){if(n===void 0)return t.getBoundingClientRect().width;jt.setStyleSize(t,"width",n)}}static height(t,n){if(t){if(n===void 0)return t.getBoundingClientRect().height;jt.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:!jt.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?jt.isHidden(t)&&o.push(t):r?jt.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 jt.slideAnimation(t,"slideUp",n)}static slideDown(t,n){return jt.slideAnimation(t,"slideDown",n)}static slideAnimation(t,n,o){if(window.jQuery!==void 0){window.jQuery(t)[n]("fast",o);return}n==="slideUp"?jt.hide(t):jt.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 Br&&typeof n[o].setPubSubService=="function"&&n[o].setPubSubService(t)}};E(Hn,"getProto",Object.getPrototypeOf),E(Hn,"class2type",{}),E(Hn,"toString",Hn.class2type.toString),E(Hn,"hasOwn",Hn.class2type.hasOwnProperty),E(Hn,"fnToString",Hn.hasOwn.toString),E(Hn,"ObjectFunctionString",Hn.fnToString.call(Object)),E(Hn,"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 co=Hn,gv=new hN,fN={Event:Br,EventHandler:ma,GlobalEditorLock:gv,keyCode:{SPACE:8,DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38},preClickClassName:"slick-edit-preclick",GridAutosizeColsMode:{None:"NOA",LegacyOff:"LOF",LegacyForceFit:"LFF",IgnoreViewport:"IGV",FitColsToViewport:"FCV",FitViewportToCols:"FVC"},ColAutosizeMode:{Locked:"LCK",Guide:"GUI",ContentExpandOnly:"CXO",ContentIntelligent:"CTI"},RowSelectionMode:{FirstRow:"FS1",FirstNRows:"FSN",AllRows:"ALL",LastRow:"LS1"},ValueFilterMode:{None:"NONE",DeDuplicate:"DEDP",GetGreatestAndSub:"GR8T",GetLongestTextAndSub:"LNSB",GetLongestText:"LNSC"},WidthEvalMode:{Auto:"AUTO",TextOnly:"CANV"}},{Event:pN,EventHandler:mN,GlobalEditorLock:gN,keyCode:Nr,preClickClassName:yN,GridAutosizeColsMode:yv,ColAutosizeMode:vN,RowSelectionMode:bN,ValueFilterMode:wN,WidthEvalMode:CN}=fN,SN=co,vv=class{constructor(e,t){this.grid=e,E(this,"pluginName","CellRangeDecorator"),E(this,"_options"),E(this,"_elem"),E(this,"_defaults",{selectionCssClass:"slick-range-decorator",selectionCss:{zIndex:"9999",border:"2px dashed red"},offset:{top:-1,left:-1,height:-2,width:-2}}),this._options=SN.extend(!0,{},this._defaults,t)}destroy(){this.hide()}init(){}hide(){this._elem?.remove(),this._elem=null}show(e){if(!this._elem){this._elem=document.createElement("div"),this._elem.className=this._options.selectionCssClass,Object.keys(this._options.selectionCss).forEach(r=>{this._elem.style[r]=this._options.selectionCss[r]}),this._elem.style.position="absolute";let o=this.grid.getActiveCanvasNode();o&&o.appendChild(this._elem)}let t=this.grid.getCellNodeBox(e.fromRow,e.fromCell),n=this.grid.getCellNodeBox(e.toRow,e.toCell);return t&&n&&this._options?.offset&&(this._elem.style.top=`${t.top+this._options.offset.top}px`,this._elem.style.left=`${t.left+this._options.offset.left}px`,this._elem.style.height=`${n.bottom-t.top+this._options.offset.height}px`,this._elem.style.width=`${n.right-t.left+this._options.offset.width}px`),this._elem}},_N=co;function lh(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,l,d,u,f,p,y;t||(t=document.body);let b={dragSource:t,dragHandle:null};function w(){t&&(t.addEventListener("mousedown",P),t.addEventListener("touchstart",P))}function g(C,O,A){if(typeof C=="function")return C(O,A)}function v(){t&&(t.removeEventListener("mousedown",P),t.removeEventListener("touchstart",P))}function T(C){let O=!1;return a&&a.forEach(A=>{C[A]&&(O=!0)}),O}function P(C){if(!T(C)){l=C.target;let O=C?.touches?.[0]??C,{target:A}=O;if(!e.allowDragFrom||e.allowDragFrom&&l.matches(e.allowDragFrom)||e.allowDragFromClosest&&l.closest(e.allowDragFromClosest)){b.dragHandle=l;let F=_N.windowScrollPosition();d=F.left+O.clientX,u=F.top+O.clientY,f=O.clientX-O.clientX,p=O.clientY-O.clientY,b=Object.assign(b,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(n,C,b)!==!1&&(document.body.addEventListener("mousemove",x),document.body.addEventListener("touchmove",x),document.body.addEventListener("mouseup",S),document.body.addEventListener("touchend",S),document.body.addEventListener("touchcancel",S))}}}function x(C){if(!T(C)){let O=C?.touches?.[0]??C;f=O.clientX-d,p=O.clientY-u;let{target:A}=O;y||(b=Object.assign(b,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(o,C,b),y=!0),b=Object.assign(b,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(r,C,b)}}function S(C){if(document.body.removeEventListener("mousemove",x),document.body.removeEventListener("touchmove",x),document.body.removeEventListener("mouseup",S),document.body.removeEventListener("touchend",S),document.body.removeEventListener("touchcancel",S),y){let{target:O}=C;b=Object.assign(b,{target:O}),g(i,C,b),y=!1}}return w(),{destroy:v}}function xN(e){let{element:t,onMouseWheel:n}=e;function o(){t.removeEventListener("wheel",i),t.removeEventListener("mousewheel",i)}function r(){t.addEventListener("wheel",i),t.addEventListener("mousewheel",i)}function i(a){let l=a||window.event,d=0,u=0,f=0;l.wheelDelta&&(d=l.wheelDelta/120),l.detail&&(d=-l.detail/3),f=d,l.axis!==void 0&&l.axis===l.HORIZONTAL_AXIS&&(f=0,u=-1*d),l.wheelDeltaY!==void 0&&(f=l.wheelDeltaY/120),l.wheelDeltaX!==void 0&&(u=-1*l.wheelDeltaX/120),typeof n=="function"&&n(a,d,u,f)}return r(),{destroy:o}}function RN(e){let{resizeableElement:t,resizeableHandleElement:n,onResizeStart:o,onResize:r,onResizeEnd:i}=e;if(!n||typeof n.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function a(){n.addEventListener("mousedown",u),n.addEventListener("touchstart",u)}function l(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",u),n.removeEventListener("touchstart",u))}function d(y,b){if(typeof y=="function")return y(b,{resizeableElement:t,resizeableHandleElement:n})}function u(y){y.preventDefault();let b=y.touches?y.changedTouches[0]:y;d(o,b)!==!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 b=y.touches?y.changedTouches[0]:y;typeof r=="function"&&r(b,{resizeableElement:t,resizeableHandleElement:n})}function p(y){let b=y.touches?y.changedTouches[0]:y;d(i,b),document.body.removeEventListener("mousemove",f),document.body.removeEventListener("mouseup",p),document.body.removeEventListener("touchmove",f),document.body.removeEventListener("touchend",p)}return a(),{destroy:l}}var cd=Br,TN=ma,dd=ah,kN=lh,EN=vv,si=co,PN=class{constructor(e){E(this,"pluginName","CellRangeSelector"),E(this,"onBeforeCellRangeSelected",new cd("onBeforeCellRangeSelected")),E(this,"onCellRangeSelected",new cd("onCellRangeSelected")),E(this,"onCellRangeSelecting",new cd("onCellRangeSelecting")),E(this,"_grid"),E(this,"_currentlySelectedRange",null),E(this,"_canvas",null),E(this,"_decorator"),E(this,"_gridOptions"),E(this,"_activeCanvas"),E(this,"_dragging",!1),E(this,"_handler",new TN),E(this,"_options"),E(this,"_defaults",{autoScroll:!0,minIntervalToShowNextCell:30,maxIntervalToShowNextCell:600,accelerateInterval:5,selectionCss:{border:"2px dashed blue"}}),E(this,"_rowOffset",0),E(this,"_columnOffset",0),E(this,"_isRightCanvas",!1),E(this,"_isBottomCanvas",!1),E(this,"_activeViewport"),E(this,"_autoScrollTimerId"),E(this,"_draggingMouseOffset"),E(this,"_moveDistanceForOneCell"),E(this,"_xDelayForNextCell",0),E(this,"_yDelayForNextCell",0),E(this,"_viewportHeight",0),E(this,"_viewportWidth",0),E(this,"_isRowMoveRegistered",!1),E(this,"_scrollLeft",0),E(this,"_scrollTop",0),this._options=si.extend(!0,{},this._defaults,e)}init(e){if(kN===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');this._decorator=this._options.cellDecorator||new EN(e,this._options),this._grid=e,si.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._canvas=this._grid.getCanvasNode(),this._gridOptions=this._grid.getOptions(),this._handler.subscribe(this._grid.onScroll,this.handleScroll.bind(this)).subscribe(this._grid.onDragInit,this.handleDragInit.bind(this)).subscribe(this._grid.onDragStart,this.handleDragStart.bind(this)).subscribe(this._grid.onDrag,this.handleDrag.bind(this)).subscribe(this._grid.onDragEnd,this.handleDragEnd.bind(this))}destroy(){this._handler.unsubscribeAll(),this._activeCanvas=null,this._activeViewport=null,this._canvas=null,this._decorator?.destroy()}getCellDecorator(){return this._decorator}handleScroll(e,t){this._scrollTop=t.scrollTop,this._scrollLeft=t.scrollLeft}handleDragInit(e){this._activeCanvas=this._grid.getActiveCanvasNode(e),this._activeViewport=this._grid.getActiveViewportNode(e);let t=this._grid.getDisplayedScrollbarDimensions();if(this._viewportWidth=this._activeViewport.offsetWidth-t.width,this._viewportHeight=this._activeViewport.offsetHeight-t.height,this._moveDistanceForOneCell={x:this._grid.getAbsoluteColumnMinWidth()/2,y:this._grid.getOptions().rowHeight/2},this._isRowMoveRegistered=this.hasRowMoveManager(),this._rowOffset=0,this._columnOffset=0,this._isBottomCanvas=this._activeCanvas.classList.contains("grid-canvas-bottom"),this._gridOptions.frozenRow>-1&&this._isBottomCanvas){let n=`.${this._grid.getUID()} .grid-canvas-${this._gridOptions.frozenBottom?"bottom":"top"}`,o=document.querySelector(n);o&&(this._rowOffset=o.clientHeight||0)}if(this._isRightCanvas=this._activeCanvas.classList.contains("grid-canvas-right"),this._gridOptions.frozenColumn>-1&&this._isRightCanvas){let n=document.querySelector(`.${this._grid.getUID()} .grid-canvas-left`);n&&(this._columnOffset=n.clientWidth||0)}e.stopImmediatePropagation(),e.preventDefault()}handleDragStart(e,t){let n=this._grid.getCellFromEvent(e);if(n&&this.onBeforeCellRangeSelected.notify(n).getReturnValue()!==!1&&this._grid.canCellBeSelected(n.row,n.cell)&&(this._dragging=!0,e.stopImmediatePropagation()),!this._dragging)return;this._grid.focus();let o=si.offset(this._canvas),r=t.startX-(o?.left??0);this._gridOptions.frozenColumn>=0&&this._isRightCanvas&&(r+=this._scrollLeft);let i=t.startY-(o?.top??0);this._gridOptions.frozenRow>=0&&this._isBottomCanvas&&(i+=this._scrollTop);let a=this._grid.getCellFromPoint(r,i);return t.range={start:a,end:{}},this._currentlySelectedRange=t.range,this._decorator.show(new dd(a.row,a.cell))}handleDrag(e,t){if(!this._dragging&&!this._isRowMoveRegistered)return;this._isRowMoveRegistered||e.stopImmediatePropagation();let n=e.getNativeEvent();if(this._options.autoScroll&&(this._draggingMouseOffset=this.getMouseOffsetViewport(n,t),this._draggingMouseOffset.isOutsideViewport))return this.handleDragOutsideViewport();this.stopIntervalTimer(),this.handleDragTo(n,t)}getMouseOffsetViewport(e,t){let n=e?.touches?.[0]??e,o=this._activeViewport.scrollLeft,r=this._activeViewport.scrollTop,i=o+this._viewportWidth,a=r+this._viewportHeight,l=si.offset(this._activeViewport),d=l?.left??0,u=l?.top??0,f=d+this._viewportWidth,p=u+this._viewportHeight,y={e,dd:t,viewport:{left:o,top:r,right:i,bottom:a,offset:{left:d,top:u,right:f,bottom:p}},offset:{x:0,y:0},isOutsideViewport:!1};return n.pageX<d?y.offset.x=n.pageX-d:n.pageX>f&&(y.offset.x=n.pageX-f),n.pageY<u?y.offset.y=u-n.pageY:n.pageY>p&&(y.offset.y=p-n.pageY),y.isOutsideViewport=!!y.offset.x||!!y.offset.y,y}handleDragOutsideViewport(){if(this._xDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.x)*this._options.accelerateInterval,this._yDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.y)*this._options.accelerateInterval,!this._autoScrollTimerId){let e=0,t=0;this._autoScrollTimerId=window.setInterval(()=>{let n=!1,o=!1;this._draggingMouseOffset.offset.x?(e+=this._options.minIntervalToShowNextCell,n=e>=this._xDelayForNextCell):e=0,this._draggingMouseOffset.offset.y?(t+=this._options.minIntervalToShowNextCell,o=t>=this._yDelayForNextCell):t=0,(n||o)&&(n&&(e=0),o&&(t=0),this.handleDragToNewPosition(n,o))},this._options.minIntervalToShowNextCell)}}handleDragToNewPosition(e,t){let n=this._draggingMouseOffset.e.pageX,o=this._draggingMouseOffset.e.pageY,r=this._draggingMouseOffset.offset.x,i=this._draggingMouseOffset.offset.y,a=this._draggingMouseOffset.viewport.offset;e&&r&&(r>0?n=a.right+this._moveDistanceForOneCell.x:n=a.left-this._moveDistanceForOneCell.x),t&&i&&(i>0?o=a.top-this._moveDistanceForOneCell.y:o=a.bottom+this._moveDistanceForOneCell.y),this.handleDragTo({pageX:n,pageY:o},this._draggingMouseOffset.dd)}stopIntervalTimer(){this._autoScrollTimerId&&(window.clearInterval(this._autoScrollTimerId),this._autoScrollTimerId=void 0)}handleDragTo(e,t){let n=e?.touches?.[0]??e,o=si.offset(this._activeCanvas),r=this._grid.getCellFromPoint(n.pageX-(o?.left??0)+this._columnOffset,n.pageY-(o?.top??0)+this._rowOffset);if(!(this._gridOptions.frozenColumn>=0&&!this._isRightCanvas&&r.cell>this._gridOptions.frozenColumn||this._isRightCanvas&&r.cell<=this._gridOptions.frozenColumn)&&!(this._gridOptions.frozenRow>=0&&!this._isBottomCanvas&&r.row>=this._gridOptions.frozenRow||this._isBottomCanvas&&r.row<this._gridOptions.frozenRow)){if(this._options.autoScroll&&this._draggingMouseOffset){let i=this._grid.getCellNodeBox(r.row,r.cell);if(!i)return;let a=this._draggingMouseOffset.viewport;(i.left<a.left||i.right>a.right||i.top<a.top||i.bottom>a.bottom)&&this._grid.scrollCellIntoView(r.row,r.cell)}if(this._grid.canCellBeSelected(r.row,r.cell)&&t?.range){t.range.end=r;let i=new dd(t.range.start.row??0,t.range.start.cell??0,r.row,r.cell);this._decorator.show(i),this.onCellRangeSelecting.notify({range:i})}}}hasRowMoveManager(){return!!(this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager"))}handleDragEnd(e,t){this._decorator.hide(),this._dragging&&(this._dragging=!1,e.stopImmediatePropagation(),this.stopIntervalTimer(),this.onCellRangeSelected.notify({range:new dd(t.range.start.row??0,t.range.start.cell??0,t.range.end.row,t.range.end.cell)}))}getCurrentRange(){return this._currentlySelectedRange}},DN=uc,ON=ma,rr=co,MN=class{constructor(e){E(this,"pluginName","CheckboxSelectColumn"),E(this,"_dataView"),E(this,"_grid"),E(this,"_isUsingDataView",!1),E(this,"_selectableOverride",null),E(this,"_headerRowNode"),E(this,"_selectAll_UID"),E(this,"_handler",new ON),E(this,"_selectedRowsLookup",{}),E(this,"_checkboxColumnCellIndex",null),E(this,"_options"),E(this,"_defaults",{columnId:"_checkbox_selector",cssClass:void 0,hideSelectAllCheckbox:!1,name:"",toolTip:"Select/Deselect All",width:30,reorderable:!1,applySelectOnAllPages:!1,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0}),E(this,"_isSelectAllChecked",!1),E(this,"_bindingEventService"),this._bindingEventService=new DN,this._options=rr.extend(!0,{},this._defaults,e),this._selectAll_UID=this.createUID(),typeof this._options.selectableOverride=="function"&&this.selectableOverride(this._options.selectableOverride)}init(e){this._grid=e,this._isUsingDataView=!Array.isArray(e.getData()),this._isUsingDataView&&(this._dataView=e.getData()),this._handler.subscribe(this._grid.onSelectedRowsChanged,this.handleSelectedRowsChanged.bind(this)).subscribe(this._grid.onClick,this.handleClick.bind(this)).subscribe(this._grid.onKeyDown,this.handleKeyDown.bind(this)).subscribe(this._grid.onAfterSetColumns,()=>this.renderSelectAllCheckbox(this._isSelectAllChecked)),this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages&&this._handler.subscribe(this._dataView.onSelectedRowIdsChanged,this.handleDataViewSelectedIdsChanged.bind(this)).subscribe(this._dataView.onPagingInfoChanged,this.handleDataViewSelectedIdsChanged.bind(this)),this._options.hideInFilterHeaderRow||this.addCheckboxToFilterHeaderRow(e),this._options.hideInColumnTitleRow||this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}getOptions(){return this._options}setOptions(e){if(this._options=rr.extend(!0,{},this._options,e),this._options.hideSelectAllCheckbox)this.hideSelectAllFromColumnHeaderTitleRow(),this.hideSelectAllFromColumnHeaderFilterRow();else if(this._options.hideInColumnTitleRow?(this.hideSelectAllFromColumnHeaderTitleRow(),this._options.name&&this._grid.updateColumnHeader(this._options.columnId||"",this._options.name,"")):(this.renderSelectAllCheckbox(this._isSelectAllChecked),this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))),this._options.hideInFilterHeaderRow)this.hideSelectAllFromColumnHeaderFilterRow();else{let t=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");if(t){t.style.display="flex";let n=t.querySelector('input[type="checkbox"]');n&&(n.checked=this._isSelectAllChecked)}}}hideSelectAllFromColumnHeaderTitleRow(){this._grid.updateColumnHeader(this._options.columnId||"",this._options.name||"","")}hideSelectAllFromColumnHeaderFilterRow(){let e=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");e&&(e.style.display="none")}handleSelectedRowsChanged(){let e=this._grid.getSelectedRows(),t={},n=0,o=0,r=0,i=0;if(typeof this._selectableOverride=="function")for(r=0;r<this._grid.getDataLength();r++){let l=this._grid.getDataItem(r);this.checkSelectableOverride(o,l,this._grid)||i++}let a=[];for(o=0;o<e.length;o++){n=e[o];let l=this._grid.getDataItem(n);this.checkSelectableOverride(o,l,this._grid)?(t[n]=!0,t[n]!==this._selectedRowsLookup[n]&&(this._grid.invalidateRow(n),delete this._selectedRowsLookup[n])):a.push(n)}if(typeof this._selectedRowsLookup=="object"&&Object.keys(this._selectedRowsLookup).forEach(l=>{l!==void 0&&this._grid.invalidateRow(+l)}),this._selectedRowsLookup=t,this._grid.render(),this._isSelectAllChecked=(e?.length??0)+i>=this._grid.getDataLength(),(!this._isUsingDataView||!this._options.applySelectOnAllPages)&&(!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow)){let l=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);l&&(l.checked=this._isSelectAllChecked)}if(a.length>0){for(o=0;o<a.length;o++){let l=e.indexOf(a[o]);e.splice(l,1)}this._grid.setSelectedRows(e,"click.cleanup")}}handleDataViewSelectedIdsChanged(){let e=this._dataView.getAllSelectedFilteredIds(),t=this._dataView.getFilteredItems(),n=0;if(typeof this._selectableOverride=="function"&&e.length>0)for(let o=0;o<this._dataView.getItemCount();o++){let r=this._dataView.getItemByIdx(o),i=this._dataView.getIdPropertyName(),a=r[i];t.findIndex(function(l){return l[i]===a})>=0&&!this.checkSelectableOverride(o,r,this._grid)&&n++}if(this._isSelectAllChecked=(e&&e.length)+n>=t.length,!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow){let o=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);o&&(o.checked=this._isSelectAllChecked)}}handleKeyDown(e,t){e.which===32&&this._grid.getColumns()[t.cell].id===this._options.columnId&&((!this._grid.getEditorLock().isActive()||this._grid.getEditorLock().commitCurrentEdit())&&this.toggleRowSelection(t.row),e.preventDefault(),e.stopImmediatePropagation())}handleClick(e,t){if(this._grid.getColumns()[t.cell].id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}this.toggleRowSelection(t.row),e.stopPropagation(),e.stopImmediatePropagation()}}toggleRowSelection(e){let t=this._grid.getDataItem(e);if(this.checkSelectableOverride(e,t,this._grid)){if(this._selectedRowsLookup[e]){let n=this._grid.getSelectedRows().filter(o=>o!==e);this._grid.setSelectedRows(n,"click.toggle")}else this._grid.setSelectedRows(this._grid.getSelectedRows().concat(e),"click.toggle");this._grid.setActiveCell(e,this.getCheckboxColumnCellIndex())}}selectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]||(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().concat(t),"SlickCheckboxSelectColumn.selectRows")}deSelectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]&&(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().filter(n=>t.indexOf(n)<0),"SlickCheckboxSelectColumn.deSelectRows")}handleHeaderClick(e,t){if(t.column.id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}let n=e.target.checked,o=n?"click.selectAll":"click.unselectAll",r=[];if(n){for(let i=0;i<this._grid.getDataLength();i++){let a=this._grid.getDataItem(i);!a.__group&&!a.__groupTotals&&this.checkSelectableOverride(i,a,this._grid)&&r.push(i)}n=!0}if(this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages){let i=[],a=this._dataView.getFilteredItems();for(let l=0;l<a.length;l++){let d=a[l];this.checkSelectableOverride(l,d,this._grid)&&i.push(d[this._dataView.getIdPropertyName()])}this._dataView.setSelectedIds(i,{isRowBeingAdded:n})}this._grid.setSelectedRows(r,o),e.stopPropagation(),e.stopImmediatePropagation()}}getCheckboxColumnCellIndex(){if(this._checkboxColumnCellIndex===null){this._checkboxColumnCellIndex=0;let e=this._grid.getColumns();for(let t=0;t<e.length;t++)e[t].id===this._options.columnId&&(this._checkboxColumnCellIndex=t)}return this._checkboxColumnCellIndex}createCheckboxElement(e,t=!1){let n=new DocumentFragment;return n.appendChild(rr.createDomElement("input",{id:e,type:"checkbox",checked:t,ariaChecked:String(t)})),n.appendChild(rr.createDomElement("label",{htmlFor:e})),n}getColumnDefinition(){return{id:this._options.columnId,reorderable:this._options.reorderable,name:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?this._options.name||"":this.createCheckboxElement(`header-selector${this._selectAll_UID}`),toolTip:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?"":this._options.toolTip,field:"sel",width:this._options.width,resizable:!1,sortable:!1,cssClass:this._options.cssClass,hideSelectAllCheckbox:this._options.hideSelectAllCheckbox,formatter:this.checkboxSelectionFormatter.bind(this),excludeFromColumnPicker:this._options.excludeFromColumnPicker??!0,excludeFromGridMenu:this._options.excludeFromGridMenu??!0,excludeFromHeaderMenu:this._options.excludeFromHeaderMenu??!0}}addCheckboxToFilterHeaderRow(e){this._handler.subscribe(e.onHeaderRowCellRendered,(t,n)=>{if(n.column.field==="sel"){rr.emptyElement(n.node);let o=rr.createDomElement("span",{id:"filter-checkbox-selectall-container",ariaChecked:"false"});o.appendChild(rr.createDomElement("input",{type:"checkbox",id:`header-filter-selector${this._selectAll_UID}`})),o.appendChild(rr.createDomElement("label",{htmlFor:`header-filter-selector${this._selectAll_UID}`})),n.node.appendChild(o),this._headerRowNode=n.node,this._bindingEventService.bind(o,"click",r=>this.handleHeaderClick(r,n))}})}createUID(){return Math.round(1e7*Math.random())}checkboxSelectionFormatter(e,t,n,o,r,i){if(r&&this.checkSelectableOverride(e,r,i)){let a=this.createUID()+e;return this.createCheckboxElement(`selector${a}`,!!this._selectedRowsLookup[e])}return null}checkSelectableOverride(e,t,n){return typeof this._selectableOverride=="function"?this._selectableOverride(e,t,n):!0}renderSelectAllCheckbox(e){this._grid.updateColumnHeader(this._options.columnId||"",this.createCheckboxElement(`header-selector${this._selectAll_UID}`,!!e),this._options.toolTip)}selectableOverride(e){this._selectableOverride=e}},IN=uc,NN=Br,AN=mN,ud=co,FN=class{constructor(e){E(this,"pluginName","HeaderButtons"),E(this,"onCommand",new NN("onCommand")),E(this,"_grid"),E(this,"_handler",new AN),E(this,"_bindingEventService",new IN),E(this,"_defaults",{buttonCssClass:"slick-header-button"}),E(this,"_options"),this._options=ud.extend(!0,{},this._defaults,e)}init(e){this._grid=e,ud.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns())}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}handleHeaderCellRendered(e,t){let n=t.column;if(n.header?.buttons){let o=n.header.buttons.length;for(;o--;){let r=n.header.buttons[o],i=this.runOverrideFunctionWhenExists(r.itemVisibilityOverride,t),a=this.runOverrideFunctionWhenExists(r.itemUsabilityOverride,t);if(!i)continue;Object.prototype.hasOwnProperty.call(r,"itemUsabilityOverride")&&(r.disabled=!a);let l=document.createElement("div");l.className=this._options.buttonCssClass||"",l.ariaLabel="Header Button",l.role="button",r.disabled&&l.classList.add("slick-header-button-disabled"),r.showOnHover&&l.classList.add("slick-header-button-hidden"),r.image&&(l.style.backgroundImage=`url(${r.image})`),r.cssClass&&l.classList.add(...ud.classNameToList(r.cssClass)),r.tooltip&&(l.title=r.tooltip),r.handler&&!r.disabled&&this._bindingEventService.bind(l,"click",r.handler),this._bindingEventService.bind(l,"click",this.handleButtonClick.bind(this,r,t.column)),t.node.appendChild(l)}}}handleBeforeHeaderCellDestroy(e,t){if(t.column.header?.buttons){let n=(this._options.buttonCssClass||"").replace(/(\s+)/g,".");n&&t.node.querySelectorAll(`.${n}`).forEach(o=>o.remove())}}handleButtonClick(e,t,n){let o=e.command||"",r={grid:this._grid,column:t,button:e};o&&(r.command=o),typeof e.action=="function"&&e.action.call(this,n,r),o&&!e.disabled&&(this.onCommand.notify(r,n,this),this._grid.updateColumnHeader(t.id)),n.preventDefault(),n.stopPropagation()}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},LN=uc,hd=pN,$N=ma,In=co,VN=class{constructor(e){E(this,"pluginName","HeaderMenu"),E(this,"onAfterMenuShow",new hd("onAfterMenuShow")),E(this,"onBeforeMenuShow",new hd("onBeforeMenuShow")),E(this,"onCommand",new hd("onCommand")),E(this,"_grid"),E(this,"_gridUid",""),E(this,"_handler",new $N),E(this,"_bindingEventService",new LN),E(this,"_defaults",{buttonCssClass:void 0,buttonImage:void 0,minWidth:100,autoAlign:!0,autoAlignOffset:0,subMenuOpenByEvent:"mouseover"}),E(this,"_options"),E(this,"_activeHeaderColumnElm"),E(this,"_menuElm"),E(this,"_subMenuParentId",""),this._options=In.extend(!0,{},e,this._defaults)}init(e){this._grid=e,this._gridUid=e?.getUID()||"",In.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns()),this._bindingEventService.bind(document.body,"click",this.handleBodyMouseDown.bind(this))}setOptions(e){this._options=In.extend(!0,{},this._options,e)}getGridUidSelector(){let e=this._grid.getUID()||"";return e?`.${e}`:""}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll(),this._menuElm=this._menuElm||document.body.querySelector(`.slick-header-menu${this.getGridUidSelector()}`),this._menuElm?.remove(),this._activeHeaderColumnElm=void 0}destroyAllMenus(){this.destroySubMenus(),this._bindingEventService.unbindAll("parent-menu"),document.querySelectorAll(`.slick-header-menu${this.getGridUidSelector()}`).forEach(e=>e.remove())}destroySubMenus(){this._bindingEventService.unbindAll("sub-menu"),document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(e=>e.remove())}handleBodyMouseDown(e){let t=!1;this._menuElm?.contains(e.target)&&(t=!0),t||document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(n=>{n.contains(e.target)&&(t=!0)}),(this._menuElm!==e.target&&!t&&!e.defaultPrevented||e.target.className==="close")&&this.hideMenu()}hideMenu(){this._menuElm&&(this._menuElm.remove(),this._menuElm=void 0),this._activeHeaderColumnElm?.classList.remove("slick-header-column-active"),this.destroySubMenus()}handleHeaderCellRendered(e,t){let n=t.column?.header?.menu;if(n?.items&&console.warn('[SlickGrid] Header Menu "items" property was deprecated in favor of "commandItems" to align with all other Menu plugins.'),n){if(!this.runOverrideFunctionWhenExists(this._options.menuUsabilityOverride,t))return;let o=document.createElement("div");if(o.className="slick-header-menubutton",o.ariaLabel="Header Menu",o.role="button",!this._options.buttonCssClass&&!this._options.buttonImage&&(this._options.buttonCssClass="caret"),this._options.buttonCssClass){let r=document.createElement("span");r.classList.add(...In.classNameToList(this._options.buttonCssClass)),o.appendChild(r)}this._options.buttonImage&&(o.style.backgroundImage=`url(${this._options.buttonImage})`),this._options.tooltip&&(o.title=this._options.tooltip),this._bindingEventService.bind(o,"click",r=>{this.destroyAllMenus(),this.createParentMenu(r,n,t.column)}),t.node.appendChild(o)}}handleBeforeHeaderCellDestroy(e,t){t.column.header?.menu&&t.node.querySelectorAll(".slick-header-menubutton").forEach(n=>n.remove())}addSubMenuTitleWhenExists(e,t){if(e!=="divider"&&e?.subMenuTitle){let n=document.createElement("div");n.className="slick-menu-title",n.textContent=e.subMenuTitle;let o=e.subMenuTitleCssClass;o&&n.classList.add(...In.classNameToList(o)),t.appendChild(n)}}createParentMenu(e,t,n){let o={grid:this._grid,column:n,menu:t};if(this.onBeforeMenuShow.notify(o,e,this).getReturnValue()===!1)return;this._menuElm=this.createMenu(t.commandItems||t.items,n);let r=this._grid.getContainerNode();r&&r.appendChild(this._menuElm),this.repositionMenu(e,this._menuElm),this.onAfterMenuShow.notify(o,e,this).getReturnValue()!==!1&&(e.preventDefault(),e.stopPropagation())}createMenu(e,t,n=0,o){let r=n>0,i=o?.command,a=n===1&&i?i.replaceAll(" ",""):"";a&&(this._subMenuParentId=a),r&&(a=this._subMenuParentId);let l=`slick-header-menu slick-menu-level-${n} ${this._gridUid}`,d=document.body.querySelector(`.slick-header-menu.slick-menu-level-${n}${this.getGridUidSelector()}`);if(d){if(d.dataset.subMenuParent===a)return d;this.destroySubMenus()}let u=document.createElement("div");u.className=l,n>0&&(u.classList.add("slick-submenu"),a&&(u.dataset.subMenuParent=a)),u.classList.add(this._gridUid),u.role="menu",u.ariaLabel=n>1?"SubMenu":"Header Menu",u.style.minWidth=`${this._options.minWidth}px`,u.setAttribute("aria-expanded","true");let f={grid:this._grid,column:t,menu:{items:e}};o&&n>0&&this.addSubMenuTitleWhenExists(o,u);for(let p=0;p<e.length;p++){let y=!0,b=e[p],w=this.runOverrideFunctionWhenExists(b.itemVisibilityOverride,f),g=this.runOverrideFunctionWhenExists(b.itemUsabilityOverride,f);if(!w)continue;Object.prototype.hasOwnProperty.call(b,"itemUsabilityOverride")&&(b.disabled=!g);let v=document.createElement("div");v.className="slick-header-menuitem",v.role="menuitem",(b.divider||b==="divider")&&(v.classList.add("slick-header-menuitem-divider"),y=!1),b.disabled&&v.classList.add("slick-header-menuitem-disabled"),b.hidden&&v.classList.add("slick-header-menuitem-hidden"),b.cssClass&&v.classList.add(...In.classNameToList(b.cssClass)),b.tooltip&&(v.title=b.tooltip||"");let T=document.createElement("div");T.className="slick-header-menuicon",v.appendChild(T),b.iconCssClass&&T.classList.add(...In.classNameToList(b.iconCssClass)),b.iconImage&&(T.style.backgroundImage="url("+b.iconImage+")");let P=document.createElement("span");if(P.className="slick-header-menucontent",P.textContent=b.title||"",v.appendChild(P),b.textCssClass&&P.classList.add(...In.classNameToList(b.textCssClass)),u.appendChild(v),y){let x=r?"sub-menu":"parent-menu";this._bindingEventService.bind(v,"click",this.handleMenuItemClick.bind(this,b,t,n),void 0,x)}if(this._options.subMenuOpenByEvent==="mouseover"&&this._bindingEventService.bind(v,"mouseover",x=>{b.commandItems||b.items?this.repositionSubMenu(b,t,n,x):r||this.destroySubMenus()}),b.commandItems||b.items){let x=document.createElement("div");x.className="sub-item-chevron",this._options.subItemChevronClass?x.classList.add(...In.classNameToList(this._options.subItemChevronClass)):x.textContent="⮞",v.classList.add("slick-submenu-item"),v.appendChild(x)}}return u}handleMenuItemClick(e,t,n=0,o){if(e!=="divider"&&!e.disabled&&!e.divider){let r=e.command||"";if(In.isDefined(r)&&!e.commandItems&&!e.items){let i={grid:this._grid,column:t,command:r,item:e};this.onCommand.notify(i,o,this),typeof e.action=="function"&&e.action.call(this,o,i),o.defaultPrevented||this.hideMenu()}else e.commandItems||e.items?this.repositionSubMenu(e,t,n,o):this.destroySubMenus()}}repositionSubMenu(e,t,n,o){o.target.classList.contains("slick-header-menubutton")&&this.destroySubMenus();let r=this.createMenu(e.commandItems||e.items||[],t,n+1,e);document.body.appendChild(r),this.repositionMenu(o,r)}repositionMenu(e,t){let n=e.target,o=t.classList.contains("slick-submenu"),r=o?e.target.closest(".slick-header-menuitem"):n,i=In.offset(n),a=this._grid.getGridPosition(),l=t.offsetWidth,d=In.offset(this._menuElm),u=In.offset(r),f=o?u?.top??0:n.clientHeight??i?.top??0+(this._options?.menuOffsetTop??0),p=o?u?.left??0:i?.left??0;if(o&&r){let y=p+Number(l);o&&(y+=r.clientWidth);let b=document.documentElement.clientWidth;(y>=a.width||y>=b?"left":"right")=="left"?(t.classList.remove("dropright"),t.classList.add("dropleft"),p-=l):(t.classList.remove("dropleft"),t.classList.add("dropright"),o&&(p+=r.offsetWidth))}else p+t.offsetWidth>=a.width&&(p=p+n.clientWidth-t.clientWidth+(this._options.autoAlignOffset||0)),p-=d?.left??0;t.style.top=`${f}px`,t.style.left=`${p}px`,this._activeHeaderColumnElm=t.closest(".slick-header-column"),this._activeHeaderColumnElm&&this._activeHeaderColumnElm.classList.add("slick-header-column-active")}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},jN=lh,fd=Nr,BN=vv,WN=PN,HN=Br,zN=Gi,YN=ma,pd=ah,za=co,UN=class{constructor(e){E(this,"pluginName","RowSelectionModel"),E(this,"onSelectedRangesChanged",new HN("onSelectedRangesChanged")),E(this,"_grid"),E(this,"_ranges",[]),E(this,"_eventHandler",new YN),E(this,"_inHandler",!1),E(this,"_selector"),E(this,"_isRowMoveManagerHandler"),E(this,"_options"),E(this,"_defaults",{selectActiveRow:!0,dragToSelect:!1,autoScrollWhenDrag:!0,cellRangeSelector:void 0}),this._options=za.extend(!0,{},this._defaults,e)}init(e){if(jN===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');if(this._selector=this._options.cellRangeSelector,this._grid=e,za.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),!this._selector&&this._options.dragToSelect){if(!BN)throw new Error("Slick.CellRangeDecorator is required when option dragToSelect set to true");this._selector=new WN({selectionCss:{border:"none"},autoScroll:this._options.autoScrollWhenDrag})}this._eventHandler.subscribe(this._grid.onActiveCellChanged,this.wrapHandler(this.handleActiveCellChange).bind(this)),this._eventHandler.subscribe(this._grid.onKeyDown,this.wrapHandler(this.handleKeyDown).bind(this)),this._eventHandler.subscribe(this._grid.onClick,this.wrapHandler(this.handleClick).bind(this)),this._selector&&(e.registerPlugin(this._selector),this._selector.onCellRangeSelecting.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.subscribe(this.handleBeforeCellRangeSelected.bind(this)))}destroy(){this._eventHandler.unsubscribeAll(),this._selector&&(this._selector.onCellRangeSelecting.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.unsubscribe(this.handleBeforeCellRangeSelected.bind(this)),this._grid.unregisterPlugin(this._selector),this._selector.destroy&&this._selector.destroy())}wrapHandler(e){return(...t)=>{this._inHandler||(this._inHandler=!0,e.apply(this,t),this._inHandler=!1)}}rangesToRows(e){let t=[];for(let n=0;n<e.length;n++)for(let o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}rowsToRanges(e){let t=[],n=this._grid.getColumns().length-1;return e.forEach(o=>t.push(new pd(o,0,o,n))),t}getRowsRange(e,t){let n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}getSelectedRows(){return this.rangesToRows(this._ranges)}setSelectedRows(e){this.setSelectedRanges(this.rowsToRanges(e),"SlickRowSelectionModel.setSelectedRows")}setSelectedRanges(e,t="SlickRowSelectionModel.setSelectedRanges"){if((!this._ranges||this._ranges.length===0)&&(!e||e.length===0))return;this._ranges=e;let n=new zN(new CustomEvent("click",{detail:{caller:t}}),this._ranges);this.onSelectedRangesChanged.notify(this._ranges,n)}getSelectedRanges(){return this._ranges}refreshSelections(){this.setSelectedRows(this.getSelectedRows())}handleActiveCellChange(e,t){this._options.selectActiveRow&&za.isDefined(t.row)&&this.setSelectedRanges([new pd(t.row,0,t.row,this._grid.getColumns().length-1)])}handleKeyDown(e){let t=this._grid.getActiveCell();if(this._grid.getOptions().multiSelect&&t&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which===fd.UP||e.which===fd.DOWN)){let n=this.getSelectedRows();n.sort(function(a,l){return a-l}),n.length||(n=[t.row]);let o=n[0],r=n[n.length-1],i;if(e.which===fd.DOWN?i=t.row<r||o===r?++r:++o:i=t.row<r?--r:--o,i>=0&&i<this._grid.getDataLength()){this._grid.scrollRowIntoView(i);let a=this.rowsToRanges(this.getRowsRange(o,r));this.setSelectedRanges(a)}e.preventDefault(),e.stopPropagation()}}handleClick(e){let t=this._grid.getCellFromEvent(e);if(!t||!this._grid.canCellBeActive(t.row,t.cell)||!this._grid.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;let n=this.rangesToRows(this._ranges),o=n.indexOf(t.row);if(o===-1&&(e.ctrlKey||e.metaKey))n.push(t.row),this._grid.setActiveCell(t.row,t.cell);else if(o!==-1&&(e.ctrlKey||e.metaKey))n=n.filter(i=>i!==t.row),this._grid.setActiveCell(t.row,t.cell);else if(n.length&&e.shiftKey){let i=n.pop(),a=Math.min(t.row,i),l=Math.max(t.row,i);n=[];for(let d=a;d<=l;d++)d!==i&&n.push(d);n.push(i),this._grid.setActiveCell(t.row,t.cell)}let r=this.rowsToRanges(n);return this.setSelectedRanges(r),e.stopImmediatePropagation(),!0}handleBeforeCellRangeSelected(e,t){if(!this._isRowMoveManagerHandler){let n=this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager");this._isRowMoveManagerHandler=n?n.isHandlerColumn:za.noop}if(this._grid.getEditorLock().isActive()||this._isRowMoveManagerHandler(t.cell))return e.stopPropagation(),!1;this._grid.setActiveCell(t.row,t.cell)}handleCellRangeSelected(e,t){if(!this._grid.getOptions().multiSelect||!this._options.selectActiveRow)return!1;this.setSelectedRanges([new pd(t.range.fromRow,0,t.range.toRow,this._grid.getColumns().length-1)])}},qN=Nr,md=mv,ii=co,bv=class{constructor(e){E(this,"pluginName","GroupItemMetadataProvider"),E(this,"_grid"),E(this,"_options"),E(this,"_defaults",{checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:this.defaultGroupCellFormatter.bind(this),totalsFormatter:this.defaultTotalsCellFormatter.bind(this),includeHeaderTotals:!1}),this._options=ii.extend(!0,{},this._defaults,e)}get dataView(){return this._grid?.getData?.()??{}}getOptions(){return this._options}setOptions(e){ii.extend(!0,this._options,e)}defaultGroupCellFormatter(e,t,n,o,r){if(!this._options.enableExpandCollapse)return r.title;let i=`${r.level*15}px`,a=r.collapsed?this._options.toggleCollapsedCssClass:this._options.toggleExpandedCssClass,l=document.createDocumentFragment();this._options.checkboxSelect&&l.appendChild(ii.createDomElement("span",{className:`${this._options.checkboxSelectCssClass} ${r.selectChecked?"checked":"unchecked"}`})),l.appendChild(ii.createDomElement("span",{className:`${this._options.toggleCssClass} ${a}`,ariaExpanded:String(!r.collapsed),style:{marginLeft:i}}));let d=ii.createDomElement("span",{className:this._options.groupTitleCssClass||""});return d.setAttribute("level",r.level),r.title instanceof HTMLElement?d.appendChild(r.title):this._grid.applyHtmlCode(d,r.title??""),l.appendChild(d),l}defaultTotalsCellFormatter(e,t,n,o,r,i){return o?.groupTotalsFormatter?.(r,o,i)??""}init(e){this._grid=e,this._grid.onClick.subscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.subscribe(this.handleGridKeyDown.bind(this))}destroy(){this._grid&&(this._grid.onClick.unsubscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.unsubscribe(this.handleGridKeyDown.bind(this)))}handleGridClick(e,t){let n=e.target,o=this._grid.getDataItem(t.row);if(o&&o instanceof md&&n.classList.contains(this._options.toggleCssClass||"")&&(this.handleDataViewExpandOrCollapse(o),e.stopImmediatePropagation(),e.preventDefault()),o&&o instanceof md&&n.classList.contains(this._options.checkboxSelectCssClass||"")){o.selectChecked=!o.selectChecked,n.classList.remove(o.selectChecked?"unchecked":"checked"),n.classList.add(o.selectChecked?"checked":"unchecked");let r=this.dataView.mapItemsToRows(o.rows);o.selectChecked?this._options.checkboxSelectPlugin.selectRows(r):this._options.checkboxSelectPlugin.deSelectRows(r)}}handleGridKeyDown(e){if(this._options.enableExpandCollapse&&e.which===qN.SPACE){let t=this._grid.getActiveCell();if(t){let n=this._grid.getDataItem(t.row);n&&n instanceof md&&(this.handleDataViewExpandOrCollapse(n),e.stopImmediatePropagation(),e.preventDefault())}}}handleDataViewExpandOrCollapse(e){let t=this._grid.getRenderedRange();this.dataView.setRefreshHints({ignoreDiffsBefore:t.top,ignoreDiffsAfter:t.bottom+1}),e.collapsed?this.dataView.expandGroup(e.groupingKey):this.dataView.collapseGroup(e.groupingKey)}getGroupRowMetadata(e,t,n){let o=e?.level;return{selectable:!1,focusable:this._options.groupFocusable,cssClasses:`${this._options.groupCssClass} slick-group-level-${o}`,formatter:this._options.includeHeaderTotals&&this._options.totalsFormatter||void 0,columns:{0:{colspan:this._options.includeHeaderTotals?"1":"*",formatter:this._options.groupFormatter,editor:null}}}}getTotalsRowMetadata(e,t,n){let o=e?.group?.level;return{selectable:!1,focusable:this._options.totalsFocusable,cssClasses:`${this._options.totalsCssClass} slick-group-level-${o}`,formatter:this._options.totalsFormatter,editor:null}}},$o=Br,gd=Gi,Kp=mv,GN=uN,Bn=co,KN=bv,XN=class{constructor(e,t){this.externalPubSub=t,E(this,"defaults",{globalItemMetadataProvider:null,groupItemMetadataProvider:null,inlineFilters:!1,useCSPSafeFilter:!1}),E(this,"idProperty","id"),E(this,"items",[]),E(this,"rows",[]),E(this,"idxById",new Map),E(this,"rowsById"),E(this,"filter",null),E(this,"filterCSPSafe",null),E(this,"updated",null),E(this,"suspend",!1),E(this,"isBulkSuspend",!1),E(this,"bulkDeleteIds",new Map),E(this,"sortAsc",!0),E(this,"fastSortField"),E(this,"sortComparer"),E(this,"refreshHints",{}),E(this,"prevRefreshHints",{}),E(this,"filterArgs"),E(this,"filteredItems",[]),E(this,"compiledFilter"),E(this,"compiledFilterCSPSafe"),E(this,"compiledFilterWithCaching"),E(this,"compiledFilterWithCachingCSPSafe"),E(this,"filterCache",[]),E(this,"_grid"),E(this,"groupingInfoDefaults",{getter:void 0,formatter:void 0,comparer:(n,o)=>n.value===o.value?0:n.value>o.value?1:-1,predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1}),E(this,"groupingInfos",[]),E(this,"groups",[]),E(this,"toggledGroupsByLevel",[]),E(this,"groupingDelimiter",":|:"),E(this,"selectedRowIds",[]),E(this,"preSelectedRowIdsChangeFn"),E(this,"pagesize",0),E(this,"pagenum",0),E(this,"totalRows",0),E(this,"_options"),E(this,"_container"),E(this,"onBeforePagingInfoChanged"),E(this,"onGroupExpanded"),E(this,"onGroupCollapsed"),E(this,"onPagingInfoChanged"),E(this,"onRowCountChanged"),E(this,"onRowsChanged"),E(this,"onRowsOrCountChanged"),E(this,"onSelectedRowIdsChanged"),E(this,"onSetItemsCalled"),this.onBeforePagingInfoChanged=new $o("onBeforePagingInfoChanged",t),this.onGroupExpanded=new $o("onGroupExpanded",t),this.onGroupCollapsed=new $o("onGroupCollapsed",t),this.onPagingInfoChanged=new $o("onPagingInfoChanged",t),this.onRowCountChanged=new $o("onRowCountChanged",t),this.onRowsChanged=new $o("onRowsChanged",t),this.onRowsOrCountChanged=new $o("onRowsOrCountChanged",t),this.onSelectedRowIdsChanged=new $o("onSelectedRowIdsChanged",t),this.onSetItemsCalled=new $o("onSetItemsCalled",t),this._options=Bn.extend(!0,{},this.defaults,e)}beginUpdate(e){this.suspend=!0,this.isBulkSuspend=e===!0}endUpdate(){let e=this.isBulkSuspend;this.isBulkSuspend=!1,this.suspend=!1,e&&(this.processBulkDelete(),this.ensureIdUniqueness()),this.refresh()}destroy(){this.items=[],this.idxById=null,this.rowsById=null,this.filter=null,this.filterCSPSafe=null,this.updated=null,this.sortComparer=null,this.filterCache=[],this.filteredItems=[],this.compiledFilter=null,this.compiledFilterCSPSafe=null,this.compiledFilterWithCaching=null,this.compiledFilterWithCachingCSPSafe=null,this._grid&&this._grid.onSelectedRowsChanged&&this._grid.onCellCssStylesChanged&&(this._grid.onSelectedRowsChanged.unsubscribe(),this._grid.onCellCssStylesChanged.unsubscribe()),this.onRowsOrCountChanged&&this.onRowsOrCountChanged.unsubscribe()}setRefreshHints(e){this.refreshHints=e}getFilterArgs(){return this.filterArgs}setFilterArgs(e){this.filterArgs=e}processBulkDelete(){if(!this.idxById)return;let e,t,n=0;for(let o=0,r=this.items.length;o<r;o++){if(t=this.items[o],e=t[this.idProperty],e===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.bulkDeleteIds.has(e)?this.idxById.delete(e):(this.items[n]=t,this.idxById.set(e,n),++n)}this.items.length=n,this.bulkDeleteIds=new Map}updateIdxById(e){if(this.isBulkSuspend||!this.idxById)return;e=e||0;let t;for(let n=e,o=this.items.length;n<o;n++){if(t=this.items[n][this.idProperty],t===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.idxById.set(t,n)}}ensureIdUniqueness(){if(this.isBulkSuspend||!this.idxById)return;let e;for(let t=0,n=this.items.length;t<n;t++)if(e=this.items[t][this.idProperty],e===void 0||this.idxById.get(e)!==t)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property")}getItems(){return this.items}getIdPropertyName(){return this.idProperty}setItems(e,t){t!==void 0&&(this.idProperty=t),this.items=this.filteredItems=e,this.onSetItemsCalled.notify({idProperty:this.idProperty,itemCount:this.items.length},null,this),this.idxById=new Map,this.updateIdxById(),this.ensureIdUniqueness(),this.refresh()}setPagingOptions(e){this.onBeforePagingInfoChanged.notify(this.getPagingInfo(),null,this).getReturnValue()!==!1&&(Bn.isDefined(e.pageSize)&&(this.pagesize=e.pageSize,this.pagenum=this.pagesize?Math.min(this.pagenum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1)):0),Bn.isDefined(e.pageNum)&&(this.pagenum=Math.min(e.pageNum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1))),this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),this.refresh())}getPagingInfo(){let e=this.pagesize?Math.max(1,Math.ceil(this.totalRows/this.pagesize)):1;return{pageSize:this.pagesize,pageNum:this.pagenum,totalRows:this.totalRows,totalPages:e,dataView:this}}sort(e,t){this.sortAsc=t,this.sortComparer=e,this.fastSortField=null,t===!1&&this.items.reverse(),this.items.sort(e),t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}fastSort(e,t){this.sortAsc=t,this.fastSortField=e,this.sortComparer=null;let n=Object.prototype.toString;Object.prototype.toString=typeof e=="function"?e:function(){return this[e]},t===!1&&this.items.reverse(),this.items.sort(),Object.prototype.toString=n,t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}reSort(){this.sortComparer?this.sort(this.sortComparer,this.sortAsc):this.fastSortField&&this.fastSort(this.fastSortField,this.sortAsc)}getFilteredItems(){return this.filteredItems}getFilteredItemCount(){return this.filteredItems.length}getFilter(){return this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter}setFilter(e){this.filterCSPSafe=e,this.filter=e,this._options.inlineFilters&&(this.compiledFilterCSPSafe=this.compileFilterCSPSafe,this.compiledFilterWithCachingCSPSafe=this.compileFilterWithCachingCSPSafe,this.compiledFilter=this.compileFilter(this._options.useCSPSafeFilter),this.compiledFilterWithCaching=this.compileFilterWithCaching(this._options.useCSPSafeFilter)),this.refresh()}getGrouping(){return this.groupingInfos}setGrouping(e){this._options.groupItemMetadataProvider||(this._options.groupItemMetadataProvider=new KN),this.groups=[],this.toggledGroupsByLevel=[],e=e||[],this.groupingInfos=e instanceof Array?e:[e];for(let t=0;t<this.groupingInfos.length;t++){let n=this.groupingInfos[t]=Bn.extend(!0,{},this.groupingInfoDefaults,this.groupingInfos[t]);n.getterIsAFn=typeof n.getter=="function",n.compiledAccumulators=[];let o=n.aggregators.length;for(;o--;)n.compiledAccumulators[o]=this.compileAccumulatorLoopCSPSafe(n.aggregators[o]);this.toggledGroupsByLevel[t]={}}this.refresh()}getItemByIdx(e){return this.items[e]}getIdxById(e){return this.idxById?.get(e)}ensureRowsByIdCache(){if(!this.rowsById){this.rowsById={};for(let e=0,t=this.rows.length;e<t;e++)this.rowsById[this.rows[e][this.idProperty]]=e}}getRowByItem(e){return this.ensureRowsByIdCache(),this.rowsById?.[e[this.idProperty]]}getRowById(e){return this.ensureRowsByIdCache(),this.rowsById?.[e]}getItemById(e){return this.items[this.idxById.get(e)]}mapItemsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n][this.idProperty]];Bn.isDefined(r)&&(t[t.length]=r)}return t}mapIdsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n]];Bn.isDefined(r)&&(t[t.length]=r)}return t}mapRowsToIds(e){let t=[];for(let n=0,o=e.length;n<o;n++)if(e[n]<this.rows.length){let r=this.rows[e[n]];t[t.length]=r[this.idProperty]}return t}updateSingleItem(e,t){if(this.idxById){if(!this.idxById.has(e))throw new Error("[SlickGrid DataView] Invalid id");if(e!==t[this.idProperty]){let n=t[this.idProperty];if(!Bn.isDefined(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a null id");if(this.idxById.has(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a non-unique id");this.idxById.set(n,this.idxById.get(e)),this.idxById.delete(e),this.updated?.[e]&&delete this.updated[e],e=n}this.items[this.idxById.get(e)]=t,this.updated||(this.updated={}),this.updated[e]=!0}}updateItem(e,t){this.updateSingleItem(e,t),this.refresh()}updateItems(e,t){if(e.length!==t.length)throw new Error("[SlickGrid DataView] Mismatch on the length of ids and items provided to update");for(let n=0,o=t.length;n<o;n++)this.updateSingleItem(e[n],t[n]);this.refresh()}insertItem(e,t){this.items.splice(e,0,t),this.updateIdxById(e),this.refresh()}insertItems(e,t){Array.prototype.splice.apply(this.items,[e,0].concat(t)),this.updateIdxById(e),this.refresh()}addItem(e){this.items.push(e),this.updateIdxById(this.items.length-1),this.refresh()}addItems(e){this.items=this.items.concat(e),this.updateIdxById(this.items.length-e.length),this.refresh()}deleteItem(e){if(this.idxById)if(this.isBulkSuspend)this.bulkDeleteIds.set(e,!0);else{let t=this.idxById.get(e);if(t===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(e),this.items.splice(t,1),this.updateIdxById(t),this.refresh()}}deleteItems(e){if(!(e.length===0||!this.idxById))if(this.isBulkSuspend)for(let t=0,n=e.length;t<n;t++){let o=e[t];if(this.idxById.get(o)===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.bulkDeleteIds.set(o,!0)}else{let t=[];for(let n=0,o=e.length;n<o;n++){let r=e[n],i=this.idxById.get(r);if(i===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(r),t.push(i)}t.sort();for(let n=t.length-1;n>=0;--n)this.items.splice(t[n],1);this.updateIdxById(t[0]),this.refresh()}}sortedAddItem(e){if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedAddItem() requires a sort comparer, use sort()");this.insertItem(this.sortedIndex(e),e)}sortedUpdateItem(e,t){if(!this.idxById)return;if(!this.idxById.has(e)||e!==t[this.idProperty])throw new Error("[SlickGrid DataView] Invalid or non-matching id "+this.idxById.get(e));if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedUpdateItem() requires a sort comparer, use sort()");let n=this.getItemById(e);this.sortComparer(n,t)!==0?(this.deleteItem(e),this.sortedAddItem(t)):this.updateItem(e,t)}sortedIndex(e){let t=0,n=this.items.length;for(;t<n;){let o=t+n>>>1;this.sortComparer(this.items[o],e)===-1?t=o+1:n=o}return t}getItemCount(){return this.items.length}getLength(){return this.rows.length}getItem(e){let t=this.rows[e];if(t?.__group&&t.totals&&!t.totals?.initialized){let n=this.groupingInfos[t.level];n.displayTotalsRow||(this.calculateTotals(t.totals),t.title=n.formatter?n.formatter(t):t.value)}else t?.__groupTotals&&!t.initialized&&this.calculateTotals(t);return t}getItemMetadata(e){let t=this.rows[e];return t===void 0?null:this._options.globalItemMetadataProvider?.getRowMetadata?this._options.globalItemMetadataProvider.getRowMetadata(t,e):t.__group&&this._options.groupItemMetadataProvider?.getGroupRowMetadata?this._options.groupItemMetadataProvider.getGroupRowMetadata(t,e):t.__groupTotals&&this._options.groupItemMetadataProvider?.getTotalsRowMetadata?this._options.groupItemMetadataProvider.getTotalsRowMetadata(t,e):null}expandCollapseAllGroups(e,t){if(Bn.isDefined(e))this.toggledGroupsByLevel[e]={},this.groupingInfos[e].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:e,groupingKey:null}):this.onGroupExpanded.notify({level:e,groupingKey:null});else for(let n=0;n<this.groupingInfos.length;n++)this.toggledGroupsByLevel[n]={},this.groupingInfos[n].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:n,groupingKey:null}):this.onGroupExpanded.notify({level:n,groupingKey:null});this.refresh()}collapseAllGroups(e){this.expandCollapseAllGroups(e,!0)}expandAllGroups(e){this.expandCollapseAllGroups(e,!1)}expandCollapseGroup(e,t,n){this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed^n,this.refresh()}collapseGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(n=t,o=t.split(this.groupingDelimiter).length-1):(n=e.join(this.groupingDelimiter),o=e.length-1),this.expandCollapseGroup(o,n,!0),this.onGroupCollapsed.notify({level:o,groupingKey:n})}expandGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(o=t.split(this.groupingDelimiter).length-1,n=t):(o=e.length-1,n=e.join(this.groupingDelimiter)),this.expandCollapseGroup(o,n,!1),this.onGroupExpanded.notify({level:o,groupingKey:n})}getGroups(){return this.groups}extractGroups(e,t){let n,o,r=[],i={},a,l=t?t.level+1:0,d=this.groupingInfos[l];for(let u=0,f=d.predefinedValues?.length??0;u<f;u++)o=d.predefinedValues?.[u],n=i[o],n||(n=new Kp,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n);for(let u=0,f=e.length;u<f;u++)a=e[u],o=d.getterIsAFn?d.getter(a):a[d.getter],n=i[o],n||(n=new Kp,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n),n.rows[n.count++]=a;if(l<this.groupingInfos.length-1)for(let u=0;u<r.length;u++)n=r[u],n.groups=this.extractGroups(n.rows,n);return r.length&&this.addTotals(r,l),r.sort(this.groupingInfos[l].comparer),r}calculateTotals(e){let t=e.group,n=this.groupingInfos[t.level??0],o=t.level===this.groupingInfos.length,r,i=n.aggregators.length;if(!o&&n.aggregateChildGroups){let a=t.groups?.length??0;for(;a--;)t.groups[a].totals.initialized||this.calculateTotals(t.groups[a].totals)}for(;i--;)r=n.aggregators[i],r.init(),!o&&n.aggregateChildGroups?n.compiledAccumulators[i].call(r,t.groups):n.compiledAccumulators[i].call(r,t.rows),r.storeResult(e);e.initialized=!0}addGroupTotals(e){let t=this.groupingInfos[e.level],n=new GN;n.group=e,e.totals=n,t.lazyTotalsCalculation||this.calculateTotals(n)}addTotals(e,t){t=t||0;let n=this.groupingInfos[t],o=n.collapsed,r=this.toggledGroupsByLevel[t],i=e.length,a;for(;i--;)a=e[i],!(a.collapsed&&!n.aggregateCollapsed)&&(a.groups&&this.addTotals(a.groups,t+1),n.aggregators?.length&&(n.aggregateEmpty||a.rows.length||a.groups?.length)&&this.addGroupTotals(a),a.collapsed=o^r[a.groupingKey],a.title=n.formatter?n.formatter(a):a.value)}flattenGroupedRows(e,t){t=t||0;let n=this.groupingInfos[t],o=[],r,i=0,a;for(let l=0,d=e.length;l<d;l++){if(a=e[l],o[i++]=a,!a.collapsed){r=a.groups?this.flattenGroupedRows(a.groups,t+1):a.rows;for(let u=0,f=r.length;u<f;u++)o[i++]=r[u]}a.totals&&n.displayTotalsRow&&(!a.collapsed||n.aggregateCollapsed)&&(o[i++]=a.totals)}return o}compileAccumulatorLoopCSPSafe(e){return e.accumulate?function(t){let n;for(let o=0;o<t.length;o++){let r=t[o];n=e.accumulate.call(e,r)}return n}:function(){}}compileFilterCSPSafe(e,t){if(typeof this.filterCSPSafe!="function")return[];let n=[],o=e.length;for(let r=0;r<o;r++)this.filterCSPSafe(e[r],t)&&n.push(e[r]);return n}compileFilter(e=!1){if(e)return null;let t=Bn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args",i),l="compiledFilter";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCaching(e=!1){if(e)return null;let t=Bn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args,_cache",i),l="compiledFilterWithCaching";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCachingCSPSafe(e,t,n){if(typeof this.filterCSPSafe!="function")return[];let o=[],r=e.length;for(let i=0;i<r;i++)(n[i]||this.filterCSPSafe(e[i],t))&&o.push(e[i]);return o}setFunctionName(e,t){try{Object.defineProperty(e,"name",{writable:!0,value:t})}catch{e.name=t}}uncompiledFilter(e,t){let n=[],o=0;for(let r=0,i=e.length;r<i;r++)this.filter?.(e[r],t)&&(n[o++]=e[r]);return n}uncompiledFilterWithCaching(e,t,n){let o=[],r=0,i;for(let a=0,l=e.length;a<l;a++)i=e[a],n[a]?o[r++]=i:this.filter?.(i,t)&&(o[r++]=i,n[a]=!0);return o}getFilteredAndPagedItems(e){if(this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter){let n,o;this._options.useCSPSafeFilter?(n=this._options.inlineFilters?this.compiledFilterCSPSafe:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCachingCSPSafe:this.uncompiledFilterWithCaching):(n=this._options.inlineFilters?this.compiledFilter:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCaching:this.uncompiledFilterWithCaching),this.refreshHints.isFilterNarrowing?this.filteredItems=n.call(this,this.filteredItems,this.filterArgs):this.refreshHints.isFilterExpanding?this.filteredItems=o.call(this,e,this.filterArgs,this.filterCache):this.refreshHints.isFilterUnchanged||(this.filteredItems=n.call(this,e,this.filterArgs))}else this.filteredItems=this.pagesize?e:e.concat();let t;return this.pagesize?(this.filteredItems.length<=this.pagenum*this.pagesize&&(this.filteredItems.length===0?this.pagenum=0:this.pagenum=Math.floor((this.filteredItems.length-1)/this.pagesize)),t=this.filteredItems.slice(this.pagesize*this.pagenum,this.pagesize*this.pagenum+this.pagesize)):t=this.filteredItems,{totalRows:this.filteredItems.length,rows:t}}getRowDiffs(e,t){let n,o,r,i=[],a=0,l=Math.max(t.length,e.length);this.refreshHints?.ignoreDiffsBefore&&(a=Math.max(0,Math.min(t.length,this.refreshHints.ignoreDiffsBefore))),this.refreshHints?.ignoreDiffsAfter&&(l=Math.min(t.length,Math.max(0,this.refreshHints.ignoreDiffsAfter)));for(let d=a,u=e.length;d<l;d++)d>=u?i[i.length]=d:(n=t[d],o=e[d],(!n||this.groupingInfos.length&&(r=n.__nonDataRow||o.__nonDataRow)&&n.__group!==o.__group||n.__group&&!n.equals(o)||r&&(n.__groupTotals||o.__groupTotals)||n[this.idProperty]!==o[this.idProperty]||this.updated?.[n[this.idProperty]])&&(i[i.length]=d));return i}recalc(e){this.rowsById=void 0,(this.refreshHints.isFilterNarrowing!==this.prevRefreshHints.isFilterNarrowing||this.refreshHints.isFilterExpanding!==this.prevRefreshHints.isFilterExpanding)&&(this.filterCache=[]);let t=this.getFilteredAndPagedItems(e);this.totalRows=t.totalRows;let n=t.rows;this.groups=[],this.groupingInfos.length&&(this.groups=this.extractGroups(n),this.groups.length&&(n=this.flattenGroupedRows(this.groups)));let o=this.getRowDiffs(this.rows,n);return this.rows=n,o}refresh(){if(this.suspend)return;let e=Bn.extend(!0,{},this.getPagingInfo()),t=this.rows.length,n=this.totalRows,o=this.recalc(this.items);this.pagesize&&this.totalRows<this.pagenum*this.pagesize&&(this.pagenum=Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1),o=this.recalc(this.items)),this.updated=null,this.prevRefreshHints=this.refreshHints,this.refreshHints={},n!==this.totalRows&&this.onBeforePagingInfoChanged.notify(e,null,this).getReturnValue()!==!1&&this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),t!==this.rows.length&&this.onRowCountChanged.notify({previous:t,current:this.rows.length,itemCount:this.items.length,dataView:this,callingOnRowsChanged:o.length>0},null,this),o.length>0&&this.onRowsChanged.notify({rows:o,itemCount:this.items.length,dataView:this,calledOnRowCountChanged:t!==this.rows.length},null,this),(t!==this.rows.length||o.length>0)&&this.onRowsOrCountChanged.notify({rowsDiff:o,previousRowCount:t,currentRowCount:this.rows.length,itemCount:this.items.length,rowCountChanged:t!==this.rows.length,rowsChanged:o.length>0,dataView:this},null,this)}syncGridSelection(e,t,n){this._grid=e;let o;this.selectedRowIds=this.mapRowsToIds(e.getSelectedRows());let r=a=>{a===!1?this.selectedRowIds=[]:this.selectedRowIds.sort().join(",")!==a.sort().join(",")&&(this.selectedRowIds=a)},i=()=>{if((this.selectedRowIds||[]).length>0&&!o){o=!0;let a=this.mapIdsToRows(this.selectedRowIds||[]);if(!t){let l={grid:this._grid,ids:this.mapRowsToIds(a),rows:a,dataView:this};this.preSelectedRowIdsChangeFn(l),this.onSelectedRowIdsChanged.notify(Object.assign(l,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new gd,this)}e.setSelectedRows(a),o=!1}};return e.onSelectedRowsChanged.subscribe((a,l)=>{if(!o){let d=this.mapRowsToIds(l.rows),u={grid:this._grid,ids:d,rows:l.rows,added:!0,dataView:this};this.preSelectedRowIdsChangeFn(u),this.onSelectedRowIdsChanged.notify(Object.assign(u,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new gd,this)}}),this.preSelectedRowIdsChangeFn=a=>{if(!o){if(o=!0,typeof a.added>"u")r(a.ids);else{let l;if(a.added)n&&e.getOptions().multiSelect?l=(this.selectedRowIds?.filter(d=>this.getRowById(d)===void 0)).concat(a.ids):l=a.ids;else if(n&&e.getOptions().multiSelect){let d=new Set(a.ids);l=this.selectedRowIds?.filter(u=>!d.has(u))}else l=[];r(l)}o=!1}},this.onRowsOrCountChanged.subscribe(i.bind(this)),this.onSelectedRowIdsChanged}getAllSelectedIds(){return this.selectedRowIds}getAllSelectedFilteredIds(){return this.getAllSelectedFilteredItems().map(e=>e[this.idProperty])}setSelectedIds(e,t){let n=t?.isRowBeingAdded,o=t?.shouldTriggerEvent,r=t?.applyRowSelectionToGrid;n!==!1&&(n=!0);let i=this.mapIdsToRows(e),a={grid:this._grid,ids:e,rows:i,added:n,dataView:this};this.preSelectedRowIdsChangeFn?.(a),o!==!1&&this.onSelectedRowIdsChanged.notify(Object.assign(a,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new gd,this),r!==!1&&this._grid&&this._grid.setSelectedRows(i)}getAllSelectedItems(){let e=[];return this.getAllSelectedIds().forEach(t=>{e.push(this.getItemById(t))}),e}getAllSelectedFilteredItems(){if(!Array.isArray(this.selectedRowIds))return[];let e=new Set(this.selectedRowIds);return this.filteredItems.filter(t=>e.has(t[this.idProperty]))||[]}syncGridCellCssStyles(e,t){let n,o,r=a=>{n={},typeof a=="object"&&Object.keys(a).forEach(l=>{if(a){let d=this.rows[l][this.idProperty];n[d]=a[l]}})};r(e.getCellCssStyles(t));let i=()=>{if(typeof n=="object"){o=!0,this.ensureRowsByIdCache();let a={};Object.keys(n).forEach(l=>{let d=this.rowsById?.[l];Bn.isDefined(d)&&(a[d]=n[l])}),e.setCellCssStyles(t,a),o=!1}};e.onCellCssStylesChanged.subscribe((a,l)=>{o||t===l.key&&(l.hash?r(l.hash):(e.onCellCssStylesChanged.unsubscribe(),this.onRowsOrCountChanged.unsubscribe(i)))}),this.onRowsOrCountChanged.subscribe(i.bind(this))}},xl=Nr,yd=co,Zd=class Qd{constructor(t){this.args=t,E(this,"input"),E(this,"defaultValue"),E(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=yd.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?Zp:Qp),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?Zp:Qp),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return yd.isDefined(t)||(t=Qd.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);Qd.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===""&&!yd.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}}};E(Zd,"DefaultDecimalPlaces"),E(Zd,"AllowEmptyValue",!1);var Xp=Zd;function Zp(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===xl.LEFT&&t>0||e.keyCode===xl.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function Qp(e){(e.keyCode===xl.LEFT||e.keyCode===xl.RIGHT)&&e.stopImmediatePropagation()}var ZN=uc,sr=vN,Fe=Br,ai=Gi,QN=gN,_n=yv,mo=Nr,JN=yN,eA=ah,is=bN,Sr=wN,L=co,vd=CN,Jp=lh,em=xN,tm=RN,tA=class{constructor(e,t,n,o,r){if(this.container=e,this.data=t,this.columns=n,this.externalPubSub=r,E(this,"slickGridVersion","5.15.5"),E(this,"cid",""),E(this,"onActiveCellChanged"),E(this,"onActiveCellPositionChanged"),E(this,"onAddNewRow"),E(this,"onAfterSetColumns"),E(this,"onAutosizeColumns"),E(this,"onBeforeAppendCell"),E(this,"onBeforeCellEditorDestroy"),E(this,"onBeforeColumnsResize"),E(this,"onBeforeDestroy"),E(this,"onBeforeEditCell"),E(this,"onBeforeFooterRowCellDestroy"),E(this,"onBeforeHeaderCellDestroy"),E(this,"onBeforeHeaderRowCellDestroy"),E(this,"onBeforeRemoveCachedRow"),E(this,"onBeforeSetColumns"),E(this,"onBeforeSort"),E(this,"onBeforeUpdateColumns"),E(this,"onCellChange"),E(this,"onCellCssStylesChanged"),E(this,"onClick"),E(this,"onColumnsReordered"),E(this,"onColumnsDrag"),E(this,"onColumnsResized"),E(this,"onColumnsResizeDblClick"),E(this,"onCompositeEditorChange"),E(this,"onContextMenu"),E(this,"onDrag"),E(this,"onDblClick"),E(this,"onDragInit"),E(this,"onDragStart"),E(this,"onDragEnd"),E(this,"onFooterClick"),E(this,"onFooterContextMenu"),E(this,"onFooterRowCellRendered"),E(this,"onHeaderCellRendered"),E(this,"onHeaderClick"),E(this,"onHeaderContextMenu"),E(this,"onHeaderMouseEnter"),E(this,"onHeaderMouseLeave"),E(this,"onHeaderRowCellRendered"),E(this,"onHeaderRowMouseEnter"),E(this,"onHeaderRowMouseLeave"),E(this,"onPreHeaderContextMenu"),E(this,"onPreHeaderClick"),E(this,"onKeyDown"),E(this,"onMouseEnter"),E(this,"onMouseLeave"),E(this,"onRendered"),E(this,"onScroll"),E(this,"onSelectedRowsChanged"),E(this,"onSetOptions"),E(this,"onActivateChangedOptions"),E(this,"onSort"),E(this,"onValidationError"),E(this,"onViewportChanged"),E(this,"scrollbarDimensions"),E(this,"maxSupportedCssHeight"),E(this,"canvas",null),E(this,"canvas_context",null),E(this,"_options"),E(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:QN,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:_n.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}),E(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}),E(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:sr.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:is.FirstNRows,rowSelectionCount:100,valueFilterMode:Sr.None,widthEvalMode:vd.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),E(this,"_columnResizeTimer"),E(this,"_executionBlockTimer"),E(this,"_flashCellTimer"),E(this,"_highlightRowTimer"),E(this,"th"),E(this,"h"),E(this,"ph"),E(this,"n"),E(this,"cj"),E(this,"page",0),E(this,"offset",0),E(this,"vScrollDir",1),E(this,"_bindingEventService",new ZN),E(this,"initialized",!1),E(this,"_container"),E(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),E(this,"_focusSink"),E(this,"_focusSink2"),E(this,"_groupHeaders",[]),E(this,"_headerScroller",[]),E(this,"_headers",[]),E(this,"_headerRows"),E(this,"_headerRowScroller"),E(this,"_headerRowSpacerL"),E(this,"_headerRowSpacerR"),E(this,"_footerRow"),E(this,"_footerRowScroller"),E(this,"_footerRowSpacerL"),E(this,"_footerRowSpacerR"),E(this,"_preHeaderPanel"),E(this,"_preHeaderPanelScroller"),E(this,"_preHeaderPanelSpacer"),E(this,"_preHeaderPanelR"),E(this,"_preHeaderPanelScrollerR"),E(this,"_preHeaderPanelSpacerR"),E(this,"_topHeaderPanel"),E(this,"_topHeaderPanelScroller"),E(this,"_topHeaderPanelSpacer"),E(this,"_topPanelScrollers"),E(this,"_topPanels"),E(this,"_viewport"),E(this,"_canvas"),E(this,"_style"),E(this,"_boundAncestors",[]),E(this,"stylesheet"),E(this,"columnCssRulesL"),E(this,"columnCssRulesR"),E(this,"viewportH",0),E(this,"viewportW",0),E(this,"canvasWidth",0),E(this,"canvasWidthL",0),E(this,"canvasWidthR",0),E(this,"headersWidth",0),E(this,"headersWidthL",0),E(this,"headersWidthR",0),E(this,"viewportHasHScroll",!1),E(this,"viewportHasVScroll",!1),E(this,"headerColumnWidthDiff",0),E(this,"headerColumnHeightDiff",0),E(this,"cellWidthDiff",0),E(this,"cellHeightDiff",0),E(this,"absoluteColumnMinWidth"),E(this,"hasFrozenRows",!1),E(this,"frozenRowsHeight",0),E(this,"actualFrozenRow",-1),E(this,"paneTopH",0),E(this,"paneBottomH",0),E(this,"viewportTopH",0),E(this,"viewportBottomH",0),E(this,"topPanelH",0),E(this,"headerRowH",0),E(this,"footerRowH",0),E(this,"tabbingDirection",1),E(this,"_activeCanvasNode"),E(this,"_activeViewportNode"),E(this,"activePosX"),E(this,"activePosY"),E(this,"activeRow"),E(this,"activeCell"),E(this,"activeCellNode",null),E(this,"currentEditor",null),E(this,"serializedEditorValue"),E(this,"editController"),E(this,"_prevDataLength",0),E(this,"_prevInvalidatedRowsCount",0),E(this,"_rowSpanIsCached",!1),E(this,"_colsWithRowSpanCache",{}),E(this,"rowsCache",{}),E(this,"renderedRows",0),E(this,"numVisibleRows",0),E(this,"prevScrollTop",0),E(this,"scrollHeight",0),E(this,"scrollTop",0),E(this,"lastRenderedScrollTop",0),E(this,"lastRenderedScrollLeft",0),E(this,"prevScrollLeft",0),E(this,"scrollLeft",0),E(this,"selectionModel"),E(this,"selectedRows",[]),E(this,"plugins",[]),E(this,"cellCssClasses",{}),E(this,"columnsById",{}),E(this,"sortColumns",[]),E(this,"columnPosLeft",[]),E(this,"columnPosRight",[]),E(this,"pagingActive",!1),E(this,"pagingIsLastPage",!1),E(this,"scrollThrottle"),E(this,"h_editorLoader"),E(this,"h_postrender"),E(this,"h_postrenderCleanup"),E(this,"postProcessedRows",{}),E(this,"postProcessToRow",null),E(this,"postProcessFromRow",null),E(this,"postProcessedCleanupQueue",[]),E(this,"postProcessgroupId",0),E(this,"counter_rows_rendered",0),E(this,"counter_rows_removed",0),E(this,"_paneHeaderL"),E(this,"_paneHeaderR"),E(this,"_paneTopL"),E(this,"_paneTopR"),E(this,"_paneBottomL"),E(this,"_paneBottomR"),E(this,"_headerScrollerL"),E(this,"_headerScrollerR"),E(this,"_headerL"),E(this,"_headerR"),E(this,"_groupHeadersL"),E(this,"_groupHeadersR"),E(this,"_headerRowScrollerL"),E(this,"_headerRowScrollerR"),E(this,"_footerRowScrollerL"),E(this,"_footerRowScrollerR"),E(this,"_headerRowL"),E(this,"_headerRowR"),E(this,"_footerRowL"),E(this,"_footerRowR"),E(this,"_topPanelScrollerL"),E(this,"_topPanelScrollerR"),E(this,"_topPanelL"),E(this,"_topPanelR"),E(this,"_viewportTopL"),E(this,"_viewportTopR"),E(this,"_viewportBottomL"),E(this,"_viewportBottomR"),E(this,"_canvasTopL"),E(this,"_canvasTopR"),E(this,"_canvasBottomL"),E(this,"_canvasBottomR"),E(this,"_viewportScrollContainerX"),E(this,"_viewportScrollContainerY"),E(this,"_headerScrollContainer"),E(this,"_headerRowScrollContainer"),E(this,"_footerRowScrollContainer"),E(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),E(this,"_hiddenParents",[]),E(this,"oldProps",[]),E(this,"enforceFrozenRowHeightRecalc",!1),E(this,"columnResizeDragging",!1),E(this,"slickDraggableInstance",null),E(this,"slickMouseWheelInstances",[]),E(this,"slickResizableInstances",[]),E(this,"sortableSideLeftInstance"),E(this,"sortableSideRightInstance"),E(this,"logMessageCount",0),E(this,"logMessageMaxCount",30),E(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),L.applyDefaults(this._options,this._defaults)):this._options=L.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)},L.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=L.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=L.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=L.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||L.hide(this._topHeaderPanelScroller)),this._paneHeaderL=L.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=L.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=L.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=L.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=L.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=L.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=L.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=L.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=L.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=L.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(L.hide(this._preHeaderPanelScroller),L.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=L.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=L.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=L.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=L.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=L.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=L.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=L.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=L.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=L.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=L.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=L.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=L.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(o=>{L.hide(o)}),this._options.showTopPanel||this._topPanelScrollers.forEach(o=>{L.hide(o)}),this._options.showHeaderRow||this._headerRowScroller.forEach(o=>{L.hide(o)}),this._viewportTopL=L.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=L.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=L.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=L.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(...L.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=L.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=L.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=L.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=L.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&&L.width(this._topHeaderPanelSpacer,n),this._preHeaderPanelSpacer&&L.width(this._preHeaderPanelSpacer,n),this._headers.forEach(o=>{L.width(o,this.getHeadersWidth())}),L.width(this._headerRowSpacerL,n),L.width(this._headerRowSpacerR,n),this._options.createFooterRow&&(this._footerRowScrollerR=L.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=L.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),L.width(this._footerRowSpacerL,n),this._footerRowSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),L.width(this._footerRowSpacerR,n),this._footerRowL=L.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=L.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=>{L.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(em({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))}),Jp&&(this.slickDraggableInstance=Jp({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=L.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")}),L.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(;L.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=L.extend(!0,{},this._options);this._options=L.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(em({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=_n.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(!L.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=L.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:n,grid:this})})}),L.emptyElement(this._footerRowL),L.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let n=L.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),L.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=L.storage.get(n,"column");if(o.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let r=this.sortColumns.slice(),i=null,a=0;for(;a<this.sortColumns.length;a++)if(this.sortColumns[a].columnId===o.id){i=this.sortColumns[a],i.sortAsc=!i.sortAsc;break}let l=!!i;this._options.tristateMultiColumnSort?(i||(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o}),l&&i.sortAsc&&(this.sortColumns.splice(a,1),i=null),this._options.multiColumnSort||(this.sortColumns=[]),i&&(!l||!this._options.multiColumnSort)&&this.sortColumns.push(i)):t.metaKey&&this._options.multiColumnSort?i&&this.sortColumns.splice(a,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),i?this.sortColumns.length===0&&this.sortColumns.push(i):(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o},this.sortColumns.push(i)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:r,sortCols:this.sortColumns.map(u=>{let f=this.columns[this.getColumnIndex(u.columnId)];return!f||f.hidden?null:{columnId:f.id,sortCol:f,sortAsc:u.sortAsc}}).filter(u=>u)}:d={multiColumnSort:!1,previousSortColumns:r,columnId:this.sortColumns.length>0?o.id:null,sortCol:this.sortColumns.length>0?o:null,sortAsc:this.sortColumns.length>0?this.sortColumns[0].sortAsc:!0},this.trigger(this.onBeforeSort,d,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,d,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let n=L.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:n,grid:this})})}),L.emptyElement(this._headerL),L.emptyElement(this._headerR),this.getHeadersWidth(),L.width(this._headerL,this.headersWidthL),L.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let n=L.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:n,grid:this})})}),L.emptyElement(this._headerRowL),L.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=L.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),L.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=L.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),L.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=L.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=L.createDomElement("span",{className:"slick-column-name"},r);this.applyHtmlCode(i,t.name),L.width(r,t.width-this.headerColumnWidthDiff);let a=t.headerCssClass||null;if(a&&r.classList.add(...L.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)),L.storage.put(r,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(l=>{t.headerCellAttrs.hasOwnProperty(l)&&r.setAttribute(l,t.headerCellAttrs[l])}),t.sortable&&(r.classList.add("slick-header-sortable"),L.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},r),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&L.createDomElement("div",{className:"slick-sort-indicator-numbered"},r)),this.trigger(this.onHeaderCellRendered,{node:r,column:t,grid:this}),this._options.showHeaderRow){let l=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},o),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&l.classList.add(d),this._bindingEventService.bind(l,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(l,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),L.storage.put(l,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:l,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let l=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},l);L.storage.put(d,"column",t),this.trigger(this.onFooterRowCellRendered,{node:d,column:t,grid:this})}}this.setSortColumns(this.sortColumns),this.setupColumnResize(),this._options.enableColumnReorder&&(typeof this._options.enableColumnReorder=="function"?this._options.enableColumnReorder(this,this._headers,this.headerColumnWidthDiff,this.setColumns,this.setupColumnResize,this.columns,this.getColumnIndex,this.uid,this.trigger):this.setupColumnReorder())}setupColumnReorder(){this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy();let e=null,t=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft+10,n=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,o=!1,r={animation:50,direction:"horizontal",chosenClass:"slick-header-column-active",ghostClass:"slick-sortable-placeholder",draggable:".slick-header-column",dragoverBubble:!1,revertClone:!0,scroll:!this.hasFrozenColumns(),filter:`.${this._options.unorderableColumnCssClass}`,onMove:i=>!i.related.classList.contains(this._options.unorderableColumnCssClass),onStart:i=>{i.item.classList.add("slick-header-column-active"),o=!this.hasFrozenColumns()||L.offset(i.item).left>L.offset(this._viewportScrollContainerX).left,o&&i.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):o&&i.originalEvent.pageX<L.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(n,100)):(window.clearInterval(e),e=null)},onEnd:i=>{if(i.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let a=this.sortableSideLeftInstance?.toArray()??[];a=a.concat(this.sortableSideRightInstance?.toArray()??[]);let l=[];for(let d=0;d<a.length;d++)l.push(this.columns[this.getColumnIndex(a[d])]);this.setColumns(l),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),i.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,r),this.sortableSideRightInstance=Sortable.create(this._headerR,r)}getHeaderChildren(){let e=Array.from(this._headers[0].children),t=Array.from(this._headers[1].children);return e.concat(t)}handleResizeableDoubleClick(e){let t=e.target.parentElement.id.replace(this.uid,"");this.trigger(this.onColumnsResizeDblClick,{triggeredByColumn:t})}setupColumnResize(){if(typeof tm>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,l=-1,d=0,u=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<u.length;p++)u[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),l=p);if(a!==void 0)for(let p=0;p<u.length;p++){let y=u[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=l)continue;let b=L.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(b,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(tm({resizeableElement:y,resizeableHandleElement:b,onResizeStart:(w,g)=>{let v=w.touches?w.changedTouches[0]:w;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,d=0,g.resizeableElement.classList.add("slick-header-column-active");let T=null,P=null;for(let C=0;C<u.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=u[C].offsetWidth);if(this._options.forceFitColumns)for(T=0,P=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(P!==null&&(n.maxWidth?P+=n.maxWidth-(n.previousWidth||0):P=null),T+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));let x=0,S=0;for(e=0;e<=p;e++)n=f[e],n?.resizable&&(S!==null&&(n.maxWidth?S+=n.maxWidth-(n.previousWidth||0):S=null),x+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));T===null&&(T=1e5),x===null&&(x=1e5),P===null&&(P=1e5),S===null&&(S=1e5),i=o+Math.min(T,S),r=o-Math.min(x,P)},onResize:(w,g)=>{let v=w.touches?w.changedTouches[0]:w;this.columnResizeDragging=!0;let T,P=Math.min(i,Math.max(r,v.pageX))-o,x,S=0,C=0,O=this.getViewportInnerWidth();if(P<0){for(x=P,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(T=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<T?(x+=(n.previousWidth||0)-T,n.width=T):(n.width=(n.previousWidth||0)+x,x=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0))}else{for(x=P,S=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x)x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let A=(n.previousWidth||0)+x,F=this.canvasWidthL+x;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(A>d&&F<O-this._options.frozenRightViewportMinWidth&&(d=A),n.width=F+this._options.frozenRightViewportMinWidth>O?d:A):n.width=A,x=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(T=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<T?(x+=(n.previousWidth||0)-T,n.width=T):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0)}this.hasFrozenColumns()&&S!==this.canvasWidthL&&(L.width(this._headerL,S+1e3),L.setStyleSize(this._paneHeaderR,"left",S)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:g.resizeableElement,resizeHandle:g.resizeableHandleElement})},onResizeEnd:(w,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 T;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(T=u[e].offsetWidth,n.previousWidth!==T&&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===_n.LegacyForceFit||e===_n.LegacyOff){this.legacyAutosizeColumns();return}if(e===_n.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let n=this.getCanvasNode(0,0),o=this.getViewportInnerWidth(),r,i,a,l=!1,d=0,u=0,f=0,p=0,y=0;for(r=0;r<this.columns.length;r++)i=this.columns[r],this.getColAutosizeWidth(i,r,n,t||!1,r),y+=i.autoSize?.autosizeMode===sr.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===sr.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,d+=i.autoSize?.widthPx||0,u+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let b=d-u;if(e===_n.FitViewportToCols){let w=d+(this.scrollbarDimensions?.width??0);e=_n.IgnoreViewport,this._options.viewportMaxWidthPx&&w>this._options.viewportMaxWidthPx?(w=this._options.viewportMaxWidthPx,e=_n.FitColsToViewport):this._options.viewportMinWidthPx&&w<this._options.viewportMinWidthPx&&(w=this._options.viewportMinWidthPx,e=_n.FitColsToViewport),L.width(this._container,w)}if(e===_n.FitColsToViewport)if(b>0&&u<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let w=o-u;i.autoSize?.sizeToRemaining?a=w*(i.autoSize?.widthPx||0)/b:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(l=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&u+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=_n.IgnoreViewport;else{let w=u-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!==sr.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=g/w*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),w-=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&&(l=!0),i.width=a)}if(e===_n.IgnoreViewport)for(r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(a=this.columns[r].autoSize?.widthPx||0,this.columns[r].rerenderOnResize&&this.columns[r].width!==a&&(l=!0),this.columns[r].width=a);this.reRenderColumns(l)}getColAutosizeWidth(e,t,n,o,r){let i=e.autoSize;if(i.widthPx=e.width,i.autosizeMode===sr.Locked||i.autosizeMode===sr.Guide)return;let a=this.getDataLength(),l=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(i.autosizeMode===sr.ContentIntelligent){let f=i.colDataTypeOf,p;if(a>0){let y=this.getDataItem(0);y&&(p=y[e.field],l.test(p)&&(p=Date.parse(p)),f=typeof p,f==="object"&&(p instanceof Date&&(f="date"),typeof moment<"u"&&p instanceof moment&&(f="moment")))}f==="boolean"&&(i.colValueArray=[!0,!1]),f==="number"&&(i.valueFilterMode=Sr.GetGreatestAndSub,i.rowSelectionMode=is.AllRows),f==="string"&&(i.valueFilterMode=Sr.GetLongestText,i.rowSelectionMode=is.AllRows,i.allowAddlPercent=5),f==="date"&&(i.colValueArray=[new Date(2009,8,30,12,20,20)]),f==="moment"&&typeof moment<"u"&&(i.colValueArray=[moment([2009,8,30,12,20,20])])}let d=i.contentSizePx=this.getColContentSize(e,t,n,o,r);d===0&&(d=i.widthPx||0);let u=i.allowAddlPercent?1+i.allowAddlPercent/100:1;d=d*u+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(i.autosizeMode===sr.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),i.widthPx=d}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,l,d,u=0,f=0;if(i.headerWidthPx=0,i.ignoreHeaderText||(i.headerWidthPx=this.getColHeaderWidth(e)),i.headerWidthPx===0&&(i.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),i.colValueArray)return f=this.getColWidth(e,n,i.colValueArray),Math.max(i.headerWidthPx,f);let p={};p.colIndex=t,p.rowCount=this.getDataLength(),p.startIndex=0,p.endIndex=p.rowCount-1,p.valueArr=null,p.getRowVal=b=>this.getDataItem(b)[e.field];let y=(o?i.rowSelectionModeOnInit:void 0)||i.rowSelectionMode;if(y===is.FirstRow&&(p.endIndex=0),y===is.LastRow&&(p.endIndex=p.startIndex=p.rowCount-1),y===is.FirstNRows&&(p.endIndex=Math.min(i.rowSelectionCount||0,p.rowCount)-1),i.valueFilterMode===Sr.DeDuplicate){let b={};for(l=p.startIndex;l<=p.endIndex;l++)b[p.getRowVal(l)]=!0;if(Object.keys)p.valueArr=Object.keys(b);else{p.valueArr=[];for(let w in b)b&&p.valueArr.push(w)}p.startIndex=0,p.endIndex=p.length-1}if(i.valueFilterMode===Sr.GetGreatestAndSub){let b,w=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),Math.abs(d)>w&&(b=d,w=Math.abs(d));b=""+b,b=Array(b.length+1).join("9"),b=+b,p.valueArr=[b],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Sr.GetLongestTextAndSub){for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length);d=Array(u+1).join("m"),a=this._options.autosizeTextAvgToMWidthRatio||0,p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Sr.GetLongestText){u=0;let b=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length,b=l);d=p.getRowVal(b),p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}return p.maxLen&&p.maxLen>30&&r>1&&(i.sizeToRemaining=!0),f=this.getColWidth(e,n,p)*a,Math.max(i.headerWidthPx,f)}getColWidth(e,t,n){let o=L.createDomElement("div",{className:"slick-row ui-widget-content"},t),r=L.createDomElement("div",{className:"slick-cell"},o);r.style.position="absolute",r.style.visibility="hidden",r.style.textOverflow="initial",r.style.whiteSpace="nowrap";let i,a,l=0,d="",u,f,p=e.autoSize.widthEvalMode===vd.TextOnly;if(e.autoSize?.widthEvalMode===vd.Auto){let y=!e.formatterOverride&&!e.formatter,b=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;p=y||b}if(this.canvas_context&&p){let y=getComputedStyle(r);for(this.canvas_context.font=y.fontSize+" "+y.fontFamily,i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,a=u?this.canvas_context.measureText(u).width:0,a>l&&(l=a,d=u);return r.textContent=d,a=r.offsetWidth,o.remove(),a}for(i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,this.applyFormatResultToCellNode(u,r),a=r.offsetWidth,a>l&&(l=a);return o.remove(),l}getColHeaderWidth(e){let t=0,n=this.getUID()+e.id,o=document.getElementById(n),r=`${n}_`,i=o.cloneNode(!0);if(o)i.id=r,i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",o.parentNode.insertBefore(i,o),t=i.offsetWidth,i.parentNode.removeChild(i);else{let a=this.getHeader(e);o=L.createDomElement("div",{id:r,className:"ui-state-default slick-state-default slick-header-column"},a);let l=L.createDomElement("span",{className:"slick-column-name"},o);this.applyHtmlCode(l,e.name),i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&o.classList.add(...L.classNameToList(e.headerCssClass)),t=o.offsetWidth,a.removeChild(o)}return t}legacyAutosizeColumns(){let e,t,n=0,o=0,r=0,i=[],a=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){i.push(0);continue}i.push(t.width||0),o+=t.width||0,t.resizable&&(n+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(r=o;o>a&&n;){let d=(o-a)/n;for(e=0;e<this.columns.length&&o>a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e];if(!t.resizable||u<=t.minWidth||u<=this.absoluteColumnMinWidth)continue;let f=Math.max(t.minWidth,this.absoluteColumnMinWidth),p=Math.floor(d*(u-f))||1;p=Math.min(p,u-f),o-=p,n-=p,i[e]-=p}if(r<=o)break;r=o}for(r=o;o<a;){let d=a/o;for(e=0;e<this.columns.length&&o<a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e],f;!t.resizable||t.maxWidth<=u?f=0:f=Math.min(Math.floor(d*u)-u,t.maxWidth-u||1e6)||1,o+=f,i[e]+=o<=a?f:0}if(r>=o)break;r=o}let l=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==i[e]&&(l=!0),this.columns[e].width=i[e]);this.reRenderColumns(l)}reRenderColumns(e){this.applyColumnHeaderWidths(),this.updateCanvasWidth(!0),this.trigger(this.onAutosizeColumns,{columns:this.columns}),e&&(this.invalidateAllRows(),this.render())}getVisibleColumns(){return this.columns.filter(e=>!e.hidden)}getColumnIndex(e){return this.columnsById[e]}applyColumnHeaderWidths(){if(!this.initialized)return;let e=0,t=this.getVisibleColumns();this._headers.forEach(n=>{for(let o=0;o<n.children.length;o++,e++){let r=n.children[o],i=((t[e]||{}).width||0)-this.headerColumnWidthDiff;L.width(r)!==i&&L.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=>{L.isDefined(o.sortAsc)||(o.sortAsc=!0);let r=this.getColumnIndex(o.columnId);if(L.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?(L.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),L.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=L.extend({},this._columnDefaults,t),t.autoSize=L.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(){L.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,L.isDefined(this.activeCellNode)){let i=L.offset(this.activeCellNode),a=Math.floor(L.offset(L.parents(this.activeCellNode,".grid-canvas")[0]).top),l=L.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&l&&(a-=this._options.frozenBottom?L.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(i.left,Math.ceil(i.top)-a);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!L.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(u=>u.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(u=>u.classList.add("active"))),this._options.editable&&t&&this.isCellPotentiallyEditable(this.activeRow,this.activeCell)&&(this._options.asyncEditorLoading?(window.clearTimeout(this.h_editorLoader),this.h_editorLoader=window.setTimeout(()=>{this.makeActiveCellEditable(void 0,n,r)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,n,r))}else this.activeRow=this.activeCell=null;o||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let n=this.getDataLength();return!(e<n&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=n||!this.columns[t]||this.columns[t].hidden||!this.getEditor(e,t))}makeActiveCellNormal(e=!1){if(this.currentEditor){if(this.trigger(this.onBeforeCellEditorDestroy,{editor:this.currentEditor}),this.currentEditor.destroy(),this.currentEditor=null,this.activeCellNode){let t=this.getDataItem(this.activeRow);if(this.activeCellNode.classList.remove("editable"),this.activeCellNode.classList.remove("invalid"),t){let n=this.columns[this.activeCell],o=this.getFormatter(this.activeRow,n)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,n),n,t,this);this.applyFormatResultToCellNode(o,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,n){this.makeActiveCellEditable(e,t,n)}makeActiveCellEditable(e,t,n){if(!this.activeCellNode)return;if(!this._options.editable)throw new Error("SlickGrid makeActiveCellEditable : should never get called when this._options.editable is false");if(window.clearTimeout(this.h_editorLoader),!this.isCellPotentiallyEditable(this.activeRow,this.activeCell))return;let o=this.columns[this.activeCell],r=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:r,column:o,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let i=e||this.getEditor(this.activeRow,this.activeCell);if(!i||typeof i!="function")return;!e&&!i.suppressClearOnEdit&&L.emptyElement(this.activeCellNode);let a=this.getItemMetadaWhenExists(this.activeRow);a=a?.columns;let l=a&&(a[o.id]||a[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:o,columnMetaData:l,item:r||{},event:n,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new i(d),r&&this.currentEditor&&(this.currentEditor.loadValue(r),t&&this.currentEditor?.preClick&&this.currentEditor.preClick()),this.serializedEditorValue=this.currentEditor?.serializeValue(),this.currentEditor?.position&&this.handleActiveCellPositionChange()}commitEditAndSetFocus(){this.getEditorLock()?.commitCurrentEdit()&&(this.setFocus(),this._options.autoEdit&&!this._options.autoCommitEdit&&this.navigateDown())}cancelEditAndSetFocus(){this.getEditorLock()?.cancelCurrentEdit()&&this.setFocus()}commitCurrentEdit(){let e=this,t=e.getDataItem(e.activeRow),n=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let o=e.currentEditor.validate();if(o.valid){let r=e.activeRow,i=e.activeCell,a=e.currentEditor,l=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let u={row:r,cell:i,editor:a,serializedValue:l,prevSerializedValue:d,execute:()=>{a.applyValue(t,l),e.updateRow(r),e.trigger(e.onCellChange,{command:"execute",row:r,cell:i,item:t,column:n})},undo:()=>{a.applyValue(t,d),e.updateRow(r),e.trigger(e.onCellChange,{command:"undo",row:r,cell:i,item:t,column:n})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,n,u)):(u.execute(),e.makeActiveCellNormal(!0))}else{let u={};e.currentEditor.applyValue(u,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:u,column:n})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),L.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 ai(n,t),r=t||{};return r.grid=this,e.notify(r,o,this)}handleCellMouseOut(e){this.trigger(this.onMouseLeave,{},e)}handleHeaderMouseHoverOn(e){e?.target.classList.add("ui-state-hover","slick-state-hover")}handleHeaderMouseHoverOff(e){e?.target.classList.remove("ui-state-hover","slick-state-hover")}handleSelectedRangesChanged(e,t){let n=e.getNativeEvent(),o=this.selectedRows.slice(0);this.selectedRows=[];let r={};for(let i=0;i<t.length;i++)for(let a=t[i].fromRow;a<=t[i].toRow;a++){r[a]||(this.selectedRows.push(a),r[a]={});for(let l=t[i].fromCell;l<=t[i].toCell;l++)this.canCellBeSelected(a,l)&&(r[a][this.columns[l].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",r),this.simpleArrayEquals(o,this.selectedRows)){let i=n?.detail?.caller??"click",a=new Set(this.getSelectedRows()),l=new Set(o),d=Array.from(a).filter(f=>!l.has(f)),u=Array.from(l).filter(f=>!a.has(f));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:o,caller:i,changedSelectedRows:d,changedUnselectedRows:u},e)}}handleMouseWheel(e,t,n,o){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-o*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragInit,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDragStart(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragStart,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDrag(e,t){return this.trigger(this.onDrag,t,e).getReturnValue()}handleDragEnd(e,t){this.trigger(this.onDragEnd,t,e)}handleKeyDown(e){let t=this.trigger(this.onKeyDown,{row:this.activeRow,cell:this.activeCell},e).isImmediatePropagationStopped();if(!t&&!e.shiftKey&&!e.altKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;e.ctrlKey&&e.key==="Home"?this.navigateTopStart():e.ctrlKey&&e.key==="End"?this.navigateBottomEnd():e.ctrlKey&&e.key==="ArrowUp"?this.navigateTop():e.ctrlKey&&e.key==="ArrowDown"?this.navigateBottom():e.ctrlKey&&e.key==="ArrowLeft"||!e.ctrlKey&&e.key==="Home"?this.navigateRowStart():(e.ctrlKey&&e.key==="ArrowRight"||!e.ctrlKey&&e.key==="End")&&this.navigateRowEnd()}if(!t)if(!e.shiftKey&&!e.altKey&&!e.ctrlKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which===mo.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===mo.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===mo.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===mo.LEFT?t=this.navigateLeft():e.which===mo.RIGHT?t=this.navigateRight():e.which===mo.UP?t=this.navigateUp():e.which===mo.DOWN?t=this.navigateDown():e.which===mo.TAB?t=this.navigateNext():e.which===mo.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===mo.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 ai?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===JN,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=L.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=L.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=L.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=L.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&&L.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&&L.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&&L.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:n},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&L.storage.get(t,"column");this.trigger(this.onFooterClick,{column:n},e)}handleCellMouseOver(e){this.trigger(this.onMouseEnter,{},e)}handleActiveCellPositionChange(){if(this.activeCellNode&&(this.trigger(this.onActiveCellPositionChanged,{}),this.currentEditor)){let e=this.getActiveCellPosition();this.currentEditor.show&&this.currentEditor.hide&&(e.visible?this.currentEditor.show():this.currentEditor.hide()),this.currentEditor.position&&this.currentEditor.position(e)}}actionThrottle(e,t){let n=!1,o=!1,r=()=>{n?o=!0:a()},i=()=>{o=!1},a=()=>{n=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(l,t),e.call(this)},l=()=>{o?(i(),a()):n=!1};return{enqueue:r.bind(this),dequeue:i.bind(this)}}getCellFromEvent(e){let t=e instanceof ai?e.getNativeEvent():e,n=t.touches?t.touches[0]:t,o=t.target.closest(".slick-cell");if(!o)return null;let r=this.getRowFromNode(o.parentNode);if(this.hasFrozenRows){let a=0,l=L.offset(L.parents(o,".grid-canvas")[0]);L.parents(o,".grid-canvas-bottom").length&&(a=this._options.frozenBottom?L.height(this._canvasTopL):this.frozenRowsHeight),r=this.getCellFromPoint(n.clientX-l.left,n.clientY-l.top+a+document.documentElement.scrollTop).row}let i=this.getCellFromNode(o);return!L.isDefined(r)||!L.isDefined(i)?null:{row:r,cell:i}}applyHtmlCode(e,t,n){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)n?.emptyTarget!==!1&&L.emptyElement(e),e.appendChild(t);else{if(n?.skipEmptyReassignment!==!1&&!L.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 ai&&(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 ai&&(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&&L.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(L.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),L.width(this._headerL,this.headersWidthL),L.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let i=L.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");L.width(this._canvasTopR,this.canvasWidthR),L.width(this._paneHeaderL,this.canvasWidthL),L.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),L.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),L.width(this._paneTopL,this.canvasWidthL),L.setStyleSize(this._paneTopR,"left",this.canvasWidthL),L.width(this._paneTopR,this.viewportW-this.canvasWidthL),L.width(this._headerRowScrollerL,this.canvasWidthL),L.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),L.width(this._headerRowL,this.canvasWidthL),L.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(L.width(this._footerRowScrollerL,this.canvasWidthL),L.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),L.width(this._footerRowL,this.canvasWidthL),L.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&L.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),L.width(this._viewportTopL,this.canvasWidthL),L.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(L.width(this._paneBottomL,this.canvasWidthL),L.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),L.width(this._viewportBottomL,this.canvasWidthL),L.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),L.width(this._canvasBottomL,this.canvasWidthL),L.width(this._canvasBottomR,this.canvasWidthR))}else L.width(this._paneHeaderL,"100%"),L.width(this._paneTopL,"100%"),L.width(this._headerRowScrollerL,"100%"),L.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(L.width(this._footerRowScrollerL,"100%"),L.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&L.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),L.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(L.width(this._viewportBottomL,"100%"),L.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),L.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),L.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(L.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),L.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()?(L.show(this._paneHeaderR),L.show(this._paneTopR),this.hasFrozenRows?(L.show(this._paneBottomL),L.show(this._paneBottomR)):(L.hide(this._paneBottomR),L.hide(this._paneBottomL))):(L.hide(this._paneHeaderR),L.hide(this._paneTopR),L.hide(this._paneBottomR),this.hasFrozenRows?L.show(this._paneBottomL):(L.hide(this._paneBottomR),L.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=L.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){L.slideDown(t,this.resizeCanvas.bind(this));return}L.show(t),this.resizeCanvas()}else{if(r){L.slideUp(t,this.resizeCanvas.bind(this));return}L.hide(t),this.resizeCanvas()}}setTopPanelVisibility(e,t){this.togglePanelVisibility("showTopPanel",this._topPanelScrollers,e,t)}setHeaderRowVisibility(e,t){this.togglePanelVisibility("showHeaderRow",this._headerRowScroller,e,t)}setColumnHeaderVisibility(e,t){this.togglePanelVisibility("showColumnHeader",this._headerScroller,e,t)}setFooterRowVisibility(e,t){this.togglePanelVisibility("showFooterRow",this._footerRowScroller,e,t)}setPreHeaderPanelVisibility(e,t){this.togglePanelVisibility("showPreHeaderPanel",[this._preHeaderPanelScroller,this._preHeaderPanelScrollerR],e,t)}setTopHeaderPanelVisibility(e){this.togglePanelVisibility("showTopHeaderPanel",this._topHeaderPanelScroller,e)}getRowHeight(){return this._options.rowHeight}getRowTop(e){return Math.round(this._options.rowHeight*e-this.offset)}getRowBottom(e){return this.getRowTop(e)+this._options.rowHeight}getRowFromPosition(e){return Math.floor((e+this.offset)/this._options.rowHeight)}appendRowHtml(e,t,n,o,r){let i=this.getDataItem(n),a=n<r&&!i,l="slick-row"+(this.hasFrozenRows&&n<=this._options.frozenRow?" frozen":"")+(a?" loading":"")+(n===this.activeRow&&this._options.showCellSelection?" active":"")+(n%2===1?" odd":" even");i||(l+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(n);d?.cssClasses&&(l+=` ${d.cssClasses}`);let u=L.createDomElement("div",{className:`ui-widget-content ${l}`,role:"row",dataset:{row:`${n}`}}),f=this.getFrozenRowOffset(n),p=this.getRowTop(n)-f;this._options.rowTopOffsetRenderType==="transform"?u.style.transform=`translateY(${p}px)`:u.style.top=`${p}px`;let y;e.push(u),this.hasFrozenColumns()&&(y=u.cloneNode(!0),t.push(y));let b=this.columns.length,w,g,v,T,P=!0;for(let x=0,S=b;x<S;x++){if(P=!0,T=this.columns[x],!T||T.hidden)continue;g=1,v=1,w=null,d?.columns&&(w=d.columns[T.id]||d.columns[x],g=w?.colspan||1,v=w?.rowspan||1,g==="*"&&(g=S-x),v>r-n&&(v=r-n)),!this._options.enableCellRowSpan&&v>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let C=g;if(!this.getParentRowSpanByCell(n,x)){if(this.columnPosRight[Math.min(S-1,x+C-1)]>o.leftPx){if(!T.alwaysRenderColumn&&this.columnPosLeft[x]>o.rightPx&&(P=!1),P){let O=this.hasFrozenColumns()&&x>this._options.frozenColumn?y:u;this.appendCellHtml(O,n,x,C,v,w,i)}}else(T.alwaysRenderColumn||this.hasFrozenColumns()&&x<=this._options.frozenColumn)&&this.appendCellHtml(u,n,x,C,v,w,i);C>1&&(x+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let l=this.columns[n],d=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(l.cssClass?` ${l.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[l.id]&&(d+=` ${this.cellCssClasses[v][t][l.id]}`)});let u=null,f="";a&&(u=this.getDataItemValueForColumn(a,l),f=this.getFormatter(t,l)(t,n,u,l,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:u,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=L.classNameToList((y?" ":"")+f.addClasses).join(" "));let b=f?.toolTip?`${f.toolTip}`:"",w=L.createDomElement("div",{className:L.classNameToList(`${d} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});w.setAttribute("aria-describedby",this.uid+l.id),b&&w.setAttribute("title",b);let g=this.getCellHeight(t,r);if(r>1&&g!==this._options.rowHeight-this.cellHeightDiff&&(w.style.height=`${g||0}px`),l.hasOwnProperty("cellAttrs")&&l.cellAttrs instanceof Object&&Object.keys(l.cellAttrs).forEach(v=>{l.cellAttrs.hasOwnProperty(v)&&w.setAttribute(v,l.cellAttrs[v])}),a){let v=Object.prototype.toString.call(f)!=="[object Object]"?f:f.html||f.text;this.applyHtmlCode(w,v)}e.appendChild(w),f.insertElementAfterTarget&&L.insertAfterElement(w,f.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(n),this.rowsCache[t].cellColSpans[n]=o}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let n=e.top,o=e.bottom;n<=o;n++){let r=this.getRowSpanIntersect(n);r!==null&&t.add(r)}Object.keys(this.rowsCache).forEach(n=>{if(this.rowsCache){let o=+n,r=!0;this.hasFrozenRows&&(this._options.frozenBottom&&o>=this.actualFrozenRow||!this._options.frozenBottom&&o<=this.actualFrozenRow)&&(r=!1),(o=parseInt(n,10))!==this.activeRow&&(o<e.top||o>e.bottom)&&r&&!t.has(o)&&this.removeRowFromCache(o)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let n=e.length,o=new Set,r=new Set,i=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let a=0;a<n;a++)if(t=e[a],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!i){o.add(t);let l=this.getRowSpanIntersect(t);l!==null&&o.add(l)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let l=this.getRowSpanColumnIntersects(a);for(let d of l){let u=this.getParentRowSpanByCell(a,d);u&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(u.range),r.add(u.range.split(":").map(Number)[0]))}}for(let a of Array.from(r))this.remapRowSpanMetadataByRow(a)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let n=this.getRowSpanIntersect(e);n!==null&&t.push(n)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(n=>n.parentElement?.removeChild(n)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let n=this.getCellNode(e,t);if(!n)return;let o=this.columns[t],r=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(r);else{let i=r?this.getFormatter(e,o)(e,t,this.getDataItemValueForColumn(r,o),o,r,this):"";this.applyFormatResultToCellNode(i,n),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let n,o=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(r=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(r))return;let i=+r,a=this.columns[i],l=t.cellNodesByColumnIdx[i];e===this.activeRow&&i===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(o):o?(n=this.getFormatter(e,a)(e,i,this.getDataItemValueForColumn(o,a),a,o,this),this.applyFormatResultToCellNode(n,l)):L.emptyElement(l)}),this.invalidatePostProcessingResults(e)}getViewportRowCount(){let e=this.getViewportHeight(),t=this.getScrollbarDimensions()?.height??0;return Math.floor((e-t)/this._options.rowHeight)}getViewportHeight(){if((!this._options.autoHeight||this._options.frozenColumn!==-1)&&(this.topPanelH=this._options.showTopPanel?this._options.topPanelHeight+this.getVBoxDelta(this._topPanelScrollers[0]):0,this.headerRowH=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,this.footerRowH=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0),this._options.autoHeight){let e=this._paneHeaderL.offsetHeight;e+=this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,e+=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,e+=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0,e+=this.getCanvasWidth()>this.viewportW?this.scrollbarDimensions?.height??0:0,this.viewportH=this._options.rowHeight*this.getDataLengthIncludingAddNew()+(this._options.frozenColumn===-1?e:0)}else{let e=getComputedStyle(this._container),t=e.boxSizing!=="content-box"?this.getVBoxDelta(this._container):0,n=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,o=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,r=this._options.showColumnHeader?L.toFloat(L.height(this._headerScroller[0])):0;this.viewportH=L.toFloat(e.height)-L.toFloat(e.paddingTop)-L.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(L.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),L.height(this._container,n)}this._paneTopL.style.position="relative"}let e=L.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),L.setStyleSize(this._paneTopL,"top",e||e),L.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||L.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let n=L.height(this._paneHeaderL);n&&(n+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),L.setStyleSize(this._paneTopR,"top",n),L.height(this._paneTopR,this.paneTopH),L.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(L.setStyleSize(this._paneBottomL,"top",t),L.height(this._paneBottomL,this.paneBottomH),L.setStyleSize(this._paneBottomR,"top",t),L.height(this._paneBottomR,this.paneBottomH),L.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(L.width(this._paneBottomL,"100%"),L.height(this._paneBottomL,this.paneBottomH),L.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(L.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(L.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&L.height(this._canvasBottomR,this.frozenRowsHeight)):(L.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&L.height(this._canvasTopR,this.frozenRowsHeight))):L.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===_n.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?L.height(this._canvasBottomL):L.height(this._canvasTopL);this.hasFrozenRows?n=this.getDataLength()-this._options.frozenRow:n=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let r=L.height(this._viewportScrollContainerY),i=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&n*this._options.rowHeight>r,this.makeActiveCellNormal();let a=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let u=+d;u>a&&this.removeRowFromCache(u)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>a&&this.resetActiveCell(),o=this.h,this._options.autoHeight?this.h=this._options.rowHeight*n:(this.th=Math.max(this._options.rowHeight*n,r-(this.scrollbarDimensions?.height??0)),this.th<this.maxSupportedCssHeight?(this.h=this.ph=this.th,this.n=1,this.cj=0):(this.h=this.maxSupportedCssHeight,this.ph=this.h/100,this.n=Math.floor(this.th/this.ph),this.cj=(this.th-this.h)/(this.n-1))),(this.h!==o||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(L.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&L.height(this._canvasBottomR,this.h)):(L.height(this._canvasTopL,this.h),L.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let l=this.scrollTop+this.offset<=this.th-r;this.th===0||this.scrollTop===0?this.page=this.offset=0:l?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-r+(this.scrollbarDimensions?.height??0)),this.h!==o&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===_n.LegacyForceFit&&i!==this.viewportHasVScroll&&this.autosizeColumns(),this.updateCanvasWidth(!1)}getViewport(e,t){return this.getVisibleRange(e,t)}getVisibleRange(e,t){return e??(e=this.scrollTop),t??(t=this.scrollLeft),{top:this.getRowFromPosition(e),bottom:this.getRowFromPosition(e+this.viewportH)+1,leftPx:t,rightPx:t+this.viewportW}}getRenderedRange(e,t){let n=this.getVisibleRange(e,t),o=Math.round(this.viewportH/this._options.rowHeight),r=this._options.minRowBuffer;return this.vScrollDir===-1?(n.top-=o,n.bottom+=r):this.vScrollDir===1?(n.top-=r,n.bottom+=o):(n.top-=r,n.bottom+=r),n.top=Math.max(0,n.top),n.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,n.bottom),n.leftPx-=this.viewportW,n.rightPx+=this.viewportW,n.leftPx=Math.max(0,n.leftPx),n.rightPx=Math.min(this.canvasWidth,n.rightPx),n}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let n=t.rowNode,o=Array.from(n[0].children);n.length>1&&(o=o.concat(Array.from(n[1].children)));let r=o.length-1;for(;t.cellRenderQueue.length;){let i=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[i]=o[r--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let n=this.rowsCache[t],o=[];Object.keys(n.cellNodesByColumnIdx).forEach(a=>{if(!n.cellNodesByColumnIdx.hasOwnProperty(a))return;let l=+a;if(l<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[l]?.alwaysRenderColumn)return;let d=n.cellColSpans[l];(this.columnPosLeft[l]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(l||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(l)===this.activeCell||o.push(l))});let r,i;for(;L.isDefined(r=o.pop());)i=n.cellNodesByColumnIdx[r],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[r]?this.queuePostProcessedCellForCleanup(i,r,t):i.parentElement?.removeChild(i),delete n.cellColSpans[r],delete n.cellNodesByColumnIdx[r],this.postProcessedRows[t]&&delete this.postProcessedRows[t][r]}cleanUpAndRenderCells(e){let t,n=document.createElement("div"),o=[],r,i,a,l=this.columns.length;for(let f=e.top,p=e.bottom;f<=p;f++){if(t=this.rowsCache[f],!t)continue;this.ensureCellNodesInRowsCache(f),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(f)===null)&&this.cleanUpCells(e,f),r=0;let y=this.getItemMetadaWhenExists(f);y=y?.columns;let b=this.getDataItem(f);for(let w=0,g=l;w<g;w++){if(!this.columns[w]||this.columns[w].hidden)continue;if(this.columnPosLeft[w]>e.rightPx)break;if(L.isDefined(i=t.cellColSpans[w])){w+=i>1?i-1:0;continue}i=1,a=null,y&&(a=y[this.columns[w].id]||y[w],i=a?.colspan??1,i==="*"&&(i=g-w));let v=i;if(!this.getParentRowSpanByCell(f,w)){if(this.columnPosRight[Math.min(g-1,w+v-1)]>e.leftPx){let T=this.getRowspan(f,w);this.appendCellHtml(n,f,w,v,T,a,b),r++}w+=v>1?v-1:0}}r&&o.push(f)}if(!n.children.length)return;let d,u;for(;L.isDefined(d=o.pop());){t=this.rowsCache[d];let f;for(;L.isDefined(f=t.cellRenderQueue.pop());)u=n.lastChild,u&&(this.hasFrozenColumns()&&f>this._options.frozenColumn?t.rowNode[1].appendChild(u):t.rowNode[0].appendChild(u),t.cellNodesByColumnIdx[f]=u)}}renderRows(e){let t=[],n=[],o=[],r=!1,i=this.getDataLength(),a=new Set,l=new Set;for(let u=e.top,f=e.bottom;u<=f;u++)if(!(this.rowsCache[u]||this.hasFrozenRows&&this._options.frozenBottom&&u===this.getDataLength())){if(this.renderedRows++,o.push(u),l.add(u),this.rowsCache[u]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let p=this.getRowSpanIntersect(u);p!==null&&l.add(p)}this.appendRowHtml(t,n,u,e,i),a.add(u),this.activeCellNode&&this.activeRow===u&&(r=!0),this.counter_rows_rendered++}let d=this.setDifference(l,a);if(d.size>0&&d.forEach(u=>{this.removeRowFromCache(u),o.push(u),this.rowsCache[u]=this.createEmptyCachingRow(),this.appendRowHtml(t,n,u,e,i)}),o.length){let u=document.createElement("div"),f=document.createElement("div");t.forEach(p=>u.appendChild(p)),n.forEach(p=>f.appendChild(p));for(let p=0,y=o.length;p<y;p++)this.hasFrozenRows&&o[p]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasBottomL.appendChild(u.firstChild),this._canvasBottomR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasBottomL.appendChild(u.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasTopL.appendChild(u.firstChild),this._canvasTopR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasTopL.appendChild(u.firstChild));r&&(this.activeCellNode=this.getCellNode(this.activeRow,this.activeCell))}}updateRowPositions(){for(let e in this.rowsCache)if(this.rowsCache){let t=e?parseInt(e,10):0,n=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?n.style.transform=`translateY(${this.getRowTop(t)}px)`:n.style.top=`${this.getRowTop(t)}px`}}render(){if(!this.initialized)return;this.scrollThrottle.dequeue();let e=this.getVisibleRange(),t=this.getRenderedRange();if(this.cleanupRows(t),this.lastRenderedScrollLeft!==this.scrollLeft){if(this.hasFrozenRows){let n=L.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)-L.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+L.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>n&&(this._viewportScrollContainerX.scrollLeft=Math.min(e,t-this._viewportScrollContainerX.clientWidth),this.handleScroll(),this.render())}scrollColumnIntoView(e){this.internalScrollColumnIntoView(this.columnPosLeft[e],this.columnPosRight[e])}updatePagingStatusFromView(e){this.pagingActive=e.pageSize!==0,this.pagingIsLastPage=e.pageNum===e.totalPages-1}getRowSpanColumnIntersects(e){return this.getRowSpanIntersection(e,"columns")}getRowSpanIntersect(e){return this.getRowSpanIntersection(e)}getRowSpanIntersection(e,t){let n=[],o=null;for(let r=0,i=this.columns.length;r<i;r++){let a=this._colsWithRowSpanCache[r];if(a)for(let l of Array.from(a)){let[d,u]=l.split(":").map(Number);if(e>=d&&e<=u)if(t==="columns")n.push(r);else{o=d;break}}}return t==="columns"?n:o}getParentRowSpanByCell(e,t,n=!0){let o=null,r=this._colsWithRowSpanCache[t]||new Set;for(let i of Array.from(r)){let[a,l]=i.split(":").map(Number);if((n?e>a:e>=a)&&e<=l){o={start:a,end:l,range:i};break}}return o}remapAllColumnsRowSpan(){let e=this.getDataLength();if(e>0){this._colsWithRowSpanCache={};for(let t=0;t<e;t++)this.remapRowSpanMetadataByRow(t);this._rowSpanIsCached=!0}}remapRowSpanMetadataByRow(e){let t=this.getItemMetadaWhenExists(e);t?.columns&&Object.keys(t.columns).forEach(n=>{let o=+n,r=t.columns[o],i=+(r?.colspan||1),a=+(r?.rowspan||1);this.remapRowSpanMetadata(e,o,i,a)})}remapRowSpanMetadata(e,t,n,o){var r,i,a;if(o>1){let l=`${e}:${e+o-1}`;if((r=this._colsWithRowSpanCache)[t]??(r[t]=new Set),this._colsWithRowSpanCache[t].add(l),n>1)for(let d=1;d<n;d++)(i=this._colsWithRowSpanCache)[a=t+d]??(i[a]=new Set),this._colsWithRowSpanCache[t+d].add(l)}}createEmptyCachingRow(){return{rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]}}scrollRowIntoView(e,t){if(!this.hasFrozenRows||!this._options.frozenBottom&&e>this.actualFrozenRow-1||this._options.frozenBottom&&e<this.actualFrozenRow-1){let n=L.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&&L.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||!L.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=!L.isDefined(this.activeCell)||!L.isDefined(this.activeRow);if(this._options.enableCellNavigation&&L.isDefined(this.activeRow)){let o=0,r=null,i=this.activePosX;for(;o<=this.activePosX;)this.canCellBeActive(e,o)&&(r=o,(!L.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(...L.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(...L.classNameToList(e.addClasses)),e.toolTip&&t.setAttribute("title",e.toolTip)}startPostProcessing(){this._options.enableAsyncPostRender&&(window.clearTimeout(this.h_postrender),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay))}startPostProcessingCleanup(){this._options.enableAsyncPostRenderCleanup&&(window.clearTimeout(this.h_postrenderCleanup),this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay))}invalidatePostProcessingResults(e){typeof this.postProcessedRows[e]=="object"&&Object.keys(this.postProcessedRows[e]).forEach(t=>{this.postProcessedRows[e].hasOwnProperty(t)&&(this.postProcessedRows[e][t]="C")}),this.postProcessFromRow=Math.min(this.postProcessFromRow,e),this.postProcessToRow=Math.max(this.postProcessToRow,e),this.startPostProcessing()}asyncPostProcessRows(){let e=this.getDataLength();for(;this.postProcessFromRow<=this.postProcessToRow;){let t=this.vScrollDir>=0?this.postProcessFromRow++:this.postProcessToRow--,n=this.rowsCache[t];if(!(!n||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(n.cellNodesByColumnIdx).forEach(o=>{if(n.cellNodesByColumnIdx.hasOwnProperty(o)){let r=+o,i=this.columns[r],a=this.postProcessedRows[t][r];if(i.asyncPostRender&&a!=="R"){let l=n.cellNodesByColumnIdx[r];l&&i.asyncPostRender(l,t,this.getDataItem(t),i,a==="C"),this.postProcessedRows[t][r]="R"}}}),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay);return}}}asyncPostProcessCleanupRows(){if(this.postProcessedCleanupQueue.length>0){let e=this.postProcessedCleanupQueue[0].groupId;for(;this.postProcessedCleanupQueue.length>0&&this.postProcessedCleanupQueue[0].groupId===e;){let t=this.postProcessedCleanupQueue.shift();if(t?.actionType==="R"&&t.node.forEach(n=>{n.remove()}),t?.actionType==="C"){let n=this.columns[t.columnIdx];n.asyncPostRenderCleanup&&t.node&&n.asyncPostRenderCleanup(t.node,t.rowIdx,n)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let n,o,r;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(i=>{this.rowsCache&&(r=t?.[i],o=e?.[i],r&&Object.keys(r).forEach(a=>{(!o||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.remove(r[a]))}),o&&Object.keys(o).forEach(a=>{(!r||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.add(o[a]))}))})}addCellCssStyles(e,t){if(this.cellCssClasses[e])throw new Error(`SlickGrid addCellCssStyles: cell CSS hash with key "${e}" already exists.`);this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,null),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}removeCellCssStyles(e){this.cellCssClasses[e]&&(this.updateCellCssStylesOnRenderedRows(null,this.cellCssClasses[e]),delete this.cellCssClasses[e],this.trigger(this.onCellCssStylesChanged,{key:e,hash:null,grid:this}))}setCellCssStyles(e,t){let n=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,n),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,n=250){let o=(r,i)=>{i<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{i%2===0?r.classList.add(this._options.cellFlashingCssClass||""):r.classList.remove(this._options.cellFlashingCssClass||""),o(r,i-1)},n))};if(this.rowsCache[e]){let r=this.getCellNode(e,t);r&&o(r,5)}}highlightRow(e,t){let n=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(n?.rowNode)&&this._options.rowHighlightCssClass&&(n.rowNode.forEach(o=>o.classList.add(...L.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{n.rowNode?.forEach(o=>o.classList.remove(...L.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=L.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),n=L.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=L.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let o=e*2;L.height(n,o);let r=L.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+=L.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=L.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+=L.toFloat(r[a])),t.forEach(a=>this.headerColumnHeightDiff+=L.toFloat(r[a]))),o.remove();let i=L.createDomElement("div",{className:"slick-row"},this._canvas[0]);o=L.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},i),r=getComputedStyle(o),r.boxSizing!=="border-box"&&(e.forEach(a=>this.cellWidthDiff+=L.toFloat(r[a])),t.forEach(a=>this.cellHeightDiff+=L.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 L.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 l=0;l<t;l++)!this.columns[l]||this.columns[l].hidden||(i+=this.columns[l].width||0,this._options.frozenColumn===l&&(i=0));let a=i+(this.columns[t]?.width||0);return{top:o,left:i,bottom:r,right:a}}absBox(e){let t={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:e.offsetWidth,height:e.offsetWidth,visible:!0};t.bottom=t.top+t.height,t.right=t.left+t.width;let n=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let o=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&o.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&o.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===n&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,n=e.offsetParent),t.bottom=t.top+t.height,t.right=t.left+t.width}return t}getActiveCellPosition(){return this.absBox(this.activeCellNode)}getGridPosition(){return this.absBox(this._container)}getCellEditor(){return this.currentEditor}getActiveCell(){return this.activeCellNode?{row:this.activeRow,cell:this.activeCell}:null}getActiveCellNode(){return this.activeCellNode}getTextSelection(){let e=null;if(window.getSelection){let t=window.getSelection();(t?.rangeCount??0)>0&&(e=t.getRangeAt(0))}return e}setTextSelection(e){if(window.getSelection&&e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}}sanitizeHtmlString(e,t){if(!this._options.sanitizer||typeof e!="string")return e;let n=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&n!==e&&(console.log(`sanitizer altered html: ${e} --> ${n}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),n}getRowspan(e,t){let n=1,o=this.getItemMetadaWhenExists(e);return o?.columns&&Object.keys(o.columns).forEach(r=>{let i=Number(r);if(i===t){let a=o.columns[i];n=Number(a?.rowspan||1)}}),n}findFocusableRow(e,t,n){let o=e,r=this._colsWithRowSpanCache[t]||new Set,i=!1;return Array.from(r).forEach(a=>{let[l,d]=a.split(":").map(Number);!i&&e>=l&&e<=d&&(o=n==="up"?l:d,this.canCellBeActive(o,t)&&(i=!0))}),o<0&&(o=0),o}findFirstFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);if(n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)){o=t;break}t+=this.getColspan(n,t)}return{cell:o,row:n}}findLastFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)&&(o=t),t+=this.getColspan(n,t)}return{cell:o,row:n}}rowsToRanges(e){let t=[],n=this.columns.length-1;for(let o=0;o<e.length;o++)t.push(new eA(e[o],0,e[o],n));return t}findSpanStartingCell(e,t){let n=this.getParentRowSpanByCell(e,t),o=n!==null&&n.start!==e?n.start:e,r=0,i=0;for(;r<this.columns.length;){if(r+=this.getColspan(o,r),r>t)return r=i,{cell:r,row:o};i=r}return{cell:r,row:o}}gotoRight(e,t,n,o){if(t>=this.columns.length)return null;let r=t+1,i=n;do{let a=this.findSpanStartingCell(n,r);if(i=a.row,r=a.cell,this.canCellBeActive(i,r)&&r>t)break;r+=this.getColspan(i,a.cell)}while(r<this.columns.length);return r<this.columns.length?{row:i,cell:r,posX:r,posY:n}:null}gotoLeft(e,t,n,o){if(t<=0)return null;let r=this.findFirstFocusableCell(e);if(r.cell===null||r.cell>=t)return null;let i,a={row:e,cell:r.cell,posX:r.cell,posY:n};for(;;){if(i=this.gotoRight(a.row,a.cell,a.posY,a.posX),!i)return null;if(i.cell>=t){let l=this.findFocusableRow(n,a.cell,"up");return l!==a.row&&(a.row=l),a}a=i}}gotoDown(e,t,n,o){let r,i=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,o),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e<=i&&!this.canCellBeActive(e,r));return e<=i?{row:e,cell:r,posX:o,posY:e}:null}gotoUp(e,t,n,o){let r;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,o,"up"),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,r));return t<=this.columns.length?{row:e,cell:r,posX:o,posY:e}:null}gotoNext(e,t,n,o){if(!L.isDefined(e)&&!L.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(!L.isDefined(e)&&!L.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()}};/**
|
|
275
275
|
* @license
|
|
276
276
|
* (c) 2009-present Michael Leibman
|
|
277
277
|
* michael{dot}leibman{at}gmail{dot}com
|
|
@@ -294,7 +294,7 @@ _e.version="2.30.1";nD(Ot);_e.fn=ye;_e.min=zO;_e.max=YO;_e.now=UO;_e.utc=Eo;_e.u
|
|
|
294
294
|
`;le(Ls)(({theme:e})=>({"& .slick-container":{userSelect:"none",maxWidth:"100%",height:"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:`${nm} infinite 0.5s linear`,"& input":{animation:`${nm} 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"}}}}}));const aA={id:Wd,field:Wd};function lA(e,t,n){return n?"<span>✎</span>":""}const cA={id:"isEdited",name:"✎",field:"isEdited",formatter:lA,focusable:!1,sortable:!0,sortAs:jo.NUMBER,cssClass:"text-center",maxWidth:30};class dA{passed(t,n,o){if(!n[1]&&!n[2])return!0;switch(o){case Ve.Boolean:return this.boolean(t,n);case Ve.DateBetween:return this.dateBetween(t,n);case Ve.DateEqual:return this.dateEqual(t,n[1]);case Ve.DateFrom:return this.dateFrom(t,n[1]);case Ve.DateTo:return this.dateTo(t,n[1]);case Ve.MultipleSelect:return this.multipleSelect(t,n[1]);case Ve.NumberBetween:return this.numberBetween(t,n);case Ve.NumberEqual:return this.numberEqual(t,n[1]);case Ve.NumberFrom:return this.numberFrom(t,n[1]);case Ve.NumberTo:return this.numberTo(t,n[1]);case Ve.TextContain:return this.textContain(t,n[1]);case Ve.TextEqual:return this.textEqual(t,n[1]);case Ve.TextNotContain:return!this.textContain(t,n[1]);case Ve.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 fs(t)>=fs(n)}dateTo(t,n){return fs(t)<=fs(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 uA=new dA,hA=[sn.Date,sn.Boolean,sn.Number];class fA extends hv{filterFn(t,n){if(!n.columnFilters)return!0;const o=this.grid;if(!o)return!0;const r=o.getColumns(),i=Object.keys(n.columnFilters);for(let a=0;a<i.length;a++){const l=i[a],d=r[o.getColumnIndex(l)],{filterId:u,group:f,value:p}=n.columnFilters[l];let y=t[d?.field];if(!hA.includes(f)){const b=d?.formatter;b&&(y=b(0,0,y,d,t,o))}if(!uA.passed(y,p,u))return!1}return!0}reset(){this.filter.reset(),this.tableId&&ur.highlightAllColumns(this.args,this.tableId)}}function pA(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 il={exports:{}},mA=il.exports,om;function gA(){return om||(om=1,function(e,t){(function(n,o){e.exports=o()})(mA,function(){var n;function o(){return n.apply(null,arguments)}function r(c){n=c}function i(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function a(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function l(c,h){return Object.prototype.hasOwnProperty.call(c,h)}function d(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var h;for(h in c)if(l(c,h))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function p(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function y(c,h){var m=[],_,I=c.length;for(_=0;_<I;++_)m.push(h(c[_],_));return m}function b(c,h){for(var m in h)l(h,m)&&(c[m]=h[m]);return l(h,"toString")&&(c.toString=h.toString),l(h,"valueOf")&&(c.valueOf=h.valueOf),c}function w(c,h,m,_){return Lh(c,h,m,_,!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(c){return c._pf==null&&(c._pf=g()),c._pf}var T;Array.prototype.some?T=Array.prototype.some:T=function(c){var h=Object(this),m=h.length>>>0,_;for(_=0;_<m;_++)if(_ in h&&c.call(this,h[_],_,h))return!0;return!1};function P(c){var h=null,m=!1,_=c._d&&!isNaN(c._d.getTime());if(_&&(h=v(c),m=T.call(h.parsedDateParts,function(I){return I!=null}),_=h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&m),c._strict&&(_=_&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=_;else return _;return c._isValid}function x(c){var h=w(NaN);return c!=null?b(v(h),c):v(h).userInvalidated=!0,h}var S=o.momentProperties=[],C=!1;function O(c,h){var m,_,I,G=S.length;if(u(h._isAMomentObject)||(c._isAMomentObject=h._isAMomentObject),u(h._i)||(c._i=h._i),u(h._f)||(c._f=h._f),u(h._l)||(c._l=h._l),u(h._strict)||(c._strict=h._strict),u(h._tzm)||(c._tzm=h._tzm),u(h._isUTC)||(c._isUTC=h._isUTC),u(h._offset)||(c._offset=h._offset),u(h._pf)||(c._pf=v(h)),u(h._locale)||(c._locale=h._locale),G>0)for(m=0;m<G;m++)_=S[m],I=h[_],u(I)||(c[_]=I);return c}function A(c){O(this,c),this._d=new Date(c._d!=null?c._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,o.updateOffset(this),C=!1)}function F(c){return c instanceof A||c!=null&&c._isAMomentObject!=null}function z(c){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+c)}function R(c,h){var m=!0;return b(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,c),m){var _=[],I,G,de,ke=arguments.length;for(G=0;G<ke;G++){if(I="",typeof arguments[G]=="object"){I+=`
|
|
295
295
|
[`+G+"] ";for(de in arguments[0])l(arguments[0],de)&&(I+=de+": "+arguments[0][de]+", ");I=I.slice(0,-2)}else I=arguments[G];_.push(I)}z(c+`
|
|
296
296
|
Arguments: `+Array.prototype.slice.call(_).join("")+`
|
|
297
|
-
`+new Error().stack),m=!1}return h.apply(this,arguments)},h)}var $={};function K(c,h){o.deprecationHandler!=null&&o.deprecationHandler(c,h),$[c]||(z(h),$[c]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function X(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function q(c){var h,m;for(m in c)l(c,m)&&(h=c[m],X(h)?this[m]=h:this["_"+m]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var m=b({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(m[_]={},b(m[_],c[_]),b(m[_],h[_])):h[_]!=null?m[_]=h[_]:delete m[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(m[_]=b({},m[_]));return m}function H(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,m=[];for(h in c)l(c,h)&&m.push(h);return m};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(c,h,m){var _=this._calendar[c]||this._calendar.sameElse;return X(_)?_.call(h,m):_}function V(c,h,m){var _=""+Math.abs(c),I=h-_.length,G=c>=0;return(G?m?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+_}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,m,_){var I=_;typeof _=="string"&&(I=function(){return this[_]()}),c&&(se[c]=I),h&&(se[h[0]]=function(){return V(I.apply(this,arguments),h[1],h[2])}),m&&(se[m]=function(){return this.localeData().ordinal(I.apply(this,arguments),c)})}function J(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function ee(c){var h=c.match(B),m,_;for(m=0,_=h.length;m<_;m++)se[h[m]]?h[m]=se[h[m]]:h[m]=J(h[m]);return function(I){var G="",de;for(de=0;de<_;de++)G+=X(h[de])?h[de].call(I,c):h[de];return G}}function te(c,h){return c.isValid()?(h=ce(h,c.localeData()),oe[h]=oe[h]||ee(h),oe[h](c)):c.localeData().invalidDate()}function ce(c,h){var m=5;function _(I){return h.longDateFormat(I)||I}for(ne.lastIndex=0;m>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,m-=1;return c}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(c){var h=this._longDateFormat[c],m=this._longDateFormat[c.toUpperCase()];return h||!m?h:(this._longDateFormat[c]=m.match(B).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var W="Invalid date";function re(){return this._invalidDate}var Q="%d",fe=/\d{1,2}/;function me(c){return this._ordinal.replace("%d",c)}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(c,h,m,_){var I=this._relativeTime[m];return X(I)?I(c,h,m,_):I.replace(/%d/i,c)}function xe(c,h){var m=this._relativeTime[c>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(c){return typeof c=="string"?$e[c]||$e[c.toLowerCase()]:void 0}function st(c){var h={},m,_;for(_ in c)l(c,_)&&(m=Ae(_),m&&(h[m]=c[_]));return h}var Pe={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(c){var h=[],m;for(m in c)l(c,m)&&h.push({unit:m,priority:Pe[m]});return h.sort(function(_,I){return _.priority-I.priority}),h}var Kt=/\d/,it=/\d\d/,Yt=/\d{3}/,Xt=/\d{4}/,on=/[+-]?\d{6}/,Ue=/\d\d?/,tt=/\d\d\d\d?/,Mn=/\d\d\d\d\d\d?/,hn=/\d{1,3}/,Ie=/\d{1,4}/,He=/[+-]?\d{1,6}/,vt=/\d+/,ln=/[+-]?\d+/,uo=/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?/,Wr=/^([1-9]\d|\d)/,Hr;Hr={};function Re(c,h,m){Hr[c]=X(h)?h:function(_,I){return _&&m?m:h}}function Cc(c,h){return l(Hr,c)?Hr[c](h._strict,h._locale):new RegExp(va(c))}function va(c){return Vn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,m,_,I,G){return m||_||I||G}))}function Vn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Sn(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function qe(c){var h=+c,m=0;return h!==0&&isFinite(h)&&(m=Sn(h)),m}var zr={};function mt(c,h){var m,_=h,I;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(G,de){de[h]=qe(G)}),I=c.length,m=0;m<I;m++)zr[c[m]]=_}function yr(c,h){mt(c,function(m,_,I,G){I._w=I._w||{},h(m,I._w,I,G)})}function Sc(c,h,m){h!=null&&l(zr,c)&&zr[c](h,m._a,m,c)}function Yr(c){return c%4===0&&c%100!==0||c%400===0}var rn=0,U=1,pe=2,we=3,Ne=4,Ye=5,Je=6,Ze=7,Ge=8;j("Y",0,0,function(){var c=this.year();return c<=9999?V(c,4):"+"+c}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),Re("Y",ln),Re("YY",Ue,it),Re("YYYY",Ie,Xt),Re("YYYYY",He,on),Re("YYYYYY",He,on),mt(["YYYYY","YYYYYY"],rn),mt("YYYY",function(c,h){h[rn]=c.length===2?o.parseTwoDigitYear(c):qe(c)}),mt("YY",function(c,h){h[rn]=o.parseTwoDigitYear(c)}),mt("Y",function(c,h){h[rn]=parseInt(c,10)});function Ut(c){return Yr(c)?366:365}o.parseTwoDigitYear=function(c){return qe(c)+(qe(c)>68?1900:2e3)};var At=en("FullYear",!0);function Wt(){return Yr(this.year())}function en(c,h){return function(m){return m!=null?(ho(this,c,m),o.updateOffset(this,h),this):jn(this,c)}}function jn(c,h){if(!c.isValid())return NaN;var m=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?m.getUTCMilliseconds():m.getMilliseconds();case"Seconds":return _?m.getUTCSeconds():m.getSeconds();case"Minutes":return _?m.getUTCMinutes():m.getMinutes();case"Hours":return _?m.getUTCHours():m.getHours();case"Date":return _?m.getUTCDate():m.getDate();case"Day":return _?m.getUTCDay():m.getDay();case"Month":return _?m.getUTCMonth():m.getMonth();case"FullYear":return _?m.getUTCFullYear():m.getFullYear();default:return NaN}}function ho(c,h,m){var _,I,G,de,ke;if(!(!c.isValid()||isNaN(m))){switch(_=c._d,I=c._isUTC,h){case"Milliseconds":return void(I?_.setUTCMilliseconds(m):_.setMilliseconds(m));case"Seconds":return void(I?_.setUTCSeconds(m):_.setSeconds(m));case"Minutes":return void(I?_.setUTCMinutes(m):_.setMinutes(m));case"Hours":return void(I?_.setUTCHours(m):_.setHours(m));case"Date":return void(I?_.setUTCDate(m):_.setDate(m));case"FullYear":break;default:return}G=m,de=c.month(),ke=c.date(),ke=ke===29&&de===1&&!Yr(G)?28:ke,I?_.setUTCFullYear(G,de,ke):_.setFullYear(G,de,ke)}}function fn(c){return c=Ae(c),X(this[c])?this[c]():this}function Ws(c,h){if(typeof c=="object"){c=st(c);var m=ft(c),_,I=m.length;for(_=0;_<I;_++)this[m[_].unit](c[m[_].unit])}else if(c=Ae(c),X(this[c]))return this[c](h);return this}function _c(c,h){return(c%h+h)%h}var Vt;Array.prototype.indexOf?Vt=Array.prototype.indexOf:Vt=function(c){var h;for(h=0;h<this.length;++h)if(this[h]===c)return h;return-1};function xc(c,h){if(isNaN(c)||isNaN(h))return NaN;var m=_c(h,12);return c+=(h-m)/12,m===1?Yr(c)?29:28:31-m%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),Re("M",Ue,Jt),Re("MM",Ue,it),Re("MMM",function(c,h){return h.monthsShortRegex(c)}),Re("MMMM",function(c,h){return h.monthsRegex(c)}),mt(["M","MM"],function(c,h){h[U]=qe(c)-1}),mt(["MMM","MMMM"],function(c,h,m,_){var I=m._locale.monthsParse(c,_,m._strict);I!=null?h[U]=I:v(m).invalidMonth=c});var yb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_h="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vb=vn,bb=vn;function wb(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||xh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function Cb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[xh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Sb(c,h,m){var _,I,G,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)G=w([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(G,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(G,"").toLocaleLowerCase();return m?h==="MMM"?(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:null):(I=Vt.call(this._longMonthsParse,de),I!==-1?I:null):h==="MMM"?(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:(I=Vt.call(this._longMonthsParse,de),I!==-1?I:null)):(I=Vt.call(this._longMonthsParse,de),I!==-1?I:(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:null))}function _b(c,h,m){var _,I,G;if(this._monthsParseExact)return Sb.call(this,c,h,m);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(I=w([2e3,_]),m&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(I,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(I,"").replace(".","")+"$","i")),!m&&!this._monthsParse[_]&&(G="^"+this.months(I,"")+"|^"+this.monthsShort(I,""),this._monthsParse[_]=new RegExp(G.replace(".",""),"i")),m&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(m&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!m&&this._monthsParse[_].test(c))return _}}function Rh(c,h){if(!c.isValid())return c;if(typeof h=="string"){if(/^\d+$/.test(h))h=qe(h);else if(h=c.localeData().monthsParse(h),!f(h))return c}var m=h,_=c.date();return _=_<29?_:Math.min(_,xc(c.year(),m)),c._isUTC?c._d.setUTCMonth(m,_):c._d.setMonth(m,_),c}function Th(c){return c!=null?(Rh(this,c),o.updateOffset(this,!0),this):jn(this,"Month")}function xb(){return xc(this.year(),this.month())}function Rb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||kh.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=vb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function Tb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||kh.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=bb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function kh(){function c(je,et){return et.length-je.length}var h=[],m=[],_=[],I,G,de,ke;for(I=0;I<12;I++)G=w([2e3,I]),de=Vn(this.monthsShort(G,"")),ke=Vn(this.months(G,"")),h.push(de),m.push(ke),_.push(ke),_.push(de);h.sort(c),m.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function kb(c,h,m,_,I,G,de){var ke;return c<100&&c>=0?(ke=new Date(c+400,h,m,_,I,G,de),isFinite(ke.getFullYear())&&ke.setFullYear(c)):ke=new Date(c,h,m,_,I,G,de),ke}function Hs(c){var h,m;return c<100&&c>=0?(m=Array.prototype.slice.call(arguments),m[0]=c+400,h=new Date(Date.UTC.apply(null,m)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function ba(c,h,m){var _=7+h-m,I=(7+Hs(c,0,_).getUTCDay()-h)%7;return-I+_-1}function Eh(c,h,m,_,I){var G=(7+m-_)%7,de=ba(c,_,I),ke=1+7*(h-1)+G+de,je,et;return ke<=0?(je=c-1,et=Ut(je)+ke):ke>Ut(c)?(je=c+1,et=ke-Ut(c)):(je=c,et=ke),{year:je,dayOfYear:et}}function zs(c,h,m){var _=ba(c.year(),h,m),I=Math.floor((c.dayOfYear()-_-1)/7)+1,G,de;return I<1?(de=c.year()-1,G=I+Do(de,h,m)):I>Do(c.year(),h,m)?(G=I-Do(c.year(),h,m),de=c.year()+1):(de=c.year(),G=I),{week:G,year:de}}function Do(c,h,m){var _=ba(c,h,m),I=ba(c+1,h,m);return(Ut(c)-_+I)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),Re("w",Ue,Jt),Re("ww",Ue,it),Re("W",Ue,Jt),Re("WW",Ue,it),yr(["w","ww","W","WW"],function(c,h,m,_){h[_.substr(0,1)]=qe(c)});function Eb(c){return zs(c,this._week.dow,this._week.doy).week}var Pb={dow:0,doy:6};function Db(){return this._week.dow}function Ob(){return this._week.doy}function Mb(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function Ib(c){var h=zs(this,1,4).week;return c==null?h:this.add((c-h)*7,"d")}j("d",0,"do","day"),j("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),j("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),j("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),Re("d",Ue),Re("e",Ue),Re("E",Ue),Re("dd",function(c,h){return h.weekdaysMinRegex(c)}),Re("ddd",function(c,h){return h.weekdaysShortRegex(c)}),Re("dddd",function(c,h){return h.weekdaysRegex(c)}),yr(["dd","ddd","dddd"],function(c,h,m,_){var I=m._locale.weekdaysParse(c,_,m._strict);I!=null?h.d=I:v(m).invalidWeekday=c}),yr(["d","e","E"],function(c,h,m,_){h[_]=qe(c)});function Nb(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Ab(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Rc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var Fb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ph="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$b=vn,Vb=vn,jb=vn;function Bb(c,h){var m=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?Rc(m,this._week.dow):c?m[c.day()]:m}function Wb(c){return c===!0?Rc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function Hb(c){return c===!0?Rc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function zb(c,h,m){var _,I,G,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)G=w([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(G,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(G,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(G,"").toLocaleLowerCase();return m?h==="dddd"?(I=Vt.call(this._weekdaysParse,de),I!==-1?I:null):h==="ddd"?(I=Vt.call(this._shortWeekdaysParse,de),I!==-1?I:null):(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null):h==="dddd"?(I=Vt.call(this._weekdaysParse,de),I!==-1||(I=Vt.call(this._shortWeekdaysParse,de),I!==-1)?I:(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null)):h==="ddd"?(I=Vt.call(this._shortWeekdaysParse,de),I!==-1||(I=Vt.call(this._weekdaysParse,de),I!==-1)?I:(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null)):(I=Vt.call(this._minWeekdaysParse,de),I!==-1||(I=Vt.call(this._weekdaysParse,de),I!==-1)?I:(I=Vt.call(this._shortWeekdaysParse,de),I!==-1?I:null))}function Yb(c,h,m){var _,I,G;if(this._weekdaysParseExact)return zb.call(this,c,h,m);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(I=w([2e3,1]).day(_),m&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(G="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[_]=new RegExp(G.replace(".",""),"i")),m&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(m&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(m&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!m&&this._weekdaysParse[_].test(c))return _}}function Ub(c){if(!this.isValid())return c!=null?this:NaN;var h=jn(this,"Day");return c!=null?(c=Nb(c,this.localeData()),this.add(c-h,"d")):h}function qb(c){if(!this.isValid())return c!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return c==null?h:this.add(c-h,"d")}function Gb(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=Ab(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function Kb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Tc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=$b),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Tc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Vb),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Tc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jb),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Tc(){function c(bn,Ao){return Ao.length-bn.length}var h=[],m=[],_=[],I=[],G,de,ke,je,et;for(G=0;G<7;G++)de=w([2e3,1]).day(G),ke=Vn(this.weekdaysMin(de,"")),je=Vn(this.weekdaysShort(de,"")),et=Vn(this.weekdays(de,"")),h.push(ke),m.push(je),_.push(et),I.push(ke),I.push(je),I.push(et);h.sort(c),m.sort(c),_.sort(c),I.sort(c),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function kc(){return this.hours()%12||12}function Qb(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,kc),j("k",["kk",2],0,Qb),j("hmm",0,0,function(){return""+kc.apply(this)+V(this.minutes(),2)}),j("hmmss",0,0,function(){return""+kc.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)});function Dh(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}Dh("a",!0),Dh("A",!1);function Oh(c,h){return h._meridiemParse}Re("a",Oh),Re("A",Oh),Re("H",Ue,Wr),Re("h",Ue,Jt),Re("k",Ue,Jt),Re("HH",Ue,it),Re("hh",Ue,it),Re("kk",Ue,it),Re("hmm",tt),Re("hmmss",Mn),Re("Hmm",tt),Re("Hmmss",Mn),mt(["H","HH"],we),mt(["k","kk"],function(c,h,m){var _=qe(c);h[we]=_===24?0:_}),mt(["a","A"],function(c,h,m){m._isPm=m._locale.isPM(c),m._meridiem=c}),mt(["h","hh"],function(c,h,m){h[we]=qe(c),v(m).bigHour=!0}),mt("hmm",function(c,h,m){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_)),v(m).bigHour=!0}),mt("hmmss",function(c,h,m){var _=c.length-4,I=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_,2)),h[Ye]=qe(c.substr(I)),v(m).bigHour=!0}),mt("Hmm",function(c,h,m){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_))}),mt("Hmmss",function(c,h,m){var _=c.length-4,I=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_,2)),h[Ye]=qe(c.substr(I))});function Jb(c){return(c+"").toLowerCase().charAt(0)==="p"}var ew=/[ap]\.?m?\.?/i,tw=en("Hours",!0);function nw(c,h,m){return c>11?m?"pm":"PM":m?"am":"AM"}var Mh={calendar:N,longDateFormat:ie,invalidDate:W,ordinal:Q,dayOfMonthOrdinalParse:fe,relativeTime:Ce,months:yb,monthsShort:_h,week:Pb,weekdays:Fb,weekdaysMin:Lb,weekdaysShort:Ph,meridiemParse:ew},Ft={},Ys={},Us;function ow(c,h){var m,_=Math.min(c.length,h.length);for(m=0;m<_;m+=1)if(c[m]!==h[m])return m;return _}function Ih(c){return c&&c.toLowerCase().replace("_","-")}function rw(c){for(var h=0,m,_,I,G;h<c.length;){for(G=Ih(c[h]).split("-"),m=G.length,_=Ih(c[h+1]),_=_?_.split("-"):null;m>0;){if(I=wa(G.slice(0,m).join("-")),I)return I;if(_&&_.length>=m&&ow(G,_)>=m-1)break;m--}h++}return Us}function sw(c){return!!(c&&c.match("^[^/\\\\]*$"))}function wa(c){var h=null,m;if(Ft[c]===void 0&&e&&e.exports&&sw(c))try{h=Us._abbr,m=pA,m("./locale/"+c),tr(h)}catch{Ft[c]=null}return Ft[c]}function tr(c,h){var m;return c&&(u(h)?m=Oo(c):m=Ec(c,h),m?Us=m:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),Us._abbr}function Ec(c,h){if(h!==null){var m,_=Mh;if(h.abbr=c,Ft[c]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Ft[c]._config;else if(h.parentLocale!=null)if(Ft[h.parentLocale]!=null)_=Ft[h.parentLocale]._config;else if(m=wa(h.parentLocale),m!=null)_=m._config;else return Ys[h.parentLocale]||(Ys[h.parentLocale]=[]),Ys[h.parentLocale].push({name:c,config:h}),null;return Ft[c]=new H(Y(_,h)),Ys[c]&&Ys[c].forEach(function(I){Ec(I.name,I.config)}),tr(c),Ft[c]}else return delete Ft[c],null}function iw(c,h){if(h!=null){var m,_,I=Mh;Ft[c]!=null&&Ft[c].parentLocale!=null?Ft[c].set(Y(Ft[c]._config,h)):(_=wa(c),_!=null&&(I=_._config),h=Y(I,h),_==null&&(h.abbr=c),m=new H(h),m.parentLocale=Ft[c],Ft[c]=m),tr(c)}else Ft[c]!=null&&(Ft[c].parentLocale!=null?(Ft[c]=Ft[c].parentLocale,c===tr()&&tr(c)):Ft[c]!=null&&delete Ft[c]);return Ft[c]}function Oo(c){var h;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return Us;if(!i(c)){if(h=wa(c),h)return h;c=[c]}return rw(c)}function aw(){return ae(Ft)}function Pc(c){var h,m=c._a;return m&&v(c).overflow===-2&&(h=m[U]<0||m[U]>11?U:m[pe]<1||m[pe]>xc(m[rn],m[U])?pe:m[we]<0||m[we]>24||m[we]===24&&(m[Ne]!==0||m[Ye]!==0||m[Je]!==0)?we:m[Ne]<0||m[Ne]>59?Ne:m[Ye]<0||m[Ye]>59?Ye:m[Je]<0||m[Je]>999?Je:-1,v(c)._overflowDayOfYear&&(h<rn||h>pe)&&(h=pe),v(c)._overflowWeeks&&h===-1&&(h=Ze),v(c)._overflowWeekday&&h===-1&&(h=Ge),v(c).overflow=h),c}var lw=/^\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)?)?$/,cw=/^\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)?)?$/,dw=/Z|[+-]\d\d(?::?\d\d)?/,Ca=[["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/]],uw=/^\/?Date\((-?\d+)/i,hw=/^(?:(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}))$/,fw={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 Nh(c){var h,m,_=c._i,I=lw.exec(_)||cw.exec(_),G,de,ke,je,et=Ca.length,bn=Dc.length;if(I){for(v(c).iso=!0,h=0,m=et;h<m;h++)if(Ca[h][1].exec(I[1])){de=Ca[h][0],G=Ca[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(I[3]){for(h=0,m=bn;h<m;h++)if(Dc[h][1].exec(I[3])){ke=(I[2]||" ")+Dc[h][0];break}if(ke==null){c._isValid=!1;return}}if(!G&&ke!=null){c._isValid=!1;return}if(I[4])if(dw.exec(I[4]))je="Z";else{c._isValid=!1;return}c._f=de+(ke||"")+(je||""),Mc(c)}else c._isValid=!1}function pw(c,h,m,_,I,G){var de=[mw(c),_h.indexOf(h),parseInt(m,10),parseInt(_,10),parseInt(I,10)];return G&&de.push(parseInt(G,10)),de}function mw(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function gw(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function yw(c,h,m){if(c){var _=Ph.indexOf(c),I=new Date(h[0],h[1],h[2]).getDay();if(_!==I)return v(m).weekdayMismatch=!0,m._isValid=!1,!1}return!0}function vw(c,h,m){if(c)return fw[c];if(h)return 0;var _=parseInt(m,10),I=_%100,G=(_-I)/100;return G*60+I}function Ah(c){var h=hw.exec(gw(c._i)),m;if(h){if(m=pw(h[4],h[3],h[2],h[5],h[6],h[7]),!yw(h[1],m,c))return;c._a=m,c._tzm=vw(h[8],h[9],h[10]),c._d=Hs.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function bw(c){var h=uw.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(Nh(c),c._isValid===!1)delete c._isValid;else return;if(Ah(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:o.createFromInputFallback(c)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function Ur(c,h,m){return c??h??m}function ww(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function Oc(c){var h,m,_=[],I,G,de;if(!c._d){for(I=ww(c),c._w&&c._a[pe]==null&&c._a[U]==null&&Cw(c),c._dayOfYear!=null&&(de=Ur(c._a[rn],I[rn]),(c._dayOfYear>Ut(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),m=Hs(de,0,c._dayOfYear),c._a[U]=m.getUTCMonth(),c._a[pe]=m.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=I[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[we]===24&&c._a[Ne]===0&&c._a[Ye]===0&&c._a[Je]===0&&(c._nextDay=!0,c._a[we]=0),c._d=(c._useUTC?Hs:kb).apply(null,_),G=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[we]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==G&&(v(c).weekdayMismatch=!0)}}function Cw(c){var h,m,_,I,G,de,ke,je,et;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(G=1,de=4,m=Ur(h.GG,c._a[rn],zs(Dt(),1,4).year),_=Ur(h.W,1),I=Ur(h.E,1),(I<1||I>7)&&(je=!0)):(G=c._locale._week.dow,de=c._locale._week.doy,et=zs(Dt(),G,de),m=Ur(h.gg,c._a[rn],et.year),_=Ur(h.w,et.week),h.d!=null?(I=h.d,(I<0||I>6)&&(je=!0)):h.e!=null?(I=h.e+G,(h.e<0||h.e>6)&&(je=!0)):I=G),_<1||_>Do(m,G,de)?v(c)._overflowWeeks=!0:je!=null?v(c)._overflowWeekday=!0:(ke=Eh(m,_,I,G,de),c._a[rn]=ke.year,c._dayOfYear=ke.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function Mc(c){if(c._f===o.ISO_8601){Nh(c);return}if(c._f===o.RFC_2822){Ah(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,m,_,I,G,de,ke=h.length,je=0,et,bn;for(I=ce(c._f,c._locale).match(B)||[],bn=I.length,m=0;m<bn;m++)G=I[m],_=(h.match(Cc(G,c))||[])[0],_&&(de=h.substr(0,h.indexOf(_)),de.length>0&&v(c).unusedInput.push(de),h=h.slice(h.indexOf(_)+_.length),je+=_.length),se[G]?(_?v(c).empty=!1:v(c).unusedTokens.push(G),Sc(G,_,c)):c._strict&&!_&&v(c).unusedTokens.push(G);v(c).charsLeftOver=ke-je,h.length>0&&v(c).unusedInput.push(h),c._a[we]<=12&&v(c).bigHour===!0&&c._a[we]>0&&(v(c).bigHour=void 0),v(c).parsedDateParts=c._a.slice(0),v(c).meridiem=c._meridiem,c._a[we]=Sw(c._locale,c._a[we],c._meridiem),et=v(c).era,et!==null&&(c._a[rn]=c._locale.erasConvertYear(et,c._a[rn])),Oc(c),Pc(c)}function Sw(c,h,m){var _;return m==null?h:c.meridiemHour!=null?c.meridiemHour(h,m):(c.isPM!=null&&(_=c.isPM(m),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function _w(c){var h,m,_,I,G,de,ke=!1,je=c._f.length;if(je===0){v(c).invalidFormat=!0,c._d=new Date(NaN);return}for(I=0;I<je;I++)G=0,de=!1,h=O({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[I],Mc(h),P(h)&&(de=!0),G+=v(h).charsLeftOver,G+=v(h).unusedTokens.length*10,v(h).score=G,ke?G<_&&(_=G,m=h):(_==null||G<_||de)&&(_=G,m=h,de&&(ke=!0));b(c,m||h)}function xw(c){if(!c._d){var h=st(c._i),m=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,m,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),Oc(c)}}function Rw(c){var h=new A(Pc(Fh(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function Fh(c){var h=c._i,m=c._f;return c._locale=c._locale||Oo(c._l),h===null||m===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new A(Pc(h)):(p(h)?c._d=h:i(m)?_w(c):m?Mc(c):Tw(c),P(c)||(c._d=null),c))}function Tw(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?bw(c):i(h)?(c._a=y(h.slice(0),function(m){return parseInt(m,10)}),Oc(c)):a(h)?xw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function Lh(c,h,m,_,I){var G={};return(h===!0||h===!1)&&(_=h,h=void 0),(m===!0||m===!1)&&(_=m,m=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),G._isAMomentObject=!0,G._useUTC=G._isUTC=I,G._l=m,G._i=c,G._f=h,G._strict=_,Rw(G)}function Dt(c,h,m,_){return Lh(c,h,m,_,!1)}var kw=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Dt.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:x()}),Ew=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Dt.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:x()});function $h(c,h){var m,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Dt();for(m=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](m))&&(m=h[_]);return m}function Pw(){var c=[].slice.call(arguments,0);return $h("isBefore",c)}function Dw(){var c=[].slice.call(arguments,0);return $h("isAfter",c)}var Ow=function(){return Date.now?Date.now():+new Date},qs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Mw(c){var h,m=!1,_,I=qs.length;for(h in c)if(l(c,h)&&!(Vt.call(qs,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<I;++_)if(c[qs[_]]){if(m)return!1;parseFloat(c[qs[_]])!==qe(c[qs[_]])&&(m=!0)}return!0}function Iw(){return this._isValid}function Nw(){return to(NaN)}function Sa(c){var h=st(c),m=h.year||0,_=h.quarter||0,I=h.month||0,G=h.week||h.isoWeek||0,de=h.day||0,ke=h.hour||0,je=h.minute||0,et=h.second||0,bn=h.millisecond||0;this._isValid=Mw(h),this._milliseconds=+bn+et*1e3+je*6e4+ke*1e3*60*60,this._days=+de+G*7,this._months=+I+_*3+m*12,this._data={},this._locale=Oo(),this._bubble()}function _a(c){return c instanceof Sa}function Ic(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function Aw(c,h,m){var _=Math.min(c.length,h.length),I=Math.abs(c.length-h.length),G=0,de;for(de=0;de<_;de++)qe(c[de])!==qe(h[de])&&G++;return G+I}function Vh(c,h){j(c,0,0,function(){var m=this.utcOffset(),_="+";return m<0&&(m=-m,_="-"),_+V(~~(m/60),2)+h+V(~~m%60,2)})}Vh("Z",":"),Vh("ZZ",""),Re("Z",pt),Re("ZZ",pt),mt(["Z","ZZ"],function(c,h,m){m._useUTC=!0,m._tzm=Nc(pt,c)});var Fw=/([\+\-]|\d\d)/gi;function Nc(c,h){var m=(h||"").match(c),_,I,G;return m===null?null:(_=m[m.length-1]||[],I=(_+"").match(Fw)||["-",0,0],G=+(I[1]*60)+qe(I[2]),G===0?0:I[0]==="+"?G:-G)}function Ac(c,h){var m,_;return h._isUTC?(m=h.clone(),_=(F(c)||p(c)?c.valueOf():Dt(c).valueOf())-m.valueOf(),m._d.setTime(m._d.valueOf()+_),o.updateOffset(m,!1),m):Dt(c).local()}function Fc(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function Lw(c,h,m){var _=this._offset||0,I;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=Nc(pt,c),c===null)return this}else Math.abs(c)<16&&!m&&(c=c*60);return!this._isUTC&&h&&(I=Fc(this)),this._offset=c,this._isUTC=!0,I!=null&&this.add(I,"m"),_!==c&&(!h||this._changeInProgress?Hh(this,to(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Fc(this)}function $w(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function Vw(c){return this.utcOffset(0,c)}function jw(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(Fc(this),"m")),this}function Bw(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=Nc(uo,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function Ww(c){return this.isValid()?(c=c?Dt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function Hw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zw(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return O(c,this),c=Fh(c),c._a?(h=c._isUTC?w(c._a):Dt(c._a),this._isDSTShifted=this.isValid()&&Aw(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Yw(){return this.isValid()?!this._isUTC:!1}function Uw(){return this.isValid()?this._isUTC:!1}function jh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var qw=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function to(c,h){var m=c,_=null,I,G,de;return _a(c)?m={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(m={},h?m[h]=+c:m.milliseconds=+c):(_=qw.exec(c))?(I=_[1]==="-"?-1:1,m={y:0,d:qe(_[pe])*I,h:qe(_[we])*I,m:qe(_[Ne])*I,s:qe(_[Ye])*I,ms:qe(Ic(_[Je]*1e3))*I}):(_=Gw.exec(c))?(I=_[1]==="-"?-1:1,m={y:vr(_[2],I),M:vr(_[3],I),w:vr(_[4],I),d:vr(_[5],I),h:vr(_[6],I),m:vr(_[7],I),s:vr(_[8],I)}):m==null?m={}:typeof m=="object"&&("from"in m||"to"in m)&&(de=Kw(Dt(m.from),Dt(m.to)),m={},m.ms=de.milliseconds,m.M=de.months),G=new Sa(m),_a(c)&&l(c,"_locale")&&(G._locale=c._locale),_a(c)&&l(c,"_isValid")&&(G._isValid=c._isValid),G}to.fn=Sa.prototype,to.invalid=Nw;function vr(c,h){var m=c&&parseFloat(c.replace(",","."));return(isNaN(m)?0:m)*h}function Bh(c,h){var m={};return m.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(m.months,"M").isAfter(h)&&--m.months,m.milliseconds=+h-+c.clone().add(m.months,"M"),m}function Kw(c,h){var m;return c.isValid()&&h.isValid()?(h=Ac(h,c),c.isBefore(h)?m=Bh(c,h):(m=Bh(h,c),m.milliseconds=-m.milliseconds,m.months=-m.months),m):{milliseconds:0,months:0}}function Wh(c,h){return function(m,_){var I,G;return _!==null&&!isNaN(+_)&&(K(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),G=m,m=_,_=G),I=to(m,_),Hh(this,I,c),this}}function Hh(c,h,m,_){var I=h._milliseconds,G=Ic(h._days),de=Ic(h._months);c.isValid()&&(_=_??!0,de&&Rh(c,jn(c,"Month")+de*m),G&&ho(c,"Date",jn(c,"Date")+G*m),I&&c._d.setTime(c._d.valueOf()+I*m),_&&o.updateOffset(c,G||de))}var Xw=Wh(1,"add"),Zw=Wh(-1,"subtract");function zh(c){return typeof c=="string"||c instanceof String}function Qw(c){return F(c)||p(c)||zh(c)||f(c)||eC(c)||Jw(c)||c===null||c===void 0}function Jw(c){var h=a(c)&&!d(c),m=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,G,de=_.length;for(I=0;I<de;I+=1)G=_[I],m=m||l(c,G);return h&&m}function eC(c){var h=i(c),m=!1;return h&&(m=c.filter(function(_){return!f(_)&&zh(c)}).length===0),h&&m}function tC(c){var h=a(c)&&!d(c),m=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],I,G;for(I=0;I<_.length;I+=1)G=_[I],m=m||l(c,G);return h&&m}function nC(c,h){var m=c.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 oC(c,h){arguments.length===1&&(arguments[0]?Qw(arguments[0])?(c=arguments[0],h=void 0):tC(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var m=c||Dt(),_=Ac(m,this).startOf("day"),I=o.calendarFormat(this,_)||"sameElse",G=h&&(X(h[I])?h[I].call(this,m):h[I]);return this.format(G||this.localeData().calendar(I,this,Dt(m)))}function rC(){return new A(this)}function sC(c,h){var m=F(c)?c:Dt(c);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()>m.valueOf():m.valueOf()<this.clone().startOf(h).valueOf()):!1}function iC(c,h){var m=F(c)?c:Dt(c);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()<m.valueOf():this.clone().endOf(h).valueOf()<m.valueOf()):!1}function aC(c,h,m,_){var I=F(c)?c:Dt(c),G=F(h)?h:Dt(h);return this.isValid()&&I.isValid()&&G.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(I,m):!this.isBefore(I,m))&&(_[1]===")"?this.isBefore(G,m):!this.isAfter(G,m))):!1}function lC(c,h){var m=F(c)?c:Dt(c),_;return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()===m.valueOf():(_=m.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function cC(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function dC(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function uC(c,h,m){var _,I,G;if(!this.isValid())return NaN;if(_=Ac(c,this),!_.isValid())return NaN;switch(I=(_.utcOffset()-this.utcOffset())*6e4,h=Ae(h),h){case"year":G=xa(this,_)/12;break;case"month":G=xa(this,_);break;case"quarter":G=xa(this,_)/3;break;case"second":G=(this-_)/1e3;break;case"minute":G=(this-_)/6e4;break;case"hour":G=(this-_)/36e5;break;case"day":G=(this-_-I)/864e5;break;case"week":G=(this-_-I)/6048e5;break;default:G=this-_}return m?G:Sn(G)}function xa(c,h){if(c.date()<h.date())return-xa(h,c);var m=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(m,"months"),I,G;return h-_<0?(I=c.clone().add(m-1,"months"),G=(h-_)/(_-I)):(I=c.clone().add(m+1,"months"),G=(h-_)/(I-_)),-(m+G)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function hC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fC(c){if(!this.isValid())return null;var h=c!==!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 pC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",m,_,I,G;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),m="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",G=h+'[")]',this.format(m+_+I+G)}function mC(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function gC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?to({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function yC(c){return this.from(Dt(),c)}function vC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?to({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function bC(c){return this.to(Dt(),c)}function Yh(c){var h;return c===void 0?this._locale._abbr:(h=Oo(c),h!=null&&(this._locale=h),this)}var Uh=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function qh(){return this._locale}var Ra=1e3,qr=60*Ra,Ta=60*qr,Gh=(365*400+97)*24*Ta;function Gr(c,h){return(c%h+h)%h}function Kh(c,h,m){return c<100&&c>=0?new Date(c+400,h,m)-Gh:new Date(c,h,m).valueOf()}function Xh(c,h,m){return c<100&&c>=0?Date.UTC(c+400,h,m)-Gh:Date.UTC(c,h,m)}function wC(c){var h,m;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?Xh:Kh,c){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-=Gr(h+(this._isUTC?0:this.utcOffset()*qr),Ta);break;case"minute":h=this._d.valueOf(),h-=Gr(h,qr);break;case"second":h=this._d.valueOf(),h-=Gr(h,Ra);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function CC(c){var h,m;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?Xh:Kh,c){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+=Ta-Gr(h+(this._isUTC?0:this.utcOffset()*qr),Ta)-1;break;case"minute":h=this._d.valueOf(),h+=qr-Gr(h,qr)-1;break;case"second":h=this._d.valueOf(),h+=Ra-Gr(h,Ra)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function SC(){return this._d.valueOf()-(this._offset||0)*6e4}function _C(){return Math.floor(this.valueOf()/1e3)}function xC(){return new Date(this.valueOf())}function RC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function TC(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function kC(){return this.isValid()?this.toISOString():null}function EC(){return P(this)}function PC(){return b({},v(this))}function DC(){return v(this).overflow}function OC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),Re("N",Lc),Re("NN",Lc),Re("NNN",Lc),Re("NNNN",WC),Re("NNNNN",HC),mt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,m,_){var I=m._locale.erasParse(c,_,m._strict);I?v(m).era=I:v(m).invalidEra=c}),Re("y",vt),Re("yy",vt),Re("yyy",vt),Re("yyyy",vt),Re("yo",zC),mt(["y","yy","yyy","yyyy"],rn),mt(["yo"],function(c,h,m,_){var I;m._locale._eraYearOrdinalRegex&&(I=c.match(m._locale._eraYearOrdinalRegex)),m._locale.eraYearOrdinalParse?h[rn]=m._locale.eraYearOrdinalParse(c,I):h[rn]=parseInt(c,10)});function MC(c,h){var m,_,I,G=this._eras||Oo("en")._eras;for(m=0,_=G.length;m<_;++m){switch(typeof G[m].since){case"string":I=o(G[m].since).startOf("day"),G[m].since=I.valueOf();break}switch(typeof G[m].until){case"undefined":G[m].until=1/0;break;case"string":I=o(G[m].until).startOf("day").valueOf(),G[m].until=I.valueOf();break}}return G}function IC(c,h,m){var _,I,G=this.eras(),de,ke,je;for(c=c.toUpperCase(),_=0,I=G.length;_<I;++_)if(de=G[_].name.toUpperCase(),ke=G[_].abbr.toUpperCase(),je=G[_].narrow.toUpperCase(),m)switch(h){case"N":case"NN":case"NNN":if(ke===c)return G[_];break;case"NNNN":if(de===c)return G[_];break;case"NNNNN":if(je===c)return G[_];break}else if([de,ke,je].indexOf(c)>=0)return G[_]}function NC(c,h){var m=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*m}function AC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].name;return""}function FC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].narrow;return""}function LC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].abbr;return""}function $C(){var c,h,m,_,I=this.localeData().eras();for(c=0,h=I.length;c<h;++c)if(m=I[c].since<=I[c].until?1:-1,_=this.clone().startOf("day").valueOf(),I[c].since<=_&&_<=I[c].until||I[c].until<=_&&_<=I[c].since)return(this.year()-o(I[c].since).year())*m+I[c].offset;return this.year()}function VC(c){return l(this,"_erasNameRegex")||$c.call(this),c?this._erasNameRegex:this._erasRegex}function jC(c){return l(this,"_erasAbbrRegex")||$c.call(this),c?this._erasAbbrRegex:this._erasRegex}function BC(c){return l(this,"_erasNarrowRegex")||$c.call(this),c?this._erasNarrowRegex:this._erasRegex}function Lc(c,h){return h.erasAbbrRegex(c)}function WC(c,h){return h.erasNameRegex(c)}function HC(c,h){return h.erasNarrowRegex(c)}function zC(c,h){return h._eraYearOrdinalRegex||vt}function $c(){var c=[],h=[],m=[],_=[],I,G,de,ke,je,et=this.eras();for(I=0,G=et.length;I<G;++I)de=Vn(et[I].name),ke=Vn(et[I].abbr),je=Vn(et[I].narrow),h.push(de),c.push(ke),m.push(je),_.push(de),_.push(ke),_.push(je);this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+m.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ka(c,h){j(0,[c,c.length],0,h)}ka("gggg","weekYear"),ka("ggggg","weekYear"),ka("GGGG","isoWeekYear"),ka("GGGGG","isoWeekYear"),Re("G",ln),Re("g",ln),Re("GG",Ue,it),Re("gg",Ue,it),Re("GGGG",Ie,Xt),Re("gggg",Ie,Xt),Re("GGGGG",He,on),Re("ggggg",He,on),yr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,m,_){h[_.substr(0,2)]=qe(c)}),yr(["gg","GG"],function(c,h,m,_){h[_]=o.parseTwoDigitYear(c)});function YC(c){return Zh.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function UC(c){return Zh.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function qC(){return Do(this.year(),1,4)}function GC(){return Do(this.isoWeekYear(),1,4)}function KC(){var c=this.localeData()._week;return Do(this.year(),c.dow,c.doy)}function XC(){var c=this.localeData()._week;return Do(this.weekYear(),c.dow,c.doy)}function Zh(c,h,m,_,I){var G;return c==null?zs(this,_,I).year:(G=Do(c,_,I),h>G&&(h=G),ZC.call(this,c,h,m,_,I))}function ZC(c,h,m,_,I){var G=Eh(c,h,m,_,I),de=Hs(G.year,0,G.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}j("Q",0,"Qo","quarter"),Re("Q",Kt),mt("Q",function(c,h){h[U]=(qe(c)-1)*3});function QC(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}j("D",["DD",2],"Do","date"),Re("D",Ue,Jt),Re("DD",Ue,it),Re("Do",function(c,h){return c?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],pe),mt("Do",function(c,h){h[pe]=qe(c.match(Ue)[0])});var Qh=en("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),Re("DDD",hn),Re("DDDD",Yt),mt(["DDD","DDDD"],function(c,h,m){m._dayOfYear=qe(c)});function JC(c){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?h:this.add(c-h,"d")}j("m",["mm",2],0,"minute"),Re("m",Ue,Wr),Re("mm",Ue,it),mt(["m","mm"],Ne);var eS=en("Minutes",!1);j("s",["ss",2],0,"second"),Re("s",Ue,Wr),Re("ss",Ue,it),mt(["s","ss"],Ye);var tS=en("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Re("S",hn,Kt),Re("SS",hn,it),Re("SSS",hn,Yt);var nr,Jh;for(nr="SSSS";nr.length<=9;nr+="S")Re(nr,vt);function nS(c,h){h[Je]=qe(("0."+c)*1e3)}for(nr="S";nr.length<=9;nr+="S")mt(nr,nS);Jh=en("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function oS(){return this._isUTC?"UTC":""}function rS(){return this._isUTC?"Coordinated Universal Time":""}var ge=A.prototype;ge.add=Xw,ge.calendar=oC,ge.clone=rC,ge.diff=uC,ge.endOf=CC,ge.format=mC,ge.from=gC,ge.fromNow=yC,ge.to=vC,ge.toNow=bC,ge.get=fn,ge.invalidAt=DC,ge.isAfter=sC,ge.isBefore=iC,ge.isBetween=aC,ge.isSame=lC,ge.isSameOrAfter=cC,ge.isSameOrBefore=dC,ge.isValid=EC,ge.lang=Uh,ge.locale=Yh,ge.localeData=qh,ge.max=Ew,ge.min=kw,ge.parsingFlags=PC,ge.set=Ws,ge.startOf=wC,ge.subtract=Zw,ge.toArray=RC,ge.toObject=TC,ge.toDate=xC,ge.toISOString=fC,ge.inspect=pC,typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ge.toJSON=kC,ge.toString=hC,ge.unix=_C,ge.valueOf=SC,ge.creationData=OC,ge.eraName=AC,ge.eraNarrow=FC,ge.eraAbbr=LC,ge.eraYear=$C,ge.year=At,ge.isLeapYear=Wt,ge.weekYear=YC,ge.isoWeekYear=UC,ge.quarter=ge.quarters=QC,ge.month=Th,ge.daysInMonth=xb,ge.week=ge.weeks=Mb,ge.isoWeek=ge.isoWeeks=Ib,ge.weeksInYear=KC,ge.weeksInWeekYear=XC,ge.isoWeeksInYear=qC,ge.isoWeeksInISOWeekYear=GC,ge.date=Qh,ge.day=ge.days=Ub,ge.weekday=qb,ge.isoWeekday=Gb,ge.dayOfYear=JC,ge.hour=ge.hours=tw,ge.minute=ge.minutes=eS,ge.second=ge.seconds=tS,ge.millisecond=ge.milliseconds=Jh,ge.utcOffset=Lw,ge.utc=Vw,ge.local=jw,ge.parseZone=Bw,ge.hasAlignedHourOffset=Ww,ge.isDST=Hw,ge.isLocal=Yw,ge.isUtcOffset=Uw,ge.isUtc=jh,ge.isUTC=jh,ge.zoneAbbr=oS,ge.zoneName=rS,ge.dates=R("dates accessor is deprecated. Use date instead.",Qh),ge.months=R("months accessor is deprecated. Use month instead",Th),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/",$w),ge.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zw);function sS(c){return Dt(c*1e3)}function iS(){return Dt.apply(null,arguments).parseZone()}function ef(c){return c}var ct=H.prototype;ct.calendar=M,ct.longDateFormat=he,ct.invalidDate=re,ct.ordinal=me,ct.preparse=ef,ct.postformat=ef,ct.relativeTime=ve,ct.pastFuture=xe,ct.set=q,ct.eras=MC,ct.erasParse=IC,ct.erasConvertYear=NC,ct.erasAbbrRegex=jC,ct.erasNameRegex=VC,ct.erasNarrowRegex=BC,ct.months=wb,ct.monthsShort=Cb,ct.monthsParse=_b,ct.monthsRegex=Tb,ct.monthsShortRegex=Rb,ct.week=Eb,ct.firstDayOfYear=Ob,ct.firstDayOfWeek=Db,ct.weekdays=Bb,ct.weekdaysMin=Hb,ct.weekdaysShort=Wb,ct.weekdaysParse=Yb,ct.weekdaysRegex=Kb,ct.weekdaysShortRegex=Xb,ct.weekdaysMinRegex=Zb,ct.isPM=Jb,ct.meridiem=nw;function Ea(c,h,m,_){var I=Oo(),G=w().set(_,h);return I[m](G,c)}function tf(c,h,m){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return Ea(c,h,m,"month");var _,I=[];for(_=0;_<12;_++)I[_]=Ea(c,_,m,"month");return I}function Vc(c,h,m,_){typeof c=="boolean"?(f(h)&&(m=h,h=void 0),h=h||""):(h=c,m=h,c=!1,f(h)&&(m=h,h=void 0),h=h||"");var I=Oo(),G=c?I._week.dow:0,de,ke=[];if(m!=null)return Ea(h,(m+G)%7,_,"day");for(de=0;de<7;de++)ke[de]=Ea(h,(de+G)%7,_,"day");return ke}function aS(c,h){return tf(c,h,"months")}function lS(c,h){return tf(c,h,"monthsShort")}function cS(c,h,m){return Vc(c,h,m,"weekdays")}function dS(c,h,m){return Vc(c,h,m,"weekdaysShort")}function uS(c,h,m){return Vc(c,h,m,"weekdaysMin")}tr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,m=qe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+m}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",tr),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Oo);var Mo=Math.abs;function hS(){var c=this._data;return this._milliseconds=Mo(this._milliseconds),this._days=Mo(this._days),this._months=Mo(this._months),c.milliseconds=Mo(c.milliseconds),c.seconds=Mo(c.seconds),c.minutes=Mo(c.minutes),c.hours=Mo(c.hours),c.months=Mo(c.months),c.years=Mo(c.years),this}function nf(c,h,m,_){var I=to(h,m);return c._milliseconds+=_*I._milliseconds,c._days+=_*I._days,c._months+=_*I._months,c._bubble()}function fS(c,h){return nf(this,c,h,1)}function pS(c,h){return nf(this,c,h,-1)}function of(c){return c<0?Math.floor(c):Math.ceil(c)}function mS(){var c=this._milliseconds,h=this._days,m=this._months,_=this._data,I,G,de,ke,je;return c>=0&&h>=0&&m>=0||c<=0&&h<=0&&m<=0||(c+=of(jc(m)+h)*864e5,h=0,m=0),_.milliseconds=c%1e3,I=Sn(c/1e3),_.seconds=I%60,G=Sn(I/60),_.minutes=G%60,de=Sn(G/60),_.hours=de%24,h+=Sn(de/24),je=Sn(rf(h)),m+=je,h-=of(jc(je)),ke=Sn(m/12),m%=12,_.days=h,_.months=m,_.years=ke,this}function rf(c){return c*4800/146097}function jc(c){return c*146097/4800}function gS(c){if(!this.isValid())return NaN;var h,m,_=this._milliseconds;if(c=Ae(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,m=this._months+rf(h),c){case"month":return m;case"quarter":return m/3;case"year":return m/12}else switch(h=this._days+Math.round(jc(this._months)),c){case"week":return h/7+_/6048e5;case"day":return h+_/864e5;case"hour":return h*24+_/36e5;case"minute":return h*1440+_/6e4;case"second":return h*86400+_/1e3;case"millisecond":return Math.floor(h*864e5)+_;default:throw new Error("Unknown unit "+c)}}function Io(c){return function(){return this.as(c)}}var sf=Io("ms"),yS=Io("s"),vS=Io("m"),bS=Io("h"),wS=Io("d"),CS=Io("w"),SS=Io("M"),_S=Io("Q"),xS=Io("y"),RS=sf;function TS(){return to(this)}function kS(c){return c=Ae(c),this.isValid()?this[c+"s"]():NaN}function br(c){return function(){return this.isValid()?this._data[c]:NaN}}var ES=br("milliseconds"),PS=br("seconds"),DS=br("minutes"),OS=br("hours"),MS=br("days"),IS=br("months"),NS=br("years");function AS(){return Sn(this.days()/7)}var No=Math.round,Kr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function FS(c,h,m,_,I){return I.relativeTime(h||1,!!m,c,_)}function LS(c,h,m,_){var I=to(c).abs(),G=No(I.as("s")),de=No(I.as("m")),ke=No(I.as("h")),je=No(I.as("d")),et=No(I.as("M")),bn=No(I.as("w")),Ao=No(I.as("y")),or=G<=m.ss&&["s",G]||G<m.s&&["ss",G]||de<=1&&["m"]||de<m.m&&["mm",de]||ke<=1&&["h"]||ke<m.h&&["hh",ke]||je<=1&&["d"]||je<m.d&&["dd",je];return m.w!=null&&(or=or||bn<=1&&["w"]||bn<m.w&&["ww",bn]),or=or||et<=1&&["M"]||et<m.M&&["MM",et]||Ao<=1&&["y"]||["yy",Ao],or[2]=h,or[3]=+c>0,or[4]=_,FS.apply(null,or)}function $S(c){return c===void 0?No:typeof c=="function"?(No=c,!0):!1}function VS(c,h){return Kr[c]===void 0?!1:h===void 0?Kr[c]:(Kr[c]=h,c==="s"&&(Kr.ss=h-1),!0)}function jS(c,h){if(!this.isValid())return this.localeData().invalidDate();var m=!1,_=Kr,I,G;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(m=c),typeof h=="object"&&(_=Object.assign({},Kr,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),I=this.localeData(),G=LS(this,!m,_,I),m&&(G=I.pastFuture(+this,G)),I.postformat(G)}var Bc=Math.abs;function Xr(c){return(c>0)-(c<0)||+c}function Pa(){if(!this.isValid())return this.localeData().invalidDate();var c=Bc(this._milliseconds)/1e3,h=Bc(this._days),m=Bc(this._months),_,I,G,de,ke=this.asSeconds(),je,et,bn,Ao;return ke?(_=Sn(c/60),I=Sn(_/60),c%=60,_%=60,G=Sn(m/12),m%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",je=ke<0?"-":"",et=Xr(this._months)!==Xr(ke)?"-":"",bn=Xr(this._days)!==Xr(ke)?"-":"",Ao=Xr(this._milliseconds)!==Xr(ke)?"-":"",je+"P"+(G?et+G+"Y":"")+(m?et+m+"M":"")+(h?bn+h+"D":"")+(I||_||c?"T":"")+(I?Ao+I+"H":"")+(_?Ao+_+"M":"")+(c?Ao+de+"S":"")):"P0D"}var nt=Sa.prototype;nt.isValid=Iw,nt.abs=hS,nt.add=fS,nt.subtract=pS,nt.as=gS,nt.asMilliseconds=sf,nt.asSeconds=yS,nt.asMinutes=vS,nt.asHours=bS,nt.asDays=wS,nt.asWeeks=CS,nt.asMonths=SS,nt.asQuarters=_S,nt.asYears=xS,nt.valueOf=RS,nt._bubble=mS,nt.clone=TS,nt.get=kS,nt.milliseconds=ES,nt.seconds=PS,nt.minutes=DS,nt.hours=OS,nt.days=MS,nt.weeks=AS,nt.months=IS,nt.years=NS,nt.humanize=jS,nt.toISOString=Pa,nt.toString=Pa,nt.toJSON=Pa,nt.locale=Yh,nt.localeData=qh,nt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pa),nt.lang=Uh,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Re("x",ln),Re("X",Qt),mt("X",function(c,h,m){m._d=new Date(parseFloat(c)*1e3)}),mt("x",function(c,h,m){m._d=new Date(qe(c))});//! moment.js
|
|
297
|
+
`+new Error().stack),m=!1}return h.apply(this,arguments)},h)}var $={};function K(c,h){o.deprecationHandler!=null&&o.deprecationHandler(c,h),$[c]||(z(h),$[c]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function X(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function q(c){var h,m;for(m in c)l(c,m)&&(h=c[m],X(h)?this[m]=h:this["_"+m]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var m=b({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(m[_]={},b(m[_],c[_]),b(m[_],h[_])):h[_]!=null?m[_]=h[_]:delete m[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(m[_]=b({},m[_]));return m}function H(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,m=[];for(h in c)l(c,h)&&m.push(h);return m};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(c,h,m){var _=this._calendar[c]||this._calendar.sameElse;return X(_)?_.call(h,m):_}function V(c,h,m){var _=""+Math.abs(c),I=h-_.length,G=c>=0;return(G?m?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+_}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,m,_){var I=_;typeof _=="string"&&(I=function(){return this[_]()}),c&&(se[c]=I),h&&(se[h[0]]=function(){return V(I.apply(this,arguments),h[1],h[2])}),m&&(se[m]=function(){return this.localeData().ordinal(I.apply(this,arguments),c)})}function J(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function ee(c){var h=c.match(B),m,_;for(m=0,_=h.length;m<_;m++)se[h[m]]?h[m]=se[h[m]]:h[m]=J(h[m]);return function(I){var G="",de;for(de=0;de<_;de++)G+=X(h[de])?h[de].call(I,c):h[de];return G}}function te(c,h){return c.isValid()?(h=ce(h,c.localeData()),oe[h]=oe[h]||ee(h),oe[h](c)):c.localeData().invalidDate()}function ce(c,h){var m=5;function _(I){return h.longDateFormat(I)||I}for(ne.lastIndex=0;m>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,m-=1;return c}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(c){var h=this._longDateFormat[c],m=this._longDateFormat[c.toUpperCase()];return h||!m?h:(this._longDateFormat[c]=m.match(B).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var W="Invalid date";function re(){return this._invalidDate}var Q="%d",fe=/\d{1,2}/;function me(c){return this._ordinal.replace("%d",c)}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(c,h,m,_){var I=this._relativeTime[m];return X(I)?I(c,h,m,_):I.replace(/%d/i,c)}function xe(c,h){var m=this._relativeTime[c>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(c){return typeof c=="string"?$e[c]||$e[c.toLowerCase()]:void 0}function st(c){var h={},m,_;for(_ in c)l(c,_)&&(m=Ae(_),m&&(h[m]=c[_]));return h}var Pe={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(c){var h=[],m;for(m in c)l(c,m)&&h.push({unit:m,priority:Pe[m]});return h.sort(function(_,I){return _.priority-I.priority}),h}var Kt=/\d/,it=/\d\d/,Yt=/\d{3}/,Xt=/\d{4}/,on=/[+-]?\d{6}/,Ue=/\d\d?/,tt=/\d\d\d\d?/,Mn=/\d\d\d\d\d\d?/,hn=/\d{1,3}/,Ie=/\d{1,4}/,He=/[+-]?\d{1,6}/,vt=/\d+/,ln=/[+-]?\d+/,uo=/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?/,Hr=/^([1-9]\d|\d)/,zr;zr={};function Re(c,h,m){zr[c]=X(h)?h:function(_,I){return _&&m?m:h}}function Cc(c,h){return l(zr,c)?zr[c](h._strict,h._locale):new RegExp(va(c))}function va(c){return Vn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,m,_,I,G){return m||_||I||G}))}function Vn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Sn(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function qe(c){var h=+c,m=0;return h!==0&&isFinite(h)&&(m=Sn(h)),m}var Yr={};function mt(c,h){var m,_=h,I;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(G,de){de[h]=qe(G)}),I=c.length,m=0;m<I;m++)Yr[c[m]]=_}function yr(c,h){mt(c,function(m,_,I,G){I._w=I._w||{},h(m,I._w,I,G)})}function Sc(c,h,m){h!=null&&l(Yr,c)&&Yr[c](h,m._a,m,c)}function Ur(c){return c%4===0&&c%100!==0||c%400===0}var rn=0,U=1,pe=2,we=3,Ne=4,Ye=5,Je=6,Ze=7,Ge=8;j("Y",0,0,function(){var c=this.year();return c<=9999?V(c,4):"+"+c}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),Re("Y",ln),Re("YY",Ue,it),Re("YYYY",Ie,Xt),Re("YYYYY",He,on),Re("YYYYYY",He,on),mt(["YYYYY","YYYYYY"],rn),mt("YYYY",function(c,h){h[rn]=c.length===2?o.parseTwoDigitYear(c):qe(c)}),mt("YY",function(c,h){h[rn]=o.parseTwoDigitYear(c)}),mt("Y",function(c,h){h[rn]=parseInt(c,10)});function Ut(c){return Ur(c)?366:365}o.parseTwoDigitYear=function(c){return qe(c)+(qe(c)>68?1900:2e3)};var At=en("FullYear",!0);function Wt(){return Ur(this.year())}function en(c,h){return function(m){return m!=null?(ho(this,c,m),o.updateOffset(this,h),this):jn(this,c)}}function jn(c,h){if(!c.isValid())return NaN;var m=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?m.getUTCMilliseconds():m.getMilliseconds();case"Seconds":return _?m.getUTCSeconds():m.getSeconds();case"Minutes":return _?m.getUTCMinutes():m.getMinutes();case"Hours":return _?m.getUTCHours():m.getHours();case"Date":return _?m.getUTCDate():m.getDate();case"Day":return _?m.getUTCDay():m.getDay();case"Month":return _?m.getUTCMonth():m.getMonth();case"FullYear":return _?m.getUTCFullYear():m.getFullYear();default:return NaN}}function ho(c,h,m){var _,I,G,de,ke;if(!(!c.isValid()||isNaN(m))){switch(_=c._d,I=c._isUTC,h){case"Milliseconds":return void(I?_.setUTCMilliseconds(m):_.setMilliseconds(m));case"Seconds":return void(I?_.setUTCSeconds(m):_.setSeconds(m));case"Minutes":return void(I?_.setUTCMinutes(m):_.setMinutes(m));case"Hours":return void(I?_.setUTCHours(m):_.setHours(m));case"Date":return void(I?_.setUTCDate(m):_.setDate(m));case"FullYear":break;default:return}G=m,de=c.month(),ke=c.date(),ke=ke===29&&de===1&&!Ur(G)?28:ke,I?_.setUTCFullYear(G,de,ke):_.setFullYear(G,de,ke)}}function fn(c){return c=Ae(c),X(this[c])?this[c]():this}function Ws(c,h){if(typeof c=="object"){c=st(c);var m=ft(c),_,I=m.length;for(_=0;_<I;_++)this[m[_].unit](c[m[_].unit])}else if(c=Ae(c),X(this[c]))return this[c](h);return this}function _c(c,h){return(c%h+h)%h}var Vt;Array.prototype.indexOf?Vt=Array.prototype.indexOf:Vt=function(c){var h;for(h=0;h<this.length;++h)if(this[h]===c)return h;return-1};function xc(c,h){if(isNaN(c)||isNaN(h))return NaN;var m=_c(h,12);return c+=(h-m)/12,m===1?Ur(c)?29:28:31-m%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),Re("M",Ue,Jt),Re("MM",Ue,it),Re("MMM",function(c,h){return h.monthsShortRegex(c)}),Re("MMMM",function(c,h){return h.monthsRegex(c)}),mt(["M","MM"],function(c,h){h[U]=qe(c)-1}),mt(["MMM","MMMM"],function(c,h,m,_){var I=m._locale.monthsParse(c,_,m._strict);I!=null?h[U]=I:v(m).invalidMonth=c});var yb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_h="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vb=vn,bb=vn;function wb(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||xh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function Cb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[xh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Sb(c,h,m){var _,I,G,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)G=w([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(G,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(G,"").toLocaleLowerCase();return m?h==="MMM"?(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:null):(I=Vt.call(this._longMonthsParse,de),I!==-1?I:null):h==="MMM"?(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:(I=Vt.call(this._longMonthsParse,de),I!==-1?I:null)):(I=Vt.call(this._longMonthsParse,de),I!==-1?I:(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:null))}function _b(c,h,m){var _,I,G;if(this._monthsParseExact)return Sb.call(this,c,h,m);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(I=w([2e3,_]),m&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(I,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(I,"").replace(".","")+"$","i")),!m&&!this._monthsParse[_]&&(G="^"+this.months(I,"")+"|^"+this.monthsShort(I,""),this._monthsParse[_]=new RegExp(G.replace(".",""),"i")),m&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(m&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!m&&this._monthsParse[_].test(c))return _}}function Rh(c,h){if(!c.isValid())return c;if(typeof h=="string"){if(/^\d+$/.test(h))h=qe(h);else if(h=c.localeData().monthsParse(h),!f(h))return c}var m=h,_=c.date();return _=_<29?_:Math.min(_,xc(c.year(),m)),c._isUTC?c._d.setUTCMonth(m,_):c._d.setMonth(m,_),c}function Th(c){return c!=null?(Rh(this,c),o.updateOffset(this,!0),this):jn(this,"Month")}function xb(){return xc(this.year(),this.month())}function Rb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||kh.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=vb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function Tb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||kh.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=bb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function kh(){function c(je,et){return et.length-je.length}var h=[],m=[],_=[],I,G,de,ke;for(I=0;I<12;I++)G=w([2e3,I]),de=Vn(this.monthsShort(G,"")),ke=Vn(this.months(G,"")),h.push(de),m.push(ke),_.push(ke),_.push(de);h.sort(c),m.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function kb(c,h,m,_,I,G,de){var ke;return c<100&&c>=0?(ke=new Date(c+400,h,m,_,I,G,de),isFinite(ke.getFullYear())&&ke.setFullYear(c)):ke=new Date(c,h,m,_,I,G,de),ke}function Hs(c){var h,m;return c<100&&c>=0?(m=Array.prototype.slice.call(arguments),m[0]=c+400,h=new Date(Date.UTC.apply(null,m)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function ba(c,h,m){var _=7+h-m,I=(7+Hs(c,0,_).getUTCDay()-h)%7;return-I+_-1}function Eh(c,h,m,_,I){var G=(7+m-_)%7,de=ba(c,_,I),ke=1+7*(h-1)+G+de,je,et;return ke<=0?(je=c-1,et=Ut(je)+ke):ke>Ut(c)?(je=c+1,et=ke-Ut(c)):(je=c,et=ke),{year:je,dayOfYear:et}}function zs(c,h,m){var _=ba(c.year(),h,m),I=Math.floor((c.dayOfYear()-_-1)/7)+1,G,de;return I<1?(de=c.year()-1,G=I+Do(de,h,m)):I>Do(c.year(),h,m)?(G=I-Do(c.year(),h,m),de=c.year()+1):(de=c.year(),G=I),{week:G,year:de}}function Do(c,h,m){var _=ba(c,h,m),I=ba(c+1,h,m);return(Ut(c)-_+I)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),Re("w",Ue,Jt),Re("ww",Ue,it),Re("W",Ue,Jt),Re("WW",Ue,it),yr(["w","ww","W","WW"],function(c,h,m,_){h[_.substr(0,1)]=qe(c)});function Eb(c){return zs(c,this._week.dow,this._week.doy).week}var Pb={dow:0,doy:6};function Db(){return this._week.dow}function Ob(){return this._week.doy}function Mb(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function Ib(c){var h=zs(this,1,4).week;return c==null?h:this.add((c-h)*7,"d")}j("d",0,"do","day"),j("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),j("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),j("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),Re("d",Ue),Re("e",Ue),Re("E",Ue),Re("dd",function(c,h){return h.weekdaysMinRegex(c)}),Re("ddd",function(c,h){return h.weekdaysShortRegex(c)}),Re("dddd",function(c,h){return h.weekdaysRegex(c)}),yr(["dd","ddd","dddd"],function(c,h,m,_){var I=m._locale.weekdaysParse(c,_,m._strict);I!=null?h.d=I:v(m).invalidWeekday=c}),yr(["d","e","E"],function(c,h,m,_){h[_]=qe(c)});function Nb(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Ab(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Rc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var Fb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ph="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$b=vn,Vb=vn,jb=vn;function Bb(c,h){var m=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?Rc(m,this._week.dow):c?m[c.day()]:m}function Wb(c){return c===!0?Rc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function Hb(c){return c===!0?Rc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function zb(c,h,m){var _,I,G,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)G=w([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(G,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(G,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(G,"").toLocaleLowerCase();return m?h==="dddd"?(I=Vt.call(this._weekdaysParse,de),I!==-1?I:null):h==="ddd"?(I=Vt.call(this._shortWeekdaysParse,de),I!==-1?I:null):(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null):h==="dddd"?(I=Vt.call(this._weekdaysParse,de),I!==-1||(I=Vt.call(this._shortWeekdaysParse,de),I!==-1)?I:(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null)):h==="ddd"?(I=Vt.call(this._shortWeekdaysParse,de),I!==-1||(I=Vt.call(this._weekdaysParse,de),I!==-1)?I:(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null)):(I=Vt.call(this._minWeekdaysParse,de),I!==-1||(I=Vt.call(this._weekdaysParse,de),I!==-1)?I:(I=Vt.call(this._shortWeekdaysParse,de),I!==-1?I:null))}function Yb(c,h,m){var _,I,G;if(this._weekdaysParseExact)return zb.call(this,c,h,m);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(I=w([2e3,1]).day(_),m&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(G="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[_]=new RegExp(G.replace(".",""),"i")),m&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(m&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(m&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!m&&this._weekdaysParse[_].test(c))return _}}function Ub(c){if(!this.isValid())return c!=null?this:NaN;var h=jn(this,"Day");return c!=null?(c=Nb(c,this.localeData()),this.add(c-h,"d")):h}function qb(c){if(!this.isValid())return c!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return c==null?h:this.add(c-h,"d")}function Gb(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=Ab(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function Kb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Tc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=$b),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Tc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Vb),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Tc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jb),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Tc(){function c(bn,Ao){return Ao.length-bn.length}var h=[],m=[],_=[],I=[],G,de,ke,je,et;for(G=0;G<7;G++)de=w([2e3,1]).day(G),ke=Vn(this.weekdaysMin(de,"")),je=Vn(this.weekdaysShort(de,"")),et=Vn(this.weekdays(de,"")),h.push(ke),m.push(je),_.push(et),I.push(ke),I.push(je),I.push(et);h.sort(c),m.sort(c),_.sort(c),I.sort(c),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function kc(){return this.hours()%12||12}function Qb(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,kc),j("k",["kk",2],0,Qb),j("hmm",0,0,function(){return""+kc.apply(this)+V(this.minutes(),2)}),j("hmmss",0,0,function(){return""+kc.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)});function Dh(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}Dh("a",!0),Dh("A",!1);function Oh(c,h){return h._meridiemParse}Re("a",Oh),Re("A",Oh),Re("H",Ue,Hr),Re("h",Ue,Jt),Re("k",Ue,Jt),Re("HH",Ue,it),Re("hh",Ue,it),Re("kk",Ue,it),Re("hmm",tt),Re("hmmss",Mn),Re("Hmm",tt),Re("Hmmss",Mn),mt(["H","HH"],we),mt(["k","kk"],function(c,h,m){var _=qe(c);h[we]=_===24?0:_}),mt(["a","A"],function(c,h,m){m._isPm=m._locale.isPM(c),m._meridiem=c}),mt(["h","hh"],function(c,h,m){h[we]=qe(c),v(m).bigHour=!0}),mt("hmm",function(c,h,m){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_)),v(m).bigHour=!0}),mt("hmmss",function(c,h,m){var _=c.length-4,I=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_,2)),h[Ye]=qe(c.substr(I)),v(m).bigHour=!0}),mt("Hmm",function(c,h,m){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_))}),mt("Hmmss",function(c,h,m){var _=c.length-4,I=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_,2)),h[Ye]=qe(c.substr(I))});function Jb(c){return(c+"").toLowerCase().charAt(0)==="p"}var ew=/[ap]\.?m?\.?/i,tw=en("Hours",!0);function nw(c,h,m){return c>11?m?"pm":"PM":m?"am":"AM"}var Mh={calendar:N,longDateFormat:ie,invalidDate:W,ordinal:Q,dayOfMonthOrdinalParse:fe,relativeTime:Ce,months:yb,monthsShort:_h,week:Pb,weekdays:Fb,weekdaysMin:Lb,weekdaysShort:Ph,meridiemParse:ew},Ft={},Ys={},Us;function ow(c,h){var m,_=Math.min(c.length,h.length);for(m=0;m<_;m+=1)if(c[m]!==h[m])return m;return _}function Ih(c){return c&&c.toLowerCase().replace("_","-")}function rw(c){for(var h=0,m,_,I,G;h<c.length;){for(G=Ih(c[h]).split("-"),m=G.length,_=Ih(c[h+1]),_=_?_.split("-"):null;m>0;){if(I=wa(G.slice(0,m).join("-")),I)return I;if(_&&_.length>=m&&ow(G,_)>=m-1)break;m--}h++}return Us}function sw(c){return!!(c&&c.match("^[^/\\\\]*$"))}function wa(c){var h=null,m;if(Ft[c]===void 0&&e&&e.exports&&sw(c))try{h=Us._abbr,m=pA,m("./locale/"+c),tr(h)}catch{Ft[c]=null}return Ft[c]}function tr(c,h){var m;return c&&(u(h)?m=Oo(c):m=Ec(c,h),m?Us=m:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),Us._abbr}function Ec(c,h){if(h!==null){var m,_=Mh;if(h.abbr=c,Ft[c]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Ft[c]._config;else if(h.parentLocale!=null)if(Ft[h.parentLocale]!=null)_=Ft[h.parentLocale]._config;else if(m=wa(h.parentLocale),m!=null)_=m._config;else return Ys[h.parentLocale]||(Ys[h.parentLocale]=[]),Ys[h.parentLocale].push({name:c,config:h}),null;return Ft[c]=new H(Y(_,h)),Ys[c]&&Ys[c].forEach(function(I){Ec(I.name,I.config)}),tr(c),Ft[c]}else return delete Ft[c],null}function iw(c,h){if(h!=null){var m,_,I=Mh;Ft[c]!=null&&Ft[c].parentLocale!=null?Ft[c].set(Y(Ft[c]._config,h)):(_=wa(c),_!=null&&(I=_._config),h=Y(I,h),_==null&&(h.abbr=c),m=new H(h),m.parentLocale=Ft[c],Ft[c]=m),tr(c)}else Ft[c]!=null&&(Ft[c].parentLocale!=null?(Ft[c]=Ft[c].parentLocale,c===tr()&&tr(c)):Ft[c]!=null&&delete Ft[c]);return Ft[c]}function Oo(c){var h;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return Us;if(!i(c)){if(h=wa(c),h)return h;c=[c]}return rw(c)}function aw(){return ae(Ft)}function Pc(c){var h,m=c._a;return m&&v(c).overflow===-2&&(h=m[U]<0||m[U]>11?U:m[pe]<1||m[pe]>xc(m[rn],m[U])?pe:m[we]<0||m[we]>24||m[we]===24&&(m[Ne]!==0||m[Ye]!==0||m[Je]!==0)?we:m[Ne]<0||m[Ne]>59?Ne:m[Ye]<0||m[Ye]>59?Ye:m[Je]<0||m[Je]>999?Je:-1,v(c)._overflowDayOfYear&&(h<rn||h>pe)&&(h=pe),v(c)._overflowWeeks&&h===-1&&(h=Ze),v(c)._overflowWeekday&&h===-1&&(h=Ge),v(c).overflow=h),c}var lw=/^\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)?)?$/,cw=/^\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)?)?$/,dw=/Z|[+-]\d\d(?::?\d\d)?/,Ca=[["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/]],uw=/^\/?Date\((-?\d+)/i,hw=/^(?:(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}))$/,fw={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 Nh(c){var h,m,_=c._i,I=lw.exec(_)||cw.exec(_),G,de,ke,je,et=Ca.length,bn=Dc.length;if(I){for(v(c).iso=!0,h=0,m=et;h<m;h++)if(Ca[h][1].exec(I[1])){de=Ca[h][0],G=Ca[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(I[3]){for(h=0,m=bn;h<m;h++)if(Dc[h][1].exec(I[3])){ke=(I[2]||" ")+Dc[h][0];break}if(ke==null){c._isValid=!1;return}}if(!G&&ke!=null){c._isValid=!1;return}if(I[4])if(dw.exec(I[4]))je="Z";else{c._isValid=!1;return}c._f=de+(ke||"")+(je||""),Mc(c)}else c._isValid=!1}function pw(c,h,m,_,I,G){var de=[mw(c),_h.indexOf(h),parseInt(m,10),parseInt(_,10),parseInt(I,10)];return G&&de.push(parseInt(G,10)),de}function mw(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function gw(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function yw(c,h,m){if(c){var _=Ph.indexOf(c),I=new Date(h[0],h[1],h[2]).getDay();if(_!==I)return v(m).weekdayMismatch=!0,m._isValid=!1,!1}return!0}function vw(c,h,m){if(c)return fw[c];if(h)return 0;var _=parseInt(m,10),I=_%100,G=(_-I)/100;return G*60+I}function Ah(c){var h=hw.exec(gw(c._i)),m;if(h){if(m=pw(h[4],h[3],h[2],h[5],h[6],h[7]),!yw(h[1],m,c))return;c._a=m,c._tzm=vw(h[8],h[9],h[10]),c._d=Hs.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function bw(c){var h=uw.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(Nh(c),c._isValid===!1)delete c._isValid;else return;if(Ah(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:o.createFromInputFallback(c)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function qr(c,h,m){return c??h??m}function ww(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function Oc(c){var h,m,_=[],I,G,de;if(!c._d){for(I=ww(c),c._w&&c._a[pe]==null&&c._a[U]==null&&Cw(c),c._dayOfYear!=null&&(de=qr(c._a[rn],I[rn]),(c._dayOfYear>Ut(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),m=Hs(de,0,c._dayOfYear),c._a[U]=m.getUTCMonth(),c._a[pe]=m.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=I[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[we]===24&&c._a[Ne]===0&&c._a[Ye]===0&&c._a[Je]===0&&(c._nextDay=!0,c._a[we]=0),c._d=(c._useUTC?Hs:kb).apply(null,_),G=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[we]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==G&&(v(c).weekdayMismatch=!0)}}function Cw(c){var h,m,_,I,G,de,ke,je,et;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(G=1,de=4,m=qr(h.GG,c._a[rn],zs(Dt(),1,4).year),_=qr(h.W,1),I=qr(h.E,1),(I<1||I>7)&&(je=!0)):(G=c._locale._week.dow,de=c._locale._week.doy,et=zs(Dt(),G,de),m=qr(h.gg,c._a[rn],et.year),_=qr(h.w,et.week),h.d!=null?(I=h.d,(I<0||I>6)&&(je=!0)):h.e!=null?(I=h.e+G,(h.e<0||h.e>6)&&(je=!0)):I=G),_<1||_>Do(m,G,de)?v(c)._overflowWeeks=!0:je!=null?v(c)._overflowWeekday=!0:(ke=Eh(m,_,I,G,de),c._a[rn]=ke.year,c._dayOfYear=ke.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function Mc(c){if(c._f===o.ISO_8601){Nh(c);return}if(c._f===o.RFC_2822){Ah(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,m,_,I,G,de,ke=h.length,je=0,et,bn;for(I=ce(c._f,c._locale).match(B)||[],bn=I.length,m=0;m<bn;m++)G=I[m],_=(h.match(Cc(G,c))||[])[0],_&&(de=h.substr(0,h.indexOf(_)),de.length>0&&v(c).unusedInput.push(de),h=h.slice(h.indexOf(_)+_.length),je+=_.length),se[G]?(_?v(c).empty=!1:v(c).unusedTokens.push(G),Sc(G,_,c)):c._strict&&!_&&v(c).unusedTokens.push(G);v(c).charsLeftOver=ke-je,h.length>0&&v(c).unusedInput.push(h),c._a[we]<=12&&v(c).bigHour===!0&&c._a[we]>0&&(v(c).bigHour=void 0),v(c).parsedDateParts=c._a.slice(0),v(c).meridiem=c._meridiem,c._a[we]=Sw(c._locale,c._a[we],c._meridiem),et=v(c).era,et!==null&&(c._a[rn]=c._locale.erasConvertYear(et,c._a[rn])),Oc(c),Pc(c)}function Sw(c,h,m){var _;return m==null?h:c.meridiemHour!=null?c.meridiemHour(h,m):(c.isPM!=null&&(_=c.isPM(m),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function _w(c){var h,m,_,I,G,de,ke=!1,je=c._f.length;if(je===0){v(c).invalidFormat=!0,c._d=new Date(NaN);return}for(I=0;I<je;I++)G=0,de=!1,h=O({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[I],Mc(h),P(h)&&(de=!0),G+=v(h).charsLeftOver,G+=v(h).unusedTokens.length*10,v(h).score=G,ke?G<_&&(_=G,m=h):(_==null||G<_||de)&&(_=G,m=h,de&&(ke=!0));b(c,m||h)}function xw(c){if(!c._d){var h=st(c._i),m=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,m,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),Oc(c)}}function Rw(c){var h=new A(Pc(Fh(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function Fh(c){var h=c._i,m=c._f;return c._locale=c._locale||Oo(c._l),h===null||m===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new A(Pc(h)):(p(h)?c._d=h:i(m)?_w(c):m?Mc(c):Tw(c),P(c)||(c._d=null),c))}function Tw(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?bw(c):i(h)?(c._a=y(h.slice(0),function(m){return parseInt(m,10)}),Oc(c)):a(h)?xw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function Lh(c,h,m,_,I){var G={};return(h===!0||h===!1)&&(_=h,h=void 0),(m===!0||m===!1)&&(_=m,m=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),G._isAMomentObject=!0,G._useUTC=G._isUTC=I,G._l=m,G._i=c,G._f=h,G._strict=_,Rw(G)}function Dt(c,h,m,_){return Lh(c,h,m,_,!1)}var kw=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Dt.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:x()}),Ew=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Dt.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:x()});function $h(c,h){var m,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Dt();for(m=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](m))&&(m=h[_]);return m}function Pw(){var c=[].slice.call(arguments,0);return $h("isBefore",c)}function Dw(){var c=[].slice.call(arguments,0);return $h("isAfter",c)}var Ow=function(){return Date.now?Date.now():+new Date},qs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Mw(c){var h,m=!1,_,I=qs.length;for(h in c)if(l(c,h)&&!(Vt.call(qs,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<I;++_)if(c[qs[_]]){if(m)return!1;parseFloat(c[qs[_]])!==qe(c[qs[_]])&&(m=!0)}return!0}function Iw(){return this._isValid}function Nw(){return to(NaN)}function Sa(c){var h=st(c),m=h.year||0,_=h.quarter||0,I=h.month||0,G=h.week||h.isoWeek||0,de=h.day||0,ke=h.hour||0,je=h.minute||0,et=h.second||0,bn=h.millisecond||0;this._isValid=Mw(h),this._milliseconds=+bn+et*1e3+je*6e4+ke*1e3*60*60,this._days=+de+G*7,this._months=+I+_*3+m*12,this._data={},this._locale=Oo(),this._bubble()}function _a(c){return c instanceof Sa}function Ic(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function Aw(c,h,m){var _=Math.min(c.length,h.length),I=Math.abs(c.length-h.length),G=0,de;for(de=0;de<_;de++)qe(c[de])!==qe(h[de])&&G++;return G+I}function Vh(c,h){j(c,0,0,function(){var m=this.utcOffset(),_="+";return m<0&&(m=-m,_="-"),_+V(~~(m/60),2)+h+V(~~m%60,2)})}Vh("Z",":"),Vh("ZZ",""),Re("Z",pt),Re("ZZ",pt),mt(["Z","ZZ"],function(c,h,m){m._useUTC=!0,m._tzm=Nc(pt,c)});var Fw=/([\+\-]|\d\d)/gi;function Nc(c,h){var m=(h||"").match(c),_,I,G;return m===null?null:(_=m[m.length-1]||[],I=(_+"").match(Fw)||["-",0,0],G=+(I[1]*60)+qe(I[2]),G===0?0:I[0]==="+"?G:-G)}function Ac(c,h){var m,_;return h._isUTC?(m=h.clone(),_=(F(c)||p(c)?c.valueOf():Dt(c).valueOf())-m.valueOf(),m._d.setTime(m._d.valueOf()+_),o.updateOffset(m,!1),m):Dt(c).local()}function Fc(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function Lw(c,h,m){var _=this._offset||0,I;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=Nc(pt,c),c===null)return this}else Math.abs(c)<16&&!m&&(c=c*60);return!this._isUTC&&h&&(I=Fc(this)),this._offset=c,this._isUTC=!0,I!=null&&this.add(I,"m"),_!==c&&(!h||this._changeInProgress?Hh(this,to(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Fc(this)}function $w(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function Vw(c){return this.utcOffset(0,c)}function jw(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(Fc(this),"m")),this}function Bw(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=Nc(uo,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function Ww(c){return this.isValid()?(c=c?Dt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function Hw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zw(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return O(c,this),c=Fh(c),c._a?(h=c._isUTC?w(c._a):Dt(c._a),this._isDSTShifted=this.isValid()&&Aw(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Yw(){return this.isValid()?!this._isUTC:!1}function Uw(){return this.isValid()?this._isUTC:!1}function jh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var qw=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function to(c,h){var m=c,_=null,I,G,de;return _a(c)?m={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(m={},h?m[h]=+c:m.milliseconds=+c):(_=qw.exec(c))?(I=_[1]==="-"?-1:1,m={y:0,d:qe(_[pe])*I,h:qe(_[we])*I,m:qe(_[Ne])*I,s:qe(_[Ye])*I,ms:qe(Ic(_[Je]*1e3))*I}):(_=Gw.exec(c))?(I=_[1]==="-"?-1:1,m={y:vr(_[2],I),M:vr(_[3],I),w:vr(_[4],I),d:vr(_[5],I),h:vr(_[6],I),m:vr(_[7],I),s:vr(_[8],I)}):m==null?m={}:typeof m=="object"&&("from"in m||"to"in m)&&(de=Kw(Dt(m.from),Dt(m.to)),m={},m.ms=de.milliseconds,m.M=de.months),G=new Sa(m),_a(c)&&l(c,"_locale")&&(G._locale=c._locale),_a(c)&&l(c,"_isValid")&&(G._isValid=c._isValid),G}to.fn=Sa.prototype,to.invalid=Nw;function vr(c,h){var m=c&&parseFloat(c.replace(",","."));return(isNaN(m)?0:m)*h}function Bh(c,h){var m={};return m.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(m.months,"M").isAfter(h)&&--m.months,m.milliseconds=+h-+c.clone().add(m.months,"M"),m}function Kw(c,h){var m;return c.isValid()&&h.isValid()?(h=Ac(h,c),c.isBefore(h)?m=Bh(c,h):(m=Bh(h,c),m.milliseconds=-m.milliseconds,m.months=-m.months),m):{milliseconds:0,months:0}}function Wh(c,h){return function(m,_){var I,G;return _!==null&&!isNaN(+_)&&(K(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),G=m,m=_,_=G),I=to(m,_),Hh(this,I,c),this}}function Hh(c,h,m,_){var I=h._milliseconds,G=Ic(h._days),de=Ic(h._months);c.isValid()&&(_=_??!0,de&&Rh(c,jn(c,"Month")+de*m),G&&ho(c,"Date",jn(c,"Date")+G*m),I&&c._d.setTime(c._d.valueOf()+I*m),_&&o.updateOffset(c,G||de))}var Xw=Wh(1,"add"),Zw=Wh(-1,"subtract");function zh(c){return typeof c=="string"||c instanceof String}function Qw(c){return F(c)||p(c)||zh(c)||f(c)||eC(c)||Jw(c)||c===null||c===void 0}function Jw(c){var h=a(c)&&!d(c),m=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,G,de=_.length;for(I=0;I<de;I+=1)G=_[I],m=m||l(c,G);return h&&m}function eC(c){var h=i(c),m=!1;return h&&(m=c.filter(function(_){return!f(_)&&zh(c)}).length===0),h&&m}function tC(c){var h=a(c)&&!d(c),m=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],I,G;for(I=0;I<_.length;I+=1)G=_[I],m=m||l(c,G);return h&&m}function nC(c,h){var m=c.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 oC(c,h){arguments.length===1&&(arguments[0]?Qw(arguments[0])?(c=arguments[0],h=void 0):tC(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var m=c||Dt(),_=Ac(m,this).startOf("day"),I=o.calendarFormat(this,_)||"sameElse",G=h&&(X(h[I])?h[I].call(this,m):h[I]);return this.format(G||this.localeData().calendar(I,this,Dt(m)))}function rC(){return new A(this)}function sC(c,h){var m=F(c)?c:Dt(c);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()>m.valueOf():m.valueOf()<this.clone().startOf(h).valueOf()):!1}function iC(c,h){var m=F(c)?c:Dt(c);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()<m.valueOf():this.clone().endOf(h).valueOf()<m.valueOf()):!1}function aC(c,h,m,_){var I=F(c)?c:Dt(c),G=F(h)?h:Dt(h);return this.isValid()&&I.isValid()&&G.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(I,m):!this.isBefore(I,m))&&(_[1]===")"?this.isBefore(G,m):!this.isAfter(G,m))):!1}function lC(c,h){var m=F(c)?c:Dt(c),_;return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()===m.valueOf():(_=m.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function cC(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function dC(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function uC(c,h,m){var _,I,G;if(!this.isValid())return NaN;if(_=Ac(c,this),!_.isValid())return NaN;switch(I=(_.utcOffset()-this.utcOffset())*6e4,h=Ae(h),h){case"year":G=xa(this,_)/12;break;case"month":G=xa(this,_);break;case"quarter":G=xa(this,_)/3;break;case"second":G=(this-_)/1e3;break;case"minute":G=(this-_)/6e4;break;case"hour":G=(this-_)/36e5;break;case"day":G=(this-_-I)/864e5;break;case"week":G=(this-_-I)/6048e5;break;default:G=this-_}return m?G:Sn(G)}function xa(c,h){if(c.date()<h.date())return-xa(h,c);var m=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(m,"months"),I,G;return h-_<0?(I=c.clone().add(m-1,"months"),G=(h-_)/(_-I)):(I=c.clone().add(m+1,"months"),G=(h-_)/(I-_)),-(m+G)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function hC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fC(c){if(!this.isValid())return null;var h=c!==!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 pC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",m,_,I,G;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),m="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",G=h+'[")]',this.format(m+_+I+G)}function mC(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function gC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?to({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function yC(c){return this.from(Dt(),c)}function vC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?to({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function bC(c){return this.to(Dt(),c)}function Yh(c){var h;return c===void 0?this._locale._abbr:(h=Oo(c),h!=null&&(this._locale=h),this)}var Uh=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function qh(){return this._locale}var Ra=1e3,Gr=60*Ra,Ta=60*Gr,Gh=(365*400+97)*24*Ta;function Kr(c,h){return(c%h+h)%h}function Kh(c,h,m){return c<100&&c>=0?new Date(c+400,h,m)-Gh:new Date(c,h,m).valueOf()}function Xh(c,h,m){return c<100&&c>=0?Date.UTC(c+400,h,m)-Gh:Date.UTC(c,h,m)}function wC(c){var h,m;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?Xh:Kh,c){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-=Kr(h+(this._isUTC?0:this.utcOffset()*Gr),Ta);break;case"minute":h=this._d.valueOf(),h-=Kr(h,Gr);break;case"second":h=this._d.valueOf(),h-=Kr(h,Ra);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function CC(c){var h,m;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?Xh:Kh,c){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+=Ta-Kr(h+(this._isUTC?0:this.utcOffset()*Gr),Ta)-1;break;case"minute":h=this._d.valueOf(),h+=Gr-Kr(h,Gr)-1;break;case"second":h=this._d.valueOf(),h+=Ra-Kr(h,Ra)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function SC(){return this._d.valueOf()-(this._offset||0)*6e4}function _C(){return Math.floor(this.valueOf()/1e3)}function xC(){return new Date(this.valueOf())}function RC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function TC(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function kC(){return this.isValid()?this.toISOString():null}function EC(){return P(this)}function PC(){return b({},v(this))}function DC(){return v(this).overflow}function OC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),Re("N",Lc),Re("NN",Lc),Re("NNN",Lc),Re("NNNN",WC),Re("NNNNN",HC),mt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,m,_){var I=m._locale.erasParse(c,_,m._strict);I?v(m).era=I:v(m).invalidEra=c}),Re("y",vt),Re("yy",vt),Re("yyy",vt),Re("yyyy",vt),Re("yo",zC),mt(["y","yy","yyy","yyyy"],rn),mt(["yo"],function(c,h,m,_){var I;m._locale._eraYearOrdinalRegex&&(I=c.match(m._locale._eraYearOrdinalRegex)),m._locale.eraYearOrdinalParse?h[rn]=m._locale.eraYearOrdinalParse(c,I):h[rn]=parseInt(c,10)});function MC(c,h){var m,_,I,G=this._eras||Oo("en")._eras;for(m=0,_=G.length;m<_;++m){switch(typeof G[m].since){case"string":I=o(G[m].since).startOf("day"),G[m].since=I.valueOf();break}switch(typeof G[m].until){case"undefined":G[m].until=1/0;break;case"string":I=o(G[m].until).startOf("day").valueOf(),G[m].until=I.valueOf();break}}return G}function IC(c,h,m){var _,I,G=this.eras(),de,ke,je;for(c=c.toUpperCase(),_=0,I=G.length;_<I;++_)if(de=G[_].name.toUpperCase(),ke=G[_].abbr.toUpperCase(),je=G[_].narrow.toUpperCase(),m)switch(h){case"N":case"NN":case"NNN":if(ke===c)return G[_];break;case"NNNN":if(de===c)return G[_];break;case"NNNNN":if(je===c)return G[_];break}else if([de,ke,je].indexOf(c)>=0)return G[_]}function NC(c,h){var m=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*m}function AC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].name;return""}function FC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].narrow;return""}function LC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].abbr;return""}function $C(){var c,h,m,_,I=this.localeData().eras();for(c=0,h=I.length;c<h;++c)if(m=I[c].since<=I[c].until?1:-1,_=this.clone().startOf("day").valueOf(),I[c].since<=_&&_<=I[c].until||I[c].until<=_&&_<=I[c].since)return(this.year()-o(I[c].since).year())*m+I[c].offset;return this.year()}function VC(c){return l(this,"_erasNameRegex")||$c.call(this),c?this._erasNameRegex:this._erasRegex}function jC(c){return l(this,"_erasAbbrRegex")||$c.call(this),c?this._erasAbbrRegex:this._erasRegex}function BC(c){return l(this,"_erasNarrowRegex")||$c.call(this),c?this._erasNarrowRegex:this._erasRegex}function Lc(c,h){return h.erasAbbrRegex(c)}function WC(c,h){return h.erasNameRegex(c)}function HC(c,h){return h.erasNarrowRegex(c)}function zC(c,h){return h._eraYearOrdinalRegex||vt}function $c(){var c=[],h=[],m=[],_=[],I,G,de,ke,je,et=this.eras();for(I=0,G=et.length;I<G;++I)de=Vn(et[I].name),ke=Vn(et[I].abbr),je=Vn(et[I].narrow),h.push(de),c.push(ke),m.push(je),_.push(de),_.push(ke),_.push(je);this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+m.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ka(c,h){j(0,[c,c.length],0,h)}ka("gggg","weekYear"),ka("ggggg","weekYear"),ka("GGGG","isoWeekYear"),ka("GGGGG","isoWeekYear"),Re("G",ln),Re("g",ln),Re("GG",Ue,it),Re("gg",Ue,it),Re("GGGG",Ie,Xt),Re("gggg",Ie,Xt),Re("GGGGG",He,on),Re("ggggg",He,on),yr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,m,_){h[_.substr(0,2)]=qe(c)}),yr(["gg","GG"],function(c,h,m,_){h[_]=o.parseTwoDigitYear(c)});function YC(c){return Zh.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function UC(c){return Zh.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function qC(){return Do(this.year(),1,4)}function GC(){return Do(this.isoWeekYear(),1,4)}function KC(){var c=this.localeData()._week;return Do(this.year(),c.dow,c.doy)}function XC(){var c=this.localeData()._week;return Do(this.weekYear(),c.dow,c.doy)}function Zh(c,h,m,_,I){var G;return c==null?zs(this,_,I).year:(G=Do(c,_,I),h>G&&(h=G),ZC.call(this,c,h,m,_,I))}function ZC(c,h,m,_,I){var G=Eh(c,h,m,_,I),de=Hs(G.year,0,G.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}j("Q",0,"Qo","quarter"),Re("Q",Kt),mt("Q",function(c,h){h[U]=(qe(c)-1)*3});function QC(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}j("D",["DD",2],"Do","date"),Re("D",Ue,Jt),Re("DD",Ue,it),Re("Do",function(c,h){return c?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],pe),mt("Do",function(c,h){h[pe]=qe(c.match(Ue)[0])});var Qh=en("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),Re("DDD",hn),Re("DDDD",Yt),mt(["DDD","DDDD"],function(c,h,m){m._dayOfYear=qe(c)});function JC(c){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?h:this.add(c-h,"d")}j("m",["mm",2],0,"minute"),Re("m",Ue,Hr),Re("mm",Ue,it),mt(["m","mm"],Ne);var eS=en("Minutes",!1);j("s",["ss",2],0,"second"),Re("s",Ue,Hr),Re("ss",Ue,it),mt(["s","ss"],Ye);var tS=en("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Re("S",hn,Kt),Re("SS",hn,it),Re("SSS",hn,Yt);var nr,Jh;for(nr="SSSS";nr.length<=9;nr+="S")Re(nr,vt);function nS(c,h){h[Je]=qe(("0."+c)*1e3)}for(nr="S";nr.length<=9;nr+="S")mt(nr,nS);Jh=en("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function oS(){return this._isUTC?"UTC":""}function rS(){return this._isUTC?"Coordinated Universal Time":""}var ge=A.prototype;ge.add=Xw,ge.calendar=oC,ge.clone=rC,ge.diff=uC,ge.endOf=CC,ge.format=mC,ge.from=gC,ge.fromNow=yC,ge.to=vC,ge.toNow=bC,ge.get=fn,ge.invalidAt=DC,ge.isAfter=sC,ge.isBefore=iC,ge.isBetween=aC,ge.isSame=lC,ge.isSameOrAfter=cC,ge.isSameOrBefore=dC,ge.isValid=EC,ge.lang=Uh,ge.locale=Yh,ge.localeData=qh,ge.max=Ew,ge.min=kw,ge.parsingFlags=PC,ge.set=Ws,ge.startOf=wC,ge.subtract=Zw,ge.toArray=RC,ge.toObject=TC,ge.toDate=xC,ge.toISOString=fC,ge.inspect=pC,typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ge.toJSON=kC,ge.toString=hC,ge.unix=_C,ge.valueOf=SC,ge.creationData=OC,ge.eraName=AC,ge.eraNarrow=FC,ge.eraAbbr=LC,ge.eraYear=$C,ge.year=At,ge.isLeapYear=Wt,ge.weekYear=YC,ge.isoWeekYear=UC,ge.quarter=ge.quarters=QC,ge.month=Th,ge.daysInMonth=xb,ge.week=ge.weeks=Mb,ge.isoWeek=ge.isoWeeks=Ib,ge.weeksInYear=KC,ge.weeksInWeekYear=XC,ge.isoWeeksInYear=qC,ge.isoWeeksInISOWeekYear=GC,ge.date=Qh,ge.day=ge.days=Ub,ge.weekday=qb,ge.isoWeekday=Gb,ge.dayOfYear=JC,ge.hour=ge.hours=tw,ge.minute=ge.minutes=eS,ge.second=ge.seconds=tS,ge.millisecond=ge.milliseconds=Jh,ge.utcOffset=Lw,ge.utc=Vw,ge.local=jw,ge.parseZone=Bw,ge.hasAlignedHourOffset=Ww,ge.isDST=Hw,ge.isLocal=Yw,ge.isUtcOffset=Uw,ge.isUtc=jh,ge.isUTC=jh,ge.zoneAbbr=oS,ge.zoneName=rS,ge.dates=R("dates accessor is deprecated. Use date instead.",Qh),ge.months=R("months accessor is deprecated. Use month instead",Th),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/",$w),ge.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zw);function sS(c){return Dt(c*1e3)}function iS(){return Dt.apply(null,arguments).parseZone()}function ef(c){return c}var ct=H.prototype;ct.calendar=M,ct.longDateFormat=he,ct.invalidDate=re,ct.ordinal=me,ct.preparse=ef,ct.postformat=ef,ct.relativeTime=ve,ct.pastFuture=xe,ct.set=q,ct.eras=MC,ct.erasParse=IC,ct.erasConvertYear=NC,ct.erasAbbrRegex=jC,ct.erasNameRegex=VC,ct.erasNarrowRegex=BC,ct.months=wb,ct.monthsShort=Cb,ct.monthsParse=_b,ct.monthsRegex=Tb,ct.monthsShortRegex=Rb,ct.week=Eb,ct.firstDayOfYear=Ob,ct.firstDayOfWeek=Db,ct.weekdays=Bb,ct.weekdaysMin=Hb,ct.weekdaysShort=Wb,ct.weekdaysParse=Yb,ct.weekdaysRegex=Kb,ct.weekdaysShortRegex=Xb,ct.weekdaysMinRegex=Zb,ct.isPM=Jb,ct.meridiem=nw;function Ea(c,h,m,_){var I=Oo(),G=w().set(_,h);return I[m](G,c)}function tf(c,h,m){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return Ea(c,h,m,"month");var _,I=[];for(_=0;_<12;_++)I[_]=Ea(c,_,m,"month");return I}function Vc(c,h,m,_){typeof c=="boolean"?(f(h)&&(m=h,h=void 0),h=h||""):(h=c,m=h,c=!1,f(h)&&(m=h,h=void 0),h=h||"");var I=Oo(),G=c?I._week.dow:0,de,ke=[];if(m!=null)return Ea(h,(m+G)%7,_,"day");for(de=0;de<7;de++)ke[de]=Ea(h,(de+G)%7,_,"day");return ke}function aS(c,h){return tf(c,h,"months")}function lS(c,h){return tf(c,h,"monthsShort")}function cS(c,h,m){return Vc(c,h,m,"weekdays")}function dS(c,h,m){return Vc(c,h,m,"weekdaysShort")}function uS(c,h,m){return Vc(c,h,m,"weekdaysMin")}tr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,m=qe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+m}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",tr),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Oo);var Mo=Math.abs;function hS(){var c=this._data;return this._milliseconds=Mo(this._milliseconds),this._days=Mo(this._days),this._months=Mo(this._months),c.milliseconds=Mo(c.milliseconds),c.seconds=Mo(c.seconds),c.minutes=Mo(c.minutes),c.hours=Mo(c.hours),c.months=Mo(c.months),c.years=Mo(c.years),this}function nf(c,h,m,_){var I=to(h,m);return c._milliseconds+=_*I._milliseconds,c._days+=_*I._days,c._months+=_*I._months,c._bubble()}function fS(c,h){return nf(this,c,h,1)}function pS(c,h){return nf(this,c,h,-1)}function of(c){return c<0?Math.floor(c):Math.ceil(c)}function mS(){var c=this._milliseconds,h=this._days,m=this._months,_=this._data,I,G,de,ke,je;return c>=0&&h>=0&&m>=0||c<=0&&h<=0&&m<=0||(c+=of(jc(m)+h)*864e5,h=0,m=0),_.milliseconds=c%1e3,I=Sn(c/1e3),_.seconds=I%60,G=Sn(I/60),_.minutes=G%60,de=Sn(G/60),_.hours=de%24,h+=Sn(de/24),je=Sn(rf(h)),m+=je,h-=of(jc(je)),ke=Sn(m/12),m%=12,_.days=h,_.months=m,_.years=ke,this}function rf(c){return c*4800/146097}function jc(c){return c*146097/4800}function gS(c){if(!this.isValid())return NaN;var h,m,_=this._milliseconds;if(c=Ae(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,m=this._months+rf(h),c){case"month":return m;case"quarter":return m/3;case"year":return m/12}else switch(h=this._days+Math.round(jc(this._months)),c){case"week":return h/7+_/6048e5;case"day":return h+_/864e5;case"hour":return h*24+_/36e5;case"minute":return h*1440+_/6e4;case"second":return h*86400+_/1e3;case"millisecond":return Math.floor(h*864e5)+_;default:throw new Error("Unknown unit "+c)}}function Io(c){return function(){return this.as(c)}}var sf=Io("ms"),yS=Io("s"),vS=Io("m"),bS=Io("h"),wS=Io("d"),CS=Io("w"),SS=Io("M"),_S=Io("Q"),xS=Io("y"),RS=sf;function TS(){return to(this)}function kS(c){return c=Ae(c),this.isValid()?this[c+"s"]():NaN}function br(c){return function(){return this.isValid()?this._data[c]:NaN}}var ES=br("milliseconds"),PS=br("seconds"),DS=br("minutes"),OS=br("hours"),MS=br("days"),IS=br("months"),NS=br("years");function AS(){return Sn(this.days()/7)}var No=Math.round,Xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function FS(c,h,m,_,I){return I.relativeTime(h||1,!!m,c,_)}function LS(c,h,m,_){var I=to(c).abs(),G=No(I.as("s")),de=No(I.as("m")),ke=No(I.as("h")),je=No(I.as("d")),et=No(I.as("M")),bn=No(I.as("w")),Ao=No(I.as("y")),or=G<=m.ss&&["s",G]||G<m.s&&["ss",G]||de<=1&&["m"]||de<m.m&&["mm",de]||ke<=1&&["h"]||ke<m.h&&["hh",ke]||je<=1&&["d"]||je<m.d&&["dd",je];return m.w!=null&&(or=or||bn<=1&&["w"]||bn<m.w&&["ww",bn]),or=or||et<=1&&["M"]||et<m.M&&["MM",et]||Ao<=1&&["y"]||["yy",Ao],or[2]=h,or[3]=+c>0,or[4]=_,FS.apply(null,or)}function $S(c){return c===void 0?No:typeof c=="function"?(No=c,!0):!1}function VS(c,h){return Xr[c]===void 0?!1:h===void 0?Xr[c]:(Xr[c]=h,c==="s"&&(Xr.ss=h-1),!0)}function jS(c,h){if(!this.isValid())return this.localeData().invalidDate();var m=!1,_=Xr,I,G;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(m=c),typeof h=="object"&&(_=Object.assign({},Xr,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),I=this.localeData(),G=LS(this,!m,_,I),m&&(G=I.pastFuture(+this,G)),I.postformat(G)}var Bc=Math.abs;function Zr(c){return(c>0)-(c<0)||+c}function Pa(){if(!this.isValid())return this.localeData().invalidDate();var c=Bc(this._milliseconds)/1e3,h=Bc(this._days),m=Bc(this._months),_,I,G,de,ke=this.asSeconds(),je,et,bn,Ao;return ke?(_=Sn(c/60),I=Sn(_/60),c%=60,_%=60,G=Sn(m/12),m%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",je=ke<0?"-":"",et=Zr(this._months)!==Zr(ke)?"-":"",bn=Zr(this._days)!==Zr(ke)?"-":"",Ao=Zr(this._milliseconds)!==Zr(ke)?"-":"",je+"P"+(G?et+G+"Y":"")+(m?et+m+"M":"")+(h?bn+h+"D":"")+(I||_||c?"T":"")+(I?Ao+I+"H":"")+(_?Ao+_+"M":"")+(c?Ao+de+"S":"")):"P0D"}var nt=Sa.prototype;nt.isValid=Iw,nt.abs=hS,nt.add=fS,nt.subtract=pS,nt.as=gS,nt.asMilliseconds=sf,nt.asSeconds=yS,nt.asMinutes=vS,nt.asHours=bS,nt.asDays=wS,nt.asWeeks=CS,nt.asMonths=SS,nt.asQuarters=_S,nt.asYears=xS,nt.valueOf=RS,nt._bubble=mS,nt.clone=TS,nt.get=kS,nt.milliseconds=ES,nt.seconds=PS,nt.minutes=DS,nt.hours=OS,nt.days=MS,nt.weeks=AS,nt.months=IS,nt.years=NS,nt.humanize=jS,nt.toISOString=Pa,nt.toString=Pa,nt.toJSON=Pa,nt.locale=Yh,nt.localeData=qh,nt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pa),nt.lang=Uh,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Re("x",ln),Re("X",Qt),mt("X",function(c,h,m){m._d=new Date(parseFloat(c)*1e3)}),mt("x",function(c,h,m){m._d=new Date(qe(c))});//! moment.js
|
|
298
298
|
return o.version="2.30.1",r(Dt),o.fn=ge,o.min=Pw,o.max=Dw,o.now=Ow,o.utc=w,o.unix=sS,o.months=aS,o.isDate=p,o.locale=tr,o.invalid=x,o.duration=to,o.isMoment=F,o.weekdays=cS,o.parseZone=iS,o.localeData=Oo,o.isDuration=_a,o.monthsShort=lS,o.weekdaysMin=uS,o.defineLocale=Ec,o.updateLocale=iw,o.locales=aw,o.weekdaysShort=dS,o.normalizeUnits=Ae,o.relativeTimeRounding=$S,o.relativeTimeThreshold=VS,o.calendarFormat=nC,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})}(il)),il.exports}gA();const yA=`
|
|
299
299
|
html body {
|
|
300
300
|
font-family: "Courier", "sans-serif";
|
|
@@ -340,24 +340,24 @@ return o.version="2.30.1",r(Dt),o.fn=ge,o.min=Pw,o.max=Dw,o.now=Ow,o.utc=w,o.uni
|
|
|
340
340
|
.align_left {
|
|
341
341
|
text-align: left;
|
|
342
342
|
}
|
|
343
|
-
`;class wv{constructor(){this.clientId=0,this.clientName="",this.cssStyles=yA}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("align_left"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}columnNames(t){const n=document.createElement("tr");return(t.grid?.getColumns()||[]).filter(a=>a.forPrint).forEach(({name:a})=>{const l=document.createElement("th");l.classList.add("column_name"),typeof a=="string"?l.innerText=a:l.innerText=" ",n.append(l)}),n}tableNameAndTime(t){const n=document.createElement("tr");n.classList.add("heading");const o=document.createElement("th");o.setAttribute("colspan","2"),o.classList.add("table_name"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.setAttribute("colspan","100%"),r.classList.add("date_stamp"),r.innerText=_e().format("MM/DD/YYYY h:mm A"),n.append(r),n}createStyleElement(){const t=document.createElement("style");return t.innerHTML=this.cssStyles,t}createTableElement(t){const n=document.createElement("table");return n.append(this.createThead(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return hc(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("align_left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createThead(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n.append(this.columnNames(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=by(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,b=i.getItemMetadata(n)?.columns?.[p]?.formatter,w=u.printer||b||u.formatter;let g=a[p];if(d){const v=u.groupTotalsFormatter;g=v?v(a,u,o):""}else w&&(g=w(0,0,g,u,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 vA(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class bA{constructor(t){this.downloadManager=new Z1,this.filter=new sN,this.hotKeysBehavior=new J1,this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new wv;const{downloadManager:n,filter:o,hotKeys:r,id:i,name:a,printer:l,totalCalculator:d}=t;this.id=i,this.name=a||"",n&&(this.downloadManager=n),o&&(this.filter=o),r&&(this.hotKeysBehavior=r),l&&(this.printer=l),d&&(this.totalCalculator=d)}createGrid(t,n,o){this.reset();const r=new tA(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(rm(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){vA(`#${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(rm(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class wA extends ih{constructor(){super(...arguments),this.x=0,this.y=0}}const Cn=new wA,CA=e=>{const t=e.getLength()-1;return e.getItem(t)},Rl=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},Cv=()=>{gv.commitCurrentEdit()};function Sv(e){return e.ctrlKey&&e.keyCode===$s.KeyB}function SA(e){return e.shiftKey&&e.keyCode===$s.KeyDel}function _v(e){return e.ctrlKey&&e.keyCode===$s.KeyY}function xv(e){return e.ctrlKey&&e.keyCode===$s.KeyZ}function _A(e){const t=e.getActiveCell();return!e.getSelectedRows().length&&!t}function xA(e){const t=RA(e),o=e.getData().getItems(),r=o.findIndex(a=>a.id===t)+1,i=o.length;return r||i}const hc=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t},Rv=e=>{const t=e.getSelectedRows(),n=e.getData(),o=hc(n),r=n.getItems(),i=[],a=n.getIdPropertyName();t.length?t.forEach(l=>{i.push({...o[l],[a]:Rl(e),isEdited:!0,isNew:!0})}):i.push({[a]:Rl(e),isEdited:!0,isNew:!0}),r.splice(xA(e),0,...i),n.setItems(r),e.setSelectedRows([]),e.invalidate()},RA=e=>{const t=e.getData(),n=hc(t),o=e.getActiveCell()?.row;return o!==void 0?(n[o]||n[n.length-1])?.id:0};function Tv(e){return function(t){t.preventDefault(),Cv(),Cn.table=e,Cn.x=t.pageX||0,Cn.y=t.pageY||0,Cn.notify()}}class TA extends ih{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const li=new TA,kA=e=>{function t(){if(e.id!==li.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,li.activeTable=e,li.notify()}Be.useEffect(()=>{li.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{li.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])},EA=e=>{const[t,n]=Be.useState(PA(e));return Be.useEffect(()=>{const o=r=>{n(i=>({...i,[r.id]:r.isEdited}))};return e.forEach(r=>{r.registerObservers(o)}),()=>{e.forEach(r=>{r.deleteObserver(o)})}},[]),Object.values(t).some(o=>o)};function PA(e){const t={};for(const n of e)t[n.id]=n.isEdited;return t}function DA(e){Be.useEffect(()=>{function t(){e.grid?.resizeCanvas()}const n=vy(t);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[])}const OA=e=>{Be.useEffect(()=>{function t(n){const o=n.grid;o&&n.totalCalculator?.calculate(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},rm=e=>t=>{t.keyCode===$s.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},MA=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},IA=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},NA=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())},AA=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)},Dr=function(){const e=function(x,S,C,O){for(C=C||{},O=x.length;O--;C[x[O]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],b=[5,6,7,8,9,10,11,12,14],w=[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(S,C,O,A,F,z,R){const $=z.length-1;switch(F){case 1:return z[$-1];case 2:this.$=z[$-2]+z[$];break;case 3:this.$=z[$-2]-z[$];break;case 4:this.$=z[$-2]*z[$];break;case 5:this.$=z[$-2]/z[$];break;case 6:this.$=Math.pow(z[$-2],z[$]);break;case 7:this.$=function K(X){return X==0?1:K(X-1)*X}(z[$-1]);break;case 8:this.$=z[$-1]/100;break;case 9:this.$=-z[$];break;case 10:this.$=z[$-1];break;case 11:this.$=Number(S);break;case 12:this.$=Math.E;break;case 13:this.$=Math.PI;break}},table:[{3:1,4:2,7:t,13:n,15:o,16:r,17:i},{1:[3]},{5:[1,8],6:a,7:l,8:d,9:u,10:f,11:p,12:y},{4:16,7:t,13:n,15:o,16:r,17:i},{4:17,7:t,13:n,15:o,16:r,17:i},e(b,[2,11]),e(b,[2,12]),e(b,[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(b,[2,7]),e(b,[2,8]),e(b,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(w,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(w,[2,3],{8:d,9:u,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(b,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const O=new Error(S);throw O.hash=C,O}},parse:function(S){const C=this;let O=[0],A=[null],F=[];const z=this.table;let R="",$=0,K=0;const X=2,q=1,Y=F.slice.call(arguments,1),H=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]);H.setInput(S,ae.yy),ae.yy.lexer=H,ae.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});let N=H.yylloc;F.push(N);const M=H.options&&H.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var V=function(){let ie;return ie=H.lex()||q,typeof ie!="number"&&(ie=C.symbols_[ie]||ie),ie};let B,ne,oe,se;const j={};let J,ee,te,ce;for(;;){if(ne=O[O.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((B===null||typeof B>"u")&&(B=V()),oe=z[ne]&&z[ne][B]),typeof oe>"u"||!oe.length||!oe[0]){let ie="";ce=[];for(J in z[ne])this.terminals_[J]&&J>X&&ce.push("'"+this.terminals_[J]+"'");H.showPosition?ie="Parse error on line "+($+1)+`:
|
|
343
|
+
`;class wv{constructor(){this.clientId=0,this.clientName="",this.cssStyles=yA}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("align_left"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}columnNames(t){const n=document.createElement("tr");return(t.grid?.getColumns()||[]).filter(a=>a.forPrint).forEach(({name:a})=>{const l=document.createElement("th");l.classList.add("column_name"),typeof a=="string"?l.innerText=a:l.innerText=" ",n.append(l)}),n}tableNameAndTime(t){const n=document.createElement("tr");n.classList.add("heading");const o=document.createElement("th");o.setAttribute("colspan","2"),o.classList.add("table_name"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.setAttribute("colspan","100%"),r.classList.add("date_stamp"),r.innerText=_e().format("MM/DD/YYYY h:mm A"),n.append(r),n}createStyleElement(){const t=document.createElement("style");return t.innerHTML=this.cssStyles,t}createTableElement(t){const n=document.createElement("table");return n.append(this.createThead(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return hc(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("align_left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createThead(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n.append(this.columnNames(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=by(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,b=i.getItemMetadata(n)?.columns?.[p]?.formatter,w=u.printer||b||u.formatter;let g=a[p];if(d){const v=u.groupTotalsFormatter;g=v?v(a,u,o):""}else w&&(g=w(0,0,g,u,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 vA(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class bA{constructor(t){this.downloadManager=new Z1,this.filter=new sN,this.hotKeysBehavior=new J1,this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new wv;const{downloadManager:n,filter:o,hotKeys:r,id:i,name:a,printer:l,totalCalculator:d}=t;this.id=i,this.name=a||"",n&&(this.downloadManager=n),o&&(this.filter=o),r&&(this.hotKeysBehavior=r),l&&(this.printer=l),d&&(this.totalCalculator=d)}createGrid(t,n,o){this.reset();const r=new tA(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(rm(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){vA(`#${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(rm(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class wA extends ih{constructor(){super(...arguments),this.x=0,this.y=0}}const Cn=new wA,CA=e=>{const t=e.getLength()-1;return e.getItem(t)},Rl=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},Cv=()=>{gv.commitCurrentEdit()};function Sv(e){return e.ctrlKey&&e.keyCode===$s.KeyB}function SA(e){return e.shiftKey&&e.keyCode===$s.KeyDel}function _v(e){return e.ctrlKey&&e.keyCode===$s.KeyY}function xv(e){return e.ctrlKey&&e.keyCode===$s.KeyZ}function _A(e){const t=e.getActiveCell();return!e.getSelectedRows().length&&!t}function xA(e){const t=RA(e),o=e.getData().getItems(),r=o.findIndex(a=>a.id===t)+1,i=o.length;return r||i}const hc=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t},Rv=e=>{const t=e.getSelectedRows(),n=e.getData(),o=hc(n),r=n.getItems(),i=[],a=n.getIdPropertyName();t.length?t.forEach(l=>{i.push({...o[l],[a]:Rl(e),isEdited:!0,isNew:!0})}):i.push({[a]:Rl(e),isEdited:!0,isNew:!0}),r.splice(xA(e),0,...i),n.setItems(r),e.setSelectedRows([]),e.invalidate()},RA=e=>{const t=e.getData(),n=hc(t),o=e.getActiveCell()?.row;return o!==void 0?(n[o]||n[n.length-1])?.id:0};function Tv(e){return function(t){t.preventDefault(),Cv(),Cn.table=e,Cn.x=t.pageX||0,Cn.y=t.pageY||0,Cn.notify()}}class TA extends ih{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const li=new TA,kA=e=>{function t(){if(e.id!==li.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,li.activeTable=e,li.notify()}Be.useEffect(()=>{li.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{li.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])},EA=e=>{const[t,n]=Be.useState(PA(e));return Be.useEffect(()=>{const o=r=>{n(i=>({...i,[r.id]:r.isEdited}))};return e.forEach(r=>{r.registerObservers(o)}),()=>{e.forEach(r=>{r.deleteObserver(o)})}},[]),Object.values(t).some(o=>o)};function PA(e){const t={};for(const n of e)t[n.id]=n.isEdited;return t}function DA(e){Be.useEffect(()=>{function t(){e.grid?.resizeCanvas()}const n=vy(t);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[])}const OA=e=>{Be.useEffect(()=>{function t(n){const o=n.grid;o&&n.totalCalculator?.calculate(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},rm=e=>t=>{t.keyCode===$s.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},MA=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},IA=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},NA=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())},AA=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)},Or=function(){const e=function(x,S,C,O){for(C=C||{},O=x.length;O--;C[x[O]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],b=[5,6,7,8,9,10,11,12,14],w=[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(S,C,O,A,F,z,R){const $=z.length-1;switch(F){case 1:return z[$-1];case 2:this.$=z[$-2]+z[$];break;case 3:this.$=z[$-2]-z[$];break;case 4:this.$=z[$-2]*z[$];break;case 5:this.$=z[$-2]/z[$];break;case 6:this.$=Math.pow(z[$-2],z[$]);break;case 7:this.$=function K(X){return X==0?1:K(X-1)*X}(z[$-1]);break;case 8:this.$=z[$-1]/100;break;case 9:this.$=-z[$];break;case 10:this.$=z[$-1];break;case 11:this.$=Number(S);break;case 12:this.$=Math.E;break;case 13:this.$=Math.PI;break}},table:[{3:1,4:2,7:t,13:n,15:o,16:r,17:i},{1:[3]},{5:[1,8],6:a,7:l,8:d,9:u,10:f,11:p,12:y},{4:16,7:t,13:n,15:o,16:r,17:i},{4:17,7:t,13:n,15:o,16:r,17:i},e(b,[2,11]),e(b,[2,12]),e(b,[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(b,[2,7]),e(b,[2,8]),e(b,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(w,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(w,[2,3],{8:d,9:u,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(b,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const O=new Error(S);throw O.hash=C,O}},parse:function(S){const C=this;let O=[0],A=[null],F=[];const z=this.table;let R="",$=0,K=0;const X=2,q=1,Y=F.slice.call(arguments,1),H=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]);H.setInput(S,ae.yy),ae.yy.lexer=H,ae.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});let N=H.yylloc;F.push(N);const M=H.options&&H.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var V=function(){let ie;return ie=H.lex()||q,typeof ie!="number"&&(ie=C.symbols_[ie]||ie),ie};let B,ne,oe,se;const j={};let J,ee,te,ce;for(;;){if(ne=O[O.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((B===null||typeof B>"u")&&(B=V()),oe=z[ne]&&z[ne][B]),typeof oe>"u"||!oe.length||!oe[0]){let ie="";ce=[];for(J in z[ne])this.terminals_[J]&&J>X&&ce.push("'"+this.terminals_[J]+"'");H.showPosition?ie="Parse error on line "+($+1)+`:
|
|
344
344
|
`+H.showPosition()+`
|
|
345
345
|
Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ie="Parse error on line "+($+1)+": Unexpected "+(B==q?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ie,{text:H.match,token:this.terminals_[B]||B,line:H.yylineno,loc:N,expected:ce})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+B);switch(oe[0]){case 1:O.push(B),A.push(H.yytext),F.push(H.yylloc),O.push(oe[1]),B=null,K=H.yyleng,R=H.yytext,$=H.yylineno,N=H.yylloc;break;case 2:if(ee=this.productions_[oe[1]][1],j.$=A[A.length-ee],j._$={first_line:F[F.length-(ee||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(ee||1)].first_column,last_column:F[F.length-1].last_column},M&&(j._$.range=[F[F.length-(ee||1)].range[0],F[F.length-1].range[1]]),se=this.performAction.apply(j,[R,K,$,ae.yy,oe[1],A,F].concat(Y)),typeof se<"u")return se;ee&&(O=O.slice(0,-1*ee*2),A=A.slice(0,-1*ee),F=F.slice(0,-1*ee)),O.push(this.productions_[oe[1]][0]),A.push(j.$),F.push(j._$),te=z[O[O.length-2]][O[O.length-1]],O.push(te);break;case 3:return!0}}return!0}},T=function(){return{EOF:1,parseError:function(C,O){if(this.yy.parser)this.yy.parser.parseError(C,O);else throw new Error(C)},setInput:function(S,C){return this.yy=C||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){const S=this._input[0];return this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S,S.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},unput:function(S){const C=S.length,O=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;const A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);const F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===A.length?this.yylloc.first_column:0)+A[A.length-O.length].length-O[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
346
346
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(S){this.unput(this.match.slice(S))},pastInput:function(){const S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const S=this.pastInput(),C=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
|
|
347
347
|
`+C+"^"},test_match:function(S,C){let O,A,F;if(this.options.backtrack_lexer&&(F={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&&(F.yylloc.range=this.yylloc.range.slice(0))),A=S[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+S[0].length},this.yytext+=S[0],this.match+=S[0],this.matches=S,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(S[0].length),this.matched+=S[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 z in F)this[z]=F[z];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);let S,C,O,A;this._more||(this.yytext="",this.match="");const F=this._currentRules();for(let z=0;z<F.length;z++)if(O=this._input.match(this.rules[F[z]]),O&&(!C||O[0].length>C[0].length)){if(C=O,A=z,this.options.backtrack_lexer){if(S=this.test_match(O,F[z]),S!==!1)return S;if(this._backtrack){C=!1;continue}else return!1}else if(!this.options.flex)break}return C?(S=this.test_match(C,F[A]),S!==!1?S:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
348
|
-
`+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,A,F){switch(A){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=T;function P(){this.yy={},this.parse=this.parse.bind(this)}return P.prototype=v,v.Parser=P,new P}();typeof require<"u"&&typeof exports<"u"&&(exports.parser=
|
|
348
|
+
`+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,A,F){switch(A){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=T;function P(){this.yy={},this.parse=this.parse.bind(this)}return P.prototype=v,v.Parser=P,new P}();typeof require<"u"&&typeof exports<"u"&&(exports.parser=Or,exports.Parser=Or.Parser,exports.parse=function(){return Or.parse.apply(Or,arguments)});const kv=2;class FA extends Xp{isValueChanged(){const t=AA(this.defaultValue);let n=0;try{n=Or.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(kv),this.input.value=this.defaultValue,this.input.defaultValue=this.input.value,this.input.select()}serializeValue(){let t=Or.parse(this.input.value||"0");Xp.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=Or.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}}}FA.DefaultDecimalPlaces=kv;class LA{constructor(){this.currentFocus=-1,this.defaultValue="",this.id="autocomplete",this.input=document.createElement("input"),this.keyCaptureList=[Nr.UP,Nr.DOWN,Nr.ENTER]}applyValue(t,n){t[this.args.column.field]=n}closeAllList(){this.list?.remove(),this.list=void 0,this.currentFocus=-1}destroy(){this.input.removeEventListener("input",this.onInput.bind(this)),this.input.removeEventListener("keydown",this.onKeydown.bind(this)),this.closeAllList(),this.input.remove()}focus(){this.input.focus()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input.setAttribute("type","text"),this.input.classList.add("editor-text"),this.args.container.append(this.input),this.input.addEventListener("input",this.onInput.bind(this)),this.input.addEventListener("keydown",this.onKeydown.bind(this)),this.input.focus(),this.input.select()}isValueChanged(){return!(this.input.value==""&&this.defaultValue==null)&&this.input.value!=this.defaultValue}loadValue(t){this.defaultValue=t[this.args.column.field]||"",this.input.value=this.defaultValue,this.input.defaultValue=this.defaultValue,this.input.focus(),this.input.select()}makeVisible(t){const n=t.closest(".grid-canvas");if(!n)return;const{bottom:o,right:r}=t.getBoundingClientRect(),{bottom:i,right:a}=n.getBoundingClientRect();if(o>=i){const l=this.args.grid.getOptions().rowHeight;t.style.position="absolute",t.style.bottom=`${l}px`}r>=a&&(t.style.position="absolute",t.style.right="0")}onKeydown(t){if(t.key===Er.ArrowLeft){this.navOnLR&&this.args.grid.navigatePrev(),t.stopImmediatePropagation();return}else if(t.key===Er.ArrowRight){this.navOnLR&&this.args.grid.navigateNext(),t.stopImmediatePropagation();return}if(!this.list)return;const n=this.list.getElementsByTagName("div");t.key===Er.ArrowDown?(this.currentFocus++,this.setActive(n)):t.key===Er.ArrowUp?(this.currentFocus--,this.setActive(n)):(t.key===Er.Enter||t.key===Er.Tab)&&(t.preventDefault(),n.length===1&&(this.currentFocus=0),this.currentFocus>-1&&n&&n[this.currentFocus].click())}removeActive(t){for(let n=0;n<t.length;n++)t[n].classList.remove("active")}scrollToElement(t){const n=t.parentElement;if(!n)return;const{clientHeight:o,offsetTop:r}=t,{clientHeight:i,scrollTop:a}=n;r>=a+i?n.scrollTop=r-o*1.5:r-o<=a&&(n.scrollTop=r-i)}serializeValue(){return this.input.value}setActive(t){if(!t.length)return;this.removeActive(t),this.currentFocus>=t.length&&(this.currentFocus=0),this.currentFocus<0&&(this.currentFocus=t.length-1);const n=t[this.currentFocus];n.classList.add("active"),this.scrollToElement(n)}validate(){if(this.args.column.validator){const t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}}var al={exports:{}};const $A=HS(nN);/*!
|
|
349
349
|
* Pikaday
|
|
350
350
|
*
|
|
351
351
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
352
|
-
*/var VA=al.exports,sm;function jA(){return sm||(sm=1,function(e,t){(function(n,o){var r;{try{r=$A}catch{}e.exports=o(r)}})(VA,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(N,M,V,B){r?N.addEventListener(M,V,!!B):N.attachEvent("on"+M,V)},d=function(N,M,V,B){r?N.removeEventListener(M,V,!!B):N.detachEvent("on"+M,V)},u=function(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")},f=function(N,M){return(" "+N.className+" ").indexOf(" "+M+" ")!==-1},p=function(N,M){f(N,M)||(N.className=N.className===""?M:N.className+" "+M)},y=function(N,M){N.className=u((" "+N.className+" ").replace(" "+M+" "," "))},b=function(N){return/Array/.test(Object.prototype.toString.call(N))},w=function(N){return/Date/.test(Object.prototype.toString.call(N))&&!isNaN(N.getTime())},g=function(N){var M=N.getDay();return M===0||M===6},v=function(N){return N%4===0&&N%100!==0||N%400===0},T=function(N,M){return[31,v(N)?29:28,31,30,31,30,31,31,30,31,30,31][M]},P=function(N){w(N)&&N.setHours(0,0,0,0)},x=function(N,M){return N.getTime()===M.getTime()},S=function(N,M,V){var B,ne;for(B in M)ne=N[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?w(M[B])?V&&(N[B]=new Date(M[B].getTime())):b(M[B])?V&&(N[B]=M[B].slice(0)):N[B]=S({},M[B],V):(V||!ne)&&(N[B]=M[B]);return N},C=function(N,M,V){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,V),N.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,V),N.fireEvent("on"+M,B))},O=function(N){return N.month<0&&(N.year-=Math.ceil(Math.abs(N.month)/12),N.month+=12),N.month>11&&(N.year+=Math.floor(Math.abs(N.month)/12),N.month-=12),N},A={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(N,M,V){for(M+=N.firstDay;M>=7;)M-=7;return V?N.i18n.weekdaysShort[M]:N.i18n.weekdays[M]},z=function(N){var M=[],V="false";if(N.isEmpty)if(N.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),N.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return N.isDisabled&&M.push("is-disabled"),N.isToday&&M.push("is-today"),N.isSelected&&(M.push("is-selected"),V="true"),N.hasEvent&&M.push("has-event"),N.isInRange&&M.push("is-inrange"),N.isStartRange&&M.push("is-startrange"),N.isEndRange&&M.push("is-endrange"),'<td data-day="'+N.day+'" class="'+M.join(" ")+'" aria-selected="'+V+'"><button class="pika-button pika-day" type="button" data-pika-year="'+N.year+'" data-pika-month="'+N.month+'" data-pika-day="'+N.day+'">'+N.day+"</button></td>"},R=function(N,M){N.setHours(0,0,0,0);var V=N.getDate(),B=N.getDay(),ne=M,oe=ne-1,se=7,j=function(ie){return(ie+se-1)%se};N.setDate(V+oe-j(B));var J=new Date(N.getFullYear(),0,ne),ee=24*60*60*1e3,te=(N.getTime()-J.getTime())/ee,ce=1+Math.round((te-oe+j(J.getDay()))/se);return ce},$=function(N,M,V,B){var ne=new Date(V,M,N),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(N,M,V,B){return'<tr class="pika-row'+(V?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?N.reverse():N).join("")+"</tr>"},X=function(N){return"<tbody>"+N.join("")+"</tbody>"},q=function(N){var M,V=[];for(N.showWeekNumber&&V.push("<th></th>"),M=0;M<7;M++)V.push('<th scope="col"><abbr title="'+F(N,M)+'">'+F(N,M,!0)+"</abbr></th>");return"<thead><tr>"+(N.isRTL?V.reverse():V).join("")+"</tr></thead>"},Y=function(N,M,V,B,ne,oe){var se,j,J,ee=N._o,te=V===ee.minYear,ce=V===ee.maxYear,ie='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,W,re=!0,Q=!0;for(J=[],se=0;se<12;se++)J.push('<option value="'+(V===ne?se-M:12+se-M)+'"'+(se===B?' 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[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+J.join("")+"</select></div>",b(ee.yearRange)?(se=ee.yearRange[0],j=ee.yearRange[1]+1):(se=V-ee.yearRange,j=1+V+ee.yearRange),J=[];se<j&&se<=ee.maxYear;se++)se>=ee.minYear&&J.push('<option value="'+se+'"'+(se===V?' selected="selected"':"")+">"+se+"</option>");return W='<div class="pika-label">'+V+ee.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+J.join("")+"</select></div>",ee.showMonthAfterYear?ie+=W+he:ie+=he+W,te&&(B===0||ee.minMonth>=B)&&(re=!1),ce&&(B===11||ee.maxMonth<=B)&&(Q=!1),M===0&&(ie+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+ee.i18n.previousMonth+"</button>"),M===N._o.numberOfMonths-1&&(ie+='<button class="pika-next'+(Q?"":" is-disabled")+'" type="button">'+ee.i18n.nextMonth+"</button>"),ie+="</div>"},H=function(N,M,V){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+V+'">'+q(N)+X(M)+"</table>"},ae=function(N){var M=this,V=M.config(N);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),V.bound&&a(function(){M.hide(),V.blurFieldOnSelect&&V.field&&V.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:V.field&&V.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(V.parse)return V.parse(V.field.value,V.format);if(o){var ne=n(V.field.value,V.format,V.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(V.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),w(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===V.trigger)return;while(se=se.parentNode);M._v&&oe!==V.trigger&&se!==V.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(V.isRTL?" is-rtl":"")+(V.theme?" "+V.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),V.keyboardInput&&l(i,"keydown",M._onKeyChange),V.field&&(V.container?V.container.appendChild(M.el):V.bound?i.body.appendChild(M.el):V.field.parentNode.insertBefore(M.el,V.field.nextSibling),l(V.field,"change",M._onInputChange),V.defaultDate||(V.defaultDate=M._parseFieldValue(),V.setDefaultDate=!0));var B=V.defaultDate;w(B)?V.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),V.bound?(this.hide(),M.el.className+=" is-bound",l(V.trigger,"click",M._onInputClick),l(V.trigger,"focus",M._onInputFocus),l(V.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(N){this._o||(this._o=S({},A,!0));var M=S(this._o,N,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var V=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=V>4?4:V,w(M.minDate)||(M.minDate=!1),w(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),b(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||A.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(N){return N=N||this._o.format,w(this._d)?this._o.toString?this._o.toString(this._d,N):o?n(this._d).format(N):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(N,M){o&&n.isMoment(N)&&this.setDate(N.toDate(),M)},getDate:function(){return w(this._d)?new Date(this._d.getTime()):null},setDate:function(N,M){if(!N)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof N=="string"&&(N=new Date(Date.parse(N))),!!w(N)){var V=this._o.minDate,B=this._o.maxDate;w(V)&&N<V?N=V:w(B)&&N>B&&(N=B),this._d=new Date(N.getTime()),P(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(N){var M=!0;if(w(N)){if(this.calendars){var V=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=N.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<V.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:N.getMonth(),year:N.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(N,M){var V=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;N==="add"?ne=new Date(V.valueOf()+B):N==="subtract"&&(ne=new Date(V.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var N=1;N<this._o.numberOfMonths;N++)this.calendars[N]=O({month:this.calendars[0].month+N,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(N){isNaN(N)||(this.calendars[0].month=parseInt(N,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(N){isNaN(N)||(this.calendars[0].year=parseInt(N,10),this.adjustCalendars())},setMinDate:function(N){N instanceof Date?(P(N),this._o.minDate=N,this._o.minYear=N.getFullYear(),this._o.minMonth=N.getMonth()):(this._o.minDate=A.minDate,this._o.minYear=A.minYear,this._o.minMonth=A.minMonth,this._o.startRange=A.startRange),this.draw()},setMaxDate:function(N){N instanceof Date?(P(N),this._o.maxDate=N,this._o.maxYear=N.getFullYear(),this._o.maxMonth=N.getMonth()):(this._o.maxDate=A.maxDate,this._o.maxYear=A.maxYear,this._o.maxMonth=A.maxMonth,this._o.endRange=A.endRange),this.draw()},setStartRange:function(N){this._o.startRange=N},setEndRange:function(N){this._o.endRange=N},draw:function(N){if(!(!this._v&&!N)){var M=this._o,V=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=V&&(this._y=V,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var J=0;J<M.numberOfMonths;J++)j="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,j)+this.render(this.calendars[J].year,this.calendars[J].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var N,M,V,B,ne,oe,se,j,J,ee,te,ce;if(!this._o.container){if(this.el.style.position="absolute",N=this._o.trigger,M=N,V=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof N.getBoundingClientRect=="function")ee=N.getBoundingClientRect(),j=ee.left+window.pageXOffset,J=ee.bottom+window.pageYOffset;else for(j=M.offsetLeft,J=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,J+=M.offsetTop;(this._o.reposition&&j+V>ne||this._o.position.indexOf("right")>-1&&j-V+N.offsetWidth>0)&&(j=j-V+N.offsetWidth,te=!1),(this._o.reposition&&J+B>oe+se||this._o.position.indexOf("top")>-1&&J-B-N.offsetHeight>0)&&(J=J-B-N.offsetHeight,ce=!1),this.el.style.left=j+"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(N,M,V){var B=this._o,ne=new Date,oe=T(N,M),se=new Date(N,M,1).getDay(),j=[],J=[];P(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var ee=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?N-1:N,ie=M===11?N+1:N,he=T(ce,ee),W=oe+se,re=W;re>7;)re-=7;W+=7-re;for(var Q=!1,fe=0,me=0;fe<W;fe++){var Ce=new Date(N,M,1+(fe-se)),ve=w(this._d)?x(Ce,this._d):!1,xe=x(Ce,ne),$e=B.events.indexOf(Ce.toDateString())!==-1,Ae=fe<se||fe>=oe+se,st=1+(fe-se),Pe=M,ft=N,Kt=B.startRange&&x(B.startRange,Ce),it=B.endRange&&x(B.endRange,Ce),Yt=B.startRange&&B.endRange&&B.startRange<Ce&&Ce<B.endRange,Xt=B.minDate&&Ce<B.minDate||B.maxDate&&Ce>B.maxDate||B.disableWeekends&&g(Ce)||B.disableDayFn&&B.disableDayFn(Ce);Ae&&(fe<se?(st=he+st,Pe=ee,ft=ce):(st=st-oe,Pe=te,ft=ie));var on={day:st,month:Pe,year:ft,hasEvent:$e,isSelected:ve,isToday:xe,isDisabled:Xt,isEmpty:Ae,isStartRange:Kt,isEndRange:it,isInRange:Yt,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ve&&(Q=!0),J.push(z(on)),++me===7&&(B.showWeekNumber&&J.unshift($(fe-se,M,N,B.firstWeekOfYearMinDays)),j.push(K(J,B.isRTL,B.pickWholeWeek,Q)),J=[],me=0,Q=!1)}return H(B,j,V)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var N=this._v;N!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,N!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var N=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),N.keyboardInput&&d(i,"keydown",this._onKeyChange),N.field&&(d(N.field,"change",this._onInputChange),N.bound&&(d(N.trigger,"click",this._onInputClick),d(N.trigger,"focus",this._onInputFocus),d(N.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(al)),al.exports}jA();function BA(e){return`(${WA(e)})`}function WA(e){return e.replace("-","")}function HA(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),b=parseInt(y).toString(),w=b.length>3?b.length%3:0,v=(w?b.slice(0,w)+u:"")+b.slice(w).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),T=`${n}${v}`,P=p?`-${T}`:T,x=p&&a?BA(P):P;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}const zA=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${HA(n)}`:""};function YA(e){if(!e.getSelectionModel())return im(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=im(e)),t}function im(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var fc=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(fc||{});function bd(){return JSON.parse(localStorage.getItem(fc.slickTable)||"{}")}function wd(e){return e[fc.sorting]||{}}function am(e,t){localStorage.setItem(fc.slickTable,JSON.stringify({...e,sorting:t}))}class UA{getTableSorting(t){const n=bd();return wd(n)[t]}resetTableSorting(t){const n=bd(),o=wd(n);delete o[t],am(n,o)}setTableSorting(t,n,o){const r=bd(),i=wd(r);i[t]={columnId:n,isAscending:o},am(r,i)}}const Cd=new UA;class qA{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=fs(t||this.emptyValue),r=fs(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}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const GA=new qA;class Ev{constructor(){this.sort=GA,this.withFormatter=[jo.TEXT,jo.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:b}=f,w=l.getData();d&&n===f?.id?(o=!0,Cd.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,Cd.setTableSorting(t,u,d));const g=d?-1:1,v=w.getGrouping(),T=v.find(({getter:P})=>P===f.id);if(T){if(r||(r=v.map(({comparer:P})=>P)),o){const P=w.getGrouping(),x=P.findIndex(({getter:S})=>S===f.id);P[x].comparer=r[x],w.refresh();return}T.comparer=(P,x)=>{let S=P.value,C=x.value;return b&&this.withFormatter.includes(y)&&(S=b(0,0,S,f,null,l),C=b(0,0,C,f,null,l)),this.priority(P,x)||this.compare(S,C,g,y)}}else{const P=w.getItems(),x=w.getIdPropertyName();P.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],A=C[p];return b&&this.withFormatter.includes(y)&&(O=b(0,0,O,f,S,l),A=b(0,0,A,f,C,l)),this.priority(S,C)||this.compare(O,A,g,y)})}w.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Cd.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case jo.DATE:return this.sort.dates(t,n)*o;case jo.NUMBER:case jo.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case jo.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const KA=new Ev;class XA{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function ZA(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]?ur.highlightColumn(n,t):ur.resetColumn(n,t))}const Zo=vy(ZA),Os={1:"",2:""},Pv="column_filters",oo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function QA(e){switch(e){case sn.Boolean:return Ve.Boolean;case sn.Date:return Ve.DateEqual;case sn.MultipleSelect:return Ve.MultipleSelect;case sn.Number:case sn.NumberFormatted:return Ve.NumberEqual;case sn.Text:return Ve.TextContain}}function JA(e,t,n){Be.useEffect(()=>{if(!e)return;const o=document.getElementById(Pv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=wn;if(!a?.grid)return;const f=a.filter.args;my(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},b=p||QA(i),w=y||Os;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:b,group:i,value:w}}},t(b),n(w)},[e])}function eF(e){Be.useEffect(()=>{function t(){e(!0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}function Jd(e){return{format:Fr.ui,value:e?_e(e,oN):null}}const tF=le(ds)({width:"5em",alignSelf:"flex-end"}),nF={Button:tF},oF=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=wn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,ur.resetColumn(i,r),t(Os),e(!1)}return D.jsx(nF.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},rF=le(Pu)({padding:0}),sF=le(ty)({margin:"0.5em 0 0 1em"}),Ya={Checkbox:rF,FormGroup:sF},iF=({setValue:e,value:t})=>{function n(o){e(o),Zo(o)}return D.jsxs(Ya.FormGroup,{children:[D.jsx(tl,{control:D.jsx(Ya.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),D.jsx(tl,{control:D.jsx(Ya.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),D.jsx(tl,{control:D.jsx(Ya.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},aF={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"},lF={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"},lm=["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(`
|
|
352
|
+
*/var VA=al.exports,sm;function jA(){return sm||(sm=1,function(e,t){(function(n,o){var r;{try{r=$A}catch{}e.exports=o(r)}})(VA,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(N,M,V,B){r?N.addEventListener(M,V,!!B):N.attachEvent("on"+M,V)},d=function(N,M,V,B){r?N.removeEventListener(M,V,!!B):N.detachEvent("on"+M,V)},u=function(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")},f=function(N,M){return(" "+N.className+" ").indexOf(" "+M+" ")!==-1},p=function(N,M){f(N,M)||(N.className=N.className===""?M:N.className+" "+M)},y=function(N,M){N.className=u((" "+N.className+" ").replace(" "+M+" "," "))},b=function(N){return/Array/.test(Object.prototype.toString.call(N))},w=function(N){return/Date/.test(Object.prototype.toString.call(N))&&!isNaN(N.getTime())},g=function(N){var M=N.getDay();return M===0||M===6},v=function(N){return N%4===0&&N%100!==0||N%400===0},T=function(N,M){return[31,v(N)?29:28,31,30,31,30,31,31,30,31,30,31][M]},P=function(N){w(N)&&N.setHours(0,0,0,0)},x=function(N,M){return N.getTime()===M.getTime()},S=function(N,M,V){var B,ne;for(B in M)ne=N[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?w(M[B])?V&&(N[B]=new Date(M[B].getTime())):b(M[B])?V&&(N[B]=M[B].slice(0)):N[B]=S({},M[B],V):(V||!ne)&&(N[B]=M[B]);return N},C=function(N,M,V){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,V),N.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,V),N.fireEvent("on"+M,B))},O=function(N){return N.month<0&&(N.year-=Math.ceil(Math.abs(N.month)/12),N.month+=12),N.month>11&&(N.year+=Math.floor(Math.abs(N.month)/12),N.month-=12),N},A={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(N,M,V){for(M+=N.firstDay;M>=7;)M-=7;return V?N.i18n.weekdaysShort[M]:N.i18n.weekdays[M]},z=function(N){var M=[],V="false";if(N.isEmpty)if(N.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),N.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return N.isDisabled&&M.push("is-disabled"),N.isToday&&M.push("is-today"),N.isSelected&&(M.push("is-selected"),V="true"),N.hasEvent&&M.push("has-event"),N.isInRange&&M.push("is-inrange"),N.isStartRange&&M.push("is-startrange"),N.isEndRange&&M.push("is-endrange"),'<td data-day="'+N.day+'" class="'+M.join(" ")+'" aria-selected="'+V+'"><button class="pika-button pika-day" type="button" data-pika-year="'+N.year+'" data-pika-month="'+N.month+'" data-pika-day="'+N.day+'">'+N.day+"</button></td>"},R=function(N,M){N.setHours(0,0,0,0);var V=N.getDate(),B=N.getDay(),ne=M,oe=ne-1,se=7,j=function(ie){return(ie+se-1)%se};N.setDate(V+oe-j(B));var J=new Date(N.getFullYear(),0,ne),ee=24*60*60*1e3,te=(N.getTime()-J.getTime())/ee,ce=1+Math.round((te-oe+j(J.getDay()))/se);return ce},$=function(N,M,V,B){var ne=new Date(V,M,N),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(N,M,V,B){return'<tr class="pika-row'+(V?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?N.reverse():N).join("")+"</tr>"},X=function(N){return"<tbody>"+N.join("")+"</tbody>"},q=function(N){var M,V=[];for(N.showWeekNumber&&V.push("<th></th>"),M=0;M<7;M++)V.push('<th scope="col"><abbr title="'+F(N,M)+'">'+F(N,M,!0)+"</abbr></th>");return"<thead><tr>"+(N.isRTL?V.reverse():V).join("")+"</tr></thead>"},Y=function(N,M,V,B,ne,oe){var se,j,J,ee=N._o,te=V===ee.minYear,ce=V===ee.maxYear,ie='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,W,re=!0,Q=!0;for(J=[],se=0;se<12;se++)J.push('<option value="'+(V===ne?se-M:12+se-M)+'"'+(se===B?' 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[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+J.join("")+"</select></div>",b(ee.yearRange)?(se=ee.yearRange[0],j=ee.yearRange[1]+1):(se=V-ee.yearRange,j=1+V+ee.yearRange),J=[];se<j&&se<=ee.maxYear;se++)se>=ee.minYear&&J.push('<option value="'+se+'"'+(se===V?' selected="selected"':"")+">"+se+"</option>");return W='<div class="pika-label">'+V+ee.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+J.join("")+"</select></div>",ee.showMonthAfterYear?ie+=W+he:ie+=he+W,te&&(B===0||ee.minMonth>=B)&&(re=!1),ce&&(B===11||ee.maxMonth<=B)&&(Q=!1),M===0&&(ie+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+ee.i18n.previousMonth+"</button>"),M===N._o.numberOfMonths-1&&(ie+='<button class="pika-next'+(Q?"":" is-disabled")+'" type="button">'+ee.i18n.nextMonth+"</button>"),ie+="</div>"},H=function(N,M,V){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+V+'">'+q(N)+X(M)+"</table>"},ae=function(N){var M=this,V=M.config(N);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),V.bound&&a(function(){M.hide(),V.blurFieldOnSelect&&V.field&&V.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:V.field&&V.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(V.parse)return V.parse(V.field.value,V.format);if(o){var ne=n(V.field.value,V.format,V.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(V.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),w(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===V.trigger)return;while(se=se.parentNode);M._v&&oe!==V.trigger&&se!==V.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(V.isRTL?" is-rtl":"")+(V.theme?" "+V.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),V.keyboardInput&&l(i,"keydown",M._onKeyChange),V.field&&(V.container?V.container.appendChild(M.el):V.bound?i.body.appendChild(M.el):V.field.parentNode.insertBefore(M.el,V.field.nextSibling),l(V.field,"change",M._onInputChange),V.defaultDate||(V.defaultDate=M._parseFieldValue(),V.setDefaultDate=!0));var B=V.defaultDate;w(B)?V.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),V.bound?(this.hide(),M.el.className+=" is-bound",l(V.trigger,"click",M._onInputClick),l(V.trigger,"focus",M._onInputFocus),l(V.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(N){this._o||(this._o=S({},A,!0));var M=S(this._o,N,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var V=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=V>4?4:V,w(M.minDate)||(M.minDate=!1),w(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),b(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||A.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(N){return N=N||this._o.format,w(this._d)?this._o.toString?this._o.toString(this._d,N):o?n(this._d).format(N):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(N,M){o&&n.isMoment(N)&&this.setDate(N.toDate(),M)},getDate:function(){return w(this._d)?new Date(this._d.getTime()):null},setDate:function(N,M){if(!N)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof N=="string"&&(N=new Date(Date.parse(N))),!!w(N)){var V=this._o.minDate,B=this._o.maxDate;w(V)&&N<V?N=V:w(B)&&N>B&&(N=B),this._d=new Date(N.getTime()),P(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(N){var M=!0;if(w(N)){if(this.calendars){var V=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=N.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<V.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:N.getMonth(),year:N.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(N,M){var V=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;N==="add"?ne=new Date(V.valueOf()+B):N==="subtract"&&(ne=new Date(V.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var N=1;N<this._o.numberOfMonths;N++)this.calendars[N]=O({month:this.calendars[0].month+N,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(N){isNaN(N)||(this.calendars[0].month=parseInt(N,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(N){isNaN(N)||(this.calendars[0].year=parseInt(N,10),this.adjustCalendars())},setMinDate:function(N){N instanceof Date?(P(N),this._o.minDate=N,this._o.minYear=N.getFullYear(),this._o.minMonth=N.getMonth()):(this._o.minDate=A.minDate,this._o.minYear=A.minYear,this._o.minMonth=A.minMonth,this._o.startRange=A.startRange),this.draw()},setMaxDate:function(N){N instanceof Date?(P(N),this._o.maxDate=N,this._o.maxYear=N.getFullYear(),this._o.maxMonth=N.getMonth()):(this._o.maxDate=A.maxDate,this._o.maxYear=A.maxYear,this._o.maxMonth=A.maxMonth,this._o.endRange=A.endRange),this.draw()},setStartRange:function(N){this._o.startRange=N},setEndRange:function(N){this._o.endRange=N},draw:function(N){if(!(!this._v&&!N)){var M=this._o,V=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=V&&(this._y=V,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var J=0;J<M.numberOfMonths;J++)j="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,j)+this.render(this.calendars[J].year,this.calendars[J].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var N,M,V,B,ne,oe,se,j,J,ee,te,ce;if(!this._o.container){if(this.el.style.position="absolute",N=this._o.trigger,M=N,V=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof N.getBoundingClientRect=="function")ee=N.getBoundingClientRect(),j=ee.left+window.pageXOffset,J=ee.bottom+window.pageYOffset;else for(j=M.offsetLeft,J=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,J+=M.offsetTop;(this._o.reposition&&j+V>ne||this._o.position.indexOf("right")>-1&&j-V+N.offsetWidth>0)&&(j=j-V+N.offsetWidth,te=!1),(this._o.reposition&&J+B>oe+se||this._o.position.indexOf("top")>-1&&J-B-N.offsetHeight>0)&&(J=J-B-N.offsetHeight,ce=!1),this.el.style.left=j+"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(N,M,V){var B=this._o,ne=new Date,oe=T(N,M),se=new Date(N,M,1).getDay(),j=[],J=[];P(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var ee=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?N-1:N,ie=M===11?N+1:N,he=T(ce,ee),W=oe+se,re=W;re>7;)re-=7;W+=7-re;for(var Q=!1,fe=0,me=0;fe<W;fe++){var Ce=new Date(N,M,1+(fe-se)),ve=w(this._d)?x(Ce,this._d):!1,xe=x(Ce,ne),$e=B.events.indexOf(Ce.toDateString())!==-1,Ae=fe<se||fe>=oe+se,st=1+(fe-se),Pe=M,ft=N,Kt=B.startRange&&x(B.startRange,Ce),it=B.endRange&&x(B.endRange,Ce),Yt=B.startRange&&B.endRange&&B.startRange<Ce&&Ce<B.endRange,Xt=B.minDate&&Ce<B.minDate||B.maxDate&&Ce>B.maxDate||B.disableWeekends&&g(Ce)||B.disableDayFn&&B.disableDayFn(Ce);Ae&&(fe<se?(st=he+st,Pe=ee,ft=ce):(st=st-oe,Pe=te,ft=ie));var on={day:st,month:Pe,year:ft,hasEvent:$e,isSelected:ve,isToday:xe,isDisabled:Xt,isEmpty:Ae,isStartRange:Kt,isEndRange:it,isInRange:Yt,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ve&&(Q=!0),J.push(z(on)),++me===7&&(B.showWeekNumber&&J.unshift($(fe-se,M,N,B.firstWeekOfYearMinDays)),j.push(K(J,B.isRTL,B.pickWholeWeek,Q)),J=[],me=0,Q=!1)}return H(B,j,V)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var N=this._v;N!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,N!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var N=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),N.keyboardInput&&d(i,"keydown",this._onKeyChange),N.field&&(d(N.field,"change",this._onInputChange),N.bound&&(d(N.trigger,"click",this._onInputClick),d(N.trigger,"focus",this._onInputFocus),d(N.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(al)),al.exports}jA();function BA(e){return`(${WA(e)})`}function WA(e){return e.replace("-","")}function HA(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),b=parseInt(y).toString(),w=b.length>3?b.length%3:0,v=(w?b.slice(0,w)+u:"")+b.slice(w).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),T=`${n}${v}`,P=p?`-${T}`:T,x=p&&a?BA(P):P;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}const zA=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${HA(n)}`:""};function YA(e){if(!e.getSelectionModel())return im(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=im(e)),t}function im(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var fc=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(fc||{});function bd(){return JSON.parse(localStorage.getItem(fc.slickTable)||"{}")}function wd(e){return e[fc.sorting]||{}}function am(e,t){localStorage.setItem(fc.slickTable,JSON.stringify({...e,sorting:t}))}class UA{getTableSorting(t){const n=bd();return wd(n)[t]}resetTableSorting(t){const n=bd(),o=wd(n);delete o[t],am(n,o)}setTableSorting(t,n,o){const r=bd(),i=wd(r);i[t]={columnId:n,isAscending:o},am(r,i)}}const Cd=new UA;class qA{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=fs(t||this.emptyValue),r=fs(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}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const GA=new qA;class Ev{constructor(){this.sort=GA,this.withFormatter=[jo.TEXT,jo.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:b}=f,w=l.getData();d&&n===f?.id?(o=!0,Cd.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,Cd.setTableSorting(t,u,d));const g=d?-1:1,v=w.getGrouping(),T=v.find(({getter:P})=>P===f.id);if(T){if(r||(r=v.map(({comparer:P})=>P)),o){const P=w.getGrouping(),x=P.findIndex(({getter:S})=>S===f.id);P[x].comparer=r[x],w.refresh();return}T.comparer=(P,x)=>{let S=P.value,C=x.value;return b&&this.withFormatter.includes(y)&&(S=b(0,0,S,f,null,l),C=b(0,0,C,f,null,l)),this.priority(P,x)||this.compare(S,C,g,y)}}else{const P=w.getItems(),x=w.getIdPropertyName();P.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],A=C[p];return b&&this.withFormatter.includes(y)&&(O=b(0,0,O,f,S,l),A=b(0,0,A,f,C,l)),this.priority(S,C)||this.compare(O,A,g,y)})}w.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Cd.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case jo.DATE:return this.sort.dates(t,n)*o;case jo.NUMBER:case jo.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case jo.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const KA=new Ev;class XA{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function ZA(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]?ur.highlightColumn(n,t):ur.resetColumn(n,t))}const Zo=vy(ZA),Os={1:"",2:""},Pv="column_filters",oo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function QA(e){switch(e){case sn.Boolean:return Ve.Boolean;case sn.Date:return Ve.DateEqual;case sn.MultipleSelect:return Ve.MultipleSelect;case sn.Number:case sn.NumberFormatted:return Ve.NumberEqual;case sn.Text:return Ve.TextContain}}function JA(e,t,n){Be.useEffect(()=>{if(!e)return;const o=document.getElementById(Pv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=wn;if(!a?.grid)return;const f=a.filter.args;my(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},b=p||QA(i),w=y||Os;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:b,group:i,value:w}}},t(b),n(w)},[e])}function eF(e){Be.useEffect(()=>{function t(){e(!0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}function Jd(e){return{format:Lr.ui,value:e?_e(e,oN):null}}const tF=le(ds)({width:"5em",alignSelf:"flex-end"}),nF={Button:tF},oF=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=wn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,ur.resetColumn(i,r),t(Os),e(!1)}return D.jsx(nF.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},rF=le(Pu)({padding:0}),sF=le(ty)({margin:"0.5em 0 0 1em"}),Ya={Checkbox:rF,FormGroup:sF},iF=({setValue:e,value:t})=>{function n(o){e(o),Zo(o)}return D.jsxs(Ya.FormGroup,{children:[D.jsx(tl,{control:D.jsx(Ya.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),D.jsx(tl,{control:D.jsx(Ya.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),D.jsx(tl,{control:D.jsx(Ya.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},aF={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"},lF={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"},lm=["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(`
|
|
353
353
|
`);class Dv{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=aF,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(lm);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(lm);return r}const a=i==="default"?this.moment.defaultZone?.name??"system":i;if(a==="system")return r.clone().local();const l=r.clone();return l.tz(a),l},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.locale?this.moment(r,i,this.locale,!0):this.moment(r,i,!0),this.getCurrentLocaleCode=()=>this.locale||_e.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(_e.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=r=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return r.match(i).map(a=>{const l=a[0];return l==="L"||l===";"?_e.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>{const a=r.clone();return a.locale(this.getCurrentLocaleCode()),a.format(i)},this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.isSame(i),this.isSameYear=(r,i)=>r.isSame(i,"year"),this.isSameMonth=(r,i)=>r.isSame(i,"month"),this.isSameDay=(r,i)=>r.isSame(i,"day"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r.isAfter(i),this.isAfterYear=(r,i)=>r.isAfter(i,"year"),this.isAfterDay=(r,i)=>r.isAfter(i,"day"),this.isBefore=(r,i)=>r.isBefore(i),this.isBeforeYear=(r,i)=>r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>r.isBefore(i,"day"),this.isWithinRange=(r,[i,a])=>r.isBetween(i,a,null,"[]"),this.startOfYear=r=>r.clone().startOf("year"),this.startOfMonth=r=>r.clone().startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r.clone()).startOf("week"),this.startOfDay=r=>r.clone().startOf("day"),this.endOfYear=r=>r.clone().endOf("year"),this.endOfMonth=r=>r.clone().endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r.clone()).endOf("week"),this.endOfDay=r=>r.clone().endOf("day"),this.addYears=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"years"):r.clone().add(i,"years"),this.addMonths=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"months"):r.clone().add(i,"months"),this.addWeeks=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"weeks"):r.clone().add(i,"weeks"),this.addDays=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"days"):r.clone().add(i,"days"),this.addHours=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"hours"):r.clone().add(i,"hours"),this.addMinutes=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"minutes"):r.clone().add(i,"minutes"),this.addSeconds=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"seconds"):r.clone().add(i,"seconds"),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month"),this.getDate=r=>r.get("date"),this.getHours=r=>r.get("hours"),this.getMinutes=r=>r.get("minutes"),this.getSeconds=r=>r.get("seconds"),this.getMilliseconds=r=>r.get("milliseconds"),this.setYear=(r,i)=>r.clone().year(i),this.setMonth=(r,i)=>r.clone().month(i),this.setDate=(r,i)=>r.clone().date(i),this.setHours=(r,i)=>r.clone().hours(i),this.setMinutes=(r,i)=>r.clone().minutes(i),this.setSeconds=(r,i)=>r.clone().seconds(i),this.setMilliseconds=(r,i)=>r.clone().milliseconds(i),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let l=0,d=i;const u=[];for(;d.isBefore(a);){const f=Math.floor(l/7);u[f]=u[f]||[],u[f].push(d),d=this.addDays(d,1),l+=1}return u},this.getWeekNumber=r=>r.week(),this.getDayOfWeek=r=>r.day()+1,this.moment=o||_e,this.locale=t,this.formats=Z({},lF,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 ci=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),cF=({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}},Tl=(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},ki=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:l})=>{const d=Tl(a,a.date(void 0,l),e);n&&a.isBefore(r,d)&&(r=d),t&&a.isAfter(o,d)&&(o=d);let u=e,f=e;for(a.isBefore(e,r)&&(u=r,f=null),a.isAfter(e,o)&&(f&&(f=o),u=null);u||f;){if(u&&a.isAfter(u,o)&&(u=null),f&&a.isBefore(f,r)&&(f=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(f){if(!i(f))return f;f=a.addDays(f,-1)}}return null},dF=(e,t)=>t==null||!e.isValid(t)?null:t,Xn=(e,t,n)=>t==null||!e.isValid(t)?n:t,uF=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),ch=(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},Ov=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),hF=["year","month","day"],cm=e=>hF.includes(e),dh=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return ci(n,["year"])?r.year:ci(n,["month"])?r.month:ci(n,["day"])?r.dayOfMonth:ci(n,["month","year"])?`${r.month} ${r.year}`:ci(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},fF=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},pF=["hours","minutes","seconds"],mF=e=>pF.includes(e),dm=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),gF=(e,t)=>(n,o)=>e?t.isAfter(n,o):dm(n,t)>dm(o,t),vo={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},yF=e=>Math.max(...e.map(t=>vo[t.type]??1)),di=(e,t,n)=>{if(t===vo.year)return e.startOfYear(n);if(t===vo.month)return e.startOfMonth(n);if(t===vo.day)return e.startOfDay(n);let o=n;return t<vo.minutes&&(o=e.setMinutes(o,0)),t<vo.seconds&&(o=e.setSeconds(o,0)),t<vo.milliseconds&&(o=e.setMilliseconds(o,0)),o},vF=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():di(t,n,Ov(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=di(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=di(t,n,e.maxDate));const a=gF(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=di(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Tl(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=di(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Tl(t,i,e.maxTime))),i},uh=(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(`
|
|
354
|
-
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},bF=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},pc=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},Mv=(e,t,n,o)=>{switch(n){case"month":return ch(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return pc(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[]}},um="s",wF=["0","1","2","3","4","5","6","7","8","9"],CF=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),um)==="0"?wF:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),um))}
|
|
354
|
+
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},bF=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},pc=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},Mv=(e,t,n,o)=>{switch(n){case"month":return ch(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return pc(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[]}},um="s",wF=["0","1","2","3","4","5","6","7","8","9"],CF=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),um)==="0"?wF:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),um))},$r=(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("")},hh=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),hm=(e,t)=>{const n=$r(e,t);return n!==" "&&!Number.isNaN(Number(n))},Iv=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Nv=(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.'
|
|
355
355
|
This type of format is only supported for 'day' sections`].join(`
|
|
356
|
-
`));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=Iv(i,r.maxLength)),hh(i,o)},SF=(e,t,n,o,r,i,a,l)=>{const d=bF(o),u=o==="Home",f=o==="End",p=n.value===""||u||f,y=()=>{const w=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=x=>Nv(e,x,w,i,n),v=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let P=parseInt(
|
|
357
|
-
`));return T},[d,p,u,f,r]),g=k.useMemo(()=>w?{minDate:w.date("1900-01-01T00:00:00.000"),maxDate:w.date("2099-12-31T00:00:00.000")}:null,[w]),v=k.useMemo(()=>({utils:w,defaultDates:g,localeText:b}),[g,w,b]);return D.jsx(kl.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(mc.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 AF=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Z({},e)}}}}),Lv=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)}},$v={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"},FF=$v;AF($v);const
|
|
356
|
+
`));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=Iv(i,r.maxLength)),hh(i,o)},SF=(e,t,n,o,r,i,a,l)=>{const d=bF(o),u=o==="Home",f=o==="End",p=n.value===""||u||f,y=()=>{const w=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=x=>Nv(e,x,w,i,n),v=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let P=parseInt($r(n.value,i),10)+d*v;if(p){if(n.type==="year"&&!f&&!u)return e.formatByString(e.date(void 0,t),n.format);d>0||u?P=w.minimum:P=w.maximum}return P%v!==0&&((d<0||u)&&(P+=v-(v+P)%v),(d>0||f)&&(P-=P%v)),P>w.maximum?g(w.minimum+(P-w.maximum-1)%(w.maximum-w.minimum+1)):P<w.minimum?g(w.maximum-(w.minimum-P-1)%(w.maximum-w.minimum+1)):g(P)},b=()=>{const w=Mv(e,t,n.type,n.format);if(w.length===0)return n.value;if(p)return d>0||u?w[0]:w[w.length-1];const T=((w.indexOf(n.value)+d)%w.length+w.length)%w.length;return w[T]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():b()},fh=(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($r(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},fm=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&uh(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},Av=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Fv=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return Av(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")}},_F=(e,t,n)=>{const o=t.some(d=>d.type==="day"),r=[],i=[];for(let d=0;d<t.length;d+=1){const u=t[d];o&&u.type==="weekDay"||(r.push(u.format),i.push(fh(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},xF=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),RF=(e,t,n)=>{const r=e.map(i=>{const a=fh(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},TF=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=ch(e,o).reduce((d,u)=>{const f=e.getDaysInMonth(u);return f>d.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:d},{maxDaysInMonth:0,longestMonth:null});return{year:({format:d})=>({minimum:0,maximum:Av(e,d)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:d})=>({minimum:1,maximum:d!=null&&e.isValid(d)?e.getDaysInMonth(d):a,longestMonth:l}),weekDay:({format:d,contentType:u})=>{if(u==="digit"){const f=pc(e,d).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:d})=>{const u=e.getHours(i);return $r(e.formatByString(e.endOfDay(o),d),t)!==u.toString()?{minimum:1,maximum:Number($r(e.formatByString(e.startOfDay(o),d),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let pm=!1;const mm=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!pm){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('", "')}"]\`.`),pm=!0)}},kF=(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=pc(e,t.format),i=e.formatByString(n,t.format),a=r.indexOf(i),d=r.indexOf(t.value)-a;return e.addDays(n,d)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},gm={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},ym=(e,t,n,o,r)=>[...n].sort((i,a)=>gm[i.type]-gm[a.type]).reduce((i,a)=>!r||a.modified?kF(e,a,t,i):i,o),EF=()=>navigator.userAgent.toLowerCase().includes("android"),PF=(e,t)=>{const n={};if(!t)return e.forEach((d,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((d,u)=>u>=i&&d.endSeparator?.includes(" ")&&d.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let d=a;d>=i;d-=1)r[d]=l,o[l]=d,l-=1;i=a+1}return e.forEach((d,u)=>{const f=r[u],p=f===0?null:o[f-1],y=f===e.length-1?null:o[f+1];n[u]={leftIndex:p,rightIndex:y}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},eu=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,DF=(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}},OF=(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}},MF=["value","referenceDate"],ko={emptyValue:null,getTodayValue:Ov,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=We(e,MF);return t!=null&&o.utils.isValid(t)?t:n??vF(o)},cleanValue:dF,areValuesEqual:uF,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)},IF={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o)=>!e.isValid(t)&&!!n?n:o(t),getV7HiddenInputValueFromSections:xF,getV6InputValueFromSections:RF,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)},NF=["localeText"],kl=k.createContext(null);process.env.NODE_ENV!=="production"&&(kl.displayName="MuiPickersAdapterContext");const mc=function(t){const{localeText:n}=t,o=We(t,NF),{utils:r,localeText:i}=k.useContext(kl)??{utils:void 0,localeText:void 0},a=Mt({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:d,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:y}=a,b=k.useMemo(()=>Z({},y,i,n),[y,i,n]),w=k.useMemo(()=>{if(!d)return r||null;const T=new d({locale:p,formats:u,instance:f});if(!T.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(`
|
|
357
|
+
`));return T},[d,p,u,f,r]),g=k.useMemo(()=>w?{minDate:w.date("1900-01-01T00:00:00.000"),maxDate:w.date("2099-12-31T00:00:00.000")}:null,[w]),v=k.useMemo(()=>({utils:w,defaultDates:g,localeText:b}),[g,w,b]);return D.jsx(kl.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(mc.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 AF=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Z({},e)}}}}),Lv=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)}},$v={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"},FF=$v;AF($v);const Wr=()=>{const e=k.useContext(kl);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(`
|
|
358
358
|
`));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(`
|
|
359
|
-
`));const t=k.useMemo(()=>Z({},FF,e.localeText),[e.localeText]);return k.useMemo(()=>Z({},e,{localeText:t}),[e,t])},Nt=()=>
|
|
359
|
+
`));const t=k.useMemo(()=>Z({},FF,e.localeText),[e.localeText]);return k.useMemo(()=>Z({},e,{localeText:t}),[e,t])},Nt=()=>Wr().utils,ga=()=>Wr().defaultDates,gc=e=>{const t=Nt(),n=k.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function LF(e){return Oe("MuiPickersToolbar",e)}De("MuiPickersToolbar",["root","content"]);const $F=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],VF=e=>{const{classes:t,isLandscape:n}=e;return Me({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},LF,t)},jF=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"}}]})),BF=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"}}]}),WF=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:a,hidden:l,titleId:d}=o,u=We(o,$F),f=o,p=VF(f);return l?null:D.jsxs(jF,Z({ref:n,className:Se(p.root,i),ownerState:f},u,{children:[D.jsx(Tn,{color:"text.secondary",variant:"overline",id:d,children:a}),D.jsx(BF,{className:p.content,ownerState:f,children:r})]}))}),er=()=>Wr().localeText;function HF(e){return Oe("MuiDatePickerToolbar",e)}De("MuiDatePickerToolbar",["root","title"]);const zF=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],YF=e=>{const{classes:t}=e;return Me({root:["root"],title:["title"]},HF,t)},UF=le(WF,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qF=le(Tn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Vv=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:l="––",views:d,className:u}=o,f=We(o,zF),p=Nt(),y=er(),b=YF(o),w=k.useMemo(()=>{if(!r)return l;const v=dh(p,{format:a,views:d},!0);return p.formatByString(r,v)},[r,a,l,p,d]),g=o;return D.jsx(UF,Z({ref:n,toolbarTitle:y.datePickerToolbarTitle,isLandscape:i,className:Se(b.root,u)},f,{children:D.jsx(qF,{variant:"h4",align:i?"left":"center",ownerState:g,className:b.title,children:w})}))});process.env.NODE_ENV!=="production"&&(Vv.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 jv(e,t){const n=Nt(),o=ga(),r=Mt({props:e,name:t}),i=k.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Z({},r.localeText,{datePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return Z({},r,{localeText:i},cF({views:r.views,openTo:r.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate),slots:Z({toolbar:Vv},r.slots)})}const ya=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:d}=e,u=o.utils.date(void 0,n),f=Xn(o.utils,e.minDate,o.defaultDates.minDate),p=Xn(o.utils,e.maxDate,o.defaultDates.maxDate);switch(!0){case!o.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(d&&o.utils.isAfterDay(t,u)):return"disableFuture";case!!(l&&o.utils.isBeforeDay(t,u)):return"disablePast";case!!(f&&o.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&o.utils.isAfterDay(t,p)):return"maxDate";default:return null}};ya.valueManager=ko;const Bv=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],GF=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],KF=["minDateTime","maxDateTime"],XF=[...Bv,...GF,...KF],Wv=e=>XF.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Hv(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Wr(),l=k.useRef(n.valueManager.defaultErrorState),d=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(d);k.useEffect(()=>{i&&!n.valueManager.isSameError(d,l.current)&&i(d,o),l.current=d},[n,i,d,o]);const f=Te(p=>n({adapter:a,value:p,timezone:r,props:t}));return{validationError:d,hasValidationError:u,getValidationErrorForNewValue:f}}function ZF(e){return Oe("MuiPickersPopper",e)}De("MuiPickersPopper",["root","paper"]);function QF(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const JF=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Nn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Nn(t.shadowRoot):t:null},eL="@media (pointer: fine)",tL="@media (prefers-reduced-motion: reduce)",ws=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),vm=ws&&ws[1]?parseInt(ws[1],10):null,bm=ws&&ws[2]?parseInt(ws[2],10):null,nL=vm&&vm<10||bm&&bm<13||!1,zv=()=>ag(tL,{defaultMatches:!1})||nL,oL=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],rL=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},ZF,t)},sL=le(zg,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),iL=le(As,{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 aL(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function lL(e,t){const n=k.useRef(!1),o=k.useRef(!1),r=k.useRef(null),i=k.useRef(!1);k.useEffect(()=>{if(!e)return;function d(){i.current=!0}return document.addEventListener("mousedown",d,!0),document.addEventListener("touchstart",d,!0),()=>{document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0),i.current=!1}},[e]);const a=Te(d=>{if(!i.current)return;const u=o.current;o.current=!1;const f=gn(r.current);if(!r.current||"clientX"in d&&aL(d,f))return;if(n.current){n.current=!1;return}let p;d.composedPath?p=d.composedPath().indexOf(r.current)>-1:p=!f.documentElement.contains(d.target)||r.current.contains(d.target),!p&&!u&&t(d)}),l=()=>{o.current=!0};return k.useEffect(()=>{if(e){const d=gn(r.current),u=()=>{n.current=!0};return d.addEventListener("touchstart",a),d.addEventListener("touchmove",u),()=>{d.removeEventListener("touchstart",a),d.removeEventListener("touchmove",u)}}},[e,a]),k.useEffect(()=>{if(e){const d=gn(r.current);return d.addEventListener("click",a),()=>{d.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const cL=k.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:r,children:i,paperSlotProps:a,paperClasses:l,onPaperClick:d,onPaperTouchStart:u}=e,f=We(e,oL),p=Z({},r,{placement:o}),y=dt({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return D.jsx(n,Z({},f,y,{onClick:b=>{d(b),y.onClick?.(b)},onTouchStart:b=>{u(b),y.onTouchStart?.(b)},ownerState:p,children:i}))});function dL(e){const t=Mt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:o,containerRef:r=null,shouldRestoreFocus:i,onBlur:a,onDismiss:l,open:d,role:u,placement:f,slots:p,slotProps:y,reduceAnimations:b}=t;k.useEffect(()=>{function Y(H){d&&H.key==="Escape"&&l()}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[l,d]);const w=k.useRef(null);k.useEffect(()=>{u==="tooltip"||i&&!i()||(d?w.current=Nn(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[d,u,i]);const[g,v,T]=lL(d,a??l),P=k.useRef(null),x=at(P,r),S=at(x,g),C=t,O=rL(C),A=zv(),F=b??A,z=Y=>{Y.key==="Escape"&&(Y.stopPropagation(),l())},R=p?.desktopTransition??F?Vr:Wi,$=p?.desktopTrapFocus??ji,K=p?.desktopPaper??iL,X=p?.popper??sL,q=dt({elementType:X,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:u,open:d,anchorEl:n,placement:f,onKeyDown:z},className:O.root,ownerState:t});return D.jsx(X,Z({},q,{children:({TransitionProps:Y,placement:H})=>D.jsx($,Z({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:D.jsx(R,Z({},Y,y?.desktopTransition,{children:D.jsx(cL,{PaperComponent:K,ownerState:C,popperPlacement:H,ref:S,onPaperClick:v,onPaperTouchStart:T,paperClasses:O.paper,paperSlotProps:y?.desktopPaper,children:o})}))}))}))}const wm=new Set;function uL(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
360
360
|
`):e;wm.has(n)||(wm.add(n),t==="error"?console.error(n):console.warn(n))}const hL=({open:e,onOpen:t,onClose:n})=>{const o=k.useRef(typeof e=="boolean").current,[r,i]=k.useState(!1);k.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=k.useCallback(l=>{o||i(l),l&&t&&t(),!l&&n&&n()},[o,t,n]);return{isOpen:r,setIsOpen:a}},ph=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:r})=>{const i=Nt(),a=k.useRef(n),l=t??a.current??r.emptyValue,d=k.useMemo(()=>r.getTimezone(i,l),[i,r,l]),u=Te(b=>d==null?b:r.setTimezone(i,d,b)),f=e??d??"default",p=k.useMemo(()=>r.setTimezone(i,f,l),[r,i,f,l]),y=Te((b,...w)=>{const g=u(b);o?.(g,...w)});return{value:p,handleValueChange:y,timezone:f}},mh=({name:e,timezone:t,value:n,defaultValue:o,onChange:r,valueManager:i})=>{const[a,l]=xo({name:e,state:"value",controlled:n,default:o??i.emptyValue}),d=Te((u,...f)=>{l(u),r?.(u,...f)});return ph({timezone:t,value:a,defaultValue:void 0,onChange:d,valueManager:i})},fL=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},pL=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},mL=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},gL=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:r})=>{const{onAccept:i,onChange:a,value:l,defaultValue:d,closeOnSelect:u=o==="desktop",timezone:f}=e,{current:p}=k.useRef(d),{current:y}=k.useRef(l!==void 0);process.env.NODE_ENV!=="production"&&(k.useEffect(()=>{y!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${y?"":"un"}controlled value of a picker to be ${y?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
361
361
|
`))},[l]),k.useEffect(()=>{!y&&p!==d&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
|
|
362
|
-
`))},[JSON.stringify(p)]));const b=Nt(),w=Br(),{isOpen:g,setIsOpen:v}=hL(e),{timezone:T,value:P,handleValueChange:x}=ph({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=k.useState(()=>{let j;return P!==void 0?j=P:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:P,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:O}=Hv({props:e,validator:r,timezone:T,value:S.draft,onError:e.onError}),A=Te(j=>{const J={action:j,dateState:S,hasChanged:W=>!t.areValuesEqual(b,j.value,W),isControlled:y,closeOnSelect:u},ee=fL(J),te=pL(J),ce=mL(J);C(W=>Z({},W,{draft:j.value,lastPublishedValue:ee?j.value:W.lastPublishedValue,lastCommittedValue:te?j.value:W.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ie=null;const he=()=>(ie||(ie={validationError:j.name==="setValueFromField"?j.context.validationError:O(j.value)},j.name==="setValueFromShortcut"&&(ie.shortcut=j.shortcut)),ie);ee&&x(j.value,he()),te&&i&&i(j.value,he()),ce&&v(!1)});if(P!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(b,S.lastControlledValue,P))){const j=t.areValuesEqual(b,S.draft,P);C(J=>Z({},J,{lastControlledValue:P},j?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const F=Te(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{A({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{A({value:t.getTodayValue(b,T,n),name:"setValueFromAction",pickerAction:"today"})}),X=Te(j=>{j.preventDefault(),v(!0)}),q=Te(j=>{j?.preventDefault(),v(!1)}),Y=Te((j,J="partial")=>A({name:"setValueFromView",value:j,selectionState:J})),H=Te((j,J,ee)=>A({name:"setValueFromShortcut",value:j,changeImportance:J,shortcut:ee})),ae=Te((j,J)=>A({name:"setValueFromField",value:j,context:J})),N={onClear:F,onAccept:z,onDismiss:R,onCancel:$,onSetToday:K,onOpen:X,onClose:q},M={value:S.draft,onChange:ae},V=k.useMemo(()=>t.cleanValue(b,S.draft),[b,t,S.draft]),B={value:V,onChange:Y,onClose:q,open:g},oe=Z({},N,{value:V,onChange:Y,onSelectShortcut:H,isValid:j=>{const J=r({adapter:w,value:j,timezone:T,props:e});return!t.hasError(J)}}),se=k.useMemo(()=>({onOpen:X,onClose:q,open:g}),[g,q,X]);return{open:g,fieldProps:M,viewProps:B,layoutProps:oe,actions:N,contextValue:se}};let Sd=!1;function Yv({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(Sd||(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('", "')}"]\`.`),Sd=!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('", "')}"]\`.`),Sd=!0)));const d=k.useRef(n),u=k.useRef(r),f=k.useRef(r.includes(n)?n:r[0]),[p,y]=xo({name:"useViews",state:"view",controlled:o,default:f.current}),b=k.useRef(i?p:null),[w,g]=xo({name:"useViews",state:"focusedView",controlled:a,default:b.current});k.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(A=>!r.includes(A)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),T=r[v-1]??null,P=r[v+1]??null,x=Te((A,F)=>{g(F?A:z=>A===z?null:z),l?.(A,F)}),S=Te(A=>{x(A,!0),A!==p&&(y(A),t&&t(A))}),C=Te(()=>{P&&S(P)}),O=Te((A,F,z)=>{const R=F==="finish",$=z?r.indexOf(z)<r.length-1:!!P;if(e(A,R&&$?"partial":F,z),z&&z!==p){const X=r[r.indexOf(z)+1];X&&S(X)}else R&&C()});return{view:p,setView:S,focusedView:w,setFocusedView:x,nextView:P,previousView:T,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:O}}const yL=["className","sx"],vL=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:b,timezone:w}=e,g=We(e,yL),{view:v,setView:T,defaultView:P,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=Yv({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:O,viewModeLookup:A}=k.useMemo(()=>f.reduce((q,Y)=>{let H;return b[Y]!=null?H="UI":H="field",q.viewModeLookup[Y]=H,H==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[b,f]),F=k.useMemo(()=>f.reduce((q,Y)=>b[Y]!=null&&mF(Y)?q+1:q,0),[b,f]),z=A[v],R=Te(()=>z==="UI"),[$,K]=k.useState(z==="UI"?v:null);return $!==v&&A[v]==="UI"&&K(v),nn(()=>{z==="field"&&l&&(d(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),nn(()=>{if(!l)return;let q=v;z==="field"&&$!=null&&(q=$),q!==P&&A[q]==="UI"&&A[P]==="UI"&&(q=P),q!==v&&T(q),S(q,!0)},[l]),{hasUIView:O,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:T},renderCurrentView:()=>{if($==null)return null;const q=b[$];if(q==null)return null;const Y=Z({},g,n,t,{views:f,timezone:w,onChange:C,view:$,onViewChange:T,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(b,$,Y):q(Y)}}};function Cm(){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 bL=(e,t)=>{const[n,o]=k.useState(Cm);return nn(()=>{const i=()=>{o(Cm())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),QF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},wL=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=bL(n.views,r),a=ao();return{layoutProps:Z({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function CL(e){const{props:t,pickerValueResponse:n}=e;return k.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 Uv=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:d})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&uL(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=gL({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=vL({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=wL({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=CL({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:y}};function qv(e){return Oe("MuiPickersLayout",e)}const _r=De("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),SL=["onAccept","onClear","onCancel","onSetToday","actions"];function Gv(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=We(e,SL),l=er();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return D.jsx(ds,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return D.jsx(ds,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return D.jsx(ds,{onClick:t,children:l.okButtonLabel},u);case"today":return D.jsx(ds,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return D.jsx(Jg,Z({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(Gv.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 Ki=36,yc=2,vc=320,_L=280,gh=336,xL=["items","changeImportance","isLandscape","onChange","isValid"],RL=["getValue"];function Kv(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=We(e,xL);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=We(l,RL);const f=d({isValid:r});return Z({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return D.jsx(Iu,Z({dense:!0,sx:[{maxHeight:gh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>D.jsx(oy,{children:D.jsx(Yg,Z({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Kv.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 TL(e){return e.view!==null}const kL=e=>{const{classes:t,isLandscape:n}=e;return Me({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},qv,t)},EL=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:b,disabled:w,readOnly:g,children:v,slots:T,slotProps:P}=e,x=kL(e),S=T?.actionBar??Gv,C=dt({elementType:S,externalSlotProps:P?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Z({},e,{wrapperVariant:t})}),O=D.jsx(S,Z({},C)),A=T?.toolbar,F=dt({elementType:A,externalSlotProps:P?.toolbar,additionalProps:{isLandscape:b,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:w,readOnly:g},className:x.toolbar,ownerState:Z({},e,{wrapperVariant:t})}),z=TL(F)&&A?D.jsx(A,Z({},F)):null,R=v,$=T?.tabs,K=a&&$?D.jsx($,Z({view:a,onViewChange:d,className:x.tabs},P?.tabs)):null,X=T?.shortcuts??Kv,q=dt({elementType:X,externalSlotProps:P?.shortcuts,additionalProps:{isValid:y,isLandscape:b,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:b,onChange:p,wrapperVariant:t}}),Y=a&&X?D.jsx(X,Z({},q)):null;return{toolbar:z,content:R,tabs:K,actionBar:O,shortcuts:Y}},PL=e=>{const{isLandscape:t,classes:n}=e;return Me({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},qv,n)},DL=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",[`& .${_r.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${_r.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${_r.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${_r.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${_r.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${_r.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${_r.shortcuts}`]:{gridColumn:3}}}]}),OL=le("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),yh=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=EL(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,b=PL(o);return D.jsxs(DL,{ref:n,sx:u,className:Se(b.root,f),ownerState:o,children:[p?d:r,p?r:d,D.jsx(OL,{className:b.contentWrapper,children:y==="desktop"?D.jsxs(k.Fragment,{children:[i,a]}):D.jsxs(k.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(yh.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 ML=k.createContext(null);function Xv(e){const{contextValue:t,localeText:n,children:o}=e;return D.jsx(ML.Provider,{value:t,children:D.jsx(mc,{localeText:n,children:o})})}const IL=["props","getOpenDialogAriaText"],NL=["ownerState"],AL=["ownerState"],FL=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,IL);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:b,name:w,label:g,inputRef:v,readOnly:T,disabled:P,autoFocus:x,localeText:S,reduceAnimations:C}=t,O=k.useRef(null),A=k.useRef(null),F=pr(),z=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:X,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:H,contextValue:ae,ownerState:N}=Uv(Z({},o,{props:t,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=r.inputAdornment??Mu,V=dt({elementType:M,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),B=We(V,NL),ne=r.openPickerButton??Fs,oe=dt({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:P||T,onClick:R?$.onClose:$.onOpen,"aria-label":n(H.value),edge:B.position},ownerState:t}),se=We(oe,AL),j=r.openPickerIcon,J=dt({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:N}),ee=r.field,te=dt({elementType:ee,externalSlotProps:i?.field,additionalProps:Z({},H,z&&{id:F},{readOnly:T,disabled:P,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:b,label:g,name:w,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Z({},te.InputProps,{ref:O},!t.disableOpenPicker&&{[`${B.position}Adornment`]:D.jsx(M,Z({},B,{children:D.jsx(ne,Z({},se,{children:D.jsx(j,Z({},J))}))}))}));const ce=Z({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),ie=r.layout??yh;let he=F;z&&(g?he=`${F}-label`:he=void 0);const W=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:F}),popper:Z({"aria-labelledby":he},i?.popper)}),re=at(A,te.unstableFieldRef);return{renderPicker:()=>D.jsxs(Xv,{contextValue:ae,localeText:S,children:[D.jsx(ee,Z({},te,{slots:ce,slotProps:W,unstableFieldRef:re})),D.jsx(dL,Z({role:"dialog",placement:"bottom-start",anchorEl:O.current},$,{open:R,slots:r,slotProps:W,shouldRestoreFocus:Y,reduceAnimations:C,children:D.jsx(ie,Z({},X,W?.layout,{slots:r,slotProps:W,children:q()}))}))]})}},LL=an(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$L=an(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),VL=an(D.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),jL=an(D.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(D.jsxs(k.Fragment,{children:[D.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"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");an(D.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(D.jsxs(k.Fragment,{children:[D.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"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const BL=an(D.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"),WL=({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},HL=({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},zL=(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}},YL=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const d=uh(e,a),u=Fv(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",b=null;if(f)if(u)b=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);b=d.maxLength,p&&(y=hh(Iv(Lr(y,r),b),r))}return Z({},d,{format:a,maxLength:b,value:y,placeholder:zL(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},UL=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((b,w)=>w.length-b.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=b=>o.find(w=>w.start<=b&&w.end>=b);let y=0;for(;y<n.length;){const b=p(y),w=b!=null,g=d.exec(n.slice(y))?.[1];if(!w&&g!=null&&u.test(g)){let v=g;for(;v.length>0;){const T=f.exec(v)[1];v=v.slice(T.length),i.push(YL(Z({},e,{now:r,token:T,startSeparator:a}))),a=""}y+=g.length}else{const v=n[y];w&&b?.start===y||b?.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},qL=({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}),Sm=e=>{let t=WL(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=HL(Z({},e,{expandedFormat:t})),o=UL(Z({},e,{expandedFormat:t,escapedParts:n}));return qL(Z({},e,{sections:o}))},GL=e=>{const t=Nt(),n=er(),o=Br(),r=ao(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:b,format:w,formatDensity:g="dense",selectedSections:v,onSelectedSectionsChange:T,shouldRespectLeadingZeros:P=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:O,handleValueChange:A}=ph({timezone:x,value:f,defaultValue:p,onChange:b,valueManager:i}),F=k.useMemo(()=>CF(t),[t]),z=k.useMemo(()=>TF(t,F,C),[t,F,C]),R=k.useCallback((j,J=null)=>a.getSectionsFromValue(t,j,J,ee=>Sm({utils:t,localeText:n,localizedDigits:F,format:w,date:ee,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,w,n,F,r,P,t,g,S]),[$,K]=k.useState(()=>{const j=R(O);mm(j,l);const J={sections:j,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},ee=yF(j),te=i.getInitialReferenceValue({referenceDate:y,value:O,utils:t,props:u,granularity:ee,timezone:C});return Z({},J,{referenceValue:te})}),[X,q]=xo({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=j=>{q(j),T?.(j)},H=k.useMemo(()=>eu(X,$.sections),[X,$.sections]),ae=H==="all"?0:H,N=({value:j,referenceValue:J,sections:ee})=>{if(K(ce=>Z({},ce,{sections:ee,value:j,referenceValue:J,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,j))return;const te={validationError:d({adapter:o,value:j,timezone:C,props:u})};A(j,te)},M=(j,J)=>{const ee=[...$.sections];return ee[j]=Z({},ee[j],{value:J,modified:!0}),ee},V=()=>{N({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},B=()=>{if(ae==null)return;const j=$.sections[ae],J=a.getActiveDateManager(t,$,j),te=J.getSections($.sections).filter(W=>W.value!=="").length===(j.value===""?0:1),ce=M(ae,""),ie=te?null:t.getInvalidDate(),he=J.getNewValuesFromNewActiveDate(ie);N(Z({},he,{sections:ce}))},ne=j=>{const J=(ce,ie)=>{const he=t.parse(ce,w);if(he==null||!t.isValid(he))return null;const W=Sm({utils:t,localeText:n,localizedDigits:F,format:w,date:he,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:S,isRtl:r});return ym(t,he,W,ie,!1)},ee=a.parseValueStr(j,$.referenceValue,J),te=a.updateReferenceValue(t,ee,$.referenceValue);N({value:ee,referenceValue:te,sections:R(ee,$.sections)})},oe=({activeSection:j,newSectionValue:J,shouldGoToNextSection:ee})=>{ee&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,j),ce=M(ae,J),ie=te.getSections(ce),he=_F(t,ie,F);let W,re;if(he!=null&&t.isValid(he)){const Q=ym(t,he,ie,te.referenceDate,!0);W=te.getNewValuesFromNewActiveDate(Q),re=!0}else W=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?N(Z({},W,{sections:ce})):K(Q=>Z({},Q,W,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(J=>Z({},J,{tempValueStrAndroid:j}));return k.useEffect(()=>{const j=R($.value);mm(j,l),K(J=>Z({},J,{sections:j}))},[w,t.locale,r]),k.useEffect(()=>{let j;i.areValuesEqual(t,$.value,O)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,O):j=!0,j&&K(J=>Z({},J,{value:O,referenceValue:a.updateReferenceValue(t,O,J.referenceValue),sections:R(O)}))},[O]),{state:$,activeSectionIndex:ae,parsedSelectedSections:H,setSelectedSections:Y,clearValue:V,clearActiveSection:B,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:z,localizedDigits:F,timezone:C}},KL=5e3,is=e=>e.saveQuery!=null,XL=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Nt(),[l,d]=k.useState(null),u=Te(()=>d(null));k.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),k.useEffect(()=>{if(l!=null){const w=setTimeout(()=>u(),KL);return()=>{clearTimeout(w)}}return()=>{}},[l,u]);const f=({keyPressed:w,sectionIndex:g},v,T)=>{const P=w.toLowerCase(),x=e[g];if(l!=null&&(!T||T(l.value))&&l.sectionIndex===g){const C=`${l.value}${P}`,O=v(C,x);if(!is(O))return d({sectionIndex:g,value:C,sectionType:x.type}),O}const S=v(P,x);return is(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:g,value:P,sectionType:x.type}),is(S)?null:S)},p=w=>{const g=(P,x,S)=>{const C=x.filter(O=>O.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(P,x,S,C)=>{const O=A=>Mv(a,i,x.type,A);if(x.contentType==="letter")return g(x.format,O(x.format),P);if(S&&C!=null&&uh(a,S).contentType==="letter"){const A=O(S),F=g(S,A,P);return is(F)?{saveQuery:!1}:Z({},F,{sectionValue:C(F.sectionValue,A)})}return{saveQuery:!1}};return f(w,(P,x)=>{switch(x.type){case"month":{const S=C=>fm(a,C,a.formats.month,x.format);return v(P,x,a.formats.month,S)}case"weekDay":{const S=(C,O)=>O.indexOf(C).toString();return v(P,x,a.formats.weekday,S)}case"meridiem":return v(P,x);default:return{saveQuery:!1}}})},y=w=>{const g=(T,P)=>{const x=Lr(T,o),S=Number(x),C=n[P.type]({currentDate:null,format:P.format,contentType:P.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const O=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:Nv(a,S,C,o,P),shouldGoToNextSection:O}};return f(w,(T,P)=>{if(P.contentType==="digit"||P.contentType==="digit-with-letter")return g(T,P);if(P.type==="month"){Fv(a,"digit","month","MM");const x=g(T,{type:P.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(is(x))return x;const S=fm(a,x.sectionValue,"MM",P.format);return Z({},x,{sectionValue:S})}if(P.type==="weekDay"){const x=g(T,P);if(is(x))return x;const S=pc(a,P.format)[Number(x.sectionValue)-1];return Z({},x,{sectionValue:S})}return{saveQuery:!1}},T=>hm(T,o))};return{applyCharacterEditing:Te(w=>{const g=e[w.sectionIndex],T=hm(w.keyPressed,o)?y(Z({},w,{keyPressed:hh(w.keyPressed,o)})):p(w);if(T==null){r(null);return}t({activeSection:g,newSectionValue:T.sectionValue,shouldGoToNextSection:T.shouldGoToNextSection})}),resetCharacterQuery:u}},ZL=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:b,setSelectedSections:w,parsedSelectedSections:g,state:v,clearActiveSection:T,clearValue:P,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:O,sectionsValueBoundaries:A}=e,F=k.useRef(null),z=at(o,F),R=er(),$=Nt(),K=pr(),[X,q]=k.useState(!1),Y=k.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(g==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),X&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains(Nn(document)))return;const Q=new window.Range;let fe;g==="all"?fe=F.current.getRoot():v.sections[g].type==="empty"?fe=F.current.getSectionContainer(g):fe=F.current.getSectionContent(g),Q.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Q)},getActiveSectionIndexFromDOM:()=>{const re=Nn(document);return!re||!F.current||!F.current.getRoot().contains(re)?null:F.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!F.current)return;const Q=eu(re,v.sections);q(!0),F.current.getSectionContent(Q).focus()},setSelectedSections:re=>{if(!F.current)return;const Q=eu(re,v.sections);q((Q==="all"?0:Q)!==null),w(re)},isFieldFocused:()=>{const re=Nn(document);return!!F.current&&F.current.getRoot().contains(re)}}),[g,w,v.sections,X]),H=Te(re=>{if(!F.current)return;const Q=v.sections[re];F.current.getSectionContent(re).innerHTML=Q.value||Q.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Q)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Q),g==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){w(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}w(me-1)}):X?F.current.getRoot().contains(re.target)||w(C.startIndex):(q(!0),w(C.startIndex)))}),N=Te(re=>{if(l?.(re),!F.current||g!=="all")return;const fe=re.target.textContent??"";F.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?(b(),P(),w("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),M=Te(re=>{if(d?.(re),n||g!=="all"){re.preventDefault();return}const Q=re.clipboardData.getData("text");re.preventDefault(),b(),S(Q)}),V=Te((...re)=>{if(a?.(...re),X||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement(Nn(document))!=null||w(C.startIndex)}),B=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Q=Nn(document);!F.current.getRoot().contains(Q)&&(q(!1),w(null))})}),ne=Te(re=>Q=>{Q.isDefaultPrevented()||w(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{w(re)}),j=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?(b(),x({activeSection:Q,newSectionValue:fe,shouldGoToNextSection:!0})):!me&&!Ce&&(b(),S(fe))}),J=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),ee=Te(re=>{if(!F.current)return;const Q=re.target,fe=Q.textContent??"",me=F.current.getSectionIndexFromDOMElement(Q),Ce=v.sections[me];if(n||!F.current){H(me);return}if(fe.length===0){if(Ce.value===""){H(me);return}const ve=re.nativeEvent.inputType;if(ve==="insertParagraph"||ve==="insertLineBreak"){H(me);return}b(),T();return}y({keyPressed:fe,sectionIndex:me}),H(me)});nn(()=>{if(!(!X||!F.current)){if(g==="all")F.current.getRoot().focus();else if(typeof g=="number"){const re=F.current.getSectionContent(g);re&&re.focus()}}},[g,X]);const te=k.useMemo(()=>v.sections.reduce((re,Q)=>(re[Q.type]=A[Q.type]({currentDate:null,contentType:Q.contentType,format:Q.format}),re),{}),[A,v.sections]),ce=g==="all",ie=k.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":OF(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?DF(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(k.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:ee,onPaste:j,onFocus:se(Q),onDragOver:J,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,j,J,ee,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{S(re.target.value)}),W=k.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(v.sections),[O,v.sections,p]);return k.useEffect(()=>{if(F.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
363
|
-
`));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??X,sectionListRef:z,onBlur:B,onClick:ae,onFocus:V,onInput:N,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:ie,tabIndex:g===0?-1:0,contentEditable:ce,value:W,onChange:he,areAllSectionsEmpty:O}}},ps=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),QL=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=fh(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=ps(u).length,p=u.length,y=ps(d),b=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,w=b+y.length;i.push(Z({},l,{start:o,end:o+f,startInInput:b,endInInput:w})),o+=f,r+=p}return i},JL=e=>{const t=ao(),n=k.useRef(),o=k.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:b,state:w,fieldValueManager:g,valueManager:v,applyCharacterEditing:T,resetCharacterQuery:P,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:O,setTempAndroidValueStr:A,setSelectedSections:F,getSectionsFromValue:z,areAllSectionsEmpty:R,localizedDigits:$}=e,K=k.useRef(null),X=at(d,K),q=k.useMemo(()=>QL(w.sections,$,t),[w.sections,$,t]),Y=k.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==Nn(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===Nn(document)&&K.current.setSelectionRange(ce,ie),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===Nn(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(),F(ee)},setSelectedSections:ee=>F(ee),isFieldFocused:()=>K.current===Nn(document)}),[K,y,q,F]),H=()=>{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;F(ce)},ae=Te((...ee)=>{r?.(...ee);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||b==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):H())})}),N=Te((ee,...te)=>{ee.isDefaultPrevented()||(i?.(ee,...te),H())}),M=Te(ee=>{if(a?.(ee),ee.preventDefault(),f||p)return;const te=ee.clipboardData.getData("text");if(typeof y=="number"){const ce=w.sections[y],ie=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&ie||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&W){P(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(ie||he)return}P(),S(te)}),V=Te((...ee)=>{l?.(...ee),F(null)}),B=Te(ee=>{if(f)return;const te=ee.target.value;if(te===""){P(),O();return}const ce=ee.nativeEvent.data,ie=ce&&ce.length>1,he=ie?ce:te,W=ps(he);if(b==null||ie){S(ie?ce:W);return}let re;if(y==="all"&&W.length===1)re=W;else{const Q=ps(g.getV6InputValueFromSections(q,$,t));let fe=-1,me=-1;for(let $e=0;$e<Q.length;$e+=1)fe===-1&&Q[$e]!==W[$e]&&(fe=$e),me===-1&&Q[Q.length-$e-1]!==W[W.length-$e-1]&&(me=$e);const Ce=q[b];if(fe<Ce.start||Q.length-me-1>Ce.end)return;const xe=W.length-Q.length+Ce.end-ps(Ce.endSeparator||"").length;re=W.slice(Ce.start+ps(Ce.startSeparator||"").length,xe)}if(re.length===0){EF()&&A(he),P(),C();return}T({keyPressed:re,sectionIndex:b})}),ne=k.useMemo(()=>u!==void 0?u:g.getV6InputValueFromSections(z(v.emptyValue),$,t),[u,g,z,v.emptyValue,$,t]),oe=k.useMemo(()=>w.tempValueStrAndroid??g.getV6InputValueFromSections(w.sections,$,t),[w.sections,g,w.tempValueStrAndroid,$,t]);k.useEffect(()=>(K.current&&K.current===Nn(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=k.useMemo(()=>b==null||w.sections[b].contentType==="letter"?"text":"numeric",[b,w.sections]),J=!(K.current&&K.current===Nn(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:V,onClick:N,onFocus:ae,onPaste:M,inputRef:X,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:J?"":oe,onChange:B}}},e$=e=>{const t=Nt(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:b,validator:w}=e,g=ao(),v=GL(e),{state:T,activeSectionIndex:P,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:O,updateSectionValue:A,setTempAndroidValueStr:F,sectionsValueBoundaries:z,localizedDigits:R,timezone:$}=v,K=XL({sections:T.sections,updateSectionValue:A,sectionsValueBoundaries:z,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:X}=K,q=b.areValuesEqual(t,T.value,b.emptyValue),Y=i?ZL:JL,H=k.useMemo(()=>PF(T.sections,g&&!i),[T.sections,g,i]),{returnedValue:ae,interactions:N}=Y(Z({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:H})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(H.startIndex);else if(x==="all")S(H.endIndex);else{const J=H.neighbors[x].rightIndex;J!==null&&S(J)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(H.endIndex);else if(x==="all")S(H.startIndex);else{const J=H.neighbors[x].leftIndex;J!==null&&S(J)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():O(),X();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||P==null)break;const J=T.sections[P],ee=y.getActiveDateManager(t,T,J),te=SF(t,$,J,j.key,z,R,ee.date,{minutesStep:r});A({activeSection:J,newSectionValue:te,shouldGoToNextSection:!1});break}}});nn(()=>{N.syncSelectionToDOM()});const{hasValidationError:V}=Hv({props:n,validator:w,timezone:$,value:T.value,onError:n.onError}),B=k.useMemo(()=>u!==void 0?u:V,[V,u]);k.useEffect(()=>{!B&&P==null&&X()},[T.referenceValue,P,B]),k.useEffect(()=>{T.tempValueStrAndroid!=null&&P!=null&&(X(),O())},[T.sections]),k.useImperativeHandle(o,()=>({getSections:()=>T.sections,getActiveSectionIndex:N.getActiveSectionIndexFromDOM,setSelectedSections:N.setSelectedSections,focusField:N.focusField,isFieldFocused:N.isFieldFocused}));const ne=Te((j,...J)=>{j.preventDefault(),p?.(j,...J),C(),N.isFieldFocused()?S(H.startIndex):N.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:B,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Z({},e.forwardedProps,oe,se,ae)},t$=["clearable","onClear","InputProps","sx","slots","slotProps"],n$=["ownerState"],o$=e=>{const t=er(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=We(e,t$),u=a?.clearButton??Fs,f=dt({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=We(f,n$),y=a?.clearIcon??BL,b=dt({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Z({},d,{InputProps:Z({},r,{endAdornment:D.jsxs(k.Fragment,{children:[n&&D.jsx(Mu,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:D.jsx(u,Z({},p,{onClick:o,children:D.jsx(y,Z({fontSize:"small"},b))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},r$=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],s$=(e,t)=>k.useMemo(()=>{const n=Z({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return r$.forEach(r),Bv.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),i$=e=>{const t=Nt(),n=ga();return Z({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Xn(t,e.minDate,n.minDate),maxDate:Xn(t,e.maxDate,n.maxDate)})},a$=e=>{const t=i$(e),{forwardedProps:n,internalProps:o}=s$(t,"date");return e$({forwardedProps:n,internalProps:o,valueManager:ko,fieldValueManager:IF,validator:ya,valueType:"date"})};function l$(e){return Oe("MuiPickersTextField",e)}De("MuiPickersTextField",["root","focused","disabled","error","required"]);function c$(e){return Oe("MuiPickersInputBase",e)}const Cs=De("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function d$(e){return Oe("MuiPickersSectionList",e)}const ui=De("MuiPickersSectionList",["root","section","sectionContent"]),u$=["slots","slotProps","elements","sectionListRef"],Zv=le("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Qv=le("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Jv=le("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),eb=le("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),h$=e=>{const{classes:t}=e;return Me({root:["root"],section:["section"],sectionContent:["sectionContent"]},d$,t)};function tb(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??Qv,a=dt({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??eb,d=dt({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??Jv,f=dt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=dt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return D.jsxs(i,Z({},a,{children:[D.jsx(u,Z({},f)),D.jsx(l,Z({},d)),D.jsx(u,Z({},p))]}))}process.env.NODE_ENV!=="production"&&(tb.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 nb=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=We(o,u$),u=h$(o),f=k.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};k.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(g){return y("getSectionContainer").querySelector(`.${ui.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return y("getSectionContent").querySelector(`.${ui.section}[data-sectionindex="${g}"] .${ui.sectionContent}`)},getSectionIndexFromDOMElement(g){const v=y("getSectionIndexFromDOMElement");if(g==null||!v.contains(g))return null;let T=null;return g.classList.contains(ui.section)?T=g:g.classList.contains(ui.sectionContent)&&(T=g.parentElement),T==null?null:Number(T.dataset.sectionindex)}}));const b=r?.root??Zv,w=dt({elementType:b,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return D.jsx(b,Z({},w,{children:w.contentEditable?a.map(({content:g,before:v,after:T})=>`${v.children}${g.children}${T.children}`).join(""):D.jsx(k.Fragment,{children:a.map((g,v)=>D.jsx(tb,{slots:r,slotProps:i,element:g,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(nb.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 f$=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],p$=e=>Math.round(e*1e5)/1e5,bc=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:`${p$(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),vh=le(Zv,{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}}]})),m$=le(Qv,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),g$=le(eb,{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"})),y$=le(Jv,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),v$=le("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Z({},Ax)),b$=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${be(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Me(p,c$,r)},wc=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:b,contentEditable:w,tabIndex:g,onInput:v,onPaste:T,onKeyDown:P,name:x,readOnly:S,inputProps:C,inputRef:O,sectionListRef:A}=o,F=We(o,f$),z=k.useRef(null),R=at(n,z),$=at(C?.ref,O),K=ao(),X=On();if(!X)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=V=>{if(X.disabled){V.stopPropagation();return}X.onFocus?.(V)};k.useEffect(()=>{X&&X.setAdornedStart(!!f)},[X,f]),k.useEffect(()=>{X&&(i?X.onEmpty():X.onFilled())},[X,i]);const Y=Z({},o,X,{isRtl:K}),H=b$(Y),ae=y?.root||bc,N=dt({elementType:ae,externalSlotProps:b?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":X.error,ref:R},className:H.root,ownerState:Y}),M=y?.input||vh;return D.jsxs(ae,Z({},N,{children:[f,D.jsx(nb,{sectionListRef:A,elements:r,contentEditable:w,tabIndex:g,className:H.sectionsContainer,onFocus:q,onBlur:X.onBlur,onInput:v,onPaste:T,onKeyDown:P,slots:{root:M,section:m$,sectionContent:g$,sectionSeparator:y$},slotProps:{root:{ownerState:Y},sectionContent:{className:Cs.sectionContent},sectionSeparator:({position:V})=>({className:V==="before"?Cs.sectionBefore:Cs.sectionAfter})}}),u,p?p(Z({},X)):null,D.jsx(v$,Z({name:x,className:H.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:X.required,disabled:X.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&(wc.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:Bt,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 w$(e){return Oe("MuiPickersOutlinedInput",e)}const no=Z({},Cs,De("MuiPickersOutlinedInput",["root","notchedOutline","input"])),C$=["children","className","label","notched","shrink"],S$=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}}),_m=le("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),_$=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 x$(e){const{className:t,label:n}=e,o=We(e,C$),r=n!=null&&n!=="",i=Z({},e,{withLabel:r});return D.jsx(S$,Z({"aria-hidden":!0,className:t},o,{ownerState:i,children:D.jsx(_$,{ownerState:i,children:r?D.jsx(_m,{children:n}):D.jsx(_m,{className:"notranslate",children:""})})}))}const R$=["label","autoFocus","ownerState","notched"],T$=le(bc,{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 .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${no.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${no.focused} .${no.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${no.disabled}`]:{[`& .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${no.error} .${no.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:{[`&.${no.focused}:not(.${no.error}) .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),k$=le(vh,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),E$=e=>{const{classes:t}=e,o=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},w$,t);return Z({},t,o)},bh=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=We(o,R$),d=On(),u=Z({},o,i,d,{color:d?.color||"primary"}),f=E$(u);return D.jsx(wc,Z({slots:{root:T$,input:k$},renderSuffix:p=>D.jsx(x$,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?D.jsxs(k.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(bh.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:Bt,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});bh.muiName="Input";function P$(e){return Oe("MuiPickersFilledInput",e)}const xr=Z({},Cs,De("MuiPickersFilledInput",["root","underline","input"])),D$=["label","autoFocus","disableUnderline","ownerState"],O$=le(bc,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qa(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}},[`&.${xr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${xr.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"},[`&.${xr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xr.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(.${xr.disabled}, .${xr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),M$=le(vh,{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}}]}),I$=e=>{const{classes:t,disableUnderline:n}=e,r=Me({root:["root",!n&&"underline"],input:["input"]},P$,t);return Z({},t,r)},wh=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=We(o,D$),d=On(),u=Z({},o,a,d,{color:d?.color||"primary"}),f=I$(u);return D.jsx(wc,Z({slots:{root:O$,input:M$},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(wh.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:Bt,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});wh.muiName="Input";function N$(e){return Oe("MuiPickersFilledInput",e)}const hi=Z({},Cs,De("MuiPickersInput",["root","input"])),A$=["label","autoFocus","disableUnderline","ownerState"],F$=le(bc,{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"},[`&.${hi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hi.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(.${hi.disabled}, .${hi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${hi.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),L$=e=>{const{classes:t,disableUnderline:n}=e,r=Me({root:["root",!n&&"underline"],input:["input"]},N$,t);return Z({},t,r)},Ch=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=We(o,A$),d=On(),u=Z({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=L$(u);return D.jsx(wc,Z({slots:{root:F$}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Ch.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:Bt,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});Ch.muiName="Input";const $$=["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"],V$={standard:Ch,filled:wh,outlined:bh},j$=le(la,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),B$=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Me({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},l$,o)},ob=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:b,inputRef:w,sectionListRef:g,elements:v,areAllSectionsEmpty:T,onClick:P,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:O,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,focused:$,value:K,onChange:X,fullWidth:q,id:Y,name:H,helperText:ae,FormHelperTextProps:N,label:M,InputLabelProps:V}=o,B=We(o,$$),ne=k.useRef(null),oe=at(n,ne),se=pr(Y),j=ae&&se?`${se}-helper-text`:void 0,J=M&&se?`${se}-label`:void 0,ee=Z({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=B$(ee),ce=V$[f];return D.jsxs(j$,Z({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:ee},B,{children:[D.jsx(ca,Z({htmlFor:se,id:J},V,{children:M})),D.jsx(ce,Z({elements:v,areAllSectionsEmpty:T,onClick:P,onKeyDown:x,onKeyUp:S,onInput:O,onPaste:C,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,value:K,onChange:X,id:se,fullWidth:q,inputProps:b,inputRef:w,sectionListRef:g,label:M,name:H,role:"group","aria-labelledby":J},y)),ae&&D.jsx(Ou,Z({id:j},N,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(ob.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:Bt,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 W$=["enableAccessibleFieldDOMStructure"],H$=["InputProps","readOnly"],z$=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Y$=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=We(e,W$);if(t){const{InputProps:p,readOnly:y}=n,b=We(n,H$);return Z({},b,{InputProps:Z({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=We(n,z$);return Z({},f,{InputProps:Z({},l??{},{readOnly:a}),inputProps:Z({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},U$=["slots","slotProps","InputProps","inputProps"],Sh=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=We(o,U$),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?ob:Ds),p=dt({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Z({},l,p.inputProps),p.InputProps=Z({},a,p.InputProps);const y=a$(p),b=Y$(y),w=o$(Z({},b,{slots:r,slotProps:i}));return D.jsx(f,Z({},w))});process.env.NODE_ENV!=="production"&&(Sh.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:Bt,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 rb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=Br();return k.useCallback(u=>ya({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},q$=(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")}},G$=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Nt(),b=k.useRef(q$(!!u,i,y)).current,w=k.useMemo(()=>ko.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:vo.day}),[n,p]),[g,v]=k.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:w,currentMonth:y.startOfMonth(w),slideDirection:"left"});k.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(w)})},[w,y]);const T=k.useCallback(O=>{v(Z({type:"changeMonth"},O)),d&&d(O.newMonth)},[d]),P=k.useCallback(O=>{const A=O;y.isSameMonth(A,g.currentMonth)||T({newMonth:y.startOfMonth(A),direction:y.isAfterDay(A,g.currentMonth)?"left":"right"})},[g.currentMonth,T,y]),x=rb({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=k.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((O,A)=>{x(O)||v({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:A})});return{referenceDate:w,calendarState:g,changeMonth:P,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:T}},K$=e=>Oe("MuiPickersFadeTransitionGroup",e);De("MuiPickersFadeTransitionGroup",["root"]);const X$=e=>{const{classes:t}=e;return Me({root:["root"]},K$,t)},Z$=le(ra,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function sb(e){const t=Mt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=X$(t),l=Ns();return r?n:D.jsx(Z$,{className:Se(a.root,o),children:D.jsx($r,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function Q$(e){return Oe("MuiPickersDay",e)}const Rr=De("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),J$=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],eV=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Me({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Q$,d)},ib=({theme:e})=>Z({},e.typography.caption,{width:Ki,height:Ki,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})`:ot(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ot(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Rr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Rr.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}},[`&.${Rr.disabled}:not(.${Rr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Rr.disabled}&.${Rr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${yc}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Rr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ab=(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]},tV=le(dr,{name:"MuiPickersDay",slot:"Root",overridesResolver:ab})(ib),nV=le("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ab})(({theme:e})=>Z({},ib({theme:e}),{opacity:0,pointerEvents:"none"})),fi=()=>{},lb=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:b=fi,onBlur:w=fi,onKeyDown:g=fi,onMouseDown:v=fi,onMouseEnter:T=fi,outsideCurrentMonth:P,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:O=!1}=o,A=We(o,J$),F=Z({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:O}),z=eV(F),R=Nt(),$=k.useRef(null),K=at($,n);nn(()=>{r&&!l&&!f&&!P&&$.current.focus()},[r,l,f,P]);const X=Y=>{v(Y),P&&Y.preventDefault()},q=Y=>{l||y(a),P&&Y.currentTarget.focus(),p&&p(Y)};return P&&!S?D.jsx(nV,{className:Se(z.root,z.hiddenDaySpacingFiller,i),ownerState:F,role:A.role}):D.jsx(tV,Z({className:Se(z.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>g(Y,a),onFocus:Y=>b(Y,a),onBlur:Y=>w(Y,a),onMouseEnter:Y=>T(Y,a),onClick:q,onMouseDown:X},A,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(lb.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 oV=k.memo(lb),rV=e=>Oe("MuiPickersSlideTransition",e),Wn=De("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),sV=["children","className","reduceAnimations","slideDirection","transKey","classes"],iV=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Me(o,rV,t)},aV=le(ra,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Wn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Wn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Wn.slideEnterActive}`]:t.slideEnterActive},{[`.${Wn.slideExit}`]:t.slideExit},{[`.${Wn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Wn["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},[`& .${Wn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Wn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Wn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Wn.slideExit}`]:{transform:"translate(0%)"},[`& .${Wn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Wn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function lV(e){const t=Mt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=We(t,sV),l=iV(t),d=Ns();if(r)return D.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return D.jsx(aV,{className:Se(l.root,o),childFactory:f=>k.cloneElement(f,{classNames:u}),role:"presentation",children:D.jsx(bu,Z({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const cV=e=>Oe("MuiDayCalendar",e);De("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const dV=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],uV=["ownerState"],hV=e=>{const{classes:t}=e;return Me({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},cV,t)},cb=(Ki+yc*2)*6,fV=le("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pV=le("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),mV=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})),gV=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})),yV=le(Tn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Z({},e.typography.caption,{width:Ki,height:Ki,padding:0,margin:`0 ${yc}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),vV=le("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:cb}),bV=le(lV,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:cb}),wV=le("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),CV=le("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${yc}px 0`,display:"flex",justifyContent:"center"});function SV(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=We(e,dV);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:b,slotProps:w,timezone:g}=t,v=Nt(),T=gc(g),P=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,T),C=b?.day??oV,O=dt({elementType:C,externalSlotProps:w?.day,additionalProps:Z({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Z({},t,{day:n,selected:x})}),A=We(O,uV),F=k.useMemo(()=>u||i(n),[u,i,n]),z=k.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=k.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]),$=k.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 D.jsx(C,Z({},A,{day:n,disabled:F,autoFocus:l&&P,today:S,outsideCurrentMonth:z,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:P?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function _V(e){const t=Mt({props:e,name:"MuiDayCalendar"}),n=Nt(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:b=()=>D.jsx("span",{children:"..."}),slideDirection:w,TransitionProps:g,disablePast:v,disableFuture:T,minDate:P,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,dayOfWeekFormatter:A=me=>n.format(me,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:z,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:X,timezone:q}=t,Y=gc(q),H=hV(t),ae=ao(),N=rb({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,minDate:P,maxDate:x,disablePast:v,disableFuture:T,timezone:q}),M=er(),[V,B]=xo({name:"DayCalendar",state:"hasFocus",controlled:F,default:X??!1}),[ne,oe]=k.useState(()=>l||Y),se=Te(me=>{p||u(me)}),j=me=>{N(me)||(o(me),oe(me),z?.(!0),B(!0))},J=Te((me,Ce)=>{switch(me.key){case"ArrowUp":j(n.addDays(Ce,-7)),me.preventDefault();break;case"ArrowDown":j(n.addDays(Ce,7)),me.preventDefault();break;case"ArrowLeft":{const ve=n.addDays(Ce,ae?1:-1),xe=n.addMonths(Ce,ae?1:-1),$e=ki({utils:n,date:ve,minDate:ae?ve:n.startOfMonth(xe),maxDate:ae?n.endOfMonth(xe):ve,isDateDisabled:N,timezone:q});j($e||ve),me.preventDefault();break}case"ArrowRight":{const ve=n.addDays(Ce,ae?-1:1),xe=n.addMonths(Ce,ae?-1:1),$e=ki({utils:n,date:ve,minDate:ae?n.startOfMonth(xe):ve,maxDate:ae?ve:n.endOfMonth(xe),isDateDisabled:N,timezone:q});j($e||ve),me.preventDefault();break}case"Home":j(n.startOfWeek(Ce)),me.preventDefault();break;case"End":j(n.endOfWeek(Ce)),me.preventDefault();break;case"PageUp":j(n.addMonths(Ce,1)),me.preventDefault();break;case"PageDown":j(n.addMonths(Ce,-1)),me.preventDefault();break}}),ee=Te((me,Ce)=>j(Ce)),te=Te((me,Ce)=>{V&&n.isSameDay(ne,Ce)&&z?.(!1)}),ce=n.getMonth(i),ie=n.getYear(i),he=k.useMemo(()=>a.filter(me=>!!me).map(me=>n.startOfDay(me)),[n,a]),W=`${ie}-${ce}`,re=k.useMemo(()=>k.createRef(),[W]),Q=k.useMemo(()=>{const me=n.startOfMonth(i),Ce=n.endOfMonth(i);return N(ne)||n.isAfterDay(ne,Ce)||n.isBeforeDay(ne,me)?ki({utils:n,date:ne,minDate:me,maxDate:Ce,disablePast:v,disableFuture:T,isDateDisabled:N,timezone:q}):ne},[i,T,v,ne,N,n,q]),fe=k.useMemo(()=>{const me=n.getWeekArray(i);let Ce=n.addMonths(i,1);for(;K&&me.length<K;){const ve=n.getWeekArray(Ce),xe=n.isSameDay(me[me.length-1][0],ve[0][0]);ve.slice(xe?1:0).forEach($e=>{me.length<K&&me.push($e)}),Ce=n.addMonths(Ce,1)}return me},[i,K,n]);return D.jsxs(fV,{role:"grid","aria-labelledby":R,className:H.root,children:[D.jsxs(pV,{role:"row",className:H.header,children:[$&&D.jsx(gV,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),fF(n,Y).map((me,Ce)=>D.jsx(mV,{variant:"caption",role:"columnheader","aria-label":n.format(me,"weekday"),className:H.weekDayLabel,children:A(me)},Ce.toString()))]}),d?D.jsx(vV,{className:H.loadingContainer,children:b()}):D.jsx(bV,Z({transKey:W,onExited:f,reduceAnimations:y,slideDirection:w,className:Se(r,H.slideTransition)},g,{nodeRef:re,children:D.jsx(wV,{ref:re,role:"rowgroup",className:H.monthContainer,children:fe.map((me,Ce)=>D.jsxs(CV,{role:"row",className:H.weekContainer,"aria-rowindex":Ce+1,children:[$&&D.jsx(yV,{className:H.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(me[0])),children:M.calendarWeekNumberText(n.getWeekNumber(me[0]))}),me.map((ve,xe)=>D.jsx(SV,{parentProps:t,day:ve,selectedDays:he,focusableDay:Q,onKeyDown:J,onFocus:ee,onBlur:te,onDaySelect:se,isDateDisabled:N,currentMonthNumber:ce,isViewFocused:V,"aria-colindex":xe+1},ve.toString()))]},`week-${me[0]}`))})}))]})}function xV(e){return Oe("MuiPickersMonth",e)}const Ua=De("MuiPickersMonth",["root","monthButton","disabled","selected"]),RV=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],TV=e=>{const{disabled:t,selected:n,classes:o}=e;return Me({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},xV,o)},kV=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%"}}]}),EV=le("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ua.disabled}`]:t.disabled},{[`&.${Ua.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})`:ot(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ua.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ua.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),PV=k.memo(function(t){const n=Mt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:b,"aria-current":w,"aria-label":g,slots:v,slotProps:T}=n,P=We(n,RV),x=k.useRef(null),S=TV(n);nn(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??EV,O=dt({elementType:C,externalSlotProps:T?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":w,"aria-checked":l,"aria-label":g,onClick:A=>f(A,d),onKeyDown:A=>p(A,d),onFocus:A=>y(A,d),onBlur:A=>b(A,d)},ownerState:n,className:S.monthButton});return D.jsx(kV,Z({className:Se(S.root,r),ownerState:n},P,{children:D.jsx(C,Z({},O))}))});function DV(e){return Oe("MuiMonthCalendar",e)}De("MuiMonthCalendar",["root"]);const OV=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],MV=e=>{const{classes:t}=e;return Me({root:["root"]},DV,t)};function IV(e,t){const n=Nt(),o=ga(),r=Mt({props:e,name:t});return Z({disableFuture:!1,disablePast:!1},r,{minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate)})}const NV=le("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:vc,boxSizing:"border-box"}),db=k.forwardRef(function(t,n){const o=IV(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:b,shouldDisableMonth:w,readOnly:g,autoFocus:v=!1,onMonthFocus:T,hasFocus:P,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:O,slots:A,slotProps:F}=o,z=We(o,OV),{value:R,handleValueChange:$,timezone:K}=mh({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:b,valueManager:ko}),X=gc(K),q=ao(),Y=Nt(),H=k.useMemo(()=>ko.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:vo.month}),[]),ae=o,N=MV(ae),M=k.useMemo(()=>Y.getMonth(X),[Y,X]),V=k.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[B,ne]=k.useState(()=>V||Y.getMonth(H)),[oe,se]=xo({name:"MonthCalendar",state:"hasFocus",controlled:P,default:v??!1}),j=Te(W=>{se(W),x&&x(W)}),J=k.useCallback(W=>{const re=Y.startOfMonth(f&&Y.isAfter(X,y)?X:y),Q=Y.startOfMonth(u&&Y.isBefore(X,p)?X:p),fe=Y.startOfMonth(W);return Y.isBefore(fe,re)||Y.isAfter(fe,Q)?!0:w?w(fe):!1},[u,f,p,y,X,w,Y]),ee=Te((W,re)=>{if(g)return;const Q=Y.setMonth(R??H,re);$(Q)}),te=Te(W=>{J(Y.setMonth(R??H,W))||(ne(W),j(!0),T&&T(W))});k.useEffect(()=>{ne(W=>V!==null&&W!==V?V:W)},[V]);const ce=Te((W,re)=>{switch(W.key){case"ArrowUp":te((12+re-3)%12),W.preventDefault();break;case"ArrowDown":te((12+re+3)%12),W.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),W.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),W.preventDefault();break}}),ie=Te((W,re)=>{te(re)}),he=Te((W,re)=>{B===re&&j(!1)});return D.jsx(NV,Z({ref:n,className:Se(N.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":O},z,{children:ch(Y,R??H).map(W=>{const re=Y.getMonth(W),Q=Y.format(W,"monthShort"),fe=Y.format(W,"month"),me=re===V,Ce=d||J(W);return D.jsx(PV,{selected:me,value:re,onClick:ee,onKeyDown:ce,autoFocus:oe&&re===B,disabled:Ce,tabIndex:re===B&&!Ce?0:-1,onFocus:ie,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:A,slotProps:F,children:Q},Q)})}))});process.env.NODE_ENV!=="production"&&(db.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 AV(e){return Oe("MuiPickersYear",e)}const qa=De("MuiPickersYear",["root","yearButton","selected","disabled"]),FV=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],LV=e=>{const{disabled:t,selected:n,classes:o}=e;return Me({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},AV,o)},$V=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%"}}]}),VV=le("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${qa.disabled}`]:t.disabled},{[`&.${qa.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})`:ot(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${qa.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${qa.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),jV=k.memo(function(t){const n=Mt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:b,"aria-current":w,slots:g,slotProps:v}=n,T=We(n,FV),P=k.useRef(null),x=LV(n);nn(()=>{o&&P.current?.focus()},[o]);const S=g?.yearButton??VV,C=dt({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:P,type:"button",role:"radio","aria-current":w,"aria-checked":l,onClick:O=>f(O,d),onKeyDown:O=>p(O,d),onFocus:O=>y(O,d),onBlur:O=>b(O,d)},ownerState:n,className:x.yearButton});return D.jsx($V,Z({className:Se(x.root,r),ownerState:n},T,{children:D.jsx(S,Z({},C))}))});function BV(e){return Oe("MuiYearCalendar",e)}De("MuiYearCalendar",["root"]);const WV=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],HV=e=>{const{classes:t}=e;return Me({root:["root"]},BV,t)};function zV(e,t){const n=Nt(),o=ga(),r=Mt({props:e,name:t});return Z({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate)})}const YV=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:vc,maxHeight:_L,boxSizing:"border-box",position:"relative"}),ub=k.forwardRef(function(t,n){const o=zV(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:b,onChange:w,readOnly:g,shouldDisableYear:v,onYearFocus:T,hasFocus:P,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:O,gridLabelId:A,slots:F,slotProps:z}=o,R=We(o,WV),{value:$,handleValueChange:K,timezone:X}=mh({name:"YearCalendar",timezone:O,value:a,defaultValue:l,onChange:w,valueManager:ko}),q=gc(X),Y=ao(),H=Nt(),ae=k.useMemo(()=>ko.getInitialReferenceValue({value:$,utils:H,props:o,timezone:X,referenceDate:d,granularity:vo.year}),[]),N=o,M=HV(N),V=k.useMemo(()=>H.getYear(q),[H,q]),B=k.useMemo(()=>$!=null?H.getYear($):null,[$,H]),[ne,oe]=k.useState(()=>B||H.getYear(ae)),[se,j]=xo({name:"YearCalendar",state:"hasFocus",controlled:P,default:r??!1}),J=Te(ve=>{j(ve),x&&x(ve)}),ee=k.useCallback(ve=>{if(p&&H.isBeforeYear(ve,q)||f&&H.isAfterYear(ve,q)||b&&H.isBeforeYear(ve,b)||y&&H.isAfterYear(ve,y))return!0;if(!v)return!1;const xe=H.startOfYear(ve);return v(xe)},[f,p,y,b,q,v,H]),te=Te((ve,xe)=>{if(g)return;const $e=H.setYear($??ae,xe);K($e)}),ce=Te(ve=>{ee(H.setYear($??ae,ve))||(oe(ve),J(!0),T?.(ve))});k.useEffect(()=>{oe(ve=>B!==null&&ve!==B?B:ve)},[B]);const ie=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,W=Te((ve,xe)=>{switch(ve.key){case"ArrowUp":ce(xe-ie),ve.preventDefault();break;case"ArrowDown":ce(xe+ie),ve.preventDefault();break;case"ArrowLeft":ce(xe-he),ve.preventDefault();break;case"ArrowRight":ce(xe+he),ve.preventDefault();break}}),re=Te((ve,xe)=>{ce(xe)}),Q=Te((ve,xe)=>{ne===xe&&J(!1)}),fe=k.useRef(null),me=at(n,fe);k.useEffect(()=>{if(r||fe.current===null)return;const ve=fe.current.querySelector('[tabindex="0"]');if(!ve)return;const xe=ve.offsetHeight,$e=ve.offsetTop,Ae=fe.current.clientHeight,st=fe.current.scrollTop,Pe=$e+xe;xe>Ae||$e<st||(fe.current.scrollTop=Pe-Ae/2-xe/2)},[r]);const Ce=H.getYearRange([b,y]);return S==="desc"&&Ce.reverse(),D.jsx(YV,Z({ref:me,className:Se(M.root,i),ownerState:N,role:"radiogroup","aria-labelledby":A},R,{children:Ce.map(ve=>{const xe=H.getYear(ve),$e=xe===B,Ae=u||ee(ve);return D.jsx(jV,{selected:$e,value:xe,onClick:te,onKeyDown:W,autoFocus:se&&xe===ne,disabled:Ae,tabIndex:xe===ne&&!Ae?0:-1,onFocus:re,onBlur:Q,"aria-current":V===xe?"date":void 0,yearsPerRow:C,slots:F,slotProps:z,children:H.format(ve,"year")},H.format(ve,"year"))})}))});process.env.NODE_ENV!=="production"&&(ub.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 UV=e=>Oe("MuiPickersCalendarHeader",e),qV=De("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function GV(e){return Oe("MuiPickersArrowSwitcher",e)}De("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const KV=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],XV=["ownerState"],ZV=["ownerState"],QV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),JV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),xm=le(Fs,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),ej=e=>{const{classes:t}=e;return Me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},GV,t)},tj=k.forwardRef(function(t,n){const o=ao(),r=Mt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:b,isPreviousHidden:w,onGoToPrevious:g,previousLabel:v,labelId:T}=r,P=We(r,KV),x=r,S=ej(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},O={isDisabled:b,isHidden:w,goTo:g,label:v},A=l?.previousIconButton??xm,F=dt({elementType:A,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Z({},x,{hidden:O.isHidden}),className:Se(S.button,S.previousIconButton)}),z=l?.nextIconButton??xm,R=dt({elementType:z,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Z({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??$L,K=dt({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),X=We(K,XV),q=l?.rightArrowIcon??VL,Y=dt({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),H=We(Y,ZV);return D.jsxs(QV,Z({ref:n,className:Se(S.root,a),ownerState:x},P,{children:[D.jsx(A,Z({},F,{children:o?D.jsx(q,Z({},H)):D.jsx($,Z({},X))})),i?D.jsx(Tn,{variant:"subtitle1",component:"span",id:T,children:i}):D.jsx(JV,{className:S.spacer,ownerState:x}),D.jsx(z,Z({},R,{children:o?D.jsx($,Z({},X)):D.jsx(q,Z({},H))}))]}))});function nj(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Nt();return k.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 oj(e,{disablePast:t,minDate:n,timezone:o}){const r=Nt();return k.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 rj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],sj=["ownerState"],ij=e=>{const{classes:t}=e;return Me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},UV,t)},aj=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}),lj=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})),cj=le("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),dj=le(Fs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${qV.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),uj=le(LL,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),hb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=Mt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:b,onMonthChange:w,onViewChange:g,view:v,reduceAnimations:T,views:P,labelId:x,className:S,timezone:C,format:O=`${r.formats.month} ${r.formats.year}`}=i,A=We(i,rj),F=i,z=ij(i),R=a?.switchViewButton??dj,$=dt({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:z.switchViewButton}),K=a?.switchViewIcon??uj,X=dt({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:z.switchViewIcon}),q=We(X,sj),Y=()=>w(r.addMonths(d,1),"left"),H=()=>w(r.addMonths(d,-1),"right"),ae=nj(d,{disableFuture:f,maxDate:y,timezone:C}),N=oj(d,{disablePast:p,minDate:b,timezone:C}),M=()=>{if(!(P.length===1||!g||u))if(P.length===2)g(P.find(B=>B!==v)||P[0]);else{const B=P.indexOf(v)!==0?0:1;g(P[B])}};if(P.length===1&&P[0]==="year")return null;const V=r.formatByString(d,O);return D.jsxs(aj,Z({},A,{ownerState:F,className:Se(z.root,S),ref:n,children:[D.jsxs(lj,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:z.labelContainer,children:[D.jsx(sb,{reduceAnimations:T,transKey:V,children:D.jsx(cj,{id:x,ownerState:F,className:z.label,children:V})}),P.length>1&&!u&&D.jsx(R,Z({},$,{children:D.jsx(K,Z({},q))}))]}),D.jsx($r,{in:v==="day",children:D.jsx(tj,{slots:a,slotProps:l,onGoToPrevious:H,isPreviousDisabled:N,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(hb.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 hj=le("div")({overflow:"hidden",width:vc,maxHeight:gh,display:"flex",flexDirection:"column",margin:"0 auto"}),fj=e=>Oe("MuiDateCalendar",e);De("MuiDateCalendar",["root","viewTransitionContainer"]);const pj=["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"],mj=e=>{const{classes:t}=e;return Me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},fj,t)};function gj(e,t){const n=Nt(),o=ga(),r=zv(),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??(()=>D.jsx("span",{children:"..."})),minDate:Xn(n,i.minDate,o.minDate),maxDate:Xn(n,i.maxDate,o.maxDate)})}const yj=le(hj,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:gh}),vj=le(sb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),fb=k.forwardRef(function(t,n){const o=Nt(),r=pr(),i=gj(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:b,onYearChange:w,onMonthChange:g,reduceAnimations:v,shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:x,view:S,views:C,openTo:O,className:A,disabled:F,readOnly:z,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:X,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,slots:N,slotProps:M,loading:V,renderLoading:B,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:J}=i,ee=We(i,pj),{value:te,handleValueChange:ce,timezone:ie}=mh({name:"DateCalendar",timezone:J,value:d,defaultValue:u,onChange:b,valueManager:ko}),{view:he,setView:W,focusedView:re,setFocusedView:Q,goToNextView:fe,setValueAndGoToNextView:me}=Yv({view:S,views:C,openTo:O,onChange:ce,onViewChange:l,autoFocus:a,focusedView:X,onFocusedViewChange:q}),{referenceDate:Ce,calendarState:ve,changeFocusedDay:xe,changeMonth:$e,handleChangeMonth:Ae,isDateDisabled:st,onMonthSwitchingAnimationEnd:Pe}=G$({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:g,minDate:R,maxDate:$,shouldDisableDate:T,disablePast:y,disableFuture:p,timezone:ie}),ft=F&&te||R,Kt=F&&te||$,it=`${r}-grid-label`,Yt=re!==null,Xt=N?.calendarHeader??hb,on=dt({elementType:Xt,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ve.currentMonth,onViewChange:W,onMonthChange:(pt,Qt)=>Ae({newMonth:pt,direction:Qt}),minDate:ft,maxDate:Kt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:ie,labelId:it},ownerState:i}),Ue=Te(pt=>{const Qt=o.startOfMonth(pt),vn=o.endOfMonth(pt),Jt=st(pt)?ki({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:st,timezone:ie}):pt;Jt?(me(Jt,"finish"),g?.(Qt)):(fe(),$e(Qt)),xe(Jt,!0)}),tt=Te(pt=>{const Qt=o.startOfYear(pt),vn=o.endOfYear(pt),Jt=st(pt)?ki({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:st,timezone:ie}):pt;Jt?(me(Jt,"finish"),w?.(Jt)):(fe(),$e(Qt)),xe(Jt,!0)}),Mn=Te(pt=>ce(pt&&Tl(o,pt,te??Ce),"finish",he));k.useEffect(()=>{te!=null&&o.isValid(te)&&$e(te)},[te]);const hn=i,Ie=mj(hn),He={disablePast:y,disableFuture:p,maxDate:$,minDate:R},vt={disableHighlightToday:K,readOnly:z,disabled:F,timezone:ie,gridLabelId:it,slots:N,slotProps:M},ln=k.useRef(he);k.useEffect(()=>{ln.current!==he&&(re===ln.current&&Q(he,!0),ln.current=he)},[re,Q,he]);const uo=k.useMemo(()=>[te],[te]);return D.jsxs(yj,Z({ref:n,className:Se(Ie.root,A),ownerState:hn},ee,{children:[D.jsx(Xt,Z({},on,{slots:N,slotProps:M})),D.jsx(vj,{reduceAnimations:v,className:Ie.viewTransitionContainer,transKey:he,ownerState:hn,children:D.jsxs("div",{children:[he==="year"&&D.jsx(ub,Z({},He,vt,{value:te,onChange:tt,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("year",pt),yearsOrder:oe,yearsPerRow:se,referenceDate:Ce})),he==="month"&&D.jsx(db,Z({},He,vt,{hasFocus:Yt,className:A,value:te,onChange:Ue,shouldDisableMonth:P,onFocusedViewChange:pt=>Q("month",pt),monthsPerRow:j,referenceDate:Ce})),he==="day"&&D.jsx(_V,Z({},ve,He,vt,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:xe,reduceAnimations:v,selectedDays:uo,onSelectedDaysChange:Mn,shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("day",pt),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:V,renderLoading:B}))]})})]}))});process.env.NODE_ENV!=="production"&&(fb.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 Ss=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:b,maxDate:w,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:T,reduceAnimations:P,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:V,timezone:B})=>D.jsx(fb,{view:e,onViewChange:t,views:n.filter(cm),focusedView:o&&cm(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:b,maxDate:w,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:T,reduceAnimations:P,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:V,timezone:B}),pb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=jv(t,"MuiDesktopDatePicker"),a=Z({day:Ss,month:Ss,year:Ss},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:dh(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Z({openPickerIcon:jL,field:Sh},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Yl(i.slotProps?.field,u),Wv(i),{ref:n}),toolbar:Z({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=FL({props:l,valueManager:ko,valueType:"date",getOpenDialogAriaText:Lv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:ya});return d()});pb.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:Bt,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 bj=le(Qg)({[`& .${xi.container}`]:{outline:0},[`& .${xi.paper}`]:{outline:0,minWidth:vc}}),wj=le(ey)({"&:first-of-type":{padding:0}});function Cj(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??bj,l=r?.mobileTransition??$r;return D.jsx(a,Z({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:D.jsx(wj,{children:t})}))}const Sj=["props","getOpenDialogAriaText"],_j=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,Sj);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:b,name:w,label:g,inputRef:v,readOnly:T,disabled:P,localeText:x}=t,S=k.useRef(null),C=pr(),O=i?.toolbar?.hidden??!1,{open:A,actions:F,layoutProps:z,renderCurrentView:R,fieldProps:$,contextValue:K}=Uv(Z({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),X=r.field,q=dt({elementType:X,externalSlotProps:i?.field,additionalProps:Z({},$,O&&{id:C},!(P||T)&&{onClick:F.onOpen,onKeyDown:JF(F.onOpen)},{readOnly:T??!0,disabled:P,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:b,label:g,name:w},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Z({},q.inputProps,{"aria-label":n($.value)});const Y=Z({textField:r.textField},q.slots),H=r.layout??yh;let ae=C;O&&(g?ae=`${C}-label`:ae=void 0);const N=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:C}),mobilePaper:Z({"aria-labelledby":ae},i?.mobilePaper)}),M=at(S,q.unstableFieldRef);return{renderPicker:()=>D.jsxs(Xv,{contextValue:K,localeText:x,children:[D.jsx(X,Z({},q,{slots:Y,slotProps:N,unstableFieldRef:M})),D.jsx(Cj,Z({},F,{open:A,slots:r,slotProps:N,children:D.jsx(H,Z({},z,N?.layout,{slots:r,slotProps:N,children:R()}))}))]})}},mb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=jv(t,"MuiMobileDatePicker"),a=Z({day:Ss,month:Ss,year:Ss},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:dh(r,i,!1),slots:Z({field:Sh},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Yl(i.slotProps?.field,u),Wv(i),{ref:n}),toolbar:Z({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=_j({props:l,valueManager:ko,valueType:"date",getOpenDialogAriaText:Lv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:ya});return d()});mb.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:Bt,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 xj=["desktopModeMediaQuery"],El=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=eL}=o,i=We(o,xj);return ag(r,{defaultMatches:!0})?D.jsx(pb,Z({ref:n},i)):D.jsx(mb,Z({ref:n},i))});process.env.NODE_ENV!=="production"&&(El.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:Bt,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 tu=le(Ls)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),Rj=({setValue:e,value:t})=>{function n(r){const i=r?.format(Fr.db)||"",a={...t,1:i===Xd?Os[1]:i};e(a),Zo(a)}function o(r){const i=r?.format(Fr.db)||"",a={...t,2:i===Xd?Os[2]:i};e(a),Zo(a)}return D.jsxs(mc,{dateAdapter:Dv,children:[D.jsx(tu,{children:D.jsx(El,{label:oo.from,onChange:n,...Jd(t[1])})}),D.jsx(tu,{children:D.jsx(El,{label:oo.to,onChange:o,...Jd(t[2])})})]})},_d=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Fr.db)||"",a={...n,1:i===Xd?Os[1]:i};t(a),Zo(a)}return D.jsx(mc,{dateAdapter:Dv,children:D.jsx(tu,{children:D.jsx(El,{label:e,onChange:o,...Jd(n[1])})})})},Rm={label:"",options:[]};function Tj(){const{columnId:e,table:t}=wn,n=t?.grid;if(!n)return Rm;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return Rm;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function kj(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const Ej=le(Pu)({padding:0}),Tm={Checkbox:Ej},Pj=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=Tj(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),Zo(d)};return D.jsxs(la,{size:"small",children:[D.jsx(ca,{id:"column-filter-multiple-select-label",children:o}),D.jsxs(da,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:D.jsx(Ps,{label:o}),renderValue:a=>a.join(", "),children:[D.jsxs(vl,{value:"All",children:[D.jsx(Tm.Checkbox,{checked:n.indexOf("All")>-1}),D.jsx(Vd,{primary:"All"})]},0),r.sort(kj).map(a=>D.jsxs(vl,{value:a,children:[D.jsx(Tm.Checkbox,{checked:n.indexOf(a)>-1}),D.jsx(Vd,{primary:a})]},a))]})]})},Dj=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),Zo(i)}function o(r){const i={...t,2:r.target.value};e(i),Zo(i)}return D.jsxs(Be.Fragment,{children:[D.jsx(Ds,{label:oo.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),D.jsx(Ds,{label:oo.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},xd=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),Zo(i)}return D.jsx(Ds,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},Ga=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),Zo(r)}return D.jsx(Ds,{label:oo.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},Oj=({filterId:e,setValue:t,value:n})=>D.jsxs(Be.Fragment,{children:[e===Ve.Boolean&&D.jsx(iF,{setValue:t,value:n}),e===Ve.TextEqual&&D.jsx(Ga,{setValue:t,value:n}),e===Ve.TextNotEqual&&D.jsx(Ga,{setValue:t,value:n}),e===Ve.TextContain&&D.jsx(Ga,{setValue:t,value:n}),e===Ve.TextNotContain&&D.jsx(Ga,{setValue:t,value:n}),e===Ve.MultipleSelect&&D.jsx(Pj,{setValue:t,value:n}),e===Ve.NumberEqual&&D.jsx(xd,{label:oo.filter,setValue:t,value:n}),e===Ve.NumberFrom&&D.jsx(xd,{label:oo.from,setValue:t,value:n}),e===Ve.NumberTo&&D.jsx(xd,{label:oo.to,setValue:t,value:n}),e===Ve.NumberBetween&&D.jsx(Dj,{setValue:t,value:n}),e===Ve.DateEqual&&D.jsx(_d,{label:oo.filter,setValue:t,value:n}),e===Ve.DateFrom&&D.jsx(_d,{label:oo.from,setValue:t,value:n}),e===Ve.DateTo&&D.jsx(_d,{label:oo.to,setValue:t,value:n}),e===Ve.DateBetween&&D.jsx(Rj,{setValue:t,value:n})]}),Mj=le(vl)({fontSize:"12px"}),km={MenuItem:Mj},Ij=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:l="12.8em",height:d,disabled:u=!1})=>D.jsxs(la,{variant:"outlined",size:"small",children:[D.jsx(ca,{id:"reportType",children:e}),D.jsxs(da,{labelId:"reportType",id:e,label:e,autoWidth:!0,value:`${r??(o||0)}`,defaultValue:`${o||0}`,onChange:n,disabled:u,"data-testid":a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0},sx:{height:d,width:l},children:[i&&D.jsx(km.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>D.jsx(km.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),Nj={id:Ve.DateBetween,name:"Between"},Aj={id:Ve.DateEqual,name:"Equal"},Fj={id:Ve.DateFrom,name:"From"},Lj={id:Ve.DateTo,name:"To"},$j={id:Ve.NumberBetween,name:"Between"},Vj={id:Ve.NumberEqual,name:"Equal"},jj={id:Ve.NumberFrom,name:"From"},Bj={id:Ve.NumberTo,name:"To"},Wj={id:Ve.TextContain,name:"Contains"},Hj={id:Ve.TextEqual,name:"Equal"},zj={id:Ve.TextNotContain,name:"Does not contain"},Yj={id:Ve.TextNotEqual,name:"Not equal"},Em=[Vj,jj,Bj,$j],Uj={[sn.Boolean]:[],[sn.Date]:[Aj,Fj,Lj,Nj],[sn.MultipleSelect]:[],[sn.Number]:Em,[sn.NumberFormatted]:Em,[sn.Text]:[Wj,zj,Hj,Yj]},qj=({filterId:e,setFilterId:t})=>{const n=Uj[wn.group],o=n.some(({id:i})=>i===e)?e:n[0]?.id;function r(i){const{columnId:a,table:l}=wn;if(!a||!l)return;const d=l.filter.args,u=i.target.value;d.columnFilters&&(l.filter.args={...d,columnFilters:{...d.columnFilters,[a]:{...d.columnFilters[a],filterId:u}}},t(u))}return o?D.jsx(Ij,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},Gj=le(Ls)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),Kj={Wrapper:Gj},Xj=()=>{const[e,t]=Be.useState(Os),[n,o]=Be.useState(Ve.TextContain),[r,i]=Be.useState(!1);return eF(i),JA(r,o,t),r?D.jsxs(Be.Fragment,{children:[D.jsx(gy,{setIsOpened:i}),D.jsx(yy,{id:Pv,children:D.jsxs(Kj.Wrapper,{children:[D.jsx(qj,{filterId:n,setFilterId:o}),D.jsx(Oj,{filterId:n,setValue:t,value:e}),D.jsx(oF,{setIsOpened:i,setValue:t,value:e})]})})]}):null},gb="context_menu";function Zj(e){Be.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(gb);if(!n)return;const{x:o,y:r}=Cn;my(n,o,r)},0)}return Cn.subscribe(t),()=>{Cn.unsubscribe(t)}},[])}const Qj=le("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),Jj=le("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),eB=le("span")({backgroundColor:"#1E456F"}),un={Ul:Qj,Li:Jj,Icon:eB},tB=({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 D.jsxs(un.Li,{onClick:o,children:[D.jsx(un.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},nB=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-link"}),"Group"]})};function oB(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const rB=({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,ur.highlightAllColumns(o,t.id),e(!1)}return oB(t)?D.jsxs(Be.Fragment,{children:[D.jsx(yl,{}),D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},sB=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},iB=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},aB=({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 D.jsxs(un.Li,{onClick:t,children:[D.jsx(un.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},lB=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},cB=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=Cn.table;r?.printer.print(r,e,t),n(!1)}return D.jsxs(un.Li,{onClick:o,children:[D.jsx(un.Icon,{className:"sgi sgi-printer"}),"Print"]})},dB=({clientId:e,clientName:t})=>{const[n,o]=Be.useState(!1);return Zj(o),n?D.jsxs(Be.Fragment,{children:[D.jsx(gy,{setIsOpened:o}),D.jsx(yy,{id:gb,children:D.jsxs(un.Ul,{children:[D.jsx(cB,{clientId:e,clientName:t,setIsOpened:o}),D.jsx(aB,{setIsOpened:o}),D.jsx(tB,{clientId:e,clientName:t,setIsOpened:o}),D.jsx(rB,{setIsOpened:o}),D.jsx(sB,{setIsOpened:o}),D.jsx(nB,{setIsOpened:o}),D.jsx(lB,{setIsOpened:o}),D.jsx(iB,{setIsOpened:o})]})})]}):null};exports.Autocomplete=LA;exports.ColumnFilters=Xj;exports.ColumnSorter=Ev;exports.ContextMenu=dB;exports.DecoratorColumnFilter=fA;exports.DecoratorFilter=hv;exports.DefaultHotKeys=Q1;exports.DefaultPrinter=wv;exports.DeletedRowsFilter=rN;exports.EColumnFiltersGroup=sn;exports.ESortType=jo;exports.Filter=uv;exports.HotKeysDecorator=Lu;exports.PreventCopying=eD;exports.RedoUndoOnly=tD;exports.Skeleton=Y1;exports.SlickTable=bA;exports.SlickgridTable=iA;exports.TotalCalculator=XA;exports.columnCheckboxSelector=aA;exports.columnIsEdited=cA;exports.commitCurrentEdit=Cv;exports.copySelectedRows=Rv;exports.formatterGroupTotals=zA;exports.getDisplayedRows=hc;exports.getNextId=Rl;exports.handleHeaderButtons=fv;exports.headerButtons=ur;exports.openColumnFilter=iN;exports.openContextMenu=Tv;exports.useListenIfTablesWereEdited=EA;
|
|
362
|
+
`))},[JSON.stringify(p)]));const b=Nt(),w=Wr(),{isOpen:g,setIsOpen:v}=hL(e),{timezone:T,value:P,handleValueChange:x}=ph({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=k.useState(()=>{let j;return P!==void 0?j=P:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:P,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:O}=Hv({props:e,validator:r,timezone:T,value:S.draft,onError:e.onError}),A=Te(j=>{const J={action:j,dateState:S,hasChanged:W=>!t.areValuesEqual(b,j.value,W),isControlled:y,closeOnSelect:u},ee=fL(J),te=pL(J),ce=mL(J);C(W=>Z({},W,{draft:j.value,lastPublishedValue:ee?j.value:W.lastPublishedValue,lastCommittedValue:te?j.value:W.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ie=null;const he=()=>(ie||(ie={validationError:j.name==="setValueFromField"?j.context.validationError:O(j.value)},j.name==="setValueFromShortcut"&&(ie.shortcut=j.shortcut)),ie);ee&&x(j.value,he()),te&&i&&i(j.value,he()),ce&&v(!1)});if(P!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(b,S.lastControlledValue,P))){const j=t.areValuesEqual(b,S.draft,P);C(J=>Z({},J,{lastControlledValue:P},j?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const F=Te(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{A({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{A({value:t.getTodayValue(b,T,n),name:"setValueFromAction",pickerAction:"today"})}),X=Te(j=>{j.preventDefault(),v(!0)}),q=Te(j=>{j?.preventDefault(),v(!1)}),Y=Te((j,J="partial")=>A({name:"setValueFromView",value:j,selectionState:J})),H=Te((j,J,ee)=>A({name:"setValueFromShortcut",value:j,changeImportance:J,shortcut:ee})),ae=Te((j,J)=>A({name:"setValueFromField",value:j,context:J})),N={onClear:F,onAccept:z,onDismiss:R,onCancel:$,onSetToday:K,onOpen:X,onClose:q},M={value:S.draft,onChange:ae},V=k.useMemo(()=>t.cleanValue(b,S.draft),[b,t,S.draft]),B={value:V,onChange:Y,onClose:q,open:g},oe=Z({},N,{value:V,onChange:Y,onSelectShortcut:H,isValid:j=>{const J=r({adapter:w,value:j,timezone:T,props:e});return!t.hasError(J)}}),se=k.useMemo(()=>({onOpen:X,onClose:q,open:g}),[g,q,X]);return{open:g,fieldProps:M,viewProps:B,layoutProps:oe,actions:N,contextValue:se}};let Sd=!1;function Yv({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(Sd||(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('", "')}"]\`.`),Sd=!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('", "')}"]\`.`),Sd=!0)));const d=k.useRef(n),u=k.useRef(r),f=k.useRef(r.includes(n)?n:r[0]),[p,y]=xo({name:"useViews",state:"view",controlled:o,default:f.current}),b=k.useRef(i?p:null),[w,g]=xo({name:"useViews",state:"focusedView",controlled:a,default:b.current});k.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(A=>!r.includes(A)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),T=r[v-1]??null,P=r[v+1]??null,x=Te((A,F)=>{g(F?A:z=>A===z?null:z),l?.(A,F)}),S=Te(A=>{x(A,!0),A!==p&&(y(A),t&&t(A))}),C=Te(()=>{P&&S(P)}),O=Te((A,F,z)=>{const R=F==="finish",$=z?r.indexOf(z)<r.length-1:!!P;if(e(A,R&&$?"partial":F,z),z&&z!==p){const X=r[r.indexOf(z)+1];X&&S(X)}else R&&C()});return{view:p,setView:S,focusedView:w,setFocusedView:x,nextView:P,previousView:T,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:O}}const yL=["className","sx"],vL=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:b,timezone:w}=e,g=We(e,yL),{view:v,setView:T,defaultView:P,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=Yv({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:O,viewModeLookup:A}=k.useMemo(()=>f.reduce((q,Y)=>{let H;return b[Y]!=null?H="UI":H="field",q.viewModeLookup[Y]=H,H==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[b,f]),F=k.useMemo(()=>f.reduce((q,Y)=>b[Y]!=null&&mF(Y)?q+1:q,0),[b,f]),z=A[v],R=Te(()=>z==="UI"),[$,K]=k.useState(z==="UI"?v:null);return $!==v&&A[v]==="UI"&&K(v),nn(()=>{z==="field"&&l&&(d(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),nn(()=>{if(!l)return;let q=v;z==="field"&&$!=null&&(q=$),q!==P&&A[q]==="UI"&&A[P]==="UI"&&(q=P),q!==v&&T(q),S(q,!0)},[l]),{hasUIView:O,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:T},renderCurrentView:()=>{if($==null)return null;const q=b[$];if(q==null)return null;const Y=Z({},g,n,t,{views:f,timezone:w,onChange:C,view:$,onViewChange:T,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(b,$,Y):q(Y)}}};function Cm(){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 bL=(e,t)=>{const[n,o]=k.useState(Cm);return nn(()=>{const i=()=>{o(Cm())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),QF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},wL=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=bL(n.views,r),a=ao();return{layoutProps:Z({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function CL(e){const{props:t,pickerValueResponse:n}=e;return k.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 Uv=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:d})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&uL(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=gL({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=vL({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=wL({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=CL({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:y}};function qv(e){return Oe("MuiPickersLayout",e)}const _r=De("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),SL=["onAccept","onClear","onCancel","onSetToday","actions"];function Gv(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=We(e,SL),l=er();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return D.jsx(ds,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return D.jsx(ds,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return D.jsx(ds,{onClick:t,children:l.okButtonLabel},u);case"today":return D.jsx(ds,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return D.jsx(Jg,Z({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(Gv.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 Ki=36,yc=2,vc=320,_L=280,gh=336,xL=["items","changeImportance","isLandscape","onChange","isValid"],RL=["getValue"];function Kv(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=We(e,xL);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=We(l,RL);const f=d({isValid:r});return Z({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return D.jsx(Iu,Z({dense:!0,sx:[{maxHeight:gh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>D.jsx(oy,{children:D.jsx(Yg,Z({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Kv.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 TL(e){return e.view!==null}const kL=e=>{const{classes:t,isLandscape:n}=e;return Me({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},qv,t)},EL=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:b,disabled:w,readOnly:g,children:v,slots:T,slotProps:P}=e,x=kL(e),S=T?.actionBar??Gv,C=dt({elementType:S,externalSlotProps:P?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Z({},e,{wrapperVariant:t})}),O=D.jsx(S,Z({},C)),A=T?.toolbar,F=dt({elementType:A,externalSlotProps:P?.toolbar,additionalProps:{isLandscape:b,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:w,readOnly:g},className:x.toolbar,ownerState:Z({},e,{wrapperVariant:t})}),z=TL(F)&&A?D.jsx(A,Z({},F)):null,R=v,$=T?.tabs,K=a&&$?D.jsx($,Z({view:a,onViewChange:d,className:x.tabs},P?.tabs)):null,X=T?.shortcuts??Kv,q=dt({elementType:X,externalSlotProps:P?.shortcuts,additionalProps:{isValid:y,isLandscape:b,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:b,onChange:p,wrapperVariant:t}}),Y=a&&X?D.jsx(X,Z({},q)):null;return{toolbar:z,content:R,tabs:K,actionBar:O,shortcuts:Y}},PL=e=>{const{isLandscape:t,classes:n}=e;return Me({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},qv,n)},DL=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",[`& .${_r.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${_r.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${_r.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${_r.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${_r.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${_r.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${_r.shortcuts}`]:{gridColumn:3}}}]}),OL=le("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),yh=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=EL(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,b=PL(o);return D.jsxs(DL,{ref:n,sx:u,className:Se(b.root,f),ownerState:o,children:[p?d:r,p?r:d,D.jsx(OL,{className:b.contentWrapper,children:y==="desktop"?D.jsxs(k.Fragment,{children:[i,a]}):D.jsxs(k.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(yh.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 ML=k.createContext(null);function Xv(e){const{contextValue:t,localeText:n,children:o}=e;return D.jsx(ML.Provider,{value:t,children:D.jsx(mc,{localeText:n,children:o})})}const IL=["props","getOpenDialogAriaText"],NL=["ownerState"],AL=["ownerState"],FL=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,IL);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:b,name:w,label:g,inputRef:v,readOnly:T,disabled:P,autoFocus:x,localeText:S,reduceAnimations:C}=t,O=k.useRef(null),A=k.useRef(null),F=pr(),z=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:X,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:H,contextValue:ae,ownerState:N}=Uv(Z({},o,{props:t,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=r.inputAdornment??Mu,V=dt({elementType:M,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),B=We(V,NL),ne=r.openPickerButton??Fs,oe=dt({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:P||T,onClick:R?$.onClose:$.onOpen,"aria-label":n(H.value),edge:B.position},ownerState:t}),se=We(oe,AL),j=r.openPickerIcon,J=dt({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:N}),ee=r.field,te=dt({elementType:ee,externalSlotProps:i?.field,additionalProps:Z({},H,z&&{id:F},{readOnly:T,disabled:P,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:b,label:g,name:w,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Z({},te.InputProps,{ref:O},!t.disableOpenPicker&&{[`${B.position}Adornment`]:D.jsx(M,Z({},B,{children:D.jsx(ne,Z({},se,{children:D.jsx(j,Z({},J))}))}))}));const ce=Z({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),ie=r.layout??yh;let he=F;z&&(g?he=`${F}-label`:he=void 0);const W=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:F}),popper:Z({"aria-labelledby":he},i?.popper)}),re=at(A,te.unstableFieldRef);return{renderPicker:()=>D.jsxs(Xv,{contextValue:ae,localeText:S,children:[D.jsx(ee,Z({},te,{slots:ce,slotProps:W,unstableFieldRef:re})),D.jsx(dL,Z({role:"dialog",placement:"bottom-start",anchorEl:O.current},$,{open:R,slots:r,slotProps:W,shouldRestoreFocus:Y,reduceAnimations:C,children:D.jsx(ie,Z({},X,W?.layout,{slots:r,slotProps:W,children:q()}))}))]})}},LL=an(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$L=an(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),VL=an(D.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),jL=an(D.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(D.jsxs(k.Fragment,{children:[D.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"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");an(D.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(D.jsxs(k.Fragment,{children:[D.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"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const BL=an(D.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"),WL=({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},HL=({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},zL=(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}},YL=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const d=uh(e,a),u=Fv(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",b=null;if(f)if(u)b=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);b=d.maxLength,p&&(y=hh(Iv($r(y,r),b),r))}return Z({},d,{format:a,maxLength:b,value:y,placeholder:zL(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},UL=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((b,w)=>w.length-b.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=b=>o.find(w=>w.start<=b&&w.end>=b);let y=0;for(;y<n.length;){const b=p(y),w=b!=null,g=d.exec(n.slice(y))?.[1];if(!w&&g!=null&&u.test(g)){let v=g;for(;v.length>0;){const T=f.exec(v)[1];v=v.slice(T.length),i.push(YL(Z({},e,{now:r,token:T,startSeparator:a}))),a=""}y+=g.length}else{const v=n[y];w&&b?.start===y||b?.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},qL=({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}),Sm=e=>{let t=WL(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=HL(Z({},e,{expandedFormat:t})),o=UL(Z({},e,{expandedFormat:t,escapedParts:n}));return qL(Z({},e,{sections:o}))},GL=e=>{const t=Nt(),n=er(),o=Wr(),r=ao(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:b,format:w,formatDensity:g="dense",selectedSections:v,onSelectedSectionsChange:T,shouldRespectLeadingZeros:P=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:O,handleValueChange:A}=ph({timezone:x,value:f,defaultValue:p,onChange:b,valueManager:i}),F=k.useMemo(()=>CF(t),[t]),z=k.useMemo(()=>TF(t,F,C),[t,F,C]),R=k.useCallback((j,J=null)=>a.getSectionsFromValue(t,j,J,ee=>Sm({utils:t,localeText:n,localizedDigits:F,format:w,date:ee,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,w,n,F,r,P,t,g,S]),[$,K]=k.useState(()=>{const j=R(O);mm(j,l);const J={sections:j,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},ee=yF(j),te=i.getInitialReferenceValue({referenceDate:y,value:O,utils:t,props:u,granularity:ee,timezone:C});return Z({},J,{referenceValue:te})}),[X,q]=xo({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=j=>{q(j),T?.(j)},H=k.useMemo(()=>eu(X,$.sections),[X,$.sections]),ae=H==="all"?0:H,N=({value:j,referenceValue:J,sections:ee})=>{if(K(ce=>Z({},ce,{sections:ee,value:j,referenceValue:J,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,j))return;const te={validationError:d({adapter:o,value:j,timezone:C,props:u})};A(j,te)},M=(j,J)=>{const ee=[...$.sections];return ee[j]=Z({},ee[j],{value:J,modified:!0}),ee},V=()=>{N({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},B=()=>{if(ae==null)return;const j=$.sections[ae],J=a.getActiveDateManager(t,$,j),te=J.getSections($.sections).filter(W=>W.value!=="").length===(j.value===""?0:1),ce=M(ae,""),ie=te?null:t.getInvalidDate(),he=J.getNewValuesFromNewActiveDate(ie);N(Z({},he,{sections:ce}))},ne=j=>{const J=(ce,ie)=>{const he=t.parse(ce,w);if(he==null||!t.isValid(he))return null;const W=Sm({utils:t,localeText:n,localizedDigits:F,format:w,date:he,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:S,isRtl:r});return ym(t,he,W,ie,!1)},ee=a.parseValueStr(j,$.referenceValue,J),te=a.updateReferenceValue(t,ee,$.referenceValue);N({value:ee,referenceValue:te,sections:R(ee,$.sections)})},oe=({activeSection:j,newSectionValue:J,shouldGoToNextSection:ee})=>{ee&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,j),ce=M(ae,J),ie=te.getSections(ce),he=_F(t,ie,F);let W,re;if(he!=null&&t.isValid(he)){const Q=ym(t,he,ie,te.referenceDate,!0);W=te.getNewValuesFromNewActiveDate(Q),re=!0}else W=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?N(Z({},W,{sections:ce})):K(Q=>Z({},Q,W,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(J=>Z({},J,{tempValueStrAndroid:j}));return k.useEffect(()=>{const j=R($.value);mm(j,l),K(J=>Z({},J,{sections:j}))},[w,t.locale,r]),k.useEffect(()=>{let j;i.areValuesEqual(t,$.value,O)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,O):j=!0,j&&K(J=>Z({},J,{value:O,referenceValue:a.updateReferenceValue(t,O,J.referenceValue),sections:R(O)}))},[O]),{state:$,activeSectionIndex:ae,parsedSelectedSections:H,setSelectedSections:Y,clearValue:V,clearActiveSection:B,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:z,localizedDigits:F,timezone:C}},KL=5e3,as=e=>e.saveQuery!=null,XL=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Nt(),[l,d]=k.useState(null),u=Te(()=>d(null));k.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),k.useEffect(()=>{if(l!=null){const w=setTimeout(()=>u(),KL);return()=>{clearTimeout(w)}}return()=>{}},[l,u]);const f=({keyPressed:w,sectionIndex:g},v,T)=>{const P=w.toLowerCase(),x=e[g];if(l!=null&&(!T||T(l.value))&&l.sectionIndex===g){const C=`${l.value}${P}`,O=v(C,x);if(!as(O))return d({sectionIndex:g,value:C,sectionType:x.type}),O}const S=v(P,x);return as(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:g,value:P,sectionType:x.type}),as(S)?null:S)},p=w=>{const g=(P,x,S)=>{const C=x.filter(O=>O.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(P,x,S,C)=>{const O=A=>Mv(a,i,x.type,A);if(x.contentType==="letter")return g(x.format,O(x.format),P);if(S&&C!=null&&uh(a,S).contentType==="letter"){const A=O(S),F=g(S,A,P);return as(F)?{saveQuery:!1}:Z({},F,{sectionValue:C(F.sectionValue,A)})}return{saveQuery:!1}};return f(w,(P,x)=>{switch(x.type){case"month":{const S=C=>fm(a,C,a.formats.month,x.format);return v(P,x,a.formats.month,S)}case"weekDay":{const S=(C,O)=>O.indexOf(C).toString();return v(P,x,a.formats.weekday,S)}case"meridiem":return v(P,x);default:return{saveQuery:!1}}})},y=w=>{const g=(T,P)=>{const x=$r(T,o),S=Number(x),C=n[P.type]({currentDate:null,format:P.format,contentType:P.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const O=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:Nv(a,S,C,o,P),shouldGoToNextSection:O}};return f(w,(T,P)=>{if(P.contentType==="digit"||P.contentType==="digit-with-letter")return g(T,P);if(P.type==="month"){Fv(a,"digit","month","MM");const x=g(T,{type:P.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(as(x))return x;const S=fm(a,x.sectionValue,"MM",P.format);return Z({},x,{sectionValue:S})}if(P.type==="weekDay"){const x=g(T,P);if(as(x))return x;const S=pc(a,P.format)[Number(x.sectionValue)-1];return Z({},x,{sectionValue:S})}return{saveQuery:!1}},T=>hm(T,o))};return{applyCharacterEditing:Te(w=>{const g=e[w.sectionIndex],T=hm(w.keyPressed,o)?y(Z({},w,{keyPressed:hh(w.keyPressed,o)})):p(w);if(T==null){r(null);return}t({activeSection:g,newSectionValue:T.sectionValue,shouldGoToNextSection:T.shouldGoToNextSection})}),resetCharacterQuery:u}},ZL=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:b,setSelectedSections:w,parsedSelectedSections:g,state:v,clearActiveSection:T,clearValue:P,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:O,sectionsValueBoundaries:A}=e,F=k.useRef(null),z=at(o,F),R=er(),$=Nt(),K=pr(),[X,q]=k.useState(!1),Y=k.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(g==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),X&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains(Nn(document)))return;const Q=new window.Range;let fe;g==="all"?fe=F.current.getRoot():v.sections[g].type==="empty"?fe=F.current.getSectionContainer(g):fe=F.current.getSectionContent(g),Q.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Q)},getActiveSectionIndexFromDOM:()=>{const re=Nn(document);return!re||!F.current||!F.current.getRoot().contains(re)?null:F.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!F.current)return;const Q=eu(re,v.sections);q(!0),F.current.getSectionContent(Q).focus()},setSelectedSections:re=>{if(!F.current)return;const Q=eu(re,v.sections);q((Q==="all"?0:Q)!==null),w(re)},isFieldFocused:()=>{const re=Nn(document);return!!F.current&&F.current.getRoot().contains(re)}}),[g,w,v.sections,X]),H=Te(re=>{if(!F.current)return;const Q=v.sections[re];F.current.getSectionContent(re).innerHTML=Q.value||Q.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Q)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Q),g==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){w(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}w(me-1)}):X?F.current.getRoot().contains(re.target)||w(C.startIndex):(q(!0),w(C.startIndex)))}),N=Te(re=>{if(l?.(re),!F.current||g!=="all")return;const fe=re.target.textContent??"";F.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?(b(),P(),w("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),M=Te(re=>{if(d?.(re),n||g!=="all"){re.preventDefault();return}const Q=re.clipboardData.getData("text");re.preventDefault(),b(),S(Q)}),V=Te((...re)=>{if(a?.(...re),X||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement(Nn(document))!=null||w(C.startIndex)}),B=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Q=Nn(document);!F.current.getRoot().contains(Q)&&(q(!1),w(null))})}),ne=Te(re=>Q=>{Q.isDefaultPrevented()||w(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{w(re)}),j=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?(b(),x({activeSection:Q,newSectionValue:fe,shouldGoToNextSection:!0})):!me&&!Ce&&(b(),S(fe))}),J=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),ee=Te(re=>{if(!F.current)return;const Q=re.target,fe=Q.textContent??"",me=F.current.getSectionIndexFromDOMElement(Q),Ce=v.sections[me];if(n||!F.current){H(me);return}if(fe.length===0){if(Ce.value===""){H(me);return}const ve=re.nativeEvent.inputType;if(ve==="insertParagraph"||ve==="insertLineBreak"){H(me);return}b(),T();return}y({keyPressed:fe,sectionIndex:me}),H(me)});nn(()=>{if(!(!X||!F.current)){if(g==="all")F.current.getRoot().focus();else if(typeof g=="number"){const re=F.current.getSectionContent(g);re&&re.focus()}}},[g,X]);const te=k.useMemo(()=>v.sections.reduce((re,Q)=>(re[Q.type]=A[Q.type]({currentDate:null,contentType:Q.contentType,format:Q.format}),re),{}),[A,v.sections]),ce=g==="all",ie=k.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":OF(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?DF(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(k.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:ee,onPaste:j,onFocus:se(Q),onDragOver:J,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,j,J,ee,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{S(re.target.value)}),W=k.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(v.sections),[O,v.sections,p]);return k.useEffect(()=>{if(F.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
363
|
+
`));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??X,sectionListRef:z,onBlur:B,onClick:ae,onFocus:V,onInput:N,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:ie,tabIndex:g===0?-1:0,contentEditable:ce,value:W,onChange:he,areAllSectionsEmpty:O}}},ps=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),QL=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=fh(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=ps(u).length,p=u.length,y=ps(d),b=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,w=b+y.length;i.push(Z({},l,{start:o,end:o+f,startInInput:b,endInInput:w})),o+=f,r+=p}return i},JL=e=>{const t=ao(),n=k.useRef(),o=k.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:b,state:w,fieldValueManager:g,valueManager:v,applyCharacterEditing:T,resetCharacterQuery:P,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:O,setTempAndroidValueStr:A,setSelectedSections:F,getSectionsFromValue:z,areAllSectionsEmpty:R,localizedDigits:$}=e,K=k.useRef(null),X=at(d,K),q=k.useMemo(()=>QL(w.sections,$,t),[w.sections,$,t]),Y=k.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==Nn(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===Nn(document)&&K.current.setSelectionRange(ce,ie),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===Nn(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(),F(ee)},setSelectedSections:ee=>F(ee),isFieldFocused:()=>K.current===Nn(document)}),[K,y,q,F]),H=()=>{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;F(ce)},ae=Te((...ee)=>{r?.(...ee);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||b==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):H())})}),N=Te((ee,...te)=>{ee.isDefaultPrevented()||(i?.(ee,...te),H())}),M=Te(ee=>{if(a?.(ee),ee.preventDefault(),f||p)return;const te=ee.clipboardData.getData("text");if(typeof y=="number"){const ce=w.sections[y],ie=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&ie||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&W){P(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(ie||he)return}P(),S(te)}),V=Te((...ee)=>{l?.(...ee),F(null)}),B=Te(ee=>{if(f)return;const te=ee.target.value;if(te===""){P(),O();return}const ce=ee.nativeEvent.data,ie=ce&&ce.length>1,he=ie?ce:te,W=ps(he);if(b==null||ie){S(ie?ce:W);return}let re;if(y==="all"&&W.length===1)re=W;else{const Q=ps(g.getV6InputValueFromSections(q,$,t));let fe=-1,me=-1;for(let $e=0;$e<Q.length;$e+=1)fe===-1&&Q[$e]!==W[$e]&&(fe=$e),me===-1&&Q[Q.length-$e-1]!==W[W.length-$e-1]&&(me=$e);const Ce=q[b];if(fe<Ce.start||Q.length-me-1>Ce.end)return;const xe=W.length-Q.length+Ce.end-ps(Ce.endSeparator||"").length;re=W.slice(Ce.start+ps(Ce.startSeparator||"").length,xe)}if(re.length===0){EF()&&A(he),P(),C();return}T({keyPressed:re,sectionIndex:b})}),ne=k.useMemo(()=>u!==void 0?u:g.getV6InputValueFromSections(z(v.emptyValue),$,t),[u,g,z,v.emptyValue,$,t]),oe=k.useMemo(()=>w.tempValueStrAndroid??g.getV6InputValueFromSections(w.sections,$,t),[w.sections,g,w.tempValueStrAndroid,$,t]);k.useEffect(()=>(K.current&&K.current===Nn(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=k.useMemo(()=>b==null||w.sections[b].contentType==="letter"?"text":"numeric",[b,w.sections]),J=!(K.current&&K.current===Nn(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:V,onClick:N,onFocus:ae,onPaste:M,inputRef:X,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:J?"":oe,onChange:B}}},e$=e=>{const t=Nt(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:b,validator:w}=e,g=ao(),v=GL(e),{state:T,activeSectionIndex:P,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:O,updateSectionValue:A,setTempAndroidValueStr:F,sectionsValueBoundaries:z,localizedDigits:R,timezone:$}=v,K=XL({sections:T.sections,updateSectionValue:A,sectionsValueBoundaries:z,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:X}=K,q=b.areValuesEqual(t,T.value,b.emptyValue),Y=i?ZL:JL,H=k.useMemo(()=>PF(T.sections,g&&!i),[T.sections,g,i]),{returnedValue:ae,interactions:N}=Y(Z({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:H})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(H.startIndex);else if(x==="all")S(H.endIndex);else{const J=H.neighbors[x].rightIndex;J!==null&&S(J)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(H.endIndex);else if(x==="all")S(H.startIndex);else{const J=H.neighbors[x].leftIndex;J!==null&&S(J)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():O(),X();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||P==null)break;const J=T.sections[P],ee=y.getActiveDateManager(t,T,J),te=SF(t,$,J,j.key,z,R,ee.date,{minutesStep:r});A({activeSection:J,newSectionValue:te,shouldGoToNextSection:!1});break}}});nn(()=>{N.syncSelectionToDOM()});const{hasValidationError:V}=Hv({props:n,validator:w,timezone:$,value:T.value,onError:n.onError}),B=k.useMemo(()=>u!==void 0?u:V,[V,u]);k.useEffect(()=>{!B&&P==null&&X()},[T.referenceValue,P,B]),k.useEffect(()=>{T.tempValueStrAndroid!=null&&P!=null&&(X(),O())},[T.sections]),k.useImperativeHandle(o,()=>({getSections:()=>T.sections,getActiveSectionIndex:N.getActiveSectionIndexFromDOM,setSelectedSections:N.setSelectedSections,focusField:N.focusField,isFieldFocused:N.isFieldFocused}));const ne=Te((j,...J)=>{j.preventDefault(),p?.(j,...J),C(),N.isFieldFocused()?S(H.startIndex):N.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:B,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Z({},e.forwardedProps,oe,se,ae)},t$=["clearable","onClear","InputProps","sx","slots","slotProps"],n$=["ownerState"],o$=e=>{const t=er(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=We(e,t$),u=a?.clearButton??Fs,f=dt({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=We(f,n$),y=a?.clearIcon??BL,b=dt({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Z({},d,{InputProps:Z({},r,{endAdornment:D.jsxs(k.Fragment,{children:[n&&D.jsx(Mu,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:D.jsx(u,Z({},p,{onClick:o,children:D.jsx(y,Z({fontSize:"small"},b))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},r$=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],s$=(e,t)=>k.useMemo(()=>{const n=Z({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return r$.forEach(r),Bv.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),i$=e=>{const t=Nt(),n=ga();return Z({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Xn(t,e.minDate,n.minDate),maxDate:Xn(t,e.maxDate,n.maxDate)})},a$=e=>{const t=i$(e),{forwardedProps:n,internalProps:o}=s$(t,"date");return e$({forwardedProps:n,internalProps:o,valueManager:ko,fieldValueManager:IF,validator:ya,valueType:"date"})};function l$(e){return Oe("MuiPickersTextField",e)}De("MuiPickersTextField",["root","focused","disabled","error","required"]);function c$(e){return Oe("MuiPickersInputBase",e)}const Cs=De("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function d$(e){return Oe("MuiPickersSectionList",e)}const ui=De("MuiPickersSectionList",["root","section","sectionContent"]),u$=["slots","slotProps","elements","sectionListRef"],Zv=le("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Qv=le("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Jv=le("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),eb=le("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),h$=e=>{const{classes:t}=e;return Me({root:["root"],section:["section"],sectionContent:["sectionContent"]},d$,t)};function tb(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??Qv,a=dt({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??eb,d=dt({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??Jv,f=dt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=dt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return D.jsxs(i,Z({},a,{children:[D.jsx(u,Z({},f)),D.jsx(l,Z({},d)),D.jsx(u,Z({},p))]}))}process.env.NODE_ENV!=="production"&&(tb.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 nb=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=We(o,u$),u=h$(o),f=k.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};k.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(g){return y("getSectionContainer").querySelector(`.${ui.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return y("getSectionContent").querySelector(`.${ui.section}[data-sectionindex="${g}"] .${ui.sectionContent}`)},getSectionIndexFromDOMElement(g){const v=y("getSectionIndexFromDOMElement");if(g==null||!v.contains(g))return null;let T=null;return g.classList.contains(ui.section)?T=g:g.classList.contains(ui.sectionContent)&&(T=g.parentElement),T==null?null:Number(T.dataset.sectionindex)}}));const b=r?.root??Zv,w=dt({elementType:b,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return D.jsx(b,Z({},w,{children:w.contentEditable?a.map(({content:g,before:v,after:T})=>`${v.children}${g.children}${T.children}`).join(""):D.jsx(k.Fragment,{children:a.map((g,v)=>D.jsx(tb,{slots:r,slotProps:i,element:g,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(nb.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 f$=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],p$=e=>Math.round(e*1e5)/1e5,bc=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:`${p$(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),vh=le(Zv,{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}}]})),m$=le(Qv,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),g$=le(eb,{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"})),y$=le(Jv,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),v$=le("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Z({},Ax)),b$=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${be(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Me(p,c$,r)},wc=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:b,contentEditable:w,tabIndex:g,onInput:v,onPaste:T,onKeyDown:P,name:x,readOnly:S,inputProps:C,inputRef:O,sectionListRef:A}=o,F=We(o,f$),z=k.useRef(null),R=at(n,z),$=at(C?.ref,O),K=ao(),X=On();if(!X)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=V=>{if(X.disabled){V.stopPropagation();return}X.onFocus?.(V)};k.useEffect(()=>{X&&X.setAdornedStart(!!f)},[X,f]),k.useEffect(()=>{X&&(i?X.onEmpty():X.onFilled())},[X,i]);const Y=Z({},o,X,{isRtl:K}),H=b$(Y),ae=y?.root||bc,N=dt({elementType:ae,externalSlotProps:b?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":X.error,ref:R},className:H.root,ownerState:Y}),M=y?.input||vh;return D.jsxs(ae,Z({},N,{children:[f,D.jsx(nb,{sectionListRef:A,elements:r,contentEditable:w,tabIndex:g,className:H.sectionsContainer,onFocus:q,onBlur:X.onBlur,onInput:v,onPaste:T,onKeyDown:P,slots:{root:M,section:m$,sectionContent:g$,sectionSeparator:y$},slotProps:{root:{ownerState:Y},sectionContent:{className:Cs.sectionContent},sectionSeparator:({position:V})=>({className:V==="before"?Cs.sectionBefore:Cs.sectionAfter})}}),u,p?p(Z({},X)):null,D.jsx(v$,Z({name:x,className:H.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:X.required,disabled:X.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&(wc.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:Bt,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 w$(e){return Oe("MuiPickersOutlinedInput",e)}const no=Z({},Cs,De("MuiPickersOutlinedInput",["root","notchedOutline","input"])),C$=["children","className","label","notched","shrink"],S$=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}}),_m=le("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),_$=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 x$(e){const{className:t,label:n}=e,o=We(e,C$),r=n!=null&&n!=="",i=Z({},e,{withLabel:r});return D.jsx(S$,Z({"aria-hidden":!0,className:t},o,{ownerState:i,children:D.jsx(_$,{ownerState:i,children:r?D.jsx(_m,{children:n}):D.jsx(_m,{className:"notranslate",children:""})})}))}const R$=["label","autoFocus","ownerState","notched"],T$=le(bc,{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 .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${no.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${no.focused} .${no.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${no.disabled}`]:{[`& .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${no.error} .${no.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:{[`&.${no.focused}:not(.${no.error}) .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),k$=le(vh,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),E$=e=>{const{classes:t}=e,o=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},w$,t);return Z({},t,o)},bh=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=We(o,R$),d=On(),u=Z({},o,i,d,{color:d?.color||"primary"}),f=E$(u);return D.jsx(wc,Z({slots:{root:T$,input:k$},renderSuffix:p=>D.jsx(x$,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?D.jsxs(k.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(bh.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:Bt,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});bh.muiName="Input";function P$(e){return Oe("MuiPickersFilledInput",e)}const xr=Z({},Cs,De("MuiPickersFilledInput",["root","underline","input"])),D$=["label","autoFocus","disableUnderline","ownerState"],O$=le(bc,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qa(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}},[`&.${xr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${xr.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"},[`&.${xr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xr.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(.${xr.disabled}, .${xr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),M$=le(vh,{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}}]}),I$=e=>{const{classes:t,disableUnderline:n}=e,r=Me({root:["root",!n&&"underline"],input:["input"]},P$,t);return Z({},t,r)},wh=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=We(o,D$),d=On(),u=Z({},o,a,d,{color:d?.color||"primary"}),f=I$(u);return D.jsx(wc,Z({slots:{root:O$,input:M$},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(wh.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:Bt,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});wh.muiName="Input";function N$(e){return Oe("MuiPickersFilledInput",e)}const hi=Z({},Cs,De("MuiPickersInput",["root","input"])),A$=["label","autoFocus","disableUnderline","ownerState"],F$=le(bc,{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"},[`&.${hi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hi.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(.${hi.disabled}, .${hi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${hi.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),L$=e=>{const{classes:t,disableUnderline:n}=e,r=Me({root:["root",!n&&"underline"],input:["input"]},N$,t);return Z({},t,r)},Ch=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=We(o,A$),d=On(),u=Z({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=L$(u);return D.jsx(wc,Z({slots:{root:F$}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Ch.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:Bt,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});Ch.muiName="Input";const $$=["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"],V$={standard:Ch,filled:wh,outlined:bh},j$=le(la,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),B$=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Me({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},l$,o)},ob=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:b,inputRef:w,sectionListRef:g,elements:v,areAllSectionsEmpty:T,onClick:P,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:O,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,focused:$,value:K,onChange:X,fullWidth:q,id:Y,name:H,helperText:ae,FormHelperTextProps:N,label:M,InputLabelProps:V}=o,B=We(o,$$),ne=k.useRef(null),oe=at(n,ne),se=pr(Y),j=ae&&se?`${se}-helper-text`:void 0,J=M&&se?`${se}-label`:void 0,ee=Z({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=B$(ee),ce=V$[f];return D.jsxs(j$,Z({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:ee},B,{children:[D.jsx(ca,Z({htmlFor:se,id:J},V,{children:M})),D.jsx(ce,Z({elements:v,areAllSectionsEmpty:T,onClick:P,onKeyDown:x,onKeyUp:S,onInput:O,onPaste:C,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,value:K,onChange:X,id:se,fullWidth:q,inputProps:b,inputRef:w,sectionListRef:g,label:M,name:H,role:"group","aria-labelledby":J},y)),ae&&D.jsx(Ou,Z({id:j},N,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(ob.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:Bt,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 W$=["enableAccessibleFieldDOMStructure"],H$=["InputProps","readOnly"],z$=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Y$=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=We(e,W$);if(t){const{InputProps:p,readOnly:y}=n,b=We(n,H$);return Z({},b,{InputProps:Z({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=We(n,z$);return Z({},f,{InputProps:Z({},l??{},{readOnly:a}),inputProps:Z({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},U$=["slots","slotProps","InputProps","inputProps"],Sh=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=We(o,U$),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?ob:Ds),p=dt({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Z({},l,p.inputProps),p.InputProps=Z({},a,p.InputProps);const y=a$(p),b=Y$(y),w=o$(Z({},b,{slots:r,slotProps:i}));return D.jsx(f,Z({},w))});process.env.NODE_ENV!=="production"&&(Sh.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:Bt,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 rb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=Wr();return k.useCallback(u=>ya({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},q$=(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")}},G$=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Nt(),b=k.useRef(q$(!!u,i,y)).current,w=k.useMemo(()=>ko.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:vo.day}),[n,p]),[g,v]=k.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:w,currentMonth:y.startOfMonth(w),slideDirection:"left"});k.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(w)})},[w,y]);const T=k.useCallback(O=>{v(Z({type:"changeMonth"},O)),d&&d(O.newMonth)},[d]),P=k.useCallback(O=>{const A=O;y.isSameMonth(A,g.currentMonth)||T({newMonth:y.startOfMonth(A),direction:y.isAfterDay(A,g.currentMonth)?"left":"right"})},[g.currentMonth,T,y]),x=rb({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=k.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((O,A)=>{x(O)||v({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:A})});return{referenceDate:w,calendarState:g,changeMonth:P,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:T}},K$=e=>Oe("MuiPickersFadeTransitionGroup",e);De("MuiPickersFadeTransitionGroup",["root"]);const X$=e=>{const{classes:t}=e;return Me({root:["root"]},K$,t)},Z$=le(ra,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function sb(e){const t=Mt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=X$(t),l=Ns();return r?n:D.jsx(Z$,{className:Se(a.root,o),children:D.jsx(Vr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function Q$(e){return Oe("MuiPickersDay",e)}const Rr=De("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),J$=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],eV=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Me({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Q$,d)},ib=({theme:e})=>Z({},e.typography.caption,{width:Ki,height:Ki,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})`:ot(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ot(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Rr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Rr.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}},[`&.${Rr.disabled}:not(.${Rr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Rr.disabled}&.${Rr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${yc}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Rr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ab=(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]},tV=le(dr,{name:"MuiPickersDay",slot:"Root",overridesResolver:ab})(ib),nV=le("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ab})(({theme:e})=>Z({},ib({theme:e}),{opacity:0,pointerEvents:"none"})),fi=()=>{},lb=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:b=fi,onBlur:w=fi,onKeyDown:g=fi,onMouseDown:v=fi,onMouseEnter:T=fi,outsideCurrentMonth:P,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:O=!1}=o,A=We(o,J$),F=Z({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:O}),z=eV(F),R=Nt(),$=k.useRef(null),K=at($,n);nn(()=>{r&&!l&&!f&&!P&&$.current.focus()},[r,l,f,P]);const X=Y=>{v(Y),P&&Y.preventDefault()},q=Y=>{l||y(a),P&&Y.currentTarget.focus(),p&&p(Y)};return P&&!S?D.jsx(nV,{className:Se(z.root,z.hiddenDaySpacingFiller,i),ownerState:F,role:A.role}):D.jsx(tV,Z({className:Se(z.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>g(Y,a),onFocus:Y=>b(Y,a),onBlur:Y=>w(Y,a),onMouseEnter:Y=>T(Y,a),onClick:q,onMouseDown:X},A,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(lb.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 oV=k.memo(lb),rV=e=>Oe("MuiPickersSlideTransition",e),Wn=De("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),sV=["children","className","reduceAnimations","slideDirection","transKey","classes"],iV=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Me(o,rV,t)},aV=le(ra,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Wn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Wn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Wn.slideEnterActive}`]:t.slideEnterActive},{[`.${Wn.slideExit}`]:t.slideExit},{[`.${Wn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Wn["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},[`& .${Wn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Wn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Wn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Wn.slideExit}`]:{transform:"translate(0%)"},[`& .${Wn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Wn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function lV(e){const t=Mt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=We(t,sV),l=iV(t),d=Ns();if(r)return D.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return D.jsx(aV,{className:Se(l.root,o),childFactory:f=>k.cloneElement(f,{classNames:u}),role:"presentation",children:D.jsx(bu,Z({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const cV=e=>Oe("MuiDayCalendar",e);De("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const dV=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],uV=["ownerState"],hV=e=>{const{classes:t}=e;return Me({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},cV,t)},cb=(Ki+yc*2)*6,fV=le("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pV=le("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),mV=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})),gV=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})),yV=le(Tn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Z({},e.typography.caption,{width:Ki,height:Ki,padding:0,margin:`0 ${yc}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),vV=le("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:cb}),bV=le(lV,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:cb}),wV=le("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),CV=le("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${yc}px 0`,display:"flex",justifyContent:"center"});function SV(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=We(e,dV);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:b,slotProps:w,timezone:g}=t,v=Nt(),T=gc(g),P=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,T),C=b?.day??oV,O=dt({elementType:C,externalSlotProps:w?.day,additionalProps:Z({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Z({},t,{day:n,selected:x})}),A=We(O,uV),F=k.useMemo(()=>u||i(n),[u,i,n]),z=k.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=k.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]),$=k.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 D.jsx(C,Z({},A,{day:n,disabled:F,autoFocus:l&&P,today:S,outsideCurrentMonth:z,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:P?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function _V(e){const t=Mt({props:e,name:"MuiDayCalendar"}),n=Nt(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:b=()=>D.jsx("span",{children:"..."}),slideDirection:w,TransitionProps:g,disablePast:v,disableFuture:T,minDate:P,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,dayOfWeekFormatter:A=me=>n.format(me,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:z,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:X,timezone:q}=t,Y=gc(q),H=hV(t),ae=ao(),N=rb({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,minDate:P,maxDate:x,disablePast:v,disableFuture:T,timezone:q}),M=er(),[V,B]=xo({name:"DayCalendar",state:"hasFocus",controlled:F,default:X??!1}),[ne,oe]=k.useState(()=>l||Y),se=Te(me=>{p||u(me)}),j=me=>{N(me)||(o(me),oe(me),z?.(!0),B(!0))},J=Te((me,Ce)=>{switch(me.key){case"ArrowUp":j(n.addDays(Ce,-7)),me.preventDefault();break;case"ArrowDown":j(n.addDays(Ce,7)),me.preventDefault();break;case"ArrowLeft":{const ve=n.addDays(Ce,ae?1:-1),xe=n.addMonths(Ce,ae?1:-1),$e=ki({utils:n,date:ve,minDate:ae?ve:n.startOfMonth(xe),maxDate:ae?n.endOfMonth(xe):ve,isDateDisabled:N,timezone:q});j($e||ve),me.preventDefault();break}case"ArrowRight":{const ve=n.addDays(Ce,ae?-1:1),xe=n.addMonths(Ce,ae?-1:1),$e=ki({utils:n,date:ve,minDate:ae?n.startOfMonth(xe):ve,maxDate:ae?ve:n.endOfMonth(xe),isDateDisabled:N,timezone:q});j($e||ve),me.preventDefault();break}case"Home":j(n.startOfWeek(Ce)),me.preventDefault();break;case"End":j(n.endOfWeek(Ce)),me.preventDefault();break;case"PageUp":j(n.addMonths(Ce,1)),me.preventDefault();break;case"PageDown":j(n.addMonths(Ce,-1)),me.preventDefault();break}}),ee=Te((me,Ce)=>j(Ce)),te=Te((me,Ce)=>{V&&n.isSameDay(ne,Ce)&&z?.(!1)}),ce=n.getMonth(i),ie=n.getYear(i),he=k.useMemo(()=>a.filter(me=>!!me).map(me=>n.startOfDay(me)),[n,a]),W=`${ie}-${ce}`,re=k.useMemo(()=>k.createRef(),[W]),Q=k.useMemo(()=>{const me=n.startOfMonth(i),Ce=n.endOfMonth(i);return N(ne)||n.isAfterDay(ne,Ce)||n.isBeforeDay(ne,me)?ki({utils:n,date:ne,minDate:me,maxDate:Ce,disablePast:v,disableFuture:T,isDateDisabled:N,timezone:q}):ne},[i,T,v,ne,N,n,q]),fe=k.useMemo(()=>{const me=n.getWeekArray(i);let Ce=n.addMonths(i,1);for(;K&&me.length<K;){const ve=n.getWeekArray(Ce),xe=n.isSameDay(me[me.length-1][0],ve[0][0]);ve.slice(xe?1:0).forEach($e=>{me.length<K&&me.push($e)}),Ce=n.addMonths(Ce,1)}return me},[i,K,n]);return D.jsxs(fV,{role:"grid","aria-labelledby":R,className:H.root,children:[D.jsxs(pV,{role:"row",className:H.header,children:[$&&D.jsx(gV,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),fF(n,Y).map((me,Ce)=>D.jsx(mV,{variant:"caption",role:"columnheader","aria-label":n.format(me,"weekday"),className:H.weekDayLabel,children:A(me)},Ce.toString()))]}),d?D.jsx(vV,{className:H.loadingContainer,children:b()}):D.jsx(bV,Z({transKey:W,onExited:f,reduceAnimations:y,slideDirection:w,className:Se(r,H.slideTransition)},g,{nodeRef:re,children:D.jsx(wV,{ref:re,role:"rowgroup",className:H.monthContainer,children:fe.map((me,Ce)=>D.jsxs(CV,{role:"row",className:H.weekContainer,"aria-rowindex":Ce+1,children:[$&&D.jsx(yV,{className:H.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(me[0])),children:M.calendarWeekNumberText(n.getWeekNumber(me[0]))}),me.map((ve,xe)=>D.jsx(SV,{parentProps:t,day:ve,selectedDays:he,focusableDay:Q,onKeyDown:J,onFocus:ee,onBlur:te,onDaySelect:se,isDateDisabled:N,currentMonthNumber:ce,isViewFocused:V,"aria-colindex":xe+1},ve.toString()))]},`week-${me[0]}`))})}))]})}function xV(e){return Oe("MuiPickersMonth",e)}const Ua=De("MuiPickersMonth",["root","monthButton","disabled","selected"]),RV=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],TV=e=>{const{disabled:t,selected:n,classes:o}=e;return Me({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},xV,o)},kV=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%"}}]}),EV=le("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ua.disabled}`]:t.disabled},{[`&.${Ua.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})`:ot(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ua.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ua.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),PV=k.memo(function(t){const n=Mt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:b,"aria-current":w,"aria-label":g,slots:v,slotProps:T}=n,P=We(n,RV),x=k.useRef(null),S=TV(n);nn(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??EV,O=dt({elementType:C,externalSlotProps:T?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":w,"aria-checked":l,"aria-label":g,onClick:A=>f(A,d),onKeyDown:A=>p(A,d),onFocus:A=>y(A,d),onBlur:A=>b(A,d)},ownerState:n,className:S.monthButton});return D.jsx(kV,Z({className:Se(S.root,r),ownerState:n},P,{children:D.jsx(C,Z({},O))}))});function DV(e){return Oe("MuiMonthCalendar",e)}De("MuiMonthCalendar",["root"]);const OV=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],MV=e=>{const{classes:t}=e;return Me({root:["root"]},DV,t)};function IV(e,t){const n=Nt(),o=ga(),r=Mt({props:e,name:t});return Z({disableFuture:!1,disablePast:!1},r,{minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate)})}const NV=le("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:vc,boxSizing:"border-box"}),db=k.forwardRef(function(t,n){const o=IV(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:b,shouldDisableMonth:w,readOnly:g,autoFocus:v=!1,onMonthFocus:T,hasFocus:P,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:O,slots:A,slotProps:F}=o,z=We(o,OV),{value:R,handleValueChange:$,timezone:K}=mh({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:b,valueManager:ko}),X=gc(K),q=ao(),Y=Nt(),H=k.useMemo(()=>ko.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:vo.month}),[]),ae=o,N=MV(ae),M=k.useMemo(()=>Y.getMonth(X),[Y,X]),V=k.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[B,ne]=k.useState(()=>V||Y.getMonth(H)),[oe,se]=xo({name:"MonthCalendar",state:"hasFocus",controlled:P,default:v??!1}),j=Te(W=>{se(W),x&&x(W)}),J=k.useCallback(W=>{const re=Y.startOfMonth(f&&Y.isAfter(X,y)?X:y),Q=Y.startOfMonth(u&&Y.isBefore(X,p)?X:p),fe=Y.startOfMonth(W);return Y.isBefore(fe,re)||Y.isAfter(fe,Q)?!0:w?w(fe):!1},[u,f,p,y,X,w,Y]),ee=Te((W,re)=>{if(g)return;const Q=Y.setMonth(R??H,re);$(Q)}),te=Te(W=>{J(Y.setMonth(R??H,W))||(ne(W),j(!0),T&&T(W))});k.useEffect(()=>{ne(W=>V!==null&&W!==V?V:W)},[V]);const ce=Te((W,re)=>{switch(W.key){case"ArrowUp":te((12+re-3)%12),W.preventDefault();break;case"ArrowDown":te((12+re+3)%12),W.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),W.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),W.preventDefault();break}}),ie=Te((W,re)=>{te(re)}),he=Te((W,re)=>{B===re&&j(!1)});return D.jsx(NV,Z({ref:n,className:Se(N.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":O},z,{children:ch(Y,R??H).map(W=>{const re=Y.getMonth(W),Q=Y.format(W,"monthShort"),fe=Y.format(W,"month"),me=re===V,Ce=d||J(W);return D.jsx(PV,{selected:me,value:re,onClick:ee,onKeyDown:ce,autoFocus:oe&&re===B,disabled:Ce,tabIndex:re===B&&!Ce?0:-1,onFocus:ie,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:A,slotProps:F,children:Q},Q)})}))});process.env.NODE_ENV!=="production"&&(db.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 AV(e){return Oe("MuiPickersYear",e)}const qa=De("MuiPickersYear",["root","yearButton","selected","disabled"]),FV=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],LV=e=>{const{disabled:t,selected:n,classes:o}=e;return Me({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},AV,o)},$V=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%"}}]}),VV=le("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${qa.disabled}`]:t.disabled},{[`&.${qa.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})`:ot(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${qa.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${qa.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),jV=k.memo(function(t){const n=Mt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:b,"aria-current":w,slots:g,slotProps:v}=n,T=We(n,FV),P=k.useRef(null),x=LV(n);nn(()=>{o&&P.current?.focus()},[o]);const S=g?.yearButton??VV,C=dt({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:P,type:"button",role:"radio","aria-current":w,"aria-checked":l,onClick:O=>f(O,d),onKeyDown:O=>p(O,d),onFocus:O=>y(O,d),onBlur:O=>b(O,d)},ownerState:n,className:x.yearButton});return D.jsx($V,Z({className:Se(x.root,r),ownerState:n},T,{children:D.jsx(S,Z({},C))}))});function BV(e){return Oe("MuiYearCalendar",e)}De("MuiYearCalendar",["root"]);const WV=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],HV=e=>{const{classes:t}=e;return Me({root:["root"]},BV,t)};function zV(e,t){const n=Nt(),o=ga(),r=Mt({props:e,name:t});return Z({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate)})}const YV=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:vc,maxHeight:_L,boxSizing:"border-box",position:"relative"}),ub=k.forwardRef(function(t,n){const o=zV(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:b,onChange:w,readOnly:g,shouldDisableYear:v,onYearFocus:T,hasFocus:P,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:O,gridLabelId:A,slots:F,slotProps:z}=o,R=We(o,WV),{value:$,handleValueChange:K,timezone:X}=mh({name:"YearCalendar",timezone:O,value:a,defaultValue:l,onChange:w,valueManager:ko}),q=gc(X),Y=ao(),H=Nt(),ae=k.useMemo(()=>ko.getInitialReferenceValue({value:$,utils:H,props:o,timezone:X,referenceDate:d,granularity:vo.year}),[]),N=o,M=HV(N),V=k.useMemo(()=>H.getYear(q),[H,q]),B=k.useMemo(()=>$!=null?H.getYear($):null,[$,H]),[ne,oe]=k.useState(()=>B||H.getYear(ae)),[se,j]=xo({name:"YearCalendar",state:"hasFocus",controlled:P,default:r??!1}),J=Te(ve=>{j(ve),x&&x(ve)}),ee=k.useCallback(ve=>{if(p&&H.isBeforeYear(ve,q)||f&&H.isAfterYear(ve,q)||b&&H.isBeforeYear(ve,b)||y&&H.isAfterYear(ve,y))return!0;if(!v)return!1;const xe=H.startOfYear(ve);return v(xe)},[f,p,y,b,q,v,H]),te=Te((ve,xe)=>{if(g)return;const $e=H.setYear($??ae,xe);K($e)}),ce=Te(ve=>{ee(H.setYear($??ae,ve))||(oe(ve),J(!0),T?.(ve))});k.useEffect(()=>{oe(ve=>B!==null&&ve!==B?B:ve)},[B]);const ie=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,W=Te((ve,xe)=>{switch(ve.key){case"ArrowUp":ce(xe-ie),ve.preventDefault();break;case"ArrowDown":ce(xe+ie),ve.preventDefault();break;case"ArrowLeft":ce(xe-he),ve.preventDefault();break;case"ArrowRight":ce(xe+he),ve.preventDefault();break}}),re=Te((ve,xe)=>{ce(xe)}),Q=Te((ve,xe)=>{ne===xe&&J(!1)}),fe=k.useRef(null),me=at(n,fe);k.useEffect(()=>{if(r||fe.current===null)return;const ve=fe.current.querySelector('[tabindex="0"]');if(!ve)return;const xe=ve.offsetHeight,$e=ve.offsetTop,Ae=fe.current.clientHeight,st=fe.current.scrollTop,Pe=$e+xe;xe>Ae||$e<st||(fe.current.scrollTop=Pe-Ae/2-xe/2)},[r]);const Ce=H.getYearRange([b,y]);return S==="desc"&&Ce.reverse(),D.jsx(YV,Z({ref:me,className:Se(M.root,i),ownerState:N,role:"radiogroup","aria-labelledby":A},R,{children:Ce.map(ve=>{const xe=H.getYear(ve),$e=xe===B,Ae=u||ee(ve);return D.jsx(jV,{selected:$e,value:xe,onClick:te,onKeyDown:W,autoFocus:se&&xe===ne,disabled:Ae,tabIndex:xe===ne&&!Ae?0:-1,onFocus:re,onBlur:Q,"aria-current":V===xe?"date":void 0,yearsPerRow:C,slots:F,slotProps:z,children:H.format(ve,"year")},H.format(ve,"year"))})}))});process.env.NODE_ENV!=="production"&&(ub.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 UV=e=>Oe("MuiPickersCalendarHeader",e),qV=De("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function GV(e){return Oe("MuiPickersArrowSwitcher",e)}De("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const KV=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],XV=["ownerState"],ZV=["ownerState"],QV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),JV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),xm=le(Fs,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),ej=e=>{const{classes:t}=e;return Me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},GV,t)},tj=k.forwardRef(function(t,n){const o=ao(),r=Mt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:b,isPreviousHidden:w,onGoToPrevious:g,previousLabel:v,labelId:T}=r,P=We(r,KV),x=r,S=ej(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},O={isDisabled:b,isHidden:w,goTo:g,label:v},A=l?.previousIconButton??xm,F=dt({elementType:A,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Z({},x,{hidden:O.isHidden}),className:Se(S.button,S.previousIconButton)}),z=l?.nextIconButton??xm,R=dt({elementType:z,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Z({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??$L,K=dt({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),X=We(K,XV),q=l?.rightArrowIcon??VL,Y=dt({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),H=We(Y,ZV);return D.jsxs(QV,Z({ref:n,className:Se(S.root,a),ownerState:x},P,{children:[D.jsx(A,Z({},F,{children:o?D.jsx(q,Z({},H)):D.jsx($,Z({},X))})),i?D.jsx(Tn,{variant:"subtitle1",component:"span",id:T,children:i}):D.jsx(JV,{className:S.spacer,ownerState:x}),D.jsx(z,Z({},R,{children:o?D.jsx($,Z({},X)):D.jsx(q,Z({},H))}))]}))});function nj(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Nt();return k.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 oj(e,{disablePast:t,minDate:n,timezone:o}){const r=Nt();return k.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 rj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],sj=["ownerState"],ij=e=>{const{classes:t}=e;return Me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},UV,t)},aj=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}),lj=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})),cj=le("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),dj=le(Fs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${qV.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),uj=le(LL,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),hb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=Mt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:b,onMonthChange:w,onViewChange:g,view:v,reduceAnimations:T,views:P,labelId:x,className:S,timezone:C,format:O=`${r.formats.month} ${r.formats.year}`}=i,A=We(i,rj),F=i,z=ij(i),R=a?.switchViewButton??dj,$=dt({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:z.switchViewButton}),K=a?.switchViewIcon??uj,X=dt({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:z.switchViewIcon}),q=We(X,sj),Y=()=>w(r.addMonths(d,1),"left"),H=()=>w(r.addMonths(d,-1),"right"),ae=nj(d,{disableFuture:f,maxDate:y,timezone:C}),N=oj(d,{disablePast:p,minDate:b,timezone:C}),M=()=>{if(!(P.length===1||!g||u))if(P.length===2)g(P.find(B=>B!==v)||P[0]);else{const B=P.indexOf(v)!==0?0:1;g(P[B])}};if(P.length===1&&P[0]==="year")return null;const V=r.formatByString(d,O);return D.jsxs(aj,Z({},A,{ownerState:F,className:Se(z.root,S),ref:n,children:[D.jsxs(lj,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:z.labelContainer,children:[D.jsx(sb,{reduceAnimations:T,transKey:V,children:D.jsx(cj,{id:x,ownerState:F,className:z.label,children:V})}),P.length>1&&!u&&D.jsx(R,Z({},$,{children:D.jsx(K,Z({},q))}))]}),D.jsx(Vr,{in:v==="day",children:D.jsx(tj,{slots:a,slotProps:l,onGoToPrevious:H,isPreviousDisabled:N,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(hb.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 hj=le("div")({overflow:"hidden",width:vc,maxHeight:gh,display:"flex",flexDirection:"column",margin:"0 auto"}),fj=e=>Oe("MuiDateCalendar",e);De("MuiDateCalendar",["root","viewTransitionContainer"]);const pj=["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"],mj=e=>{const{classes:t}=e;return Me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},fj,t)};function gj(e,t){const n=Nt(),o=ga(),r=zv(),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??(()=>D.jsx("span",{children:"..."})),minDate:Xn(n,i.minDate,o.minDate),maxDate:Xn(n,i.maxDate,o.maxDate)})}const yj=le(hj,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:gh}),vj=le(sb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),fb=k.forwardRef(function(t,n){const o=Nt(),r=pr(),i=gj(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:b,onYearChange:w,onMonthChange:g,reduceAnimations:v,shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:x,view:S,views:C,openTo:O,className:A,disabled:F,readOnly:z,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:X,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,slots:N,slotProps:M,loading:V,renderLoading:B,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:J}=i,ee=We(i,pj),{value:te,handleValueChange:ce,timezone:ie}=mh({name:"DateCalendar",timezone:J,value:d,defaultValue:u,onChange:b,valueManager:ko}),{view:he,setView:W,focusedView:re,setFocusedView:Q,goToNextView:fe,setValueAndGoToNextView:me}=Yv({view:S,views:C,openTo:O,onChange:ce,onViewChange:l,autoFocus:a,focusedView:X,onFocusedViewChange:q}),{referenceDate:Ce,calendarState:ve,changeFocusedDay:xe,changeMonth:$e,handleChangeMonth:Ae,isDateDisabled:st,onMonthSwitchingAnimationEnd:Pe}=G$({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:g,minDate:R,maxDate:$,shouldDisableDate:T,disablePast:y,disableFuture:p,timezone:ie}),ft=F&&te||R,Kt=F&&te||$,it=`${r}-grid-label`,Yt=re!==null,Xt=N?.calendarHeader??hb,on=dt({elementType:Xt,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ve.currentMonth,onViewChange:W,onMonthChange:(pt,Qt)=>Ae({newMonth:pt,direction:Qt}),minDate:ft,maxDate:Kt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:ie,labelId:it},ownerState:i}),Ue=Te(pt=>{const Qt=o.startOfMonth(pt),vn=o.endOfMonth(pt),Jt=st(pt)?ki({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:st,timezone:ie}):pt;Jt?(me(Jt,"finish"),g?.(Qt)):(fe(),$e(Qt)),xe(Jt,!0)}),tt=Te(pt=>{const Qt=o.startOfYear(pt),vn=o.endOfYear(pt),Jt=st(pt)?ki({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:st,timezone:ie}):pt;Jt?(me(Jt,"finish"),w?.(Jt)):(fe(),$e(Qt)),xe(Jt,!0)}),Mn=Te(pt=>ce(pt&&Tl(o,pt,te??Ce),"finish",he));k.useEffect(()=>{te!=null&&o.isValid(te)&&$e(te)},[te]);const hn=i,Ie=mj(hn),He={disablePast:y,disableFuture:p,maxDate:$,minDate:R},vt={disableHighlightToday:K,readOnly:z,disabled:F,timezone:ie,gridLabelId:it,slots:N,slotProps:M},ln=k.useRef(he);k.useEffect(()=>{ln.current!==he&&(re===ln.current&&Q(he,!0),ln.current=he)},[re,Q,he]);const uo=k.useMemo(()=>[te],[te]);return D.jsxs(yj,Z({ref:n,className:Se(Ie.root,A),ownerState:hn},ee,{children:[D.jsx(Xt,Z({},on,{slots:N,slotProps:M})),D.jsx(vj,{reduceAnimations:v,className:Ie.viewTransitionContainer,transKey:he,ownerState:hn,children:D.jsxs("div",{children:[he==="year"&&D.jsx(ub,Z({},He,vt,{value:te,onChange:tt,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("year",pt),yearsOrder:oe,yearsPerRow:se,referenceDate:Ce})),he==="month"&&D.jsx(db,Z({},He,vt,{hasFocus:Yt,className:A,value:te,onChange:Ue,shouldDisableMonth:P,onFocusedViewChange:pt=>Q("month",pt),monthsPerRow:j,referenceDate:Ce})),he==="day"&&D.jsx(_V,Z({},ve,He,vt,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:xe,reduceAnimations:v,selectedDays:uo,onSelectedDaysChange:Mn,shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("day",pt),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:V,renderLoading:B}))]})})]}))});process.env.NODE_ENV!=="production"&&(fb.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 Ss=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:b,maxDate:w,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:T,reduceAnimations:P,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:V,timezone:B})=>D.jsx(fb,{view:e,onViewChange:t,views:n.filter(cm),focusedView:o&&cm(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:b,maxDate:w,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:T,reduceAnimations:P,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:V,timezone:B}),pb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=jv(t,"MuiDesktopDatePicker"),a=Z({day:Ss,month:Ss,year:Ss},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:dh(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Z({openPickerIcon:jL,field:Sh},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Yl(i.slotProps?.field,u),Wv(i),{ref:n}),toolbar:Z({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=FL({props:l,valueManager:ko,valueType:"date",getOpenDialogAriaText:Lv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:ya});return d()});pb.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:Bt,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 bj=le(Qg)({[`& .${xi.container}`]:{outline:0},[`& .${xi.paper}`]:{outline:0,minWidth:vc}}),wj=le(ey)({"&:first-of-type":{padding:0}});function Cj(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??bj,l=r?.mobileTransition??Vr;return D.jsx(a,Z({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:D.jsx(wj,{children:t})}))}const Sj=["props","getOpenDialogAriaText"],_j=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,Sj);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:b,name:w,label:g,inputRef:v,readOnly:T,disabled:P,localeText:x}=t,S=k.useRef(null),C=pr(),O=i?.toolbar?.hidden??!1,{open:A,actions:F,layoutProps:z,renderCurrentView:R,fieldProps:$,contextValue:K}=Uv(Z({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),X=r.field,q=dt({elementType:X,externalSlotProps:i?.field,additionalProps:Z({},$,O&&{id:C},!(P||T)&&{onClick:F.onOpen,onKeyDown:JF(F.onOpen)},{readOnly:T??!0,disabled:P,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:b,label:g,name:w},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Z({},q.inputProps,{"aria-label":n($.value)});const Y=Z({textField:r.textField},q.slots),H=r.layout??yh;let ae=C;O&&(g?ae=`${C}-label`:ae=void 0);const N=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:C}),mobilePaper:Z({"aria-labelledby":ae},i?.mobilePaper)}),M=at(S,q.unstableFieldRef);return{renderPicker:()=>D.jsxs(Xv,{contextValue:K,localeText:x,children:[D.jsx(X,Z({},q,{slots:Y,slotProps:N,unstableFieldRef:M})),D.jsx(Cj,Z({},F,{open:A,slots:r,slotProps:N,children:D.jsx(H,Z({},z,N?.layout,{slots:r,slotProps:N,children:R()}))}))]})}},mb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=jv(t,"MuiMobileDatePicker"),a=Z({day:Ss,month:Ss,year:Ss},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:dh(r,i,!1),slots:Z({field:Sh},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Yl(i.slotProps?.field,u),Wv(i),{ref:n}),toolbar:Z({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=_j({props:l,valueManager:ko,valueType:"date",getOpenDialogAriaText:Lv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:ya});return d()});mb.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:Bt,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 xj=["desktopModeMediaQuery"],El=k.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=eL}=o,i=We(o,xj);return ag(r,{defaultMatches:!0})?D.jsx(pb,Z({ref:n},i)):D.jsx(mb,Z({ref:n},i))});process.env.NODE_ENV!=="production"&&(El.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:Bt,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 tu=le(Ls)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),Rj=({setValue:e,value:t})=>{function n(r){const i=r?.format(Lr.db)||"",a={...t,1:i===Xd?Os[1]:i};e(a),Zo(a)}function o(r){const i=r?.format(Lr.db)||"",a={...t,2:i===Xd?Os[2]:i};e(a),Zo(a)}return D.jsxs(mc,{dateAdapter:Dv,children:[D.jsx(tu,{children:D.jsx(El,{label:oo.from,onChange:n,...Jd(t[1])})}),D.jsx(tu,{children:D.jsx(El,{label:oo.to,onChange:o,...Jd(t[2])})})]})},_d=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Lr.db)||"",a={...n,1:i===Xd?Os[1]:i};t(a),Zo(a)}return D.jsx(mc,{dateAdapter:Dv,children:D.jsx(tu,{children:D.jsx(El,{label:e,onChange:o,...Jd(n[1])})})})},Rm={label:"",options:[]};function Tj(){const{columnId:e,table:t}=wn,n=t?.grid;if(!n)return Rm;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return Rm;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function kj(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const Ej=le(Pu)({padding:0}),Tm={Checkbox:Ej},Pj=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=Tj(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),Zo(d)};return D.jsxs(la,{size:"small",children:[D.jsx(ca,{id:"column-filter-multiple-select-label",children:o}),D.jsxs(da,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:D.jsx(Ps,{label:o}),renderValue:a=>a.join(", "),children:[D.jsxs(vl,{value:"All",children:[D.jsx(Tm.Checkbox,{checked:n.indexOf("All")>-1}),D.jsx(Vd,{primary:"All"})]},0),r.sort(kj).map(a=>D.jsxs(vl,{value:a,children:[D.jsx(Tm.Checkbox,{checked:n.indexOf(a)>-1}),D.jsx(Vd,{primary:a})]},a))]})]})},Dj=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),Zo(i)}function o(r){const i={...t,2:r.target.value};e(i),Zo(i)}return D.jsxs(Be.Fragment,{children:[D.jsx(Ds,{label:oo.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),D.jsx(Ds,{label:oo.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},xd=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),Zo(i)}return D.jsx(Ds,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},Ga=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),Zo(r)}return D.jsx(Ds,{label:oo.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},Oj=({filterId:e,setValue:t,value:n})=>D.jsxs(Be.Fragment,{children:[e===Ve.Boolean&&D.jsx(iF,{setValue:t,value:n}),e===Ve.TextEqual&&D.jsx(Ga,{setValue:t,value:n}),e===Ve.TextNotEqual&&D.jsx(Ga,{setValue:t,value:n}),e===Ve.TextContain&&D.jsx(Ga,{setValue:t,value:n}),e===Ve.TextNotContain&&D.jsx(Ga,{setValue:t,value:n}),e===Ve.MultipleSelect&&D.jsx(Pj,{setValue:t,value:n}),e===Ve.NumberEqual&&D.jsx(xd,{label:oo.filter,setValue:t,value:n}),e===Ve.NumberFrom&&D.jsx(xd,{label:oo.from,setValue:t,value:n}),e===Ve.NumberTo&&D.jsx(xd,{label:oo.to,setValue:t,value:n}),e===Ve.NumberBetween&&D.jsx(Dj,{setValue:t,value:n}),e===Ve.DateEqual&&D.jsx(_d,{label:oo.filter,setValue:t,value:n}),e===Ve.DateFrom&&D.jsx(_d,{label:oo.from,setValue:t,value:n}),e===Ve.DateTo&&D.jsx(_d,{label:oo.to,setValue:t,value:n}),e===Ve.DateBetween&&D.jsx(Rj,{setValue:t,value:n})]}),Mj=le(vl)({fontSize:"12px"}),km={MenuItem:Mj},Ij=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:l="12.8em",height:d,disabled:u=!1})=>D.jsxs(la,{variant:"outlined",size:"small",children:[D.jsx(ca,{id:"reportType",children:e}),D.jsxs(da,{labelId:"reportType",id:e,label:e,autoWidth:!0,value:`${r??(o||0)}`,defaultValue:`${o||0}`,onChange:n,disabled:u,"data-testid":a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0},sx:{height:d,width:l},children:[i&&D.jsx(km.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>D.jsx(km.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),Nj={id:Ve.DateBetween,name:"Between"},Aj={id:Ve.DateEqual,name:"Equal"},Fj={id:Ve.DateFrom,name:"From"},Lj={id:Ve.DateTo,name:"To"},$j={id:Ve.NumberBetween,name:"Between"},Vj={id:Ve.NumberEqual,name:"Equal"},jj={id:Ve.NumberFrom,name:"From"},Bj={id:Ve.NumberTo,name:"To"},Wj={id:Ve.TextContain,name:"Contains"},Hj={id:Ve.TextEqual,name:"Equal"},zj={id:Ve.TextNotContain,name:"Does not contain"},Yj={id:Ve.TextNotEqual,name:"Not equal"},Em=[Vj,jj,Bj,$j],Uj={[sn.Boolean]:[],[sn.Date]:[Aj,Fj,Lj,Nj],[sn.MultipleSelect]:[],[sn.Number]:Em,[sn.NumberFormatted]:Em,[sn.Text]:[Wj,zj,Hj,Yj]},qj=({filterId:e,setFilterId:t})=>{const n=Uj[wn.group],o=n.some(({id:i})=>i===e)?e:n[0]?.id;function r(i){const{columnId:a,table:l}=wn;if(!a||!l)return;const d=l.filter.args,u=i.target.value;d.columnFilters&&(l.filter.args={...d,columnFilters:{...d.columnFilters,[a]:{...d.columnFilters[a],filterId:u}}},t(u))}return o?D.jsx(Ij,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},Gj=le(Ls)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),Kj={Wrapper:Gj},Xj=()=>{const[e,t]=Be.useState(Os),[n,o]=Be.useState(Ve.TextContain),[r,i]=Be.useState(!1);return eF(i),JA(r,o,t),r?D.jsxs(Be.Fragment,{children:[D.jsx(gy,{setIsOpened:i}),D.jsx(yy,{id:Pv,children:D.jsxs(Kj.Wrapper,{children:[D.jsx(qj,{filterId:n,setFilterId:o}),D.jsx(Oj,{filterId:n,setValue:t,value:e}),D.jsx(oF,{setIsOpened:i,setValue:t,value:e})]})})]}):null},gb="context_menu";function Zj(e){Be.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(gb);if(!n)return;const{x:o,y:r}=Cn;my(n,o,r)},0)}return Cn.subscribe(t),()=>{Cn.unsubscribe(t)}},[])}const Qj=le("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),Jj=le("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),eB=le("span")({backgroundColor:"#1E456F"}),un={Ul:Qj,Li:Jj,Icon:eB},tB=({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 D.jsxs(un.Li,{onClick:o,children:[D.jsx(un.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},nB=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-link"}),"Group"]})};function oB(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const rB=({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,ur.highlightAllColumns(o,t.id),e(!1)}return oB(t)?D.jsxs(Be.Fragment,{children:[D.jsx(yl,{}),D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},sB=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},iB=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},aB=({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 D.jsxs(un.Li,{onClick:t,children:[D.jsx(un.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},lB=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?D.jsxs(un.Li,{onClick:n,children:[D.jsx(un.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},cB=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=Cn.table;r?.printer.print(r,e,t),n(!1)}return D.jsxs(un.Li,{onClick:o,children:[D.jsx(un.Icon,{className:"sgi sgi-printer"}),"Print"]})},dB=({clientId:e,clientName:t})=>{const[n,o]=Be.useState(!1);return Zj(o),n?D.jsxs(Be.Fragment,{children:[D.jsx(gy,{setIsOpened:o}),D.jsx(yy,{id:gb,children:D.jsxs(un.Ul,{children:[D.jsx(cB,{clientId:e,clientName:t,setIsOpened:o}),D.jsx(aB,{setIsOpened:o}),D.jsx(tB,{clientId:e,clientName:t,setIsOpened:o}),D.jsx(rB,{setIsOpened:o}),D.jsx(sB,{setIsOpened:o}),D.jsx(nB,{setIsOpened:o}),D.jsx(lB,{setIsOpened:o}),D.jsx(iB,{setIsOpened:o})]})})]}):null};exports.Autocomplete=LA;exports.ColumnFilters=Xj;exports.ColumnSorter=Ev;exports.ContextMenu=dB;exports.DecoratorColumnFilter=fA;exports.DecoratorFilter=hv;exports.DefaultHotKeys=Q1;exports.DefaultPrinter=wv;exports.DeletedRowsFilter=rN;exports.EColumnFiltersGroup=sn;exports.ESortType=jo;exports.Filter=uv;exports.HotKeysDecorator=Lu;exports.PreventCopying=eD;exports.RedoUndoOnly=tD;exports.Skeleton=Y1;exports.SlickTable=bA;exports.SlickgridTable=iA;exports.TotalCalculator=XA;exports.columnCheckboxSelector=aA;exports.columnIsEdited=cA;exports.commitCurrentEdit=Cv;exports.copySelectedRows=Rv;exports.formatterGroupTotals=zA;exports.getDisplayedRows=hc;exports.getNextId=Rl;exports.handleHeaderButtons=fv;exports.headerButtons=ur;exports.openColumnFilter=iN;exports.openContextMenu=Tv;exports.useListenIfTablesWereEdited=EA;
|