slick-table 0.0.35 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("react"),cs=require("react-dom");function vm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const T=vm(ze),SS=vm(cs);function _S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xS(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var ka={exports:{}},Us={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Kh;function RS(){if(Kh)return Us;Kh=1;var e=ze,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,d,u){var f,p={},y=null,w=null;u!==void 0&&(y=""+u),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(w=d.ref);for(f in d)o.call(d,f)&&!i.hasOwnProperty(f)&&(p[f]=d[f]);if(l&&l.defaultProps)for(f in d=l.defaultProps,d)p[f]===void 0&&(p[f]=d[f]);return{$$typeof:t,type:l,key:y,ref:w,props:p,_owner:r.current}}return Us.Fragment=n,Us.jsx=a,Us.jsxs=a,Us}var qs={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,60 +14,60 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var Xh;function ES(){return Xh||(Xh=1,process.env.NODE_ENV!=="production"&&function(){var e=ze,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b=Symbol.iterator,m="@@iterator";function v(U){if(U===null||typeof U!="object")return null;var pe=b&&U[b]||U[m];return typeof pe=="function"?pe:null}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(U){{for(var pe=arguments.length,we=new Array(pe>1?pe-1:0),Ne=1;Ne<pe;Ne++)we[Ne-1]=arguments[Ne];x("error",U,we)}}function x(U,pe,we){{var Ne=k.ReactDebugCurrentFrame,Ye=Ne.getStackAddendum();Ye!==""&&(pe+="%s",we=we.concat([Ye]));var Je=we.map(function(Ze){return String(Ze)});Je.unshift("Warning: "+pe),Function.prototype.apply.call(console[U],console,Je)}}var S=!1,C=!1,M=!1,A=!1,F=!1,z;z=Symbol.for("react.module.reference");function R(U){return!!(typeof U=="string"||typeof U=="function"||U===o||U===i||F||U===r||U===u||U===f||A||U===w||S||C||M||typeof U=="object"&&U!==null&&(U.$$typeof===y||U.$$typeof===p||U.$$typeof===a||U.$$typeof===l||U.$$typeof===d||U.$$typeof===z||U.getModuleId!==void 0))}function $(U,pe,we){var Ne=U.displayName;if(Ne)return Ne;var Ye=pe.displayName||pe.name||"";return Ye!==""?we+"("+Ye+")":we}function K(U){return U.displayName||"Context"}function X(U){if(U==null)return null;if(typeof U.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof U=="function")return U.displayName||U.name||null;if(typeof U=="string")return U;switch(U){case o:return"Fragment";case n:return"Portal";case i:return"Profiler";case r:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof U=="object")switch(U.$$typeof){case l:var pe=U;return K(pe)+".Consumer";case a:var we=U;return K(we._context)+".Provider";case d:return $(U,U.render,"ForwardRef");case p:var Ne=U.displayName||null;return Ne!==null?Ne:X(U.type)||"Memo";case y:{var Ye=U,Je=Ye._payload,Ze=Ye._init;try{return X(Ze(Je))}catch{return null}}}return null}var q=Object.assign,Y=0,H,ae,N,O,V,W,ne;function oe(){}oe.__reactDisabledLog=!0;function se(){{if(Y===0){H=console.log,ae=console.info,N=console.warn,O=console.error,V=console.group,W=console.groupCollapsed,ne=console.groupEnd;var U={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:U,log:U,warn:U,error:U,group:U,groupCollapsed:U,groupEnd:U})}Y++}}function j(){{if(Y--,Y===0){var U={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},U,{value:H}),info:q({},U,{value:ae}),warn:q({},U,{value:N}),error:q({},U,{value:O}),group:q({},U,{value:V}),groupCollapsed:q({},U,{value:W}),groupEnd:q({},U,{value:ne})})}Y<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=k.ReactCurrentDispatcher,ee;function te(U,pe,we){{if(ee===void 0)try{throw Error()}catch(Ye){var Ne=Ye.stack.trim().match(/\n( *(at )?)/);ee=Ne&&Ne[1]||""}return`
|
|
18
|
+
`+ee+U}}var ce=!1,ie;{var he=typeof WeakMap=="function"?WeakMap:Map;ie=new he}function B(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
|
+
`),Ut=Ne.stack.split(`
|
|
20
|
+
`),At=Ge.length-1,Bt=Ut.length-1;At>=1&&Bt>=0&&Ge[At]!==Ut[Bt];)Bt--;for(;At>=1&&Bt>=0;At--,Bt--)if(Ge[At]!==Ut[Bt]){if(At!==1||Bt!==1)do if(At--,Bt--,Bt<0||Ge[At]!==Ut[Bt]){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&&Bt>=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 B(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 B(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=k.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),D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ne||"React class",we,Ze,typeof Ge),xe(null)),Ge instanceof Error&&!(Ge.message in Ce)&&(Ce[Ge.message]=!0,xe(Ye),D("Failed %s type: %s",we,Ge.message),xe(null))}}}var Ae=Array.isArray;function rt(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 st(U){if(ft(U))return D("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=k.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 Me(U,pe){{var we=function(){on||(on=!0,D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};we.isReactWarning=!0,Object.defineProperty(U,"key",{get:we,configurable:!0})}}function Be(U,pe){{var we=function(){Ue||(Ue=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",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&&(st(we),Ge=""+we),Mn(pe)&&(st(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 Bt=typeof U=="function"?U.displayName||U.name||"Unknown":U;Ge&&Me(Ze,Bt),Ut&&Be(Ze,Bt)}return vt(U,Ge,Ut,Ye,Ne,Yt.current,Ze)}}var uo=k.ReactCurrentOwner,pt=k.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 Br(){{if(uo.current){var U=X(uo.current.type);if(U)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+U+"`."}return""}}function Hr(U){return""}var Re={};function yc(U){{var pe=Br();if(!pe){var we=typeof U=="string"?U:U.displayName||U.name;we&&(pe=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+we+">.")}return pe}}function ga(U,pe){{if(!U._store||U._store.validated||U.key!=null)return;U._store.validated=!0;var we=yc(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),D('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(rt(U))for(var we=0;we<U.length;we++){var Ne=U[we];Jt(Ne)&&ga(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)&&ga(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);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ye||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&D("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),D("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),D("Invalid attribute `ref` supplied to `React.Fragment`."),Qt(null))}}var zr={};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=Hr();Ut?Ge+=Ut:Ge+=Br();var At;U===null?At="null":rt(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,D("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 Bt=ln(U,pe,we,Ye,Je);if(Bt==null)return Bt;if(Ze){var en=pe.children;if(en!==void 0)if(Ne)if(rt(en)){for(var jn=0;jn<en.length;jn++)Vn(en[jn],U);Object.freeze&&Object.freeze(en)}else D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Vn(en,U)}if(me.call(pe,"key")){var ho=X(U),fn=Object.keys(pe).filter(function(Vt){return Vt!=="key"}),js=fn.length>0?"{key: someKey, "+fn.join(": ..., ")+": ...}":"{key: someKey}";if(!zr[ho+js]){var bc=fn.length>0?"{"+fn.join(": ..., ")+": ...}":"{}";D(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Zi,nr,io,nr),wi[nr+Zi]=!0}}return E===i?be(at):At(at),at}}function ti(E,U,Z){return Ae(E,U,Z,!0)}function ro(E,U,Z){return Ae(E,U,Z,!1)}var _i=ro,_t=ti;ss.Fragment=i,ss.jsx=_i,ss.jsxs=_t}()),ss}var Il;function wm(){return Il||(Il=1,process.env.NODE_ENV==="production"?Xs.exports=ym():Xs.exports=vm()),Xs.exports}var le=wm();function _m(e,t,r){const{scrollWidth:i}=document.documentElement,{left:s,right:o}=e.getBoundingClientRect(),l=o-s,h=t+o>=i;e.style.left=`${h?t-l:t}px`,e.style.top=`${r}px`,e.style.visibility="visible"}const Kh="portal-container",ms={black:"#000",white:"#fff"},xi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ki={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ti={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Di={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Mi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ns={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},bm={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function qr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}const ua="$$material";function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},gn.apply(null,arguments)}function Cm(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 Sm(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 Rm=function(){function e(r){var i=this;this._insertTag=function(s){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(s,o),i.tags.push(s)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Sm(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Cm(s);try{o.insertRule(i,o.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var s;return(s=i.parentNode)==null?void 0:s.removeChild(i)}),this.tags=[],this.ctr=0},e}(),Et="-ms-",yn="-moz-",Ne="-webkit-",Zh="comm",da="rule",fa="decl",Em="@import",Jh="@keyframes",xm="@layer",km=Math.abs,Tn=String.fromCharCode,Tm=Object.assign;function Dm(e,t){return Ct(e,0)^45?(((t<<2^Ct(e,0))<<2^Ct(e,1))<<2^Ct(e,2))<<2^Ct(e,3):0}function Qh(e){return e.trim()}function Mm(e,t){return(e=t.exec(e))?e[0]:e}function Le(e,t,r){return e.replace(t,r)}function $o(e,t){return e.indexOf(t)}function Ct(e,t){return e.charCodeAt(t)|0}function gs(e,t,r){return e.slice(t,r)}function lr(e){return e.length}function pa(e){return e.length}function Ks(e,t){return t.push(e),e}function Pm(e,t){return e.map(t).join("")}var Dn=1,$i=1,ec=0,Ft=0,mt=0,Vi="";function Mn(e,t,r,i,s,o,l){return{value:e,root:t,parent:r,type:i,props:s,children:o,line:Dn,column:$i,length:l,return:""}}function os(e,t){return Tm(Mn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Om(){return mt}function Am(){return mt=Ft>0?Ct(Vi,--Ft):0,$i--,mt===10&&($i=1,Dn--),mt}function Wt(){return mt=Ft<ec?Ct(Vi,Ft++):0,$i++,mt===10&&($i=1,Dn++),mt}function dr(){return Ct(Vi,Ft)}function an(){return Ft}function xs(e,t){return gs(Vi,e,t)}function ys(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tc(e){return Dn=$i=1,ec=lr(Vi=e),Ft=0,[]}function rc(e){return Vi="",e}function ln(e){return Qh(xs(Ft-1,Bo(e===91?e+2:e===40?e+1:e)))}function Nm(e){for(;(mt=dr())&&mt<33;)Wt();return ys(e)>2||ys(mt)>3?"":" "}function Lm(e,t){for(;--t&&Wt()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return xs(e,an()+(t<6&&dr()==32&&Wt()==32))}function Bo(e){for(;Wt();)switch(mt){case e:return Ft;case 34:case 39:e!==34&&e!==39&&Bo(mt);break;case 40:e===41&&Bo(e);break;case 92:Wt();break}return Ft}function Fm(e,t){for(;Wt()&&e+mt!==57;)if(e+mt===84&&dr()===47)break;return"/*"+xs(t,Ft-1)+"*"+Tn(e===47?e:Wt())}function Im(e){for(;!ys(dr());)Wt();return xs(e,Ft)}function Wm(e){return rc(hn("",null,null,null,[""],e=tc(e),0,[0],e))}function hn(e,t,r,i,s,o,l,h,d){for(var f=0,p=0,m=l,C=0,k=0,R=0,y=1,O=1,F=1,B=0,N="",x=s,v=o,L=i,z=N;O;)switch(R=B,B=Wt()){case 40:if(R!=108&&Ct(z,m-1)==58){$o(z+=Le(ln(B),"&","&\f"),"&\f")!=-1&&(F=-1);break}case 34:case 39:case 91:z+=ln(B);break;case 9:case 10:case 13:case 32:z+=Nm(R);break;case 92:z+=Lm(an()-1,7);continue;case 47:switch(dr()){case 42:case 47:Ks(Hm(Fm(Wt(),an()),t,r),d);break;default:z+="/"}break;case 123*y:h[f++]=lr(z)*F;case 125*y:case 59:case 0:switch(B){case 0:case 125:O=0;case 59+p:F==-1&&(z=Le(z,/\f/g,"")),k>0&&lr(z)-m&&Ks(k>32?Hl(z+";",i,r,m-1):Hl(Le(z," ","")+";",i,r,m-2),d);break;case 59:z+=";";default:if(Ks(L=Wl(z,t,r,f,p,s,h,N,x=[],v=[],m),o),B===123)if(p===0)hn(z,t,L,L,x,o,m,h,v);else switch(C===99&&Ct(z,3)===110?100:C){case 100:case 108:case 109:case 115:hn(e,L,L,i&&Ks(Wl(e,L,L,0,0,s,h,N,s,x=[],m),v),s,v,m,h,i?x:v);break;default:hn(z,L,L,L,[""],v,0,h,v)}}f=p=k=0,y=F=1,N=z="",m=l;break;case 58:m=1+lr(z),k=R;default:if(y<1){if(B==123)--y;else if(B==125&&y++==0&&Am()==125)continue}switch(z+=Tn(B),B*y){case 38:F=p>0?1:(z+="\f",-1);break;case 44:h[f++]=(lr(z)-1)*F,F=1;break;case 64:dr()===45&&(z+=ln(Wt())),C=dr(),p=m=lr(N=z+=Im(an())),B++;break;case 45:R===45&&lr(z)==2&&(y=0)}}return o}function Wl(e,t,r,i,s,o,l,h,d,f,p){for(var m=s-1,C=s===0?o:[""],k=pa(C),R=0,y=0,O=0;R<i;++R)for(var F=0,B=gs(e,m+1,m=km(y=l[R])),N=e;F<k;++F)(N=Qh(y>0?C[F]+" "+B:Le(B,/&\f/g,C[F])))&&(d[O++]=N);return Mn(e,t,r,s===0?da:h,d,f,p)}function Hm(e,t,r){return Mn(e,t,r,Zh,Tn(Om()),gs(e,2,-2),0)}function Hl(e,t,r,i){return Mn(e,t,r,fa,gs(e,0,i),gs(e,i+1,-1),i)}function Fi(e,t){for(var r="",i=pa(e),s=0;s<i;s++)r+=t(e[s],s,e,t)||"";return r}function Ym(e,t,r,i){switch(e.type){case xm:if(e.children.length)break;case Em:case fa:return e.return=e.return||e.value;case Zh:return"";case Jh:return e.return=e.value+"{"+Fi(e.children,i)+"}";case da:e.value=e.props.join(",")}return lr(r=Fi(e.children,i))?e.return=e.value+"{"+r+"}":""}function zm(e){var t=pa(e);return function(r,i,s,o){for(var l="",h=0;h<t;h++)l+=e[h](r,i,s,o)||"";return l}}function $m(e){return function(t){t.root||(t=t.return)&&e(t)}}function ic(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Bm=function(t,r,i){for(var s=0,o=0;s=o,o=dr(),s===38&&o===12&&(r[i]=1),!ys(o);)Wt();return xs(t,Ft)},Vm=function(t,r){var i=-1,s=44;do switch(ys(s)){case 0:s===38&&dr()===12&&(r[i]=1),t[i]+=Bm(Ft-1,r,i);break;case 2:t[i]+=ln(s);break;case 4:if(s===44){t[++i]=dr()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Tn(s)}while(s=Wt());return t},jm=function(t,r){return rc(Vm(tc(t),r))},Yl=new WeakMap,Um=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,s=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Yl.get(i))&&!s){Yl.set(t,!0);for(var o=[],l=jm(r,o),h=i.props,d=0,f=0;d<l.length;d++)for(var p=0;p<h.length;p++,f++)t.props[f]=o[d]?l[d].replace(/&\f/g,h[p]):h[p]+" "+l[d]}}},Gm=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function sc(e,t){switch(Dm(e,t)){case 5103:return Ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+yn+e+Et+e+e;case 6828:case 4268:return Ne+e+Et+e+e;case 6165:return Ne+e+Et+"flex-"+e+e;case 5187:return Ne+e+Le(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+Et+"flex-$1$2")+e;case 5443:return Ne+e+Et+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return Ne+e+Et+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return Ne+e+Et+Le(e,"shrink","negative")+e;case 5292:return Ne+e+Et+Le(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Le(e,"-grow","")+Ne+e+Et+Le(e,"grow","positive")+e;case 4554:return Ne+Le(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+Et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ne+e+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,Ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lr(e)-1-t>6)switch(Ct(e,t+1)){case 109:if(Ct(e,t+4)!==45)break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+yn+(Ct(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$o(e,"stretch")?sc(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ct(e,t+1)!==115)break;case 6444:switch(Ct(e,lr(e)-3-(~$o(e,"!important")&&10))){case 107:return Le(e,":",":"+Ne)+e;case 101:return Le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(Ct(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Et+"$2box$3")+e}break;case 5936:switch(Ct(e,t+11)){case 114:return Ne+e+Et+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Et+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Et+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+Et+e+e}return e}var qm=function(t,r,i,s){if(t.length>-1&&!t.return)switch(t.type){case fa:t.return=sc(t.value,t.length);break;case Jh:return Fi([os(t,{value:Le(t.value,"@","@"+Ne)})],s);case da:if(t.length)return Pm(t.props,function(o){switch(Mm(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fi([os(t,{props:[Le(o,/:(read-\w+)/,":"+yn+"$1")]})],s);case"::placeholder":return Fi([os(t,{props:[Le(o,/:(plac\w+)/,":"+Ne+"input-$1")]}),os(t,{props:[Le(o,/:(plac\w+)/,":"+yn+"$1")]}),os(t,{props:[Le(o,/:(plac\w+)/,Et+"input-$1")]})],s)}return""})}},Xm=[qm],Km=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(y){var O=y.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var s=t.stylisPlugins||Xm,o={},l,h=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var O=y.getAttribute("data-emotion").split(" "),F=1;F<O.length;F++)o[O[F]]=!0;h.push(y)});var d,f=[Um,Gm];{var p,m=[Ym,$m(function(y){p.insert(y)})],C=zm(f.concat(s,m)),k=function(O){return Fi(Wm(O),C)};d=function(O,F,B,N){p=B,k(O?O+"{"+F.styles+"}":F.styles),N&&(R.inserted[F.name]=!0)}}var R={key:r,sheet:new Rm({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:d};return R.sheet.hydrate(h),R},Zs={exports:{}},Ie={};/** @license React v16.13.1
|
|
30
|
+
<%s key={someKey} {...props} />`,js,ho,bc,ho),zr[ho+js]=!0}}return U===o?qe(Bt):Sn(Bt),Bt}}function yr(U,pe,we){return mt(U,pe,we,!0)}function vc(U,pe,we){return mt(U,pe,we,!1)}var Yr=vc,rn=yr;qs.Fragment=o,qs.jsx=Yr,qs.jsxs=rn}()),qs}var Zh;function TS(){return Zh||(Zh=1,process.env.NODE_ENV==="production"?ka.exports=RS():ka.exports=ES()),ka.exports}var P=TS(),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||{}),Nr=(e=>(e.db="YYYY-MM-DD",e.ui="MM/DD/YY",e))(Nr||{}),bm=(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))(bm||{}),sr=(e=>(e[e.DATE=1]="DATE",e[e.NUMBER=2]="NUMBER",e[e.NUMBER_FORMATTED=3]="NUMBER_FORMATTED",e[e.TEXT=4]="TEXT",e))(sr||{});function wm(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 Ud="portal-container",Ri={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"},Gs={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},kS={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 qi="$$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 PS(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 DS(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 OS=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(DS(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=PS(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-",il="-moz-",gt="-webkit-",Cm="comm",qd="rule",Gd="decl",MS="@import",Sm="@keyframes",IS="@layer",NS=Math.abs,El=String.fromCharCode,AS=Object.assign;function FS(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 _m(e){return e.trim()}function LS(e,t){return(e=t.exec(e))?e[0]:e}function yt(e,t,n){return e.replace(t,n)}function vd(e,t){return e.indexOf(t)}function cn(e,t){return e.charCodeAt(t)|0}function Ei(e,t,n){return e.slice(t,n)}function go(e){return e.length}function Kd(e){return e.length}function Pa(e,t){return t.push(e),e}function $S(e,t){return e.map(t).join("")}var Tl=1,_s=1,xm=0,Pn=0,Zt=0,Ms="";function kl(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Tl,column:_s,length:a,return:""}}function Ks(e,t){return AS(kl("",null,null,"",null,null,0),e,{length:-e.length},t)}function VS(){return Zt}function jS(){return Zt=Pn>0?cn(Ms,--Pn):0,_s--,Zt===10&&(_s=1,Tl--),Zt}function Fn(){return Zt=Pn<xm?cn(Ms,Pn++):0,_s++,Zt===10&&(_s=1,Tl++),Zt}function Co(){return cn(Ms,Pn)}function qa(){return Pn}function Gi(e,t){return Ei(Ms,e,t)}function Ti(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 Rm(e){return Tl=_s=1,xm=go(Ms=e),Pn=0,[]}function Em(e){return Ms="",e}function Ga(e){return _m(Gi(Pn-1,bd(e===91?e+2:e===40?e+1:e)))}function WS(e){for(;(Zt=Co())&&Zt<33;)Fn();return Ti(e)>2||Ti(Zt)>3?"":" "}function BS(e,t){for(;--t&&Fn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Gi(e,qa()+(t<6&&Co()==32&&Fn()==32))}function bd(e){for(;Fn();)switch(Zt){case e:return Pn;case 34:case 39:e!==34&&e!==39&&bd(Zt);break;case 40:e===41&&bd(e);break;case 92:Fn();break}return Pn}function HS(e,t){for(;Fn()&&e+Zt!==57;)if(e+Zt===84&&Co()===47)break;return"/*"+Gi(t,Pn-1)+"*"+El(e===47?e:Fn())}function zS(e){for(;!Ti(Co());)Fn();return Gi(e,Pn)}function YS(e){return Em(Ka("",null,null,null,[""],e=Rm(e),0,[0],e))}function Ka(e,t,n,o,r,i,a,l,d){for(var u=0,f=0,p=a,y=0,w=0,b=0,m=1,v=1,k=1,D=0,x="",S=r,C=i,M=o,A=x;v;)switch(b=D,D=Fn()){case 40:if(b!=108&&cn(A,p-1)==58){vd(A+=yt(Ga(D),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:A+=Ga(D);break;case 9:case 10:case 13:case 32:A+=WS(b);break;case 92:A+=BS(qa()-1,7);continue;case 47:switch(Co()){case 42:case 47:Pa(US(HS(Fn(),qa()),t,n),d);break;default:A+="/"}break;case 123*m:l[u++]=go(A)*k;case 125*m:case 59:case 0:switch(D){case 0:case 125:v=0;case 59+f:k==-1&&(A=yt(A,/\f/g,"")),w>0&&go(A)-p&&Pa(w>32?Jh(A+";",o,n,p-1):Jh(yt(A," ","")+";",o,n,p-2),d);break;case 59:A+=";";default:if(Pa(M=Qh(A,t,n,u,f,r,l,x,S=[],C=[],p),i),D===123)if(f===0)Ka(A,t,M,M,S,i,p,l,C);else switch(y===99&&cn(A,3)===110?100:y){case 100:case 108:case 109:case 115:Ka(e,M,M,o&&Pa(Qh(e,M,M,0,0,r,l,x,r,S=[],p),C),r,C,p,l,o?S:C);break;default:Ka(A,M,M,M,[""],C,0,l,C)}}u=f=w=0,m=k=1,x=A="",p=a;break;case 58:p=1+go(A),w=b;default:if(m<1){if(D==123)--m;else if(D==125&&m++==0&&jS()==125)continue}switch(A+=El(D),D*m){case 38:k=f>0?1:(A+="\f",-1);break;case 44:l[u++]=(go(A)-1)*k,k=1;break;case 64:Co()===45&&(A+=Ga(Fn())),y=Co(),f=p=go(x=A+=zS(qa())),D++;break;case 45:b===45&&go(A)==2&&(m=0)}}return i}function Qh(e,t,n,o,r,i,a,l,d,u,f){for(var p=r-1,y=r===0?i:[""],w=Kd(y),b=0,m=0,v=0;b<o;++b)for(var k=0,D=Ei(e,p+1,p=NS(m=a[b])),x=e;k<w;++k)(x=_m(m>0?y[k]+" "+D:yt(D,/&\f/g,y[k])))&&(d[v++]=x);return kl(e,t,n,r===0?qd:l,d,u,f)}function US(e,t,n){return kl(e,t,n,Cm,El(VS()),Ei(e,2,-2),0)}function Jh(e,t,n,o){return kl(e,t,n,Gd,Ei(e,0,o),Ei(e,o+1,-1),o)}function ms(e,t){for(var n="",o=Kd(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function qS(e,t,n,o){switch(e.type){case IS:if(e.children.length)break;case MS:case Gd:return e.return=e.return||e.value;case Cm:return"";case Sm:return e.return=e.value+"{"+ms(e.children,o)+"}";case qd:e.value=e.props.join(",")}return go(n=ms(e.children,o))?e.return=e.value+"{"+n+"}":""}function GS(e){var t=Kd(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 KS(e){return function(t){t.root||(t=t.return)&&e(t)}}function Tm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var XS=function(t,n,o){for(var r=0,i=0;r=i,i=Co(),r===38&&i===12&&(n[o]=1),!Ti(i);)Fn();return Gi(t,Pn)},ZS=function(t,n){var o=-1,r=44;do switch(Ti(r)){case 0:r===38&&Co()===12&&(n[o]=1),t[o]+=XS(Pn-1,n,o);break;case 2:t[o]+=Ga(r);break;case 4:if(r===44){t[++o]=Co()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=El(r)}while(r=Fn());return t},QS=function(t,n){return Em(ZS(Rm(t),n))},ef=new WeakMap,JS=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&&!ef.get(o))&&!r){ef.set(t,!0);for(var i=[],a=QS(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]}}},e0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function km(e,t){switch(FS(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+il+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"+il+(cn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vd(e,"stretch")?km(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-(~vd(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 t0=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case Gd:t.return=km(t.value,t.length);break;case Sm:return ms([Ks(t,{value:yt(t.value,"@","@"+gt)})],r);case qd:if(t.length)return $S(t.props,function(i){switch(LS(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ms([Ks(t,{props:[yt(i,/:(read-\w+)/,":"+il+"$1")]})],r);case"::placeholder":return ms([Ks(t,{props:[yt(i,/:(plac\w+)/,":"+gt+"input-$1")]}),Ks(t,{props:[yt(i,/:(plac\w+)/,":"+il+"$1")]}),Ks(t,{props:[yt(i,/:(plac\w+)/,pn+"input-$1")]})],r)}return""})}},n0=[t0],o0=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var r=t.stylisPlugins||n0,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),k=1;k<v.length;k++)i[v[k]]=!0;l.push(m)});var d,u=[JS,e0];{var f,p=[qS,KS(function(m){f.insert(m)})],y=GS(u.concat(r,p)),w=function(v){return ms(YS(v),y)};d=function(v,k,D,x){f=D,w(v?v+"{"+k.styles+"}":k.styles),x&&(b.inserted[k.name]=!0)}}var b={key:n,sheet:new OS({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:d};return b.sheet.hydrate(l),b},Da={exports:{}},bt={};/** @license React v16.13.1
|
|
31
31
|
* react-is.production.min.js
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var
|
|
37
|
+
*/var tf;function r0(){if(tf)return bt;tf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function x(C){if(typeof C=="object"&&C!==null){var M=C.$$typeof;switch(M){case t:switch(C=C.type,C){case d:case u:case o:case i:case r:case p:return C;default:switch(C=C&&C.$$typeof,C){case l:case f:case b:case w:case a:return C;default:return M}}case n:return M}}}function S(C){return x(C)===u}return bt.AsyncMode=d,bt.ConcurrentMode=u,bt.ContextConsumer=l,bt.ContextProvider=a,bt.Element=t,bt.ForwardRef=f,bt.Fragment=o,bt.Lazy=b,bt.Memo=w,bt.Portal=n,bt.Profiler=i,bt.StrictMode=r,bt.Suspense=p,bt.isAsyncMode=function(C){return S(C)||x(C)===d},bt.isConcurrentMode=S,bt.isContextConsumer=function(C){return x(C)===l},bt.isContextProvider=function(C){return x(C)===a},bt.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},bt.isForwardRef=function(C){return x(C)===f},bt.isFragment=function(C){return x(C)===o},bt.isLazy=function(C){return x(C)===b},bt.isMemo=function(C){return x(C)===w},bt.isPortal=function(C){return x(C)===n},bt.isProfiler=function(C){return x(C)===i},bt.isStrictMode=function(C){return x(C)===r},bt.isSuspense=function(C){return x(C)===p},bt.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===u||C===i||C===r||C===p||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===w||C.$$typeof===a||C.$$typeof===l||C.$$typeof===f||C.$$typeof===v||C.$$typeof===k||C.$$typeof===D||C.$$typeof===m)},bt.typeOf=x,bt}var wt={};/** @license React v16.13.1
|
|
38
38
|
* react-is.development.js
|
|
39
39
|
*
|
|
40
40
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var $l;function Jm(){return $l||($l=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,F=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function N(I){return typeof I=="string"||typeof I=="function"||I===i||I===f||I===o||I===s||I===m||I===C||typeof I=="object"&&I!==null&&(I.$$typeof===R||I.$$typeof===k||I.$$typeof===l||I.$$typeof===h||I.$$typeof===p||I.$$typeof===O||I.$$typeof===F||I.$$typeof===B||I.$$typeof===y)}function x(I){if(typeof I=="object"&&I!==null){var Ue=I.$$typeof;switch(Ue){case t:var ot=I.type;switch(ot){case d:case f:case i:case o:case s:case m:return ot;default:var Xe=ot&&ot.$$typeof;switch(Xe){case h:case p:case R:case k:case l:return Xe;default:return Ue}}case r:return Ue}}}var v=d,L=f,z=h,q=l,te=t,w=p,G=i,ce=R,oe=k,ve=r,Fe=o,me=s,De=m,T=!1;function S(I){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(I)||x(I)===d}function P(I){return x(I)===f}function A(I){return x(I)===h}function $(I){return x(I)===l}function j(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function V(I){return x(I)===p}function Y(I){return x(I)===i}function Q(I){return x(I)===R}function J(I){return x(I)===k}function he(I){return x(I)===r}function ue(I){return x(I)===o}function ie(I){return x(I)===s}function ze(I){return x(I)===m}We.AsyncMode=v,We.ConcurrentMode=L,We.ContextConsumer=z,We.ContextProvider=q,We.Element=te,We.ForwardRef=w,We.Fragment=G,We.Lazy=ce,We.Memo=oe,We.Portal=ve,We.Profiler=Fe,We.StrictMode=me,We.Suspense=De,We.isAsyncMode=S,We.isConcurrentMode=P,We.isContextConsumer=A,We.isContextProvider=$,We.isElement=j,We.isForwardRef=V,We.isFragment=Y,We.isLazy=Q,We.isMemo=J,We.isPortal=he,We.isProfiler=ue,We.isStrictMode=ie,We.isSuspense=ze,We.isValidElementType=N,We.typeOf=x}()),We}var Bl;function Qm(){return Bl||(Bl=1,process.env.NODE_ENV==="production"?Zs.exports=Zm():Zs.exports=Jm()),Zs.exports}var So,Vl;function eg(){if(Vl)return So;Vl=1;var e=Qm(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=i,o[e.Memo]=s;function l(R){return e.isMemo(R)?s:o[R.$$typeof]||t}var h=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,C=Object.prototype;function k(R,y,O){if(typeof y!="string"){if(C){var F=m(y);F&&F!==C&&k(R,F,O)}var B=d(y);f&&(B=B.concat(f(y)));for(var N=l(R),x=l(y),v=0;v<B.length;++v){var L=B[v];if(!r[L]&&!(O&&O[L])&&!(x&&x[L])&&!(N&&N[L])){var z=p(y,L);try{h(R,L,z)}catch{}}}}return R}return So=k,So}eg();var tg=!0;function nc(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var ma=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||tg===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},oc=function(t,r,i){ma(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+s:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function rg(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ig={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sg=/[A-Z]|^ms/g,ng=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ac=function(t){return t.charCodeAt(1)===45},jl=function(t){return t!=null&&typeof t!="boolean"},Ro=ic(function(e){return ac(e)?e:e.replace(sg,"-$&").toLowerCase()}),Ul=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ng,function(i,s,o){return hr={name:s,styles:o,next:hr},s})}return ig[t]!==1&&!ac(t)&&typeof r=="number"&&r!==0?r+"px":r};function vs(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return hr={name:s.name,styles:s.styles,next:hr},s.name;var o=r;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)hr={name:l.name,styles:l.styles,next:hr},l=l.next;var h=o.styles+";";return h}return og(e,t,r)}case"function":{if(e!==void 0){var d=hr,f=r(e);return hr=d,vs(e,t,f)}break}}var p=r;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function og(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=vs(e,t,r[s])+";";else for(var o in r){var l=r[o];if(typeof l!="object"){var h=l;t!=null&&t[h]!==void 0?i+=o+"{"+t[h]+"}":jl(h)&&(i+=Ro(o)+":"+Ul(o,h)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)jl(l[d])&&(i+=Ro(o)+":"+Ul(o,l[d])+";");else{var f=vs(e,t,l);switch(o){case"animation":case"animationName":{i+=Ro(o)+":"+f+";";break}default:i+=o+"{"+f+"}"}}}return i}var Gl=/label:\s*([^\s;{]+)\s*(;|$)/g,hr;function Pn(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";hr=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,s+=vs(r,t,o);else{var l=o;s+=l[0]}for(var h=1;h<e.length;h++)if(s+=vs(r,t,e[h]),i){var d=o;s+=d[h]}Gl.lastIndex=0;for(var f="",p;(p=Gl.exec(s))!==null;)f+="-"+p[1];var m=rg(s)+f;return{name:m,styles:s,next:hr}}var ag=function(t){return t()},lg=ae.useInsertionEffect?ae.useInsertionEffect:!1,lc=lg||ag,hc=ae.createContext(typeof HTMLElement<"u"?Km({key:"css"}):null);hc.Provider;var cc=function(t){return nt.forwardRef(function(r,i){var s=nt.useContext(hc);return t(r,s,i)})},ga=ae.createContext({}),ya={}.hasOwnProperty,Vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hg=function(t,r){var i={};for(var s in r)ya.call(r,s)&&(i[s]=r[s]);return i[Vo]=t,i},cg=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return ma(r,i,s),lc(function(){return oc(r,i,s)}),null},ug=cc(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var s=e[Vo],o=[i],l="";typeof e.className=="string"?l=nc(t.registered,o,e.className):e.className!=null&&(l=e.className+" ");var h=Pn(o,void 0,ae.useContext(ga));l+=t.key+"-"+h.name;var d={};for(var f in e)ya.call(e,f)&&f!=="css"&&f!==Vo&&(d[f]=e[f]);return d.className=l,r&&(d.ref=r),ae.createElement(ae.Fragment,null,ae.createElement(cg,{cache:t,serialized:h,isStringTag:typeof s=="string"}),ae.createElement(s,d))}),dg=ug,ql=function(t,r){var i=arguments;if(r==null||!ya.call(r,"css"))return ae.createElement.apply(void 0,i);var s=i.length,o=new Array(s);o[0]=dg,o[1]=hg(t,r);for(var l=2;l<s;l++)o[l]=i[l];return ae.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ql||(ql={}));function fg(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Pn(t)}function On(){var e=fg.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var pg=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,mg=ic(function(e){return pg.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),gg=mg,yg=function(t){return t!=="theme"},Xl=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?gg:yg},Kl=function(t,r,i){var s;if(r){var o=r.shouldForwardProp;s=t.__emotion_forwardProp&&o?function(l){return t.__emotion_forwardProp(l)&&o(l)}:o}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},vg=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return ma(r,i,s),lc(function(){return oc(r,i,s)}),null},wg=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,o,l;r!==void 0&&(o=r.label,l=r.target);var h=Kl(t,r,i),d=h||Xl(s),f=!d("as");return function(){var p=arguments,m=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var C=p[0];m.push(C[0]);for(var k=p.length,R=1;R<k;R++)m.push(p[R],C[R])}var y=cc(function(O,F,B){var N=f&&O.as||s,x="",v=[],L=O;if(O.theme==null){L={};for(var z in O)L[z]=O[z];L.theme=ae.useContext(ga)}typeof O.className=="string"?x=nc(F.registered,v,O.className):O.className!=null&&(x=O.className+" ");var q=Pn(m.concat(v),F.registered,L);x+=F.key+"-"+q.name,l!==void 0&&(x+=" "+l);var te=f&&h===void 0?Xl(N):d,w={};for(var G in O)f&&G==="as"||te(G)&&(w[G]=O[G]);return w.className=x,B&&(w.ref=B),ae.createElement(ae.Fragment,null,ae.createElement(vg,{cache:F,serialized:q,isStringTag:typeof N=="string"}),ae.createElement(N,w))});return y.displayName=o!==void 0?o:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=s,y.__emotion_styles=m,y.__emotion_forwardProp=h,Object.defineProperty(y,"toString",{value:function(){return"."+l}}),y.withComponent=function(O,F){var B=e(O,gn({},r,F,{shouldForwardProp:Kl(y,F,!0)}));return B.apply(void 0,m)},y}},_g=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],jo=wg.bind(null);_g.forEach(function(e){jo[e]=jo(e)});var Js={exports:{}},Qs={exports:{}},He={};/** @license React v16.13.1
|
|
44
|
+
*/var nf;function s0(){return nf||(nf=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function x(B){return typeof B=="string"||typeof B=="function"||B===o||B===u||B===i||B===r||B===p||B===y||typeof B=="object"&&B!==null&&(B.$$typeof===b||B.$$typeof===w||B.$$typeof===a||B.$$typeof===l||B.$$typeof===f||B.$$typeof===v||B.$$typeof===k||B.$$typeof===D||B.$$typeof===m)}function S(B){if(typeof B=="object"&&B!==null){var re=B.$$typeof;switch(re){case t:var Q=B.type;switch(Q){case d:case u:case o:case i:case r:case p:return Q;default:var fe=Q&&Q.$$typeof;switch(fe){case l:case f:case b:case w:case a:return fe;default:return re}}case n:return re}}}var C=d,M=u,A=l,F=a,z=t,R=f,$=o,K=b,X=w,q=n,Y=i,H=r,ae=p,N=!1;function O(B){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(B)||S(B)===d}function V(B){return S(B)===u}function W(B){return S(B)===l}function ne(B){return S(B)===a}function oe(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function se(B){return S(B)===f}function j(B){return S(B)===o}function J(B){return S(B)===b}function ee(B){return S(B)===w}function te(B){return S(B)===n}function ce(B){return S(B)===i}function ie(B){return S(B)===r}function he(B){return S(B)===p}wt.AsyncMode=C,wt.ConcurrentMode=M,wt.ContextConsumer=A,wt.ContextProvider=F,wt.Element=z,wt.ForwardRef=R,wt.Fragment=$,wt.Lazy=K,wt.Memo=X,wt.Portal=q,wt.Profiler=Y,wt.StrictMode=H,wt.Suspense=ae,wt.isAsyncMode=O,wt.isConcurrentMode=V,wt.isContextConsumer=W,wt.isContextProvider=ne,wt.isElement=oe,wt.isForwardRef=se,wt.isFragment=j,wt.isLazy=J,wt.isMemo=ee,wt.isPortal=te,wt.isProfiler=ce,wt.isStrictMode=ie,wt.isSuspense=he,wt.isValidElementType=x,wt.typeOf=S}()),wt}var of;function i0(){return of||(of=1,process.env.NODE_ENV==="production"?Da.exports=r0():Da.exports=s0()),Da.exports}var $c,rf;function a0(){if(rf)return $c;rf=1;var e=i0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=o,i[e.Memo]=r;function a(b){return e.isMemo(b)?r:i[b.$$typeof]||t}var l=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function w(b,m,v){if(typeof m!="string"){if(y){var k=p(m);k&&k!==y&&w(b,k,v)}var D=d(m);u&&(D=D.concat(u(m)));for(var x=a(b),S=a(m),C=0;C<D.length;++C){var M=D[C];if(!n[M]&&!(v&&v[M])&&!(S&&S[M])&&!(x&&x[M])){var A=f(m,M);try{l(b,M,A)}catch{}}}}return b}return $c=w,$c}a0();var l0=!0;function Pm(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var Xd=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||l0===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},Zd=function(t,n,o){Xd(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+r:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function c0(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var d0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},u0=/[A-Z]|^ms/g,h0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Dm=function(t){return t.charCodeAt(1)===45},sf=function(t){return t!=null&&typeof t!="boolean"},Vc=Tm(function(e){return Dm(e)?e:e.replace(u0,"-$&").toLowerCase()}),af=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(h0,function(o,r,i){return yo={name:r,styles:i,next:yo},r})}return d0[t]!==1&&!Dm(t)&&typeof n=="number"&&n!==0?n+"px":n};function ki(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return yo={name:r.name,styles:r.styles,next:yo},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)yo={name:a.name,styles:a.styles,next:yo},a=a.next;var l=i.styles+";";return l}return f0(e,t,n)}case"function":{if(e!==void 0){var d=yo,u=n(e);return yo=d,ki(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function f0(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=ki(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?o+=i+"{"+t[l]+"}":sf(l)&&(o+=Vc(i)+":"+af(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)sf(a[d])&&(o+=Vc(i)+":"+af(i,a[d])+";");else{var u=ki(e,t,a);switch(i){case"animation":case"animationName":{o+=Vc(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var lf=/label:\s*([^\s;{]+)\s*(;|$)/g,yo;function Ki(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";yo=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=ki(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=ki(n,t,e[l]),o){var d=i;r+=d[l]}lf.lastIndex=0;for(var u="",f;(f=lf.exec(r))!==null;)u+="-"+f[1];var p=c0(r)+u;return{name:p,styles:r,next:yo}}var p0=function(t){return t()},Om=T.useInsertionEffect?T.useInsertionEffect:!1,Mm=Om||p0,cf=Om||T.useLayoutEffect,Im=T.createContext(typeof HTMLElement<"u"?o0({key:"css"}):null);Im.Provider;var Qd=function(t){return ze.forwardRef(function(n,o){var r=ze.useContext(Im);return t(n,r,o)})},Pl=T.createContext({}),Jd={}.hasOwnProperty,wd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m0=function(t,n){var o={};for(var r in n)Jd.call(n,r)&&(o[r]=n[r]);return o[wd]=t,o},g0=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return Xd(n,o,r),Mm(function(){return Zd(n,o,r)}),null},y0=Qd(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[wd],i=[o],a="";typeof e.className=="string"?a=Pm(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=Ki(i,void 0,T.useContext(Pl));a+=t.key+"-"+l.name;var d={};for(var u in e)Jd.call(e,u)&&u!=="css"&&u!==wd&&(d[u]=e[u]);return d.className=a,n&&(d.ref=n),T.createElement(T.Fragment,null,T.createElement(g0,{cache:t,serialized:l,isStringTag:typeof r=="string"}),T.createElement(r,d))}),v0=y0,df=function(t,n){var o=arguments;if(n==null||!Jd.call(n,"css"))return T.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=v0,i[1]=m0(t,n);for(var a=2;a<r;a++)i[a]=o[a];return T.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(df||(df={}));var b0=Qd(function(e,t){var n=e.styles,o=Ki([n],void 0,T.useContext(Pl)),r=T.useRef();return cf(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,d=document.querySelector('style[data-emotion="'+i+" "+o.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(l=!0,d.setAttribute("data-emotion",i),a.hydrate([d])),r.current=[a,l],function(){a.flush()}},[t]),cf(function(){var i=r.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(o.next!==void 0&&Zd(t,o.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",o,a,!1)},[t,o.name]),null});function w0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ki(t)}function Dl(){var e=w0.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var C0=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,S0=Tm(function(e){return C0.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_0=S0,x0=function(t){return t!=="theme"},uf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?_0:x0},hf=function(t,n,o){var r;if(n){var i=n.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},R0=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return Xd(n,o,r),Mm(function(){return Zd(n,o,r)}),null},E0=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=hf(t,n,o),d=l||uf(r),u=!d("as");return function(){var f=arguments,p=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{var y=f[0];p.push(y[0]);for(var w=f.length,b=1;b<w;b++)p.push(f[b],y[b])}var m=Qd(function(v,k,D){var x=u&&v.as||r,S="",C=[],M=v;if(v.theme==null){M={};for(var A in v)M[A]=v[A];M.theme=T.useContext(Pl)}typeof v.className=="string"?S=Pm(k.registered,C,v.className):v.className!=null&&(S=v.className+" ");var F=Ki(p.concat(C),k.registered,M);S+=k.key+"-"+F.name,a!==void 0&&(S+=" "+a);var z=u&&l===void 0?uf(x):d,R={};for(var $ in v)u&&$==="as"||z($)&&(R[$]=v[$]);return R.className=S,D&&(R.ref=D),T.createElement(T.Fragment,null,T.createElement(R0,{cache:k,serialized:F,isStringTag:typeof x=="string"}),T.createElement(x,R))});return m.displayName=i!==void 0?i:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=r,m.__emotion_styles=p,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(v,k){var D=e(v,Z({},n,k,{shouldForwardProp:hf(m,k,!0)}));return D.apply(void 0,p)},m}},T0=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Cd=E0.bind(null);T0.forEach(function(e){Cd[e]=Cd(e)});var Oa={exports:{}},Ma={exports:{}},Ct={};/** @license React v16.13.1
|
|
45
45
|
* react-is.production.min.js
|
|
46
46
|
*
|
|
47
47
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var
|
|
51
|
+
*/var ff;function k0(){if(ff)return Ct;ff=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function x(C){if(typeof C=="object"&&C!==null){var M=C.$$typeof;switch(M){case t:switch(C=C.type,C){case d:case u:case o:case i:case r:case p:return C;default:switch(C=C&&C.$$typeof,C){case l:case f:case b:case w:case a:return C;default:return M}}case n:return M}}}function S(C){return x(C)===u}return Ct.AsyncMode=d,Ct.ConcurrentMode=u,Ct.ContextConsumer=l,Ct.ContextProvider=a,Ct.Element=t,Ct.ForwardRef=f,Ct.Fragment=o,Ct.Lazy=b,Ct.Memo=w,Ct.Portal=n,Ct.Profiler=i,Ct.StrictMode=r,Ct.Suspense=p,Ct.isAsyncMode=function(C){return S(C)||x(C)===d},Ct.isConcurrentMode=S,Ct.isContextConsumer=function(C){return x(C)===l},Ct.isContextProvider=function(C){return x(C)===a},Ct.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Ct.isForwardRef=function(C){return x(C)===f},Ct.isFragment=function(C){return x(C)===o},Ct.isLazy=function(C){return x(C)===b},Ct.isMemo=function(C){return x(C)===w},Ct.isPortal=function(C){return x(C)===n},Ct.isProfiler=function(C){return x(C)===i},Ct.isStrictMode=function(C){return x(C)===r},Ct.isSuspense=function(C){return x(C)===p},Ct.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===u||C===i||C===r||C===p||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===w||C.$$typeof===a||C.$$typeof===l||C.$$typeof===f||C.$$typeof===v||C.$$typeof===k||C.$$typeof===D||C.$$typeof===m)},Ct.typeOf=x,Ct}var St={};/** @license React v16.13.1
|
|
52
52
|
* react-is.development.js
|
|
53
53
|
*
|
|
54
54
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var
|
|
58
|
+
*/var pf;function P0(){return pf||(pf=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function x(B){return typeof B=="string"||typeof B=="function"||B===o||B===u||B===i||B===r||B===p||B===y||typeof B=="object"&&B!==null&&(B.$$typeof===b||B.$$typeof===w||B.$$typeof===a||B.$$typeof===l||B.$$typeof===f||B.$$typeof===v||B.$$typeof===k||B.$$typeof===D||B.$$typeof===m)}function S(B){if(typeof B=="object"&&B!==null){var re=B.$$typeof;switch(re){case t:var Q=B.type;switch(Q){case d:case u:case o:case i:case r:case p:return Q;default:var fe=Q&&Q.$$typeof;switch(fe){case l:case f:case b:case w:case a:return fe;default:return re}}case n:return re}}}var C=d,M=u,A=l,F=a,z=t,R=f,$=o,K=b,X=w,q=n,Y=i,H=r,ae=p,N=!1;function O(B){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(B)||S(B)===d}function V(B){return S(B)===u}function W(B){return S(B)===l}function ne(B){return S(B)===a}function oe(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function se(B){return S(B)===f}function j(B){return S(B)===o}function J(B){return S(B)===b}function ee(B){return S(B)===w}function te(B){return S(B)===n}function ce(B){return S(B)===i}function ie(B){return S(B)===r}function he(B){return S(B)===p}St.AsyncMode=C,St.ConcurrentMode=M,St.ContextConsumer=A,St.ContextProvider=F,St.Element=z,St.ForwardRef=R,St.Fragment=$,St.Lazy=K,St.Memo=X,St.Portal=q,St.Profiler=Y,St.StrictMode=H,St.Suspense=ae,St.isAsyncMode=O,St.isConcurrentMode=V,St.isContextConsumer=W,St.isContextProvider=ne,St.isElement=oe,St.isForwardRef=se,St.isFragment=j,St.isLazy=J,St.isMemo=ee,St.isPortal=te,St.isProfiler=ce,St.isStrictMode=ie,St.isSuspense=he,St.isValidElementType=x,St.typeOf=S}()),St}var mf;function Nm(){return mf||(mf=1,process.env.NODE_ENV==="production"?Ma.exports=k0():Ma.exports=P0()),Ma.exports}/*
|
|
59
59
|
object-assign
|
|
60
60
|
(c) Sindre Sorhus
|
|
61
61
|
@license MIT
|
|
62
|
-
*/var
|
|
63
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
62
|
+
*/var jc,gf;function D0(){if(gf)return jc;gf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function r(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(d.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return jc=r()?Object.assign:function(i,a){for(var l,d=o(i),u,f=1;f<arguments.length;f++){l=Object(arguments[f]);for(var p in l)t.call(l,p)&&(d[p]=l[p]);if(e){u=e(l);for(var y=0;y<u.length;y++)n.call(l,u[y])&&(d[u[y]]=l[u[y]])}}return d},jc}var Wc,yf;function eu(){if(yf)return Wc;yf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wc=e,Wc}var Bc,vf;function Am(){return vf||(vf=1,Bc=Function.call.bind(Object.prototype.hasOwnProperty)),Bc}var Hc,bf;function O0(){if(bf)return Hc;bf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=eu(),n={},o=Am();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(i,a,l,d,u){if(process.env.NODE_ENV!=="production"){for(var f in i)if(o(i,f)){var p;try{if(typeof i[f]!="function"){var y=Error((d||"React class")+": "+l+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}p=i[f](a,f,d,l,null,t)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var w=u?u():"";e("Failed "+l+" type: "+p.message+(w??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Hc=r,Hc}var zc,wf;function M0(){if(wf)return zc;wf=1;var e=Nm(),t=D0(),n=eu(),o=Am(),r=O0(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return zc=function(l,d){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(V){var W=V&&(u&&V[u]||V[f]);if(typeof W=="function")return W}var y="<<anonymous>>",w={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:D(),arrayOf:x,element:S(),elementType:C(),instanceOf:M,node:R(),objectOf:F,oneOf:A,oneOfType:z,shape:K,exact:X};function b(V,W){return V===W?V!==0||1/V===1/W:V!==V&&W!==W}function m(V,W){this.message=V,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function v(V){if(process.env.NODE_ENV!=="production")var W={},ne=0;function oe(j,J,ee,te,ce,ie,he){if(te=te||y,ie=ie||ee,he!==n){if(d){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var re=te+":"+ee;!W[re]&&ne<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ie+"` prop on `"+te+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[re]=!0,ne++)}}return J[ee]==null?j?J[ee]===null?new m("The "+ce+" `"+ie+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new m("The "+ce+" `"+ie+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:V(J,ee,te,ce,ie)}var se=oe.bind(null,!1);return se.isRequired=oe.bind(null,!0),se}function k(V){function W(ne,oe,se,j,J,ee){var te=ne[oe],ce=H(te);if(ce!==V){var ie=ae(te);return new m("Invalid "+j+" `"+J+"` of type "+("`"+ie+"` supplied to `"+se+"`, expected ")+("`"+V+"`."),{expectedType:V})}return null}return v(W)}function D(){return v(a)}function x(V){function W(ne,oe,se,j,J){if(typeof V!="function")return new m("Property `"+J+"` of component `"+se+"` has invalid PropType notation inside arrayOf.");var ee=ne[oe];if(!Array.isArray(ee)){var te=H(ee);return new m("Invalid "+j+" `"+J+"` of type "+("`"+te+"` supplied to `"+se+"`, expected an array."))}for(var ce=0;ce<ee.length;ce++){var ie=V(ee,ce,se,j,J+"["+ce+"]",n);if(ie instanceof Error)return ie}return null}return v(W)}function S(){function V(W,ne,oe,se,j){var J=W[ne];if(!l(J)){var ee=H(J);return new m("Invalid "+se+" `"+j+"` of type "+("`"+ee+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return v(V)}function C(){function V(W,ne,oe,se,j){var J=W[ne];if(!e.isValidElementType(J)){var ee=H(J);return new m("Invalid "+se+" `"+j+"` of type "+("`"+ee+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return v(V)}function M(V){function W(ne,oe,se,j,J){if(!(ne[oe]instanceof V)){var ee=V.name||y,te=O(ne[oe]);return new m("Invalid "+j+" `"+J+"` of type "+("`"+te+"` supplied to `"+se+"`, expected ")+("instance of `"+ee+"`."))}return null}return v(W)}function A(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function W(ne,oe,se,j,J){for(var ee=ne[oe],te=0;te<V.length;te++)if(b(ee,V[te]))return null;var ce=JSON.stringify(V,function(he,B){var re=ae(B);return re==="symbol"?String(B):B});return new m("Invalid "+j+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+se+"`, expected one of "+ce+"."))}return v(W)}function F(V){function W(ne,oe,se,j,J){if(typeof V!="function")return new m("Property `"+J+"` of component `"+se+"` has invalid PropType notation inside objectOf.");var ee=ne[oe],te=H(ee);if(te!=="object")return new m("Invalid "+j+" `"+J+"` of type "+("`"+te+"` supplied to `"+se+"`, expected an object."));for(var ce in ee)if(o(ee,ce)){var ie=V(ee,ce,se,j,J+"."+ce,n);if(ie instanceof Error)return ie}return null}return v(W)}function z(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<V.length;W++){var ne=V[W];if(typeof ne!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(ne)+" at index "+W+"."),a}function oe(se,j,J,ee,te){for(var ce=[],ie=0;ie<V.length;ie++){var he=V[ie],B=he(se,j,J,ee,te,n);if(B==null)return null;B.data&&o(B.data,"expectedType")&&ce.push(B.data.expectedType)}var re=ce.length>0?", expected one of type ["+ce.join(", ")+"]":"";return new m("Invalid "+ee+" `"+te+"` supplied to "+("`"+J+"`"+re+"."))}return v(oe)}function R(){function V(W,ne,oe,se,j){return q(W[ne])?null:new m("Invalid "+se+" `"+j+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return v(V)}function $(V,W,ne,oe,se){return new m((V||"React class")+": "+W+" type `"+ne+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function K(V){function W(ne,oe,se,j,J){var ee=ne[oe],te=H(ee);if(te!=="object")return new m("Invalid "+j+" `"+J+"` of type `"+te+"` "+("supplied to `"+se+"`, expected `object`."));for(var ce in V){var ie=V[ce];if(typeof ie!="function")return $(se,j,J,ce,ae(ie));var he=ie(ee,ce,se,j,J+"."+ce,n);if(he)return he}return null}return v(W)}function X(V){function W(ne,oe,se,j,J){var ee=ne[oe],te=H(ee);if(te!=="object")return new m("Invalid "+j+" `"+J+"` of type `"+te+"` "+("supplied to `"+se+"`, expected `object`."));var ce=t({},ne[oe],V);for(var ie in ce){var he=V[ie];if(o(V,ie)&&typeof he!="function")return $(se,j,J,ie,ae(he));if(!he)return new m("Invalid "+j+" `"+J+"` key `"+ie+"` supplied to `"+se+"`.\nBad object: "+JSON.stringify(ne[oe],null," ")+`
|
|
63
|
+
Valid keys: `+JSON.stringify(Object.keys(V),null," "));var B=he(ee,ie,se,j,J+"."+ie,n);if(B)return B}return null}return v(W)}function q(V){switch(typeof V){case"number":case"string":case"undefined":return!0;case"boolean":return!V;case"object":if(Array.isArray(V))return V.every(q);if(V===null||l(V))return!0;var W=p(V);if(W){var ne=W.call(V),oe;if(W!==V.entries){for(;!(oe=ne.next()).done;)if(!q(oe.value))return!1}else for(;!(oe=ne.next()).done;){var se=oe.value;if(se&&!q(se[1]))return!1}}else return!1;return!0;default:return!1}}function Y(V,W){return V==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function H(V){var W=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":Y(W,V)?"symbol":W}function ae(V){if(typeof V>"u"||V===null)return""+V;var W=H(V);if(W==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return W}function N(V){var W=ae(V);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function O(V){return!V.constructor||!V.constructor.name?y:V.constructor.name}return w.checkPropTypes=r,w.resetWarningCache=r.resetWarningCache,w.PropTypes=w,w},zc}var Yc,Cf;function I0(){if(Cf)return Yc;Cf=1;var e=eu();function t(){}function n(){}return n.resetWarningCache=t,Yc=function(){function o(a,l,d,u,f,p){if(p!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}o.isRequired=o;function r(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Yc}var Sf;function N0(){if(Sf)return Oa.exports;if(Sf=1,process.env.NODE_ENV!=="production"){var e=Nm(),t=!0;Oa.exports=M0()(e.isElement,t)}else Oa.exports=I0()();return Oa.exports}var A0=N0();const s=_S(A0);function F0(e){return e==null||Object.keys(e).length===0}function Fm(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>t(F0(r)?n:r):t;return P.jsx(b0,{styles:o})}process.env.NODE_ENV!=="production"&&(Fm.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
64
64
|
* @mui/styled-engine v6.4.11
|
|
65
65
|
*
|
|
66
66
|
* @license MIT
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/function
|
|
70
|
-
`)):
|
|
69
|
+
*/function Lm(e,t){const n=Cd(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
70
|
+
`)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function L0(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const _f=[];function xf(e){return _f[0]=e,Ki(_f)}var Ia={exports:{}},Rt={};/**
|
|
71
71
|
* @license React
|
|
72
72
|
* react-is.production.js
|
|
73
73
|
*
|
|
@@ -75,7 +75,7 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var I=ze(J,ie,V,Y,Q+"."+
|
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var
|
|
78
|
+
*/var Rf;function $0(){if(Rf)return Rt;Rf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function b(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case e:switch(m=m.type,m){case n:case r:case o:case d:case u:case y:return m;default:switch(m=m&&m.$$typeof,m){case a:case l:case p:case f:return m;case i:return m;default:return v}}case t:return v}}}return Rt.ContextConsumer=i,Rt.ContextProvider=a,Rt.Element=e,Rt.ForwardRef=l,Rt.Fragment=n,Rt.Lazy=p,Rt.Memo=f,Rt.Portal=t,Rt.Profiler=r,Rt.StrictMode=o,Rt.Suspense=d,Rt.SuspenseList=u,Rt.isContextConsumer=function(m){return b(m)===i},Rt.isContextProvider=function(m){return b(m)===a},Rt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Rt.isForwardRef=function(m){return b(m)===l},Rt.isFragment=function(m){return b(m)===n},Rt.isLazy=function(m){return b(m)===p},Rt.isMemo=function(m){return b(m)===f},Rt.isPortal=function(m){return b(m)===t},Rt.isProfiler=function(m){return b(m)===r},Rt.isStrictMode=function(m){return b(m)===o},Rt.isSuspense=function(m){return b(m)===d},Rt.isSuspenseList=function(m){return b(m)===u},Rt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===r||m===o||m===d||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===w||m.getModuleId!==void 0)},Rt.typeOf=b,Rt}var Et={};/**
|
|
79
79
|
* @license React
|
|
80
80
|
* react-is.development.js
|
|
81
81
|
*
|
|
@@ -83,17 +83,21 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var I=ze(J,ie,V,Y,Q+"."+
|
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the MIT license found in the
|
|
85
85
|
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var
|
|
87
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
86
|
+
*/var Ef;function V0(){return Ef||(Ef=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case o:case i:case r:case u:case f:case w:return m;default:switch(m=m&&m.$$typeof,m){case l:case d:case y:case p:return m;case a:return m;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Et.ContextConsumer=a,Et.ContextProvider=l,Et.Element=t,Et.ForwardRef=d,Et.Fragment=o,Et.Lazy=y,Et.Memo=p,Et.Portal=n,Et.Profiler=i,Et.StrictMode=r,Et.Suspense=u,Et.SuspenseList=f,Et.isContextConsumer=function(m){return e(m)===a},Et.isContextProvider=function(m){return e(m)===l},Et.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Et.isForwardRef=function(m){return e(m)===d},Et.isFragment=function(m){return e(m)===o},Et.isLazy=function(m){return e(m)===y},Et.isMemo=function(m){return e(m)===p},Et.isPortal=function(m){return e(m)===n},Et.isProfiler=function(m){return e(m)===i},Et.isStrictMode=function(m){return e(m)===r},Et.isSuspense=function(m){return e(m)===u},Et.isSuspenseList=function(m){return e(m)===f},Et.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===o||m===i||m===r||m===u||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===p||m.$$typeof===l||m.$$typeof===a||m.$$typeof===d||m.$$typeof===b||m.getModuleId!==void 0)},Et.typeOf=e}()),Et}var Tf;function j0(){return Tf||(Tf=1,process.env.NODE_ENV==="production"?Ia.exports=$0():Ia.exports=V0()),Ia.exports}var al=j0();function bo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $m(e){if(T.isValidElement(e)||al.isValidElementType(e)||!bo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$m(e[n])}),t}function mn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return bo(e)&&bo(t)&&Object.keys(t).forEach(r=>{T.isValidElement(t[r])||al.isValidElementType(t[r])?o[r]=t[r]:bo(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&bo(e[r])?o[r]=mn(e[r],t[r],n):n.clone?o[r]=bo(t[r])?$m(t[r]):t[r]:o[r]=t[r]}),o}const W0=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function B0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=W0(t),a=Object.keys(i);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-o/100}${n})`}function u(y,w){const b=a.indexOf(w);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:w)-o/100}${n})`}function f(y){return a.indexOf(y)+1<a.length?u(y,a[a.indexOf(y)+1]):l(y)}function p(y){const w=a.indexOf(y);return w===0?l(a[1]):w===a.length-1?d(a[w]):u(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:d,between:u,only:f,not:p,unit:n,...r}}function H0(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}function z0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Y0(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
87
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:_o(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function U0(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 q0={borderRadius:4},hr=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function gi(e,t){return t?mn(e,t,{clone:!1}):e}const Ol={xs:0,sm:600,md:900,lg:1200,xl:1536},kf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ol[e]}px)`},G0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ol[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Yo(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||kf;return t.reduce((a,l,d)=>(a[i.up(i.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const i=o.breakpoints||kf;return Object.keys(t).reduce((a,l)=>{if(z0(i.keys,l)){const d=Y0(o.containerQueries?o:G0,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(i.values||Ol).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 K0(e={}){return e.keys?.reduce((n,o)=>{const r=e.up(o);return n[r]={},n},{})||{}}function X0(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 Ml(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 ll(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=Ml(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=Ml(d,o)||{};return Yo(a,l,p=>{let y=ll(u,r,p);return p===y&&typeof p=="string"&&(y=ll(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 Z0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Q0={m:"margin",p:"padding"},J0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},e_=Z0(e=>{if(e.length>2)if(Pf[e])e=Pf[e];else return[e];const[t,n]=e.split(""),o=Q0[t],r=J0[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Il=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],t_=[...Il,...Nl];function Xi(e,t,n,o){const r=Ml(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof r=="string"?`calc(${i} * ${r})`:r*i):Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
|
|
88
88
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
89
|
-
`)));const
|
|
90
|
-
`)),()=>{})}function wa(e){return ks(e,"spacing",8,"spacing")}function Ts(e,t){return typeof t=="string"||t==null?t:e(t)}function qg(e,t){return r=>e.reduce((i,s)=>(i[s]=Ts(t,r),i),{})}function Xg(e,t,r,i){if(!t.includes(r))return null;const s=Ug(r),o=qg(s,i),l=e[r];return Or(e,l,o)}function mc(e,t){const r=wa(e.theme);return Object.keys(e).map(i=>Xg(e,t,i,r)).reduce(ds,{})}function lt(e){return mc(e,Ln)}lt.propTypes=process.env.NODE_ENV!=="production"?Ln.reduce((e,t)=>(e[t]=Kr,e),{}):{};lt.filterProps=Ln;function ht(e){return mc(e,Fn)}ht.propTypes=process.env.NODE_ENV!=="production"?Fn.reduce((e,t)=>(e[t]=Kr,e),{}):{};ht.filterProps=Fn;process.env.NODE_ENV!=="production"&&Gg.reduce((e,t)=>(e[t]=Kr,e),{});function gc(e=8,t=wa({spacing:e})){if(e.mui)return e;const r=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(o=>{const l=t(o);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function In(...e){const t=e.reduce((i,s)=>(s.filterProps.forEach(o=>{i[o]=s}),i),{}),r=i=>Object.keys(i).reduce((s,o)=>t[o]?ds(s,t[o](i)):s,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,s)=>Object.assign(i,s.propTypes),{}):{},r.filterProps=e.reduce((i,s)=>i.concat(s.filterProps),[]),r}function Gt(e){return typeof e!="number"?e:`${e}px solid`}function Xt(e,t){return ft({prop:e,themeKey:"borders",transform:t})}const Kg=Xt("border",Gt),Zg=Xt("borderTop",Gt),Jg=Xt("borderRight",Gt),Qg=Xt("borderBottom",Gt),ey=Xt("borderLeft",Gt),ty=Xt("borderColor"),ry=Xt("borderTopColor"),iy=Xt("borderRightColor"),sy=Xt("borderBottomColor"),ny=Xt("borderLeftColor"),oy=Xt("outline",Gt),ay=Xt("outlineColor"),Wn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ks(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Ts(t,i)});return Or(e,e.borderRadius,r)}return null};Wn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Kr}:{};Wn.filterProps=["borderRadius"];In(Kg,Zg,Jg,Qg,ey,ty,ry,iy,sy,ny,Wn,oy,ay);const Hn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ks(e.theme,"spacing",8,"gap"),r=i=>({gap:Ts(t,i)});return Or(e,e.gap,r)}return null};Hn.propTypes=process.env.NODE_ENV!=="production"?{gap:Kr}:{};Hn.filterProps=["gap"];const Yn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ks(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Ts(t,i)});return Or(e,e.columnGap,r)}return null};Yn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Kr}:{};Yn.filterProps=["columnGap"];const zn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ks(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Ts(t,i)});return Or(e,e.rowGap,r)}return null};zn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Kr}:{};zn.filterProps=["rowGap"];const ly=ft({prop:"gridColumn"}),hy=ft({prop:"gridRow"}),cy=ft({prop:"gridAutoFlow"}),uy=ft({prop:"gridAutoColumns"}),dy=ft({prop:"gridAutoRows"}),fy=ft({prop:"gridTemplateColumns"}),py=ft({prop:"gridTemplateRows"}),my=ft({prop:"gridTemplateAreas"}),gy=ft({prop:"gridArea"});In(Hn,Yn,zn,ly,hy,cy,uy,dy,fy,py,my,gy);function Ii(e,t){return t==="grey"?t:e}const yy=ft({prop:"color",themeKey:"palette",transform:Ii}),vy=ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ii}),wy=ft({prop:"backgroundColor",themeKey:"palette",transform:Ii});In(yy,vy,wy);function It(e){return e<=1&&e!==0?`${e*100}%`:e}const _y=ft({prop:"width",transform:It}),_a=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const i=e.theme?.breakpoints?.values?.[r]||An[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:It(r)}};return Or(e,e.maxWidth,t)}return null};_a.filterProps=["maxWidth"];const by=ft({prop:"minWidth",transform:It}),Cy=ft({prop:"height",transform:It}),Sy=ft({prop:"maxHeight",transform:It}),Ry=ft({prop:"minHeight",transform:It});ft({prop:"size",cssProperty:"width",transform:It});ft({prop:"size",cssProperty:"height",transform:It});const Ey=ft({prop:"boxSizing"});In(_y,_a,by,Cy,Sy,Ry,Ey);const Ds={border:{themeKey:"borders",transform:Gt},borderTop:{themeKey:"borders",transform:Gt},borderRight:{themeKey:"borders",transform:Gt},borderBottom:{themeKey:"borders",transform:Gt},borderLeft:{themeKey:"borders",transform:Gt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wn},color:{themeKey:"palette",transform:Ii},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ii},backgroundColor:{themeKey:"palette",transform:Ii},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Hn},rowGap:{style:zn},columnGap:{style:Yn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:It},maxWidth:{style:_a},minWidth:{transform:It},height:{transform:It},maxHeight:{transform:It},minHeight:{transform:It},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 xy(...e){const t=e.reduce((i,s)=>i.concat(Object.keys(s)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function ky(e,t){return typeof e=="function"?e(t):e}function Ty(){function e(r,i,s,o){const l={[r]:i,theme:s},h=o[r];if(!h)return{[r]:i};const{cssProperty:d=r,themeKey:f,transform:p,style:m}=h;if(i==null)return null;if(f==="typography"&&i==="inherit")return{[r]:i};const C=Nn(s,f)||{};return m?m(l):Or(l,i,R=>{let y=wn(C,p,R);return R===y&&typeof R=="string"&&(y=wn(C,p,`${r}${R==="default"?"":xt(R)}`,R)),d===!1?y:{[d]:y}})}function t(r){const{sx:i,theme:s={}}=r||{};if(!i)return null;const o=s.unstable_sxConfig??Ds;function l(h){let d=h;if(typeof h=="function")d=h(s);else if(typeof h!="object")return h;if(!d)return null;const f=zg(s.breakpoints),p=Object.keys(f);let m=f;return Object.keys(d).forEach(C=>{const k=ky(d[C],s);if(k!=null)if(typeof k=="object")if(o[C])m=ds(m,e(C,k,s,o));else{const R=Or({theme:s},k,y=>({[C]:y}));xy(R,k)?m[C]=t({sx:k,theme:s}):m=ds(m,R)}else m=ds(m,e(C,k,s,o))}),Lg(s,$g(p,m))}return Array.isArray(i)?i.map(l):l(i)}return t}const ci=Ty();ci.filterProps=["sx"];function Dy(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function ba(e={},...t){const{breakpoints:r={},palette:i={},spacing:s,shape:o={},...l}=e,h=Ng(r),d=gc(s);let f=Ht({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:d,shape:{...Hg,...o}},l);return f=Wg(f),f.applyStyles=Dy,f=t.reduce((p,m)=>Ht(p,m),f),f.unstable_sxConfig={...Ds,...l?.unstable_sxConfig},f.unstable_sx=function(m){return ci({sx:m,theme:this})},f}function My(e){return Object.keys(e).length===0}function Py(e=null){const t=ae.useContext(ga);return!t||My(t)?e:t}const Oy=ba();function yc(e=Oy){return Py(e)}const Ay=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Ds;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function Ny(e){const{sx:t,...r}=e,{systemProps:i,otherProps:s}=Ay(r);let o;return Array.isArray(t)?o=[i,...t]:typeof t=="function"?o=(...l)=>{const h=t(...l);return cr(h)?{...i,...h}:i}:o={...i,...t},{...s,sx:o}}const ph=e=>e,Ly=()=>{let e=ph;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ph}}},vc=Ly();function wc(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=wc(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function bt(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=wc(e))&&(i&&(i+=" "),i+=t);return i}function Fy(e={}){const{themeId:t,defaultTheme:r,defaultClassName:i="MuiBox-root",generateClassName:s}=e,o=fc("div",{shouldForwardProp:h=>h!=="theme"&&h!=="sx"&&h!=="as"})(ci);return ae.forwardRef(function(d,f){const p=yc(r),{className:m,component:C="div",...k}=Ny(d);return le.jsx(o,{as:C,ref:f,className:bt(m,s?s(i):i),theme:t&&p[t]||p,...k})})}const Iy={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Zr(e,t,r="Mui"){const i=Iy[t];return i?`${r}-${i}`:`${vc.generate(e)}-${t}`}function Jr(e,t,r="Mui"){const i={};return t.forEach(s=>{i[s]=Zr(e,s,r)}),i}function _c(e,t=""){return e.displayName||e.name||t}function mh(e,t,r){const i=_c(t);return e.displayName||(i!==""?`${r}(${i})`:r)}function Wy(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return _c(e,"Component");if(typeof e=="object")switch(e.$$typeof){case vn.ForwardRef:return mh(e,e.render,"ForwardRef");case vn.Memo:return mh(e,e.type,"memo");default:return}}}function bc(e){const{variants:t,...r}=e,i={variants:t,style:lh(r),isProcessed:!0};return i.style===r||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=lh(s.style))}),i}const Hy=ba();function Po(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Yy(e){return e?(t,r)=>r[e]:null}function zy(e,t,r){e.theme=jy(e.theme)?r:e.theme[t]||e.theme}function cn(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>cn(e,i));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=r.style;else{const{variants:s,...o}=r;i=o}return Cc(e,r.variants,[i])}return r?.isProcessed?r.style:r}function Cc(e,t,r=[]){let i;e:for(let s=0;s<t.length;s+=1){const o=t[s];if(typeof o.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(const l in o.props)if(e[l]!==o.props[l]&&e.ownerState?.[l]!==o.props[l])continue e;typeof o.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(o.style(i))):r.push(o.style)}return r}function $y(e={}){const{themeId:t,defaultTheme:r=Hy,rootShouldForwardProp:i=Po,slotShouldForwardProp:s=Po}=e;function o(h){zy(h,t,r)}return(h,d={})=>{Dg(h,v=>v.filter(L=>L!==ci));const{name:f,slot:p,skipVariantsResolver:m,skipSx:C,overridesResolver:k=Yy(Sc(p)),...R}=d,y=m!==void 0?m:p&&p!=="Root"&&p!=="root"||!1,O=C||!1;let F=Po;p==="Root"||p==="root"?F=i:p?F=s:Uy(h)&&(F=void 0);const B=fc(h,{shouldForwardProp:F,label:Vy(f,p),...R}),N=v=>{if(v.__emotion_real===v)return v;if(typeof v=="function")return function(z){return cn(z,v)};if(cr(v)){const L=bc(v);return L.variants?function(q){return cn(q,L)}:L.style}return v},x=(...v)=>{const L=[],z=v.map(N),q=[];if(L.push(o),f&&k&&q.push(function(ce){const ve=ce.theme.components?.[f]?.styleOverrides;if(!ve)return null;const Fe={};for(const me in ve)Fe[me]=cn(ce,ve[me]);return k(ce,Fe)}),f&&!y&&q.push(function(ce){const ve=ce.theme?.components?.[f]?.variants;return ve?Cc(ce,ve):null}),O||q.push(ci),Array.isArray(z[0])){const G=z.shift(),ce=new Array(L.length).fill(""),oe=new Array(q.length).fill("");let ve;ve=[...ce,...G,...oe],ve.raw=[...ce,...G.raw,...oe],L.unshift(ve)}const te=[...L,...z,...q],w=B(...te);return h.muiName&&(w.muiName=h.muiName),process.env.NODE_ENV!=="production"&&(w.displayName=By(f,p,h)),w};return B.withConfig&&(x.withConfig=B.withConfig),x}}function By(e,t,r){return e?`${e}${xt(t||"")}`:`Styled(${Wy(r)})`}function Vy(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Sc(t||"Root")}`),r}function jy(e){for(const t in e)return!1;return!0}function Uy(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Sc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Uo(e,t){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const o=e[s],l=t[s];if(!l)r[s]=o||{};else if(!o)r[s]=l;else{r[s]={...l};for(const h in o)if(Object.prototype.hasOwnProperty.call(o,h)){const d=h;r[s][d]=Uo(o[d],l[d])}}}else r[s]===void 0&&(r[s]=e[s])}return r}const Gy=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function qy(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ca(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),qy(e,t,r)}function Xy(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((i,s)=>s<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Xr(e){if(e.type)return e;if(e.charAt(0)==="#")return Xr(Xy(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
`)));const 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 tu(e){return Xi(e,"spacing",8,"spacing")}function Zi(e,t){return typeof t=="string"||t==null?t:e(t)}function n_(e,t){return n=>e.reduce((o,r)=>(o[r]=Zi(t,n),o),{})}function o_(e,t,n,o){if(!t.includes(n))return null;const r=e_(n),i=n_(r,o),a=e[n];return Yo(e,a,i)}function Vm(e,t){const n=tu(e.theme);return Object.keys(e).map(o=>o_(e,t,o,n)).reduce(gi,{})}function Ht(e){return Vm(e,Il)}Ht.propTypes=process.env.NODE_ENV!=="production"?Il.reduce((e,t)=>(e[t]=hr,e),{}):{};Ht.filterProps=Il;function zt(e){return Vm(e,Nl)}zt.propTypes=process.env.NODE_ENV!=="production"?Nl.reduce((e,t)=>(e[t]=hr,e),{}):{};zt.filterProps=Nl;process.env.NODE_ENV!=="production"&&t_.reduce((e,t)=>(e[t]=hr,e),{});function jm(e=8,t=tu({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 Al(...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]?gi(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 r_=Zn("border",Yn),s_=Zn("borderTop",Yn),i_=Zn("borderRight",Yn),a_=Zn("borderBottom",Yn),l_=Zn("borderLeft",Yn),c_=Zn("borderColor"),d_=Zn("borderTopColor"),u_=Zn("borderRightColor"),h_=Zn("borderBottomColor"),f_=Zn("borderLeftColor"),p_=Zn("outline",Yn),m_=Zn("outlineColor"),Fl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xi(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Zi(t,o)});return Yo(e,e.borderRadius,n)}return null};Fl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:hr}:{};Fl.filterProps=["borderRadius"];Al(r_,s_,i_,a_,l_,c_,d_,u_,h_,f_,Fl,p_,m_);const Ll=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xi(e.theme,"spacing",8,"gap"),n=o=>({gap:Zi(t,o)});return Yo(e,e.gap,n)}return null};Ll.propTypes=process.env.NODE_ENV!=="production"?{gap:hr}:{};Ll.filterProps=["gap"];const $l=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xi(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Zi(t,o)});return Yo(e,e.columnGap,n)}return null};$l.propTypes=process.env.NODE_ENV!=="production"?{columnGap:hr}:{};$l.filterProps=["columnGap"];const Vl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xi(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Zi(t,o)});return Yo(e,e.rowGap,n)}return null};Vl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:hr}:{};Vl.filterProps=["rowGap"];const g_=Gt({prop:"gridColumn"}),y_=Gt({prop:"gridRow"}),v_=Gt({prop:"gridAutoFlow"}),b_=Gt({prop:"gridAutoColumns"}),w_=Gt({prop:"gridAutoRows"}),C_=Gt({prop:"gridTemplateColumns"}),S_=Gt({prop:"gridTemplateRows"}),__=Gt({prop:"gridTemplateAreas"}),x_=Gt({prop:"gridArea"});Al(Ll,$l,Vl,g_,y_,v_,b_,w_,C_,S_,__,x_);function gs(e,t){return t==="grey"?t:e}const R_=Gt({prop:"color",themeKey:"palette",transform:gs}),E_=Gt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gs}),T_=Gt({prop:"backgroundColor",themeKey:"palette",transform:gs});Al(R_,E_,T_);function An(e){return e<=1&&e!==0?`${e*100}%`:e}const k_=Gt({prop:"width",transform:An}),nu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Ol[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:An(n)}};return Yo(e,e.maxWidth,t)}return null};nu.filterProps=["maxWidth"];const P_=Gt({prop:"minWidth",transform:An}),D_=Gt({prop:"height",transform:An}),O_=Gt({prop:"maxHeight",transform:An}),M_=Gt({prop:"minHeight",transform:An});Gt({prop:"size",cssProperty:"width",transform:An});Gt({prop:"size",cssProperty:"height",transform:An});const I_=Gt({prop:"boxSizing"});Al(k_,nu,P_,D_,O_,M_,I_);const Qi={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:Fl},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:Ll},rowGap:{style:Vl},columnGap:{style:$l},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:An},maxWidth:{style:nu},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 N_(...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 A_(e,t){return typeof e=="function"?e(t):e}function F_(){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=Ml(r,u)||{};return p?p(a):Yo(a,o,b=>{let m=ll(y,f,b);return b===m&&typeof b=="string"&&(m=ll(y,f,`${n}${b==="default"?"":be(b)}`,b)),d===!1?m:{[d]:m}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??Qi;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=K0(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(d).forEach(y=>{const w=A_(d[y],r);if(w!=null)if(typeof w=="object")if(i[y])p=gi(p,e(y,w,r,i));else{const b=Yo({theme:r},w,m=>({[y]:m}));N_(b,w)?p[y]=t({sx:w,theme:r}):p=gi(p,b)}else p=gi(p,e(y,w,r,i))}),H0(r,X0(f,p))}return Array.isArray(o)?o.map(a):a(o)}return t}const Ar=F_();Ar.filterProps=["sx"];function L_(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 ou(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=B0(n),d=jm(r);let u=mn({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...q0,...i}},a);return u=U0(u),u.applyStyles=L_,u=t.reduce((f,p)=>mn(f,p),u),u.unstable_sxConfig={...Qi,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Ar({sx:p,theme:this})},u}function $_(e){return Object.keys(e).length===0}function Wm(e=null){const t=T.useContext(Pl);return!t||$_(t)?e:t}const V_=ou();function jl(e=V_){return Wm(e)}function Bm({styles:e,themeId:t,defaultTheme:n={}}){const o=jl(n),r=typeof e=="function"?e(t&&o[t]||o):e;return P.jsx(Fm,{styles:r})}process.env.NODE_ENV!=="production"&&(Bm.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const j_=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Qi;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Hm(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=j_(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 Df=e=>e,W_=()=>{let e=Df;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Df}}},zm=W_();function Ym(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=Ym(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=Ym(e))&&(o&&(o+=" "),o+=t);return o}function B_(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=Lm("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Ar);return T.forwardRef(function(d,u){const f=jl(n),{className:p,component:y="div",...w}=Hm(d);return P.jsx(i,{as:y,ref:u,className:Se(p,r?r(o):o),theme:t&&f[t]||f,...w})})}const H_={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=H_[t];return o?`${n}-${o}`:`${zm.generate(e)}-${t}`}function De(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Oe(e,r,n)}),o}function Um(e,t=""){return e.displayName||e.name||t}function Of(e,t,n){const o=Um(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function z_(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Um(e,"Component");if(typeof e=="object")switch(e.$$typeof){case al.ForwardRef:return Of(e,e.render,"ForwardRef");case al.Memo:return Of(e,e.type,"memo");default:return}}}function qm(e){const{variants:t,...n}=e,o={variants:t,style:xf(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=xf(r.style))}),o}const Y_=ou();function Xa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function U_(e){return e?(t,n)=>n[e]:null}function q_(e,t,n){e.theme=Z_(e.theme)?n:e.theme[t]||e.theme}function Za(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Za(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return Gm(e,n.variants,[o])}return n?.isProcessed?n.style:n}function Gm(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 G_(e={}){const{themeId:t,defaultTheme:n=Y_,rootShouldForwardProp:o=Xa,slotShouldForwardProp:r=Xa}=e;function i(l){q_(l,t,n)}return(l,d={})=>{L0(l,C=>C.filter(M=>M!==Ar));const{name:u,slot:f,skipVariantsResolver:p,skipSx:y,overridesResolver:w=U_(Km(f)),...b}=d,m=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let k=Xa;f==="Root"||f==="root"?k=o:f?k=r:Q_(l)&&(k=void 0);const D=Lm(l,{shouldForwardProp:k,label:X_(u,f),...b}),x=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(A){return Za(A,C)};if(bo(C)){const M=qm(C);return M.variants?function(F){return Za(F,M)}:M.style}return C},S=(...C)=>{const M=[],A=C.map(x),F=[];if(M.push(i),u&&w&&F.push(function(K){const q=K.theme.components?.[u]?.styleOverrides;if(!q)return null;const Y={};for(const H in q)Y[H]=Za(K,q[H]);return w(K,Y)}),u&&!m&&F.push(function(K){const q=K.theme?.components?.[u]?.variants;return q?Gm(K,q):null}),v||F.push(Ar),Array.isArray(A[0])){const $=A.shift(),K=new Array(M.length).fill(""),X=new Array(F.length).fill("");let q;q=[...K,...$,...X],q.raw=[...K,...$.raw,...X],M.unshift(q)}const z=[...M,...A,...F],R=D(...z);return l.muiName&&(R.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=K_(u,f,l)),R};return D.withConfig&&(S.withConfig=D.withConfig),S}}function K_(e,t,n){return e?`${e}${be(t||"")}`:`Styled(${z_(n)})`}function X_(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Km(t||"Root")}`),n}function Z_(e){for(const t in e)return!1;return!0}function Q_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Km(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Pi(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]=Pi(i[d],a[d])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function Xm(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Pi(t.components[n].defaultProps,o)}function J_({props:e,name:t,defaultTheme:n,themeId:o}){let r=jl(n);return r=r[o]||r,Xm({theme:r,name:t,props:e})}const nn=typeof window<"u"?T.useLayoutEffect:T.useEffect;function ex(e,t,n,o,r){const[i,a]=T.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return nn(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),i}const tx={...T},Zm=tx.useSyncExternalStore;function nx(e,t,n,o,r){const i=T.useCallback(()=>t,[t]),a=T.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:f}=o(e);return()=>f}return i},[i,e,o,r,n]),[l,d]=T.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addEventListener("change",p),()=>{f.removeEventListener("change",p)})]},[i,n,e]);return Zm(d,l,a)}function ox(e={}){const{themeId:t}=e;return function(o,r={}){let i=Wm();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}=Xm({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
91
|
+
`));let p=typeof o=="function"?o(i):o;p=p.replace(/^@media( ?)/m,""),p.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
92
|
+
`));const w=(Zm!==void 0?nx:ex)(p,l,d,u,f);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:p,match:w}),w}}const Qm=ox();function rx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ru(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}].`),rx(e,t,n)}function sx(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(sx(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
93
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:_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
|
+
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 ix=e=>{const t=cr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},hi=(e,t)=>{try{return ix(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Wl(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 Jm(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])),Wl({type:l,values:d})}function Sd(e){e=cr(e);let t=e.type==="hsl"||e.type==="hsla"?cr(Jm(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 Mf(e,t){const n=Sd(e),o=Sd(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function it(e,t){return e=cr(e),t=ru(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Wl(e)}function Na(e,t,n){try{return it(e,t)}catch{return e}}function Di(e,t){if(e=cr(e),t=ru(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 Wl(e)}function kt(e,t,n){try{return Di(e,t)}catch{return e}}function Oi(e,t){if(e=cr(e),t=ru(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 Wl(e)}function Pt(e,t,n){try{return Oi(e,t)}catch{return e}}function ax(e,t=.15){return Sd(e)>.5?Di(e,t):Oi(e,t)}function Aa(e,t,n){try{return ax(e,t)}catch{return e}}function fr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function lx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eg(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"&&!lx(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 Ji=fr(s.element,eg);Ji.isRequired=fr(s.element.isRequired,eg);function cx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function dx(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"&&!cx(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 Bl=fr(s.elementType,dx),ux="exact-prop: ";function tg(e){return process.env.NODE_ENV==="production"?e:{...e,[ux]: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 Uo(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=r||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Wt=s.oneOfType([s.func,s.object]);function If(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function ng(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 yi(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function gn(e){return e&&e.ownerDocument||document}function qo(e){return gn(e).defaultView||window}function Nf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Af=0;function hx(e){const[t,n]=T.useState(e),o=e||t;return T.useEffect(()=>{t==null&&(Af+=1,n(`mui-${Af}`))},[t]),o}const fx={...T},Ff=fx.useId;function pr(e){if(Ff!==void 0){const t=Ff();return e??t}return hx(e)}function px(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}=T.useRef(e!==void 0),[i,a]=T.useState(t),l=r?e:i;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{r!==(e!==void 0)&&console.error([`MUI: A component is changing the ${r?"":"un"}controlled ${o} state of ${n} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
95
|
+
`))},[o,n,e]);const{current:u}=T.useRef(t);T.useEffect(()=>{!r&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
96
|
+
`))},[JSON.stringify(t)])}const d=T.useCallback(u=>{r||a(u)},[]);return[l,d]}function Ee(e){const t=T.useRef(e);return nn(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function at(...e){const t=T.useRef(void 0),n=T.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i?.())}},e);return T.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const Lf={};function og(e,t){const n=T.useRef(Lf);return n.current===Lf&&(n.current=e(t)),n}const mx=[];function gx(e){T.useEffect(e,mx)}class su{static create(){return new su}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 rg(){const e=og(su.create).current;return gx(e.disposeEffect),e}function $f(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 sg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const yx={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function vx(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function ig(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=vx(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function ag(e,t,...n){return e[t]===void 0?null:ig(e,t,...n)}function _d(){return null}ag.isRequired=ig;_d.isRequired=_d;const lg=process.env.NODE_ENV==="production"?_d:ag;function Ie(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let d=0;d<i.length;d+=1){const u=i[d];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[r]=a}return o}function bx(e){return typeof e=="string"}function cg(e,t,n){return e===void 0||bx(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function dg(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 Vf(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 ug(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const w=Se(n?.className,i,r?.className,o?.className),b={...n?.style,...r?.style,...o?.style},m={...n,...r,...o};return w.length>0&&(m.className=w),Object.keys(b).length>0&&(m.style=b),{props:m,internalRef:void 0}}const a=dg({...r,...o}),l=Vf(o),d=Vf(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 Hl(e,t,n){return typeof e=="function"?e(t,n):e}function ct(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:Hl(n,o),{props:l,internalRef:d}=ug({...i,externalSlotProps:a}),u=at(d,a?.ref,e.additionalProps?.ref);return cg(t,{...l,ref:u},o)}function ea(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}const wx=T.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const lo=()=>T.useContext(wx)??!1,Cx=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Sx(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?Pi(r.defaultProps,o):!r.styleOverrides&&!r.variants?Pi(r,o):o}function _x({props:e,name:t}){const n=T.useContext(Cx);return Sx({props:e,name:t,theme:{components:n}})}const jf={theme:void 0};function xx(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(jf.theme=r.theme,i=qm(e(jf)),t=i,n=r.theme),i}}function Rx(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 Wf=(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])})},Ex=(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)},Tx=(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 Uc(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return Ex(e,(l,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!o||!o(l,d))){const f=`--${n?`${n}-`:""}${l.join("-")}`,p=Tx(l,d);Object.assign(r,{[f]:p}),Wf(i,l,`var(${f})`,u),Wf(a,l,`var(${f}, ${p})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function kx(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}=Uc(d,t);let y=p;const w={},{[l]:b,...m}=i;if(Object.entries(m||{}).forEach(([x,S])=>{const{vars:C,css:M,varsWithDefaults:A}=Uc(S,t);y=mn(y,A),w[x]={css:M,vars:C}}),b){const{css:x,vars:S,varsWithDefaults:C}=Uc(b,t);y=mn(y,C),w[l]={css:x,vars:S}}function v(x,S){let C=r;if(r==="class"&&(C=".%s"),r==="data"&&(C="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(C=`[${r}="%s"]`),x){if(C==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":S}};if(C)return e.defaultColorScheme===x?`:root, ${C.replace("%s",String(x))}`:C.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...u};return Object.entries(w).forEach(([,{vars:S}])=>{x=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]:M,...A}=w;if(M){const{css:F}=M,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 Px(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 hg(){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:Ri.white,default:Ri.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 Dx=hg();function fg(){return{text:{primary:Ri.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:Ri.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Bf=fg();function Hf(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=Oi(e.main,r):t==="dark"&&(e.dark=Di(e.main,i)))}function Ox(e="light"){return e==="dark"?{main:Jr[200],light:Jr[50],dark:Jr[400]}:{main:Jr[700],light:Jr[400],dark:Jr[800]}}function Mx(e="light"){return e==="dark"?{main:Qr[200],light:Qr[50],dark:Qr[400]}:{main:Qr[500],light:Qr[300],dark:Qr[700]}}function Ix(e="light"){return e==="dark"?{main:Zr[500],light:Zr[300],dark:Zr[700]}:{main:Zr[700],light:Zr[400],dark:Zr[800]}}function Nx(e="light"){return e==="dark"?{main:es[400],light:es[300],dark:es[700]}:{main:es[700],light:es[500],dark:es[900]}}function Ax(e="light"){return e==="dark"?{main:ts[400],light:ts[300],dark:ts[700]}:{main:ts[800],light:ts[500],dark:ts[900]}}function Fx(e="light"){return e==="dark"?{main:Gs[400],light:Gs[300],dark:Gs[700]}:{main:"#ed6c02",light:Gs[500],dark:Gs[900]}}function iu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||Ox(t),a=e.secondary||Mx(t),l=e.error||Ix(t),d=e.info||Nx(t),u=e.success||Ax(t),f=e.warning||Fx(t);function p(m){const v=Mf(m,Bf.text.primary)>=n?Bf.text.primary:Dx.text.primary;if(process.env.NODE_ENV!=="production"){const k=Mf(m,v);k<3&&console.error([`MUI: The contrast ratio of ${k}:1 for ${v} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
98
|
+
`))}return v}const y=({color:m,name:v,mainShade:k=500,lightShade:D=300,darkShade:x=700})=>{if(m={...m},!m.main&&m[k]&&(m.main=m[k]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
99
|
+
The color object needs to have a \`main\` property or a \`${k}\` property.`:_o(11,v?` (${v})`:"",k));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
100
|
+
\`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
|
|
97
101
|
|
|
98
102
|
Did you intend to use one of the following approaches?
|
|
99
103
|
|
|
@@ -105,18 +109,34 @@ const theme1 = createTheme({ palette: {
|
|
|
105
109
|
|
|
106
110
|
const theme2 = createTheme({ palette: {
|
|
107
111
|
primary: { main: green[500] },
|
|
108
|
-
} });`:
|
|
109
|
-
`)),Object.keys(
|
|
112
|
+
} });`:_o(12,v?` (${v})`:"",JSON.stringify(m.main)));return Hf(m,"light",D,o),Hf(m,"dark",x,o),m.contrastText||(m.contrastText=p(m.main)),m};let w;return t==="light"?w=hg():t==="dark"&&(w=fg()),process.env.NODE_ENV!=="production"&&(w||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),mn({common:{...Ri},mode:t,primary:y({color:i,name:"primary"}),secondary:y({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:l,name:"error"}),warning:y({color:f,name:"warning"}),info:y({color:d,name:"info"}),success:y({color:u,name:"success"}),grey:kS,contrastThreshold:n,getContrastText:p,augmentColor:y,tonalOffset:o,...w},r)}function Lx(e){const t={};return Object.entries(e).forEach(o=>{const[r,i]=o;typeof i=="object"&&(t[r]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function $x(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Vx(e){return Math.round(e*1e5)/1e5}const zf={textTransform:"uppercase"},Yf='"Roboto", "Helvetica", "Arial", sans-serif';function jx(e,t){const{fontFamily:n=Yf,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:u,pxToRem:f,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=o/14,w=f||(v=>`${v/d*y}rem`),b=(v,k,D,x,S)=>({fontFamily:n,fontWeight:v,fontSize:w(k),lineHeight:D,...n===Yf?{letterSpacing:`${Vx(x/k)}em`}:{},...S,...u}),m={h1:b(r,96,1.167,-1.5),h2:b(r,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,zf),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,zf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mn({htmlFontSize:d,pxToRem:w,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...m},p,{clone:!1})}const Wx=.2,Bx=.14,Hx=.12;function Lt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Wx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Hx})`].join(",")}const zx=["none",Lt(0,2,1,-1,0,1,1,0,0,1,3,0),Lt(0,3,1,-2,0,2,2,0,0,1,5,0),Lt(0,3,3,-2,0,3,4,0,0,1,8,0),Lt(0,2,4,-1,0,4,5,0,0,1,10,0),Lt(0,3,5,-1,0,5,8,0,0,1,14,0),Lt(0,3,5,-1,0,6,10,0,0,1,18,0),Lt(0,4,5,-2,0,7,10,1,0,2,16,1),Lt(0,5,5,-3,0,8,10,1,0,3,14,2),Lt(0,5,6,-3,0,9,12,1,0,3,16,2),Lt(0,6,6,-3,0,10,14,1,0,4,18,3),Lt(0,6,7,-4,0,11,15,1,0,4,20,3),Lt(0,7,8,-4,0,12,17,2,0,5,22,4),Lt(0,7,8,-4,0,13,19,2,0,5,24,4),Lt(0,7,9,-4,0,14,21,2,0,5,26,4),Lt(0,8,9,-5,0,15,22,2,0,6,28,5),Lt(0,8,10,-5,0,16,24,2,0,6,30,5),Lt(0,8,11,-5,0,17,26,2,0,6,32,5),Lt(0,9,11,-5,0,18,28,2,0,7,34,6),Lt(0,9,12,-6,0,19,29,2,0,7,36,6),Lt(0,10,13,-6,0,20,31,3,0,8,38,7),Lt(0,10,13,-6,0,21,33,3,0,8,40,7),Lt(0,10,14,-6,0,22,35,3,0,8,42,7),Lt(0,11,14,-7,0,23,36,3,0,9,44,8),Lt(0,11,15,-7,0,24,38,3,0,9,46,8)],Yx={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ux={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Uf(e){return`${Math.round(e)}ms`}function qx(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Gx(e){const t={...Yx,...e.easing},n={...Ux,...e.duration};return{getAutoHeightDuration:qx,create:(r=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:d=0,...u}=i;if(process.env.NODE_ENV!=="production"){const f=y=>typeof y=="string",p=y=>!Number.isNaN(parseFloat(y));!f(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(a)&&!f(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),f(l)||console.error('MUI: Argument "easing" must be a string.'),!p(d)&&!f(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
113
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(f=>`${f} ${typeof a=="string"?a:Uf(a)} ${l} ${typeof d=="string"?d:Uf(d)}`).join(",")},...e,easing:t,duration:n}}const Kx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Xx(e){return bo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function pg(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!Xx(l)||a.startsWith("unstable_")?delete o[a]:bo(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
110
114
|
|
|
111
115
|
const theme = ${JSON.stringify(t,null,2)};
|
|
112
116
|
|
|
113
117
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
114
118
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
115
119
|
|
|
116
|
-
export default theme;`}function
|
|
117
|
-
`))}
|
|
118
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function qv(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const or=e=>{try{return e()}catch{}},Xv=(e="mui")=>gv(e);function Ao(e,t,r,i){if(!t)return;t=t===!0?{}:t;const s=i==="dark"?"dark":"light";if(!r){e[i]=Bv({...t,palette:{mode:s,...t?.palette}});return}const{palette:o,...l}=Ko({...r,palette:{mode:s,...t?.palette}});return e[i]={...t,palette:o,opacity:{...Pc(s),...t?.opacity},overlays:t?.overlays||Oc(s)},l}function Kv(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:s=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:l=Vv,colorSchemeSelector:h=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...f}=e,p=Object.keys(r)[0],m=i||(r.light&&p!=="light"?"light":p),C=Xv(o),{[m]:k,light:R,dark:y,...O}=r,F={...O};let B=k;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(B=!0),!B)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:qr(21,m));const N=Ao(F,B,f,m);R&&!F.light&&Ao(F,R,void 0,"light"),y&&!F.dark&&Ao(F,y,void 0,"dark");let x={defaultColorScheme:m,...N,cssVarPrefix:o,colorSchemeSelector:h,rootSelector:d,getCssVar:C,colorSchemes:F,font:{...Tv(N.typography),...N.font},spacing:qv(f.spacing)};Object.keys(x.colorSchemes).forEach(te=>{const w=x.colorSchemes[te].palette,G=ce=>{const oe=ce.split("-"),ve=oe[1],Fe=oe[2];return C(ce,w[ve][Fe])};if(w.mode==="light"&&(H(w.common,"background","#fff"),H(w.common,"onBackground","#000")),w.mode==="dark"&&(H(w.common,"background","#000"),H(w.common,"onBackground","#fff")),Gv(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){H(w.Alert,"errorColor",Ge(w.error.light,.6)),H(w.Alert,"infoColor",Ge(w.info.light,.6)),H(w.Alert,"successColor",Ge(w.success.light,.6)),H(w.Alert,"warningColor",Ge(w.warning.light,.6)),H(w.Alert,"errorFilledBg",G("palette-error-main")),H(w.Alert,"infoFilledBg",G("palette-info-main")),H(w.Alert,"successFilledBg",G("palette-success-main")),H(w.Alert,"warningFilledBg",G("palette-warning-main")),H(w.Alert,"errorFilledColor",or(()=>w.getContrastText(w.error.main))),H(w.Alert,"infoFilledColor",or(()=>w.getContrastText(w.info.main))),H(w.Alert,"successFilledColor",or(()=>w.getContrastText(w.success.main))),H(w.Alert,"warningFilledColor",or(()=>w.getContrastText(w.warning.main))),H(w.Alert,"errorStandardBg",qe(w.error.light,.9)),H(w.Alert,"infoStandardBg",qe(w.info.light,.9)),H(w.Alert,"successStandardBg",qe(w.success.light,.9)),H(w.Alert,"warningStandardBg",qe(w.warning.light,.9)),H(w.Alert,"errorIconColor",G("palette-error-main")),H(w.Alert,"infoIconColor",G("palette-info-main")),H(w.Alert,"successIconColor",G("palette-success-main")),H(w.Alert,"warningIconColor",G("palette-warning-main")),H(w.AppBar,"defaultBg",G("palette-grey-100")),H(w.Avatar,"defaultBg",G("palette-grey-400")),H(w.Button,"inheritContainedBg",G("palette-grey-300")),H(w.Button,"inheritContainedHoverBg",G("palette-grey-A100")),H(w.Chip,"defaultBorder",G("palette-grey-400")),H(w.Chip,"defaultAvatarColor",G("palette-grey-700")),H(w.Chip,"defaultIconColor",G("palette-grey-700")),H(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),H(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),H(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),H(w.LinearProgress,"primaryBg",qe(w.primary.main,.62)),H(w.LinearProgress,"secondaryBg",qe(w.secondary.main,.62)),H(w.LinearProgress,"errorBg",qe(w.error.main,.62)),H(w.LinearProgress,"infoBg",qe(w.info.main,.62)),H(w.LinearProgress,"successBg",qe(w.success.main,.62)),H(w.LinearProgress,"warningBg",qe(w.warning.main,.62)),H(w.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.11)`),H(w.Slider,"primaryTrack",qe(w.primary.main,.62)),H(w.Slider,"secondaryTrack",qe(w.secondary.main,.62)),H(w.Slider,"errorTrack",qe(w.error.main,.62)),H(w.Slider,"infoTrack",qe(w.info.main,.62)),H(w.Slider,"successTrack",qe(w.success.main,.62)),H(w.Slider,"warningTrack",qe(w.warning.main,.62));const ce=rn(w.background.default,.8);H(w.SnackbarContent,"bg",ce),H(w.SnackbarContent,"color",or(()=>w.getContrastText(ce))),H(w.SpeedDialAction,"fabHoverBg",rn(w.background.paper,.15)),H(w.StepConnector,"border",G("palette-grey-400")),H(w.StepContent,"border",G("palette-grey-400")),H(w.Switch,"defaultColor",G("palette-common-white")),H(w.Switch,"defaultDisabledColor",G("palette-grey-100")),H(w.Switch,"primaryDisabledColor",qe(w.primary.main,.62)),H(w.Switch,"secondaryDisabledColor",qe(w.secondary.main,.62)),H(w.Switch,"errorDisabledColor",qe(w.error.main,.62)),H(w.Switch,"infoDisabledColor",qe(w.info.main,.62)),H(w.Switch,"successDisabledColor",qe(w.success.main,.62)),H(w.Switch,"warningDisabledColor",qe(w.warning.main,.62)),H(w.TableCell,"border",qe(tn(w.divider,1),.88)),H(w.Tooltip,"bg",tn(w.grey[700],.92))}if(w.mode==="dark"){H(w.Alert,"errorColor",qe(w.error.light,.6)),H(w.Alert,"infoColor",qe(w.info.light,.6)),H(w.Alert,"successColor",qe(w.success.light,.6)),H(w.Alert,"warningColor",qe(w.warning.light,.6)),H(w.Alert,"errorFilledBg",G("palette-error-dark")),H(w.Alert,"infoFilledBg",G("palette-info-dark")),H(w.Alert,"successFilledBg",G("palette-success-dark")),H(w.Alert,"warningFilledBg",G("palette-warning-dark")),H(w.Alert,"errorFilledColor",or(()=>w.getContrastText(w.error.dark))),H(w.Alert,"infoFilledColor",or(()=>w.getContrastText(w.info.dark))),H(w.Alert,"successFilledColor",or(()=>w.getContrastText(w.success.dark))),H(w.Alert,"warningFilledColor",or(()=>w.getContrastText(w.warning.dark))),H(w.Alert,"errorStandardBg",Ge(w.error.light,.9)),H(w.Alert,"infoStandardBg",Ge(w.info.light,.9)),H(w.Alert,"successStandardBg",Ge(w.success.light,.9)),H(w.Alert,"warningStandardBg",Ge(w.warning.light,.9)),H(w.Alert,"errorIconColor",G("palette-error-main")),H(w.Alert,"infoIconColor",G("palette-info-main")),H(w.Alert,"successIconColor",G("palette-success-main")),H(w.Alert,"warningIconColor",G("palette-warning-main")),H(w.AppBar,"defaultBg",G("palette-grey-900")),H(w.AppBar,"darkBg",G("palette-background-paper")),H(w.AppBar,"darkColor",G("palette-text-primary")),H(w.Avatar,"defaultBg",G("palette-grey-600")),H(w.Button,"inheritContainedBg",G("palette-grey-800")),H(w.Button,"inheritContainedHoverBg",G("palette-grey-700")),H(w.Chip,"defaultBorder",G("palette-grey-700")),H(w.Chip,"defaultAvatarColor",G("palette-grey-300")),H(w.Chip,"defaultIconColor",G("palette-grey-300")),H(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),H(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),H(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),H(w.LinearProgress,"primaryBg",Ge(w.primary.main,.5)),H(w.LinearProgress,"secondaryBg",Ge(w.secondary.main,.5)),H(w.LinearProgress,"errorBg",Ge(w.error.main,.5)),H(w.LinearProgress,"infoBg",Ge(w.info.main,.5)),H(w.LinearProgress,"successBg",Ge(w.success.main,.5)),H(w.LinearProgress,"warningBg",Ge(w.warning.main,.5)),H(w.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.13)`),H(w.Slider,"primaryTrack",Ge(w.primary.main,.5)),H(w.Slider,"secondaryTrack",Ge(w.secondary.main,.5)),H(w.Slider,"errorTrack",Ge(w.error.main,.5)),H(w.Slider,"infoTrack",Ge(w.info.main,.5)),H(w.Slider,"successTrack",Ge(w.success.main,.5)),H(w.Slider,"warningTrack",Ge(w.warning.main,.5));const ce=rn(w.background.default,.98);H(w.SnackbarContent,"bg",ce),H(w.SnackbarContent,"color",or(()=>w.getContrastText(ce))),H(w.SpeedDialAction,"fabHoverBg",rn(w.background.paper,.15)),H(w.StepConnector,"border",G("palette-grey-600")),H(w.StepContent,"border",G("palette-grey-600")),H(w.Switch,"defaultColor",G("palette-grey-300")),H(w.Switch,"defaultDisabledColor",G("palette-grey-600")),H(w.Switch,"primaryDisabledColor",Ge(w.primary.main,.55)),H(w.Switch,"secondaryDisabledColor",Ge(w.secondary.main,.55)),H(w.Switch,"errorDisabledColor",Ge(w.error.main,.55)),H(w.Switch,"infoDisabledColor",Ge(w.info.main,.55)),H(w.Switch,"successDisabledColor",Ge(w.success.main,.55)),H(w.Switch,"warningDisabledColor",Ge(w.warning.main,.55)),H(w.TableCell,"border",Ge(tn(w.divider,1),.68)),H(w.Tooltip,"bg",tn(w.grey[700],.92))}Er(w.background,"default"),Er(w.background,"paper"),Er(w.common,"background"),Er(w.common,"onBackground"),Er(w,"divider"),Object.keys(w).forEach(ce=>{const oe=w[ce];oe&&typeof oe=="object"&&(oe.main&&H(w[ce],"mainChannel",cs(us(oe.main))),oe.light&&H(w[ce],"lightChannel",cs(us(oe.light))),oe.dark&&H(w[ce],"darkChannel",cs(us(oe.dark))),oe.contrastText&&H(w[ce],"contrastTextChannel",cs(us(oe.contrastText))),ce==="text"&&(Er(w[ce],"primary"),Er(w[ce],"secondary")),ce==="action"&&(oe.active&&Er(w[ce],"active"),oe.selected&&Er(w[ce],"selected")))})}),x=t.reduce((te,w)=>Ht(te,w),x);const v={prefix:o,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:Uv(x)},{vars:L,generateThemeVars:z,generateStyleSheets:q}=wv(x,v);return x.vars=L,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([te,w])=>{x[te]=w}),x.generateThemeVars=z,x.generateStyleSheets=q,x.generateSpacing=function(){return gc(f.spacing,wa(this))},x.getColorSchemeSelector=_v(h),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=l,x.unstable_sxConfig={...Ds,...f?.unstable_sxConfig},x.unstable_sx=function(w){return ci({sx:w,theme:this})},x.toRuntimeSource=Mc,x}function kh(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Ea({...r===!0?{}:r.palette,mode:t})})}function Ac(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:s=r?void 0:{light:!0},defaultColorScheme:o=r?.mode,...l}=e,h=o||"light",d=s?.[h],f={...s,...r?{[h]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return Ko(e,...t);let p=r;"palette"in e||f[h]&&(f[h]!==!0?p=f[h].palette:h==="dark"&&(p={mode:"dark"}));const m=Ko({...e,palette:p},...t);return m.defaultColorScheme=h,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},kh(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},kh(m,"light",f.light)),m}return!r&&!("light"in f)&&h==="light"&&(f.light=!0),Kv({...l,colorSchemes:f,defaultColorScheme:h,...typeof i!="boolean"&&i},...t)}const Nc=Ac();function Zv(){const e=yc(Nc);return process.env.NODE_ENV!=="production"&&ae.useDebugValue(e),e[ua]||e}function Jv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qv=e=>Jv(e)&&e!=="classes",vt=$y({themeId:ua,defaultTheme:Nc,rootShouldForwardProp:Qv}),ui=mv;process.env.NODE_ENV!=="production"&&(D.node,D.object.isRequired);function di(e){return pv(e)}function ew(e){return Zr("MuiSvgIcon",e)}Jr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tw=e=>{const{color:t,fontSize:r,classes:i}=e,s={root:["root",t!=="inherit"&&`color${xt(t)}`,`fontSize${xt(r)}`]};return ji(s,ew,i)},rw=vt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xt(r.color)}`],t[`fontSize${xt(r.fontSize)}`]]}})(ui(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),bs=ae.forwardRef(function(t,r){const i=di({props:t,name:"MuiSvgIcon"}),{children:s,className:o,color:l="inherit",component:h="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:m,viewBox:C="0 0 24 24",...k}=i,R=ae.isValidElement(s)&&s.type==="svg",y={...i,color:l,component:h,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:C,hasSvgAsChild:R},O={};p||(O.viewBox=C);const F=tw(y);return le.jsxs(rw,{as:h,className:bt(F.root,o),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...O,...k,...R&&s.props,ownerState:y,children:[R?s.props.children:s,m?le.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(bs.propTypes={children:D.node,classes:D.object,className:D.string,color:D.oneOfType([D.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),D.string]),component:D.elementType,fontSize:D.oneOfType([D.oneOf(["inherit","large","medium","small"]),D.string]),htmlColor:D.string,inheritViewBox:D.bool,shapeRendering:D.string,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),titleAccess:D.string,viewBox:D.string});bs&&(bs.muiName="SvgIcon");function Ms(e,t){function r(i,s){return le.jsx(bs,{"data-testid":`${t}Icon`,ref:s,...i,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=bs.muiName,ae.memo(ae.forwardRef(r))}function iw(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Jo(e,t){return Jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jo(e,t)}function sw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jo(e,t)}const Th=nt.createContext(null);function nw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xa(e,t){var r=function(o){return t&&nt.isValidElement(o)?t(o):o},i=Object.create(null);return e&&nt.Children.map(e,function(s){return s}).forEach(function(s){i[s.key]=r(s)}),i}function ow(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var i=Object.create(null),s=[];for(var o in e)o in t?s.length&&(i[o]=s,s=[]):s.push(o);var l,h={};for(var d in t){if(i[d])for(l=0;l<i[d].length;l++){var f=i[d][l];h[i[d][l]]=r(f)}h[d]=r(d)}for(l=0;l<s.length;l++)h[s[l]]=r(s[l]);return h}function oi(e,t,r){return r[t]!=null?r[t]:e.props[t]}function aw(e,t){return xa(e.children,function(r){return nt.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:oi(r,"appear",e),enter:oi(r,"enter",e),exit:oi(r,"exit",e)})})}function lw(e,t,r){var i=xa(e.children),s=ow(t,i);return Object.keys(s).forEach(function(o){var l=s[o];if(nt.isValidElement(l)){var h=o in t,d=o in i,f=t[o],p=nt.isValidElement(f)&&!f.props.in;d&&(!h||p)?s[o]=nt.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:oi(l,"exit",e),enter:oi(l,"enter",e)}):!d&&h&&!p?s[o]=nt.cloneElement(l,{in:!1}):d&&h&&nt.isValidElement(f)&&(s[o]=nt.cloneElement(l,{onExited:r.bind(null,l),in:f.props.in,exit:oi(l,"exit",e),enter:oi(l,"enter",e)}))}}),s}var hw=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},cw={component:"div",childFactory:function(t){return t}},ka=function(e){sw(t,e);function t(i,s){var o;o=e.call(this,i,s)||this;var l=o.handleExited.bind(nw(o));return o.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},o}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,o){var l=o.children,h=o.handleExited,d=o.firstRender;return{children:d?aw(s,h):lw(s,l,h),firstRender:!1}},r.handleExited=function(s,o){var l=xa(this.props.children);s.key in l||(s.props.onExited&&s.props.onExited(o),this.mounted&&this.setState(function(h){var d=gn({},h.children);return delete d[s.key],{children:d}}))},r.render=function(){var s=this.props,o=s.component,l=s.childFactory,h=iw(s,["component","childFactory"]),d=this.state.contextValue,f=hw(this.state.children).map(l);return delete h.appear,delete h.enter,delete h.exit,o===null?nt.createElement(Th.Provider,{value:d},f):nt.createElement(Th.Provider,{value:d},nt.createElement(o,h,f))},t}(nt.Component);ka.propTypes=process.env.NODE_ENV!=="production"?{component:D.any,children:D.node,appear:D.bool,enter:D.bool,exit:D.bool,childFactory:D.func}:{};ka.defaultProps=cw;function uw(e){return Zr("MuiPaper",e)}Jr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const dw=e=>{const{square:t,elevation:r,variant:i,classes:s}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return ji(o,uw,s)},fw=vt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(ui(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Lc=ae.forwardRef(function(t,r){const i=di({props:t,name:"MuiPaper"}),s=Zv(),{className:o,component:l="div",elevation:h=1,square:d=!1,variant:f="elevation",...p}=i,m={...i,component:l,elevation:h,square:d,variant:f},C=dw(m);return process.env.NODE_ENV!=="production"&&s.shadows[h]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${h}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${h}]\` is defined.`].join(`
|
|
119
|
-
|
|
120
|
+
export default theme;`}function xd(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=iu(i),p=ou(e);let y=mn(p,{mixins:$x(p.breakpoints,o),palette:f,shadows:zx.slice(),typography:jx(f,l),transitions:Gx(a),zIndex:{...Kx}});if(y=mn(y,u),y=t.reduce((w,b)=>mn(w,b),y),process.env.NODE_ENV!=="production"){const w=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(m,v)=>{let k;for(k in m){const D=m[k];if(w.includes(k)&&Object.keys(D).length>0){if(process.env.NODE_ENV!=="production"){const x=Oe("",k);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${k}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:D}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
121
|
+
`))}m[k]={}}}};Object.keys(y.components).forEach(m=>{const v=y.components[m].styleOverrides;v&&m.startsWith("Mui")&&b(v,m)})}return y.unstable_sxConfig={...Qi,...u?.unstable_sxConfig},y.unstable_sx=function(b){return Ar({sx:b,theme:this})},y.toRuntimeSource=pg,y}function Rd(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 Zx=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Rd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function mg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function gg(e){return e==="dark"?Zx:[]}function Qx(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=iu(t);return{palette:i,opacity:{...mg(i.mode),...n},overlays:o||gg(i.mode),...r}}function Jx(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 eR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],tR=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 eR(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 nR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ue(e,t,n){!e[t]&&n&&(e[t]=n)}function fi(e){return!e||!e.startsWith("hsl")?e:Jm(e)}function Fo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=hi(fi(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 oR(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{}},rR=(e="mui")=>Rx(e);function qc(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=Qx({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=xd({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...mg(r),...t?.opacity},overlays:t?.overlays||gg(r)},a}function sR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=Jx,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=rR(i),{[p]:w,light:b,dark:m,...v}=n,k={...v};let D=w;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:_o(21,p));const x=qc(k,D,u,p);b&&!k.light&&qc(k,b,void 0,"light"),m&&!k.dark&&qc(k,m,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:k,font:{...Lx(x.typography),...x.font},spacing:oR(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")),nR(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ue(R.Alert,"errorColor",kt(R.error.light,.6)),ue(R.Alert,"infoColor",kt(R.info.light,.6)),ue(R.Alert,"successColor",kt(R.success.light,.6)),ue(R.Alert,"warningColor",kt(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=Aa(R.background.default,.8);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",Aa(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(Na(R.divider,1),.88)),ue(R.Tooltip,"bg",Na(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",kt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",kt(R.info.light,.9)),ue(R.Alert,"successStandardBg",kt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",kt(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",kt(R.primary.main,.5)),ue(R.LinearProgress,"secondaryBg",kt(R.secondary.main,.5)),ue(R.LinearProgress,"errorBg",kt(R.error.main,.5)),ue(R.LinearProgress,"infoBg",kt(R.info.main,.5)),ue(R.LinearProgress,"successBg",kt(R.success.main,.5)),ue(R.LinearProgress,"warningBg",kt(R.warning.main,.5)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ue(R.Slider,"primaryTrack",kt(R.primary.main,.5)),ue(R.Slider,"secondaryTrack",kt(R.secondary.main,.5)),ue(R.Slider,"errorTrack",kt(R.error.main,.5)),ue(R.Slider,"infoTrack",kt(R.info.main,.5)),ue(R.Slider,"successTrack",kt(R.success.main,.5)),ue(R.Slider,"warningTrack",kt(R.warning.main,.5));const K=Aa(R.background.default,.98);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",Aa(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",kt(R.primary.main,.55)),ue(R.Switch,"secondaryDisabledColor",kt(R.secondary.main,.55)),ue(R.Switch,"errorDisabledColor",kt(R.error.main,.55)),ue(R.Switch,"infoDisabledColor",kt(R.info.main,.55)),ue(R.Switch,"successDisabledColor",kt(R.success.main,.55)),ue(R.Switch,"warningDisabledColor",kt(R.warning.main,.55)),ue(R.TableCell,"border",kt(Na(R.divider,1),.68)),ue(R.Tooltip,"bg",Na(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",hi(fi(X.main))),X.light&&ue(R[K],"lightChannel",hi(fi(X.light))),X.dark&&ue(R[K],"darkChannel",hi(fi(X.dark))),X.contrastText&&ue(R[K],"contrastTextChannel",hi(fi(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:tR(S)},{vars:M,generateThemeVars:A,generateStyleSheets:F}=kx(S,C);return S.vars=M,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([z,R])=>{S[z]=R}),S.generateThemeVars=A,S.generateStyleSheets=F,S.generateSpacing=function(){return jm(u.spacing,tu(this))},S.getColorSchemeSelector=Px(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...Qi,...u?.unstable_sxConfig},S.unstable_sx=function(R){return Ar({sx:R,theme:this})},S.toRuntimeSource=pg,S}function qf(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:iu({...n===!0?{}:n.palette,mode:t})})}function yg(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 xd(e,...t);let f=n;"palette"in e||u[l]&&(u[l]!==!0?f=u[l].palette:l==="dark"&&(f={mode:"dark"}));const p=xd({...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},qf(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},qf(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),sR({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const zl=yg();function Is(){const e=jl(zl);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[qi]||e}function Mt({props:e,name:t}){return J_({props:e,name:t,defaultTheme:zl,themeId:qi})}function vg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dn=e=>vg(e)&&e!=="classes",le=G_({themeId:qi,defaultTheme:zl,rootShouldForwardProp:Dn});function bg(e){return P.jsx(Bm,{...e,defaultTheme:zl,themeId:qi})}process.env.NODE_ENV!=="production"&&(bg.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function iR(e){return function(n){return P.jsx(bg,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function aR(){return Hm}const ut=xx;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Xe(e){return _x(e)}function lR(e){return Oe("MuiSvgIcon",e)}De("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cR=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${be(t)}`,`fontSize${be(n)}`]};return Ie(r,lR,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)}`]]}})(ut(({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}}]}))),Mi=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:y="0 0 24 24",...w}=o,b=T.isValidElement(r)&&r.type==="svg",m={...o,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const k=cR(m);return P.jsxs(dR,{as:l,className:Se(k.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...w,...b&&r.props,ownerState:m,children:[b?r.props.children:r,p?P.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Mi.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});Mi&&(Mi.muiName="SvgIcon");function an(e,t){function n(o,r){return P.jsx(Mi,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Mi.muiName,T.memo(T.forwardRef(n))}var Fa={exports:{}},_t={};/**
|
|
123
|
+
* @license React
|
|
124
|
+
* react-is.production.min.js
|
|
125
|
+
*
|
|
126
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the MIT license found in the
|
|
129
|
+
* LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/var Gf;function uR(){if(Gf)return _t;Gf=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function m(v){if(typeof v=="object"&&v!==null){var k=v.$$typeof;switch(k){case e:switch(v=v.type,v){case n:case r:case o:case u:case f:return v;default:switch(v=v&&v.$$typeof,v){case l:case a:case d:case y:case p:case i:return v;default:return k}}case t:return k}}}return _t.ContextConsumer=a,_t.ContextProvider=i,_t.Element=e,_t.ForwardRef=d,_t.Fragment=n,_t.Lazy=y,_t.Memo=p,_t.Portal=t,_t.Profiler=r,_t.StrictMode=o,_t.Suspense=u,_t.SuspenseList=f,_t.isAsyncMode=function(){return!1},_t.isConcurrentMode=function(){return!1},_t.isContextConsumer=function(v){return m(v)===a},_t.isContextProvider=function(v){return m(v)===i},_t.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},_t.isForwardRef=function(v){return m(v)===d},_t.isFragment=function(v){return m(v)===n},_t.isLazy=function(v){return m(v)===y},_t.isMemo=function(v){return m(v)===p},_t.isPortal=function(v){return m(v)===t},_t.isProfiler=function(v){return m(v)===r},_t.isStrictMode=function(v){return m(v)===o},_t.isSuspense=function(v){return m(v)===u},_t.isSuspenseList=function(v){return m(v)===f},_t.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===r||v===o||v===u||v===f||v===w||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===p||v.$$typeof===i||v.$$typeof===a||v.$$typeof===d||v.$$typeof===b||v.getModuleId!==void 0)},_t.typeOf=m,_t}var xt={};/**
|
|
131
|
+
* @license React
|
|
132
|
+
* react-is.development.js
|
|
133
|
+
*
|
|
134
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the MIT license found in the
|
|
137
|
+
* LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/var Kf;function hR(){return Kf||(Kf=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b=!1,m=!1,v=!1,k=!1,D=!1,x;x=Symbol.for("react.module.reference");function S(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===n||Q===r||D||Q===o||Q===u||Q===f||k||Q===w||b||m||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 M=a,A=i,F=e,z=d,R=n,$=y,K=p,X=t,q=r,Y=o,H=u,ae=f,N=!1,O=!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 W(Q){return O||(O=!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 B(Q){return C(Q)===u}function re(Q){return C(Q)===f}xt.ContextConsumer=M,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=W,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=B,xt.isSuspenseList=re,xt.isValidElementType=S,xt.typeOf=C}()),xt}var Xf;function fR(){return Xf||(Xf=1,process.env.NODE_ENV==="production"?Fa.exports=uR():Fa.exports=hR()),Fa.exports}var au=fR();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 Ed(e,t){return Ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ed(e,t)}function lu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ed(e,t)}function pR(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function mR(e,t){e.classList?e.classList.add(t):pR(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Zf(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function gR(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Zf(e.className,t):e.setAttribute("class",Zf(e.className&&e.className.baseVal||"",t))}const Qf={disabled:!1};var yR=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,vR=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 cl=ze.createContext(null);var wg=function(t){return t.scrollTop},pi="unmounted",Tr="exited",kr="entering",as="entered",Td="exiting",Qn=function(e){lu(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=pi:d=Tr,i.state={status:d},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===pi?{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=Td)}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:cs.findDOMNode(this);a&&wg(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tr&&this.setState({status:pi})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,d=this.props.nodeRef?[l]:[cs.findDOMNode(this),l],u=d[0],f=d[1],p=this.getTimeouts(),y=l?p.appear:p.enter;if(!r&&!a||Qf.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:cs.findDOMNode(this);if(!i||Qf.disabled){this.safeSetState({status:Tr},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Td},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:cs.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===pi)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 ze.createElement(cl.Provider,{value:null},typeof a=="function"?a(r,l):ze.cloneElement(ze.Children.only(a),l))},t}(ze.Component);Qn.contextType=cl;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=yR;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=pi;Qn.EXITED=Tr;Qn.ENTERING=kr;Qn.ENTERED=as;Qn.EXITING=Td;var bR=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return mR(t,o)})},Gc=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return gR(t,o)})},cu=function(e){lu(t,e);function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1];o.removeClasses(f,"exit"),o.addClass(f,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,d)},o.onEntering=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.addClass(f,y,"active"),o.props.onEntering&&o.props.onEntering(l,d)},o.onEntered=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.removeClasses(f,y),o.addClass(f,y,"done"),o.props.onEntered&&o.props.onEntered(l,d)},o.onExit=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var d=o.resolveArguments(l),u=d[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,d){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,d]},o.getClassNames=function(l){var d=o.props.classNames,u=typeof d=="string",f=u&&d?d+"-":"",p=u?""+f+l:d[l],y=u?p+"-active":d[l+"Active"],w=u?p+"-done":d[l+"Done"];return{baseClassName:p,activeClassName:y,doneClassName:w}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],d=this.getClassNames("enter"),u=d.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&wg(r),l&&(this.appliedClasses[i][a]=l,bR(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&&Gc(r,l),d&&Gc(r,d),u&&Gc(r,u)},n.render=function(){var r=this.props;r.classNames;var i=We(r,["classNames"]);return ze.createElement(Qn,Z({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ze.Component);cu.defaultProps={classNames:""};cu.propTypes=process.env.NODE_ENV!=="production"?Z({},Qn.propTypes,{classNames:vR,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function wR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function du(e,t){var n=function(i){return t&&ze.isValidElement(i)?t(i):i},o=Object.create(null);return e&&ze.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function CR(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 SR(e,t){return du(e.children,function(n){return ze.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 _R(e,t,n){var o=du(e.children),r=CR(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(ze.isValidElement(a)){var l=i in t,d=i in o,u=t[i],f=ze.isValidElement(u)&&!u.props.in;d&&(!l||f)?r[i]=ze.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Pr(a,"exit",e),enter:Pr(a,"enter",e)}):!d&&l&&!f?r[i]=ze.cloneElement(a,{in:!1}):d&&l&&ze.isValidElement(u)&&(r[i]=ze.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Pr(a,"exit",e),enter:Pr(a,"enter",e)}))}}),r}var xR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},RR={component:"div",childFactory:function(t){return t}},ta=function(e){lu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(wR(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?SR(r,l):_R(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=du(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=xR(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?ze.createElement(cl.Provider,{value:d},u):ze.createElement(cl.Provider,{value:d},ze.createElement(i,l,u))},t}(ze.Component);ta.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};ta.defaultProps=RR;const Cg=e=>e.scrollTop;function dl(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 ER(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 TR=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ie(i,ER,r)},kR=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}`]]}})(ut(({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)"}}]}))),Ns=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiPaper"}),r=Is(),{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=TR(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
|
+
`)),P.jsx(kR,{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(${it("#fff",Rd(l))}, ${it("#fff",Rd(l))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(Ns.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:fr(lg,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,w=f[e]||o,b=Hl(p[e],r),{props:{component:m,...v},internalRef:k}=ug({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:b}),D=at(k,b?.ref,t.ref),x=a?a(v):{},S={...r,...x},C=e==="root"?m||u:m,M=cg(w,{...e==="root"&&!u&&!f[e]&&l,...e!=="root"&&!f[e]&&l,...v,...C&&{as:C},ref:D},S);return Object.keys(x).forEach(A=>{delete M[A]}),[w,M]}class ul{static create(){return new ul}static use(){const t=og(ul.create).current,[n,o]=T.useState(!1);return t.shouldMount=n,t.setShouldMount=o,T.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=DR(),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 PR(){return ul.use()}function DR(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Sg(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:l,onExited:d,timeout:u}=e,[f,p]=T.useState(!1),y=Se(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},b=Se(n.child,f&&n.childLeaving,o&&n.childPulsate);return!l&&!f&&p(!0),T.useEffect(()=>{if(!l&&d!=null){const m=setTimeout(d,u);return()=>{clearTimeout(m)}}},[d,l,u]),P.jsx("span",{className:y,style:w,children:P.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(Sg.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"]),kd=550,OR=80,MR=Dl`
|
|
120
140
|
0% {
|
|
121
141
|
transform: scale(0);
|
|
122
142
|
opacity: 0.1;
|
|
@@ -126,7 +146,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
126
146
|
transform: scale(1);
|
|
127
147
|
opacity: 0.3;
|
|
128
148
|
}
|
|
129
|
-
`,
|
|
149
|
+
`,IR=Dl`
|
|
130
150
|
0% {
|
|
131
151
|
opacity: 1;
|
|
132
152
|
}
|
|
@@ -134,7 +154,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
134
154
|
100% {
|
|
135
155
|
opacity: 0;
|
|
136
156
|
}
|
|
137
|
-
`,
|
|
157
|
+
`,NR=Dl`
|
|
138
158
|
0% {
|
|
139
159
|
transform: scale(1);
|
|
140
160
|
}
|
|
@@ -146,23 +166,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
146
166
|
100% {
|
|
147
167
|
transform: scale(1);
|
|
148
168
|
}
|
|
149
|
-
`,
|
|
169
|
+
`,AR=le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),FR=le(Sg,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
150
170
|
opacity: 0;
|
|
151
171
|
position: absolute;
|
|
152
172
|
|
|
153
|
-
&.${
|
|
173
|
+
&.${zn.rippleVisible} {
|
|
154
174
|
opacity: 0.3;
|
|
155
175
|
transform: scale(1);
|
|
156
|
-
animation-name: ${
|
|
157
|
-
animation-duration: ${
|
|
176
|
+
animation-name: ${MR};
|
|
177
|
+
animation-duration: ${kd}ms;
|
|
158
178
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
159
179
|
}
|
|
160
180
|
|
|
161
|
-
&.${
|
|
181
|
+
&.${zn.ripplePulsate} {
|
|
162
182
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
163
183
|
}
|
|
164
184
|
|
|
165
|
-
& .${
|
|
185
|
+
& .${zn.child} {
|
|
166
186
|
opacity: 1;
|
|
167
187
|
display: block;
|
|
168
188
|
width: 100%;
|
|
@@ -171,36 +191,51 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
171
191
|
background-color: currentColor;
|
|
172
192
|
}
|
|
173
193
|
|
|
174
|
-
& .${
|
|
194
|
+
& .${zn.childLeaving} {
|
|
175
195
|
opacity: 0;
|
|
176
|
-
animation-name: ${
|
|
177
|
-
animation-duration: ${
|
|
196
|
+
animation-name: ${IR};
|
|
197
|
+
animation-duration: ${kd}ms;
|
|
178
198
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
179
199
|
}
|
|
180
200
|
|
|
181
|
-
& .${
|
|
201
|
+
& .${zn.childPulsate} {
|
|
182
202
|
position: absolute;
|
|
183
203
|
/* @noflip */
|
|
184
204
|
left: 0px;
|
|
185
205
|
top: 0;
|
|
186
|
-
animation-name: ${
|
|
206
|
+
animation-name: ${NR};
|
|
187
207
|
animation-duration: 2500ms;
|
|
188
208
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
189
209
|
animation-iteration-count: infinite;
|
|
190
210
|
animation-delay: 200ms;
|
|
191
211
|
}
|
|
192
|
-
`,
|
|
193
|
-
`)):null),classes:D.object,className:D.string,color:D.oneOfType([D.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),D.string]),disabled:D.bool,disableFocusRipple:D.bool,disableRipple:D.bool,edge:D.oneOf(["end","start",!1]),size:D.oneOfType([D.oneOf(["small","medium","large"]),D.string]),sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object])});const Aw=Ms(le.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Nw=Ms(le.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Lw=Ms(le.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Fw=Ms(le.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Iw=Ms(le.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ww=e=>{const{variant:t,color:r,severity:i,classes:s}=e,o={root:["root",`color${xt(r||i)}`,`${t}${xt(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ji(o,Tw,s)},Hw=vt(Lc,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xt(r.color||r.severity)}`]]}})(ui(({theme:e})=>{const t=e.palette.mode==="light"?ws:_s,r=e.palette.mode==="light"?_s:ws;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(fs(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${Mh.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(fs(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${Mh.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(fs(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),Yw=vt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),zw=vt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ph=vt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Oh={success:le.jsx(Aw,{fontSize:"inherit"}),warning:le.jsx(Nw,{fontSize:"inherit"}),error:le.jsx(Lw,{fontSize:"inherit"}),info:le.jsx(Fw,{fontSize:"inherit"})},Yc=ae.forwardRef(function(t,r){const i=di({props:t,name:"MuiAlert"}),{action:s,children:o,className:l,closeText:h="Close",color:d,components:f={},componentsProps:p={},icon:m,iconMapping:C=Oh,onClose:k,role:R="alert",severity:y="success",slotProps:O={},slots:F={},variant:B="standard",...N}=i,x={...i,color:d,severity:y,variant:B,colorSeverity:d||y},v=Ww(x),L={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...F},slotProps:{...p,...O}},[z,q]=Dh("closeButton",{elementType:Hc,externalForwardedProps:L,ownerState:x}),[te,w]=Dh("closeIcon",{elementType:Iw,externalForwardedProps:L,ownerState:x});return le.jsxs(Hw,{role:R,elevation:0,ownerState:x,className:bt(v.root,l),ref:r,...N,children:[m!==!1?le.jsx(Yw,{ownerState:x,className:v.icon,children:m||C[y]||Oh[y]}):null,le.jsx(zw,{ownerState:x,className:v.message,children:o}),s!=null?le.jsx(Ph,{ownerState:x,className:v.action,children:s}):null,s==null&&k?le.jsx(Ph,{ownerState:x,className:v.action,children:le.jsx(z,{size:"small","aria-label":h,title:h,color:"inherit",onClick:k,...q,children:le.jsx(te,{fontSize:"small",...w})})}):null]})});process.env.NODE_ENV!=="production"&&(Yc.propTypes={action:D.node,children:D.node,classes:D.object,className:D.string,closeText:D.string,color:D.oneOfType([D.oneOf(["error","info","success","warning"]),D.string]),components:D.shape({CloseButton:D.elementType,CloseIcon:D.elementType}),componentsProps:D.shape({closeButton:D.object,closeIcon:D.object}),icon:D.node,iconMapping:D.shape({error:D.node,info:D.node,success:D.node,warning:D.node}),onClose:D.func,role:D.string,severity:D.oneOfType([D.oneOf(["error","info","success","warning"]),D.string]),slotProps:D.shape({closeButton:D.oneOfType([D.func,D.object]),closeIcon:D.oneOfType([D.func,D.object])}),slots:D.shape({closeButton:D.elementType,closeIcon:D.elementType}),sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),variant:D.oneOfType([D.oneOf(["filled","outlined","standard"]),D.string])});const $w=Jr("MuiBox",["root"]),Bw=Ac(),Bn=Fy({themeId:ua,defaultTheme:Bw,defaultClassName:$w.root,generateClassName:vc.generate});process.env.NODE_ENV!=="production"&&(Bn.propTypes={children:D.node,component:D.elementType,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object])});function Vw(e){return Zr("MuiDivider",e)}Jr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const jw=e=>{const{absolute:t,children:r,classes:i,flexItem:s,light:o,orientation:l,textAlign:h,variant:d}=e;return ji({root:["root",t&&"absolute",d,o&&"light",l==="vertical"&&"vertical",s&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",h==="right"&&l!=="vertical"&&"textAlignRight",h==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},Vw,i)},Uw=vt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(ui(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Bi(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Gw=vt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(ui(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),bn=ae.forwardRef(function(t,r){const i=di({props:t,name:"MuiDivider"}),{absolute:s=!1,children:o,className:l,orientation:h="horizontal",component:d=o||h==="vertical"?"div":"hr",flexItem:f=!1,light:p=!1,role:m=d!=="hr"?"separator":void 0,textAlign:C="center",variant:k="fullWidth",...R}=i,y={...i,absolute:s,component:d,flexItem:f,light:p,orientation:h,role:m,textAlign:C,variant:k},O=jw(y);return le.jsx(Uw,{as:d,className:bt(O.root,l),role:m,ref:r,ownerState:y,"aria-orientation":m==="separator"&&(d!=="hr"||h==="vertical")?h:void 0,...R,children:o?le.jsx(Gw,{className:O.wrapper,ownerState:y,children:o}):null})});bn&&(bn.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(bn.propTypes={absolute:D.bool,children:D.node,classes:D.object,className:D.string,component:D.elementType,flexItem:D.bool,light:D.bool,orientation:D.oneOf(["horizontal","vertical"]),role:D.string,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),textAlign:D.oneOf(["center","left","right"]),variant:D.oneOfType([D.oneOf(["fullWidth","inset","middle"]),D.string])});const qw=vt(Bn)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),Xw={Wrapper:qw},Kw=({setIsOpened:e})=>le.jsx(Xw.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),Zw=vt(Bn)(({theme:e})=>({visibility:"hidden",color:e.palette.text.primary,backgroundColor:e.palette.background.default,borderRadius:"5px",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0})),Jw={Content:Zw},Qw=({children:e,setIsOpened:t})=>{const r=document.getElementById("portal-root");return r?fm.createPortal(le.jsxs(nt.Fragment,{children:[le.jsx(Jw.Content,{id:Kh,children:e}),le.jsx(Kw,{setIsOpened:t})]}),r):null},No=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function zc(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const e_=["FormatterStatus","FormatterNumber"];class t_{constructor(){this.table=null}download(t,r,i){if(this.table||(this.table=t),this.table=t,!t.grid)return;const o=this.createCSV(t),l=document.createElement("a");l.href="data:text/csv;charset=utf-8,"+encodeURIComponent(o),l.target="_blank",l.download=`${r}-${i}-${t.id}.csv`,l.click()}createCSV(t){this.table||(this.table=t);const r=t.grid;if(!r)return"";const i=this.getTitle(),s=this.getCSVHeader(r),o=this.getCSVBody(r);return`${i}${s}${o}`}getTitle(){return""}getCSVHeader(t){const s=t.getColumns().filter(o=>o.forPrint).reduce((o,l)=>{if(typeof l.name=="string"){const h=No(l.name);return o.concat(`"${h}",`)}else return o.concat('" ",')},"");return this.addRowSeparator(s)}getCSVBody(t){const r=t.getData(),s=t.getColumns().filter(o=>o.forPrint);return ZS(t).reduce((o,l)=>{const h=r.getItemMetadata(l),d=r.getItem(l),f=d.__group,p=d.__groupTotals;let m="";if(f){const C=No(zc(d.title));m+=`"${C}",`}else for(let C=0;C<s.length;++C){const k=s[C],R=k.field,y=h?.columns?.[R]?.formatter,O=k.printer||y||k.formatter;let F=d[R];if(p){const N=k.groupTotalsFormatter;F=N?N(d,k,t):""}else O&&!e_.includes(O.name)&&(F=O(0,0,F,k,d,t));const B=No(F);m+=`"${B}",`}return this.addRowSeparator(`${o}${m}`)},"")}addRowSeparator(t){return`${t}
|
|
194
|
-
`}
|
|
212
|
+
`,_g=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...l}=o,[d,u]=T.useState([]),f=T.useRef(0),p=T.useRef(null);T.useEffect(()=>{p.current&&(p.current(),p.current=null)},[d]);const y=T.useRef(!1),w=rg(),b=T.useRef(null),m=T.useRef(null),v=T.useCallback(S=>{const{pulsate:C,rippleX:M,rippleY:A,rippleSize:F,cb:z}=S;u(R=>[...R,P.jsx(FR,{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:kd,pulsate:C,rippleX:M,rippleY:A,rippleSize:F},f.current)]),f.current+=1,p.current=z},[i]),k=T.useCallback((S={},C={},M=()=>{})=>{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:m.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?b.current===null&&(b.current=()=>{v({pulsate:A,rippleX:K,rippleY:X,rippleSize:q,cb:M})},w.start(OR,()=>{b.current&&(b.current(),b.current=null)})):v({pulsate:A,rippleX:K,rippleY:X,rippleSize:q,cb:M})},[r,v,w]),D=T.useCallback(()=>{k({},{pulsate:!0})},[k]),x=T.useCallback((S,C)=>{if(w.clear(),S?.type==="touchend"&&b.current){b.current(),b.current=null,w.start(0,()=>{x(S,C)});return}b.current=null,u(M=>M.length>0?M.slice(1):M),p.current=C},[w]);return T.useImperativeHandle(n,()=>({pulsate:D,start:k,stop:x}),[D,k,x]),P.jsx(AR,{className:Se(zn.root,i.root,a),ref:m,...l,children:P.jsx(ta,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(_g.propTypes={center:s.bool,classes:s.object,className:s.string});function LR(e){return Oe("MuiButtonBase",e)}const $R=De("MuiButtonBase",["root","disabled","focusVisible"]),VR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},LR,r);return n&&o&&(a.root+=` ${o}`),a},jR=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"},[`&.${$R.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dr=T.forwardRef(function(t,n){const o=Xe({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:w,LinkComponent:b="a",onBlur:m,onClick:v,onContextMenu:k,onDragLeave:D,onFocus:x,onFocusVisible:S,onKeyDown:C,onKeyUp:M,onMouseDown:A,onMouseLeave:F,onMouseUp:z,onTouchEnd:R,onTouchMove:$,onTouchStart:K,tabIndex:X=0,TouchRippleProps:q,touchRippleRef:Y,type:H,...ae}=o,N=T.useRef(null),O=PR(),V=at(O.ref,Y),[W,ne]=T.useState(!1);u&&W&&ne(!1),T.useImperativeHandle(r,()=>({focusVisible:()=>{ne(!0),N.current.focus()}}),[]);const oe=O.shouldMount&&!f&&!u;T.useEffect(()=>{W&&y&&!f&&O.pulsate()},[f,y,W,O]);function se(Pe,ft,Kt=p){return Ee(st=>(ft&&ft(st),Kt||O[Pe](st),!0))}const j=se("start",A),J=se("stop",k),ee=se("stop",D),te=se("stop",z),ce=se("stop",Pe=>{W&&Pe.preventDefault(),F&&F(Pe)}),ie=se("start",K),he=se("stop",R),B=se("stop",$),re=se("stop",Pe=>{$f(Pe.target)||ne(!1),m&&m(Pe)},!1),Q=Ee(Pe=>{N.current||(N.current=Pe.currentTarget),$f(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=Ee(Pe=>{y&&!Pe.repeat&&W&&Pe.key===" "&&O.stop(Pe,()=>{O.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=Ee(Pe=>{y&&Pe.key===" "&&W&&!Pe.defaultPrevented&&O.stop(Pe,()=>{O.pulsate(Pe)}),M&&M(Pe),v&&Pe.target===Pe.currentTarget&&fe()&&Pe.key===" "&&!Pe.defaultPrevented&&v(Pe)});let ve=d;ve==="button"&&(ae.href||ae.to)&&(ve=b);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:W},rt=VR(Ae);return P.jsxs(jR,{as:ve,className:Se(rt.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:B,onTouchStart:ie,ref:$e,tabIndex:u?-1:X,type:H,...xe,...ae,children:[a,oe?P.jsx(_g,{ref:V,center:i,...q}):null]})});process.env.NODE_ENV!=="production"&&(dr.propTypes={action:Wt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Bl,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 WR(e){return typeof e.main=="string"}function BR(e,t=[]){if(!WR(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&&BR(t,e)}function HR(e){return Oe("MuiAlert",e)}const Jf=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 zR(e){return Oe("MuiIconButton",e)}const YR=De("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),UR=e=>{const{classes:t,disabled:n,color:o,edge:r,size:i}=e,a={root:["root",n&&"disabled",o!=="default"&&`color${be(o)}`,r&&`edge${be(r)}`,`size${be(i)}`]};return Ie(a,zR,t)},qR=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)}`]]}})(ut(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ut(({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})`:it((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${YR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),As=T.forwardRef(function(t,n){const o=Xe({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},w=UR(y);return P.jsx(qR,{className:Se(w.root,a),centerRipple:!0,focusRipple:!u,disabled:d,ref:n,...p,ownerState:y,children:i})});process.env.NODE_ENV!=="production"&&(As.propTypes={children:fr(s.node,e=>T.Children.toArray(e.children).some(n=>T.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
213
|
+
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const GR=an(P.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),KR=an(P.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),XR=an(P.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ZR=an(P.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),QR=an(P.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),JR=e=>{const{variant:t,color:n,severity:o,classes:r}=e,i={root:["root",`color${be(n||o)}`,`${t}${be(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(i,HR,r)},eE=le(Ns,{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)}`]]}})(ut(({theme:e})=>{const t=e.palette.mode==="light"?Di:Oi,n=e.palette.mode==="light"?Oi:Di;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),[`& .${Jf.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}`,[`& .${Jf.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)}}}))]}})),tE=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),nE=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ep=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}),tp={success:P.jsx(GR,{fontSize:"inherit"}),warning:P.jsx(KR,{fontSize:"inherit"}),error:P.jsx(XR,{fontSize:"inherit"}),info:P.jsx(ZR,{fontSize:"inherit"})},xg=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiAlert"}),{action:r,children:i,className:a,closeText:l="Close",color:d,components:u={},componentsProps:f={},icon:p,iconMapping:y=tp,onClose:w,role:b="alert",severity:m="success",slotProps:v={},slots:k={},variant:D="standard",...x}=o,S={...o,color:d,severity:m,variant:D,colorSeverity:d||m},C=JR(S),M={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...k},slotProps:{...f,...v}},[A,F]=Rn("closeButton",{elementType:As,externalForwardedProps:M,ownerState:S}),[z,R]=Rn("closeIcon",{elementType:QR,externalForwardedProps:M,ownerState:S});return P.jsxs(eE,{role:b,elevation:0,ownerState:S,className:Se(C.root,a),ref:n,...x,children:[p!==!1?P.jsx(tE,{ownerState:S,className:C.icon,children:p||y[m]||tp[m]}):null,P.jsx(nE,{ownerState:S,className:C.message,children:i}),r!=null?P.jsx(ep,{ownerState:S,className:C.action,children:r}):null,r==null&&w?P.jsx(ep,{ownerState:S,className:C.action,children:P.jsx(A,{size:"small","aria-label":l,title:l,color:"inherit",onClick:w,...F,children:P.jsx(z,{fontSize:"small",...R})})}):null]})});process.env.NODE_ENV!=="production"&&(xg.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 oE(e){return Oe("MuiTypography",e)}const np=De("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),rE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},sE=aR(),iE=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 Ie(l,oE,a)},aE=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]}})(ut(({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}}]}))),op={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},En=T.forwardRef(function(t,n){const{color:o,...r}=Xe({props:t,name:"MuiTypography"}),i=!rE[o],a=sE({...r,...i&&{color:o}}),{align:l="inherit",className:d,component:u,gutterBottom:f=!1,noWrap:p=!1,paragraph:y=!1,variant:w="body1",variantMapping:b=op,...m}=a,v={...a,align:l,color:o,className:d,component:u,gutterBottom:f,noWrap:p,paragraph:y,variant:w,variantMapping:b},k=u||(y?"p":b[w]||op[w])||"span",D=iE(v);return P.jsx(aE,{as:k,ref:n,className:Se(D.root,d),...m,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...m.style}})});process.env.NODE_ENV!=="production"&&(En.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 Tn="top",Gn="bottom",Kn="right",kn="left",uu="auto",na=[Tn,Gn,Kn,kn],xs="start",Ii="end",lE="clippingParents",Rg="viewport",Xs="popper",cE="reference",rp=na.reduce(function(e,t){return e.concat([t+"-"+xs,t+"-"+Ii])},[]),Eg=[].concat(na,[uu]).reduce(function(e,t){return e.concat([t,t+"-"+xs,t+"-"+Ii])},[]),dE="beforeRead",uE="read",hE="afterRead",fE="beforeMain",pE="main",mE="afterMain",gE="beforeWrite",yE="write",vE="afterWrite",bE=[dE,uE,hE,fE,pE,mE,gE,yE,vE];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 hu(e){if(typeof ShadowRoot>"u")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wE(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 CE(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 SE={name:"applyStyles",enabled:!0,phase:"write",fn:wE,effect:CE,requires:["computeStyles"]};function So(e){return e.split("-")[0]}var Mr=Math.max,hl=Math.min,Rs=Math.round;function Pd(){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 Tg(){return!/^((?!chrome|android).)*safari/i.test(Pd())}function Es(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=!Tg()&&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 fu(e){var t=Es(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 kg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Go(e){return Ln(e).getComputedStyle(e)}function _E(e){return["table","td","th"].indexOf(Ro(e))>=0}function mr(e){return((Fr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yl(e){return Ro(e)==="html"?e:e.assignedSlot||e.parentNode||(hu(e)?e.host:null)||mr(e)}function sp(e){return!qn(e)||Go(e).position==="fixed"?null:e.offsetParent}function xE(e){var t=/firefox/i.test(Pd()),n=/Trident/i.test(Pd());if(n&&qn(e)){var o=Go(e);if(o.position==="fixed")return null}var r=Yl(e);for(hu(r)&&(r=r.host);qn(r)&&["html","body"].indexOf(Ro(r))<0;){var i=Go(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 oa(e){for(var t=Ln(e),n=sp(e);n&&_E(n)&&Go(n).position==="static";)n=sp(n);return n&&(Ro(n)==="html"||Ro(n)==="body"&&Go(n).position==="static")?t:n||xE(e)||t}function pu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vi(e,t,n){return Mr(e,hl(t,n))}function RE(e,t,n){var o=vi(e,t,n);return o>n?n:o}function Pg(){return{top:0,right:0,bottom:0,left:0}}function Dg(e){return Object.assign({},Pg(),e)}function Og(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var EE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Dg(typeof t!="number"?t:Og(t,na))};function TE(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=pu(l),u=[kn,Kn].indexOf(l)>=0,f=u?"height":"width";if(!(!i||!a)){var p=EE(r.padding,n),y=fu(i),w=d==="y"?Tn:kn,b=d==="y"?Gn:Kn,m=n.rects.reference[f]+n.rects.reference[d]-a[d]-n.rects.popper[f],v=a[d]-n.rects.reference[d],k=oa(i),D=k?d==="y"?k.clientHeight||0:k.clientWidth||0:0,x=m/2-v/2,S=p[w],C=D-y[f]-p[b],M=D/2-y[f]/2+x,A=vi(S,M,C),F=d;n.modifiersData[o]=(t={},t[F]=A,t.centerOffset=A-M,t)}}function kE(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)||kg(t.elements.popper,r)&&(t.elements.arrow=r))}const PE={name:"arrow",enabled:!0,phase:"main",fn:TE,effect:kE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ts(e){return e.split("-")[1]}var DE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function OE(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 ip(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,w=y===void 0?0:y,b=a.y,m=b===void 0?0:b,v=typeof f=="function"?f({x:w,y:m}):{x:w,y:m};w=v.x,m=v.y;var k=a.hasOwnProperty("x"),D=a.hasOwnProperty("y"),x=kn,S=Tn,C=window;if(u){var M=oa(n),A="clientHeight",F="clientWidth";if(M===Ln(n)&&(M=mr(n),Go(M).position!=="static"&&l==="absolute"&&(A="scrollHeight",F="scrollWidth")),M=M,r===Tn||(r===kn||r===Kn)&&i===Ii){S=Gn;var z=p&&M===C&&C.visualViewport?C.visualViewport.height:M[A];m-=z-o.height,m*=d?1:-1}if(r===kn||(r===Tn||r===Gn)&&i===Ii){x=Kn;var R=p&&M===C&&C.visualViewport?C.visualViewport.width:M[F];w-=R-o.width,w*=d?1:-1}}var $=Object.assign({position:l},u&&DE),K=f===!0?OE({x:w,y:m},Ln(n)):{x:w,y:m};if(w=K.x,m=K.y,d){var X;return Object.assign({},$,(X={},X[S]=D?"0":"",X[x]=k?"0":"",X.transform=(C.devicePixelRatio||1)<=1?"translate("+w+"px, "+m+"px)":"translate3d("+w+"px, "+m+"px, 0)",X))}return Object.assign({},$,(t={},t[S]=D?m+"px":"",t[x]=k?w+"px":"",t.transform="",t))}function ME(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:Ts(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,ip(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,ip(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 IE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ME,data:{}};var La={passive:!0};function NE(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,La)}),l&&d.addEventListener("resize",n.update,La),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,La)}),l&&d.removeEventListener("resize",n.update,La)}}const AE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:NE,data:{}};var FE={left:"right",right:"left",bottom:"top",top:"bottom"};function Qa(e){return e.replace(/left|right|bottom|top/g,function(t){return FE[t]})}var LE={start:"end",end:"start"};function ap(e){return e.replace(/start|end/g,function(t){return LE[t]})}function mu(e){var t=Ln(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function gu(e){return Es(mr(e)).left+mu(e).scrollLeft}function $E(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=Tg();(u||!u&&t==="fixed")&&(l=r.offsetLeft,d=r.offsetTop)}return{width:i,height:a,x:l+gu(e),y:d}}function VE(e){var t,n=mr(e),o=mu(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+gu(e),d=-o.scrollTop;return Go(r||n).direction==="rtl"&&(l+=Mr(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:d}}function yu(e){var t=Go(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Mg(e){return["html","body","#document"].indexOf(Ro(e))>=0?e.ownerDocument.body:qn(e)&&yu(e)?e:Mg(Yl(e))}function bi(e,t){var n;t===void 0&&(t=[]);var o=Mg(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Ln(o),a=r?[i].concat(i.visualViewport||[],yu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(bi(Yl(a)))}function Dd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jE(e,t){var n=Es(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function lp(e,t,n){return t===Rg?Dd($E(e,n)):Fr(t)?jE(t,n):Dd(VE(mr(e)))}function WE(e){var t=bi(Yl(e)),n=["absolute","fixed"].indexOf(Go(e).position)>=0,o=n&&qn(e)?oa(e):e;return Fr(o)?t.filter(function(r){return Fr(r)&&kg(r,o)&&Ro(r)!=="body"}):[]}function BE(e,t,n,o){var r=t==="clippingParents"?WE(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(d,u){var f=lp(e,u,o);return d.top=Mr(f.top,d.top),d.right=hl(f.right,d.right),d.bottom=hl(f.bottom,d.bottom),d.left=Mr(f.left,d.left),d},lp(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 Ig(e){var t=e.reference,n=e.element,o=e.placement,r=o?So(o):null,i=o?Ts(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(r){case Tn: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 kn:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var u=r?pu(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 Ii:d[u]=d[u]+(t[f]/2-n[f]/2);break}}return d}function Ni(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?lE:l,u=n.rootBoundary,f=u===void 0?Rg:u,p=n.elementContext,y=p===void 0?Xs:p,w=n.altBoundary,b=w===void 0?!1:w,m=n.padding,v=m===void 0?0:m,k=Dg(typeof v!="number"?v:Og(v,na)),D=y===Xs?cE:Xs,x=e.rects.popper,S=e.elements[b?D:y],C=BE(Fr(S)?S:S.contextElement||mr(e.elements.popper),d,f,a),M=Es(e.elements.reference),A=Ig({reference:M,element:x,placement:r}),F=Dd(Object.assign({},x,A)),z=y===Xs?F:M,R={top:C.top-z.top+k.top,bottom:z.bottom-C.bottom+k.bottom,left:C.left-z.left+k.left,right:z.right-C.right+k.right},$=e.modifiersData.offset;if(y===Xs&&$){var K=$[r];Object.keys(R).forEach(function(X){var q=[Kn,Gn].indexOf(X)>=0?1:-1,Y=[Tn,Gn].indexOf(X)>=0?"y":"x";R[X]+=K[Y]*q})}return R}function HE(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?Eg:d,f=Ts(o),p=f?l?rp:rp.filter(function(b){return Ts(b)===f}):na,y=p.filter(function(b){return u.indexOf(b)>=0});y.length===0&&(y=p);var w=y.reduce(function(b,m){return b[m]=Ni(e,{placement:m,boundary:r,rootBoundary:i,padding:a})[So(m)],b},{});return Object.keys(w).sort(function(b,m){return w[b]-w[m]})}function zE(e){if(So(e)===uu)return[];var t=Qa(e);return[ap(e),t,ap(t)]}function YE(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,w=n.flipVariations,b=w===void 0?!0:w,m=n.allowedAutoPlacements,v=t.options.placement,k=So(v),D=k===v,x=d||(D||!b?[Qa(v)]:zE(v)),S=[v].concat(x).reduce(function(se,j){return se.concat(So(j)===uu?HE(t,{placement:j,boundary:f,rootBoundary:p,padding:u,flipVariations:b,allowedAutoPlacements:m}):j)},[]),C=t.rects.reference,M=t.rects.popper,A=new Map,F=!0,z=S[0],R=0;R<S.length;R++){var $=S[R],K=So($),X=Ts($)===xs,q=[Tn,Gn].indexOf(K)>=0,Y=q?"width":"height",H=Ni(t,{placement:$,boundary:f,rootBoundary:p,altBoundary:y,padding:u}),ae=q?X?Kn:kn:X?Gn:Tn;C[Y]>M[Y]&&(ae=Qa(ae));var N=Qa(ae),O=[];if(i&&O.push(H[K]<=0),l&&O.push(H[ae]<=0,H[N]<=0),O.every(function(se){return se})){z=$,F=!1;break}A.set($,O)}if(F)for(var V=b?3:1,W=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=W(ne);if(oe==="break")break}t.placement!==z&&(t.modifiersData[o]._skip=!0,t.placement=z,t.reset=!0)}}const UE={name:"flip",enabled:!0,phase:"main",fn:YE,requiresIfExists:["offset"],data:{_skip:!1}};function cp(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 dp(e){return[Tn,Kn,Gn,kn].some(function(t){return e[t]>=0})}function qE(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ni(t,{elementContext:"reference"}),l=Ni(t,{altBoundary:!0}),d=cp(a,o),u=cp(l,r,i),f=dp(d),p=dp(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 GE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qE};function KE(e,t,n){var o=So(e),r=[kn,Tn].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,[kn,Kn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function XE(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=Eg.reduce(function(f,p){return f[p]=KE(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 ZE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:XE};function QE(e){var t=e.state,n=e.name;t.modifiersData[n]=Ig({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const JE={name:"popperOffsets",enabled:!0,phase:"read",fn:QE,data:{}};function eT(e){return e==="x"?"y":"x"}function tT(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,w=y===void 0?!0:y,b=n.tetherOffset,m=b===void 0?0:b,v=Ni(t,{boundary:d,rootBoundary:u,padding:p,altBoundary:f}),k=So(t.placement),D=Ts(t.placement),x=!D,S=pu(k),C=eT(S),M=t.modifiersData.popperOffsets,A=t.rects.reference,F=t.rects.popper,z=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,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(M){if(i){var X,q=S==="y"?Tn:kn,Y=S==="y"?Gn:Kn,H=S==="y"?"height":"width",ae=M[S],N=ae+v[q],O=ae-v[Y],V=w?-F[H]/2:0,W=D===xs?A[H]:F[H],ne=D===xs?-F[H]:-A[H],oe=t.elements.arrow,se=w&&oe?fu(oe):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pg(),J=j[q],ee=j[Y],te=vi(0,A[H],se[H]),ce=x?A[H]/2-V-te-J-R.mainAxis:W-te-J-R.mainAxis,ie=x?-A[H]/2+V+te+ee+R.mainAxis:ne+te+ee+R.mainAxis,he=t.elements.arrow&&oa(t.elements.arrow),B=he?S==="y"?he.clientTop||0:he.clientLeft||0:0,re=(X=$?.[S])!=null?X:0,Q=ae+ce-re-B,fe=ae+ie-re,me=vi(w?hl(N,Q):N,ae,w?Mr(O,fe):O);M[S]=me,K[S]=me-ae}if(l){var Ce,ve=S==="x"?Tn:kn,xe=S==="x"?Gn:Kn,$e=M[C],Ae=C==="y"?"height":"width",rt=$e+v[ve],Pe=$e-v[xe],ft=[Tn,kn].indexOf(k)!==-1,Kt=(Ce=$?.[C])!=null?Ce:0,st=ft?rt:$e-A[Ae]-F[Ae]-Kt+R.altAxis,Yt=ft?$e+A[Ae]+F[Ae]-Kt-R.altAxis:Pe,Xt=w&&ft?RE(st,$e,Yt):vi(w?st:rt,$e,w?Yt:Pe);M[C]=Xt,K[C]=Xt-$e}t.modifiersData[o]=K}}const nT={name:"preventOverflow",enabled:!0,phase:"main",fn:tT,requiresIfExists:["offset"]};function oT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rT(e){return e===Ln(e)||!qn(e)?mu(e):oT(e)}function sT(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 iT(e,t,n){n===void 0&&(n=!1);var o=qn(t),r=qn(t)&&sT(t),i=mr(t),a=Es(e,r,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&((Ro(t)!=="body"||yu(i))&&(l=rT(t)),qn(t)?(d=Es(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=gu(i))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function aT(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 lT(e){var t=aT(e);return bE.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function cT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dT(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 up={placement:"bottom",modifiers:[],strategy:"absolute"};function hp(){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 uT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?up:r;return function(l,d,u){u===void 0&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},up,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},p=[],y=!1,w={state:f,setOptions:function(k){var D=typeof k=="function"?k(f.options):k;m(),f.options=Object.assign({},i,f.options,D),f.scrollParents={reference:Fr(l)?bi(l):l.contextElement?bi(l.contextElement):[],popper:bi(d)};var x=lT(dT([].concat(o,f.options.modifiers)));return f.orderedModifiers=x.filter(function(S){return S.enabled}),b(),w.update()},forceUpdate:function(){if(!y){var k=f.elements,D=k.reference,x=k.popper;if(hp(D,x)){f.rects={reference:iT(D,oa(x),f.options.strategy==="fixed"),popper:fu(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],M=C.fn,A=C.options,F=A===void 0?{}:A,z=C.name;typeof M=="function"&&(f=M({state:f,options:F,name:z,instance:w})||f)}}}},update:cT(function(){return new Promise(function(v){w.forceUpdate(),v(f)})}),destroy:function(){m(),y=!0}};if(!hp(l,d))return w;w.setOptions(u).then(function(v){!y&&u.onFirstUpdate&&u.onFirstUpdate(v)});function b(){f.orderedModifiers.forEach(function(v){var k=v.name,D=v.options,x=D===void 0?{}:D,S=v.effect;if(typeof S=="function"){var C=S({state:f,name:k,instance:w,options:x}),M=function(){};p.push(C||M)}})}function m(){p.forEach(function(v){return v()}),p=[]}return w}}var hT=[AE,JE,IE,SE,ZE,UE,nT,PE,GE],fT=uT({defaultModifiers:hT});function pT(e){return typeof e=="function"?e():e}const Ai=T.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=T.useState(null),d=at(T.isValidElement(o)?ea(o):null,n);if(nn(()=>{i||l(pT(r)||document.body)},[r,i]),nn(()=>{if(a&&!i)return Nf(n,a),()=>{Nf(n,null)}},[n,a,i]),i){if(T.isValidElement(o)){const u={ref:d};return T.cloneElement(o,u)}return P.jsx(T.Fragment,{children:o})}return P.jsx(T.Fragment,{children:a&&SS.createPortal(o,a)})});process.env.NODE_ENV!=="production"&&(Ai.propTypes={children:s.node,container:s.oneOfType([Uo,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Ai.propTypes=tg(Ai.propTypes));function mT(e){return Oe("MuiPopper",e)}De("MuiPopper",["root"]);function gT(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 fl(e){return typeof e=="function"?e():e}function Ul(e){return e.nodeType!==void 0}function yT(e){return!Ul(e)}const vT=e=>{const{classes:t}=e;return Ie({root:["root"]},mT,t)},bT={},wT=T.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:w={},TransitionProps:b,ownerState:m,...v}=t,k=T.useRef(null),D=at(k,n),x=T.useRef(null),S=at(x,p),C=T.useRef(S);nn(()=>{C.current=S},[S]),T.useImperativeHandle(p,()=>x.current,[]);const M=gT(u,i),[A,F]=T.useState(M),[z,R]=T.useState(fl(o));T.useEffect(()=>{x.current&&x.current.forceUpdate()}),T.useEffect(()=>{o&&R(fl(o))},[o]),nn(()=>{if(!z||!d)return;const Y=N=>{F(N.placement)};if(process.env.NODE_ENV!=="production"&&z&&Ul(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
|
+
`))}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=fT(z,k.current,{placement:M,...f,modifiers:H});return C.current(ae),()=>{ae.destroy(),C.current(null)}},[z,a,l,d,f,M]);const $={placement:A};b!==null&&($.TransitionProps=b);const K=vT(t),X=w.root??"div",q=ct({elementType:X,externalSlotProps:y.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:D},ownerState:t,className:K.root});return P.jsx(X,{...q,children:typeof r=="function"?r($):r})}),Ng=T.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=bT,popperRef:w,style:b,transition:m=!1,slotProps:v={},slots:k={},...D}=t,[x,S]=T.useState(!0),C=()=>{S(!1)},M=()=>{S(!0)};if(!d&&!f&&(!m||x))return null;let A;if(i)A=i;else if(o){const R=fl(o);A=R&&Ul(R)?gn(R).body:gn(null).body}const F=!f&&d&&(!m||x)?"none":void 0,z=m?{in:f,onEnter:C,onExited:M}:void 0;return P.jsx(Ai,{disablePortal:l,container:A,children:P.jsx(wT,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:m?!x:f,placement:p,popperOptions:y,popperRef:w,slotProps:v,slots:k,...D,style:{position:"fixed",top:0,left:0,display:F,...b},TransitionProps:z,children:r})})});process.env.NODE_ENV!=="production"&&(Ng.propTypes={anchorEl:fr(s.oneOfType([Uo,s.object,s.func]),e=>{if(e.open){const t=fl(e.anchorEl);if(t&&Ul(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
215
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||yT(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
216
|
+
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Uo,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Wt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const CT=le(Ng,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ag=T.forwardRef(function(t,n){const o=lo(),r=Xe({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:d,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:m,popperRef:v,transition:k,slots:D,slotProps:x,...S}=r,C=D?.root??l?.Root,M={anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:m,popperRef:v,transition:k,...S};return P.jsx(CT,{as:a,direction:o?"rtl":"ltr",slots:{root:C},slotProps:x??d,...M,ref:n})});process.env.NODE_ENV!=="production"&&(Ag.propTypes={anchorEl:s.oneOfType([Uo,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([Uo,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Wt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});const ST=an(P.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function _T(e){return Oe("MuiChip",e)}const Ke=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"]),xT=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 Ie(u,_T,t)},RT=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[{[`& .${Ke.avatar}`]:t.avatar},{[`& .${Ke.avatar}`]:t[`avatar${be(l)}`]},{[`& .${Ke.avatar}`]:t[`avatarColor${be(o)}`]},{[`& .${Ke.icon}`]:t.icon},{[`& .${Ke.icon}`]:t[`icon${be(l)}`]},{[`& .${Ke.icon}`]:t[`iconColor${be(r)}`]},{[`& .${Ke.deleteIcon}`]:t.deleteIcon},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${be(l)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIconColor${be(o)}`]},{[`& .${Ke.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)}`]]}})(ut(({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",[`&.${Ke.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ke.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ke.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ke.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ke.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ke.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ke.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:it(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:it(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ke.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ke.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,[`& .${Ke.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:it(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ke.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ke.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(dn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ke.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(dn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ke.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]}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ke.avatar}`]:{marginLeft:4},[`& .${Ke.avatarSmall}`]:{marginLeft:2},[`& .${Ke.icon}`]:{marginLeft:4},[`& .${Ke.iconSmall}`]:{marginLeft:2},[`& .${Ke.deleteIcon}`]:{marginRight:5},[`& .${Ke.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)`:it(e.palette[n].main,.7)}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ke.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:it(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),ET=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 fp(e){return e.key==="Backspace"||e.key==="Delete"}const Fg=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:l="default",component:d,deleteIcon:u,disabled:f=!1,icon:p,label:y,onClick:w,onDelete:b,onKeyDown:m,onKeyUp:v,size:k="medium",variant:D="filled",tabIndex:x,skipFocusWhenDisabled:S=!1,...C}=o,M=T.useRef(null),A=at(M,n),F=O=>{O.stopPropagation(),b&&b(O)},z=O=>{O.currentTarget===O.target&&fp(O)&&O.preventDefault(),m&&m(O)},R=O=>{O.currentTarget===O.target&&b&&fp(O)&&b(O),v&&v(O)},$=a!==!1&&w?!0:a,K=$||b?dr:d||"div",X={...o,component:K,disabled:f,size:k,color:l,iconColor:T.isValidElement(p)&&p.props.color||l,onDelete:!!b,clickable:$,variant:D},q=xT(X),Y=K===dr?{component:d||"div",focusVisibleClassName:q.focusVisible,...b&&{disableRipple:!0}}:{};let H=null;b&&(H=u&&T.isValidElement(u)?T.cloneElement(u,{className:Se(u.props.className,q.deleteIcon),onClick:F}):P.jsx(ST,{className:Se(q.deleteIcon),onClick:F}));let ae=null;r&&T.isValidElement(r)&&(ae=T.cloneElement(r,{className:Se(q.avatar,r.props.className)}));let N=null;return p&&T.isValidElement(p)&&(N=T.cloneElement(p,{className:Se(q.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&ae&&N&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),P.jsxs(RT,{as:K,className:Se(q.root,i),disabled:$&&f?!0:void 0,onClick:w,onKeyDown:z,onKeyUp:R,ref:A,tabIndex:S&&f?-1:x,ownerState:X,...Y,...C,children:[ae||N,P.jsx(ET,{className:Se(q.label),ownerState:X,children:y}),H]})});process.env.NODE_ENV!=="production"&&(Fg.propTypes={avatar:s.element,children:px,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 $a(e){return parseInt(e,10)||0}const TT={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function kT(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Lg=T.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...d}=t,{current:u}=T.useRef(l!=null),f=T.useRef(null),p=at(n,f),y=T.useRef(null),w=T.useRef(null),b=T.useCallback(()=>{const k=f.current,x=qo(k).getComputedStyle(k);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=w.current;S.style.width=x.width,S.value=k.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
217
|
+
`&&(S.value+=" ");const C=x.boxSizing,M=$a(x.paddingBottom)+$a(x.paddingTop),A=$a(x.borderBottomWidth)+$a(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"?M+A:0),K=Math.abs(R-F)<=1;return{outerHeightStyle:$,overflowing:K}},[r,i,t.placeholder]),m=T.useCallback(()=>{const k=b();if(kT(k))return;const D=k.outerHeightStyle,x=f.current;y.current!==D&&(y.current=D,x.style.height=`${D}px`),x.style.overflow=k.overflowing?"hidden":""},[b]);nn(()=>{const k=()=>{m()};let D;const x=()=>{cancelAnimationFrame(D),D=requestAnimationFrame(()=>{k()})},S=ng(k),C=f.current,M=qo(C);M.addEventListener("resize",S);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(process.env.NODE_ENV==="test"?x:k),A.observe(C)),()=>{S.clear(),cancelAnimationFrame(D),M.removeEventListener("resize",S),A&&A.disconnect()}},[b,m]),nn(()=>{m()});const v=k=>{u||m(),o&&o(k)};return P.jsxs(T.Fragment,{children:[P.jsx("textarea",{value:l,onChange:v,ref:p,rows:i,style:a,...d}),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...TT.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Lg.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 Fi(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 ra=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(ra.displayName="FormControlContext");function On(){return T.useContext(ra)}function pp(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function pl(e,t=!1){return e&&(pp(e.value)&&e.value!==""||t&&pp(e.defaultValue)&&e.defaultValue!=="")}function PT(e){return e.startAdornment}function DT(e){return Oe("MuiInputBase",e)}const ks=De("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var mp;const ql=(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]},Gl=(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]},OT=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:d,hiddenLabel:u,multiline:f,readOnly:p,size:y,startAdornment:w,type:b}=e,m={root:["root",`color${be(n)}`,o&&"disabled",r&&"error",d&&"fullWidth",a&&"focused",l&&"formControl",y&&y!=="medium"&&`size${be(y)}`,f&&"multiline",w&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return Ie(m,DT,t)},Kl=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ql})(ut(({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",[`&.${ks.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%"}}]}))),Xl=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Gl})(ut(({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] + .${ks.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},[`&.${ks.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"}}]}})),gp=iR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Zl=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,color:d,components:u={},componentsProps:f={},defaultValue:p,disabled:y,disableInjectingGlobalStyles:w,endAdornment:b,error:m,fullWidth:v=!1,id:k,inputComponent:D="input",inputProps:x={},inputRef:S,margin:C,maxRows:M,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:O,size:V,slotProps:W={},slots:ne={},startAdornment:oe,type:se="text",value:j,...J}=o,ee=x.value!=null?x.value:j,{current:te}=T.useRef(ee!=null),ce=T.useRef(),ie=T.useCallback(tt=>{process.env.NODE_ENV!=="production"&&tt&&tt.nodeName!=="INPUT"&&!tt.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
218
|
+
`))},[]),he=at(ce,S,x.ref,ie),[B,re]=T.useState(!1),Q=On();process.env.NODE_ENV!=="production"&&T.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:B,T.useEffect(()=>{!Q&&y&&B&&(re(!1),R&&R())},[Q,y,B,R]);const me=Q&&Q.onFilled,Ce=Q&&Q.onEmpty,ve=T.useCallback(tt=>{pl(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)};T.useEffect(()=>{ve(ce.current)},[]);const rt=tt=>{ce.current&&tt.currentTarget===tt.target&&ce.current.focus(),K&&K(tt)};let Pe=D,ft=x;F&&Pe==="input"&&(O?(process.env.NODE_ENV!=="production"&&(A||M)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ft={type:void 0,minRows:O,maxRows:O,...ft}):ft={type:void 0,maxRows:M,minRows:A,...ft},Pe=Lg);const Kt=tt=>{ve(tt.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};T.useEffect(()=>{Q&&Q.setAdornedStart(!!oe)},[Q,oe]);const st={...o,color:fe.color||"primary",disabled:fe.disabled,endAdornment:b,error:fe.error,focused:fe.focused,formControl:Q,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:F,size:fe.size,startAdornment:oe,type:se},Yt=OT(st),Xt=ne.root||u.Root||Kl,on=W.root||f.root||{},Ue=ne.input||u.Input||Xl;return ft={...ft,...W.input??f.input},P.jsxs(T.Fragment,{children:[!w&&typeof gp=="function"&&(mp||(mp=P.jsx(gp,{}))),P.jsxs(Xt,{...on,ref:n,onClick:rt,...J,...!Fi(Xt)&&{ownerState:{...st,...on.ownerState}},className:Se(Yt.root,on.className,l,ae&&"MuiInputBase-readOnly"),children:[oe,P.jsx(ra.Provider,{value:null,children:P.jsx(Ue,{"aria-invalid":fe.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:p,disabled:fe.disabled,id:k,onAnimationStart:Kt,name:z,placeholder:H,readOnly:ae,required:fe.required,rows:O,value:ee,onKeyDown:q,onKeyUp:Y,type:se,...ft,...!Fi(Ue)&&{as:Pe,ownerState:{...st,...ft.ownerState}},ref:he,className:Se(Yt.input,ft.className,ae&&"MuiInputBase-readOnly"),onBlur:$e,onChange:Ae,onFocus:xe})}),b,N?N({...fe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(Zl.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:Bl,inputProps:s.object,inputRef:Wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function MT(e){return Oe("MuiInput",e)}const Zs={...ks,...De("MuiInput",["root","underline","input"])};function IT(e){return Oe("MuiOutlinedInput",e)}const po={...ks,...De("MuiOutlinedInput",["root","notchedOutline","input"])};function NT(e){return Oe("MuiFilledInput",e)}const wr={...ks,...De("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},AT=an(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),FT={entering:{opacity:1},entered:{opacity:1}},$r=T.forwardRef(function(t,n){const o=Is(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:d,in:u,onEnter:f,onEntered:p,onEntering:y,onExit:w,onExited:b,onExiting:m,style:v,timeout:k=r,TransitionComponent:D=Qn,...x}=t,S=T.useRef(null),C=at(S,ea(l),n),M=q=>Y=>{if(q){const H=S.current;Y===void 0?q(H):q(H,Y)}},A=M(y),F=M((q,Y)=>{Cg(q);const H=dl({style:v,timeout:k,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=M(p),R=M(m),$=M(q=>{const Y=dl({style:v,timeout:k,easing:d},{mode:"exit"});q.style.webkitTransition=o.transitions.create("opacity",Y),q.style.transition=o.transitions.create("opacity",Y),w&&w(q)}),K=M(b),X=q=>{i&&i(S.current,q)};return P.jsx(D,{appear:a,in:u,nodeRef:S,onEnter:F,onEntered:z,onEntering:A,onExit:$,onExited:K,onExiting:R,addEndListener:X,timeout:k,...x,children:(q,Y)=>T.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!u?"hidden":void 0,...FT[q],...v,...l.props.style},ref:C,...Y})})});process.env.NODE_ENV!=="production"&&($r.propTypes={addEndListener:s.func,appear:s.bool,children:Ji.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 LT(e){return Oe("MuiBackdrop",e)}De("MuiBackdrop",["root","invisible"]);const $T=e=>{const{ownerState:t,...n}=e;return n},VT=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},LT,t)},jT=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"}}]}),vu=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:d,components:u={},componentsProps:f={},slotProps:p={},slots:y={},TransitionComponent:w,transitionDuration:b,...m}=o,v={...o,component:a,invisible:l},k=VT(v),D={transition:w,root:u.Root,...y},x={...f,...p},S={slots:D,slotProps:x},[C,M]=Rn("root",{elementType:jT,externalForwardedProps:S,className:Se(k.root,i),ownerState:v}),[A,F]=Rn("transition",{elementType:$r,externalForwardedProps:S,ownerState:v}),z=$T(F);return P.jsx(A,{in:d,timeout:b,...m,...z,children:P.jsx(C,{"aria-hidden":!0,...M,classes:k,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(vu.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 WT=De("MuiBox",["root"]),BT=yg(),Fs=B_({themeId:qi,defaultTheme:BT,defaultClassName:WT.root,generateClassName:zm.generate});process.env.NODE_ENV!=="production"&&(Fs.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 HT(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"]),$g=T.createContext({});process.env.NODE_ENV!=="production"&&($g.displayName="ButtonGroupContext");const Vg=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Vg.displayName="ButtonGroupButtonContext");const zT=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=Ie(l,HT,a);return{...a,...d}},jg=[{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}}}],YT=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]}})(ut(({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)`:it(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${os.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${os.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),UT=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}},...jg]}),qT=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}},...jg]}),ds=T.forwardRef(function(t,n){const o=T.useContext($g),r=T.useContext(Vg),i=Pi(o,t),a=Xe({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:f,disabled:p=!1,disableElevation:y=!1,disableFocusRipple:w=!1,endIcon:b,focusVisibleClassName:m,fullWidth:v=!1,size:k="medium",startIcon:D,type:x,variant:S="text",...C}=a,M={...a,color:d,component:u,disabled:p,disableElevation:y,disableFocusRipple:w,fullWidth:v,size:k,type:x,variant:S},A=zT(M),F=D&&P.jsx(UT,{className:A.startIcon,ownerState:M,children:D}),z=b&&P.jsx(qT,{className:A.endIcon,ownerState:M,children:b}),R=r||"";return P.jsxs(YT,{ownerState:M,className:Se(o.className,A.root,f,R),component:u,disabled:p,focusRipple:!w,focusVisibleClassName:Se(A.focusVisible,m),ref:n,type:x,...C,classes:A,children:[F,l,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 GT(e){return Oe("PrivateSwitchBase",e)}De("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const KT=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,i={root:["root",n&&"checked",o&&"disabled",r&&`edge${be(r)}`],input:["input"]};return Ie(i,GT,t)},XT=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}}]}),ZT=le("input",{shouldForwardProp:Dn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Wg=T.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:i,className:a,defaultChecked:l,disabled:d,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:y,inputProps:w,inputRef:b,name:m,onBlur:v,onChange:k,onFocus:D,readOnly:x,required:S=!1,tabIndex:C,type:M,value:A,...F}=t,[z,R]=xo({controlled:r,default:!!l,name:"SwitchBase",state:"checked"}),$=On(),K=O=>{D&&D(O),$&&$.onFocus&&$.onFocus(O)},X=O=>{v&&v(O),$&&$.onBlur&&$.onBlur(O)},q=O=>{if(O.nativeEvent.defaultPrevented)return;const V=O.target.checked;R(V),k&&k(O,V)};let Y=d;$&&typeof Y>"u"&&(Y=$.disabled);const H=M==="checkbox"||M==="radio",ae={...t,checked:z,disabled:Y,disableFocusRipple:u,edge:f},N=KT(ae);return P.jsxs(XT,{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:[P.jsx(ZT,{autoFocus:o,checked:r,defaultChecked:l,className:N.input,disabled:Y,id:H?y:void 0,name:m,onChange:q,readOnly:x,ref:b,required:S,ownerState:ae,tabIndex:C,type:M,...M==="checkbox"&&A===void 0?{}:{value:A},...w}),z?i:p]})});process.env.NODE_ENV!=="production"&&(Wg.propTypes={autoFocus:s.bool,checked:s.bool,checkedIcon:s.node.isRequired,classes:s.object,className:s.string,defaultChecked:s.bool,disabled:s.bool,disableFocusRipple:s.bool,edge:s.oneOf(["end","start",!1]),icon:s.node.isRequired,id:s.string,inputProps:s.object,inputRef:Wt,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,readOnly:s.bool,required:s.bool,sx:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.string.isRequired,value:s.any});const QT=an(P.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),JT=an(P.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ek=an(P.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function tk(e){return Oe("MuiCheckbox",e)}const Kc=De("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),nk=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,i={root:["root",n&&"indeterminate",`color${be(o)}`,`size${be(r)}`]},a=Ie(i,tk,t);return{...t,...a}},ok=le(Wg,{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)}`]]}})(ut(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dn()).map(([t])=>({props:{color:t},style:{[`&.${Kc.checked}, &.${Kc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Kc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),rk=P.jsx(JT,{}),sk=P.jsx(QT,{}),ik=P.jsx(ek,{}),bu=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiCheckbox"}),{checkedIcon:r=rk,color:i="primary",icon:a=sk,indeterminate:l=!1,indeterminateIcon:d=ik,inputProps:u,size:f="medium",disableRipple:p=!1,className:y,...w}=o,b=l?d:a,m=l?d:r,v={...o,disableRipple:p,color:i,indeterminate:l,size:f},k=nk(v);return P.jsx(ok,{type:"checkbox",inputProps:{"data-indeterminate":l,...u},icon:T.cloneElement(b,{fontSize:b.props.fontSize??f}),checkedIcon:T.cloneElement(m,{fontSize:m.props.fontSize??f}),ownerState:v,ref:n,className:Se(k.root,y),disableRipple:p,...w,classes:k})});process.env.NODE_ENV!=="production"&&(bu.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),defaultChecked:s.bool,disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,indeterminate:s.bool,indeterminateIcon:s.node,inputProps:s.object,inputRef:Wt,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function ak(e){const t=gn(e);return t.body===e?qo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function wi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yp(e){return parseInt(qo(e).getComputedStyle(e).paddingRight,10)||0}function lk(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 vp(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),d=!lk(a);l&&d&&wi(a,r)})}function Xc(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function ck(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(ak(o)){const a=sg(qo(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${yp(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=`${yp(d)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=gn(o).body;else{const a=o.parentElement,l=qo(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 dk(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class uk{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&&wi(t.modalRef,!1);const r=dk(n);vp(n,t.mount,t.modalRef,r,!0);const i=Xc(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=Xc(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=ck(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Xc(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&&wi(t.modalRef,n),vp(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&&wi(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const hk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fk(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 pk(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 mk(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||pk(e))}function gk(e){const t=[],n=[];return Array.from(e.querySelectorAll(hk)).forEach((o,r)=>{const i=fk(o);i===-1||!mk(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 yk(){return!0}function Li(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=gk,isEnabled:a=yk,open:l}=e,d=T.useRef(!1),u=T.useRef(null),f=T.useRef(null),p=T.useRef(null),y=T.useRef(null),w=T.useRef(!1),b=T.useRef(null),m=at(ea(t),b),v=T.useRef(null);T.useEffect(()=>{!l||!b.current||(w.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!b.current)return;const x=gn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
219
|
+
`)),b.current.setAttribute("tabIndex","-1")),w.current&&b.current.focus()),()=>{r||(p.current&&p.current.focus&&(d.current=!0,p.current.focus()),p.current=null)}},[l]),T.useEffect(()=>{if(!l||!b.current)return;const x=gn(b.current),S=A=>{v.current=A,!(o||!a()||A.key!=="Tab")&&x.activeElement===b.current&&A.shiftKey&&(d.current=!0,f.current&&f.current.focus())},C=()=>{const A=b.current;if(A===null)return;if(!x.hasFocus()||!a()||d.current){d.current=!1;return}if(A.contains(x.activeElement)||o&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!w.current)return;let F=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(F=i(b.current)),F.length>0){const 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 M=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(M),x.removeEventListener("focusin",C),x.removeEventListener("keydown",S,!0)}},[n,o,r,a,l,i]);const k=x=>{p.current===null&&(p.current=x.relatedTarget),w.current=!0,y.current=x.target;const S=t.props.onFocus;S&&S(x)},D=x=>{p.current===null&&(p.current=x.relatedTarget),w.current=!0};return P.jsxs(T.Fragment,{children:[P.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:m,onFocus:k}),P.jsx("div",{tabIndex:l?0:-1,onFocus:D,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Li.propTypes={children:Ji,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Li.propTypes=tg(Li.propTypes));function vk(e){return typeof e=="function"?e():e}function bk(e){return e?e.props.hasOwnProperty("in"):!1}const Va=new uk;function wk(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:d,open:u,rootRef:f}=e,p=T.useRef({}),y=T.useRef(null),w=T.useRef(null),b=at(w,f),[m,v]=T.useState(!u),k=bk(l);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const x=()=>gn(y.current),S=()=>(p.current.modalRef=w.current,p.current.mount=y.current,p.current),C=()=>{Va.mount(S(),{disableScrollLock:o}),w.current&&(w.current.scrollTop=0)},M=Ee(()=>{const Y=vk(t)||x().body;Va.add(S(),Y),w.current&&C()}),A=()=>Va.isTopModal(S()),F=Ee(Y=>{y.current=Y,Y&&(u&&A()?C():w.current&&wi(w.current,D))}),z=T.useCallback(()=>{Va.remove(S(),D)},[D]);T.useEffect(()=>()=>{z()},[z]),T.useEffect(()=>{u?M():(!k||!r)&&z()},[u,z,k,r,M]);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=dg(e);delete H.onTransitionEnter,delete H.onTransitionExited;const ae={...H,...Y};return{role:"presentation",...ae,onKeyDown:R(ae),ref:b}},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:If(Y,l?.props.onEnter),onExited:If(H,l?.props.onExited)}},rootRef:b,portalRef:F,isTopModal:A,exited:m,hasTransition:k}}function Ck(e){return Oe("MuiModal",e)}De("MuiModal",["root","hidden","backdrop"]);const Sk=e=>{const{open:t,exited:n,classes:o}=e;return Ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ck,o)},_k=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ut(({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"}}]}))),xk=le(vu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),wu=T.forwardRef(function(t,n){const o=Xe({name:"MuiModal",props:t}),{BackdropComponent:r=xk,BackdropProps:i,classes:a,className:l,closeAfterTransition:d=!1,children:u,container:f,component:p,components:y={},componentsProps:w={},disableAutoFocus:b=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:k=!1,disableRestoreFocus:D=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:M,onClose:A,onTransitionEnter:F,onTransitionExited:z,open:R,slotProps:$={},slots:K={},theme:X,...q}=o,Y={...o,closeAfterTransition:d,disableAutoFocus:b,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:k,disableRestoreFocus:D,disableScrollLock:x,hideBackdrop:S,keepMounted:C},{getRootProps:H,getBackdropProps:ae,getTransitionProps:N,portalRef:O,isTopModal:V,exited:W,hasTransition:ne}=wk({...Y,rootRef:n}),oe={...Y,exited:W},se=Sk(oe),j={};if(u.props.tabIndex===void 0&&(j.tabIndex="-1"),ne){const{onEnter:B,onExited:re}=N();j.onEnter=B,j.onExited=re}const J={...q,slots:{root:y.Root,backdrop:y.Backdrop,...K},slotProps:{...w,...$}},[ee,te]=Rn("root",{elementType:_k,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:B=>ae({...B,onClick:re=>{M&&M(re),B?.onClick&&B.onClick(re)}}),className:Se(i?.className,se?.backdrop),ownerState:oe}),he=at(i?.ref,ie.ref);return!C&&!R&&(!ne||W)?null:P.jsx(Ai,{ref:O,container:f,disablePortal:k,children:P.jsxs(ee,{...te,children:[!S&&r?P.jsx(ce,{...ie,ref:he}):null,P.jsx(Li,{disableEnforceFocus:m,disableAutoFocus:b,disableRestoreFocus:D,isEnabled:V,open:R,children:T.cloneElement(u,j)})]})})});process.env.NODE_ENV!=="production"&&(wu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Ji.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([Uo,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 Rk(e){return Oe("MuiDialog",e)}const Ci=De("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Bg=T.createContext({});process.env.NODE_ENV!=="production"&&(Bg.displayName="DialogContext");const Ek=le(vu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Tk=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${be(n)}`],paper:["paper",`paperScroll${be(n)}`,`paperWidth${be(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(a,Rk,t)},kk=le(wu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Pk=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"}}}]}),Dk=le(Ns,{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]}})(ut(({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)`,[`&.${Ci.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}`,[`&.${Ci.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,[`&.${Ci.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Hg=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiDialog"}),r=Is(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:u,BackdropProps:f,children:p,className:y,disableEscapeKeyDown:w=!1,fullScreen:b=!1,fullWidth:m=!1,maxWidth:v="sm",onBackdropClick:k,onClick:D,onClose:x,open:S,PaperComponent:C=Ns,PaperProps:M={},scroll:A="paper",TransitionComponent:F=$r,transitionDuration:z=i,TransitionProps:R,...$}=o,K={...o,disableEscapeKeyDown:w,fullScreen:b,fullWidth:m,maxWidth:v,scroll:A},X=Tk(K),q=T.useRef(),Y=O=>{q.current=O.target===O.currentTarget},H=O=>{D&&D(O),q.current&&(q.current=null,k&&k(O),x&&x(O,"backdropClick"))},ae=pr(l),N=T.useMemo(()=>({titleId:ae}),[ae]);return P.jsx(kk,{className:Se(X.root,y),closeAfterTransition:!0,components:{Backdrop:Ek},componentsProps:{backdrop:{transitionDuration:z,as:u,...f}},disableEscapeKeyDown:w,onClose:x,open:S,ref:n,onClick:H,ownerState:K,...$,children:P.jsx(F,{appear:!0,in:S,timeout:z,role:"presentation",...R,children:P.jsx(Pk,{className:Se(X.container),onMouseDown:Y,ownerState:K,children:P.jsx(Dk,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":ae,"aria-modal":d,...M,className:Se(X.paper,M.className),ownerState:K,children:P.jsx(Bg.Provider,{value:N,children:p})})})})})});process.env.NODE_ENV!=="production"&&(Hg.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 Ok(e){return Oe("MuiDialogActions",e)}De("MuiDialogActions",["root","spacing"]);const Mk=e=>{const{classes:t,disableSpacing:n}=e;return Ie({root:["root",!n&&"spacing"]},Ok,t)},Ik=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}}}]}),zg=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},d=Mk(l);return P.jsx(Ik,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(zg.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 Nk(e){return Oe("MuiDialogContent",e)}De("MuiDialogContent",["root","dividers"]);const Ak=De("MuiDialogTitle",["root"]),Fk=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},Nk,t)},Lk=le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ut(({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:{[`.${Ak.root} + &`]:{paddingTop:0}}}]}))),Yg=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},d=Fk(l);return P.jsx(Lk,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Yg.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 $k(e){return Oe("MuiDivider",e)}const bp=De("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Vk=e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:a,textAlign:l,variant:d}=e;return Ie({root:["root",t&&"absolute",d,i&&"light",a==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},$k,o)},jk=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]}})(ut(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:it(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Wk=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ut(({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)`}}]}))),ml=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiDivider"}),{absolute:r=!1,children:i,className:a,orientation:l="horizontal",component:d=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:f=!1,role:p=d!=="hr"?"separator":void 0,textAlign:y="center",variant:w="fullWidth",...b}=o,m={...o,absolute:r,component:d,flexItem:u,light:f,orientation:l,role:p,textAlign:y,variant:w},v=Vk(m);return P.jsx(jk,{as:d,className:Se(v.root,a),role:p,ref:n,ownerState:m,"aria-orientation":p==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...b,children:i?P.jsx(Wk,{className:v.wrapper,ownerState:m,children:i}):null})});ml&&(ml.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(ml.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 Bk=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=Ie(d,NT,t);return{...t,...u}},Hk=le(Kl,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ql(e,t),!n.disableUnderline&&t.underline]}})(ut(({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}}]}})),zk=le(Xl,{name:"MuiFilledInput",slot:"Input",overridesResolver:Gl})(ut(({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}}]}))),$i=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:y={},type:w="text",...b}=o,m={...o,disableUnderline:r,fullWidth:l,inputComponent:u,multiline:f,type:w},v=Bk(o),k={root:{ownerState:m},input:{ownerState:m}},D=p??a?mn(k,p??a):k,x=y.root??i.Root??Hk,S=y.input??i.Input??zk;return P.jsx(Zl,{slots:{root:x,input:S},componentsProps:D,fullWidth:l,inputComponent:u,multiline:f,ref:n,type:w,...b,classes:v})});process.env.NODE_ENV!=="production"&&($i.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});$i&&($i.muiName="Input");function Yk(e){return Oe("MuiFormControl",e)}De("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Uk=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${be(n)}`,o&&"fullWidth"]};return Ie(r,Yk,t)},qk=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%"}}]}),sa=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:d=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:y=!1,margin:w="none",required:b=!1,size:m="medium",variant:v="outlined",...k}=o,D={...o,color:a,component:l,disabled:d,error:u,fullWidth:p,hiddenLabel:y,margin:w,required:b,size:m,variant:v},x=Uk(D),[S,C]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{if(!yi(Y,["Input","Select"]))return;const H=yi(Y,["Select"])?Y.props.input:Y;H&&PT(H.props)&&(q=!0)}),q}),[M,A]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{yi(Y,["Input","Select"])&&(pl(Y.props,!0)||pl(Y.props.inputProps,!0))&&(q=!0)}),q}),[F,z]=T.useState(!1);d&&F&&z(!1);const R=f!==void 0&&!d?f:F;let $;const K=T.useRef(!1);process.env.NODE_ENV!=="production"&&($=()=>(K.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
220
|
+
`)),K.current=!0,()=>{K.current=!1}));const X=T.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:a,disabled:d,error:u,filled:M,focused:R,fullWidth:p,hiddenLabel:y,size:m,onBlur:()=>{z(!1)},onEmpty:()=>{A(!1)},onFilled:()=>{A(!0)},onFocus:()=>{z(!0)},registerEffect:$,required:b,variant:v}),[S,a,d,u,M,R,p,y,$,b,m,v]);return P.jsx(ra.Provider,{value:X,children:P.jsx(qk,{as:l,ownerState:D,className:Se(x.root,i),ref:n,...k,children:r})})});process.env.NODE_ENV!=="production"&&(sa.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 Gk(e){return Oe("MuiFormControlLabel",e)}const mi=De("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Kk=e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${be(o)}`,r&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return Ie(a,Gk,t)},Xk=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mi.label}`]:t.label},t.root,t[`labelPlacement${be(n.labelPlacement)}`]]}})(ut(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${mi.disabled}`]:{cursor:"default"},[`& .${mi.label}`]:{[`&.${mi.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}}]}))),Zk=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ut(({theme:e})=>({[`&.${mi.error}`]:{color:(e.vars||e).palette.error.main}}))),Ja=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiFormControlLabel"}),{checked:r,className:i,componentsProps:a={},control:l,disabled:d,disableTypography:u,inputRef:f,label:p,labelPlacement:y="end",name:w,onChange:b,required:m,slots:v={},slotProps:k={},value:D,...x}=o,S=On(),C=d??l.props.disabled??S?.disabled,M=m??l.props.required,A={disabled:C,required:M};["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:M,error:F.error},R=Kk(z),$={slots:v,slotProps:{...a,...k}},[K,X]=Rn("typography",{elementType:En,externalForwardedProps:$,ownerState:z});let q=p;return q!=null&&q.type!==En&&!u&&(q=P.jsx(K,{component:"span",...X,className:Se(R.label,X?.className),children:q})),P.jsxs(Xk,{className:Se(R.root,i),ownerState:z,ref:n,...x,children:[T.cloneElement(l,A),M?P.jsxs("div",{children:[q,P.jsxs(Zk,{ownerState:z,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):q]})});process.env.NODE_ENV!=="production"&&(Ja.propTypes={checked:s.bool,classes:s.object,className:s.string,componentsProps:s.shape({typography:s.object}),control:s.element.isRequired,disabled:s.bool,disableTypography:s.bool,inputRef:Wt,label:s.node,labelPlacement:s.oneOf(["bottom","end","start","top"]),name:s.string,onChange:s.func,required:s.bool,slotProps:s.shape({typography:s.oneOfType([s.func,s.object])}),slots:s.shape({typography:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function Qk(e){return Oe("MuiFormGroup",e)}De("MuiFormGroup",["root","row","error"]);const Jk=e=>{const{classes:t,row:n,error:o}=e;return Ie({root:["root",n&&"row",o&&"error"]},Qk,t)},eP=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"}}]}),Ug=T.forwardRef(function(t,n){const o=Xe({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=Jk(u);return P.jsx(eP,{className:Se(f.root,r),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ug.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 tP(e){return Oe("MuiFormHelperText",e)}const wp=De("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Cp;const nP=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 Ie(u,tP,t)},oP=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]}})(ut(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${wp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wp.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}}]}))),Cu=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:d,filled:u,focused:f,margin:p,required:y,variant:w,...b}=o,m=On(),v=gr({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),k={...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 k.ownerState;const D=nP(k);return P.jsx(oP,{as:a,className:Se(D.root,i),ref:n,...b,ownerState:k,children:r===" "?Cp||(Cp=P.jsx("span",{className:"notranslate",children:""})):r})});process.env.NODE_ENV!=="production"&&(Cu.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 rP(e){return Oe("MuiFormLabel",e)}const Si=De("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),sP=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 Ie(d,rP,t)},iP=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(ut(({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:{[`&.${Si.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Si.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Si.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),aP=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ut(({theme:e})=>({[`&.${Si.error}`]:{color:(e.vars||e).palette.error.main}}))),qg=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:d,error:u,filled:f,focused:p,required:y,...w}=o,b=On(),m=gr({props:o,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),v={...o,color:m.color||"primary",component:l,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},k=sP(v);return P.jsxs(iP,{as:l,ownerState:v,className:Se(k.root,i),ref:n,...w,children:[r,m.required&&P.jsxs(aP,{ownerState:v,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(qg.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 Od(e){return`scale(${e}, ${e**2})`}const lP={entering:{opacity:1,transform:Od(1)},entered:{opacity:1,transform:"none"}},Zc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Vi=T.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:d,onEntered:u,onEntering:f,onExit:p,onExited:y,onExiting:w,style:b,timeout:m="auto",TransitionComponent:v=Qn,...k}=t,D=rg(),x=T.useRef(),S=Is(),C=T.useRef(null),M=at(C,ea(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)=>{Cg(Y);const{duration:ae,delay:N,easing:O}=dl({style:b,timeout:m,easing:a},{mode:"enter"});let V;m==="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:Zc?V:V*.666,delay:N,easing:O})].join(","),d&&d(Y,H)}),R=A(u),$=A(w),K=A(Y=>{const{duration:H,delay:ae,easing:N}=dl({style:b,timeout:m,easing:a},{mode:"exit"});let O;m==="auto"?(O=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=O):O=H,Y.style.transition=[S.transitions.create("opacity",{duration:O,delay:ae}),S.transitions.create("transform",{duration:Zc?O:O*.666,delay:Zc?ae:ae||O*.333,easing:N})].join(","),Y.style.opacity=0,Y.style.transform=Od(.75),p&&p(Y)}),X=A(y),q=Y=>{m==="auto"&&D.start(x.current||0,Y),o&&o(C.current,Y)};return P.jsx(v,{appear:r,in:l,nodeRef:C,onEnter:z,onEntered:R,onEntering:F,onExit:K,onExited:X,onExiting:$,addEndListener:q,timeout:m==="auto"?null:m,...k,children:(Y,H)=>T.cloneElement(i,{style:{opacity:0,transform:Od(.75),visibility:Y==="exited"&&!l?"hidden":void 0,...lP[Y],...b,...i.props.style},ref:M,...H})})});process.env.NODE_ENV!=="production"&&(Vi.propTypes={addEndListener:s.func,appear:s.bool,children:Ji.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})])});Vi&&(Vi.muiSupportAuto=!0);const cP=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},MT,t);return{...t,...r}},dP=le(Kl,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ql(e,t),!n.disableUnderline&&t.underline]}})(ut(({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"},[`&.${Zs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zs.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(.${Zs.disabled}, .${Zs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Zs.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}`}}}))]}})),uP=le(Xl,{name:"MuiInput",slot:"Input",overridesResolver:Gl})({}),ji=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:p={},type:y="text",...w}=o,b=cP(o),v={root:{ownerState:{disableUnderline:r}}},k=f??a?mn(f??a,v):v,D=p.root??i.Root??dP,x=p.input??i.Input??uP;return P.jsx(Zl,{slots:{root:D,input:x},slotProps:k,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:y,...w,classes:b})});process.env.NODE_ENV!=="production"&&(ji.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Wt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});ji&&(ji.muiName="Input");function hP(e){return Oe("MuiInputAdornment",e)}const Sp=De("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _p;const fP=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${be(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},pP=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 Ie(l,hP,t)},mP=le("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:fP})(ut(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Sp.positionStart}&:not(.${Sp.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Su=T.forwardRef(function(t,n){const o=Xe({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 w=f;f&&y.variant&&process.env.NODE_ENV!=="production"&&f===y.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),y&&!w&&(w=y.variant);const b={...o,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:u,variant:w},m=pP(b);return P.jsx(ra.Provider,{value:null,children:P.jsx(mP,{as:a,ownerState:b,className:Se(m.root,i),ref:n,...p,children:typeof r=="string"&&!d?P.jsx(En,{color:"textSecondary",children:r}):P.jsxs(T.Fragment,{children:[u==="start"?_p||(_p=P.jsx("span",{className:"notranslate",children:""})):null,r]})})})});process.env.NODE_ENV!=="production"&&(Su.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 gP(e){return Oe("MuiInputLabel",e)}De("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const yP=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=Ie(d,gP,t);return{...t,...u}},vP=le(qg,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Si.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]]}})(ut(({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)"}}]}))),ia=T.forwardRef(function(t,n){const o=Xe({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"]}),w={...o,disableAnimation:r,formControl:f,shrink:p,size:y.size,variant:y.variant,required:y.required,focused:y.focused},b=yP(w);return P.jsx(vP,{"data-shrink":p,ref:n,className:Se(b.root,d),...u,ownerState:w,classes:b})});process.env.NODE_ENV!=="production"&&(ia.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 Bo=T.createContext({});process.env.NODE_ENV!=="production"&&(Bo.displayName="ListContext");function bP(e){return Oe("MuiList",e)}De("MuiList",["root","padding","dense","subheader"]);const wP=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Ie({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},bP,t)},CP=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}}]}),_u=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:u,...f}=o,p=T.useMemo(()=>({dense:l}),[l]),y={...o,component:a,dense:l,disablePadding:d},w=wP(y);return P.jsx(Bo.Provider,{value:p,children:P.jsxs(CP,{as:a,className:Se(w.root,i),ref:n,ownerState:y,...f,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(_u.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 SP(e){return Oe("MuiListItem",e)}De("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const _P=De("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function xP(e){return Oe("MuiListItemSecondaryAction",e)}De("MuiListItemSecondaryAction",["root","disableGutters"]);const RP=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},xP,n)},EP=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}}]}),xu=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=T.useContext(Bo),l={...o,disableGutters:a.disableGutters},d=RP(l);return P.jsx(EP,{className:Se(d.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(xu.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])});xu.muiName="ListItemSecondaryAction";const TP=(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]},kP=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Ie({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},SP,n)},PP=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:TP})(ut(({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:{[`& > .${_P.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}}]}))),DP=le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Gg=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:l,components:d={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:p,...y}={},dense:w=!1,disableGutters:b=!1,disablePadding:m=!1,divider:v=!1,secondaryAction:k,slotProps:D={},slots:x={},...S}=o,C=T.useContext(Bo),M=T.useMemo(()=>({dense:w||C.dense||!1,alignItems:r,disableGutters:b}),[r,C.dense,w,b]),A=T.useRef(null),F=T.Children.toArray(i),z=F.length&&yi(F[F.length-1],["ListItemSecondaryAction"]),R={...o,alignItems:r,dense:M.dense,disableGutters:b,disablePadding:m,divider:v,hasSecondaryAction:z},$=kP(R),K=at(A,n),X=x.root||d.Root||PP,q=D.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")),P.jsx(Bo.Provider,{value:M,children:P.jsxs(DP,{as:f,className:Se($.container,p),ref:K,ownerState:R,...y,children:[P.jsx(X,{...q,...!Fi(X)&&{as:H,ownerState:{...R,...q.ownerState}},...Y,children:F}),F.pop()]})})):P.jsx(Bo.Provider,{value:M,children:P.jsxs(X,{...q,as:H,ref:K,...!Fi(X)&&{ownerState:{...R,...q.ownerState}},...Y,children:[F,k&&P.jsx(xu,{children:k})]})})});process.env.NODE_ENV!=="production"&&(Gg.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:fr(s.node,e=>{const t=T.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(yi(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:Bl,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 xp=De("MuiListItemIcon",["root","alignItemsFlexStart"]);function OP(e){return Oe("MuiListItemText",e)}const us=De("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),MP=e=>{const{classes:t,inset:n,primary:o,secondary:r,dense:i}=e;return Ie({root:["root",n&&"inset",i&&"dense",o&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},OP,t)},IP=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,[`.${np.root}:where(& .${us.primary})`]:{display:"block"},[`.${np.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}}]}),Md=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiListItemText"}),{children:r,className:i,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:p,...y}=o,{dense:w}=T.useContext(Bo);let b=d??r,m=f;const v={...o,disableTypography:a,inset:l,primary:!!b,secondary:!!m,dense:w},k=MP(v);return b!=null&&b.type!==En&&!a&&(b=P.jsx(En,{variant:w?"body2":"body1",className:k.primary,component:u?.variant?void 0:"span",...u,children:b})),m!=null&&m.type!==En&&!a&&(m=P.jsx(En,{variant:"body2",className:k.secondary,color:"textSecondary",...p,children:m})),P.jsxs(IP,{className:Se(k.root,i),ownerState:v,ref:n,...y,children:[b,m]})});process.env.NODE_ENV!=="production"&&(Md.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 Qc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Rp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Kg(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 Qs(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")||!Kg(l,i)||d)l=r(e,l,n);else return l.focus(),!0}return!1}const Xg=T.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu",...y}=t,w=T.useRef(null),b=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nn(()=>{r&&w.current.focus()},[r]),T.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const C=!w.current.style.width;if(x.clientHeight<w.current.clientHeight&&C){const M=`${sg(qo(x))}px`;w.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=M,w.current.style.width=`calc(100% + ${M})`}return w.current}}),[]);const m=x=>{const S=w.current,C=x.key;if(x.ctrlKey||x.metaKey||x.altKey){f&&f(x);return}const A=gn(S).activeElement;if(C==="ArrowDown")x.preventDefault(),Qs(S,A,u,d,Qc);else if(C==="ArrowUp")x.preventDefault(),Qs(S,A,u,d,Rp);else if(C==="Home")x.preventDefault(),Qs(S,null,u,d,Qc);else if(C==="End")x.preventDefault(),Qs(S,null,u,d,Rp);else if(C.length===1){const F=b.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&&Kg(A,F);F.previousKeyMatched&&($||Qs(S,A,!1,d,Qc,F))?x.preventDefault():F.previousKeyMatched=!1}f&&f(x)},v=at(w,n);let k=-1;T.Children.forEach(a,(x,S)=>{if(!T.isValidElement(x)){k===S&&(k+=1,k>=a.length&&(k=-1));return}process.env.NODE_ENV!=="production"&&au.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
221
|
+
`)),x.props.disabled||(p==="selectedMenu"&&x.props.selected||k===-1)&&(k=S),k===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(k+=1,k>=a.length&&(k=-1))});const D=T.Children.map(a,(x,S)=>{if(S===k){const C={};return i&&(C.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(C.tabIndex=0),T.cloneElement(x,C)}return x});return P.jsx(_u,{role:"menu",ref:v,className:l,onKeyDown:m,tabIndex:r?0:-1,...y,children:D})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function NP(e){return Oe("MuiPopover",e)}De("MuiPopover",["root","paper"]);function Ep(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Tp(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function kp(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function el(e){return typeof e=="function"?e():e}const AP=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},NP,t)},FP=le(wu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zg=le(Ns,{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}),Qg=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:u,className:f,container:p,elevation:y=8,marginThreshold:w=16,open:b,PaperProps:m={},slots:v={},slotProps:k={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:x=Vi,transitionDuration:S="auto",TransitionProps:{onEntering:C,...M}={},disableScrollLock:A=!1,...F}=o,z=k?.paper??m,R=T.useRef(),$={...o,anchorOrigin:a,anchorReference:d,elevation:y,marginThreshold:w,externalPaperSlotProps:z,transformOrigin:D,TransitionComponent:x,transitionDuration:S,TransitionProps:M},K=AP($),X=T.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const ie=el(i),he=ie&&ie.nodeType===1?ie:gn(R.current).body,B=he.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const re=he.getBoundingClientRect();process.env.NODE_ENV!=="test"&&re.top===0&&re.left===0&&re.right===0&&re.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
222
|
+
`))}return{top:B.top+Ep(B,a.vertical),left:B.left+Tp(B,a.horizontal)}},[i,a.horizontal,a.vertical,l,d]),q=T.useCallback(ie=>({vertical:Ep(ie,D.vertical),horizontal:Tp(ie,D.horizontal)}),[D.horizontal,D.vertical]),Y=T.useCallback(ie=>{const he={width:ie.offsetWidth,height:ie.offsetHeight},B=q(he);if(d==="none")return{top:null,left:null,transformOrigin:kp(B)};const re=X();let Q=re.top-B.vertical,fe=re.left-B.horizontal;const me=Q+he.height,Ce=fe+he.width,ve=qo(el(i)),xe=ve.innerHeight-w,$e=ve.innerWidth-w;if(w!==null&&Q<w){const Ae=Q-w;Q-=Ae,B.vertical+=Ae}else if(w!==null&&me>xe){const Ae=me-xe;Q-=Ae,B.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(`
|
|
223
|
+
`)),w!==null&&fe<w){const Ae=fe-w;fe-=Ae,B.horizontal+=Ae}else if(Ce>$e){const Ae=Ce-$e;fe-=Ae,B.horizontal+=Ae}return{top:`${Math.round(Q)}px`,left:`${Math.round(fe)}px`,transformOrigin:kp(B)}},[i,d,X,q,w]),[H,ae]=T.useState(b),N=T.useCallback(()=>{const ie=R.current;if(!ie)return;const he=Y(ie);he.top!==null&&ie.style.setProperty("top",he.top),he.left!==null&&(ie.style.left=he.left),ie.style.transformOrigin=he.transformOrigin,ae(!0)},[Y]);T.useEffect(()=>(A&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[i,A,N]);const O=(ie,he)=>{C&&C(ie,he),N()},V=()=>{ae(!1)};T.useEffect(()=>{b&&N()}),T.useImperativeHandle(r,()=>b?{updatePosition:()=>{N()}}:null,[b,N]),T.useEffect(()=>{if(!b)return;const ie=ng(()=>{N()}),he=qo(i);return he.addEventListener("resize",ie),()=>{ie.clear(),he.removeEventListener("resize",ie)}},[i,b,N]);let W=S;S==="auto"&&!x.muiSupportAuto&&(W=void 0);const ne=p||(i?gn(el(i)).body:void 0),oe={slots:v,slotProps:{...k,paper:z}},[se,j]=Rn("paper",{elementType:Zg,externalForwardedProps:oe,additionalProps:{elevation:y,className:Se(K.paper,z?.className),style:H?z.style:{...z.style,opacity:0}},ownerState:$}),[J,{slotProps:ee,...te}]=Rn("root",{elementType:FP,externalForwardedProps:oe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ne,open:b},ownerState:$,className:Se(K.root,f)}),ce=at(R,j.ref);return P.jsx(J,{...te,...!Fi(J)&&{slotProps:ee,disableScrollLock:A},...F,ref:n,children:P.jsx(x,{appear:!0,in:b,onEntering:O,onExited:V,timeout:W,...M,children:P.jsx(se,{...j,ref:ce,children:u})})})});process.env.NODE_ENV!=="production"&&(Qg.propTypes={action:Wt,anchorEl:fr(s.oneOfType([Uo,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=el(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
224
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
225
|
+
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Uo,s.func]),disableScrollLock:s.bool,elevation:lg,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:Bl}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function LP(e){return Oe("MuiMenu",e)}De("MuiMenu",["root","paper","list"]);const $P={vertical:"top",horizontal:"right"},VP={vertical:"top",horizontal:"left"},jP=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},LP,t)},WP=le(Qg,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BP=le(Zg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),HP=le(Xg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Jg=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:u,open:f,PaperProps:p={},PopoverClasses:y,transitionDuration:w="auto",TransitionProps:{onEntering:b,...m}={},variant:v="selectedMenu",slots:k={},slotProps:D={},...x}=o,S=lo(),C={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:d,onEntering:b,PaperProps:p,transitionDuration:w,TransitionProps:m,variant:v},M=jP(C),A=r&&!l&&f,F=T.useRef(null),z=(H,ae)=>{F.current&&F.current.adjustStyleForScrollbar(H,{direction:S?"rtl":"ltr"}),b&&b(H,ae)},R=H=>{H.key==="Tab"&&(H.preventDefault(),u&&u(H,"tabKeyDown"))};let $=-1;T.Children.map(i,(H,ae)=>{T.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&au.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
226
|
+
`)),H.props.disabled||(v==="selectedMenu"&&H.props.selected||$===-1)&&($=ae))});const K=k.paper??BP,X=D.paper??p,q=ct({elementType:k.root,externalSlotProps:D.root,ownerState:C,className:[M.root,a]}),Y=ct({elementType:K,externalSlotProps:X,ownerState:C,className:M.paper});return P.jsx(WP,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?$P:VP,slots:{paper:K,root:k.root},slotProps:{root:q,paper:Y},open:f,ref:n,transitionDuration:w,TransitionProps:{onEntering:z,...m},ownerState:C,...x,classes:y,children:P.jsx(HP,{onKeyDown:R,actions:F,autoFocus:r&&($===-1||l),autoFocusItem:A,variant:v,...d,className:Se(M.list,d.className),children:i})})});process.env.NODE_ENV!=="production"&&(Jg.propTypes={anchorEl:s.oneOfType([Uo,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function zP(e){return Oe("MuiMenuItem",e)}const Js=De("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),YP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},UP=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e,d=Ie({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},zP,a);return{...a,...d}},qP=le(dr,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:YP})(ut(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Js.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Js.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Js.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Js.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${bp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${bp.inset}`]:{marginLeft:52},[`& .${us.root}`]:{marginTop:0,marginBottom:0},[`& .${us.inset}`]:{paddingLeft:36},[`& .${xp.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${xp.root} svg`]:{fontSize:"1.25rem"}}}]}))),gl=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:y,...w}=o,b=T.useContext(Bo),m=T.useMemo(()=>({dense:a||b.dense||!1,disableGutters:d}),[b.dense,a,d]),v=T.useRef(null);nn(()=>{r&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[r]);const k={...o,dense:m.dense,divider:l,disableGutters:d},D=UP(o),x=at(v,n);let S;return o.disabled||(S=p!==void 0?p:-1),P.jsx(Bo.Provider,{value:m,children:P.jsx(qP,{ref:x,role:f,tabIndex:S,component:i,focusVisibleClassName:Se(D.focusVisible,u),className:Se(D.root,y),...w,ownerState:k,classes:D})})});process.env.NODE_ENV!=="production"&&(gl.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});function GP(e){return Oe("MuiNativeSelect",e)}const Ru=De("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),KP=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${be(n)}`,i&&"iconOpen",o&&"disabled"]};return Ie(l,GP,t)},ey=le("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ru.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),XP=le(ey,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ru.multiple}`]:t.multiple}]}})({}),ty=le("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ru.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ZP=le(ty,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${be(n.variant)}`],n.open&&t.iconOpen]}})({}),ny=T.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:d="standard",...u}=t,f={...t,disabled:r,variant:d,error:i},p=KP(f);return P.jsxs(T.Fragment,{children:[P.jsx(XP,{ownerState:f,className:Se(p.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:P.jsx(ZP,{as:a,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(ny.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Wt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var Pp;const QP=le("fieldset",{shouldForwardProp:Dn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),JP=le("legend",{shouldForwardProp:Dn})(ut(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function oy(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",d={...e,notched:i,withLabel:l};return P.jsx(QP,{"aria-hidden":!0,className:o,ownerState:d,...a,children:P.jsx(JP,{ownerState:d,children:l?P.jsx("span",{children:r}):Pp||(Pp=P.jsx("span",{className:"notranslate",children:""}))})})}process.env.NODE_ENV!=="production"&&(oy.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const eD=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},IT,t);return{...t,...o}},tD=le(Kl,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ql})(ut(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${po.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${po.focused} .${po.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(dn()).map(([n])=>({props:{color:n},style:{[`&.${po.focused} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${po.error} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${po.disabled} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),nD=le(oy,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ut(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),oD=le(Xl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Gl})(ut(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Ps=T.forwardRef(function(t,n){var o;const r=Xe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:d,multiline:u=!1,notched:f,slots:p={},type:y="text",...w}=r,b=eD(r),m=On(),v=gr({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:m,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},D=p.root??i.Root??tD,x=p.input??i.Input??oD;return P.jsx(Zl,{slots:{root:D,input:x},renderSuffix:S=>P.jsx(nD,{ownerState:k,className:b.notchedOutline,label:d!=null&&d!==""&&v.required?o||(o=P.jsxs(T.Fragment,{children:[d," ","*"]})):d,notched:typeof f<"u"?f:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:y,...w,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Ps&&(Ps.muiName="Input");function rD(e){return Oe("MuiSelect",e)}const ei=De("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Dp;const sD=le(ey,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ei.select}`]:t.select},{[`&.${ei.select}`]:t[n.variant]},{[`&.${ei.error}`]:t.error},{[`&.${ei.multiple}`]:t.multiple}]}})({[`&.${ei.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),iD=le(ty,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${be(n.variant)}`],n.open&&t.iconOpen]}})({}),aD=le("input",{shouldForwardProp:e=>vg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Op(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function lD(e){return e==null||typeof e=="string"&&!e.trim()}const cD=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${be(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ie(l,rD,t)},ry=T.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:d,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:y,error:w=!1,IconComponent:b,inputRef:m,labelId:v,MenuProps:k={},multiple:D,name:x,onBlur:S,onChange:C,onClose:M,onFocus:A,onOpen:F,open:z,readOnly:R,renderValue:$,SelectDisplayProps:K={},tabIndex:X,type:q,value:Y,variant:H="standard",...ae}=t,[N,O]=xo({controlled:Y,default:f,name:"Select"}),[V,W]=xo({controlled:z,default:u,name:"Select"}),ne=T.useRef(null),oe=T.useRef(null),[se,j]=T.useState(null),{current:J}=T.useRef(z!=null),[ee,te]=T.useState(),ce=at(n,m),ie=T.useCallback(Me=>{oe.current=Me,Me&&j(Me)},[]),he=se?.parentNode;T.useImperativeHandle(ce,()=>({focus:()=>{oe.current.focus()},node:ne.current,value:N}),[N]),T.useEffect(()=>{u&&V&&se&&!J&&(te(a?null:he.clientWidth),oe.current.focus())},[se,a]),T.useEffect(()=>{i&&oe.current.focus()},[i]),T.useEffect(()=>{if(!v)return;const Me=gn(oe.current).getElementById(v);if(Me){const Be=()=>{getSelection().isCollapsed&&oe.current.focus()};return Me.addEventListener("click",Be),()=>{Me.removeEventListener("click",Be)}}},[v]);const B=(Me,Be)=>{Me?F&&F(Be):M&&M(Be),J||(te(a?null:he.clientWidth),W(Me))},re=Me=>{Me.button===0&&(Me.preventDefault(),oe.current.focus(),B(!0,Me))},Q=Me=>{B(!1,Me)},fe=T.Children.toArray(l),me=Me=>{const Be=fe.find(vt=>vt.props.value===Me.target.value);Be!==void 0&&(O(Be.props.value),C&&C(Me,Be))},Ce=Me=>Be=>{let vt;if(Be.currentTarget.hasAttribute("tabindex")){if(D){vt=Array.isArray(N)?N.slice():[];const ln=N.indexOf(Me.props.value);ln===-1?vt.push(Me.props.value):vt.splice(ln,1)}else vt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(Be),N!==vt&&(O(vt),C)){const ln=Be.nativeEvent||Be,uo=new ln.constructor(ln.type,ln);Object.defineProperty(uo,"target",{writable:!0,value:{value:vt,name:x}}),C(uo,Me)}D||B(!1,Be)}},ve=Me=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),B(!0,Me))},xe=se!==null&&V,$e=Me=>{!xe&&S&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:N,name:x}}),S(Me))};delete ae["aria-invalid"];let Ae,rt;const Pe=[];let ft=!1,Kt=!1;(pl({value:N})||y)&&($?Ae=$(N):ft=!0);const st=fe.map(Me=>{if(!T.isValidElement(Me))return null;process.env.NODE_ENV!=="production"&&au.isFragment(Me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
227
|
+
`));let Be;if(D){if(!Array.isArray(N))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":_o(2));Be=N.some(vt=>Op(vt,Me.props.value)),Be&&ft&&Pe.push(Me.props.children)}else Be=Op(N,Me.props.value),Be&&ft&&(rt=Me.props.children);return Be&&(Kt=!0),T.cloneElement(Me,{"aria-selected":Be?"true":"false",onClick:Ce(Me),onKeyUp:vt=>{vt.key===" "&&vt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(vt)},role:"option",selected:Be,value:void 0,"data-value":Me.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!Kt&&!D&&N!==""){const Me=fe.map(Be=>Be.props.value);console.warn([`MUI: You have provided an out-of-range value \`${N}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Me.filter(Be=>Be!=null).map(Be=>`\`${Be}\``).join(", ")||'""'}.`].join(`
|
|
228
|
+
`))}},[Kt,fe,D,x,N]),ft&&(D?Pe.length===0?Ae=null:Ae=Pe.reduce((Me,Be,vt)=>(Me.push(Be),vt<Pe.length-1&&Me.push(", "),Me),[]):Ae=rt);let Yt=ee;!a&&J&&se&&(Yt=he.clientWidth);let Xt;typeof X<"u"?Xt=X:Xt=p?null:0;const on=K.id||(x?`mui-component-select-${x}`:void 0),Ue={...t,variant:H,value:N,open:xe,error:w},tt=cD(Ue),Mn={...k.PaperProps,...k.slotProps?.paper},hn=pr();return P.jsxs(T.Fragment,{children:[P.jsx(sD,{as:"div",ref:ie,tabIndex:Xt,role:"combobox","aria-controls":hn,"aria-disabled":p?"true":void 0,"aria-expanded":xe?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,on].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ve,onMouseDown:p||R?null:re,onBlur:$e,onFocus:A,...K,ownerState:Ue,className:Se(K.className,tt.select,d),id:on,children:lD(Ae)?Dp||(Dp=P.jsx("span",{className:"notranslate",children:""})):Ae}),P.jsx(aD,{"aria-invalid":w,value:Array.isArray(N)?N.join(","):N,name:x,ref:ne,"aria-hidden":!0,onChange:me,tabIndex:-1,disabled:p,className:tt.nativeInput,autoFocus:i,...ae,ownerState:Ue}),P.jsx(iD,{as:b,className:tt.icon,ownerState:Ue}),P.jsx(Jg,{id:`menu-${x||""}`,anchorEl:he,open:xe,onClose:Q,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...k,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":D?"true":void 0,disableListWrap:!0,id:hn,...k.MenuListProps},slotProps:{...k.slotProps,paper:{...Mn,style:{minWidth:Yt,...Mn!=null?Mn.style:null}}},children:st})]})});process.env.NODE_ENV!=="production"&&(ry.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Wt,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const dD=e=>{const{classes:t}=e;return t},Eu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Dn(e)&&e!=="variant",slot:"Root"},uD=le(ji,Eu)(""),hD=le(Ps,Eu)(""),fD=le($i,Eu)(""),aa=T.forwardRef(function(t,n){const o=Xe({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:u=!1,IconComponent:f=AT,id:p,input:y,inputProps:w,label:b,labelId:m,MenuProps:v,multiple:k=!1,native:D=!1,onClose:x,onOpen:S,open:C,renderValue:M,SelectDisplayProps:A,variant:F="outlined",...z}=o,R=D?ny:ry,$=On(),K=gr({props:o,muiFormControl:$,states:["variant","error"]}),X=K.variant||F,q={...o,variant:X,classes:a},Y=dD(q),{root:H,...ae}=Y,N=y||{standard:P.jsx(uD,{ownerState:q}),outlined:P.jsx(hD,{label:b,ownerState:q}),filled:P.jsx(fD,{ownerState:q})}[X],O=at(n,ea(N));return P.jsx(T.Fragment,{children:T.cloneElement(N,{inputComponent:R,inputProps:{children:i,error:K.error,IconComponent:f,variant:X,type:void 0,multiple:k,...D?{id:p}:{autoWidth:r,defaultOpen:d,displayEmpty:u,labelId:m,MenuProps:v,onClose:x,onOpen:S,open:C,renderValue:M,SelectDisplayProps:{id:p,...A}},...w,classes:w?mn(ae,w.classes):ae,...y?y.props.inputProps:{}},...(k&&D||u)&&X==="outlined"?{notched:!0}:{},ref:O,className:Se(N.props.className,l,Y.root),...!y&&{variant:X},...z})})});process.env.NODE_ENV!=="production"&&(aa.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});aa.muiName="Select";function pD(e){return Oe("MuiTextField",e)}De("MuiTextField",["root"]);const mD={standard:ji,filled:$i,outlined:Ps},gD=e=>{const{classes:t}=e;return Ie({root:["root"]},pD,t)},yD=le(sa,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ds=T.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:m,InputLabelProps:v,inputProps:k,InputProps:D,inputRef:x,label:S,maxRows:C,minRows:M,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:O,value:V,variant:W="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:w,multiline:A,required:X,select:Y,variant:W},se=gD(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(m),J=b&&j?`${j}-helper-text`:void 0,ee=S&&j?`${j}-label`:void 0,te=mD[W],ce={slots:ae,slotProps:{input:D,inputLabel:v,htmlInput:k,formHelperText:y,select:H,...N}},ie={},he=ce.slotProps.inputLabel;W==="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[B,re]=Rn("input",{elementType:te,externalForwardedProps:ce,additionalProps:ie,ownerState:oe}),[Q,fe]=Rn("inputLabel",{elementType:ia,externalForwardedProps:ce,ownerState:oe}),[me,Ce]=Rn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ve,xe]=Rn("formHelperText",{elementType:Cu,externalForwardedProps:ce,ownerState:oe}),[$e,Ae]=Rn("select",{elementType:aa,externalForwardedProps:ce,ownerState:oe}),rt=P.jsx(B,{"aria-describedby":J,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:w,multiline:A,name:F,rows:q,maxRows:C,minRows:M,type:O,value:V,id:j,inputRef:x,onBlur:z,onChange:R,onFocus:$,placeholder:K,inputProps:Ce,slots:{input:ae.htmlInput?me:void 0},...re});return P.jsxs(yD,{className:Se(se.root,l),disabled:f,error:p,fullWidth:w,ref:n,required:X,color:d,variant:W,ownerState:oe,...ne,children:[S!=null&&S!==""&&P.jsx(Q,{htmlFor:j,id:ee,...fe,children:S}),Y?P.jsx($e,{"aria-describedby":J,id:j,labelId:ee,value:V,input:rt,...Ae,children:a}):rt,b&&P.jsx(ve,{id:J,...xe,children:b})]})});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:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const vD=le(Fs)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),bD={Wrapper:vD},wD=({setIsOpened:e})=>P.jsx(bD.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),CD=le(Fs)(({theme:e})=>({visibility:"hidden",color:e.palette.text.primary,backgroundColor:e.palette.background.default,borderRadius:"5px",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0})),SD={Content:CD},sy=({children:e,setIsOpened:t})=>{const n=document.getElementById("portal-root");return n?cs.createPortal(P.jsxs(ze.Fragment,{children:[P.jsx(SD.Content,{id:Ud,children:e}),P.jsx(wD,{setIsOpened:t})]}),n):null};function _D(e,t=300){let n;return function(...o){const r=()=>e.apply(this,o);clearTimeout(n),n=setTimeout(r,t)}}const Jc=e=>e!==e?"":String(e??"").replace(/(^")|("$)/g,"");function iy(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}const xD=["FormatterStatus","FormatterNumber"];class RD{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=Jc(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 fA(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=Jc(iy(d.title));p+=`"${y}",`}else for(let y=0;y<r.length;++y){const w=r[y],b=w.field,m=l?.columns?.[b]?.formatter,v=w.printer||m||w.formatter;let k=d[b];if(f){const x=w.groupTotalsFormatter;k=x?x(d,w,t):""}else v&&!xD.includes(v.name)&&(k=v(0,0,k,w,d,t));const D=Jc(k);p+=`"${D}",`}return this.addRowSeparator(`${i}${p}`)},"")}addRowSeparator(t){return`${t}
|
|
229
|
+
`}}class ED{handleKeyboardEvent(){}pushToCommandQueue(){}resetQueue(){}setExternalVariables(t){}getExternalVariables(){return{}}}const TD="checkboxSelector";//! moment.js
|
|
195
230
|
//! version : 2.30.1
|
|
196
231
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
197
232
|
//! license : MIT
|
|
198
233
|
//! momentjs.com
|
|
199
|
-
var
|
|
200
|
-
[`+
|
|
201
|
-
Arguments: `+Array.prototype.slice.call(
|
|
202
|
-
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Nh={};function Uc(e,t){ee.deprecationHandler!=null&&ee.deprecationHandler(e,t),Nh[e]||(jc(t),Nh[e]=!0)}ee.suppressDeprecationWarnings=!1;ee.deprecationHandler=null;function mr(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function n_(e){var t,r;for(r in e)Pe(e,r)&&(t=e[r],mr(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ra(e,t){var r=jr({},e),i;for(i in t)Pe(t,i)&&(hi(e[i])&&hi(t[i])?(r[i]={},jr(r[i],e[i]),jr(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in e)Pe(e,i)&&!Pe(t,i)&&hi(e[i])&&(r[i]=jr({},r[i]));return r}function Pa(e){e!=null&&this.set(e)}var ia;Object.keys?ia=Object.keys:ia=function(e){var t,r=[];for(t in e)Pe(e,t)&&r.push(t);return r};var o_={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function a_(e,t,r){var i=this._calendar[e]||this._calendar.sameElse;return mr(i)?i.call(t,r):i}function fr(e,t,r){var i=""+Math.abs(e),s=t-i.length,o=e>=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}var Oa=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,nn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Fo={},Hi={};function pe(e,t,r,i){var s=i;typeof i=="string"&&(s=function(){return this[i]()}),e&&(Hi[e]=s),t&&(Hi[t[0]]=function(){return fr(s.apply(this,arguments),t[1],t[2])}),r&&(Hi[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function l_(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function h_(e){var t=e.match(Oa),r,i;for(r=0,i=t.length;r<i;r++)Hi[t[r]]?t[r]=Hi[t[r]]:t[r]=l_(t[r]);return function(s){var o="",l;for(l=0;l<i;l++)o+=mr(t[l])?t[l].call(s,e):t[l];return o}}function un(e,t){return e.isValid()?(t=Gc(t,e.localeData()),Fo[t]=Fo[t]||h_(t),Fo[t](e)):e.localeData().invalidDate()}function Gc(e,t){var r=5;function i(s){return t.longDateFormat(s)||s}for(nn.lastIndex=0;r>=0&&nn.test(e);)e=e.replace(nn,i),nn.lastIndex=0,r-=1;return e}var c_={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 u_(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Oa).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var d_="Invalid date";function f_(){return this._invalidDate}var p_="%d",m_=/\d{1,2}/;function g_(e){return this._ordinal.replace("%d",e)}var y_={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function v_(e,t,r,i){var s=this._relativeTime[r];return mr(s)?s(e,t,r,i):s.replace(/%d/i,e)}function w_(e,t){var r=this._relativeTime[e>0?"future":"past"];return mr(r)?r(t):r.replace(/%s/i,t)}var Lh={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 Zt(e){return typeof e=="string"?Lh[e]||Lh[e.toLowerCase()]:void 0}function Aa(e){var t={},r,i;for(i in e)Pe(e,i)&&(r=Zt(i),r&&(t[r]=e[i]));return t}var __={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 b_(e){var t=[],r;for(r in e)Pe(e,r)&&t.push({unit:r,priority:__[r]});return t.sort(function(i,s){return i.priority-s.priority}),t}var qc=/\d/,Yt=/\d\d/,Xc=/\d{3}/,Na=/\d{4}/,jn=/[+-]?\d{6}/,Je=/\d\d?/,Kc=/\d\d\d\d?/,Zc=/\d\d\d\d\d\d?/,Un=/\d{1,3}/,La=/\d{1,4}/,Gn=/[+-]?\d{1,6}/,Ui=/\d+/,qn=/[+-]?\d+/,C_=/Z|[+-]\d\d:?\d\d/gi,Xn=/Z|[+-]\d\d(?::?\d\d)?/gi,S_=/[+-]?\d+(\.\d{1,3})?/,As=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Gi=/^[1-9]\d?/,Fa=/^([1-9]\d|\d)/,Cn;Cn={};function ne(e,t,r){Cn[e]=mr(t)?t:function(i,s){return i&&r?r:t}}function R_(e,t){return Pe(Cn,e)?Cn[e](t._strict,t._locale):new RegExp(E_(e))}function E_(e){return Mr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,i,s,o){return r||i||s||o}))}function Mr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function qt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Re(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=qt(t)),r}var sa={};function je(e,t){var r,i=t,s;for(typeof e=="string"&&(e=[e]),Ar(t)&&(i=function(o,l){l[t]=Re(o)}),s=e.length,r=0;r<s;r++)sa[e[r]]=i}function Ns(e,t){je(e,function(r,i,s,o){s._w=s._w||{},t(r,s._w,s,o)})}function x_(e,t,r){t!=null&&Pe(sa,e)&&sa[e](t,r._a,r,e)}function Kn(e){return e%4===0&&e%100!==0||e%400===0}var kt=0,Tr=1,ur=2,yt=3,Qt=4,Dr=5,ai=6,k_=7,T_=8;pe("Y",0,0,function(){var e=this.year();return e<=9999?fr(e,4):"+"+e});pe(0,["YY",2],0,function(){return this.year()%100});pe(0,["YYYY",4],0,"year");pe(0,["YYYYY",5],0,"year");pe(0,["YYYYYY",6,!0],0,"year");ne("Y",qn);ne("YY",Je,Yt);ne("YYYY",La,Na);ne("YYYYY",Gn,jn);ne("YYYYYY",Gn,jn);je(["YYYYY","YYYYYY"],kt);je("YYYY",function(e,t){t[kt]=e.length===2?ee.parseTwoDigitYear(e):Re(e)});je("YY",function(e,t){t[kt]=ee.parseTwoDigitYear(e)});je("Y",function(e,t){t[kt]=parseInt(e,10)});function ps(e){return Kn(e)?366:365}ee.parseTwoDigitYear=function(e){return Re(e)+(Re(e)>68?1900:2e3)};var Jc=qi("FullYear",!0);function D_(){return Kn(this.year())}function qi(e,t){return function(r){return r!=null?(Qc(this,e,r),ee.updateOffset(this,t),this):Cs(this,e)}}function Cs(e,t){if(!e.isValid())return NaN;var r=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return i?r.getUTCSeconds():r.getSeconds();case"Minutes":return i?r.getUTCMinutes():r.getMinutes();case"Hours":return i?r.getUTCHours():r.getHours();case"Date":return i?r.getUTCDate():r.getDate();case"Day":return i?r.getUTCDay():r.getDay();case"Month":return i?r.getUTCMonth():r.getMonth();case"FullYear":return i?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Qc(e,t,r){var i,s,o,l,h;if(!(!e.isValid()||isNaN(r))){switch(i=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?i.setUTCMilliseconds(r):i.setMilliseconds(r));case"Seconds":return void(s?i.setUTCSeconds(r):i.setSeconds(r));case"Minutes":return void(s?i.setUTCMinutes(r):i.setMinutes(r));case"Hours":return void(s?i.setUTCHours(r):i.setHours(r));case"Date":return void(s?i.setUTCDate(r):i.setDate(r));case"FullYear":break;default:return}o=r,l=e.month(),h=e.date(),h=h===29&&l===1&&!Kn(o)?28:h,s?i.setUTCFullYear(o,l,h):i.setFullYear(o,l,h)}}function M_(e){return e=Zt(e),mr(this[e])?this[e]():this}function P_(e,t){if(typeof e=="object"){e=Aa(e);var r=b_(e),i,s=r.length;for(i=0;i<s;i++)this[r[i].unit](e[r[i].unit])}else if(e=Zt(e),mr(this[e]))return this[e](t);return this}function O_(e,t){return(e%t+t)%t}var dt;Array.prototype.indexOf?dt=Array.prototype.indexOf:dt=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Ia(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=O_(t,12);return e+=(t-r)/12,r===1?Kn(e)?29:28:31-r%7%2}pe("M",["MM",2],"Mo",function(){return this.month()+1});pe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});pe("MMMM",0,0,function(e){return this.localeData().months(this,e)});ne("M",Je,Gi);ne("MM",Je,Yt);ne("MMM",function(e,t){return t.monthsShortRegex(e)});ne("MMMM",function(e,t){return t.monthsRegex(e)});je(["M","MM"],function(e,t){t[Tr]=Re(e)-1});je(["MMM","MMMM"],function(e,t,r,i){var s=r._locale.monthsParse(e,i,r._strict);s!=null?t[Tr]=s:we(r).invalidMonth=e});var A_="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),eu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,N_=As,L_=As;function F_(e,t){return e?er(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||tu).test(t)?"format":"standalone"][e.month()]:er(this._months)?this._months:this._months.standalone}function I_(e,t){return e?er(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[tu.test(t)?"format":"standalone"][e.month()]:er(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function W_(e,t,r){var i,s,o,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=pr([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return r?t==="MMM"?(s=dt.call(this._shortMonthsParse,l),s!==-1?s:null):(s=dt.call(this._longMonthsParse,l),s!==-1?s:null):t==="MMM"?(s=dt.call(this._shortMonthsParse,l),s!==-1?s:(s=dt.call(this._longMonthsParse,l),s!==-1?s:null)):(s=dt.call(this._longMonthsParse,l),s!==-1?s:(s=dt.call(this._shortMonthsParse,l),s!==-1?s:null))}function H_(e,t,r){var i,s,o;if(this._monthsParseExact)return W_.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=pr([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(r&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}}function ru(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Re(t);else if(t=e.localeData().monthsParse(t),!Ar(t))return e}var r=t,i=e.date();return i=i<29?i:Math.min(i,Ia(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,i):e._d.setMonth(r,i),e}function iu(e){return e!=null?(ru(this,e),ee.updateOffset(this,!0),this):Cs(this,"Month")}function Y_(){return Ia(this.year(),this.month())}function z_(e){return this._monthsParseExact?(Pe(this,"_monthsRegex")||su.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Pe(this,"_monthsShortRegex")||(this._monthsShortRegex=N_),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function $_(e){return this._monthsParseExact?(Pe(this,"_monthsRegex")||su.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Pe(this,"_monthsRegex")||(this._monthsRegex=L_),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function su(){function e(d,f){return f.length-d.length}var t=[],r=[],i=[],s,o,l,h;for(s=0;s<12;s++)o=pr([2e3,s]),l=Mr(this.monthsShort(o,"")),h=Mr(this.months(o,"")),t.push(l),r.push(h),i.push(h),i.push(l);t.sort(e),r.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function B_(e,t,r,i,s,o,l){var h;return e<100&&e>=0?(h=new Date(e+400,t,r,i,s,o,l),isFinite(h.getFullYear())&&h.setFullYear(e)):h=new Date(e,t,r,i,s,o,l),h}function Ss(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Sn(e,t,r){var i=7+t-r,s=(7+Ss(e,0,i).getUTCDay()-t)%7;return-s+i-1}function nu(e,t,r,i,s){var o=(7+r-i)%7,l=Sn(e,i,s),h=1+7*(t-1)+o+l,d,f;return h<=0?(d=e-1,f=ps(d)+h):h>ps(e)?(d=e+1,f=h-ps(e)):(d=e,f=h),{year:d,dayOfYear:f}}function Rs(e,t,r){var i=Sn(e.year(),t,r),s=Math.floor((e.dayOfYear()-i-1)/7)+1,o,l;return s<1?(l=e.year()-1,o=s+Pr(l,t,r)):s>Pr(e.year(),t,r)?(o=s-Pr(e.year(),t,r),l=e.year()+1):(l=e.year(),o=s),{week:o,year:l}}function Pr(e,t,r){var i=Sn(e,t,r),s=Sn(e+1,t,r);return(ps(e)-i+s)/7}pe("w",["ww",2],"wo","week");pe("W",["WW",2],"Wo","isoWeek");ne("w",Je,Gi);ne("ww",Je,Yt);ne("W",Je,Gi);ne("WW",Je,Yt);Ns(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=Re(e)});function V_(e){return Rs(e,this._week.dow,this._week.doy).week}var j_={dow:0,doy:6};function U_(){return this._week.dow}function G_(){return this._week.doy}function q_(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function X_(e){var t=Rs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}pe("d",0,"do","day");pe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});pe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});pe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});pe("e",0,0,"weekday");pe("E",0,0,"isoWeekday");ne("d",Je);ne("e",Je);ne("E",Je);ne("dd",function(e,t){return t.weekdaysMinRegex(e)});ne("ddd",function(e,t){return t.weekdaysShortRegex(e)});ne("dddd",function(e,t){return t.weekdaysRegex(e)});Ns(["dd","ddd","dddd"],function(e,t,r,i){var s=r._locale.weekdaysParse(e,i,r._strict);s!=null?t.d=s:we(r).invalidWeekday=e});Ns(["d","e","E"],function(e,t,r,i){t[i]=Re(e)});function K_(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Z_(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wa(e,t){return e.slice(t,7).concat(e.slice(0,t))}var J_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ou="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Q_="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),e0=As,t0=As,r0=As;function i0(e,t){var r=er(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wa(r,this._week.dow):e?r[e.day()]:r}function s0(e){return e===!0?Wa(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function n0(e){return e===!0?Wa(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function o0(e,t,r){var i,s,o,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=pr([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(s=dt.call(this._weekdaysParse,l),s!==-1?s:null):t==="ddd"?(s=dt.call(this._shortWeekdaysParse,l),s!==-1?s:null):(s=dt.call(this._minWeekdaysParse,l),s!==-1?s:null):t==="dddd"?(s=dt.call(this._weekdaysParse,l),s!==-1||(s=dt.call(this._shortWeekdaysParse,l),s!==-1)?s:(s=dt.call(this._minWeekdaysParse,l),s!==-1?s:null)):t==="ddd"?(s=dt.call(this._shortWeekdaysParse,l),s!==-1||(s=dt.call(this._weekdaysParse,l),s!==-1)?s:(s=dt.call(this._minWeekdaysParse,l),s!==-1?s:null)):(s=dt.call(this._minWeekdaysParse,l),s!==-1||(s=dt.call(this._weekdaysParse,l),s!==-1)?s:(s=dt.call(this._shortWeekdaysParse,l),s!==-1?s:null))}function a0(e,t,r){var i,s,o;if(this._weekdaysParseExact)return o0.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=pr([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(r&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(r&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}}function l0(e){if(!this.isValid())return e!=null?this:NaN;var t=Cs(this,"Day");return e!=null?(e=K_(e,this.localeData()),this.add(e-t,"d")):t}function h0(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 c0(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Z_(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function u0(e){return this._weekdaysParseExact?(Pe(this,"_weekdaysRegex")||Ha.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Pe(this,"_weekdaysRegex")||(this._weekdaysRegex=e0),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function d0(e){return this._weekdaysParseExact?(Pe(this,"_weekdaysRegex")||Ha.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Pe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=t0),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function f0(e){return this._weekdaysParseExact?(Pe(this,"_weekdaysRegex")||Ha.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Pe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=r0),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ha(){function e(p,m){return m.length-p.length}var t=[],r=[],i=[],s=[],o,l,h,d,f;for(o=0;o<7;o++)l=pr([2e3,1]).day(o),h=Mr(this.weekdaysMin(l,"")),d=Mr(this.weekdaysShort(l,"")),f=Mr(this.weekdays(l,"")),t.push(h),r.push(d),i.push(f),s.push(h),s.push(d),s.push(f);t.sort(e),r.sort(e),i.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ya(){return this.hours()%12||12}function p0(){return this.hours()||24}pe("H",["HH",2],0,"hour");pe("h",["hh",2],0,Ya);pe("k",["kk",2],0,p0);pe("hmm",0,0,function(){return""+Ya.apply(this)+fr(this.minutes(),2)});pe("hmmss",0,0,function(){return""+Ya.apply(this)+fr(this.minutes(),2)+fr(this.seconds(),2)});pe("Hmm",0,0,function(){return""+this.hours()+fr(this.minutes(),2)});pe("Hmmss",0,0,function(){return""+this.hours()+fr(this.minutes(),2)+fr(this.seconds(),2)});function au(e,t){pe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}au("a",!0);au("A",!1);function lu(e,t){return t._meridiemParse}ne("a",lu);ne("A",lu);ne("H",Je,Fa);ne("h",Je,Gi);ne("k",Je,Gi);ne("HH",Je,Yt);ne("hh",Je,Yt);ne("kk",Je,Yt);ne("hmm",Kc);ne("hmmss",Zc);ne("Hmm",Kc);ne("Hmmss",Zc);je(["H","HH"],yt);je(["k","kk"],function(e,t,r){var i=Re(e);t[yt]=i===24?0:i});je(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});je(["h","hh"],function(e,t,r){t[yt]=Re(e),we(r).bigHour=!0});je("hmm",function(e,t,r){var i=e.length-2;t[yt]=Re(e.substr(0,i)),t[Qt]=Re(e.substr(i)),we(r).bigHour=!0});je("hmmss",function(e,t,r){var i=e.length-4,s=e.length-2;t[yt]=Re(e.substr(0,i)),t[Qt]=Re(e.substr(i,2)),t[Dr]=Re(e.substr(s)),we(r).bigHour=!0});je("Hmm",function(e,t,r){var i=e.length-2;t[yt]=Re(e.substr(0,i)),t[Qt]=Re(e.substr(i))});je("Hmmss",function(e,t,r){var i=e.length-4,s=e.length-2;t[yt]=Re(e.substr(0,i)),t[Qt]=Re(e.substr(i,2)),t[Dr]=Re(e.substr(s))});function m0(e){return(e+"").toLowerCase().charAt(0)==="p"}var g0=/[ap]\.?m?\.?/i,y0=qi("Hours",!0);function v0(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var hu={calendar:o_,longDateFormat:c_,invalidDate:d_,ordinal:p_,dayOfMonthOrdinalParse:m_,relativeTime:y_,months:A_,monthsShort:eu,week:j_,weekdays:J_,weekdaysMin:Q_,weekdaysShort:ou,meridiemParse:g0},rt={},as={},Es;function w0(e,t){var r,i=Math.min(e.length,t.length);for(r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}function Fh(e){return e&&e.toLowerCase().replace("_","-")}function _0(e){for(var t=0,r,i,s,o;t<e.length;){for(o=Fh(e[t]).split("-"),r=o.length,i=Fh(e[t+1]),i=i?i.split("-"):null;r>0;){if(s=Zn(o.slice(0,r).join("-")),s)return s;if(i&&i.length>=r&&w0(o,i)>=r-1)break;r--}t++}return Es}function b0(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Zn(e){var t=null,r;if(rt[e]===void 0&&typeof module<"u"&&module&&module.exports&&b0(e))try{t=Es._abbr,r=require,r("./locale/"+e),Gr(t)}catch{rt[e]=null}return rt[e]}function Gr(e,t){var r;return e&&(Lt(t)?r=Nr(e):r=za(e,t),r?Es=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Es._abbr}function za(e,t){if(t!==null){var r,i=hu;if(t.abbr=e,rt[e]!=null)Uc("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=rt[e]._config;else if(t.parentLocale!=null)if(rt[t.parentLocale]!=null)i=rt[t.parentLocale]._config;else if(r=Zn(t.parentLocale),r!=null)i=r._config;else return as[t.parentLocale]||(as[t.parentLocale]=[]),as[t.parentLocale].push({name:e,config:t}),null;return rt[e]=new Pa(ra(i,t)),as[e]&&as[e].forEach(function(s){za(s.name,s.config)}),Gr(e),rt[e]}else return delete rt[e],null}function C0(e,t){if(t!=null){var r,i,s=hu;rt[e]!=null&&rt[e].parentLocale!=null?rt[e].set(ra(rt[e]._config,t)):(i=Zn(e),i!=null&&(s=i._config),t=ra(s,t),i==null&&(t.abbr=e),r=new Pa(t),r.parentLocale=rt[e],rt[e]=r),Gr(e)}else rt[e]!=null&&(rt[e].parentLocale!=null?(rt[e]=rt[e].parentLocale,e===Gr()&&Gr(e)):rt[e]!=null&&delete rt[e]);return rt[e]}function Nr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Es;if(!er(e)){if(t=Zn(e),t)return t;e=[e]}return _0(e)}function S0(){return ia(rt)}function $a(e){var t,r=e._a;return r&&we(e).overflow===-2&&(t=r[Tr]<0||r[Tr]>11?Tr:r[ur]<1||r[ur]>Ia(r[kt],r[Tr])?ur:r[yt]<0||r[yt]>24||r[yt]===24&&(r[Qt]!==0||r[Dr]!==0||r[ai]!==0)?yt:r[Qt]<0||r[Qt]>59?Qt:r[Dr]<0||r[Dr]>59?Dr:r[ai]<0||r[ai]>999?ai:-1,we(e)._overflowDayOfYear&&(t<kt||t>ur)&&(t=ur),we(e)._overflowWeeks&&t===-1&&(t=k_),we(e)._overflowWeekday&&t===-1&&(t=T_),we(e).overflow=t),e}var R0=/^\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)?)?$/,E0=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,x0=/Z|[+-]\d\d(?::?\d\d)?/,on=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Io=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],k0=/^\/?Date\((-?\d+)/i,T0=/^(?:(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}))$/,D0={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 cu(e){var t,r,i=e._i,s=R0.exec(i)||E0.exec(i),o,l,h,d,f=on.length,p=Io.length;if(s){for(we(e).iso=!0,t=0,r=f;t<r;t++)if(on[t][1].exec(s[1])){l=on[t][0],o=on[t][2]!==!1;break}if(l==null){e._isValid=!1;return}if(s[3]){for(t=0,r=p;t<r;t++)if(Io[t][1].exec(s[3])){h=(s[2]||" ")+Io[t][0];break}if(h==null){e._isValid=!1;return}}if(!o&&h!=null){e._isValid=!1;return}if(s[4])if(x0.exec(s[4]))d="Z";else{e._isValid=!1;return}e._f=l+(h||"")+(d||""),Va(e)}else e._isValid=!1}function M0(e,t,r,i,s,o){var l=[P0(e),eu.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(s,10)];return o&&l.push(parseInt(o,10)),l}function P0(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function O0(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function A0(e,t,r){if(e){var i=ou.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(i!==s)return we(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function N0(e,t,r){if(e)return D0[e];if(t)return 0;var i=parseInt(r,10),s=i%100,o=(i-s)/100;return o*60+s}function uu(e){var t=T0.exec(O0(e._i)),r;if(t){if(r=M0(t[4],t[3],t[2],t[5],t[6],t[7]),!A0(t[1],r,e))return;e._a=r,e._tzm=N0(t[8],t[9],t[10]),e._d=Ss.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),we(e).rfc2822=!0}else e._isValid=!1}function L0(e){var t=k0.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(cu(e),e._isValid===!1)delete e._isValid;else return;if(uu(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ee.createFromInputFallback(e)}ee.createFromInputFallback=Kt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ai(e,t,r){return e??t??r}function F0(e){var t=new Date(ee.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ba(e){var t,r,i=[],s,o,l;if(!e._d){for(s=F0(e),e._w&&e._a[ur]==null&&e._a[Tr]==null&&I0(e),e._dayOfYear!=null&&(l=Ai(e._a[kt],s[kt]),(e._dayOfYear>ps(l)||e._dayOfYear===0)&&(we(e)._overflowDayOfYear=!0),r=Ss(l,0,e._dayOfYear),e._a[Tr]=r.getUTCMonth(),e._a[ur]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=s[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[yt]===24&&e._a[Qt]===0&&e._a[Dr]===0&&e._a[ai]===0&&(e._nextDay=!0,e._a[yt]=0),e._d=(e._useUTC?Ss:B_).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[yt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(we(e).weekdayMismatch=!0)}}function I0(e){var t,r,i,s,o,l,h,d,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,l=4,r=Ai(t.GG,e._a[kt],Rs(Ze(),1,4).year),i=Ai(t.W,1),s=Ai(t.E,1),(s<1||s>7)&&(d=!0)):(o=e._locale._week.dow,l=e._locale._week.doy,f=Rs(Ze(),o,l),r=Ai(t.gg,e._a[kt],f.year),i=Ai(t.w,f.week),t.d!=null?(s=t.d,(s<0||s>6)&&(d=!0)):t.e!=null?(s=t.e+o,(t.e<0||t.e>6)&&(d=!0)):s=o),i<1||i>Pr(r,o,l)?we(e)._overflowWeeks=!0:d!=null?we(e)._overflowWeekday=!0:(h=nu(r,i,s,o,l),e._a[kt]=h.year,e._dayOfYear=h.dayOfYear)}ee.ISO_8601=function(){};ee.RFC_2822=function(){};function Va(e){if(e._f===ee.ISO_8601){cu(e);return}if(e._f===ee.RFC_2822){uu(e);return}e._a=[],we(e).empty=!0;var t=""+e._i,r,i,s,o,l,h=t.length,d=0,f,p;for(s=Gc(e._f,e._locale).match(Oa)||[],p=s.length,r=0;r<p;r++)o=s[r],i=(t.match(R_(o,e))||[])[0],i&&(l=t.substr(0,t.indexOf(i)),l.length>0&&we(e).unusedInput.push(l),t=t.slice(t.indexOf(i)+i.length),d+=i.length),Hi[o]?(i?we(e).empty=!1:we(e).unusedTokens.push(o),x_(o,i,e)):e._strict&&!i&&we(e).unusedTokens.push(o);we(e).charsLeftOver=h-d,t.length>0&&we(e).unusedInput.push(t),e._a[yt]<=12&&we(e).bigHour===!0&&e._a[yt]>0&&(we(e).bigHour=void 0),we(e).parsedDateParts=e._a.slice(0),we(e).meridiem=e._meridiem,e._a[yt]=W0(e._locale,e._a[yt],e._meridiem),f=we(e).era,f!==null&&(e._a[kt]=e._locale.erasConvertYear(f,e._a[kt])),Ba(e),$a(e)}function W0(e,t,r){var i;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(i=e.isPM(r),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function H0(e){var t,r,i,s,o,l,h=!1,d=e._f.length;if(d===0){we(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<d;s++)o=0,l=!1,t=Ma({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Va(t),Da(t)&&(l=!0),o+=we(t).charsLeftOver,o+=we(t).unusedTokens.length*10,we(t).score=o,h?o<i&&(i=o,r=t):(i==null||o<i||l)&&(i=o,r=t,l&&(h=!0));jr(e,r||t)}function Y0(e){if(!e._d){var t=Aa(e._i),r=t.day===void 0?t.date:t.day;e._a=Vc([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),Ba(e)}}function z0(e){var t=new Os($a(du(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function du(e){var t=e._i,r=e._f;return e._locale=e._locale||Nr(e._l),t===null||r===void 0&&t===""?Vn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),tr(t)?new Os($a(t)):(Ps(t)?e._d=t:er(r)?H0(e):r?Va(e):$0(e),Da(e)||(e._d=null),e))}function $0(e){var t=e._i;Lt(t)?e._d=new Date(ee.now()):Ps(t)?e._d=new Date(t.valueOf()):typeof t=="string"?L0(e):er(t)?(e._a=Vc(t.slice(0),function(r){return parseInt(r,10)}),Ba(e)):hi(t)?Y0(e):Ar(t)?e._d=new Date(t):ee.createFromInputFallback(e)}function fu(e,t,r,i,s){var o={};return(t===!0||t===!1)&&(i=t,t=void 0),(r===!0||r===!1)&&(i=r,r=void 0),(hi(e)&&Ta(e)||er(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=s,o._l=r,o._i=e,o._f=t,o._strict=i,z0(o)}function Ze(e,t,r,i){return fu(e,t,r,i,!1)}var B0=Kt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Vn()}),V0=Kt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Vn()});function pu(e,t){var r,i;if(t.length===1&&er(t[0])&&(t=t[0]),!t.length)return Ze();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](r))&&(r=t[i]);return r}function j0(){var e=[].slice.call(arguments,0);return pu("isBefore",e)}function U0(){var e=[].slice.call(arguments,0);return pu("isAfter",e)}var G0=function(){return Date.now?Date.now():+new Date},ls=["year","quarter","month","week","day","hour","minute","second","millisecond"];function q0(e){var t,r=!1,i,s=ls.length;for(t in e)if(Pe(e,t)&&!(dt.call(ls,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<s;++i)if(e[ls[i]]){if(r)return!1;parseFloat(e[ls[i]])!==Re(e[ls[i]])&&(r=!0)}return!0}function X0(){return this._isValid}function K0(){return rr(NaN)}function Jn(e){var t=Aa(e),r=t.year||0,i=t.quarter||0,s=t.month||0,o=t.week||t.isoWeek||0,l=t.day||0,h=t.hour||0,d=t.minute||0,f=t.second||0,p=t.millisecond||0;this._isValid=q0(t),this._milliseconds=+p+f*1e3+d*6e4+h*1e3*60*60,this._days=+l+o*7,this._months=+s+i*3+r*12,this._data={},this._locale=Nr(),this._bubble()}function dn(e){return e instanceof Jn}function na(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Z0(e,t,r){var i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0,l;for(l=0;l<i;l++)Re(e[l])!==Re(t[l])&&o++;return o+s}function mu(e,t){pe(e,0,0,function(){var r=this.utcOffset(),i="+";return r<0&&(r=-r,i="-"),i+fr(~~(r/60),2)+t+fr(~~r%60,2)})}mu("Z",":");mu("ZZ","");ne("Z",Xn);ne("ZZ",Xn);je(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=ja(Xn,e)});var J0=/([\+\-]|\d\d)/gi;function ja(e,t){var r=(t||"").match(e),i,s,o;return r===null?null:(i=r[r.length-1]||[],s=(i+"").match(J0)||["-",0,0],o=+(s[1]*60)+Re(s[2]),o===0?0:s[0]==="+"?o:-o)}function Ua(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(tr(e)||Ps(e)?e.valueOf():Ze(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),ee.updateOffset(r,!1),r):Ze(e).local()}function oa(e){return-Math.round(e._d.getTimezoneOffset())}ee.updateOffset=function(){};function Q0(e,t,r){var i=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ja(Xn,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=oa(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?vu(this,rr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ee.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:oa(this)}function eb(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function tb(e){return this.utcOffset(0,e)}function rb(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(oa(this),"m")),this}function ib(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ja(C_,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function sb(e){return this.isValid()?(e=e?Ze(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function nb(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ob(){if(!Lt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ma(e,this),e=du(e),e._a?(t=e._isUTC?pr(e._a):Ze(e._a),this._isDSTShifted=this.isValid()&&Z0(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ab(){return this.isValid()?!this._isUTC:!1}function lb(){return this.isValid()?this._isUTC:!1}function gu(){return this.isValid()?this._isUTC&&this._offset===0:!1}var hb=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,cb=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function rr(e,t){var r=e,i=null,s,o,l;return dn(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Ar(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(i=hb.exec(e))?(s=i[1]==="-"?-1:1,r={y:0,d:Re(i[ur])*s,h:Re(i[yt])*s,m:Re(i[Qt])*s,s:Re(i[Dr])*s,ms:Re(na(i[ai]*1e3))*s}):(i=cb.exec(e))?(s=i[1]==="-"?-1:1,r={y:si(i[2],s),M:si(i[3],s),w:si(i[4],s),d:si(i[5],s),h:si(i[6],s),m:si(i[7],s),s:si(i[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(l=ub(Ze(r.from),Ze(r.to)),r={},r.ms=l.milliseconds,r.M=l.months),o=new Jn(r),dn(e)&&Pe(e,"_locale")&&(o._locale=e._locale),dn(e)&&Pe(e,"_isValid")&&(o._isValid=e._isValid),o}rr.fn=Jn.prototype;rr.invalid=K0;function si(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ih(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function ub(e,t){var r;return e.isValid()&&t.isValid()?(t=Ua(t,e),e.isBefore(t)?r=Ih(e,t):(r=Ih(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function yu(e,t){return function(r,i){var s,o;return i!==null&&!isNaN(+i)&&(Uc(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=i,i=o),s=rr(r,i),vu(this,s,e),this}}function vu(e,t,r,i){var s=t._milliseconds,o=na(t._days),l=na(t._months);e.isValid()&&(i=i??!0,l&&ru(e,Cs(e,"Month")+l*r),o&&Qc(e,"Date",Cs(e,"Date")+o*r),s&&e._d.setTime(e._d.valueOf()+s*r),i&&ee.updateOffset(e,o||l))}var db=yu(1,"add"),fb=yu(-1,"subtract");function wu(e){return typeof e=="string"||e instanceof String}function pb(e){return tr(e)||Ps(e)||wu(e)||Ar(e)||gb(e)||mb(e)||e===null||e===void 0}function mb(e){var t=hi(e)&&!Ta(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,o,l=i.length;for(s=0;s<l;s+=1)o=i[s],r=r||Pe(e,o);return t&&r}function gb(e){var t=er(e),r=!1;return t&&(r=e.filter(function(i){return!Ar(i)&&wu(e)}).length===0),t&&r}function yb(e){var t=hi(e)&&!Ta(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,o;for(s=0;s<i.length;s+=1)o=i[s],r=r||Pe(e,o);return t&&r}function vb(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function wb(e,t){arguments.length===1&&(arguments[0]?pb(arguments[0])?(e=arguments[0],t=void 0):yb(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Ze(),i=Ua(r,this).startOf("day"),s=ee.calendarFormat(this,i)||"sameElse",o=t&&(mr(t[s])?t[s].call(this,r):t[s]);return this.format(o||this.localeData().calendar(s,this,Ze(r)))}function _b(){return new Os(this)}function bb(e,t){var r=tr(e)?e:Ze(e);return this.isValid()&&r.isValid()?(t=Zt(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Cb(e,t){var r=tr(e)?e:Ze(e);return this.isValid()&&r.isValid()?(t=Zt(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Sb(e,t,r,i){var s=tr(e)?e:Ze(e),o=tr(t)?t:Ze(t);return this.isValid()&&s.isValid()&&o.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(i[1]===")"?this.isBefore(o,r):!this.isAfter(o,r))):!1}function Rb(e,t){var r=tr(e)?e:Ze(e),i;return this.isValid()&&r.isValid()?(t=Zt(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function Eb(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function xb(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function kb(e,t,r){var i,s,o;if(!this.isValid())return NaN;if(i=Ua(e,this),!i.isValid())return NaN;switch(s=(i.utcOffset()-this.utcOffset())*6e4,t=Zt(t),t){case"year":o=fn(this,i)/12;break;case"month":o=fn(this,i);break;case"quarter":o=fn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-s)/864e5;break;case"week":o=(this-i-s)/6048e5;break;default:o=this-i}return r?o:qt(o)}function fn(e,t){if(e.date()<t.date())return-fn(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(r,"months"),s,o;return t-i<0?(s=e.clone().add(r-1,"months"),o=(t-i)/(i-s)):(s=e.clone().add(r+1,"months"),o=(t-i)/(s-i)),-(r+o)||0}ee.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ee.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Tb(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Db(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?un(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):mr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",un(r,"Z")):un(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Mb(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,i,s,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+i+s+o)}function Pb(e){e||(e=this.isUtc()?ee.defaultFormatUtc:ee.defaultFormat);var t=un(this,e);return this.localeData().postformat(t)}function Ob(e,t){return this.isValid()&&(tr(e)&&e.isValid()||Ze(e).isValid())?rr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ab(e){return this.from(Ze(),e)}function Nb(e,t){return this.isValid()&&(tr(e)&&e.isValid()||Ze(e).isValid())?rr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Lb(e){return this.to(Ze(),e)}function _u(e){var t;return e===void 0?this._locale._abbr:(t=Nr(e),t!=null&&(this._locale=t),this)}var bu=Kt("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 Cu(){return this._locale}var Rn=1e3,Yi=60*Rn,En=60*Yi,Su=(365*400+97)*24*En;function zi(e,t){return(e%t+t)%t}function Ru(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Su:new Date(e,t,r).valueOf()}function Eu(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Su:Date.UTC(e,t,r)}function Fb(e){var t,r;if(e=Zt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Eu:Ru,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=zi(t+(this._isUTC?0:this.utcOffset()*Yi),En);break;case"minute":t=this._d.valueOf(),t-=zi(t,Yi);break;case"second":t=this._d.valueOf(),t-=zi(t,Rn);break}return this._d.setTime(t),ee.updateOffset(this,!0),this}function Ib(e){var t,r;if(e=Zt(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Eu:Ru,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=En-zi(t+(this._isUTC?0:this.utcOffset()*Yi),En)-1;break;case"minute":t=this._d.valueOf(),t+=Yi-zi(t,Yi)-1;break;case"second":t=this._d.valueOf(),t+=Rn-zi(t,Rn)-1;break}return this._d.setTime(t),ee.updateOffset(this,!0),this}function Wb(){return this._d.valueOf()-(this._offset||0)*6e4}function Hb(){return Math.floor(this.valueOf()/1e3)}function Yb(){return new Date(this.valueOf())}function zb(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function $b(){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 Bb(){return this.isValid()?this.toISOString():null}function Vb(){return Da(this)}function jb(){return jr({},we(this))}function Ub(){return we(this).overflow}function Gb(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}pe("N",0,0,"eraAbbr");pe("NN",0,0,"eraAbbr");pe("NNN",0,0,"eraAbbr");pe("NNNN",0,0,"eraName");pe("NNNNN",0,0,"eraNarrow");pe("y",["y",1],"yo","eraYear");pe("y",["yy",2],0,"eraYear");pe("y",["yyy",3],0,"eraYear");pe("y",["yyyy",4],0,"eraYear");ne("N",Ga);ne("NN",Ga);ne("NNN",Ga);ne("NNNN",sC);ne("NNNNN",nC);je(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){var s=r._locale.erasParse(e,i,r._strict);s?we(r).era=s:we(r).invalidEra=e});ne("y",Ui);ne("yy",Ui);ne("yyy",Ui);ne("yyyy",Ui);ne("yo",oC);je(["y","yy","yyy","yyyy"],kt);je(["yo"],function(e,t,r,i){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[kt]=r._locale.eraYearOrdinalParse(e,s):t[kt]=parseInt(e,10)});function qb(e,t){var r,i,s,o=this._eras||Nr("en")._eras;for(r=0,i=o.length;r<i;++r){switch(typeof o[r].since){case"string":s=ee(o[r].since).startOf("day"),o[r].since=s.valueOf();break}switch(typeof o[r].until){case"undefined":o[r].until=1/0;break;case"string":s=ee(o[r].until).startOf("day").valueOf(),o[r].until=s.valueOf();break}}return o}function Xb(e,t,r){var i,s,o=this.eras(),l,h,d;for(e=e.toUpperCase(),i=0,s=o.length;i<s;++i)if(l=o[i].name.toUpperCase(),h=o[i].abbr.toUpperCase(),d=o[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(h===e)return o[i];break;case"NNNN":if(l===e)return o[i];break;case"NNNNN":if(d===e)return o[i];break}else if([l,h,d].indexOf(e)>=0)return o[i]}function Kb(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ee(e.since).year():ee(e.since).year()+(t-e.offset)*r}function Zb(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].name;return""}function Jb(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].narrow;return""}function Qb(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].abbr;return""}function eC(){var e,t,r,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return(this.year()-ee(s[e].since).year())*r+s[e].offset;return this.year()}function tC(e){return Pe(this,"_erasNameRegex")||qa.call(this),e?this._erasNameRegex:this._erasRegex}function rC(e){return Pe(this,"_erasAbbrRegex")||qa.call(this),e?this._erasAbbrRegex:this._erasRegex}function iC(e){return Pe(this,"_erasNarrowRegex")||qa.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ga(e,t){return t.erasAbbrRegex(e)}function sC(e,t){return t.erasNameRegex(e)}function nC(e,t){return t.erasNarrowRegex(e)}function oC(e,t){return t._eraYearOrdinalRegex||Ui}function qa(){var e=[],t=[],r=[],i=[],s,o,l,h,d,f=this.eras();for(s=0,o=f.length;s<o;++s)l=Mr(f[s].name),h=Mr(f[s].abbr),d=Mr(f[s].narrow),t.push(l),e.push(h),r.push(d),i.push(l),i.push(h),i.push(d);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}pe(0,["gg",2],0,function(){return this.weekYear()%100});pe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Qn(e,t){pe(0,[e,e.length],0,t)}Qn("gggg","weekYear");Qn("ggggg","weekYear");Qn("GGGG","isoWeekYear");Qn("GGGGG","isoWeekYear");ne("G",qn);ne("g",qn);ne("GG",Je,Yt);ne("gg",Je,Yt);ne("GGGG",La,Na);ne("gggg",La,Na);ne("GGGGG",Gn,jn);ne("ggggg",Gn,jn);Ns(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=Re(e)});Ns(["gg","GG"],function(e,t,r,i){t[i]=ee.parseTwoDigitYear(e)});function aC(e){return xu.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function lC(e){return xu.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function hC(){return Pr(this.year(),1,4)}function cC(){return Pr(this.isoWeekYear(),1,4)}function uC(){var e=this.localeData()._week;return Pr(this.year(),e.dow,e.doy)}function dC(){var e=this.localeData()._week;return Pr(this.weekYear(),e.dow,e.doy)}function xu(e,t,r,i,s){var o;return e==null?Rs(this,i,s).year:(o=Pr(e,i,s),t>o&&(t=o),fC.call(this,e,t,r,i,s))}function fC(e,t,r,i,s){var o=nu(e,t,r,i,s),l=Ss(o.year,0,o.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}pe("Q",0,"Qo","quarter");ne("Q",qc);je("Q",function(e,t){t[Tr]=(Re(e)-1)*3});function pC(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}pe("D",["DD",2],"Do","date");ne("D",Je,Gi);ne("DD",Je,Yt);ne("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});je(["D","DD"],ur);je("Do",function(e,t){t[ur]=Re(e.match(Je)[0])});var ku=qi("Date",!0);pe("DDD",["DDDD",3],"DDDo","dayOfYear");ne("DDD",Un);ne("DDDD",Xc);je(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Re(e)});function mC(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}pe("m",["mm",2],0,"minute");ne("m",Je,Fa);ne("mm",Je,Yt);je(["m","mm"],Qt);var gC=qi("Minutes",!1);pe("s",["ss",2],0,"second");ne("s",Je,Fa);ne("ss",Je,Yt);je(["s","ss"],Dr);var yC=qi("Seconds",!1);pe("S",0,0,function(){return~~(this.millisecond()/100)});pe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});pe(0,["SSS",3],0,"millisecond");pe(0,["SSSS",4],0,function(){return this.millisecond()*10});pe(0,["SSSSS",5],0,function(){return this.millisecond()*100});pe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});pe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});pe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});pe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ne("S",Un,qc);ne("SS",Un,Yt);ne("SSS",Un,Xc);var Ur,Tu;for(Ur="SSSS";Ur.length<=9;Ur+="S")ne(Ur,Ui);function vC(e,t){t[ai]=Re(("0."+e)*1e3)}for(Ur="S";Ur.length<=9;Ur+="S")je(Ur,vC);Tu=qi("Milliseconds",!1);pe("z",0,0,"zoneAbbr");pe("zz",0,0,"zoneName");function wC(){return this._isUTC?"UTC":""}function _C(){return this._isUTC?"Coordinated Universal Time":""}var K=Os.prototype;K.add=db;K.calendar=wb;K.clone=_b;K.diff=kb;K.endOf=Ib;K.format=Pb;K.from=Ob;K.fromNow=Ab;K.to=Nb;K.toNow=Lb;K.get=M_;K.invalidAt=Ub;K.isAfter=bb;K.isBefore=Cb;K.isBetween=Sb;K.isSame=Rb;K.isSameOrAfter=Eb;K.isSameOrBefore=xb;K.isValid=Vb;K.lang=bu;K.locale=_u;K.localeData=Cu;K.max=V0;K.min=B0;K.parsingFlags=jb;K.set=P_;K.startOf=Fb;K.subtract=fb;K.toArray=zb;K.toObject=$b;K.toDate=Yb;K.toISOString=Db;K.inspect=Mb;typeof Symbol<"u"&&Symbol.for!=null&&(K[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});K.toJSON=Bb;K.toString=Tb;K.unix=Hb;K.valueOf=Wb;K.creationData=Gb;K.eraName=Zb;K.eraNarrow=Jb;K.eraAbbr=Qb;K.eraYear=eC;K.year=Jc;K.isLeapYear=D_;K.weekYear=aC;K.isoWeekYear=lC;K.quarter=K.quarters=pC;K.month=iu;K.daysInMonth=Y_;K.week=K.weeks=q_;K.isoWeek=K.isoWeeks=X_;K.weeksInYear=uC;K.weeksInWeekYear=dC;K.isoWeeksInYear=hC;K.isoWeeksInISOWeekYear=cC;K.date=ku;K.day=K.days=l0;K.weekday=h0;K.isoWeekday=c0;K.dayOfYear=mC;K.hour=K.hours=y0;K.minute=K.minutes=gC;K.second=K.seconds=yC;K.millisecond=K.milliseconds=Tu;K.utcOffset=Q0;K.utc=tb;K.local=rb;K.parseZone=ib;K.hasAlignedHourOffset=sb;K.isDST=nb;K.isLocal=ab;K.isUtcOffset=lb;K.isUtc=gu;K.isUTC=gu;K.zoneAbbr=wC;K.zoneName=_C;K.dates=Kt("dates accessor is deprecated. Use date instead.",ku);K.months=Kt("months accessor is deprecated. Use month instead",iu);K.years=Kt("years accessor is deprecated. Use year instead",Jc);K.zone=Kt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",eb);K.isDSTShifted=Kt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ob);function bC(e){return Ze(e*1e3)}function CC(){return Ze.apply(null,arguments).parseZone()}function Du(e){return e}var Oe=Pa.prototype;Oe.calendar=a_;Oe.longDateFormat=u_;Oe.invalidDate=f_;Oe.ordinal=g_;Oe.preparse=Du;Oe.postformat=Du;Oe.relativeTime=v_;Oe.pastFuture=w_;Oe.set=n_;Oe.eras=qb;Oe.erasParse=Xb;Oe.erasConvertYear=Kb;Oe.erasAbbrRegex=rC;Oe.erasNameRegex=tC;Oe.erasNarrowRegex=iC;Oe.months=F_;Oe.monthsShort=I_;Oe.monthsParse=H_;Oe.monthsRegex=$_;Oe.monthsShortRegex=z_;Oe.week=V_;Oe.firstDayOfYear=G_;Oe.firstDayOfWeek=U_;Oe.weekdays=i0;Oe.weekdaysMin=n0;Oe.weekdaysShort=s0;Oe.weekdaysParse=a0;Oe.weekdaysRegex=u0;Oe.weekdaysShortRegex=d0;Oe.weekdaysMinRegex=f0;Oe.isPM=m0;Oe.meridiem=v0;function xn(e,t,r,i){var s=Nr(),o=pr().set(i,t);return s[r](o,e)}function Mu(e,t,r){if(Ar(e)&&(t=e,e=void 0),e=e||"",t!=null)return xn(e,t,r,"month");var i,s=[];for(i=0;i<12;i++)s[i]=xn(e,i,r,"month");return s}function Xa(e,t,r,i){typeof e=="boolean"?(Ar(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Ar(t)&&(r=t,t=void 0),t=t||"");var s=Nr(),o=e?s._week.dow:0,l,h=[];if(r!=null)return xn(t,(r+o)%7,i,"day");for(l=0;l<7;l++)h[l]=xn(t,(l+o)%7,i,"day");return h}function SC(e,t){return Mu(e,t,"months")}function RC(e,t){return Mu(e,t,"monthsShort")}function EC(e,t,r){return Xa(e,t,r,"weekdays")}function xC(e,t,r){return Xa(e,t,r,"weekdaysShort")}function kC(e,t,r){return Xa(e,t,r,"weekdaysMin")}Gr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=Re(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});ee.lang=Kt("moment.lang is deprecated. Use moment.locale instead.",Gr);ee.langData=Kt("moment.langData is deprecated. Use moment.localeData instead.",Nr);var xr=Math.abs;function TC(){var e=this._data;return this._milliseconds=xr(this._milliseconds),this._days=xr(this._days),this._months=xr(this._months),e.milliseconds=xr(e.milliseconds),e.seconds=xr(e.seconds),e.minutes=xr(e.minutes),e.hours=xr(e.hours),e.months=xr(e.months),e.years=xr(e.years),this}function Pu(e,t,r,i){var s=rr(t,r);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function DC(e,t){return Pu(this,e,t,1)}function MC(e,t){return Pu(this,e,t,-1)}function Wh(e){return e<0?Math.floor(e):Math.ceil(e)}function PC(){var e=this._milliseconds,t=this._days,r=this._months,i=this._data,s,o,l,h,d;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Wh(aa(r)+t)*864e5,t=0,r=0),i.milliseconds=e%1e3,s=qt(e/1e3),i.seconds=s%60,o=qt(s/60),i.minutes=o%60,l=qt(o/60),i.hours=l%24,t+=qt(l/24),d=qt(Ou(t)),r+=d,t-=Wh(aa(d)),h=qt(r/12),r%=12,i.days=t,i.months=r,i.years=h,this}function Ou(e){return e*4800/146097}function aa(e){return e*146097/4800}function OC(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(e=Zt(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,r=this._months+Ou(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(aa(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Lr(e){return function(){return this.as(e)}}var Au=Lr("ms"),AC=Lr("s"),NC=Lr("m"),LC=Lr("h"),FC=Lr("d"),IC=Lr("w"),WC=Lr("M"),HC=Lr("Q"),YC=Lr("y"),zC=Au;function $C(){return rr(this)}function BC(e){return e=Zt(e),this.isValid()?this[e+"s"]():NaN}function fi(e){return function(){return this.isValid()?this._data[e]:NaN}}var VC=fi("milliseconds"),jC=fi("seconds"),UC=fi("minutes"),GC=fi("hours"),qC=fi("days"),XC=fi("months"),KC=fi("years");function ZC(){return qt(this.days()/7)}var kr=Math.round,Ni={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function JC(e,t,r,i,s){return s.relativeTime(t||1,!!r,e,i)}function QC(e,t,r,i){var s=rr(e).abs(),o=kr(s.as("s")),l=kr(s.as("m")),h=kr(s.as("h")),d=kr(s.as("d")),f=kr(s.as("M")),p=kr(s.as("w")),m=kr(s.as("y")),C=o<=r.ss&&["s",o]||o<r.s&&["ss",o]||l<=1&&["m"]||l<r.m&&["mm",l]||h<=1&&["h"]||h<r.h&&["hh",h]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(C=C||p<=1&&["w"]||p<r.w&&["ww",p]),C=C||f<=1&&["M"]||f<r.M&&["MM",f]||m<=1&&["y"]||["yy",m],C[2]=t,C[3]=+e>0,C[4]=i,JC.apply(null,C)}function eS(e){return e===void 0?kr:typeof e=="function"?(kr=e,!0):!1}function tS(e,t){return Ni[e]===void 0?!1:t===void 0?Ni[e]:(Ni[e]=t,e==="s"&&(Ni.ss=t-1),!0)}function rS(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,i=Ni,s,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(i=Object.assign({},Ni,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),s=this.localeData(),o=QC(this,!r,i,s),r&&(o=s.pastFuture(+this,o)),s.postformat(o)}var Wo=Math.abs;function Pi(e){return(e>0)-(e<0)||+e}function eo(){if(!this.isValid())return this.localeData().invalidDate();var e=Wo(this._milliseconds)/1e3,t=Wo(this._days),r=Wo(this._months),i,s,o,l,h=this.asSeconds(),d,f,p,m;return h?(i=qt(e/60),s=qt(i/60),e%=60,i%=60,o=qt(r/12),r%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=h<0?"-":"",f=Pi(this._months)!==Pi(h)?"-":"",p=Pi(this._days)!==Pi(h)?"-":"",m=Pi(this._milliseconds)!==Pi(h)?"-":"",d+"P"+(o?f+o+"Y":"")+(r?f+r+"M":"")+(t?p+t+"D":"")+(s||i||e?"T":"")+(s?m+s+"H":"")+(i?m+i+"M":"")+(e?m+l+"S":"")):"P0D"}var Te=Jn.prototype;Te.isValid=X0;Te.abs=TC;Te.add=DC;Te.subtract=MC;Te.as=OC;Te.asMilliseconds=Au;Te.asSeconds=AC;Te.asMinutes=NC;Te.asHours=LC;Te.asDays=FC;Te.asWeeks=IC;Te.asMonths=WC;Te.asQuarters=HC;Te.asYears=YC;Te.valueOf=zC;Te._bubble=PC;Te.clone=$C;Te.get=BC;Te.milliseconds=VC;Te.seconds=jC;Te.minutes=UC;Te.hours=GC;Te.days=qC;Te.weeks=ZC;Te.months=XC;Te.years=KC;Te.humanize=rS;Te.toISOString=eo;Te.toString=eo;Te.toJSON=eo;Te.locale=_u;Te.localeData=Cu;Te.toIsoString=Kt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",eo);Te.lang=bu;pe("X",0,0,"unix");pe("x",0,0,"valueOf");ne("x",qn);ne("X",S_);je("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});je("x",function(e,t,r){r._d=new Date(Re(e))});//! moment.js
|
|
203
|
-
ee.version="2.30.1";i_(Ze);ee.fn=K;ee.min=j0;ee.max=U0;ee.now=G0;ee.utc=pr;ee.unix=bC;ee.months=SC;ee.isDate=Ps;ee.locale=Gr;ee.invalid=Vn;ee.duration=rr;ee.isMoment=tr;ee.weekdays=EC;ee.parseZone=CC;ee.localeData=Nr;ee.isDuration=dn;ee.monthsShort=RC;ee.weekdaysMin=kC;ee.defineLocale=za;ee.updateLocale=C0;ee.locales=S0;ee.weekdaysShort=xC;ee.normalizeUnits=Zt;ee.relativeTimeRounding=eS;ee.relativeTimeThreshold=tS;ee.calendarFormat=vb;ee.prototype=K;ee.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const iS=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));ee.ISO_8601,ea.ui,ea.db;vt(Yc)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});const Ho={};let Nu=class{constructor(){this._args={...Ho},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,r){this.tableId=r,this.grid=t;const i=t.getData();i.setFilter(this.getFilterFn()),i.setFilterArgs(this.args),i.refresh()}reset(){if(!this.grid)return;this.args=Ho;const t=this.grid.getData();t.setFilterArgs(Ho),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const r=this.grid.getData();r.setFilterArgs(t),r.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class sS extends Nu{getFilterFn(){return t=>!t?.isDeleted}}class nS{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 Li(e){return new Date(e).getTime()}class Lu{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(r,i)=>this.filterFn(r,i)&&t(r,i)}register(t,r){this.tableId=r,this.grid=t;const i=t.getData();i.setFilter(this.getFilterFn()),i.setFilterArgs(this.args),i.refresh()}reset(){this.filter.reset()}print(t){return this.filter.print(t)}set args(t){this.filter.args=t}set grid(t){this.filter.grid=t}set tableId(t){this.filter.tableId=t}get args(){return this.filter.args}get grid(){return this.filter.grid}get tableId(){return this.filter.tableId}}function oS(e){return{tooltip:"Apply column filter",command:e}}class Ka{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const r=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(r,1)}notify(){for(const t of this.observers)t()}}class aS extends Ka{constructor(){super(...arguments),this.columnId="",this.group=Wi.Text,this.target=null,this.x=0,this.y=0}}new aS;class lS{highlightAllColumns(t,r){const i=document.getElementById(r);if(!i)return;const s=Object.keys(t.columnFilters||{});if(s.length)for(const o of s){const l=i.querySelector(`[data-id="${o}"]`);if(!l)return;t.columnFilters[o].value[1]||t.columnFilters[o].value[2]?l.classList.add("filter-active"):l.classList.remove("filter-active")}else{const o=i.querySelectorAll(".slick-header-column");for(const l of o)l.classList.remove("filter-active")}}highlightColumn(t,r){const i=document.getElementById(t.id);if(!i)return;const s=i.querySelector(`[data-id="${r}"]`);s&&s.classList.add("filter-active")}resetColumn(t,r){const i=document.getElementById(t.id);if(!i)return;const s=i.querySelector(`[data-id="${r}"]`);s&&s.classList.remove("filter-active")}}const Fu=new lS;var hS=Object.defineProperty,cS=(e,t,r)=>t in e?hS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t,r)=>cS(e,typeof t!="symbol"?t+"":t,r),la=class{constructor(e,t){this.event=e,this.args=t,b(this,"_isPropagationStopped",!1),b(this,"_isImmediatePropagationStopped",!1),b(this,"_isDefaultPrevented",!1),b(this,"returnValues",[]),b(this,"returnValue"),b(this,"_eventTarget"),b(this,"nativeEvent"),b(this,"arguments_"),b(this,"altKey"),b(this,"ctrlKey"),b(this,"metaKey"),b(this,"shiftKey"),b(this,"key"),b(this,"keyCode"),b(this,"clientX"),b(this,"clientY"),b(this,"offsetX"),b(this,"offsetY"),b(this,"pageX"),b(this,"pageY"),b(this,"bubbles"),b(this,"target"),b(this,"type"),b(this,"which"),b(this,"x"),b(this,"y"),this.nativeEvent=e,this.arguments_=t,e&&["altKey","ctrlKey","metaKey","shiftKey","key","keyCode","clientX","clientY","offsetX","offsetY","pageX","pageY","bubbles","target","type","which","x","y"].forEach(r=>this[r]=e[r]),this._eventTarget=this.nativeEvent?this.nativeEvent.target:void 0}get defaultPrevented(){return this._isDefaultPrevented}stopPropagation(){this._isPropagationStopped=!0,this.nativeEvent?.stopPropagation()}isPropagationStopped(){return this._isPropagationStopped}stopImmediatePropagation(){this._isImmediatePropagationStopped=!0,this.nativeEvent&&this.nativeEvent.stopImmediatePropagation()}isImmediatePropagationStopped(){return this._isImmediatePropagationStopped}getNativeEvent(){return this.nativeEvent}preventDefault(){this.nativeEvent&&this.nativeEvent.preventDefault(),this._isDefaultPrevented=!0}isDefaultPrevented(){return this.nativeEvent?this.nativeEvent.defaultPrevented:this._isDefaultPrevented}addReturnValue(e){this.returnValues.push(e),this.returnValue===void 0&&e!==void 0&&(this.returnValue=e)}getReturnValue(){return this.returnValue}getArguments(){return this.arguments_}},Iu=class{constructor(e,t){this.eventName=e,this.pubSub=t,b(this,"_handlers",[]),b(this,"_pubSubService"),this._pubSubService=t}get subscriberCount(){return this._handlers.length}subscribe(e){this._handlers.push(e)}unsubscribe(e){for(let t=this._handlers.length-1;t>=0;t--)this._handlers[t]===e&&this._handlers.splice(t,1)}notify(e,t,r){let i=t instanceof la?t:new la(t,e);r=r||this;for(let s=0;s<this._handlers.length&&!(i.isPropagationStopped()||i.isImmediatePropagationStopped());s++){let o=this._handlers[s].call(r,i,e);i.addReturnValue(o)}if(typeof this._pubSubService?.publish=="function"&&this.eventName){let s=this._pubSubService.publish(this.eventName,{args:e,eventData:i});i.addReturnValue(s)}return i}setPubSubService(e){this._pubSubService=e}},uS=class{constructor(e,t,r,i){b(this,"fromRow"),b(this,"fromCell"),b(this,"toCell"),b(this,"toRow"),r===void 0&&i===void 0&&(r=e,i=t),this.fromRow=Math.min(e,r),this.fromCell=Math.min(t,i),this.toCell=Math.max(t,i),this.toRow=Math.max(e,r)}isSingleRow(){return this.fromRow===this.toRow}isSingleCell(){return this.fromRow===this.toRow&&this.fromCell===this.toCell}contains(e,t){return e>=this.fromRow&&e<=this.toRow&&t>=this.fromCell&&t<=this.toCell}toString(){return this.isSingleCell()?`(${this.fromRow}:${this.fromCell})`:`(${this.fromRow}:${this.fromCell} - ${this.toRow}:${this.toCell})`}},dS=class{constructor(){b(this,"activeEditController",null)}isActive(e){return e?this.activeEditController===e:this.activeEditController!==null}activate(e){if(e!==this.activeEditController){if(this.activeEditController!==null)throw new Error("Slick.EditorLock.activate: an editController is still active, can't activate another editController");if(!e.commitCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!e.cancelCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .cancelCurrentEdit()");this.activeEditController=e}}deactivate(e){if(this.activeEditController){if(this.activeEditController!==e)throw new Error("Slick.EditorLock.deactivate: specified editController is not the currently active one");this.activeEditController=null}}commitCurrentEdit(){return this.activeEditController?this.activeEditController.commitCurrentEdit():!0}cancelCurrentEdit(){return this.activeEditController?this.activeEditController.cancelCurrentEdit():!0}},fS=class{constructor(){b(this,"_boundedEvents",[])}getBoundedEvents(){return this._boundedEvents}destroy(){this.unbindAll()}bind(e,t,r,i,s=""){e&&(e.addEventListener(t,r,i),this._boundedEvents.push({element:e,eventName:t,listener:r,groupName:s}))}unbind(e,t,r){e?.removeEventListener&&e.removeEventListener(t,r)}unbindByEventName(e,t){let r=this._boundedEvents.find(i=>i.element===e&&i.eventName===t);r&&this.unbind(r.element,r.eventName,r.listener)}unbindAll(e){if(e){let t=Array.isArray(e)?e:[e];for(let r=this._boundedEvents.length-1;r>=0;--r){let i=this._boundedEvents[r];if(t.some(s=>s===i.groupName)){let{element:s,eventName:o,listener:l}=i;this.unbind(s,o,l),this._boundedEvents.splice(r,1)}}}else for(;this._boundedEvents.length>0;){let t=this._boundedEvents.pop(),{element:r,eventName:i,listener:s}=t;this.unbind(r,i,s)}}},jt=class st{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||st.toString.call(t)!=="[object Object]")return!1;let r=st.getProto(t);if(!r)return!0;let i=st.hasOwn.call(r,"constructor")&&r.constructor;return typeof i=="function"&&st.fnToString.call(i)===st.ObjectFunctionString}static calculateAvailableSpace(t){let r=0,i=0,s=0,o=0,l=window.innerHeight||0,h=window.innerWidth||0,d=st.windowScrollPosition(),f=d.top,p=d.left,m=st.offset(t);if(m){let C=m.top||0,k=m.left||0;i=C-f,r=l-(C-f),s=k-p,o=h-(k-p)}return{top:i,bottom:r,left:s,right:o}}static extend(...t){let r,i,s,o,l,h,d=t[0],f=1,p=!1,m=t.length;for(typeof d=="boolean"?(p=d,d=t[f]||{},f++):d=d||{},typeof d!="object"&&!st.isFunction(d)&&(d={}),f===m&&(d=this,f--);f<m;f++)if(st.isDefined(r=t[f]))for(i in r)o=r[i],!(i==="__proto__"||d===o)&&(p&&o&&(st.isPlainObject(o)||(l=Array.isArray(o)))?(s=d[i],l&&!Array.isArray(s)?h=[]:!l&&!st.isPlainObject(s)?h={}:h=s,l=!1,d[i]=st.extend(p,h,o)):o!==void 0&&(d[i]=o));return d}static createDomElement(t,r,i){let s=document.createElement(t);return r&&Object.keys(r).forEach(o=>{o==="innerHTML"&&console.warn(`[SlickGrid] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${t}', { innerHTML: 'some html'})", it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);let l=r[o];typeof l=="object"?Object.assign(s[o],l):s[o]=r[o]}),i?.appendChild&&i.appendChild(s),s}static getHtmlStringOutput(t,r="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,i=>i[r]).join("")||t.textContent||"":t instanceof HTMLElement?t[r]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(r=>r)}static innerSize(t,r){let i=0;if(t){let s=r==="height"?"clientHeight":"clientWidth",o=r==="height"?["top","bottom"]:["left","right"];i=t[s];for(let l of o){let h=parseFloat(st.getElementProp(t,`padding-${l}`)||"")||0;i-=h}}return i}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,r){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(r):null}static getFunctionDetails(t,r=!0){let i=!1,s=o=>{let l=o.toString();if(i=l.includes("async "),l.replaceAll(" ","").includes("=>({")){let f=l.match(/(({.*}))/g)||[];return f.length>=1?`return ${f[0].trimStart()}`:l}let h=!l.includes("{")&&l.includes("=>"),d=l.substring(l.indexOf("{")+1||l.indexOf("=>")+2,l.includes("}")?l.lastIndexOf("}"):l.length);return r&&h&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(o=>{let l=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,h=/([^\s,]+)/g,d=o.toString().replace(l,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(h)??[]})(t),body:s(t),isAsync:i}}static insertAfterElement(t,r){t.parentNode?.insertBefore(r,t.nextSibling)}static isEmptyObject(t){return t==null?!0:Object.entries(t).length===0}static noop(){}static offset(t){if(!t||!t.getBoundingClientRect)return;let r=t.getBoundingClientRect(),i=document.documentElement;return{top:r.top+window.pageYOffset-i.clientTop,left:r.left+window.pageXOffset-i.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,r){if(!(!t||!t.getBoundingClientRect)){if(r===void 0)return t.getBoundingClientRect().width;st.setStyleSize(t,"width",r)}}static height(t,r){if(t){if(r===void 0)return t.getBoundingClientRect().height;st.setStyleSize(t,"height",r)}}static setStyleSize(t,r,i){typeof i=="function"?i=i():typeof i=="string"?t.style[r]=i:t.style[r]=i+"px"}static contains(t,r){return!t||!r?!1:!st.parents(r).every(i=>t!==i)}static isHidden(t){return t.offsetWidth===0&&t.offsetHeight===0}static parents(t,r){let i=[],s=r===":visible",o=r===":hidden";for(;(t=t.parentNode)&&t!==document&&!(!t||!t.parentNode);)o?st.isHidden(t)&&i.push(t):s?st.isHidden(t)||i.push(t):(!r||t.matches(r))&&i.push(t);return i}static toFloat(t){let r=parseFloat(t);return isNaN(r)?0:r}static show(t,r=""){Array.isArray(t)?t.forEach(i=>i.style.display=r):t.style.display=r}static hide(t){Array.isArray(t)?t.forEach(r=>r.style.display="none"):t.style.display="none"}static slideUp(t,r){return st.slideAnimation(t,"slideUp",r)}static slideDown(t,r){return st.slideAnimation(t,"slideDown",r)}static slideAnimation(t,r,i){if(window.jQuery!==void 0){window.jQuery(t)[r]("fast",i);return}r==="slideUp"?st.hide(t):st.show(t),i()}static applyDefaults(t,r){typeof r=="object"&&Object.keys(r).forEach(i=>{r.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=r[i])})}static addSlickEventPubSubWhenDefined(t,r){if(t)for(let i in r)r[i]instanceof Iu&&typeof r[i].setPubSubService=="function"&&r[i].setPubSubService(t)}};b(jt,"getProto",Object.getPrototypeOf),b(jt,"class2type",{}),b(jt,"toString",jt.class2type.toString),b(jt,"hasOwn",jt.class2type.hasOwnProperty),b(jt,"fnToString",jt.hasOwn.toString),b(jt,"ObjectFunctionString",jt.fnToString.call(Object)),b(jt,"storage",{_storage:new WeakMap,put:function(e,t,r){this._storage.has(e)||this._storage.set(e,new Map),this._storage.get(e).set(t,r)},get:function(e,t){let r=this._storage.get(e);return r?r.get(t):null},remove:function(e,t){let r=this._storage.get(e).delete(t);return this._storage.get(e).size!==0&&this._storage.delete(e),r}});var Za=jt,Wu=new dS,pS={GlobalEditorLock:Wu,keyCode:{DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38},preClickClassName:"slick-edit-preclick",GridAutosizeColsMode:{None:"NOA",LegacyOff:"LOF",LegacyForceFit:"LFF",IgnoreViewport:"IGV",FitColsToViewport:"FCV",FitViewportToCols:"FVC"},ColAutosizeMode:{Locked:"LCK",Guide:"GUI",ContentExpandOnly:"CXO",ContentIntelligent:"CTI"},RowSelectionMode:{FirstRow:"FS1",FirstNRows:"FSN",AllRows:"ALL",LastRow:"LS1"},ValueFilterMode:{None:"NONE",DeDuplicate:"DEDP",GetGreatestAndSub:"GR8T",GetLongestTextAndSub:"LNSB",GetLongestText:"LNSC"},WidthEvalMode:{Auto:"AUTO",TextOnly:"CANV"}},{GlobalEditorLock:mS,keyCode:Hu,preClickClassName:gS,GridAutosizeColsMode:yS,ColAutosizeMode:vS,RowSelectionMode:wS,ValueFilterMode:_S,WidthEvalMode:bS}=pS,CS=Za;function SS(e){let{containerElement:t}=e,{onDragInit:r,onDragStart:i,onDrag:s,onDragEnd:o,preventDragFromKeys:l}=e,h,d,f,p,m,C;t||(t=document.body);let k={dragSource:t,dragHandle:null};function R(){t&&(t.addEventListener("mousedown",B),t.addEventListener("touchstart",B))}function y(v,L,z){if(typeof v=="function")return v(L,z)}function O(){t&&(t.removeEventListener("mousedown",B),t.removeEventListener("touchstart",B))}function F(v){let L=!1;return l&&l.forEach(z=>{v[z]&&(L=!0)}),L}function B(v){if(!F(v)){h=v.target;let L=v?.touches?.[0]??v,{target:z}=L;if(!e.allowDragFrom||e.allowDragFrom&&h.matches(e.allowDragFrom)||e.allowDragFromClosest&&h.closest(e.allowDragFromClosest)){k.dragHandle=h;let q=CS.windowScrollPosition();d=q.left+L.clientX,f=q.top+L.clientY,p=L.clientX-L.clientX,m=L.clientY-L.clientY,k=Object.assign(k,{deltaX:p,deltaY:m,startX:d,startY:f,target:z}),y(r,v,k)!==!1&&(document.body.addEventListener("mousemove",N),document.body.addEventListener("touchmove",N),document.body.addEventListener("mouseup",x),document.body.addEventListener("touchend",x),document.body.addEventListener("touchcancel",x))}}}function N(v){if(!F(v)){let L=v?.touches?.[0]??v;p=L.clientX-d,m=L.clientY-f;let{target:z}=L;C||(k=Object.assign(k,{deltaX:p,deltaY:m,startX:d,startY:f,target:z}),y(i,v,k),C=!0),k=Object.assign(k,{deltaX:p,deltaY:m,startX:d,startY:f,target:z}),y(s,v,k)}}function x(v){if(document.body.removeEventListener("mousemove",N),document.body.removeEventListener("touchmove",N),document.body.removeEventListener("mouseup",x),document.body.removeEventListener("touchend",x),document.body.removeEventListener("touchcancel",x),C){let{target:L}=v;k=Object.assign(k,{target:L}),y(o,v,k),C=!1}}return R(),{destroy:O}}function RS(e){let{element:t,onMouseWheel:r}=e;function i(){t.removeEventListener("wheel",o),t.removeEventListener("mousewheel",o)}function s(){t.addEventListener("wheel",o),t.addEventListener("mousewheel",o)}function o(l){let h=l||window.event,d=0,f=0,p=0;h.wheelDelta&&(d=h.wheelDelta/120),h.detail&&(d=-h.detail/3),p=d,h.axis!==void 0&&h.axis===h.HORIZONTAL_AXIS&&(p=0,f=-1*d),h.wheelDeltaY!==void 0&&(p=h.wheelDeltaY/120),h.wheelDeltaX!==void 0&&(f=-1*h.wheelDeltaX/120),typeof r=="function"&&r(l,d,f,p)}return s(),{destroy:i}}function ES(e){let{resizeableElement:t,resizeableHandleElement:r,onResizeStart:i,onResize:s,onResizeEnd:o}=e;if(!r||typeof r.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function l(){r.addEventListener("mousedown",f),r.addEventListener("touchstart",f)}function h(){typeof r?.removeEventListener=="function"&&(r.removeEventListener("mousedown",f),r.removeEventListener("touchstart",f))}function d(C,k){if(typeof C=="function")return C(k,{resizeableElement:t,resizeableHandleElement:r})}function f(C){C.preventDefault();let k=C.touches?C.changedTouches[0]:C;d(i,k)!==!1&&(document.body.addEventListener("mousemove",p),document.body.addEventListener("mouseup",m),document.body.addEventListener("touchmove",p),document.body.addEventListener("touchend",m))}function p(C){C.preventDefault&&C.type!=="touchmove"&&C.preventDefault();let k=C.touches?C.changedTouches[0]:C;typeof s=="function"&&s(k,{resizeableElement:t,resizeableHandleElement:r})}function m(C){let k=C.touches?C.changedTouches[0]:C;d(o,k),document.body.removeEventListener("mousemove",p),document.body.removeEventListener("mouseup",m),document.body.removeEventListener("touchmove",p),document.body.removeEventListener("touchend",m)}return l(),{destroy:h}}var kn=Hu,Yo=Za,ha=class ca{constructor(t){this.args=t,b(this,"input"),b(this,"defaultValue"),b(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=Yo.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?Yh:zh),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?Yh:zh),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return Yo.isDefined(t)||(t=ca.DefaultDecimalPlaces),!t&&t!==0?null:t}loadValue(t){this.defaultValue=t[this.args.column.field];let r=this.getDecimalPlaces();r!==null&&(this.defaultValue||this.defaultValue===0)&&this.defaultValue?.toFixed&&(this.defaultValue=this.defaultValue.toFixed(r)),this.input.value=String(this.defaultValue??""),this.input.defaultValue=String(this.defaultValue??""),this.input.select()}serializeValue(){let t=parseFloat(this.input.value);ca.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;let r=this.getDecimalPlaces();return r!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(r))),t}applyValue(t,r){t[this.args.column.field]=r}isValueChanged(){return!(this.input.value===""&&!Yo.isDefined(this.defaultValue))&&this.input.value!==this.defaultValue}validate(){if(isNaN(this.input.value))return{valid:!1,msg:"Please enter a valid number"};if(this.args.column.validator){let t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}};b(ha,"DefaultDecimalPlaces"),b(ha,"AllowEmptyValue",!1);var Hh=ha;function Yh(e){let t=e.selectionStart,r=e.target.value.length;(e.keyCode===kn.LEFT&&t>0||e.keyCode===kn.RIGHT&&t<r-1)&&e.stopImmediatePropagation()}function zh(e){(e.keyCode===kn.LEFT||e.keyCode===kn.RIGHT)&&e.stopImmediatePropagation()}var xS=fS,Br=vS,fe=Iu,hs=la,kS=mS,Nt=yS,ar=Hu,TS=gS,DS=uS,Oi=wS,ni=_S,_=Za,zo=bS,$h=SS,Bh=RS,Vh=ES,MS=class{constructor(e,t,r,i,s){if(this.container=e,this.data=t,this.columns=r,this.externalPubSub=s,b(this,"slickGridVersion","5.15.5"),b(this,"cid",""),b(this,"onActiveCellChanged"),b(this,"onActiveCellPositionChanged"),b(this,"onAddNewRow"),b(this,"onAfterSetColumns"),b(this,"onAutosizeColumns"),b(this,"onBeforeAppendCell"),b(this,"onBeforeCellEditorDestroy"),b(this,"onBeforeColumnsResize"),b(this,"onBeforeDestroy"),b(this,"onBeforeEditCell"),b(this,"onBeforeFooterRowCellDestroy"),b(this,"onBeforeHeaderCellDestroy"),b(this,"onBeforeHeaderRowCellDestroy"),b(this,"onBeforeRemoveCachedRow"),b(this,"onBeforeSetColumns"),b(this,"onBeforeSort"),b(this,"onBeforeUpdateColumns"),b(this,"onCellChange"),b(this,"onCellCssStylesChanged"),b(this,"onClick"),b(this,"onColumnsReordered"),b(this,"onColumnsDrag"),b(this,"onColumnsResized"),b(this,"onColumnsResizeDblClick"),b(this,"onCompositeEditorChange"),b(this,"onContextMenu"),b(this,"onDrag"),b(this,"onDblClick"),b(this,"onDragInit"),b(this,"onDragStart"),b(this,"onDragEnd"),b(this,"onFooterClick"),b(this,"onFooterContextMenu"),b(this,"onFooterRowCellRendered"),b(this,"onHeaderCellRendered"),b(this,"onHeaderClick"),b(this,"onHeaderContextMenu"),b(this,"onHeaderMouseEnter"),b(this,"onHeaderMouseLeave"),b(this,"onHeaderRowCellRendered"),b(this,"onHeaderRowMouseEnter"),b(this,"onHeaderRowMouseLeave"),b(this,"onPreHeaderContextMenu"),b(this,"onPreHeaderClick"),b(this,"onKeyDown"),b(this,"onMouseEnter"),b(this,"onMouseLeave"),b(this,"onRendered"),b(this,"onScroll"),b(this,"onSelectedRowsChanged"),b(this,"onSetOptions"),b(this,"onActivateChangedOptions"),b(this,"onSort"),b(this,"onValidationError"),b(this,"onViewportChanged"),b(this,"scrollbarDimensions"),b(this,"maxSupportedCssHeight"),b(this,"canvas",null),b(this,"canvas_context",null),b(this,"_options"),b(this,"_defaults",{alwaysShowVerticalScroll:!1,alwaysAllowHorizontalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableHtmlRendering:!0,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,autoEditNewRow:!0,autoCommitEdit:!1,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,unorderableColumnCssClass:"unorderable",asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,auto:!1,nonce:"",editorLock:kS,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:Nt.LegacyOff,autosizeColPaddingPx:4,rowTopOffsetRenderType:"top",scrollRenderThrottling:10,autosizeTextAvgToMWidthRatio:.75,viewportSwitchToScrollModeWidthPercent:void 0,viewportMinWidthPx:void 0,viewportMaxWidthPx:void 0,suppressCssChangesOnHiddenInit:!1,ffMaxSupportedCssHeight:6e6,maxSupportedCssHeight:1e9,maxPartialRowSpanRemap:5e3,sanitizer:void 0,logSanitizedHtml:!1,mixinDefaults:!0,shadowRoot:void 0}),b(this,"_columnDefaults",{name:"",headerCssClass:null,defaultSortAsc:!0,focusable:!0,hidden:!1,minWidth:30,maxWidth:void 0,rerenderOnResize:!1,reorderable:!0,resizable:!0,sortable:!1,selectable:!0}),b(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:Br.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:Oi.FirstNRows,rowSelectionCount:100,valueFilterMode:ni.None,widthEvalMode:zo.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),b(this,"_columnResizeTimer"),b(this,"_executionBlockTimer"),b(this,"_flashCellTimer"),b(this,"_highlightRowTimer"),b(this,"th"),b(this,"h"),b(this,"ph"),b(this,"n"),b(this,"cj"),b(this,"page",0),b(this,"offset",0),b(this,"vScrollDir",1),b(this,"_bindingEventService",new xS),b(this,"initialized",!1),b(this,"_container"),b(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),b(this,"_focusSink"),b(this,"_focusSink2"),b(this,"_groupHeaders",[]),b(this,"_headerScroller",[]),b(this,"_headers",[]),b(this,"_headerRows"),b(this,"_headerRowScroller"),b(this,"_headerRowSpacerL"),b(this,"_headerRowSpacerR"),b(this,"_footerRow"),b(this,"_footerRowScroller"),b(this,"_footerRowSpacerL"),b(this,"_footerRowSpacerR"),b(this,"_preHeaderPanel"),b(this,"_preHeaderPanelScroller"),b(this,"_preHeaderPanelSpacer"),b(this,"_preHeaderPanelR"),b(this,"_preHeaderPanelScrollerR"),b(this,"_preHeaderPanelSpacerR"),b(this,"_topHeaderPanel"),b(this,"_topHeaderPanelScroller"),b(this,"_topHeaderPanelSpacer"),b(this,"_topPanelScrollers"),b(this,"_topPanels"),b(this,"_viewport"),b(this,"_canvas"),b(this,"_style"),b(this,"_boundAncestors",[]),b(this,"stylesheet"),b(this,"columnCssRulesL"),b(this,"columnCssRulesR"),b(this,"viewportH",0),b(this,"viewportW",0),b(this,"canvasWidth",0),b(this,"canvasWidthL",0),b(this,"canvasWidthR",0),b(this,"headersWidth",0),b(this,"headersWidthL",0),b(this,"headersWidthR",0),b(this,"viewportHasHScroll",!1),b(this,"viewportHasVScroll",!1),b(this,"headerColumnWidthDiff",0),b(this,"headerColumnHeightDiff",0),b(this,"cellWidthDiff",0),b(this,"cellHeightDiff",0),b(this,"absoluteColumnMinWidth"),b(this,"hasFrozenRows",!1),b(this,"frozenRowsHeight",0),b(this,"actualFrozenRow",-1),b(this,"paneTopH",0),b(this,"paneBottomH",0),b(this,"viewportTopH",0),b(this,"viewportBottomH",0),b(this,"topPanelH",0),b(this,"headerRowH",0),b(this,"footerRowH",0),b(this,"tabbingDirection",1),b(this,"_activeCanvasNode"),b(this,"_activeViewportNode"),b(this,"activePosX"),b(this,"activePosY"),b(this,"activeRow"),b(this,"activeCell"),b(this,"activeCellNode",null),b(this,"currentEditor",null),b(this,"serializedEditorValue"),b(this,"editController"),b(this,"_prevDataLength",0),b(this,"_prevInvalidatedRowsCount",0),b(this,"_rowSpanIsCached",!1),b(this,"_colsWithRowSpanCache",{}),b(this,"rowsCache",{}),b(this,"renderedRows",0),b(this,"numVisibleRows",0),b(this,"prevScrollTop",0),b(this,"scrollHeight",0),b(this,"scrollTop",0),b(this,"lastRenderedScrollTop",0),b(this,"lastRenderedScrollLeft",0),b(this,"prevScrollLeft",0),b(this,"scrollLeft",0),b(this,"selectionModel"),b(this,"selectedRows",[]),b(this,"plugins",[]),b(this,"cellCssClasses",{}),b(this,"columnsById",{}),b(this,"sortColumns",[]),b(this,"columnPosLeft",[]),b(this,"columnPosRight",[]),b(this,"pagingActive",!1),b(this,"pagingIsLastPage",!1),b(this,"scrollThrottle"),b(this,"h_editorLoader"),b(this,"h_postrender"),b(this,"h_postrenderCleanup"),b(this,"postProcessedRows",{}),b(this,"postProcessToRow",null),b(this,"postProcessFromRow",null),b(this,"postProcessedCleanupQueue",[]),b(this,"postProcessgroupId",0),b(this,"counter_rows_rendered",0),b(this,"counter_rows_removed",0),b(this,"_paneHeaderL"),b(this,"_paneHeaderR"),b(this,"_paneTopL"),b(this,"_paneTopR"),b(this,"_paneBottomL"),b(this,"_paneBottomR"),b(this,"_headerScrollerL"),b(this,"_headerScrollerR"),b(this,"_headerL"),b(this,"_headerR"),b(this,"_groupHeadersL"),b(this,"_groupHeadersR"),b(this,"_headerRowScrollerL"),b(this,"_headerRowScrollerR"),b(this,"_footerRowScrollerL"),b(this,"_footerRowScrollerR"),b(this,"_headerRowL"),b(this,"_headerRowR"),b(this,"_footerRowL"),b(this,"_footerRowR"),b(this,"_topPanelScrollerL"),b(this,"_topPanelScrollerR"),b(this,"_topPanelL"),b(this,"_topPanelR"),b(this,"_viewportTopL"),b(this,"_viewportTopR"),b(this,"_viewportBottomL"),b(this,"_viewportBottomR"),b(this,"_canvasTopL"),b(this,"_canvasTopR"),b(this,"_canvasBottomL"),b(this,"_canvasBottomR"),b(this,"_viewportScrollContainerX"),b(this,"_viewportScrollContainerY"),b(this,"_headerScrollContainer"),b(this,"_headerRowScrollContainer"),b(this,"_footerRowScrollContainer"),b(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),b(this,"_hiddenParents",[]),b(this,"oldProps",[]),b(this,"enforceFrozenRowHeightRecalc",!1),b(this,"columnResizeDragging",!1),b(this,"slickDraggableInstance",null),b(this,"slickMouseWheelInstances",[]),b(this,"slickResizableInstances",[]),b(this,"sortableSideLeftInstance"),b(this,"sortableSideRightInstance"),b(this,"logMessageCount",0),b(this,"logMessageMaxCount",30),b(this,"_pubSubService"),this._container=typeof this.container=="string"?document.querySelector(this.container):this.container,!this._container)throw new Error(`SlickGrid requires a valid container, ${this.container} does not exist in the DOM.`);this._pubSubService=s,this.onActiveCellChanged=new fe("onActiveCellChanged",s),this.onActiveCellPositionChanged=new fe("onActiveCellPositionChanged",s),this.onAddNewRow=new fe("onAddNewRow",s),this.onAfterSetColumns=new fe("onAfterSetColumns",s),this.onAutosizeColumns=new fe("onAutosizeColumns",s),this.onBeforeAppendCell=new fe("onBeforeAppendCell",s),this.onBeforeCellEditorDestroy=new fe("onBeforeCellEditorDestroy",s),this.onBeforeColumnsResize=new fe("onBeforeColumnsResize",s),this.onBeforeDestroy=new fe("onBeforeDestroy",s),this.onBeforeEditCell=new fe("onBeforeEditCell",s),this.onBeforeFooterRowCellDestroy=new fe("onBeforeFooterRowCellDestroy",s),this.onBeforeHeaderCellDestroy=new fe("onBeforeHeaderCellDestroy",s),this.onBeforeHeaderRowCellDestroy=new fe("onBeforeHeaderRowCellDestroy",s),this.onBeforeRemoveCachedRow=new fe("onRowRemovedFromCache",s),this.onBeforeSetColumns=new fe("onBeforeSetColumns",s),this.onBeforeSort=new fe("onBeforeSort",s),this.onBeforeUpdateColumns=new fe("onBeforeUpdateColumns",s),this.onCellChange=new fe("onCellChange",s),this.onCellCssStylesChanged=new fe("onCellCssStylesChanged",s),this.onClick=new fe("onClick",s),this.onColumnsReordered=new fe("onColumnsReordered",s),this.onColumnsDrag=new fe("onColumnsDrag",s),this.onColumnsResized=new fe("onColumnsResized",s),this.onColumnsResizeDblClick=new fe("onColumnsResizeDblClick",s),this.onCompositeEditorChange=new fe("onCompositeEditorChange",s),this.onContextMenu=new fe("onContextMenu",s),this.onDrag=new fe("onDrag",s),this.onDblClick=new fe("onDblClick",s),this.onDragInit=new fe("onDragInit",s),this.onDragStart=new fe("onDragStart",s),this.onDragEnd=new fe("onDragEnd",s),this.onFooterClick=new fe("onFooterClick",s),this.onFooterContextMenu=new fe("onFooterContextMenu",s),this.onFooterRowCellRendered=new fe("onFooterRowCellRendered",s),this.onHeaderCellRendered=new fe("onHeaderCellRendered",s),this.onHeaderClick=new fe("onHeaderClick",s),this.onHeaderContextMenu=new fe("onHeaderContextMenu",s),this.onHeaderMouseEnter=new fe("onHeaderMouseEnter",s),this.onHeaderMouseLeave=new fe("onHeaderMouseLeave",s),this.onHeaderRowCellRendered=new fe("onHeaderRowCellRendered",s),this.onHeaderRowMouseEnter=new fe("onHeaderRowMouseEnter",s),this.onHeaderRowMouseLeave=new fe("onHeaderRowMouseLeave",s),this.onPreHeaderClick=new fe("onPreHeaderClick",s),this.onPreHeaderContextMenu=new fe("onPreHeaderContextMenu",s),this.onKeyDown=new fe("onKeyDown",s),this.onMouseEnter=new fe("onMouseEnter",s),this.onMouseLeave=new fe("onMouseLeave",s),this.onRendered=new fe("onRendered",s),this.onScroll=new fe("onScroll",s),this.onSelectedRowsChanged=new fe("onSelectedRowsChanged",s),this.onSetOptions=new fe("onSetOptions",s),this.onActivateChangedOptions=new fe("onActivateChangedOptions",s),this.onSort=new fe("onSort",s),this.onValidationError=new fe("onValidationError",s),this.onViewportChanged=new fe("onViewportChanged",s),this.initialize(i)}init(){this.finishInitialization()}initialize(e){if(e?.mixinDefaults?(this._options||(this._options=e),_.applyDefaults(this._options,this._defaults)):this._options=_.extend(!0,{},this._defaults,e),this.scrollThrottle=this.actionThrottle(this.render.bind(this),this._options.scrollRenderThrottling),this.maxSupportedCssHeight=this.maxSupportedCssHeight||this.getMaxSupportedCssHeight(),this.validateAndEnforceOptions(),this._columnDefaults.width=this._options.defaultColumnWidth,this._options.suppressCssChangesOnHiddenInit||this.cacheCssForHiddenInit(),this.updateColumnProps(),this._options.enableColumnReorder&&(!Sortable||!Sortable.create))throw new Error("SlickGrid requires Sortable.js module to be loaded");this.editController={commitCurrentEdit:this.commitCurrentEdit.bind(this),cancelCurrentEdit:this.cancelCurrentEdit.bind(this)},_.emptyElement(this._container),this._container.style.outline=String(0),this._container.classList.add(this.uid),this._container.classList.add("ui-widget"),this._container.setAttribute("role","grid");let t=window.getComputedStyle(this._container);/relative|absolute|fixed/.test(t.position)||(this._container.style.position="relative"),this._focusSink=_.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=_.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=_.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||_.hide(this._topHeaderPanelScroller)),this._paneHeaderL=_.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=_.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=_.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=_.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=_.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=_.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=_.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderL),this._preHeaderPanelScroller.appendChild(document.createElement("div")),this._preHeaderPanel=_.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=_.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=_.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(_.hide(this._preHeaderPanelScroller),_.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=_.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=_.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-right"},this._paneHeaderR),this._headerScroller.push(this._headerScrollerL),this._headerScroller.push(this._headerScrollerR),this._headerL=_.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=_.createDomElement("div",{className:"slick-header-columns slick-header-columns-right",role:"row",style:{left:"-1000px"}},this._headerScrollerR),this._headers=[this._headerL,this._headerR],this._headerRowScrollerL=_.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=_.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=_.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=_.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=_.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=_.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=_.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=_.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(i=>{_.hide(i)}),this._options.showTopPanel||this._topPanelScrollers.forEach(i=>{_.hide(i)}),this._options.showHeaderRow||this._headerRowScroller.forEach(i=>{_.hide(i)}),this._viewportTopL=_.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=_.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=_.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=_.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-right",tabIndex:0},this._paneBottomR),this._viewport=[this._viewportTopL,this._viewportTopR,this._viewportBottomL,this._viewportBottomR],this._options.viewportClass&&this._viewport.forEach(i=>{i.classList.add(..._.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=_.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=_.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=_.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=_.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-right",tabIndex:0},this._viewportBottomR),this._canvas=[this._canvasTopL,this._canvasTopR,this._canvasBottomL,this._canvasBottomR],this.scrollbarDimensions=this.scrollbarDimensions||this.measureScrollbar();let r=this.getCanvasWidth()+this.scrollbarDimensions.width;this._activeCanvasNode=this._canvasTopL,this._topHeaderPanelSpacer&&_.width(this._topHeaderPanelSpacer,r),this._preHeaderPanelSpacer&&_.width(this._preHeaderPanelSpacer,r),this._headers.forEach(i=>{_.width(i,this.getHeadersWidth())}),_.width(this._headerRowSpacerL,r),_.width(this._headerRowSpacerR,r),this._options.createFooterRow&&(this._footerRowScrollerR=_.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=_.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),_.width(this._footerRowSpacerL,r),this._footerRowSpacerR=_.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),_.width(this._footerRowSpacerR,r),this._footerRowL=_.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=_.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-right"},this._footerRowScrollerR),this._footerRow=[this._footerRowL,this._footerRowR],this._options.showFooterRow||this._footerRowScroller.forEach(i=>{_.hide(i)})),this._focusSink2=this._focusSink.cloneNode(!0),this._container.appendChild(this._focusSink2),this._options.explicitInitialization||this.finishInitialization()}finishInitialization(){this.initialized||(this.initialized=!0,this.getViewportWidth(),this.getViewportHeight(),this.measureCellPaddingAndBorder(),this.disableSelection(this._headers),this._options.enableTextSelectionOnCells||this._viewport.forEach(e=>{this._bindingEventService.bind(e,"selectstart",t=>{t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement})}),this.setFrozenOptions(),this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setScroller(),this.setOverflow(),this.updateColumnCaches(),this.createColumnHeaders(),this.createColumnFooter(),this.setupColumnSort(),this.createCssRules(),this.resizeCanvas(),this.bindAncestorScrollEvents(),this._bindingEventService.bind(this._container,"resize",this.resizeCanvas.bind(this)),this._viewport.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleScroll.bind(this))}),this._options.enableMouseWheelScrollHandler&&this._viewport.forEach(e=>{this.slickMouseWheelInstances.push(Bh({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))}),$h&&(this.slickDraggableInstance=$h({containerElement:this._container,allowDragFrom:"div.slick-cell",allowDragFromClosest:"div.slick-cell.dnd, div.slick-cell.cell-reorder",preventDragFromKeys:this._options.preventDragFromKeys,onDragInit:this.handleDragInit.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})),this._options.suppressCssChangesOnHiddenInit||this.restoreCssFromHiddenInit())}cacheCssForHiddenInit(){this._hiddenParents=_.parents(this._container,":hidden"),this.oldProps=[],this._hiddenParents.forEach(e=>{let t={};Object.keys(this.cssShow).forEach(r=>{this.cssShow&&(t[r]=e.style[r],e.style[r]=this.cssShow[r])}),this.oldProps.push(t)})}restoreCssFromHiddenInit(){let e=0;this._hiddenParents&&(this._hiddenParents.forEach(t=>{let r=this.oldProps[e++];Object.keys(this.cssShow).forEach(i=>{this.cssShow&&(t.style[i]=r[i])})}),this._hiddenParents=[])}registerPlugin(e){this.plugins.unshift(e),e.init(this)}unregisterPlugin(e){for(let t=this.plugins.length;t>=0;t--)if(this.plugins[t]===e){this.plugins[t]?.destroy(),this.plugins.splice(t,1);break}}destroy(e){this._bindingEventService.unbindAll(),this.slickDraggableInstance=this.destroyAllInstances(this.slickDraggableInstance),this.slickMouseWheelInstances=this.destroyAllInstances(this.slickMouseWheelInstances),this.slickResizableInstances=this.destroyAllInstances(this.slickResizableInstances),this.getEditorLock()?.cancelCurrentEdit(),this.trigger(this.onBeforeDestroy,{});let t=this.plugins.length;for(;t--;)this.unregisterPlugin(this.plugins[t]);this._options.enableColumnReorder&&typeof this.sortableSideLeftInstance?.destroy=="function"&&(this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy()),this.unbindAncestorScrollEvents(),this._bindingEventService.unbindByEventName(this._container,"resize"),this.removeCssRules(),this._canvas.forEach(s=>{this._bindingEventService.unbindByEventName(s,"keydown"),this._bindingEventService.unbindByEventName(s,"click"),this._bindingEventService.unbindByEventName(s,"dblclick"),this._bindingEventService.unbindByEventName(s,"contextmenu"),this._bindingEventService.unbindByEventName(s,"mouseover"),this._bindingEventService.unbindByEventName(s,"mouseout")}),this._viewport.forEach(s=>{this._bindingEventService.unbindByEventName(s,"scroll")}),this._headerScroller.forEach(s=>{this._bindingEventService.unbindByEventName(s,"contextmenu"),this._bindingEventService.unbindByEventName(s,"click")}),this._headerRowScroller.forEach(s=>{this._bindingEventService.unbindByEventName(s,"scroll")}),this._footerRow&&this._footerRow.forEach(s=>{this._bindingEventService.unbindByEventName(s,"contextmenu"),this._bindingEventService.unbindByEventName(s,"click")}),this._footerRowScroller&&this._footerRowScroller.forEach(s=>{this._bindingEventService.unbindByEventName(s,"scroll")}),this._preHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._preHeaderPanelScroller,"scroll"),this._topHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._topHeaderPanelScroller,"scroll"),this._bindingEventService.unbindByEventName(this._focusSink,"keydown"),this._bindingEventService.unbindByEventName(this._focusSink2,"keydown");let r=this._container.querySelectorAll(".slick-resizable-handle");[].forEach.call(r,s=>{this._bindingEventService.unbindByEventName(s,"dblclick")});let i=this._container.querySelectorAll(".slick-header-column");[].forEach.call(i,s=>{this._bindingEventService.unbindByEventName(s,"mouseenter"),this._bindingEventService.unbindByEventName(s,"mouseleave"),this._bindingEventService.unbindByEventName(s,"mouseenter"),this._bindingEventService.unbindByEventName(s,"mouseleave")}),_.emptyElement(this._container),this._container.classList.remove(this.uid),this.clearAllTimers(),e&&this.destroyAllElements()}destroyAllInstances(e){if(e){let t=Array.isArray(e)?e:[e],r;for(;_.isDefined(r=t.pop());)r&&typeof r.destroy=="function"&&r.destroy()}return e=Array.isArray(e)?[]:null,e}destroyAllElements(){this._activeCanvasNode=null,this._activeViewportNode=null,this._boundAncestors=null,this._canvas=null,this._canvasTopL=null,this._canvasTopR=null,this._canvasBottomL=null,this._canvasBottomR=null,this._container=null,this._focusSink=null,this._focusSink2=null,this._groupHeaders=null,this._groupHeadersL=null,this._groupHeadersR=null,this._headerL=null,this._headerR=null,this._headers=null,this._headerRows=null,this._headerRowL=null,this._headerRowR=null,this._headerRowSpacerL=null,this._headerRowSpacerR=null,this._headerRowScrollContainer=null,this._headerRowScroller=null,this._headerRowScrollerL=null,this._headerRowScrollerR=null,this._headerScrollContainer=null,this._headerScroller=null,this._headerScrollerL=null,this._headerScrollerR=null,this._hiddenParents=null,this._footerRow=null,this._footerRowL=null,this._footerRowR=null,this._footerRowSpacerL=null,this._footerRowSpacerR=null,this._footerRowScroller=null,this._footerRowScrollerL=null,this._footerRowScrollerR=null,this._footerRowScrollContainer=null,this._preHeaderPanel=null,this._preHeaderPanelR=null,this._preHeaderPanelScroller=null,this._preHeaderPanelScrollerR=null,this._preHeaderPanelSpacer=null,this._preHeaderPanelSpacerR=null,this._topPanels=null,this._topPanelScrollers=null,this._style=null,this._topPanelScrollerL=null,this._topPanelScrollerR=null,this._topPanelL=null,this._topPanelR=null,this._paneHeaderL=null,this._paneHeaderR=null,this._paneTopL=null,this._paneTopR=null,this._paneBottomL=null,this._paneBottomR=null,this._viewport=null,this._viewportTopL=null,this._viewportTopR=null,this._viewportBottomL=null,this._viewportBottomR=null,this._viewportScrollContainerX=null,this._viewportScrollContainerY=null}getOptions(){return this._options}setOptions(e,t,r,i){this.prepareForOptionsChange(),this._options.enableAddRow!==e.enableAddRow&&this.invalidateRow(this.getDataLength()),e.frozenColumn!==void 0&&e.frozenColumn>=0&&(this.getViewports().forEach(o=>o.scrollLeft=0),this.handleScroll());let s=_.extend(!0,{},this._options);this._options=_.extend(this._options,e),this.trigger(this.onSetOptions,{optionsBefore:s,optionsAfter:this._options}),this.internal_setOptions(t,r,i)}activateChangedOptions(e,t,r){this.prepareForOptionsChange(),this.invalidateRow(this.getDataLength()),this.trigger(this.onActivateChangedOptions,{options:this._options}),this.internal_setOptions(e,t,r)}prepareForOptionsChange(){this.getEditorLock().commitCurrentEdit()&&this.makeActiveCellNormal()}internal_setOptions(e,t,r){this._options.showColumnHeader!==void 0&&this.setColumnHeaderVisibility(this._options.showColumnHeader),this.validateAndEnforceOptions(),this.setFrozenOptions(),this._options.frozenBottom!==void 0&&(this.enforceFrozenRowHeightRecalc=!0),this._viewport.forEach(i=>{i.style.overflowY=this._options.autoHeight?"hidden":"auto"}),e||this.render(),this.setScroller(),r||this.setOverflow(),t||this.setColumns(this.columns),this._options.enableMouseWheelScrollHandler&&this._viewport&&(!this.slickMouseWheelInstances||this.slickMouseWheelInstances.length===0)?this._viewport.forEach(i=>{this.slickMouseWheelInstances.push(Bh({element:i,onMouseWheel:this.handleMouseWheel.bind(this)}))}):this._options.enableMouseWheelScrollHandler===!1&&this.destroyAllInstances(this.slickMouseWheelInstances)}validateAndEnforceOptions(){this._options.autoHeight&&(this._options.leaveSpaceForNewRows=!1),this._options.forceFitColumns&&(this._options.autosizeColsMode=Nt.LegacyForceFit)}setSelectionModel(e){this.selectionModel&&(this.selectionModel.onSelectedRangesChanged.unsubscribe(this.handleSelectedRangesChanged.bind(this)),this.selectionModel.destroy&&this.selectionModel.destroy()),this.selectionModel=e,this.selectionModel&&(this.selectionModel.init(this),this.selectionModel.onSelectedRangesChanged.subscribe(this.handleSelectedRangesChanged.bind(this)))}getSelectionModel(){return this.selectionModel}setPaneFrozenClasses(){let e=this.hasFrozenColumns()?"add":"remove";for(let t of[this._paneHeaderL,this._paneTopL,this._paneBottomL])t.classList[e]("frozen")}hasFrozenColumns(){return this._options.frozenColumn>-1}updateColumnHeader(e,t,r){if(this.initialized){let i=this.getColumnIndex(e);if(!_.isDefined(i))return;let s=this.columns[i],o=this.getColumnByIndex(i);o&&(t!==void 0&&(this.columns[i].name=t),r!==void 0&&(this.columns[i].toolTip=r),this.trigger(this.onBeforeHeaderCellDestroy,{node:o,column:s,grid:this}),o.setAttribute("title",r||""),t!==void 0&&this.applyHtmlCode(o.children[0],t),this.trigger(this.onHeaderCellRendered,{node:o,column:s,grid:this}))}}getHeader(e){if(!e)return this.hasFrozenColumns()?this._headers:this._headerL;let t=this.getColumnIndex(e.id);return this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL}getHeaderColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),r=this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,i=this.hasFrozenColumns()?t<=this._options.frozenColumn?t:t-this._options.frozenColumn-1:t;return r.children[i]}getHeaderRow(){return this.hasFrozenColumns()?this._headerRows:this._headerRows[0]}getFooterRow(){return this.hasFrozenColumns()?this._footerRow:this._footerRow[0]}getHeaderRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),r;return this.hasFrozenColumns()?t<=this._options.frozenColumn?r=this._headerRowL:(r=this._headerRowR,t-=this._options.frozenColumn+1):r=this._headerRowL,r.children[t]}getFooterRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),r;return this.hasFrozenColumns()?t<=this._options.frozenColumn?r=this._footerRowL:(r=this._footerRowR,t-=this._options.frozenColumn+1):r=this._footerRowL,r.children[t]}createColumnFooter(){if(this._options.createFooterRow){this._footerRow.forEach(e=>{e.querySelectorAll(".slick-footerrow-column").forEach(t=>{let r=_.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:r,grid:this})})}),_.emptyElement(this._footerRowL),_.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let r=_.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},this.hasFrozenColumns()&&e>this._options.frozenColumn?this._footerRowR:this._footerRowL),i=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;i&&r.classList.add(i),_.storage.put(r,"column",t),this.trigger(this.onFooterRowCellRendered,{node:r,column:t,grid:this})}}}setupColumnSort(){this._headers.forEach(e=>{this._bindingEventService.bind(e,"click",t=>{if(this.columnResizeDragging||t.target.classList.contains("slick-resizable-handle"))return;let r=t.target.closest(".slick-header-column");if(!r)return;let i=_.storage.get(r,"column");if(i.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let s=this.sortColumns.slice(),o=null,l=0;for(;l<this.sortColumns.length;l++)if(this.sortColumns[l].columnId===i.id){o=this.sortColumns[l],o.sortAsc=!o.sortAsc;break}let h=!!o;this._options.tristateMultiColumnSort?(o||(o={columnId:i.id,sortAsc:i.defaultSortAsc,sortCol:i}),h&&o.sortAsc&&(this.sortColumns.splice(l,1),o=null),this._options.multiColumnSort||(this.sortColumns=[]),o&&(!h||!this._options.multiColumnSort)&&this.sortColumns.push(o)):t.metaKey&&this._options.multiColumnSort?o&&this.sortColumns.splice(l,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),o?this.sortColumns.length===0&&this.sortColumns.push(o):(o={columnId:i.id,sortAsc:i.defaultSortAsc,sortCol:i},this.sortColumns.push(o)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:s,sortCols:this.sortColumns.map(f=>{let p=this.columns[this.getColumnIndex(f.columnId)];return!p||p.hidden?null:{columnId:p.id,sortCol:p,sortAsc:f.sortAsc}}).filter(f=>f)}:d={multiColumnSort:!1,previousSortColumns:s,columnId:this.sortColumns.length>0?i.id:null,sortCol:this.sortColumns.length>0?i:null,sortAsc:this.sortColumns.length>0?this.sortColumns[0].sortAsc:!0},this.trigger(this.onBeforeSort,d,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,d,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let r=_.storage.get(t,"column");r&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:r,grid:this})})}),_.emptyElement(this._headerL),_.emptyElement(this._headerR),this.getHeadersWidth(),_.width(this._headerL,this.headersWidthL),_.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let r=_.storage.get(t,"column");r&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:r,grid:this})})}),_.emptyElement(this._headerRowL),_.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=_.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),_.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=_.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),_.emptyElement(this._footerRowR)));for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(t.hidden)continue;let r=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,i=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerRowL:this._headerRowR:this._headerRowL,s=_.createDomElement("div",{id:`${this.uid+t.id}`,dataset:{id:String(t.id)},role:"columnheader",className:"ui-state-default slick-state-default slick-header-column"},r);t.toolTip&&(s.title=t.toolTip),t.reorderable||s.classList.add(this._options.unorderableColumnCssClass);let o=_.createDomElement("span",{className:"slick-column-name"},s);this.applyHtmlCode(o,t.name),_.width(s,t.width-this.headerColumnWidthDiff);let l=t.headerCssClass||null;if(l&&s.classList.add(..._.classNameToList(l)),l=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null,l&&s.classList.add(l),this._bindingEventService.bind(s,"mouseenter",this.handleHeaderMouseEnter.bind(this)),this._bindingEventService.bind(s,"mouseleave",this.handleHeaderMouseLeave.bind(this)),_.storage.put(s,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(s,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(s,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(h=>{t.headerCellAttrs.hasOwnProperty(h)&&s.setAttribute(h,t.headerCellAttrs[h])}),t.sortable&&(s.classList.add("slick-header-sortable"),_.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},s),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&_.createDomElement("div",{className:"slick-sort-indicator-numbered"},s)),this.trigger(this.onHeaderCellRendered,{node:s,column:t,grid:this}),this._options.showHeaderRow){let h=_.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},i),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&h.classList.add(d),this._bindingEventService.bind(h,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(h,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),_.storage.put(h,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:h,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let h=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=_.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},h);_.storage.put(d,"column",t),this.trigger(this.onFooterRowCellRendered,{node:d,column:t,grid:this})}}this.setSortColumns(this.sortColumns),this.setupColumnResize(),this._options.enableColumnReorder&&(typeof this._options.enableColumnReorder=="function"?this._options.enableColumnReorder(this,this._headers,this.headerColumnWidthDiff,this.setColumns,this.setupColumnResize,this.columns,this.getColumnIndex,this.uid,this.trigger):this.setupColumnReorder())}setupColumnReorder(){this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy();let e=null,t=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft+10,r=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,i=!1,s={animation:50,direction:"horizontal",chosenClass:"slick-header-column-active",ghostClass:"slick-sortable-placeholder",draggable:".slick-header-column",dragoverBubble:!1,revertClone:!0,scroll:!this.hasFrozenColumns(),filter:`.${this._options.unorderableColumnCssClass}`,onMove:o=>!o.related.classList.contains(this._options.unorderableColumnCssClass),onStart:o=>{o.item.classList.add("slick-header-column-active"),i=!this.hasFrozenColumns()||_.offset(o.item).left>_.offset(this._viewportScrollContainerX).left,i&&o.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):i&&o.originalEvent.pageX<_.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(r,100)):(window.clearInterval(e),e=null)},onEnd:o=>{if(o.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let l=this.sortableSideLeftInstance?.toArray()??[];l=l.concat(this.sortableSideRightInstance?.toArray()??[]);let h=[];for(let d=0;d<l.length;d++)h.push(this.columns[this.getColumnIndex(l[d])]);this.setColumns(h),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),o.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,s),this.sortableSideRightInstance=Sortable.create(this._headerR,s)}getHeaderChildren(){let e=Array.from(this._headers[0].children),t=Array.from(this._headers[1].children);return e.concat(t)}handleResizeableDoubleClick(e){let t=e.target.parentElement.id.replace(this.uid,"");this.trigger(this.onColumnsResizeDblClick,{triggeredByColumn:t})}setupColumnResize(){if(typeof Vh>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,r,i,s,o,l,h=-1,d=0,f=this.getHeaderChildren(),p=this.getVisibleColumns();for(let m=0;m<f.length;m++)f[m].querySelectorAll(".slick-resizable-handle").forEach(C=>C.remove()),!(m>=p.length||!p[m])&&p[m].resizable&&(l===void 0&&(l=m),h=m);if(l!==void 0)for(let m=0;m<f.length;m++){let C=f[m];if(m>=p.length||!p[m]||m<l||this._options.forceFitColumns&&m>=h)continue;let k=_.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},C);this._bindingEventService.bind(k,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(Vh({resizeableElement:C,resizeableHandleElement:k,onResizeStart:(R,y)=>{let O=R.touches?R.changedTouches[0]:R;if(!this.getEditorLock()?.commitCurrentEdit())return!1;i=O.pageX,d=0,y.resizeableElement.classList.add("slick-header-column-active");let F=null,B=null;for(let v=0;v<f.length;v++)v>=p.length||!p[v]||(p[v].previousWidth=f[v].offsetWidth);if(this._options.forceFitColumns)for(F=0,B=0,e=m+1;e<p.length;e++)r=p[e],r?.resizable&&(B!==null&&(r.maxWidth?B+=r.maxWidth-(r.previousWidth||0):B=null),F+=(r.previousWidth||0)-Math.max(r.minWidth||0,this.absoluteColumnMinWidth));let N=0,x=0;for(e=0;e<=m;e++)r=p[e],r?.resizable&&(x!==null&&(r.maxWidth?x+=r.maxWidth-(r.previousWidth||0):x=null),N+=(r.previousWidth||0)-Math.max(r.minWidth||0,this.absoluteColumnMinWidth));F===null&&(F=1e5),N===null&&(N=1e5),B===null&&(B=1e5),x===null&&(x=1e5),o=i+Math.min(F,x),s=i-Math.min(N,B)},onResize:(R,y)=>{let O=R.touches?R.changedTouches[0]:R;this.columnResizeDragging=!0;let F,B=Math.min(o,Math.max(s,O.pageX))-i,N,x=0,v=0,L=this.getViewportInnerWidth();if(B<0){for(N=B,e=m;e>=0;e--)r=p[e],r?.resizable&&!r.hidden&&(F=Math.max(r.minWidth||0,this.absoluteColumnMinWidth),N&&(r.previousWidth||0)+N<F?(N+=(r.previousWidth||0)-F,r.width=F):(r.width=(r.previousWidth||0)+N,N=0));for(t=0;t<=m;t++)r=p[t],!(!r||r.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?v+=r.width||0:x+=r.width||0);if(this._options.forceFitColumns)for(N=-B,e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&r.resizable&&(N&&r.maxWidth&&r.maxWidth-(r.previousWidth||0)<N?(N-=r.maxWidth-(r.previousWidth||0),r.width=r.maxWidth):(r.width=(r.previousWidth||0)+N,N=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?v+=r.width||0:x+=r.width||0);else for(e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?v+=r.width||0:x+=r.width||0);if(this._options.forceFitColumns)for(N=-B,e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&r.resizable&&(N&&r.maxWidth&&r.maxWidth-(r.previousWidth||0)<N?(N-=r.maxWidth-(r.previousWidth||0),r.width=r.maxWidth):(r.width=(r.previousWidth||0)+N,N=0))}else{for(N=B,x=0,v=0,e=m;e>=0;e--)if(r=p[e],!(!r||r.hidden)&&r.resizable)if(N&&r.maxWidth&&r.maxWidth-(r.previousWidth||0)<N)N-=r.maxWidth-(r.previousWidth||0),r.width=r.maxWidth;else{let z=(r.previousWidth||0)+N,q=this.canvasWidthL+N;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(z>d&&q<L-this._options.frozenRightViewportMinWidth&&(d=z),r.width=q+this._options.frozenRightViewportMinWidth>L?d:z):r.width=z,N=0}for(t=0;t<=m;t++)r=p[t],!(!r||r.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?v+=r.width||0:x+=r.width||0);if(this._options.forceFitColumns)for(N=-B,e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&r.resizable&&(F=Math.max(r.minWidth||0,this.absoluteColumnMinWidth),N&&(r.previousWidth||0)+N<F?(N+=(r.previousWidth||0)-F,r.width=F):(r.width=(r.previousWidth||0)+N,N=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?v+=r.width||0:x+=r.width||0);else for(e=m+1;e<p.length;e++)r=p[e],!(!r||r.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?v+=r.width||0:x+=r.width||0)}this.hasFrozenColumns()&&x!==this.canvasWidthL&&(_.width(this._headerL,x+1e3),_.setStyleSize(this._paneHeaderR,"left",x)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:y.resizeableElement,resizeHandle:y.resizeableHandleElement})},onResizeEnd:(R,y)=>{y.resizeableElement.classList.remove("slick-header-column-active");let O=y.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:O}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let F;for(e=0;e<p.length;e++)r=p[e],!(!r||r.hidden)&&(F=f[e].offsetWidth,r.previousWidth!==F&&r.rerenderOnResize&&this.invalidateAllRows());this.updateCanvasWidth(!0),this.render(),this.trigger(this.onColumnsResized,{triggeredByColumn:O}),window.clearTimeout(this._columnResizeTimer),this._columnResizeTimer=window.setTimeout(()=>{this.columnResizeDragging=!1},300)}}))}}setFrozenOptions(){if(this._options.frozenColumn=this._options.frozenColumn>=0&&this._options.frozenColumn<this.columns.length?parseInt(this._options.frozenColumn,10):-1,this._options.frozenRow>-1){this.hasFrozenRows=!0,this.frozenRowsHeight=this._options.frozenRow*this._options.rowHeight;let e=this.getDataLength();this.actualFrozenRow=this._options.frozenBottom?e-this._options.frozenRow:this._options.frozenRow}else this.hasFrozenRows=!1}autosizeColumn(e,t){let r=null,i=-1;if(typeof e=="number")r=this.columns[e],i=e;else if(typeof e=="string")for(let o=0;o<this.columns.length;o++)this.columns[o].id===e&&(r=this.columns[o],i=o);if(!r)return;let s=this.getCanvasNode(0,0);this.getColAutosizeWidth(r,i,s,t||!1,i)}treatAsLocked(e={}){return!e.ignoreHeaderText&&!e.sizeToRemaining&&e.contentSizePx===e.headerWidthPx&&(e.widthPx??0)<100}autosizeColumns(e,t){let r=!this._hiddenParents?.length;r&&this.cacheCssForHiddenInit(),this.internalAutosizeColumns(e,t),r&&this.restoreCssFromHiddenInit()}internalAutosizeColumns(e,t){if(e=e||this._options.autosizeColsMode,e===Nt.LegacyForceFit||e===Nt.LegacyOff){this.legacyAutosizeColumns();return}if(e===Nt.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let r=this.getCanvasNode(0,0),i=this.getViewportInnerWidth(),s,o,l,h=!1,d=0,f=0,p=0,m=0,C=0;for(s=0;s<this.columns.length;s++)o=this.columns[s],this.getColAutosizeWidth(o,s,r,t||!1,s),C+=o.autoSize?.autosizeMode===Br.Locked?o.width||0:this.treatAsLocked(o.autoSize)&&o.autoSize?.widthPx||0,m+=o.autoSize?.autosizeMode===Br.Locked?o.width||0:this.treatAsLocked(o.autoSize)?o.autoSize?.widthPx||0:o.minWidth||0,d+=o.autoSize?.widthPx||0,f+=o.autoSize?.sizeToRemaining?0:o.autoSize?.widthPx||0,p+=o.autoSize?.sizeToRemaining&&o.minWidth||0;let k=d-f;if(e===Nt.FitViewportToCols){let R=d+(this.scrollbarDimensions?.width??0);e=Nt.IgnoreViewport,this._options.viewportMaxWidthPx&&R>this._options.viewportMaxWidthPx?(R=this._options.viewportMaxWidthPx,e=Nt.FitColsToViewport):this._options.viewportMinWidthPx&&R<this._options.viewportMinWidthPx&&(R=this._options.viewportMinWidthPx,e=Nt.FitColsToViewport),_.width(this._container,R)}if(e===Nt.FitColsToViewport)if(k>0&&f<i-p)for(s=0;s<this.columns.length;s++){if(o=this.columns[s],!o||o.hidden)continue;let R=i-f;o.autoSize?.sizeToRemaining?l=R*(o.autoSize?.widthPx||0)/k:l=o.autoSize?.widthPx||0,o.rerenderOnResize&&(o.width||0)!==l&&(h=!0),o.width=l}else if(this._options.viewportSwitchToScrollModeWidthPercent&&f+p>i*this._options.viewportSwitchToScrollModeWidthPercent/100||m>i)e=Nt.IgnoreViewport;else{let R=f-C,y=i-C-p;for(s=0;s<this.columns.length;s++)o=this.columns[s],!(!o||o.hidden)&&(l=o.width||0,o.autoSize?.autosizeMode!==Br.Locked&&!this.treatAsLocked(o.autoSize)&&(o.autoSize?.sizeToRemaining?l=o.minWidth||0:(l=y/R*(o.autoSize?.widthPx||0)-1,l<(o.minWidth||0)&&(l=o.minWidth||0),R-=o.autoSize?.widthPx||0,y-=l)),this.treatAsLocked(o.autoSize)&&(l=o.autoSize?.widthPx||0,l<(o.minWidth||0)&&(l=o.minWidth||0)),o.rerenderOnResize&&o.width!==l&&(h=!0),o.width=l)}if(e===Nt.IgnoreViewport)for(s=0;s<this.columns.length;s++)!this.columns[s]||this.columns[s].hidden||(l=this.columns[s].autoSize?.widthPx||0,this.columns[s].rerenderOnResize&&this.columns[s].width!==l&&(h=!0),this.columns[s].width=l);this.reRenderColumns(h)}getColAutosizeWidth(e,t,r,i,s){let o=e.autoSize;if(o.widthPx=e.width,o.autosizeMode===Br.Locked||o.autosizeMode===Br.Guide)return;let l=this.getDataLength(),h=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(o.autosizeMode===Br.ContentIntelligent){let p=o.colDataTypeOf,m;if(l>0){let C=this.getDataItem(0);C&&(m=C[e.field],h.test(m)&&(m=Date.parse(m)),p=typeof m,p==="object"&&(m instanceof Date&&(p="date"),typeof moment<"u"&&m instanceof moment&&(p="moment")))}p==="boolean"&&(o.colValueArray=[!0,!1]),p==="number"&&(o.valueFilterMode=ni.GetGreatestAndSub,o.rowSelectionMode=Oi.AllRows),p==="string"&&(o.valueFilterMode=ni.GetLongestText,o.rowSelectionMode=Oi.AllRows,o.allowAddlPercent=5),p==="date"&&(o.colValueArray=[new Date(2009,8,30,12,20,20)]),p==="moment"&&typeof moment<"u"&&(o.colValueArray=[moment([2009,8,30,12,20,20])])}let d=o.contentSizePx=this.getColContentSize(e,t,r,i,s);d===0&&(d=o.widthPx||0);let f=o.allowAddlPercent?1+o.allowAddlPercent/100:1;d=d*f+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(o.autosizeMode===Br.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),o.widthPx=d}getColContentSize(e,t,r,i,s){let o=e.autoSize,l=1,h,d,f=0,p=0;if(o.headerWidthPx=0,o.ignoreHeaderText||(o.headerWidthPx=this.getColHeaderWidth(e)),o.headerWidthPx===0&&(o.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),o.colValueArray)return p=this.getColWidth(e,r,o.colValueArray),Math.max(o.headerWidthPx,p);let m={};m.colIndex=t,m.rowCount=this.getDataLength(),m.startIndex=0,m.endIndex=m.rowCount-1,m.valueArr=null,m.getRowVal=k=>this.getDataItem(k)[e.field];let C=(i?o.rowSelectionModeOnInit:void 0)||o.rowSelectionMode;if(C===Oi.FirstRow&&(m.endIndex=0),C===Oi.LastRow&&(m.endIndex=m.startIndex=m.rowCount-1),C===Oi.FirstNRows&&(m.endIndex=Math.min(o.rowSelectionCount||0,m.rowCount)-1),o.valueFilterMode===ni.DeDuplicate){let k={};for(h=m.startIndex;h<=m.endIndex;h++)k[m.getRowVal(h)]=!0;if(Object.keys)m.valueArr=Object.keys(k);else{m.valueArr=[];for(let R in k)k&&m.valueArr.push(R)}m.startIndex=0,m.endIndex=m.length-1}if(o.valueFilterMode===ni.GetGreatestAndSub){let k,R=0;for(h=m.startIndex;h<=m.endIndex;h++)d=m.getRowVal(h),Math.abs(d)>R&&(k=d,R=Math.abs(d));k=""+k,k=Array(k.length+1).join("9"),k=+k,m.valueArr=[k],m.startIndex=m.endIndex=0}if(o.valueFilterMode===ni.GetLongestTextAndSub){for(h=m.startIndex;h<=m.endIndex;h++)d=m.getRowVal(h),(d||"").length>f&&(f=d.length);d=Array(f+1).join("m"),l=this._options.autosizeTextAvgToMWidthRatio||0,m.maxLen=f,m.valueArr=[d],m.startIndex=m.endIndex=0}if(o.valueFilterMode===ni.GetLongestText){f=0;let k=0;for(h=m.startIndex;h<=m.endIndex;h++)d=m.getRowVal(h),(d||"").length>f&&(f=d.length,k=h);d=m.getRowVal(k),m.maxLen=f,m.valueArr=[d],m.startIndex=m.endIndex=0}return m.maxLen&&m.maxLen>30&&s>1&&(o.sizeToRemaining=!0),p=this.getColWidth(e,r,m)*l,Math.max(o.headerWidthPx,p)}getColWidth(e,t,r){let i=_.createDomElement("div",{className:"slick-row ui-widget-content"},t),s=_.createDomElement("div",{className:"slick-cell"},i);s.style.position="absolute",s.style.visibility="hidden",s.style.textOverflow="initial",s.style.whiteSpace="nowrap";let o,l,h=0,d="",f,p,m=e.autoSize.widthEvalMode===zo.TextOnly;if(e.autoSize?.widthEvalMode===zo.Auto){let C=!e.formatterOverride&&!e.formatter,k=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;m=C||k}if(this.canvas_context&&m){let C=getComputedStyle(s);for(this.canvas_context.font=C.fontSize+" "+C.fontFamily,o=r.startIndex;o<=r.endIndex;o++)p=r.valueArr?r.valueArr[o]:r.getRowVal(o),e.formatterOverride?f=e.formatterOverride(o,r.colIndex,p,e,this.getDataItem(o),this):e.formatter?f=e.formatter(o,r.colIndex,p,e,this.getDataItem(o),this):f=""+p,l=f?this.canvas_context.measureText(f).width:0,l>h&&(h=l,d=f);return s.textContent=d,l=s.offsetWidth,i.remove(),l}for(o=r.startIndex;o<=r.endIndex;o++)p=r.valueArr?r.valueArr[o]:r.getRowVal(o),e.formatterOverride?f=e.formatterOverride(o,r.colIndex,p,e,this.getDataItem(o),this):e.formatter?f=e.formatter(o,r.colIndex,p,e,this.getDataItem(o),this):f=""+p,this.applyFormatResultToCellNode(f,s),l=s.offsetWidth,l>h&&(h=l);return i.remove(),h}getColHeaderWidth(e){let t=0,r=this.getUID()+e.id,i=document.getElementById(r),s=`${r}_`,o=i.cloneNode(!0);if(i)o.id=s,o.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",i.parentNode.insertBefore(o,i),t=o.offsetWidth,o.parentNode.removeChild(o);else{let l=this.getHeader(e);i=_.createDomElement("div",{id:s,className:"ui-state-default slick-state-default slick-header-column"},l);let h=_.createDomElement("span",{className:"slick-column-name"},i);this.applyHtmlCode(h,e.name),o.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&i.classList.add(..._.classNameToList(e.headerCssClass)),t=i.offsetWidth,l.removeChild(i)}return t}legacyAutosizeColumns(){let e,t,r=0,i=0,s=0,o=[],l=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){o.push(0);continue}o.push(t.width||0),i+=t.width||0,t.resizable&&(r+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(s=i;i>l&&r;){let d=(i-l)/r;for(e=0;e<this.columns.length&&i>l;e++){if(t=this.columns[e],!t||t.hidden)continue;let f=o[e];if(!t.resizable||f<=t.minWidth||f<=this.absoluteColumnMinWidth)continue;let p=Math.max(t.minWidth,this.absoluteColumnMinWidth),m=Math.floor(d*(f-p))||1;m=Math.min(m,f-p),i-=m,r-=m,o[e]-=m}if(s<=i)break;s=i}for(s=i;i<l;){let d=l/i;for(e=0;e<this.columns.length&&i<l;e++){if(t=this.columns[e],!t||t.hidden)continue;let f=o[e],p;!t.resizable||t.maxWidth<=f?p=0:p=Math.min(Math.floor(d*f)-f,t.maxWidth-f||1e6)||1,i+=p,o[e]+=i<=l?p:0}if(s>=i)break;s=i}let h=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==o[e]&&(h=!0),this.columns[e].width=o[e]);this.reRenderColumns(h)}reRenderColumns(e){this.applyColumnHeaderWidths(),this.updateCanvasWidth(!0),this.trigger(this.onAutosizeColumns,{columns:this.columns}),e&&(this.invalidateAllRows(),this.render())}getVisibleColumns(){return this.columns.filter(e=>!e.hidden)}getColumnIndex(e){return this.columnsById[e]}applyColumnHeaderWidths(){if(!this.initialized)return;let e=0,t=this.getVisibleColumns();this._headers.forEach(r=>{for(let i=0;i<r.children.length;i++,e++){let s=r.children[i],o=((t[e]||{}).width||0)-this.headerColumnWidthDiff;_.width(s)!==o&&_.width(s,o)}}),this.updateColumnCaches()}applyColumnWidths(){let e=0,t=0,r;for(let i=0;i<this.columns.length;i++)this.columns[i]?.hidden||(t=this.columns[i].width||0,r=this.getColumnCssRules(i),r.left.style.left=`${e}px`,r.right.style.right=(this._options.frozenColumn!==-1&&i>this._options.frozenColumn?this.canvasWidthR:this.canvasWidthL)-e-t+"px",this._options.frozenColumn!==i&&(e+=this.columns[i].width)),this._options.frozenColumn===i&&(e=0)}setSortColumn(e,t){this.setSortColumns([{columnId:e,sortAsc:t}])}getColumnByIndex(e){let t;return this._headers.every(r=>{let i=r.children.length;return e<i?(t=r.children[e],!1):(e-=i,!0)}),t}setSortColumns(e){this.sortColumns=e;let t=this._options.numberedMultiColumnSort&&this.sortColumns.length>1;this._headers.forEach(i=>{let s=i.querySelectorAll(".slick-header-column-sorted");s.forEach(o=>{o.classList.remove("slick-header-column-sorted")}),s=i.querySelectorAll(".slick-sort-indicator"),s.forEach(o=>{o.classList.remove("slick-sort-indicator-asc"),o.classList.remove("slick-sort-indicator-desc")}),s=i.querySelectorAll(".slick-sort-indicator-numbered"),s.forEach(o=>{o.textContent=""})});let r=1;this.sortColumns.forEach(i=>{_.isDefined(i.sortAsc)||(i.sortAsc=!0);let s=this.getColumnIndex(i.columnId);if(_.isDefined(s)){let o=this.getColumnByIndex(s);if(o){o.classList.add("slick-header-column-sorted");let l=o.querySelector(".slick-sort-indicator");l?.classList.add(i.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),t&&(l=o.querySelector(".slick-sort-indicator-numbered"),l&&(l.textContent=String(r)))}}r++})}getColumns(){return this.columns}getSortColumns(){return this.sortColumns}updateColumnCaches(){this.columnPosLeft=[],this.columnPosRight=[];let e=0;for(let t=0,r=this.columns.length;t<r;t++)!this.columns[t]||this.columns[t].hidden||(this.columnPosLeft[t]=e,this.columnPosRight[t]=e+(this.columns[t].width||0),this._options.frozenColumn===t?e=0:e+=this.columns[t].width||0)}updateColumnProps(){this.columnsById={};for(let e=0;e<this.columns.length;e++){let t=this.columns[e];t.width&&(t.widthRequest=t.width),this._options.mixinDefaults?(_.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),_.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=_.extend({},this._columnDefaults,t),t.autoSize=_.extend({},this._columnAutosizeDefaults,t.autoSize)),this.columnsById[t.id]=e,t.minWidth&&(t.width||0)<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&(t.width||0)>t.maxWidth&&(t.width=t.maxWidth)}}setColumns(e){this.trigger(this.onBeforeSetColumns,{previousColumns:this.columns,newColumns:e,grid:this}),this.columns=e,this.updateColumnsInternal(),this.trigger(this.onAfterSetColumns,{newColumns:e,grid:this})}updateColumns(){this.trigger(this.onBeforeUpdateColumns,{columns:this.columns,grid:this}),this.updateColumnsInternal()}updateColumnsInternal(){this.updateColumnProps(),this.updateColumnCaches(),this.initialized&&(this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setOverflow(),this.invalidateAllRows(),this.createColumnHeaders(),this.createColumnFooter(),this.removeCssRules(),this.createCssRules(),this.resizeCanvas(),this.updateCanvasWidth(),this.applyColumnHeaderWidths(),this.applyColumnWidths(),this.handleScroll(),this.getSelectionModel()?.refreshSelections())}getEditorLock(){return this._options.editorLock}getEditController(){return this.editController}setData(e,t){this.data=e,this.invalidateAllRows(),this.updateRowCount(),t&&this.scrollTo(0)}getData(){return this.data}getDataLength(){return this.data.getLength?this.data.getLength():this.data?.length??0}getDataLengthIncludingAddNew(){return this.getDataLength()+(this._options.enableAddRow&&(!this.pagingActive||this.pagingIsLastPage)?1:0)}getDataItem(e){return this.data.getItem?this.data.getItem(e):this.data[e]}hasDataView(){return!Array.isArray(this.data)}getItemMetadaWhenExists(e){return"getItemMetadata"in this.data?this.data.getItemMetadata(e):null}getFormatter(e,t){let r=this.data?.getItemMetadata?.(e);return(r?.columns&&(r.columns[t.id]||r.columns[this.getColumnIndex(t.id)]))?.formatter||r?.formatter||t.formatter||this._options.formatterFactory?.getFormatter(t)||this._options.defaultFormatter}getEditor(e,t){let r=this.columns[t],i=this.getItemMetadaWhenExists(e)?.columns;return i?.[r.id]?.editor!==void 0?i[r.id].editor:i?.[t]?.editor!==void 0?i[t].editor:r.editor||this._options?.editorFactory?.getEditor(r)}getDataItemValueForColumn(e,t){return this._options.dataItemColumnValueExtractor?this._options.dataItemColumnValueExtractor(e,t):e[t.field]}resetActiveCell(){this.setActiveCellInternal(null,!1)}unsetActiveCell(){_.isDefined(this.activeCellNode)&&(this.makeActiveCellNormal(),this.activeCellNode.classList.remove("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(e=>e.classList.remove("active")))}focus(){this.setFocus()}setFocus(){this.tabbingDirection===-1?this._focusSink.focus():this._focusSink2.focus()}setActiveCellInternal(e,t,r,i,s){if(this.unsetActiveCell(),this.activeCellNode=e,_.isDefined(this.activeCellNode)){let o=_.offset(this.activeCellNode),l=Math.floor(_.offset(_.parents(this.activeCellNode,".grid-canvas")[0]).top),h=_.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&h&&(l-=this._options.frozenBottom?_.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(o.left,Math.ceil(o.top)-l);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!_.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(f=>f.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(f=>f.classList.add("active"))),this._options.editable&&t&&this.isCellPotentiallyEditable(this.activeRow,this.activeCell)&&(this._options.asyncEditorLoading?(window.clearTimeout(this.h_editorLoader),this.h_editorLoader=window.setTimeout(()=>{this.makeActiveCellEditable(void 0,r,s)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,r,s))}else this.activeRow=this.activeCell=null;i||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let r=this.getDataLength();return!(e<r&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=r||!this.columns[t]||this.columns[t].hidden||!this.getEditor(e,t))}makeActiveCellNormal(e=!1){if(this.currentEditor){if(this.trigger(this.onBeforeCellEditorDestroy,{editor:this.currentEditor}),this.currentEditor.destroy(),this.currentEditor=null,this.activeCellNode){let t=this.getDataItem(this.activeRow);if(this.activeCellNode.classList.remove("editable"),this.activeCellNode.classList.remove("invalid"),t){let r=this.columns[this.activeCell],i=this.getFormatter(this.activeRow,r)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,r),r,t,this);this.applyFormatResultToCellNode(i,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,r){this.makeActiveCellEditable(e,t,r)}makeActiveCellEditable(e,t,r){if(!this.activeCellNode)return;if(!this._options.editable)throw new Error("SlickGrid makeActiveCellEditable : should never get called when this._options.editable is false");if(window.clearTimeout(this.h_editorLoader),!this.isCellPotentiallyEditable(this.activeRow,this.activeCell))return;let i=this.columns[this.activeCell],s=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:s,column:i,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let o=e||this.getEditor(this.activeRow,this.activeCell);if(!o||typeof o!="function")return;!e&&!o.suppressClearOnEdit&&_.emptyElement(this.activeCellNode);let l=this.getItemMetadaWhenExists(this.activeRow);l=l?.columns;let h=l&&(l[i.id]||l[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:i,columnMetaData:h,item:s||{},event:r,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new o(d),s&&this.currentEditor&&(this.currentEditor.loadValue(s),t&&this.currentEditor?.preClick&&this.currentEditor.preClick()),this.serializedEditorValue=this.currentEditor?.serializeValue(),this.currentEditor?.position&&this.handleActiveCellPositionChange()}commitEditAndSetFocus(){this.getEditorLock()?.commitCurrentEdit()&&(this.setFocus(),this._options.autoEdit&&!this._options.autoCommitEdit&&this.navigateDown())}cancelEditAndSetFocus(){this.getEditorLock()?.cancelCurrentEdit()&&this.setFocus()}commitCurrentEdit(){let e=this,t=e.getDataItem(e.activeRow),r=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let i=e.currentEditor.validate();if(i.valid){let s=e.activeRow,o=e.activeCell,l=e.currentEditor,h=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let f={row:s,cell:o,editor:l,serializedValue:h,prevSerializedValue:d,execute:()=>{l.applyValue(t,h),e.updateRow(s),e.trigger(e.onCellChange,{command:"execute",row:s,cell:o,item:t,column:r})},undo:()=>{l.applyValue(t,d),e.updateRow(s),e.trigger(e.onCellChange,{command:"undo",row:s,cell:o,item:t,column:r})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,r,f)):(f.execute(),e.makeActiveCellNormal(!0))}else{let f={};e.currentEditor.applyValue(f,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:f,column:r})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),_.width(e.activeCellNode),e.activeCellNode.classList.add("invalid")),e.trigger(e.onValidationError,{editor:e.currentEditor,cellNode:e.activeCellNode,validationResults:i,row:e.activeRow,cell:e.activeCell,column:r}),e.currentEditor.focus(),!1}e.makeActiveCellNormal(!0)}return!0}cancelCurrentEdit(){return this.makeActiveCellNormal(),!0}getSelectedRows(){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");return this.selectedRows.slice(0)}setSelectedRows(e,t){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");this&&this.getEditorLock&&!this.getEditorLock()?.isActive()&&this.selectionModel.setSelectedRanges(this.rowsToRanges(e),t||"SlickGrid.setSelectedRows")}trigger(e,t,r){let i=r||new hs(r,t),s=t||{};return s.grid=this,e.notify(s,i,this)}handleCellMouseOut(e){this.trigger(this.onMouseLeave,{},e)}handleHeaderMouseHoverOn(e){e?.target.classList.add("ui-state-hover","slick-state-hover")}handleHeaderMouseHoverOff(e){e?.target.classList.remove("ui-state-hover","slick-state-hover")}handleSelectedRangesChanged(e,t){let r=e.getNativeEvent(),i=this.selectedRows.slice(0);this.selectedRows=[];let s={};for(let o=0;o<t.length;o++)for(let l=t[o].fromRow;l<=t[o].toRow;l++){s[l]||(this.selectedRows.push(l),s[l]={});for(let h=t[o].fromCell;h<=t[o].toCell;h++)this.canCellBeSelected(l,h)&&(s[l][this.columns[h].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",s),this.simpleArrayEquals(i,this.selectedRows)){let o=r?.detail?.caller??"click",l=new Set(this.getSelectedRows()),h=new Set(i),d=Array.from(l).filter(p=>!h.has(p)),f=Array.from(h).filter(p=>!l.has(p));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:i,caller:o,changedSelectedRows:d,changedUnselectedRows:f},e)}}handleMouseWheel(e,t,r,i){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+r*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-i*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+r*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let r=this.getCellFromEvent(e);if(!r||!this.cellExists(r.row,r.cell))return!1;let i=this.trigger(this.onDragInit,t,e);return i.isImmediatePropagationStopped()?i.getReturnValue():!1}handleDragStart(e,t){let r=this.getCellFromEvent(e);if(!r||!this.cellExists(r.row,r.cell))return!1;let i=this.trigger(this.onDragStart,t,e);return i.isImmediatePropagationStopped()?i.getReturnValue():!1}handleDrag(e,t){return this.trigger(this.onDrag,t,e).getReturnValue()}handleDragEnd(e,t){this.trigger(this.onDragEnd,t,e)}handleKeyDown(e){let t=this.trigger(this.onKeyDown,{row:this.activeRow,cell:this.activeCell},e).isImmediatePropagationStopped();if(!t&&!e.shiftKey&&!e.altKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;e.ctrlKey&&e.key==="Home"?this.navigateTopStart():e.ctrlKey&&e.key==="End"?this.navigateBottomEnd():e.ctrlKey&&e.key==="ArrowUp"?this.navigateTop():e.ctrlKey&&e.key==="ArrowDown"?this.navigateBottom():e.ctrlKey&&e.key==="ArrowLeft"||!e.ctrlKey&&e.key==="Home"?this.navigateRowStart():(e.ctrlKey&&e.key==="ArrowRight"||!e.ctrlKey&&e.key==="End")&&this.navigateRowEnd()}if(!t)if(!e.shiftKey&&!e.altKey&&!e.ctrlKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which===ar.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===ar.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===ar.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===ar.LEFT?t=this.navigateLeft():e.which===ar.RIGHT?t=this.navigateRight():e.which===ar.UP?t=this.navigateUp():e.which===ar.DOWN?t=this.navigateDown():e.which===ar.TAB?t=this.navigateNext():e.which===ar.ENTER&&(this._options.editable&&(this.currentEditor?this.activeRow===this.getDataLength()?this.navigateDown():this.commitEditAndSetFocus():this.getEditorLock()?.commitCurrentEdit()&&this.makeActiveCellEditable(void 0,void 0,e)),t=!0)}else e.which===ar.TAB&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&(t=this.navigatePrev());if(t){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch{}}}handleClick(e){let t=e instanceof hs?e.getNativeEvent():e;if(!this.currentEditor&&(t.target!==document.activeElement||t.target.classList.contains("slick-cell"))){let i=this.getTextSelection();this.setFocus(),this.setTextSelection(i)}let r=this.getCellFromEvent(t);if(!(!r||this.currentEditor!==null&&this.activeRow===r.row&&this.activeCell===r.cell)&&(e=this.trigger(this.onClick,{row:r.row,cell:r.cell},e||t),!e.isImmediatePropagationStopped()&&this.canCellBeActive(r.row,r.cell)&&(!this.getEditorLock()?.isActive()||this.getEditorLock()?.commitCurrentEdit()))){this.scrollRowIntoView(r.row,!1);let i=t.target?.className===TS,s=this.columns[r.cell],o=!!(this._options.editable&&s?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(this.getCellNode(r.row,r.cell),null,i,o,t)}}handleContextMenu(e){let t=e.target.closest(".slick-cell");t&&(this.activeCellNode===t&&this.currentEditor!==null||this.trigger(this.onContextMenu,{},e))}handleDblClick(e){let t=this.getCellFromEvent(e);!t||this.currentEditor!==null&&this.activeRow===t.row&&this.activeCell===t.cell||(this.trigger(this.onDblClick,{row:t.row,cell:t.cell},e),!e.defaultPrevented&&this._options.editable&&this.gotoCell(t.row,t.cell,!0,e))}handleHeaderMouseEnter(e){let t=_.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=_.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=_.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=_.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseLeave,{column:t,grid:this},e)}handleHeaderContextMenu(e){let t=e.target.closest(".slick-header-column"),r=t&&_.storage.get(t,"column");this.trigger(this.onHeaderContextMenu,{column:r},e)}handleHeaderClick(e){if(!this.columnResizeDragging){let t=e.target.closest(".slick-header-column"),r=t&&_.storage.get(t,"column");r&&this.trigger(this.onHeaderClick,{column:r},e)}}handlePreHeaderContextMenu(e){this.trigger(this.onPreHeaderContextMenu,{node:e.target},e)}handlePreHeaderClick(e){this.columnResizeDragging||this.trigger(this.onPreHeaderClick,{node:e.target},e)}handleFooterContextMenu(e){let t=e.target.closest(".slick-footerrow-column"),r=t&&_.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:r},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),r=t&&_.storage.get(t,"column");this.trigger(this.onFooterClick,{column:r},e)}handleCellMouseOver(e){this.trigger(this.onMouseEnter,{},e)}handleActiveCellPositionChange(){if(this.activeCellNode&&(this.trigger(this.onActiveCellPositionChanged,{}),this.currentEditor)){let e=this.getActiveCellPosition();this.currentEditor.show&&this.currentEditor.hide&&(e.visible?this.currentEditor.show():this.currentEditor.hide()),this.currentEditor.position&&this.currentEditor.position(e)}}actionThrottle(e,t){let r=!1,i=!1,s=()=>{r?i=!0:l()},o=()=>{i=!1},l=()=>{r=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(h,t),e.call(this)},h=()=>{i?(o(),l()):r=!1};return{enqueue:s.bind(this),dequeue:o.bind(this)}}getCellFromEvent(e){let t=e instanceof hs?e.getNativeEvent():e,r=t.touches?t.touches[0]:t,i=t.target.closest(".slick-cell");if(!i)return null;let s=this.getRowFromNode(i.parentNode);if(this.hasFrozenRows){let l=0,h=_.offset(_.parents(i,".grid-canvas")[0]);_.parents(i,".grid-canvas-bottom").length&&(l=this._options.frozenBottom?_.height(this._canvasTopL):this.frozenRowsHeight),s=this.getCellFromPoint(r.clientX-h.left,r.clientY-h.top+l+document.documentElement.scrollTop).row}let o=this.getCellFromNode(i);return!_.isDefined(s)||!_.isDefined(o)?null:{row:s,cell:o}}applyHtmlCode(e,t,r){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)r?.emptyTarget!==!1&&_.emptyElement(e),e.appendChild(t);else{if(r?.skipEmptyReassignment!==!1&&!_.isDefined(t)&&!e.innerHTML)return;let i=t;typeof i=="number"||typeof i=="boolean"?e.textContent=i:(i=this.sanitizeHtmlString(t),this._options.enableHtmlRendering&&i?e.innerHTML=i:e.textContent=i)}}getCanvasNode(e,t){return this._getContainerElement(this.getCanvases(),e,t)}getActiveCanvasNode(e){return e===void 0?this._activeCanvasNode:(e instanceof hs&&(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 hs&&(e=e.getNativeEvent()),this._activeViewportNode=e?.target.closest(".slick-viewport"),this._activeViewportNode}getHeadersWidth(){this.headersWidth=this.headersWidthL=this.headersWidthR=0;let e=!this._options.autoHeight,t=0,r=this.columns.length;for(t=0;t<r;t++){if(!this.columns[t]||this.columns[t].hidden)continue;let i=this.columns[t].width;this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=i||0:this.headersWidthL+=i||0}return e&&(this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=this.scrollbarDimensions?.width??0:this.headersWidthL+=this.scrollbarDimensions?.width??0),this.hasFrozenColumns()?(this.headersWidthL=this.headersWidthL+1e3,this.headersWidthR=Math.max(this.headersWidthR,this.viewportW)+this.headersWidthL,this.headersWidthR+=this.scrollbarDimensions?.width??0):(this.headersWidthL+=this.scrollbarDimensions?.width??0,this.headersWidthL=Math.max(this.headersWidthL,this.viewportW)+1e3),this.headersWidth=this.headersWidthL+this.headersWidthR,Math.max(this.headersWidth,this.viewportW)+1e3}getCanvasWidth(){let e=this.getViewportInnerWidth(),t=this.columns.length;for(this.canvasWidthL=this.canvasWidthR=0;t--;)!this.columns[t]||this.columns[t].hidden||(this.hasFrozenColumns()&&t>this._options.frozenColumn?this.canvasWidthR+=this.columns[t].width||0:this.canvasWidthL+=this.columns[t].width||0);let r=this.canvasWidthL+this.canvasWidthR;if(this._options.fullWidthRows){let i=Math.max(r,e)-r;i>0&&(r+=i,this.hasFrozenColumns()?this.canvasWidthR+=i:this.canvasWidthL+=i)}return r}updateCanvasWidth(e){let t=this.canvasWidth,r=this.canvasWidthL,i=this.canvasWidthR;this.canvasWidth=this.getCanvasWidth(),this._options.createTopHeaderPanel&&_.width(this._topHeaderPanel,this._options.topHeaderPanelWidth??this.canvasWidth);let s=this.canvasWidth!==t||this.canvasWidthL!==r||this.canvasWidthR!==i;if(s||this.hasFrozenColumns()||this.hasFrozenRows)if(_.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),_.width(this._headerL,this.headersWidthL),_.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let o=_.width(this._container)||0;if(o>0&&this.canvasWidthL>o&&this._options.throwWhenFrozenNotAllViewable)throw new Error("[SlickGrid] Frozen columns cannot be wider than the actual grid container width. Make sure to have less columns freezed or make your grid container wider");_.width(this._canvasTopR,this.canvasWidthR),_.width(this._paneHeaderL,this.canvasWidthL),_.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),_.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),_.width(this._paneTopL,this.canvasWidthL),_.setStyleSize(this._paneTopR,"left",this.canvasWidthL),_.width(this._paneTopR,this.viewportW-this.canvasWidthL),_.width(this._headerRowScrollerL,this.canvasWidthL),_.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),_.width(this._headerRowL,this.canvasWidthL),_.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(_.width(this._footerRowScrollerL,this.canvasWidthL),_.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),_.width(this._footerRowL,this.canvasWidthL),_.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&_.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),_.width(this._viewportTopL,this.canvasWidthL),_.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(_.width(this._paneBottomL,this.canvasWidthL),_.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),_.width(this._viewportBottomL,this.canvasWidthL),_.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),_.width(this._canvasBottomL,this.canvasWidthL),_.width(this._canvasBottomR,this.canvasWidthR))}else _.width(this._paneHeaderL,"100%"),_.width(this._paneTopL,"100%"),_.width(this._headerRowScrollerL,"100%"),_.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(_.width(this._footerRowScrollerL,"100%"),_.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&_.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),_.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(_.width(this._viewportBottomL,"100%"),_.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),_.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),_.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(_.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),_.width(this._footerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0))),(s||e)&&this.applyColumnWidths()}getPreHeaderPanel(){return this._preHeaderPanel}getPreHeaderPanelLeft(){return this._preHeaderPanel}getPreHeaderPanelRight(){return this._preHeaderPanelR}getTopHeaderPanel(){return this._topHeaderPanel}setPaneVisibility(){this.hasFrozenColumns()?(_.show(this._paneHeaderR),_.show(this._paneTopR),this.hasFrozenRows?(_.show(this._paneBottomL),_.show(this._paneBottomR)):(_.hide(this._paneBottomR),_.hide(this._paneBottomL))):(_.hide(this._paneHeaderR),_.hide(this._paneTopR),_.hide(this._paneBottomR),this.hasFrozenRows?_.show(this._paneBottomL):(_.hide(this._paneBottomR),_.hide(this._paneBottomL)))}setOverflow(){if(this._viewportTopL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportTopR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?this.hasFrozenRows?"scroll":"auto":this.hasFrozenRows?"scroll":"auto",this._viewportBottomL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportBottomR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"auto"):(this.hasFrozenRows,"auto"),this._options.viewportClass){let e=_.classNameToList(this._options.viewportClass);this._viewportTopL.classList.add(...e),this._viewportTopR.classList.add(...e),this._viewportBottomL.classList.add(...e),this._viewportBottomR.classList.add(...e)}}createCssRules(){this._style=document.createElement("style"),this._style.nonce=this._options.nonce||"",(this._options.shadowRoot||document.head).appendChild(this._style);let e=this._options.rowHeight-this.cellHeightDiff,t=[`.${this.uid} .slick-group-header-column { left: 1000px; }`,`.${this.uid} .slick-header-column { left: 1000px; }`,`.${this.uid} .slick-top-panel { height: ${this._options.topPanelHeight}px; }`,`.${this.uid} .slick-preheader-panel { height: ${this._options.preHeaderPanelHeight}px; }`,`.${this.uid} .slick-topheader-panel { height: ${this._options.topHeaderPanelHeight}px; }`,`.${this.uid} .slick-headerrow-columns { height: ${this._options.headerRowHeight}px; }`,`.${this.uid} .slick-footerrow-columns { height: ${this._options.footerRowHeight}px; }`,`.${this.uid} .slick-cell { height: ${e}px; }`,`.${this.uid} .slick-row { height: ${this._options.rowHeight}px; }`],r=this._style.sheet;if(r){t.forEach(i=>{r.insertRule(i)});for(let i=0;i<this.columns.length;i++)!this.columns[i]||this.columns[i].hidden||(r.insertRule(`.${this.uid} .l${i} { }`),r.insertRule(`.${this.uid} .r${i} { }`))}else this.createCssRulesAlternative(t)}createCssRulesAlternative(e){let t=document.createElement("template");t.innerHTML='<style type="text/css" rel="stylesheet" />',this._style=t.content.firstChild,(this._options.shadowRoot||document.head).appendChild(this._style);for(let r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(e.push(`.${this.uid} .l${r} { }`),e.push(`.${this.uid} .r${r} { }`));this._style.styleSheet?this._style.styleSheet.cssText=e.join(" "):this._style.appendChild(document.createTextNode(e.join(" ")))}getColumnCssRules(e){let t;if(!this.stylesheet){let r=(this._options.shadowRoot||document).styleSheets;for(this._options.devMode&&typeof this._options.devMode?.ownerNodeIndex=="number"&&this._options.devMode.ownerNodeIndex>=0&&(r[this._options.devMode.ownerNodeIndex].ownerNode=this._style),t=0;t<r.length;t++)if((r[t].ownerNode||r[t].owningElement)===this._style){this.stylesheet=r[t];break}if(!this.stylesheet)throw new Error("SlickGrid Cannot find stylesheet.");this.columnCssRulesL=[],this.columnCssRulesR=[];let i=this.stylesheet.cssRules||this.stylesheet.rules,s,o;for(t=0;t<i.length;t++){let l=i[t].selectorText;(s=/\.l\d+/.exec(l))?(o=parseInt(s[0].substr(2,s[0].length-2),10),this.columnCssRulesL[o]=i[t]):(s=/\.r\d+/.exec(l))&&(o=parseInt(s[0].substr(2,s[0].length-2),10),this.columnCssRulesR[o]=i[t])}}return{left:this.columnCssRulesL[e],right:this.columnCssRulesR[e]}}removeCssRules(){this._style?.remove(),this.stylesheet=null}getTopPanel(){return this._topPanels[0]}getTopPanels(){return this._topPanels}togglePanelVisibility(e,t,r,i){let s=i!==!1;if(this._options[e]!==r)if(this._options[e]=r,r){if(s){_.slideDown(t,this.resizeCanvas.bind(this));return}_.show(t),this.resizeCanvas()}else{if(s){_.slideUp(t,this.resizeCanvas.bind(this));return}_.hide(t),this.resizeCanvas()}}setTopPanelVisibility(e,t){this.togglePanelVisibility("showTopPanel",this._topPanelScrollers,e,t)}setHeaderRowVisibility(e,t){this.togglePanelVisibility("showHeaderRow",this._headerRowScroller,e,t)}setColumnHeaderVisibility(e,t){this.togglePanelVisibility("showColumnHeader",this._headerScroller,e,t)}setFooterRowVisibility(e,t){this.togglePanelVisibility("showFooterRow",this._footerRowScroller,e,t)}setPreHeaderPanelVisibility(e,t){this.togglePanelVisibility("showPreHeaderPanel",[this._preHeaderPanelScroller,this._preHeaderPanelScrollerR],e,t)}setTopHeaderPanelVisibility(e){this.togglePanelVisibility("showTopHeaderPanel",this._topHeaderPanelScroller,e)}getRowHeight(){return this._options.rowHeight}getRowTop(e){return Math.round(this._options.rowHeight*e-this.offset)}getRowBottom(e){return this.getRowTop(e)+this._options.rowHeight}getRowFromPosition(e){return Math.floor((e+this.offset)/this._options.rowHeight)}appendRowHtml(e,t,r,i,s){let o=this.getDataItem(r),l=r<s&&!o,h="slick-row"+(this.hasFrozenRows&&r<=this._options.frozenRow?" frozen":"")+(l?" loading":"")+(r===this.activeRow&&this._options.showCellSelection?" active":"")+(r%2===1?" odd":" even");o||(h+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(r);d?.cssClasses&&(h+=` ${d.cssClasses}`);let f=_.createDomElement("div",{className:`ui-widget-content ${h}`,role:"row",dataset:{row:`${r}`}}),p=this.getFrozenRowOffset(r),m=this.getRowTop(r)-p;this._options.rowTopOffsetRenderType==="transform"?f.style.transform=`translateY(${m}px)`:f.style.top=`${m}px`;let C;e.push(f),this.hasFrozenColumns()&&(C=f.cloneNode(!0),t.push(C));let k=this.columns.length,R,y,O,F,B=!0;for(let N=0,x=k;N<x;N++){if(B=!0,F=this.columns[N],!F||F.hidden)continue;y=1,O=1,R=null,d?.columns&&(R=d.columns[F.id]||d.columns[N],y=R?.colspan||1,O=R?.rowspan||1,y==="*"&&(y=x-N),O>s-r&&(O=s-r)),!this._options.enableCellRowSpan&&O>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let v=y;if(!this.getParentRowSpanByCell(r,N)){if(this.columnPosRight[Math.min(x-1,N+v-1)]>i.leftPx){if(!F.alwaysRenderColumn&&this.columnPosLeft[N]>i.rightPx&&(B=!1),B){let L=this.hasFrozenColumns()&&N>this._options.frozenColumn?C:f;this.appendCellHtml(L,r,N,v,O,R,o)}}else(F.alwaysRenderColumn||this.hasFrozenColumns()&&N<=this._options.frozenColumn)&&this.appendCellHtml(f,r,N,v,O,R,o);v>1&&(N+=v-1)}}}appendCellHtml(e,t,r,i,s,o,l){let h=this.columns[r],d=`slick-cell l${r} r${Math.min(this.columns.length-1,r+i-1)}`+(h.cssClass?` ${h.cssClass}`:"")+(s>1?" rowspan":"")+(o?.cssClass?` ${o.cssClass}`:"");this.hasFrozenColumns()&&r<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&r===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(O=>{this.cellCssClasses[O][t]?.[h.id]&&(d+=` ${this.cellCssClasses[O][t][h.id]}`)});let f=null,p="";l&&(f=this.getDataItemValueForColumn(l,h),p=this.getFormatter(t,h)(t,r,f,h,l,this),p==null&&(p=""));let m=this.trigger(this.onBeforeAppendCell,{row:t,cell:r,value:f,dataContext:l}).getReturnValue(),C=typeof m=="string"?m:"";p?.addClasses&&(C+=_.classNameToList((C?" ":"")+p.addClasses).join(" "));let k=p?.toolTip?`${p.toolTip}`:"",R=_.createDomElement("div",{className:_.classNameToList(`${d} ${C||""}`).join(" "),role:"gridcell",tabIndex:-1});R.setAttribute("aria-describedby",this.uid+h.id),k&&R.setAttribute("title",k);let y=this.getCellHeight(t,s);if(s>1&&y!==this._options.rowHeight-this.cellHeightDiff&&(R.style.height=`${y||0}px`),h.hasOwnProperty("cellAttrs")&&h.cellAttrs instanceof Object&&Object.keys(h.cellAttrs).forEach(O=>{h.cellAttrs.hasOwnProperty(O)&&R.setAttribute(O,h.cellAttrs[O])}),l){let O=Object.prototype.toString.call(p)!=="[object Object]"?p:p.html||p.text;this.applyHtmlCode(R,O)}e.appendChild(R),p.insertElementAfterTarget&&_.insertAfterElement(R,p.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(r),this.rowsCache[t].cellColSpans[r]=i}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let r=e.top,i=e.bottom;r<=i;r++){let s=this.getRowSpanIntersect(r);s!==null&&t.add(s)}Object.keys(this.rowsCache).forEach(r=>{if(this.rowsCache){let i=+r,s=!0;this.hasFrozenRows&&(this._options.frozenBottom&&i>=this.actualFrozenRow||!this._options.frozenBottom&&i<=this.actualFrozenRow)&&(s=!1),(i=parseInt(r,10))!==this.activeRow&&(i<e.top||i>e.bottom)&&s&&!t.has(i)&&this.removeRowFromCache(i)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let r=e.length,i=new Set,s=new Set,o=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let l=0;l<r;l++)if(t=e[l],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!o){i.add(t);let h=this.getRowSpanIntersect(t);h!==null&&i.add(h)}if(this._options.enableCellRowSpan&&!o){for(let l of Array.from(i)){let h=this.getRowSpanColumnIntersects(l);for(let d of h){let f=this.getParentRowSpanByCell(l,d);f&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(f.range),s.add(f.range.split(":").map(Number)[0]))}}for(let l of Array.from(s))this.remapRowSpanMetadataByRow(l)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let r=this.getRowSpanIntersect(e);r!==null&&t.push(r)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(r=>r.parentElement?.removeChild(r)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let r=this.getCellNode(e,t);if(!r)return;let i=this.columns[t],s=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(s);else{let o=s?this.getFormatter(e,i)(e,t,this.getDataItemValueForColumn(s,i),i,s,this):"";this.applyFormatResultToCellNode(o,r),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let r,i=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(s=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(s))return;let o=+s,l=this.columns[o],h=t.cellNodesByColumnIdx[o];e===this.activeRow&&o===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(i):i?(r=this.getFormatter(e,l)(e,o,this.getDataItemValueForColumn(i,l),l,i,this),this.applyFormatResultToCellNode(r,h)):_.emptyElement(h)}),this.invalidatePostProcessingResults(e)}getViewportRowCount(){let e=this.getViewportHeight(),t=this.getScrollbarDimensions()?.height??0;return Math.floor((e-t)/this._options.rowHeight)}getViewportHeight(){if((!this._options.autoHeight||this._options.frozenColumn!==-1)&&(this.topPanelH=this._options.showTopPanel?this._options.topPanelHeight+this.getVBoxDelta(this._topPanelScrollers[0]):0,this.headerRowH=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,this.footerRowH=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0),this._options.autoHeight){let e=this._paneHeaderL.offsetHeight;e+=this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,e+=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,e+=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0,e+=this.getCanvasWidth()>this.viewportW?this.scrollbarDimensions?.height??0:0,this.viewportH=this._options.rowHeight*this.getDataLengthIncludingAddNew()+(this._options.frozenColumn===-1?e:0)}else{let e=getComputedStyle(this._container),t=e.boxSizing!=="content-box"?this.getVBoxDelta(this._container):0,r=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,i=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,s=this._options.showColumnHeader?_.toFloat(_.height(this._headerScroller[0])):0;this.viewportH=_.toFloat(e.height)-_.toFloat(e.paddingTop)-_.toFloat(e.paddingBottom)-this.topPanelH-r-i-this.headerRowH-s-this.footerRowH-t}return this.numVisibleRows=Math.ceil(this.viewportH/this._options.rowHeight),this.viewportH}getViewportInnerWidth(){return this.viewportHasVScroll?this.viewportW-(this.scrollbarDimensions?.width||0):this.viewportW}getViewportWidth(){return this.viewportW=parseFloat(_.innerSize(this._container,"width"))||this._options.devMode&&this._options.devMode.containerClientWidth||0,this.viewportW}resizeCanvas(){if(!this.initialized)return;if(this.paneTopH=0,this.paneBottomH=0,this.viewportTopH=0,this.viewportBottomH=0,this.getViewportWidth(),this.getViewportHeight(),this.hasFrozenRows?this._options.frozenBottom?(this.paneTopH=this.viewportH-this.frozenRowsHeight-(this.scrollbarDimensions?.height??0),this.paneBottomH=this.frozenRowsHeight+(this.scrollbarDimensions?.height??0)):(this.paneTopH=this.frozenRowsHeight,this.paneBottomH=this.viewportH-this.frozenRowsHeight):this.paneTopH=this.viewportH,this.paneTopH+=this.topPanelH+this.headerRowH+this.footerRowH,this.hasFrozenColumns()&&this._options.autoHeight&&(this.paneTopH+=this.scrollbarDimensions?.height??0),this.viewportTopH=this.paneTopH-this.topPanelH-this.headerRowH-this.footerRowH,this._options.autoHeight){if(this.hasFrozenColumns()){let r=this.paneTopH+this._headerScrollerL.offsetHeight;r+=this.getVBoxDelta(this._container),this._options.showPreHeaderPanel&&(r+=this._options.preHeaderPanelHeight),_.height(this._container,r)}this._paneTopL.style.position="relative"}let e=_.height(this._paneHeaderL);e?e+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0:e=(this._options.showHeaderRow?this._options.headerRowHeight:0)+(this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight:0),_.setStyleSize(this._paneTopL,"top",e||e),_.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||_.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let r=_.height(this._paneHeaderL);r&&(r+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),_.setStyleSize(this._paneTopR,"top",r),_.height(this._paneTopR,this.paneTopH),_.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(_.setStyleSize(this._paneBottomL,"top",t),_.height(this._paneBottomL,this.paneBottomH),_.setStyleSize(this._paneBottomR,"top",t),_.height(this._paneBottomR,this.paneBottomH),_.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(_.width(this._paneBottomL,"100%"),_.height(this._paneBottomL,this.paneBottomH),_.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(_.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(_.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&_.height(this._canvasBottomR,this.frozenRowsHeight)):(_.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&_.height(this._canvasTopR,this.frozenRowsHeight))):_.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===Nt.LegacyForceFit&&this.autosizeColumns(),this.updateRowCount(),this.handleScroll(),this.lastRenderedScrollLeft=-1,this.render()}updateRowCount(){if(!this.initialized)return;let e=this.getDataLength();e>0&&e!==this._prevDataLength&&(this._rowSpanIsCached=!1),this._options.enableCellRowSpan&&!this._rowSpanIsCached&&this.remapAllColumnsRowSpan(),this._prevDataLength=e;let t=this.getDataLengthIncludingAddNew(),r=0,i=this.hasFrozenRows&&!this._options.frozenBottom?_.height(this._canvasBottomL):_.height(this._canvasTopL);this.hasFrozenRows?r=this.getDataLength()-this._options.frozenRow:r=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let s=_.height(this._viewportScrollContainerY),o=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&r*this._options.rowHeight>s,this.makeActiveCellNormal();let l=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let f=+d;f>l&&this.removeRowFromCache(f)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>l&&this.resetActiveCell(),i=this.h,this._options.autoHeight?this.h=this._options.rowHeight*r:(this.th=Math.max(this._options.rowHeight*r,s-(this.scrollbarDimensions?.height??0)),this.th<this.maxSupportedCssHeight?(this.h=this.ph=this.th,this.n=1,this.cj=0):(this.h=this.maxSupportedCssHeight,this.ph=this.h/100,this.n=Math.floor(this.th/this.ph),this.cj=(this.th-this.h)/(this.n-1))),(this.h!==i||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(_.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&_.height(this._canvasBottomR,this.h)):(_.height(this._canvasTopL,this.h),_.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let h=this.scrollTop+this.offset<=this.th-s;this.th===0||this.scrollTop===0?this.page=this.offset=0:h?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-s+(this.scrollbarDimensions?.height??0)),this.h!==i&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===Nt.LegacyForceFit&&o!==this.viewportHasVScroll&&this.autosizeColumns(),this.updateCanvasWidth(!1)}getViewport(e,t){return this.getVisibleRange(e,t)}getVisibleRange(e,t){return e??(e=this.scrollTop),t??(t=this.scrollLeft),{top:this.getRowFromPosition(e),bottom:this.getRowFromPosition(e+this.viewportH)+1,leftPx:t,rightPx:t+this.viewportW}}getRenderedRange(e,t){let r=this.getVisibleRange(e,t),i=Math.round(this.viewportH/this._options.rowHeight),s=this._options.minRowBuffer;return this.vScrollDir===-1?(r.top-=i,r.bottom+=s):this.vScrollDir===1?(r.top-=s,r.bottom+=i):(r.top-=s,r.bottom+=s),r.top=Math.max(0,r.top),r.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,r.bottom),r.leftPx-=this.viewportW,r.rightPx+=this.viewportW,r.leftPx=Math.max(0,r.leftPx),r.rightPx=Math.min(this.canvasWidth,r.rightPx),r}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let r=t.rowNode,i=Array.from(r[0].children);r.length>1&&(i=i.concat(Array.from(r[1].children)));let s=i.length-1;for(;t.cellRenderQueue.length;){let o=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[o]=i[s--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let r=this.rowsCache[t],i=[];Object.keys(r.cellNodesByColumnIdx).forEach(l=>{if(!r.cellNodesByColumnIdx.hasOwnProperty(l))return;let h=+l;if(h<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[h]?.alwaysRenderColumn)return;let d=r.cellColSpans[h];(this.columnPosLeft[h]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(h||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(h)===this.activeCell||i.push(h))});let s,o;for(;_.isDefined(s=i.pop());)o=r.cellNodesByColumnIdx[s],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[s]?this.queuePostProcessedCellForCleanup(o,s,t):o.parentElement?.removeChild(o),delete r.cellColSpans[s],delete r.cellNodesByColumnIdx[s],this.postProcessedRows[t]&&delete this.postProcessedRows[t][s]}cleanUpAndRenderCells(e){let t,r=document.createElement("div"),i=[],s,o,l,h=this.columns.length;for(let p=e.top,m=e.bottom;p<=m;p++){if(t=this.rowsCache[p],!t)continue;this.ensureCellNodesInRowsCache(p),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(p)===null)&&this.cleanUpCells(e,p),s=0;let C=this.getItemMetadaWhenExists(p);C=C?.columns;let k=this.getDataItem(p);for(let R=0,y=h;R<y;R++){if(!this.columns[R]||this.columns[R].hidden)continue;if(this.columnPosLeft[R]>e.rightPx)break;if(_.isDefined(o=t.cellColSpans[R])){R+=o>1?o-1:0;continue}o=1,l=null,C&&(l=C[this.columns[R].id]||C[R],o=l?.colspan??1,o==="*"&&(o=y-R));let O=o;if(!this.getParentRowSpanByCell(p,R)){if(this.columnPosRight[Math.min(y-1,R+O-1)]>e.leftPx){let F=this.getRowspan(p,R);this.appendCellHtml(r,p,R,O,F,l,k),s++}R+=O>1?O-1:0}}s&&i.push(p)}if(!r.children.length)return;let d,f;for(;_.isDefined(d=i.pop());){t=this.rowsCache[d];let p;for(;_.isDefined(p=t.cellRenderQueue.pop());)f=r.lastChild,f&&(this.hasFrozenColumns()&&p>this._options.frozenColumn?t.rowNode[1].appendChild(f):t.rowNode[0].appendChild(f),t.cellNodesByColumnIdx[p]=f)}}renderRows(e){let t=[],r=[],i=[],s=!1,o=this.getDataLength(),l=new Set,h=new Set;for(let f=e.top,p=e.bottom;f<=p;f++)if(!(this.rowsCache[f]||this.hasFrozenRows&&this._options.frozenBottom&&f===this.getDataLength())){if(this.renderedRows++,i.push(f),h.add(f),this.rowsCache[f]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let m=this.getRowSpanIntersect(f);m!==null&&h.add(m)}this.appendRowHtml(t,r,f,e,o),l.add(f),this.activeCellNode&&this.activeRow===f&&(s=!0),this.counter_rows_rendered++}let d=this.setDifference(h,l);if(d.size>0&&d.forEach(f=>{this.removeRowFromCache(f),i.push(f),this.rowsCache[f]=this.createEmptyCachingRow(),this.appendRowHtml(t,r,f,e,o)}),i.length){let f=document.createElement("div"),p=document.createElement("div");t.forEach(m=>f.appendChild(m)),r.forEach(m=>p.appendChild(m));for(let m=0,C=i.length;m<C;m++)this.hasFrozenRows&&i[m]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(i[m])&&f.firstChild&&p.firstChild&&(this.rowsCache[i[m]].rowNode=[f.firstChild,p.firstChild],this._canvasBottomL.appendChild(f.firstChild),this._canvasBottomR.appendChild(p.firstChild)):this.rowsCache?.hasOwnProperty(i[m])&&f.firstChild&&(this.rowsCache[i[m]].rowNode=[f.firstChild],this._canvasBottomL.appendChild(f.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(i[m])&&f.firstChild&&p.firstChild&&(this.rowsCache[i[m]].rowNode=[f.firstChild,p.firstChild],this._canvasTopL.appendChild(f.firstChild),this._canvasTopR.appendChild(p.firstChild)):this.rowsCache?.hasOwnProperty(i[m])&&f.firstChild&&(this.rowsCache[i[m]].rowNode=[f.firstChild],this._canvasTopL.appendChild(f.firstChild));s&&(this.activeCellNode=this.getCellNode(this.activeRow,this.activeCell))}}updateRowPositions(){for(let e in this.rowsCache)if(this.rowsCache){let t=e?parseInt(e,10):0,r=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?r.style.transform=`translateY(${this.getRowTop(t)}px)`:r.style.top=`${this.getRowTop(t)}px`}}render(){if(!this.initialized)return;this.scrollThrottle.dequeue();let e=this.getVisibleRange(),t=this.getRenderedRange();if(this.cleanupRows(t),this.lastRenderedScrollLeft!==this.scrollLeft){if(this.hasFrozenRows){let r=_.extend(!0,{},t);this._options.frozenBottom?(r.top=this.actualFrozenRow,r.bottom=this.getDataLength()):(r.top=0,r.bottom=this._options.frozenRow),this.cleanUpAndRenderCells(r)}this.cleanUpAndRenderCells(t)}this.renderRows(t),this.hasFrozenRows&&(this._options.frozenBottom?this.renderRows({top:this.actualFrozenRow,bottom:this.getDataLength()-1,leftPx:t.leftPx,rightPx:t.rightPx}):this.renderRows({top:0,bottom:this._options.frozenRow-1,leftPx:t.leftPx,rightPx:t.rightPx})),this.postProcessFromRow=e.top,this.postProcessToRow=Math.min(this.getDataLengthIncludingAddNew()-1,e.bottom),this.startPostProcessing(),this.lastRenderedScrollTop=this.scrollTop,this.lastRenderedScrollLeft=this.scrollLeft,this.trigger(this.onRendered,{startRow:e.top,endRow:e.bottom,grid:this})}getFrozenRowOffset(e){let t=0;return this.hasFrozenRows?this._options.frozenBottom?e>=this.actualFrozenRow?this.h<this.viewportTopH?t=this.actualFrozenRow*this._options.rowHeight:t=this.h:t=0:e>=this.actualFrozenRow?t=this.frozenRowsHeight:t=0:t=0,t}bindAncestorScrollEvents(){let e=this.hasFrozenRows&&!this._options.frozenBottom?this._canvasBottomL:this._canvasTopL;for(;(e=e.parentNode)!==document.body&&e;)(e===this._viewportTopL||e.scrollWidth!==e.clientWidth||e.scrollHeight!==e.clientHeight)&&(this._boundAncestors.push(e),this._bindingEventService.bind(e,"scroll",this.handleActiveCellPositionChange.bind(this)))}unbindAncestorScrollEvents(){this._boundAncestors.forEach(e=>{this._bindingEventService.unbindByEventName(e,"scroll")}),this._boundAncestors=[]}setScroller(){this.hasFrozenColumns()?(this._headerScrollContainer=this._headerScrollerR,this._headerRowScrollContainer=this._headerRowScrollerR,this._footerRowScrollContainer=this._footerRowScrollerR,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomR,this._viewportScrollContainerY=this._viewportTopR):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomR:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopR):(this._headerScrollContainer=this._headerScrollerL,this._headerRowScrollContainer=this._headerRowScrollerL,this._footerRowScrollContainer=this._footerRowScrollerL,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomL,this._viewportScrollContainerY=this._viewportTopL):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomL:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopL)}scrollTo(e){e=Math.max(e,0),e=Math.min(e,(this.th||0)-_.height(this._viewportScrollContainerY)+(this.viewportHasHScroll||this.hasFrozenColumns()?this.scrollbarDimensions?.height??0:0));let t=this.offset;this.offset=Math.round(this.page*(this.cj||0)),this.page=Math.min((this.n||0)-1,Math.floor(e/(this.ph||0)));let r=e-this.offset;if(this.offset!==t){let i=this.getVisibleRange(r);this.cleanupRows(i),this.updateRowPositions()}this.prevScrollTop!==r&&(this.vScrollDir=this.prevScrollTop+t<r+this.offset?1:-1,this.lastRenderedScrollTop=this.scrollTop=this.prevScrollTop=r,this.hasFrozenColumns()&&(this._viewportTopL.scrollTop=r),this.hasFrozenRows&&(this._viewportBottomL.scrollTop=this._viewportBottomR.scrollTop=r),this._viewportScrollContainerY&&(this._viewportScrollContainerY.scrollTop=r),this.trigger(this.onViewportChanged,{}))}handleHeaderRowScroll(){let e=this._headerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handleFooterRowScroll(){let e=this._footerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handlePreHeaderPanelScroll(){this.handleElementScroll(this._preHeaderPanelScroller)}handleTopHeaderPanelScroll(){this.handleElementScroll(this._topHeaderPanelScroller)}handleElementScroll(e){let t=e.scrollLeft;t!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=t)}handleScroll(e){return this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollLeft=this._viewportScrollContainerX.scrollLeft,this._handleScroll(e?"scroll":"system")}_handleScroll(e="system"){let t=this._viewportScrollContainerY.scrollHeight-this._viewportScrollContainerY.clientHeight,r=this._viewportScrollContainerY.scrollWidth-this._viewportScrollContainerY.clientWidth;t=Math.max(0,t),r=Math.max(0,r),this.scrollTop>t&&(this.scrollTop=t,this.scrollHeight=t),this.scrollLeft>r&&(this.scrollLeft=r);let i=Math.abs(this.scrollTop-this.prevScrollTop),s=Math.abs(this.scrollLeft-this.prevScrollLeft);if(s&&(this.prevScrollLeft=this.scrollLeft,this._viewportScrollContainerX.scrollLeft=this.scrollLeft,this._headerScrollContainer.scrollLeft=this.scrollLeft,this._topPanelScrollers[0].scrollLeft=this.scrollLeft,this._options.createFooterRow&&(this._footerRowScrollContainer.scrollLeft=this.scrollLeft),this._options.createPreHeaderPanel&&(this.hasFrozenColumns()?this._preHeaderPanelScrollerR.scrollLeft=this.scrollLeft:this._preHeaderPanelScroller.scrollLeft=this.scrollLeft),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller.scrollLeft=this.scrollLeft),this.hasFrozenColumns()?(this.hasFrozenRows&&(this._viewportTopR.scrollLeft=this.scrollLeft),this._headerRowScrollerR.scrollLeft=this.scrollLeft):(this.hasFrozenRows&&(this._viewportTopL.scrollLeft=this.scrollLeft),this._headerRowScrollerL.scrollLeft=this.scrollLeft)),i&&!this._options.autoHeight)if(this.vScrollDir=this.prevScrollTop<this.scrollTop?1:-1,this.prevScrollTop=this.scrollTop,e==="mousewheel"&&(this._viewportScrollContainerY.scrollTop=this.scrollTop),this.hasFrozenColumns()&&(this.hasFrozenRows&&!this._options.frozenBottom?this._viewportBottomL.scrollTop=this.scrollTop:this._viewportTopL.scrollTop=this.scrollTop),i<this.viewportH)this.scrollTo(this.scrollTop+this.offset);else{let o=this.offset;this.h===this.viewportH?this.page=0:this.page=Math.min(this.n-1,Math.floor(this.scrollTop*((this.th-this.viewportH)/(this.h-this.viewportH))*(1/this.ph))),this.offset=Math.round(this.page*this.cj),o!==this.offset&&this.invalidateAllRows()}if(s||i){let o=Math.abs(this.lastRenderedScrollLeft-this.scrollLeft),l=Math.abs(this.lastRenderedScrollTop-this.scrollTop);(o>20||l>20)&&(this._options.forceSyncScrolling||l<this.viewportH&&o<this.viewportW?this.render():this.scrollThrottle.enqueue(),this.trigger(this.onViewportChanged,{}))}return this.trigger(this.onScroll,{triggeredBy:e,scrollHeight:this.scrollHeight,scrollLeft:this.scrollLeft,scrollTop:this.scrollTop}),!!(s||i)}scrollCellIntoView(e,t,r){if(this.scrollRowIntoView(e,r),t<=this._options.frozenColumn)return;let i=this.getColspan(e,t);this.internalScrollColumnIntoView(this.columnPosLeft[t],this.columnPosRight[t+(i>1?i-1:0)])}internalScrollColumnIntoView(e,t){let r=this.scrollLeft+_.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>r&&(this._viewportScrollContainerX.scrollLeft=Math.min(e,t-this._viewportScrollContainerX.clientWidth),this.handleScroll(),this.render())}scrollColumnIntoView(e){this.internalScrollColumnIntoView(this.columnPosLeft[e],this.columnPosRight[e])}updatePagingStatusFromView(e){this.pagingActive=e.pageSize!==0,this.pagingIsLastPage=e.pageNum===e.totalPages-1}getRowSpanColumnIntersects(e){return this.getRowSpanIntersection(e,"columns")}getRowSpanIntersect(e){return this.getRowSpanIntersection(e)}getRowSpanIntersection(e,t){let r=[],i=null;for(let s=0,o=this.columns.length;s<o;s++){let l=this._colsWithRowSpanCache[s];if(l)for(let h of Array.from(l)){let[d,f]=h.split(":").map(Number);if(e>=d&&e<=f)if(t==="columns")r.push(s);else{i=d;break}}}return t==="columns"?r:i}getParentRowSpanByCell(e,t,r=!0){let i=null,s=this._colsWithRowSpanCache[t]||new Set;for(let o of Array.from(s)){let[l,h]=o.split(":").map(Number);if((r?e>l:e>=l)&&e<=h){i={start:l,end:h,range:o};break}}return i}remapAllColumnsRowSpan(){let e=this.getDataLength();if(e>0){this._colsWithRowSpanCache={};for(let t=0;t<e;t++)this.remapRowSpanMetadataByRow(t);this._rowSpanIsCached=!0}}remapRowSpanMetadataByRow(e){let t=this.getItemMetadaWhenExists(e);t?.columns&&Object.keys(t.columns).forEach(r=>{let i=+r,s=t.columns[i],o=+(s?.colspan||1),l=+(s?.rowspan||1);this.remapRowSpanMetadata(e,i,o,l)})}remapRowSpanMetadata(e,t,r,i){var s,o,l;if(i>1){let h=`${e}:${e+i-1}`;if((s=this._colsWithRowSpanCache)[t]??(s[t]=new Set),this._colsWithRowSpanCache[t].add(h),r>1)for(let d=1;d<r;d++)(o=this._colsWithRowSpanCache)[l=t+d]??(o[l]=new Set),this._colsWithRowSpanCache[t+d].add(h)}}createEmptyCachingRow(){return{rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]}}scrollRowIntoView(e,t){if(!this.hasFrozenRows||!this._options.frozenBottom&&e>this.actualFrozenRow-1||this._options.frozenBottom&&e<this.actualFrozenRow-1){let r=_.height(this._viewportScrollContainerY),i=this.hasFrozenRows&&!this._options.frozenBottom?e-this._options.frozenRow:e,s=i*this._options.rowHeight,o=(i+1)*this._options.rowHeight-r+(this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0);(i+1)*this._options.rowHeight>this.scrollTop+r+this.offset?(this.scrollTo(t?s:o),this.render()):i*this._options.rowHeight<this.scrollTop+this.offset&&(this.scrollTo(t?o:s),this.render())}}scrollRowToTop(e){this.scrollTo(e*this._options.rowHeight),this.render()}scrollPage(e){let t=e*this.numVisibleRows,r=this.scrollTop+this._options.rowHeight-1;if(this.scrollTo((this.getRowFromPosition(r)+t)*this._options.rowHeight),this.render(),this._options.enableCellNavigation&&_.isDefined(this.activeRow)){let i=this.activeRow+t,s=this.getDataLengthIncludingAddNew();i>=s&&(i=s-1),i<0&&(i=0);let o=e===1?this.gotoDown(i-1||0,this.activeCell,this.activePosY,this.activePosX):this.gotoUp(i+1,this.activeCell,this.activePosY,this.activePosX);this.navigateToPos(o)}}navigatePageDown(){this.scrollPage(1)}navigatePageUp(){this.scrollPage(-1)}navigateTop(){this.unsetActiveCell(),this.navigateToRow(0)}navigateBottom(){let e=this.getDataLength()-1,t=this.getParentRowSpanByCell(e,this.activeCell)?.start??e;do if(this._options.enableCellRowSpan&&this.setActiveRow(t),this.navigateToRow(t)&&this.activeCell===this.activePosX||!_.isDefined(this.activeCell))break;while(--t>0)}navigateToRow(e){let t=this.getDataLength();if(!t)return!1;e<0?e=0:e>=t&&(e=t-1),this.scrollCellIntoView(e,0,!0);let r=!_.isDefined(this.activeCell)||!_.isDefined(this.activeRow);if(this._options.enableCellNavigation&&_.isDefined(this.activeRow)){let i=0,s=null,o=this.activePosX;for(;i<=this.activePosX;)this.canCellBeActive(e,i)&&(s=i,(!_.isDefined(this.activeCell)||i===this.activeCell)&&(r=!0)),i+=this.getColspan(e,i);s!==null?(this.setActiveCellInternal(this.getCellNode(e,s)),this.activePosX=o):this.resetActiveCell()}return r}getColspan(e,t){let r=this.getItemMetadaWhenExists(e);if(!r||!r.columns)return 1;t>=this.columns.length&&(t=this.columns.length-1);let i=(r.columns[this.columns[t].id]||r.columns[t])?.colspan;return i==="*"?i=this.columns.length-t:i=i||1,i}queuePostProcessedRowForCleanup(e,t,r){this.postProcessgroupId++,typeof t=="object"&&Object.keys(t).forEach(i=>{t.hasOwnProperty(i)&&this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e.cellNodesByColumnIdx[+i],columnIdx:+i,rowIdx:r})}),e.rowNode||(e.rowNode=[]),this.postProcessedCleanupQueue.push({actionType:"R",groupId:this.postProcessgroupId,node:e.rowNode}),e.rowNode?.forEach(i=>i.remove())}queuePostProcessedCellForCleanup(e,t,r){this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e,columnIdx:t,rowIdx:r}),e.remove()}applyFormatResultToCellNode(e,t,r){if(e==null&&(e=""),Object.prototype.toString.call(e)!=="[object Object]"){this.applyHtmlCode(t,e);return}let i=e.html||e.text;this.applyHtmlCode(t,i),e.removeClasses&&!r&&t.classList.remove(..._.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(..._.classNameToList(e.addClasses)),e.toolTip&&t.setAttribute("title",e.toolTip)}startPostProcessing(){this._options.enableAsyncPostRender&&(window.clearTimeout(this.h_postrender),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay))}startPostProcessingCleanup(){this._options.enableAsyncPostRenderCleanup&&(window.clearTimeout(this.h_postrenderCleanup),this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay))}invalidatePostProcessingResults(e){typeof this.postProcessedRows[e]=="object"&&Object.keys(this.postProcessedRows[e]).forEach(t=>{this.postProcessedRows[e].hasOwnProperty(t)&&(this.postProcessedRows[e][t]="C")}),this.postProcessFromRow=Math.min(this.postProcessFromRow,e),this.postProcessToRow=Math.max(this.postProcessToRow,e),this.startPostProcessing()}asyncPostProcessRows(){let e=this.getDataLength();for(;this.postProcessFromRow<=this.postProcessToRow;){let t=this.vScrollDir>=0?this.postProcessFromRow++:this.postProcessToRow--,r=this.rowsCache[t];if(!(!r||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(r.cellNodesByColumnIdx).forEach(i=>{if(r.cellNodesByColumnIdx.hasOwnProperty(i)){let s=+i,o=this.columns[s],l=this.postProcessedRows[t][s];if(o.asyncPostRender&&l!=="R"){let h=r.cellNodesByColumnIdx[s];h&&o.asyncPostRender(h,t,this.getDataItem(t),o,l==="C"),this.postProcessedRows[t][s]="R"}}}),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay);return}}}asyncPostProcessCleanupRows(){if(this.postProcessedCleanupQueue.length>0){let e=this.postProcessedCleanupQueue[0].groupId;for(;this.postProcessedCleanupQueue.length>0&&this.postProcessedCleanupQueue[0].groupId===e;){let t=this.postProcessedCleanupQueue.shift();if(t?.actionType==="R"&&t.node.forEach(r=>{r.remove()}),t?.actionType==="C"){let r=this.columns[t.columnIdx];r.asyncPostRenderCleanup&&t.node&&r.asyncPostRenderCleanup(t.node,t.rowIdx,r)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let r,i,s;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(o=>{this.rowsCache&&(s=t?.[o],i=e?.[o],s&&Object.keys(s).forEach(l=>{(!i||s[l]!==i[l])&&(r=this.getCellNode(+o,this.getColumnIndex(l)),r&&r.classList.remove(s[l]))}),i&&Object.keys(i).forEach(l=>{(!s||s[l]!==i[l])&&(r=this.getCellNode(+o,this.getColumnIndex(l)),r&&r.classList.add(i[l]))}))})}addCellCssStyles(e,t){if(this.cellCssClasses[e])throw new Error(`SlickGrid addCellCssStyles: cell CSS hash with key "${e}" already exists.`);this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,null),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}removeCellCssStyles(e){this.cellCssClasses[e]&&(this.updateCellCssStylesOnRenderedRows(null,this.cellCssClasses[e]),delete this.cellCssClasses[e],this.trigger(this.onCellCssStylesChanged,{key:e,hash:null,grid:this}))}setCellCssStyles(e,t){let r=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,r),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,r=250){let i=(s,o)=>{o<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{o%2===0?s.classList.add(this._options.cellFlashingCssClass||""):s.classList.remove(this._options.cellFlashingCssClass||""),i(s,o-1)},r))};if(this.rowsCache[e]){let s=this.getCellNode(e,t);s&&i(s,5)}}highlightRow(e,t){let r=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(r?.rowNode)&&this._options.rowHighlightCssClass&&(r.rowNode.forEach(i=>i.classList.add(..._.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{r.rowNode?.forEach(i=>i.classList.remove(..._.classNameToList(this._options.rowHighlightCssClass)))},t))}_getContainerElement(e,t,r){if(!e)return;t||(t=0),r||(r=0);let i=typeof t=="number"?t:this.getColumnIndex(t),s=this.hasFrozenRows&&r>=this.actualFrozenRow+(this._options.frozenBottom?0:1),o=this.hasFrozenColumns()&&i>this._options.frozenColumn;return e[(s?2:0)+(o?1:0)]}measureScrollbar(){let e="";this._viewport.forEach(s=>e+=s.className);let t=_.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),r=_.createDomElement("div",{style:{width:"200px",height:"200px",overflow:"auto"}},t),i={width:t.offsetWidth-t.clientWidth,height:t.offsetHeight-t.clientHeight};return r.remove(),t.remove(),i}getMaxSupportedCssHeight(){let e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?this._options.ffMaxSupportedCssHeight:this._options.maxSupportedCssHeight,r=_.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let i=e*2;_.height(r,i);let s=_.height(r);if(i>t||s!==i)break;e=i}return r.remove(),e}getUID(){return this.uid}getHeaderColumnWidthDiff(){return this.headerColumnWidthDiff}getScrollbarDimensions(){return this.scrollbarDimensions}getDisplayedScrollbarDimensions(){return{width:this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0,height:this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0}}getAbsoluteColumnMinWidth(){return this.absoluteColumnMinWidth}getVBoxDelta(e){let t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=getComputedStyle(e),i=0;return t.forEach(s=>i+=_.toFloat(r[s])),i}measureCellPaddingAndBorder(){let e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=this._headers[0];this.headerColumnWidthDiff=this.headerColumnHeightDiff=0,this.cellWidthDiff=this.cellHeightDiff=0;let i=_.createDomElement("div",{className:"ui-state-default slick-state-default slick-header-column",style:{visibility:"hidden"},textContent:"-"},r),s=getComputedStyle(i);s.boxSizing!=="border-box"&&(e.forEach(l=>this.headerColumnWidthDiff+=_.toFloat(s[l])),t.forEach(l=>this.headerColumnHeightDiff+=_.toFloat(s[l]))),i.remove();let o=_.createDomElement("div",{className:"slick-row"},this._canvas[0]);i=_.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},o),s=getComputedStyle(i),s.boxSizing!=="border-box"&&(e.forEach(l=>this.cellWidthDiff+=_.toFloat(s[l])),t.forEach(l=>this.cellHeightDiff+=_.toFloat(s[l]))),o.remove(),this.absoluteColumnMinWidth=Math.max(this.headerColumnWidthDiff,this.cellWidthDiff)}clearAllTimers(){window.clearTimeout(this._columnResizeTimer),window.clearTimeout(this._executionBlockTimer),window.clearTimeout(this._flashCellTimer),window.clearTimeout(this._highlightRowTimer),window.clearTimeout(this.h_editorLoader)}LogColWidths(){let e="Col Widths:";for(let t=0;t<this.columns.length;t++)e+=" "+(this.columns[t].hidden?"H":this.columns[t].width);console.log(e)}simpleArrayEquals(e,t){return Array.isArray(e)&&Array.isArray(t)&&t.sort().toString()!==e.sort().toString()}defaultFormatter(e,t,r){return _.isDefined(r)?(r+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""}cellExists(e,t){return!(e<0||e>=this.getDataLength()||t<0||t>=this.columns.length)}getCellFromNode(e){let t=/l\d+/.exec(e.className);if(!t)throw new Error(`SlickGrid getCellFromNode: cannot get cell - ${e.className}`);return parseInt(t[0].substr(1,t[0].length-1),10)}getRowFromNode(e){for(let t in this.rowsCache)if(this.rowsCache){for(let r in this.rowsCache[t].rowNode)if(this.rowsCache[t].rowNode?.[+r]===e)return t?parseInt(t,10):0}return null}clearTextSelection(){if(document.selection?.empty)try{document.selection.empty()}catch{}else if(window.getSelection){let e=window.getSelection();e?.removeAllRanges&&e.removeAllRanges()}}disableSelection(e){e.forEach(t=>{t.setAttribute("unselectable","on"),t.style.mozUserSelect="none",this._bindingEventService.bind(t,"selectstart",()=>!1)})}getPubSubService(){return this._pubSubService}getCellFromPoint(e,t){let r=this.getRowFromPosition(t),i=0,s=0;for(let o=0;o<this.columns.length&&s<=e;o++)this.columns[o]&&(s+=this.columns[o].width,i++);return i-=1,r<-1&&(r=-1),{row:r,cell:i}}getPluginByName(e){for(let t=this.plugins.length-1;t>=0;t--)if(this.plugins[t]?.pluginName===e)return this.plugins[t]}getContainerNode(){return this._container}getCellHeight(e,t){let r=this._options.rowHeight||0;if(t>1){let i=e+t-1;r=this.getRowBottom(i)-this.getRowTop(e)}else{let i=this.getRowHeight();i!==r-this.cellHeightDiff&&(r=i)}return r-=this.cellHeightDiff,Math.ceil(r)}setDifference(e,t){return new Set(Array.from(e).filter(r=>!t.has(r)))}getCellNodeBox(e,t){if(!this.cellExists(e,t))return null;let r=this.getFrozenRowOffset(e),i=this.getRowTop(e)-r,s=i+this._options.rowHeight-1,o=0;for(let h=0;h<t;h++)!this.columns[h]||this.columns[h].hidden||(o+=this.columns[h].width||0,this._options.frozenColumn===h&&(o=0));let l=o+(this.columns[t]?.width||0);return{top:i,left:o,bottom:s,right:l}}absBox(e){let t={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:e.offsetWidth,height:e.offsetWidth,visible:!0};t.bottom=t.top+t.height,t.right=t.left+t.width;let r=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let i=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&i.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&i.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===r&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,r=e.offsetParent),t.bottom=t.top+t.height,t.right=t.left+t.width}return t}getActiveCellPosition(){return this.absBox(this.activeCellNode)}getGridPosition(){return this.absBox(this._container)}getCellEditor(){return this.currentEditor}getActiveCell(){return this.activeCellNode?{row:this.activeRow,cell:this.activeCell}:null}getActiveCellNode(){return this.activeCellNode}getTextSelection(){let e=null;if(window.getSelection){let t=window.getSelection();(t?.rangeCount??0)>0&&(e=t.getRangeAt(0))}return e}setTextSelection(e){if(window.getSelection&&e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}}sanitizeHtmlString(e,t){if(!this._options.sanitizer||typeof e!="string")return e;let r=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&r!==e&&(console.log(`sanitizer altered html: ${e} --> ${r}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),r}getRowspan(e,t){let r=1,i=this.getItemMetadaWhenExists(e);return i?.columns&&Object.keys(i.columns).forEach(s=>{let o=Number(s);if(o===t){let l=i.columns[o];r=Number(l?.rowspan||1)}}),r}findFocusableRow(e,t,r){let i=e,s=this._colsWithRowSpanCache[t]||new Set,o=!1;return Array.from(s).forEach(l=>{let[h,d]=l.split(":").map(Number);!o&&e>=h&&e<=d&&(i=r==="up"?h:d,this.canCellBeActive(i,t)&&(o=!0))}),i<0&&(i=0),i}findFirstFocusableCell(e){let t=0,r=e,i=-1;for(;t<this.columns.length;){let s=this.getParentRowSpanByCell(e,t);if(r=s!==null&&s.start!==e?s.start:e,this.canCellBeActive(r,t)){i=t;break}t+=this.getColspan(r,t)}return{cell:i,row:r}}findLastFocusableCell(e){let t=0,r=e,i=-1;for(;t<this.columns.length;){let s=this.getParentRowSpanByCell(e,t);r=s!==null&&s.start!==e?s.start:e,this.canCellBeActive(r,t)&&(i=t),t+=this.getColspan(r,t)}return{cell:i,row:r}}rowsToRanges(e){let t=[],r=this.columns.length-1;for(let i=0;i<e.length;i++)t.push(new DS(e[i],0,e[i],r));return t}findSpanStartingCell(e,t){let r=this.getParentRowSpanByCell(e,t),i=r!==null&&r.start!==e?r.start:e,s=0,o=0;for(;s<this.columns.length;){if(s+=this.getColspan(i,s),s>t)return s=o,{cell:s,row:i};o=s}return{cell:s,row:i}}gotoRight(e,t,r,i){if(t>=this.columns.length)return null;let s=t+1,o=r;do{let l=this.findSpanStartingCell(r,s);if(o=l.row,s=l.cell,this.canCellBeActive(o,s)&&s>t)break;s+=this.getColspan(o,l.cell)}while(s<this.columns.length);return s<this.columns.length?{row:o,cell:s,posX:s,posY:r}:null}gotoLeft(e,t,r,i){if(t<=0)return null;let s=this.findFirstFocusableCell(e);if(s.cell===null||s.cell>=t)return null;let o,l={row:e,cell:s.cell,posX:s.cell,posY:r};for(;;){if(o=this.gotoRight(l.row,l.cell,l.posY,l.posX),!o)return null;if(o.cell>=t){let h=this.findFocusableRow(r,l.cell,"up");return h!==l.row&&(l.row=h),l}l=o}}gotoDown(e,t,r,i){let s,o=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,i),s=t=0;t<=i;)s=t,t+=this.getColspan(e,t);while(e<=o&&!this.canCellBeActive(e,s));return e<=o?{row:e,cell:s,posX:i,posY:e}:null}gotoUp(e,t,r,i){let s;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,i,"up"),s=t=0;t<=i;)s=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,s));return t<=this.columns.length?{row:e,cell:s,posX:i,posY:e}:null}gotoNext(e,t,r,i){if(!_.isDefined(e)&&!_.isDefined(t)&&(e=t=r=i=0,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:r};let s=this.gotoRight(e,t,r,i);if(!s){let o;for(;!s&&++r<this.getDataLength()+(this._options.enableAddRow?1:0);)o=this.findFirstFocusableCell(r),o.cell!==null&&(e=this.getParentRowSpanByCell(r,o.cell)?.start??r,s={row:e,cell:o.cell,posX:o.cell,posY:r})}return s}gotoPrev(e,t,r,i){if(!_.isDefined(e)&&!_.isDefined(t)&&(e=r=this.getDataLengthIncludingAddNew()-1,t=i=this.columns.length-1,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:r};let s=this.gotoLeft(e,t,r,i);if(!s){let o;for(;!s&&--r>=0;)o=this.findLastFocusableCell(r),o.cell>-1&&(e=this.getParentRowSpanByCell(r,o.cell)?.start??r,s={row:e,cell:o.cell,posX:o.cell,posY:r})}return s}gotoRowStart(e,t,r,i){let s=this.findFirstFocusableCell(e);return s.cell===null?null:{row:s.row,cell:s.cell,posX:s.cell,posY:e}}gotoRowEnd(e,t,r,i){let s=this.findLastFocusableCell(e);return s.cell===-1?null:{row:s.row,cell:s.cell,posX:s.cell,posY:e}}navigateRight(){return this.navigate("right")}navigateLeft(){return this.navigate("left")}navigateDown(){return this.navigate("down")}navigateUp(){return this.navigate("up")}navigateNext(){return this.navigate("next")}navigatePrev(){return this.navigate("prev")}navigateRowStart(){return this.navigate("home")}navigateRowEnd(){return this.navigate("end")}navigateTopStart(){return this.navigateToRow(0),this.navigate("home")}navigateBottomEnd(){return this.navigateBottom(),this.navigate("end")}navigate(e){if(!this._options.enableCellNavigation||!this.activeCellNode&&e!=="prev"&&e!=="next")return!1;if(!this.getEditorLock()?.commitCurrentEdit())return!0;this.setFocus(),this.unsetActiveCell();let t={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1};this.tabbingDirection=t[e];let r={up:this.gotoUp,down:this.gotoDown,left:this.gotoLeft,right:this.gotoRight,prev:this.gotoPrev,next:this.gotoNext,home:this.gotoRowStart,end:this.gotoRowEnd}[e].call(this,this.activeRow,this.activeCell,this.activePosY,this.activePosX);return this.navigateToPos(r)}navigateToPos(e){if(e){if(this.hasFrozenRows&&this._options.frozenBottom&&e.row===this.getDataLength())return;let t=e.row===this.getDataLength();return(!this._options.frozenBottom&&e.row>=this.actualFrozenRow||this._options.frozenBottom&&e.row<this.actualFrozenRow)&&this.scrollCellIntoView(e.row,e.cell,!t&&this._options.emulatePagingWhenScrolling),this.setActiveCellInternal(this.getCellNode(e.row,e.cell)),this.activePosX=e.posX,this.activePosY=e.posY,!0}else return this.setActiveCellInternal(this.getCellNode(this.activeRow,this.activeCell)),!1}getCellNode(e,t){if(this.rowsCache[e]){this.ensureCellNodesInRowsCache(e);try{return this.rowsCache[e].cellNodesByColumnIdx.length>t?this.rowsCache[e].cellNodesByColumnIdx[t]:null}catch{return this.rowsCache[e].cellNodesByColumnIdx[t]}}return null}setActiveCell(e,t,r,i,s){this.initialized&&(e>this.getDataLength()||e<0||t>=this.columns.length||t<0||this._options.enableCellNavigation&&(this.scrollCellIntoView(e,t,!1),this.setActiveCellInternal(this.getCellNode(e,t),r,i,s)))}setActiveRow(e,t,r){this.initialized&&(e>this.getDataLength()||e<0||(t??0)>=this.columns.length||(t??0)<0||(this.activeRow=e,r||this.scrollCellIntoView(e,t||0,!1)))}canCellBeActive(e,t){if(!this._options.enableCellNavigation||e>=this.getDataLengthIncludingAddNew()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden||(this.getParentRowSpanByCell(e,t)?.start??e)!==e)return!1;let r=this.getItemMetadaWhenExists(e);if(r?.focusable!==void 0)return!!r.focusable;let i=r?.columns;return i?.[this.columns[t].id]?.focusable!==void 0?!!i[this.columns[t].id].focusable:i?.[t]?.focusable!==void 0?!!i[t].focusable:!!this.columns[t].focusable}canCellBeSelected(e,t){if(e>=this.getDataLength()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden)return!1;let r=this.getItemMetadaWhenExists(e);if(r?.selectable!==void 0)return!!r.selectable;let i=r?.columns&&(r.columns[this.columns[t].id]||r.columns[t]);return i?.selectable!==void 0?!!i.selectable:!!this.columns[t].selectable}gotoCell(e,t,r,i){if(!this.initialized||!this.canCellBeActive(e,t)||!this.getEditorLock()?.commitCurrentEdit())return;this.scrollCellIntoView(e,t,!1);let s=this.getCellNode(e,t),o=this.columns[t],l=!!(this._options.editable&&o?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(s,r||e===this.getDataLength()||this._options.autoEdit,null,l,i),this.currentEditor||this.setFocus()}};/**
|
|
234
|
+
var ay;function _e(){return ay.apply(null,arguments)}function kD(e){ay=e}function io(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 dt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Tu(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(dt(e,t))return!1;return!0}function xn(e){return e===void 0}function Ko(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function la(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ly(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)dt(t,n)&&(e[n]=t[n]);return dt(t,"toString")&&(e.toString=t.toString),dt(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ko(e,t,n,o){return Oy(e,t,n,o,!0).utc()}function PD(){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 He(e){return e._pf==null&&(e._pf=PD()),e._pf}var Id;Array.prototype.some?Id=Array.prototype.some:Id=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 ku(e){var t=null,n=!1,o=e._d&&!isNaN(e._d.getTime());if(o&&(t=He(e),n=Id.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 Ql(e){var t=ko(NaN);return e!=null?ir(He(t),e):He(t).userInvalidated=!0,t}var Mp=_e.momentProperties=[],ed=!1;function Pu(e,t){var n,o,r,i=Mp.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=He(t)),xn(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)o=Mp[n],r=t[o],xn(r)||(e[o]=r);return e}function ca(e){Pu(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ed===!1&&(ed=!0,_e.updateOffset(this),ed=!1)}function ao(e){return e instanceof ca||e!=null&&e._isAMomentObject!=null}function cy(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+=`
|
|
235
|
+
[`+i+"] ";for(a in arguments[0])dt(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];o.push(r)}cy(e+`
|
|
236
|
+
Arguments: `+Array.prototype.slice.call(o).join("")+`
|
|
237
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Ip={};function dy(e,t){_e.deprecationHandler!=null&&_e.deprecationHandler(e,t),Ip[e]||(cy(t),Ip[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 DD(e){var t,n;for(n in e)dt(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 Nd(e,t){var n=ir({},e),o;for(o in t)dt(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)dt(e,o)&&!dt(t,o)&&Ir(e[o])&&(n[o]=ir({},n[o]));return n}function Du(e){e!=null&&this.set(e)}var Ad;Object.keys?Ad=Object.keys:Ad=function(e){var t,n=[];for(t in e)dt(e,t)&&n.push(t);return n};var OD={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function MD(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return Po(o)?o.call(t,n):o}function Eo(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 Ou=/(\[[^\[]*\])|(\\)?([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,ja=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,td={},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 Eo(r.apply(this,arguments),t[1],t[2])}),n&&(ys[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function ID(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ND(e){var t=e.match(Ou),n,o;for(n=0,o=t.length;n<o;n++)ys[t[n]]?t[n]=ys[t[n]]:t[n]=ID(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 tl(e,t){return e.isValid()?(t=uy(t,e.localeData()),td[t]=td[t]||ND(t),td[t](e)):e.localeData().invalidDate()}function uy(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(ja.lastIndex=0;n>=0&&ja.test(e);)e=e.replace(ja,o),ja.lastIndex=0,n-=1;return e}var AD={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 FD(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Ou).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var LD="Invalid date";function $D(){return this._invalidDate}var VD="%d",jD=/\d{1,2}/;function WD(e){return this._ordinal.replace("%d",e)}var BD={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 HD(e,t,n,o){var r=this._relativeTime[n];return Po(r)?r(e,t,n,o):r.replace(/%d/i,e)}function zD(e,t){var n=this._relativeTime[e>0?"future":"past"];return Po(n)?n(t):n.replace(/%s/i,t)}var Np={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"?Np[e]||Np[e.toLowerCase()]:void 0}function Mu(e){var t={},n,o;for(o in e)dt(e,o)&&(n=eo(o),n&&(t[n]=e[o]));return t}var YD={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 UD(e){var t=[],n;for(n in e)dt(e,n)&&t.push({unit:n,priority:YD[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var hy=/\d/,$n=/\d\d/,fy=/\d{3}/,Iu=/\d{4}/,Jl=/[+-]?\d{6}/,It=/\d\d?/,py=/\d\d\d\d?/,my=/\d\d\d\d\d\d?/,ec=/\d{1,3}/,Nu=/\d{1,4}/,tc=/[+-]?\d{1,6}/,Ls=/\d+/,nc=/[+-]?\d+/,qD=/Z|[+-]\d\d:?\d\d/gi,oc=/Z|[+-]\d\d(?::?\d\d)?/gi,GD=/[+-]?\d+(\.\d{1,3})?/,da=/[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,$s=/^[1-9]\d?/,Au=/^([1-9]\d|\d)/,yl;yl={};function ke(e,t,n){yl[e]=Po(t)?t:function(o,r){return o&&n?n:t}}function KD(e,t){return dt(yl,e)?yl[e](t._strict,t._locale):new RegExp(XD(e))}function XD(e){return Ho(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,i){return n||o||r||i}))}function Ho(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 Fd={};function Tt(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),Ko(t)&&(o=function(i,a){a[t]=Qe(i)}),r=e.length,n=0;n<r;n++)Fd[e[n]]=o}function ua(e,t){Tt(e,function(n,o,r,i){r._w=r._w||{},t(n,r._w,r,i)})}function ZD(e,t,n){t!=null&&dt(Fd,e)&&Fd[e](t,n._a,n,e)}function rc(e){return e%4===0&&e%100!==0||e%400===0}var yn=0,jo=1,wo=2,tn=3,so=4,Wo=5,Dr=6,QD=7,JD=8;Le("Y",0,0,function(){var e=this.year();return e<=9999?Eo(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");ke("Y",nc);ke("YY",It,$n);ke("YYYY",Nu,Iu);ke("YYYYY",tc,Jl);ke("YYYYYY",tc,Jl);Tt(["YYYYY","YYYYYY"],yn);Tt("YYYY",function(e,t){t[yn]=e.length===2?_e.parseTwoDigitYear(e):Qe(e)});Tt("YY",function(e,t){t[yn]=_e.parseTwoDigitYear(e)});Tt("Y",function(e,t){t[yn]=parseInt(e,10)});function _i(e){return rc(e)?366:365}_e.parseTwoDigitYear=function(e){return Qe(e)+(Qe(e)>68?1900:2e3)};var gy=Vs("FullYear",!0);function e1(){return rc(this.year())}function Vs(e,t){return function(n){return n!=null?(yy(this,e,n),_e.updateOffset(this,t),this):Wi(this,e)}}function Wi(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 yy(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&&!rc(i)?28:l,r?o.setUTCFullYear(i,a,l):o.setFullYear(i,a,l)}}function t1(e){return e=eo(e),Po(this[e])?this[e]():this}function n1(e,t){if(typeof e=="object"){e=Mu(e);var n=UD(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 o1(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 Fu(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=o1(t,12);return e+=(t-n)/12,n===1?rc(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)});ke("M",It,$s);ke("MM",It,$n);ke("MMM",function(e,t){return t.monthsShortRegex(e)});ke("MMMM",function(e,t){return t.monthsRegex(e)});Tt(["M","MM"],function(e,t){t[jo]=Qe(e)-1});Tt(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);r!=null?t[jo]=r:He(n).invalidMonth=e});var r1="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),by=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,s1=da,i1=da;function a1(e,t){return e?io(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||by).test(t)?"format":"standalone"][e.month()]:io(this._months)?this._months:this._months.standalone}function l1(e,t){return e?io(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[by.test(t)?"format":"standalone"][e.month()]:io(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function c1(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=ko([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 d1(e,t,n){var o,r,i;if(this._monthsParseExact)return c1.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=ko([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 wy(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),!Ko(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,Fu(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function Cy(e){return e!=null?(wy(this,e),_e.updateOffset(this,!0),this):Wi(this,"Month")}function u1(){return Fu(this.year(),this.month())}function h1(e){return this._monthsParseExact?(dt(this,"_monthsRegex")||Sy.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(dt(this,"_monthsShortRegex")||(this._monthsShortRegex=s1),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function f1(e){return this._monthsParseExact?(dt(this,"_monthsRegex")||Sy.call(this),e?this._monthsStrictRegex:this._monthsRegex):(dt(this,"_monthsRegex")||(this._monthsRegex=i1),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Sy(){function e(d,u){return u.length-d.length}var t=[],n=[],o=[],r,i,a,l;for(r=0;r<12;r++)i=ko([2e3,r]),a=Ho(this.monthsShort(i,"")),l=Ho(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 p1(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 Bi(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 vl(e,t,n){var o=7+t-n,r=(7+Bi(e,0,o).getUTCDay()-t)%7;return-r+o-1}function _y(e,t,n,o,r){var i=(7+n-o)%7,a=vl(e,o,r),l=1+7*(t-1)+i+a,d,u;return l<=0?(d=e-1,u=_i(d)+l):l>_i(e)?(d=e+1,u=l-_i(e)):(d=e,u=l),{year:d,dayOfYear:u}}function Hi(e,t,n){var o=vl(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+zo(a,t,n)):r>zo(e.year(),t,n)?(i=r-zo(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function zo(e,t,n){var o=vl(e,t,n),r=vl(e+1,t,n);return(_i(e)-o+r)/7}Le("w",["ww",2],"wo","week");Le("W",["WW",2],"Wo","isoWeek");ke("w",It,$s);ke("ww",It,$n);ke("W",It,$s);ke("WW",It,$n);ua(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=Qe(e)});function m1(e){return Hi(e,this._week.dow,this._week.doy).week}var g1={dow:0,doy:6};function y1(){return this._week.dow}function v1(){return this._week.doy}function b1(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function w1(e){var t=Hi(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");ke("d",It);ke("e",It);ke("E",It);ke("dd",function(e,t){return t.weekdaysMinRegex(e)});ke("ddd",function(e,t){return t.weekdaysShortRegex(e)});ke("dddd",function(e,t){return t.weekdaysRegex(e)});ua(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);r!=null?t.d=r:He(n).invalidWeekday=e});ua(["d","e","E"],function(e,t,n,o){t[o]=Qe(e)});function C1(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function S1(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Lu(e,t){return e.slice(t,7).concat(e.slice(0,t))}var _1="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),x1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),R1=da,E1=da,T1=da;function k1(e,t){var n=io(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Lu(n,this._week.dow):e?n[e.day()]:n}function P1(e){return e===!0?Lu(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function D1(e){return e===!0?Lu(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function O1(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=ko([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 M1(e,t,n){var o,r,i;if(this._weekdaysParseExact)return O1.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=ko([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 I1(e){if(!this.isValid())return e!=null?this:NaN;var t=Wi(this,"Day");return e!=null?(e=C1(e,this.localeData()),this.add(e-t,"d")):t}function N1(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 A1(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=S1(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function F1(e){return this._weekdaysParseExact?(dt(this,"_weekdaysRegex")||$u.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(dt(this,"_weekdaysRegex")||(this._weekdaysRegex=R1),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function L1(e){return this._weekdaysParseExact?(dt(this,"_weekdaysRegex")||$u.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(dt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=E1),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $1(e){return this._weekdaysParseExact?(dt(this,"_weekdaysRegex")||$u.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(dt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=T1),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $u(){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=ko([2e3,1]).day(i),l=Ho(this.weekdaysMin(a,"")),d=Ho(this.weekdaysShort(a,"")),u=Ho(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 Vu(){return this.hours()%12||12}function V1(){return this.hours()||24}Le("H",["HH",2],0,"hour");Le("h",["hh",2],0,Vu);Le("k",["kk",2],0,V1);Le("hmm",0,0,function(){return""+Vu.apply(this)+Eo(this.minutes(),2)});Le("hmmss",0,0,function(){return""+Vu.apply(this)+Eo(this.minutes(),2)+Eo(this.seconds(),2)});Le("Hmm",0,0,function(){return""+this.hours()+Eo(this.minutes(),2)});Le("Hmmss",0,0,function(){return""+this.hours()+Eo(this.minutes(),2)+Eo(this.seconds(),2)});function Ry(e,t){Le(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Ry("a",!0);Ry("A",!1);function Ey(e,t){return t._meridiemParse}ke("a",Ey);ke("A",Ey);ke("H",It,Au);ke("h",It,$s);ke("k",It,$s);ke("HH",It,$n);ke("hh",It,$n);ke("kk",It,$n);ke("hmm",py);ke("hmmss",my);ke("Hmm",py);ke("Hmmss",my);Tt(["H","HH"],tn);Tt(["k","kk"],function(e,t,n){var o=Qe(e);t[tn]=o===24?0:o});Tt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Tt(["h","hh"],function(e,t,n){t[tn]=Qe(e),He(n).bigHour=!0});Tt("hmm",function(e,t,n){var o=e.length-2;t[tn]=Qe(e.substr(0,o)),t[so]=Qe(e.substr(o)),He(n).bigHour=!0});Tt("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[tn]=Qe(e.substr(0,o)),t[so]=Qe(e.substr(o,2)),t[Wo]=Qe(e.substr(r)),He(n).bigHour=!0});Tt("Hmm",function(e,t,n){var o=e.length-2;t[tn]=Qe(e.substr(0,o)),t[so]=Qe(e.substr(o))});Tt("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[tn]=Qe(e.substr(0,o)),t[so]=Qe(e.substr(o,2)),t[Wo]=Qe(e.substr(r))});function j1(e){return(e+"").toLowerCase().charAt(0)==="p"}var W1=/[ap]\.?m?\.?/i,B1=Vs("Hours",!0);function H1(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Ty={calendar:OD,longDateFormat:AD,invalidDate:LD,ordinal:VD,dayOfMonthOrdinalParse:jD,relativeTime:BD,months:r1,monthsShort:vy,week:g1,weekdays:_1,weekdaysMin:x1,weekdaysShort:xy,meridiemParse:W1},$t={},ti={},zi;function z1(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 Ap(e){return e&&e.toLowerCase().replace("_","-")}function Y1(e){for(var t=0,n,o,r,i;t<e.length;){for(i=Ap(e[t]).split("-"),n=i.length,o=Ap(e[t+1]),o=o?o.split("-"):null;n>0;){if(r=sc(i.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&z1(i,o)>=n-1)break;n--}t++}return zi}function U1(e){return!!(e&&e.match("^[^/\\\\]*$"))}function sc(e){var t=null,n;if($t[e]===void 0&&typeof module<"u"&&module&&module.exports&&U1(e))try{t=zi._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=Zo(e):n=ju(e,t),n?zi=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),zi._abbr}function ju(e,t){if(t!==null){var n,o=Ty;if(t.abbr=e,$t[e]!=null)dy("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=sc(t.parentLocale),n!=null)o=n._config;else return ti[t.parentLocale]||(ti[t.parentLocale]=[]),ti[t.parentLocale].push({name:e,config:t}),null;return $t[e]=new Du(Nd(o,t)),ti[e]&&ti[e].forEach(function(r){ju(r.name,r.config)}),lr(e),$t[e]}else return delete $t[e],null}function q1(e,t){if(t!=null){var n,o,r=Ty;$t[e]!=null&&$t[e].parentLocale!=null?$t[e].set(Nd($t[e]._config,t)):(o=sc(e),o!=null&&(r=o._config),t=Nd(r,t),o==null&&(t.abbr=e),n=new Du(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 Zo(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return zi;if(!io(e)){if(t=sc(e),t)return t;e=[e]}return Y1(e)}function G1(){return Ad($t)}function Wu(e){var t,n=e._a;return n&&He(e).overflow===-2&&(t=n[jo]<0||n[jo]>11?jo:n[wo]<1||n[wo]>Fu(n[yn],n[jo])?wo:n[tn]<0||n[tn]>24||n[tn]===24&&(n[so]!==0||n[Wo]!==0||n[Dr]!==0)?tn:n[so]<0||n[so]>59?so:n[Wo]<0||n[Wo]>59?Wo:n[Dr]<0||n[Dr]>999?Dr:-1,He(e)._overflowDayOfYear&&(t<yn||t>wo)&&(t=wo),He(e)._overflowWeeks&&t===-1&&(t=QD),He(e)._overflowWeekday&&t===-1&&(t=JD),He(e).overflow=t),e}var K1=/^\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)?)?$/,X1=/^\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)?)?$/,Z1=/Z|[+-]\d\d(?::?\d\d)?/,Wa=[["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]],nd=[["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/]],Q1=/^\/?Date\((-?\d+)/i,J1=/^(?:(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 ky(e){var t,n,o=e._i,r=K1.exec(o)||X1.exec(o),i,a,l,d,u=Wa.length,f=nd.length;if(r){for(He(e).iso=!0,t=0,n=u;t<n;t++)if(Wa[t][1].exec(r[1])){a=Wa[t][0],i=Wa[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,n=f;t<n;t++)if(nd[t][1].exec(r[3])){l=(r[2]||" ")+nd[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(r[4])if(Z1.exec(r[4]))d="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(d||""),Hu(e)}else e._isValid=!1}function tO(e,t,n,o,r,i){var a=[nO(e),vy.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function nO(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 rO(e,t,n){if(e){var o=xy.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(o!==r)return He(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function sO(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 Py(e){var t=J1.exec(oO(e._i)),n;if(t){if(n=tO(t[4],t[3],t[2],t[5],t[6],t[7]),!rO(t[1],n,e))return;e._a=n,e._tzm=sO(t[8],t[9],t[10]),e._d=Bi.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),He(e).rfc2822=!0}else e._isValid=!1}function iO(e){var t=Q1.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ky(e),e._isValid===!1)delete e._isValid;else return;if(Py(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 ls(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 Bu(e){var t,n,o=[],r,i,a;if(!e._d){for(r=aO(e),e._w&&e._a[wo]==null&&e._a[jo]==null&&lO(e),e._dayOfYear!=null&&(a=ls(e._a[yn],r[yn]),(e._dayOfYear>_i(a)||e._dayOfYear===0)&&(He(e)._overflowDayOfYear=!0),n=Bi(a,0,e._dayOfYear),e._a[jo]=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[so]===0&&e._a[Wo]===0&&e._a[Dr]===0&&(e._nextDay=!0,e._a[tn]=0),e._d=(e._useUTC?Bi:p1).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&&(He(e).weekdayMismatch=!0)}}function lO(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=ls(t.GG,e._a[yn],Hi(Ot(),1,4).year),o=ls(t.W,1),r=ls(t.E,1),(r<1||r>7)&&(d=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Hi(Ot(),i,a),n=ls(t.gg,e._a[yn],u.year),o=ls(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>zo(n,i,a)?He(e)._overflowWeeks=!0:d!=null?He(e)._overflowWeekday=!0:(l=_y(n,o,r,i,a),e._a[yn]=l.year,e._dayOfYear=l.dayOfYear)}_e.ISO_8601=function(){};_e.RFC_2822=function(){};function Hu(e){if(e._f===_e.ISO_8601){ky(e);return}if(e._f===_e.RFC_2822){Py(e);return}e._a=[],He(e).empty=!0;var t=""+e._i,n,o,r,i,a,l=t.length,d=0,u,f;for(r=uy(e._f,e._locale).match(Ou)||[],f=r.length,n=0;n<f;n++)i=r[n],o=(t.match(KD(i,e))||[])[0],o&&(a=t.substr(0,t.indexOf(o)),a.length>0&&He(e).unusedInput.push(a),t=t.slice(t.indexOf(o)+o.length),d+=o.length),ys[i]?(o?He(e).empty=!1:He(e).unusedTokens.push(i),ZD(i,o,e)):e._strict&&!o&&He(e).unusedTokens.push(i);He(e).charsLeftOver=l-d,t.length>0&&He(e).unusedInput.push(t),e._a[tn]<=12&&He(e).bigHour===!0&&e._a[tn]>0&&(He(e).bigHour=void 0),He(e).parsedDateParts=e._a.slice(0),He(e).meridiem=e._meridiem,e._a[tn]=cO(e._locale,e._a[tn],e._meridiem),u=He(e).era,u!==null&&(e._a[yn]=e._locale.erasConvertYear(u,e._a[yn])),Bu(e),Wu(e)}function cO(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 dO(e){var t,n,o,r,i,a,l=!1,d=e._f.length;if(d===0){He(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<d;r++)i=0,a=!1,t=Pu({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],Hu(t),ku(t)&&(a=!0),i+=He(t).charsLeftOver,i+=He(t).unusedTokens.length*10,He(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 uO(e){if(!e._d){var t=Mu(e._i),n=t.day===void 0?t.date:t.day;e._a=ly([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),Bu(e)}}function hO(e){var t=new ca(Wu(Dy(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Dy(e){var t=e._i,n=e._f;return e._locale=e._locale||Zo(e._l),t===null||n===void 0&&t===""?Ql({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ao(t)?new ca(Wu(t)):(la(t)?e._d=t:io(n)?dO(e):n?Hu(e):fO(e),ku(e)||(e._d=null),e))}function fO(e){var t=e._i;xn(t)?e._d=new Date(_e.now()):la(t)?e._d=new Date(t.valueOf()):typeof t=="string"?iO(e):io(t)?(e._a=ly(t.slice(0),function(n){return parseInt(n,10)}),Bu(e)):Ir(t)?uO(e):Ko(t)?e._d=new Date(t):_e.createFromInputFallback(e)}function Oy(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)&&Tu(e)||io(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,hO(i)}function Ot(e,t,n,o){return Oy(e,t,n,o,!1)}var pO=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:Ql()}),mO=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:Ql()});function My(e,t){var n,o;if(t.length===1&&io(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 gO(){var e=[].slice.call(arguments,0);return My("isBefore",e)}function yO(){var e=[].slice.call(arguments,0);return My("isAfter",e)}var vO=function(){return Date.now?Date.now():+new Date},ni=["year","quarter","month","week","day","hour","minute","second","millisecond"];function bO(e){var t,n=!1,o,r=ni.length;for(t in e)if(dt(e,t)&&!(qt.call(ni,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[ni[o]]){if(n)return!1;parseFloat(e[ni[o]])!==Qe(e[ni[o]])&&(n=!0)}return!0}function wO(){return this._isValid}function CO(){return co(NaN)}function ic(e){var t=Mu(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=bO(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=Zo(),this._bubble()}function nl(e){return e instanceof ic}function Ld(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function SO(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 Iy(e,t){Le(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+Eo(~~(n/60),2)+t+Eo(~~n%60,2)})}Iy("Z",":");Iy("ZZ","");ke("Z",oc);ke("ZZ",oc);Tt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=zu(oc,e)});var _O=/([\+\-]|\d\d)/gi;function zu(e,t){var n=(t||"").match(e),o,r,i;return n===null?null:(o=n[n.length-1]||[],r=(o+"").match(_O)||["-",0,0],i=+(r[1]*60)+Qe(r[2]),i===0?0:r[0]==="+"?i:-i)}function Yu(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(ao(e)||la(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),_e.updateOffset(n,!1),n):Ot(e).local()}function $d(e){return-Math.round(e._d.getTimezoneOffset())}_e.updateOffset=function(){};function xO(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=zu(oc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=$d(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Fy(this,co(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_e.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:$d(this)}function RO(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function EO(e){return this.utcOffset(0,e)}function TO(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract($d(this),"m")),this}function kO(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=zu(qD,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function PO(e){return this.isValid()?(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function DO(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function OO(){if(!xn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Pu(e,this),e=Dy(e),e._a?(t=e._isUTC?ko(e._a):Ot(e._a),this._isDSTShifted=this.isValid()&&SO(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function MO(){return this.isValid()?!this._isUTC:!1}function IO(){return this.isValid()?this._isUTC:!1}function Ny(){return this.isValid()?this._isUTC&&this._offset===0:!1}var NO=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,AO=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function co(e,t){var n=e,o=null,r,i,a;return nl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ko(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=NO.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:Qe(o[wo])*r,h:Qe(o[tn])*r,m:Qe(o[so])*r,s:Qe(o[Wo])*r,ms:Qe(Ld(o[Dr]*1e3))*r}):(o=AO.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=FO(Ot(n.from),Ot(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new ic(n),nl(e)&&dt(e,"_locale")&&(i._locale=e._locale),nl(e)&&dt(e,"_isValid")&&(i._isValid=e._isValid),i}co.fn=ic.prototype;co.invalid=CO;function Cr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Fp(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function FO(e,t){var n;return e.isValid()&&t.isValid()?(t=Yu(t,e),e.isBefore(t)?n=Fp(e,t):(n=Fp(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ay(e,t){return function(n,o){var r,i;return o!==null&&!isNaN(+o)&&(dy(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=co(n,o),Fy(this,r,e),this}}function Fy(e,t,n,o){var r=t._milliseconds,i=Ld(t._days),a=Ld(t._months);e.isValid()&&(o=o??!0,a&&wy(e,Wi(e,"Month")+a*n),i&&yy(e,"Date",Wi(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&_e.updateOffset(e,i||a))}var LO=Ay(1,"add"),$O=Ay(-1,"subtract");function Ly(e){return typeof e=="string"||e instanceof String}function VO(e){return ao(e)||la(e)||Ly(e)||Ko(e)||WO(e)||jO(e)||e===null||e===void 0}function jO(e){var t=Ir(e)&&!Tu(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||dt(e,i);return t&&n}function WO(e){var t=io(e),n=!1;return t&&(n=e.filter(function(o){return!Ko(o)&&Ly(e)}).length===0),t&&n}function BO(e){var t=Ir(e)&&!Tu(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||dt(e,i);return t&&n}function HO(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 zO(e,t){arguments.length===1&&(arguments[0]?VO(arguments[0])?(e=arguments[0],t=void 0):BO(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),o=Yu(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 YO(){return new ca(this)}function UO(e,t){var n=ao(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 qO(e,t){var n=ao(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 GO(e,t,n,o){var r=ao(e)?e:Ot(e),i=ao(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 KO(e,t){var n=ao(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 XO(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ZO(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function QO(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=Yu(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,t=eo(t),t){case"year":i=ol(this,o)/12;break;case"month":i=ol(this,o);break;case"quarter":i=ol(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 ol(e,t){if(e.date()<t.date())return-ol(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 JO(){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?tl(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",tl(n,"Z")):tl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tM(){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 nM(e){e||(e=this.isUtc()?_e.defaultFormatUtc:_e.defaultFormat);var t=tl(this,e);return this.localeData().postformat(t)}function oM(e,t){return this.isValid()&&(ao(e)&&e.isValid()||Ot(e).isValid())?co({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rM(e){return this.from(Ot(),e)}function sM(e,t){return this.isValid()&&(ao(e)&&e.isValid()||Ot(e).isValid())?co({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function iM(e){return this.to(Ot(),e)}function $y(e){var t;return e===void 0?this._locale._abbr:(t=Zo(e),t!=null&&(this._locale=t),this)}var Vy=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 bl=1e3,vs=60*bl,wl=60*vs,Wy=(365*400+97)*24*wl;function bs(e,t){return(e%t+t)%t}function By(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Wy:new Date(e,t,n).valueOf()}function Hy(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Wy: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?Hy:By,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),wl);break;case"minute":t=this._d.valueOf(),t-=bs(t,vs);break;case"second":t=this._d.valueOf(),t-=bs(t,bl);break}return this._d.setTime(t),_e.updateOffset(this,!0),this}function lM(e){var t,n;if(e=eo(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Hy:By,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+=wl-bs(t+(this._isUTC?0:this.utcOffset()*vs),wl)-1;break;case"minute":t=this._d.valueOf(),t+=vs-bs(t,vs)-1;break;case"second":t=this._d.valueOf(),t+=bl-bs(t,bl)-1;break}return this._d.setTime(t),_e.updateOffset(this,!0),this}function cM(){return this._d.valueOf()-(this._offset||0)*6e4}function dM(){return Math.floor(this.valueOf()/1e3)}function uM(){return new Date(this.valueOf())}function hM(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function fM(){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 pM(){return this.isValid()?this.toISOString():null}function mM(){return ku(this)}function gM(){return ir({},He(this))}function yM(){return He(this).overflow}function vM(){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");ke("N",Uu);ke("NN",Uu);ke("NNN",Uu);ke("NNNN",PM);ke("NNNNN",DM);Tt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?He(n).era=r:He(n).invalidEra=e});ke("y",Ls);ke("yy",Ls);ke("yyy",Ls);ke("yyyy",Ls);ke("yo",OM);Tt(["y","yy","yyy","yyyy"],yn);Tt(["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 bM(e,t){var n,o,r,i=this._eras||Zo("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 wM(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 CM(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 SM(){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 _M(){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 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].abbr;return""}function RM(){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 EM(e){return dt(this,"_erasNameRegex")||qu.call(this),e?this._erasNameRegex:this._erasRegex}function TM(e){return dt(this,"_erasAbbrRegex")||qu.call(this),e?this._erasAbbrRegex:this._erasRegex}function kM(e){return dt(this,"_erasNarrowRegex")||qu.call(this),e?this._erasNarrowRegex:this._erasRegex}function Uu(e,t){return t.erasAbbrRegex(e)}function PM(e,t){return t.erasNameRegex(e)}function DM(e,t){return t.erasNarrowRegex(e)}function OM(e,t){return t._eraYearOrdinalRegex||Ls}function qu(){var e=[],t=[],n=[],o=[],r,i,a,l,d,u=this.eras();for(r=0,i=u.length;r<i;++r)a=Ho(u[r].name),l=Ho(u[r].abbr),d=Ho(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 ac(e,t){Le(0,[e,e.length],0,t)}ac("gggg","weekYear");ac("ggggg","weekYear");ac("GGGG","isoWeekYear");ac("GGGGG","isoWeekYear");ke("G",nc);ke("g",nc);ke("GG",It,$n);ke("gg",It,$n);ke("GGGG",Nu,Iu);ke("gggg",Nu,Iu);ke("GGGGG",tc,Jl);ke("ggggg",tc,Jl);ua(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=Qe(e)});ua(["gg","GG"],function(e,t,n,o){t[o]=_e.parseTwoDigitYear(e)});function MM(e){return zy.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function IM(e){return zy.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function NM(){return zo(this.year(),1,4)}function AM(){return zo(this.isoWeekYear(),1,4)}function FM(){var e=this.localeData()._week;return zo(this.year(),e.dow,e.doy)}function LM(){var e=this.localeData()._week;return zo(this.weekYear(),e.dow,e.doy)}function zy(e,t,n,o,r){var i;return e==null?Hi(this,o,r).year:(i=zo(e,o,r),t>i&&(t=i),$M.call(this,e,t,n,o,r))}function $M(e,t,n,o,r){var i=_y(e,t,n,o,r),a=Bi(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Le("Q",0,"Qo","quarter");ke("Q",hy);Tt("Q",function(e,t){t[jo]=(Qe(e)-1)*3});function VM(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Le("D",["DD",2],"Do","date");ke("D",It,$s);ke("DD",It,$n);ke("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Tt(["D","DD"],wo);Tt("Do",function(e,t){t[wo]=Qe(e.match(It)[0])});var Yy=Vs("Date",!0);Le("DDD",["DDDD",3],"DDDo","dayOfYear");ke("DDD",ec);ke("DDDD",fy);Tt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Qe(e)});function jM(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");ke("m",It,Au);ke("mm",It,$n);Tt(["m","mm"],so);var WM=Vs("Minutes",!1);Le("s",["ss",2],0,"second");ke("s",It,Au);ke("ss",It,$n);Tt(["s","ss"],Wo);var BM=Vs("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});ke("S",ec,hy);ke("SS",ec,$n);ke("SSS",ec,fy);var ar,Uy;for(ar="SSSS";ar.length<=9;ar+="S")ke(ar,Ls);function HM(e,t){t[Dr]=Qe(("0."+e)*1e3)}for(ar="S";ar.length<=9;ar+="S")Tt(ar,HM);Uy=Vs("Milliseconds",!1);Le("z",0,0,"zoneAbbr");Le("zz",0,0,"zoneName");function zM(){return this._isUTC?"UTC":""}function YM(){return this._isUTC?"Coordinated Universal Time":""}var ye=ca.prototype;ye.add=LO;ye.calendar=zO;ye.clone=YO;ye.diff=QO;ye.endOf=lM;ye.format=nM;ye.from=oM;ye.fromNow=rM;ye.to=sM;ye.toNow=iM;ye.get=t1;ye.invalidAt=yM;ye.isAfter=UO;ye.isBefore=qO;ye.isBetween=GO;ye.isSame=KO;ye.isSameOrAfter=XO;ye.isSameOrBefore=ZO;ye.isValid=mM;ye.lang=Vy;ye.locale=$y;ye.localeData=jy;ye.max=mO;ye.min=pO;ye.parsingFlags=gM;ye.set=n1;ye.startOf=aM;ye.subtract=$O;ye.toArray=hM;ye.toObject=fM;ye.toDate=uM;ye.toISOString=eM;ye.inspect=tM;typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ye.toJSON=pM;ye.toString=JO;ye.unix=dM;ye.valueOf=cM;ye.creationData=vM;ye.eraName=SM;ye.eraNarrow=_M;ye.eraAbbr=xM;ye.eraYear=RM;ye.year=gy;ye.isLeapYear=e1;ye.weekYear=MM;ye.isoWeekYear=IM;ye.quarter=ye.quarters=VM;ye.month=Cy;ye.daysInMonth=u1;ye.week=ye.weeks=b1;ye.isoWeek=ye.isoWeeks=w1;ye.weeksInYear=FM;ye.weeksInWeekYear=LM;ye.isoWeeksInYear=NM;ye.isoWeeksInISOWeekYear=AM;ye.date=Yy;ye.day=ye.days=I1;ye.weekday=N1;ye.isoWeekday=A1;ye.dayOfYear=jM;ye.hour=ye.hours=B1;ye.minute=ye.minutes=WM;ye.second=ye.seconds=BM;ye.millisecond=ye.milliseconds=Uy;ye.utcOffset=xO;ye.utc=EO;ye.local=TO;ye.parseZone=kO;ye.hasAlignedHourOffset=PO;ye.isDST=DO;ye.isLocal=MO;ye.isUtcOffset=IO;ye.isUtc=Ny;ye.isUTC=Ny;ye.zoneAbbr=zM;ye.zoneName=YM;ye.dates=Jn("dates accessor is deprecated. Use date instead.",Yy);ye.months=Jn("months accessor is deprecated. Use month instead",Cy);ye.years=Jn("years accessor is deprecated. Use year instead",gy);ye.zone=Jn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",RO);ye.isDSTShifted=Jn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",OO);function UM(e){return Ot(e*1e3)}function qM(){return Ot.apply(null,arguments).parseZone()}function qy(e){return e}var ht=Du.prototype;ht.calendar=MD;ht.longDateFormat=FD;ht.invalidDate=$D;ht.ordinal=WD;ht.preparse=qy;ht.postformat=qy;ht.relativeTime=HD;ht.pastFuture=zD;ht.set=DD;ht.eras=bM;ht.erasParse=wM;ht.erasConvertYear=CM;ht.erasAbbrRegex=TM;ht.erasNameRegex=EM;ht.erasNarrowRegex=kM;ht.months=a1;ht.monthsShort=l1;ht.monthsParse=d1;ht.monthsRegex=f1;ht.monthsShortRegex=h1;ht.week=m1;ht.firstDayOfYear=v1;ht.firstDayOfWeek=y1;ht.weekdays=k1;ht.weekdaysMin=D1;ht.weekdaysShort=P1;ht.weekdaysParse=M1;ht.weekdaysRegex=F1;ht.weekdaysShortRegex=L1;ht.weekdaysMinRegex=$1;ht.isPM=j1;ht.meridiem=H1;function Cl(e,t,n,o){var r=Zo(),i=ko().set(o,t);return r[n](i,e)}function Gy(e,t,n){if(Ko(e)&&(t=e,e=void 0),e=e||"",t!=null)return Cl(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=Cl(e,o,n,"month");return r}function Gu(e,t,n,o){typeof e=="boolean"?(Ko(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ko(t)&&(n=t,t=void 0),t=t||"");var r=Zo(),i=e?r._week.dow:0,a,l=[];if(n!=null)return Cl(t,(n+i)%7,o,"day");for(a=0;a<7;a++)l[a]=Cl(t,(a+i)%7,o,"day");return l}function GM(e,t){return Gy(e,t,"months")}function KM(e,t){return Gy(e,t,"monthsShort")}function XM(e,t,n){return Gu(e,t,n,"weekdays")}function ZM(e,t,n){return Gu(e,t,n,"weekdaysShort")}function QM(e,t,n){return Gu(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.",Zo);var Lo=Math.abs;function JM(){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 Ky(e,t,n,o){var r=co(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 Ky(this,e,t,1)}function tI(e,t){return Ky(this,e,t,-1)}function Lp(e){return e<0?Math.floor(e):Math.ceil(e)}function nI(){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+=Lp(Vd(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(Xy(t)),n+=d,t-=Lp(Vd(d)),l=Un(n/12),n%=12,o.days=t,o.months=n,o.years=l,this}function Xy(e){return e*4800/146097}function Vd(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+Xy(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Vd(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 Qo(e){return function(){return this.as(e)}}var Zy=Qo("ms"),rI=Qo("s"),sI=Qo("m"),iI=Qo("h"),aI=Qo("d"),lI=Qo("w"),cI=Qo("M"),dI=Qo("Q"),uI=Qo("y"),hI=Zy;function fI(){return co(this)}function pI(e){return e=eo(e),this.isValid()?this[e+"s"]():NaN}function Vr(e){return function(){return this.isValid()?this._data[e]:NaN}}var mI=Vr("milliseconds"),gI=Vr("seconds"),yI=Vr("minutes"),vI=Vr("hours"),bI=Vr("days"),wI=Vr("months"),CI=Vr("years");function SI(){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 _I(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function xI(e,t,n,o){var r=co(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,_I.apply(null,y)}function RI(e){return e===void 0?Vo:typeof e=="function"?(Vo=e,!0):!1}function EI(e,t){return hs[e]===void 0?!1:t===void 0?hs[e]:(hs[e]=t,e==="s"&&(hs.ss=t-1),!0)}function TI(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=xI(this,!n,o,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var od=Math.abs;function rs(e){return(e>0)-(e<0)||+e}function lc(){if(!this.isValid())return this.localeData().invalidDate();var e=od(this._milliseconds)/1e3,t=od(this._days),n=od(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 ot=ic.prototype;ot.isValid=wO;ot.abs=JM;ot.add=eI;ot.subtract=tI;ot.as=oI;ot.asMilliseconds=Zy;ot.asSeconds=rI;ot.asMinutes=sI;ot.asHours=iI;ot.asDays=aI;ot.asWeeks=lI;ot.asMonths=cI;ot.asQuarters=dI;ot.asYears=uI;ot.valueOf=hI;ot._bubble=nI;ot.clone=fI;ot.get=pI;ot.milliseconds=mI;ot.seconds=gI;ot.minutes=yI;ot.hours=vI;ot.days=bI;ot.weeks=SI;ot.months=wI;ot.years=CI;ot.humanize=TI;ot.toISOString=lc;ot.toString=lc;ot.toJSON=lc;ot.locale=$y;ot.localeData=jy;ot.toIsoString=Jn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lc);ot.lang=Vy;Le("X",0,0,"unix");Le("x",0,0,"valueOf");ke("x",nc);ke("X",GD);Tt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Tt("x",function(e,t,n){n._d=new Date(Qe(e))});//! moment.js
|
|
238
|
+
_e.version="2.30.1";kD(Ot);_e.fn=ye;_e.min=gO;_e.max=yO;_e.now=vO;_e.utc=ko;_e.unix=UM;_e.months=GM;_e.isDate=la;_e.locale=lr;_e.invalid=Ql;_e.duration=co;_e.isMoment=ao;_e.weekdays=XM;_e.parseZone=qM;_e.localeData=Zo;_e.isDuration=nl;_e.monthsShort=KM;_e.weekdaysMin=QM;_e.defineLocale=ju;_e.updateLocale=q1;_e.locales=G1;_e.weekdaysShort=ZM;_e.normalizeUnits=eo;_e.relativeTimeRounding=RI;_e.relativeTimeThreshold=EI;_e.calendarFormat=HO;_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 kI=Object.freeze(Object.defineProperty({__proto__:null,default:_e},Symbol.toStringTag,{value:"Module"})),PI=[_e.ISO_8601,Nr.ui,Nr.db],jd="Invalid date";le(xg)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});const rd={};let Qy=class{constructor(){this._args={...rd},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=rd;const t=this.grid.getData();t.setFilterArgs(rd),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 DI extends Qy{getFilterFn(){return t=>!t?.isDeleted}}class OI{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 Jy{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 MI(e){return{tooltip:"Apply column filter",command:e}}class Ku{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 II extends Ku{constructor(){super(...arguments),this.columnId="",this.group=sn.Text,this.target=null,this.x=0,this.y=0}}const wn=new II;class NI{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 NI;function ev(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 AI=Object.defineProperty,FI=(e,t,n)=>t in e?AI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>FI(e,typeof t!="symbol"?t+"":t,n),Yi=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 Yi?t:new Yi(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}},ha=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}},Xu=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})`}},tv=class{constructor(){E(this,"__nonDataRow",!0)}},nv=class extends tv{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}},LI=class extends tv{constructor(){super(),E(this,"__groupTotals",!0),E(this,"group",null),E(this,"initialized",!1)}},$I=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}},fa=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,w=p.left||0;o=y-u,n=a-(y-u),r=w-f,i=l-(w-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,l,d=t[0],u=1,f=!1,p=t.length;for(typeof d=="boolean"?(f=d,d=t[u]||{},u++):d=d||{},typeof d!="object"&&!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 to=Hn,ov=new $I,VI={Event:jr,EventHandler:ha,GlobalEditorLock:ov,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:rv,EventHandler:jI,GlobalEditorLock:WI,keyCode:cc,preClickClassName:BI,GridAutosizeColsMode:sv,ColAutosizeMode:HI,RowSelectionMode:zI,ValueFilterMode:YI,WidthEvalMode:UI}=VI,qI=to,iv=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=qI.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}},GI=to;function Zu(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,l,d,u,f,p,y;t||(t=document.body);let w={dragSource:t,dragHandle:null};function b(){t&&(t.addEventListener("mousedown",D),t.addEventListener("touchstart",D))}function m(C,M,A){if(typeof C=="function")return C(M,A)}function v(){t&&(t.removeEventListener("mousedown",D),t.removeEventListener("touchstart",D))}function k(C){let M=!1;return a&&a.forEach(A=>{C[A]&&(M=!0)}),M}function D(C){if(!k(C)){l=C.target;let M=C?.touches?.[0]??C,{target:A}=M;if(!e.allowDragFrom||e.allowDragFrom&&l.matches(e.allowDragFrom)||e.allowDragFromClosest&&l.closest(e.allowDragFromClosest)){w.dragHandle=l;let F=GI.windowScrollPosition();d=F.left+M.clientX,u=F.top+M.clientY,f=M.clientX-M.clientX,p=M.clientY-M.clientY,w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),m(n,C,w)!==!1&&(document.body.addEventListener("mousemove",x),document.body.addEventListener("touchmove",x),document.body.addEventListener("mouseup",S),document.body.addEventListener("touchend",S),document.body.addEventListener("touchcancel",S))}}}function x(C){if(!k(C)){let M=C?.touches?.[0]??C;f=M.clientX-d,p=M.clientY-u;let{target:A}=M;y||(w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),m(o,C,w),y=!0),w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),m(r,C,w)}}function S(C){if(document.body.removeEventListener("mousemove",x),document.body.removeEventListener("touchmove",x),document.body.removeEventListener("mouseup",S),document.body.removeEventListener("touchend",S),document.body.removeEventListener("touchcancel",S),y){let{target:M}=C;w=Object.assign(w,{target:M}),m(i,C,w),y=!1}}return b(),{destroy:v}}function KI(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 XI(e){let{resizeableElement:t,resizeableHandleElement:n,onResizeStart:o,onResize:r,onResizeEnd:i}=e;if(!n||typeof n.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function a(){n.addEventListener("mousedown",u),n.addEventListener("touchstart",u)}function l(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",u),n.removeEventListener("touchstart",u))}function d(y,w){if(typeof y=="function")return y(w,{resizeableElement:t,resizeableHandleElement:n})}function u(y){y.preventDefault();let w=y.touches?y.changedTouches[0]:y;d(o,w)!==!1&&(document.body.addEventListener("mousemove",f),document.body.addEventListener("mouseup",p),document.body.addEventListener("touchmove",f),document.body.addEventListener("touchend",p))}function f(y){y.preventDefault&&y.type!=="touchmove"&&y.preventDefault();let w=y.touches?y.changedTouches[0]:y;typeof r=="function"&&r(w,{resizeableElement:t,resizeableHandleElement:n})}function p(y){let w=y.touches?y.changedTouches[0]:y;d(i,w),document.body.removeEventListener("mousemove",f),document.body.removeEventListener("mouseup",p),document.body.removeEventListener("touchmove",f),document.body.removeEventListener("touchend",p)}return a(),{destroy:l}}var sd=jr,ZI=ha,id=Xu,QI=Zu,JI=iv,oi=to,eN=class{constructor(e){E(this,"pluginName","CellRangeSelector"),E(this,"onBeforeCellRangeSelected",new sd("onBeforeCellRangeSelected")),E(this,"onCellRangeSelected",new sd("onCellRangeSelected")),E(this,"onCellRangeSelecting",new sd("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 ZI),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=oi.extend(!0,{},this._defaults,e)}init(e){if(QI===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');this._decorator=this._options.cellDecorator||new JI(e,this._options),this._grid=e,oi.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=oi.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 id(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=oi.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=oi.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 id(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 id(t.range.start.row??0,t.range.start.cell??0,t.range.end.row,t.range.end.cell)}))}getCurrentRange(){return this._currentlySelectedRange}},tN=fa,nN=ha,or=to,oN=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 nN),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 tN,this._options=or.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=or.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(or.createDomElement("input",{id:e,type:"checkbox",checked:t,ariaChecked:String(t)})),n.appendChild(or.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"){or.emptyElement(n.node);let o=or.createDomElement("span",{id:"filter-checkbox-selectall-container",ariaChecked:"false"});o.appendChild(or.createDomElement("input",{type:"checkbox",id:`header-filter-selector${this._selectAll_UID}`})),o.appendChild(or.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}},rN=fa,sN=jr,iN=jI,ad=to,aN=class{constructor(e){E(this,"pluginName","HeaderButtons"),E(this,"onCommand",new sN("onCommand")),E(this,"_grid"),E(this,"_handler",new iN),E(this,"_bindingEventService",new rN),E(this,"_defaults",{buttonCssClass:"slick-header-button"}),E(this,"_options"),this._options=ad.extend(!0,{},this._defaults,e)}init(e){this._grid=e,ad.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns())}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}handleHeaderCellRendered(e,t){let n=t.column;if(n.header?.buttons){let o=n.header.buttons.length;for(;o--;){let r=n.header.buttons[o],i=this.runOverrideFunctionWhenExists(r.itemVisibilityOverride,t),a=this.runOverrideFunctionWhenExists(r.itemUsabilityOverride,t);if(!i)continue;Object.prototype.hasOwnProperty.call(r,"itemUsabilityOverride")&&(r.disabled=!a);let l=document.createElement("div");l.className=this._options.buttonCssClass||"",l.ariaLabel="Header Button",l.role="button",r.disabled&&l.classList.add("slick-header-button-disabled"),r.showOnHover&&l.classList.add("slick-header-button-hidden"),r.image&&(l.style.backgroundImage=`url(${r.image})`),r.cssClass&&l.classList.add(...ad.classNameToList(r.cssClass)),r.tooltip&&(l.title=r.tooltip),r.handler&&!r.disabled&&this._bindingEventService.bind(l,"click",r.handler),this._bindingEventService.bind(l,"click",this.handleButtonClick.bind(this,r,t.column)),t.node.appendChild(l)}}}handleBeforeHeaderCellDestroy(e,t){if(t.column.header?.buttons){let n=(this._options.buttonCssClass||"").replace(/(\s+)/g,".");n&&t.node.querySelectorAll(`.${n}`).forEach(o=>o.remove())}}handleButtonClick(e,t,n){let o=e.command||"",r={grid:this._grid,column:t,button:e};o&&(r.command=o),typeof e.action=="function"&&e.action.call(this,n,r),o&&!e.disabled&&(this.onCommand.notify(r,n,this),this._grid.updateColumnHeader(t.id)),n.preventDefault(),n.stopPropagation()}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},lN=fa,ld=rv,cN=ha,In=to,dN=class{constructor(e){E(this,"pluginName","HeaderMenu"),E(this,"onAfterMenuShow",new ld("onAfterMenuShow")),E(this,"onBeforeMenuShow",new ld("onBeforeMenuShow")),E(this,"onCommand",new ld("onCommand")),E(this,"_grid"),E(this,"_gridUid",""),E(this,"_handler",new cN),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,w=e[p],b=this.runOverrideFunctionWhenExists(w.itemVisibilityOverride,f),m=this.runOverrideFunctionWhenExists(w.itemUsabilityOverride,f);if(!b)continue;Object.prototype.hasOwnProperty.call(w,"itemUsabilityOverride")&&(w.disabled=!m);let v=document.createElement("div");v.className="slick-header-menuitem",v.role="menuitem",(w.divider||w==="divider")&&(v.classList.add("slick-header-menuitem-divider"),y=!1),w.disabled&&v.classList.add("slick-header-menuitem-disabled"),w.hidden&&v.classList.add("slick-header-menuitem-hidden"),w.cssClass&&v.classList.add(...In.classNameToList(w.cssClass)),w.tooltip&&(v.title=w.tooltip||"");let k=document.createElement("div");k.className="slick-header-menuicon",v.appendChild(k),w.iconCssClass&&k.classList.add(...In.classNameToList(w.iconCssClass)),w.iconImage&&(k.style.backgroundImage="url("+w.iconImage+")");let D=document.createElement("span");if(D.className="slick-header-menucontent",D.textContent=w.title||"",v.appendChild(D),w.textCssClass&&D.classList.add(...In.classNameToList(w.textCssClass)),u.appendChild(v),y){let x=r?"sub-menu":"parent-menu";this._bindingEventService.bind(v,"click",this.handleMenuItemClick.bind(this,w,t,n),void 0,x)}if(this._options.subMenuOpenByEvent==="mouseover"&&this._bindingEventService.bind(v,"mouseover",x=>{w.commandItems||w.items?this.repositionSubMenu(w,t,n,x):r||this.destroySubMenus()}),w.commandItems||w.items){let x=document.createElement("div");x.className="sub-item-chevron",this._options.subItemChevronClass?x.classList.add(...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 w=document.documentElement.clientWidth;(y>=a.width||y>=w?"left":"right")=="left"?(t.classList.remove("dropright"),t.classList.add("dropleft"),p-=l):(t.classList.remove("dropleft"),t.classList.add("dropright"),o&&(p+=r.offsetWidth))}else p+t.offsetWidth>=a.width&&(p=p+n.clientWidth-t.clientWidth+(this._options.autoAlignOffset||0)),p-=d?.left??0;t.style.top=`${f}px`,t.style.left=`${p}px`,this._activeHeaderColumnElm=t.closest(".slick-header-column"),this._activeHeaderColumnElm&&this._activeHeaderColumnElm.classList.add("slick-header-column-active")}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},uN=fa,$p=rv,Sr=to,hN=180,fN=300,pN=20,mN=class{constructor(e,t){E(this,"pluginName","Resizer"),E(this,"onGridAfterResize",new $p("onGridAfterResize")),E(this,"onGridBeforeResize",new $p("onGridBeforeResize")),E(this,"_bindingEventService"),E(this,"_fixedHeight"),E(this,"_fixedWidth"),E(this,"_grid"),E(this,"_gridDomElm"),E(this,"_gridContainerElm"),E(this,"_pageContainerElm"),E(this,"_gridOptions"),E(this,"_gridUid",""),E(this,"_lastDimensions"),E(this,"_resizePaused",!1),E(this,"_timer"),E(this,"_options"),E(this,"_defaults",{bottomPadding:20,applyResizeToContainer:!1,minHeight:180,minWidth:300,rightPadding:0}),this._bindingEventService=new uN,this._options=Sr.extend(!0,{},this._defaults,e),t&&(this._fixedHeight=t.height,this._fixedWidth=t.width)}setOptions(e){this._options=Sr.extend(!0,{},this._defaults,this._options,e)}init(e){this.setOptions(this._options),this._grid=e,this._gridOptions=this._grid.getOptions(),this._gridUid=this._grid.getUID(),this._gridDomElm=this._grid.getContainerNode(),this._pageContainerElm=typeof this._options.container=="string"?document.querySelector(this._options.container):this._options.container,this._options.gridContainer&&(this._gridContainerElm=this._options.gridContainer),Sr.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._gridOptions&&this.bindAutoResizeDataGrid()}bindAutoResizeDataGrid(e){let t=Sr.offset(this._gridDomElm);(this._gridDomElm!==void 0||t!==void 0)&&(this.resizeGrid(0,e,null),this._bindingEventService.bind(window,"resize",n=>{this.onGridBeforeResize.notify({grid:this._grid},n,this),this._resizePaused||(this.resizeGrid(0,e,n),this.resizeGrid(0,e,n))}))}calculateGridNewDimensions(){let e=Sr.offset(this._gridDomElm);if(!window||this._pageContainerElm===void 0||this._gridDomElm===void 0||e===void 0)return null;let t=this._options?.bottomPadding!==void 0?this._options.bottomPadding:pN,n=0,o=0;this._options.calculateAvailableSizeBy==="container"?n=Sr.innerSize(this._pageContainerElm,"height")||0:(n=window.innerHeight||0,o=e!==void 0?e.top:0);let r=n-o-t,i=Sr.innerSize(this._pageContainerElm,"width")||window.innerWidth||0,a=this._options?.maxHeight||void 0,l=this._options?.minHeight!==void 0?this._options.minHeight:hN,d=this._options?.maxWidth||void 0,u=this._options?.minWidth!==void 0?this._options.minWidth:fN,f=r,p=this._options?.rightPadding?i-this._options.rightPadding:i;return f<l&&(f=l),a&&f>a&&(f=a),p<u&&(p=u),d&&p>d&&(p=d),{height:this._fixedHeight||f,width:this._fixedWidth||p}}destroy(){this.onGridBeforeResize.unsubscribe(),this.onGridAfterResize.unsubscribe(),this._bindingEventService.unbindAll()}getLastResizeDimensions(){return this._lastDimensions}pauseResizer(e){this._resizePaused=e}resizeGrid(e,t,n){let o=e||0;if(typeof Promise=="function")return new Promise(r=>{o>0?(window.clearTimeout(this._timer),this._timer=window.setTimeout(()=>{r(this.resizeGridCallback(t,n))},o)):r(this.resizeGridCallback(t,n))});o>0?(window.clearTimeout(this._timer),this._timer=window.setTimeout(()=>{this.resizeGridCallback(t,n)},o)):this.resizeGridCallback(t,n)}resizeGridCallback(e,t){let n=this.resizeGridWithDimensions(e);return this.onGridAfterResize.notify({grid:this._grid,dimensions:n},t,this),n}resizeGridWithDimensions(e){let t=this.calculateGridNewDimensions();if((e||t)&&this._gridDomElm)try{let n=e?.height?e.height:t?.height,o=e?.width?e.width:t?.width;this._gridOptions.autoHeight||(this._gridDomElm.style.height=`${n}px`),this._gridDomElm.style.width=`${o}px`,this._gridContainerElm&&(this._gridContainerElm.style.width=`${o}px`),this._grid?.resizeCanvas&&this._grid.resizeCanvas(),this._gridOptions?.enableAutoSizeColumns&&this._grid.autosizeColumns&&this._gridUid&&document.querySelector(`.${this._gridUid}`)&&this._grid.autosizeColumns(),this._lastDimensions={height:n,width:o}}catch{this.destroy()}return this._lastDimensions}},gN=Zu,cd=cc,yN=iv,vN=eN,bN=jr,wN=Yi,CN=ha,dd=Xu,Ba=to,SN=class{constructor(e){E(this,"pluginName","RowSelectionModel"),E(this,"onSelectedRangesChanged",new bN("onSelectedRangesChanged")),E(this,"_grid"),E(this,"_ranges",[]),E(this,"_eventHandler",new CN),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=Ba.extend(!0,{},this._defaults,e)}init(e){if(gN===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,Ba.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),!this._selector&&this._options.dragToSelect){if(!yN)throw new Error("Slick.CellRangeDecorator is required when option dragToSelect set to true");this._selector=new vN({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 dd(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 wN(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&&Ba.isDefined(t.row)&&this.setSelectedRanges([new dd(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===cd.UP||e.which===cd.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===cd.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:Ba.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 dd(t.range.fromRow,0,t.range.toRow,this._grid.getColumns().length-1)])}},_N=cc,ud=nv,ri=to,av=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=ri.extend(!0,{},this._defaults,e)}get dataView(){return this._grid?.getData?.()??{}}getOptions(){return this._options}setOptions(e){ri.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(ri.createDomElement("span",{className:`${this._options.checkboxSelectCssClass} ${r.selectChecked?"checked":"unchecked"}`})),l.appendChild(ri.createDomElement("span",{className:`${this._options.toggleCssClass} ${a}`,ariaExpanded:String(!r.collapsed),style:{marginLeft:i}}));let d=ri.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 ud&&n.classList.contains(this._options.toggleCssClass||"")&&(this.handleDataViewExpandOrCollapse(o),e.stopImmediatePropagation(),e.preventDefault()),o&&o instanceof ud&&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===_N.SPACE){let t=this._grid.getActiveCell();if(t){let n=this._grid.getDataItem(t.row);n&&n instanceof ud&&(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,hd=Yi,Vp=nv,xN=LI,Wn=to,RN=av,EN=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=Wn.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&&(Wn.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),Wn.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 RN),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]=Wn.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]];Wn.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]];Wn.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(!Wn.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(Wn.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 Vp,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 Vp,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 xN;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=Wn.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=Wn.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=Wn.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 hd,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 hd,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 hd,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];Wn.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))}},Sl=cc,fd=to,Wd=class Bd{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=fd.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?Wp:Bp),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?Wp:Bp),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return fd.isDefined(t)||(t=Bd.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);Bd.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===""&&!fd.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(Wd,"DefaultDecimalPlaces"),E(Wd,"AllowEmptyValue",!1);var jp=Wd;function Wp(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===Sl.LEFT&&t>0||e.keyCode===Sl.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function Bp(e){(e.keyCode===Sl.LEFT||e.keyCode===Sl.RIGHT)&&e.stopImmediatePropagation()}var TN=fa,rr=HI,Fe=jr,si=Yi,kN=WI,_n=sv,mo=cc,PN=BI,DN=Xu,ss=zI,_r=YI,L=to,pd=UI,Hp=Zu,zp=KI,Yp=XI,ON=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:kN,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:rr.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:ss.FirstNRows,rowSelectionCount:100,valueFilterMode:_r.None,widthEvalMode:pd.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 TN),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(zp({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))}),Hp&&(this.slickDraggableInstance=Hp({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(zp({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 Yp>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,l=-1,d=0,u=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<u.length;p++)u[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),l=p);if(a!==void 0)for(let p=0;p<u.length;p++){let y=u[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=l)continue;let w=L.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(w,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(Yp({resizeableElement:y,resizeableHandleElement:w,onResizeStart:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,d=0,m.resizeableElement.classList.add("slick-header-column-active");let k=null,D=null;for(let C=0;C<u.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=u[C].offsetWidth);if(this._options.forceFitColumns)for(k=0,D=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(D!==null&&(n.maxWidth?D+=n.maxWidth-(n.previousWidth||0):D=null),k+=(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));k===null&&(k=1e5),x===null&&(x=1e5),D===null&&(D=1e5),S===null&&(S=1e5),i=o+Math.min(k,S),r=o-Math.min(x,D)},onResize:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;this.columnResizeDragging=!0;let k,D=Math.min(i,Math.max(r,v.pageX))-o,x,S=0,C=0,M=this.getViewportInnerWidth();if(D<0){for(x=D,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(k=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<k?(x+=(n.previousWidth||0)-k,n.width=k):(n.width=(n.previousWidth||0)+x,x=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-D,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-D,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0))}else{for(x=D,S=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x)x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let A=(n.previousWidth||0)+x,F=this.canvasWidthL+x;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(A>d&&F<M-this._options.frozenRightViewportMinWidth&&(d=A),n.width=F+this._options.frozenRightViewportMinWidth>M?d:A):n.width=A,x=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-D,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(k=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<k?(x+=(n.previousWidth||0)-k,n.width=k):(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:m.resizeableElement,resizeHandle:m.resizeableHandleElement})},onResizeEnd:(b,m)=>{m.resizeableElement.classList.remove("slick-header-column-active");let v=m.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:v}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let k;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(k=u[e].offsetWidth,n.previousWidth!==k&&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===rr.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===rr.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,d+=i.autoSize?.widthPx||0,u+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let w=d-u;if(e===_n.FitViewportToCols){let b=d+(this.scrollbarDimensions?.width??0);e=_n.IgnoreViewport,this._options.viewportMaxWidthPx&&b>this._options.viewportMaxWidthPx?(b=this._options.viewportMaxWidthPx,e=_n.FitColsToViewport):this._options.viewportMinWidthPx&&b<this._options.viewportMinWidthPx&&(b=this._options.viewportMinWidthPx,e=_n.FitColsToViewport),L.width(this._container,b)}if(e===_n.FitColsToViewport)if(w>0&&u<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let b=o-u;i.autoSize?.sizeToRemaining?a=b*(i.autoSize?.widthPx||0)/w:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(l=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&u+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=_n.IgnoreViewport;else{let b=u-y,m=o-y-f;for(r=0;r<this.columns.length;r++)i=this.columns[r],!(!i||i.hidden)&&(a=i.width||0,i.autoSize?.autosizeMode!==rr.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=m/b*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),b-=i.autoSize?.widthPx||0,m-=a)),this.treatAsLocked(i.autoSize)&&(a=i.autoSize?.widthPx||0,a<(i.minWidth||0)&&(a=i.minWidth||0)),i.rerenderOnResize&&i.width!==a&&(l=!0),i.width=a)}if(e===_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===rr.Locked||i.autosizeMode===rr.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===rr.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=_r.GetGreatestAndSub,i.rowSelectionMode=ss.AllRows),f==="string"&&(i.valueFilterMode=_r.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===rr.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),i.widthPx=d}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,l,d,u=0,f=0;if(i.headerWidthPx=0,i.ignoreHeaderText||(i.headerWidthPx=this.getColHeaderWidth(e)),i.headerWidthPx===0&&(i.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),i.colValueArray)return f=this.getColWidth(e,n,i.colValueArray),Math.max(i.headerWidthPx,f);let p={};p.colIndex=t,p.rowCount=this.getDataLength(),p.startIndex=0,p.endIndex=p.rowCount-1,p.valueArr=null,p.getRowVal=w=>this.getDataItem(w)[e.field];let y=(o?i.rowSelectionModeOnInit:void 0)||i.rowSelectionMode;if(y===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===_r.DeDuplicate){let w={};for(l=p.startIndex;l<=p.endIndex;l++)w[p.getRowVal(l)]=!0;if(Object.keys)p.valueArr=Object.keys(w);else{p.valueArr=[];for(let b in w)w&&p.valueArr.push(b)}p.startIndex=0,p.endIndex=p.length-1}if(i.valueFilterMode===_r.GetGreatestAndSub){let w,b=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),Math.abs(d)>b&&(w=d,b=Math.abs(d));w=""+w,w=Array(w.length+1).join("9"),w=+w,p.valueArr=[w],p.startIndex=p.endIndex=0}if(i.valueFilterMode===_r.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===_r.GetLongestText){u=0;let w=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length,w=l);d=p.getRowVal(w),p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}return p.maxLen&&p.maxLen>30&&r>1&&(i.sizeToRemaining=!0),f=this.getColWidth(e,n,p)*a,Math.max(i.headerWidthPx,f)}getColWidth(e,t,n){let o=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===pd.TextOnly;if(e.autoSize?.widthEvalMode===pd.Auto){let y=!e.formatterOverride&&!e.formatter,w=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;p=y||w}if(this.canvas_context&&p){let y=getComputedStyle(r);for(this.canvas_context.font=y.fontSize+" "+y.fontFamily,i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,a=u?this.canvas_context.measureText(u).width:0,a>l&&(l=a,d=u);return r.textContent=d,a=r.offsetWidth,o.remove(),a}for(i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,this.applyFormatResultToCellNode(u,r),a=r.offsetWidth,a>l&&(l=a);return o.remove(),l}getColHeaderWidth(e){let t=0,n=this.getUID()+e.id,o=document.getElementById(n),r=`${n}_`,i=o.cloneNode(!0);if(o)i.id=r,i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",o.parentNode.insertBefore(i,o),t=i.offsetWidth,i.parentNode.removeChild(i);else{let a=this.getHeader(e);o=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 si(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 si?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===PN,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 si?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 si&&(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 si&&(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 w=this.columns.length,b,m,v,k,D=!0;for(let x=0,S=w;x<S;x++){if(D=!0,k=this.columns[x],!k||k.hidden)continue;m=1,v=1,b=null,d?.columns&&(b=d.columns[k.id]||d.columns[x],m=b?.colspan||1,v=b?.rowspan||1,m==="*"&&(m=S-x),v>r-n&&(v=r-n)),!this._options.enableCellRowSpan&&v>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let C=m;if(!this.getParentRowSpanByCell(n,x)){if(this.columnPosRight[Math.min(S-1,x+C-1)]>o.leftPx){if(!k.alwaysRenderColumn&&this.columnPosLeft[x]>o.rightPx&&(D=!1),D){let M=this.hasFrozenColumns()&&x>this._options.frozenColumn?y:u;this.appendCellHtml(M,n,x,C,v,b,i)}}else(k.alwaysRenderColumn||this.hasFrozenColumns()&&x<=this._options.frozenColumn)&&this.appendCellHtml(u,n,x,C,v,b,i);C>1&&(x+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let l=this.columns[n],d=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(l.cssClass?` ${l.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[l.id]&&(d+=` ${this.cellCssClasses[v][t][l.id]}`)});let u=null,f="";a&&(u=this.getDataItemValueForColumn(a,l),f=this.getFormatter(t,l)(t,n,u,l,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:u,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=L.classNameToList((y?" ":"")+f.addClasses).join(" "));let w=f?.toolTip?`${f.toolTip}`:"",b=L.createDomElement("div",{className:L.classNameToList(`${d} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});b.setAttribute("aria-describedby",this.uid+l.id),w&&b.setAttribute("title",w);let m=this.getCellHeight(t,r);if(r>1&&m!==this._options.rowHeight-this.cellHeightDiff&&(b.style.height=`${m||0}px`),l.hasOwnProperty("cellAttrs")&&l.cellAttrs instanceof Object&&Object.keys(l.cellAttrs).forEach(v=>{l.cellAttrs.hasOwnProperty(v)&&b.setAttribute(v,l.cellAttrs[v])}),a){let v=Object.prototype.toString.call(f)!=="[object Object]"?f:f.html||f.text;this.applyHtmlCode(b,v)}e.appendChild(b),f.insertElementAfterTarget&&L.insertAfterElement(b,f.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(n),this.rowsCache[t].cellColSpans[n]=o}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let n=e.top,o=e.bottom;n<=o;n++){let r=this.getRowSpanIntersect(n);r!==null&&t.add(r)}Object.keys(this.rowsCache).forEach(n=>{if(this.rowsCache){let o=+n,r=!0;this.hasFrozenRows&&(this._options.frozenBottom&&o>=this.actualFrozenRow||!this._options.frozenBottom&&o<=this.actualFrozenRow)&&(r=!1),(o=parseInt(n,10))!==this.activeRow&&(o<e.top||o>e.bottom)&&r&&!t.has(o)&&this.removeRowFromCache(o)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let n=e.length,o=new Set,r=new Set,i=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let a=0;a<n;a++)if(t=e[a],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!i){o.add(t);let l=this.getRowSpanIntersect(t);l!==null&&o.add(l)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let l=this.getRowSpanColumnIntersects(a);for(let d of l){let u=this.getParentRowSpanByCell(a,d);u&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(u.range),r.add(u.range.split(":").map(Number)[0]))}}for(let a of Array.from(r))this.remapRowSpanMetadataByRow(a)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let n=this.getRowSpanIntersect(e);n!==null&&t.push(n)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(n=>n.parentElement?.removeChild(n)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let n=this.getCellNode(e,t);if(!n)return;let o=this.columns[t],r=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(r);else{let i=r?this.getFormatter(e,o)(e,t,this.getDataItemValueForColumn(r,o),o,r,this):"";this.applyFormatResultToCellNode(i,n),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let n,o=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(r=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(r))return;let i=+r,a=this.columns[i],l=t.cellNodesByColumnIdx[i];e===this.activeRow&&i===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(o):o?(n=this.getFormatter(e,a)(e,i,this.getDataItemValueForColumn(o,a),a,o,this),this.applyFormatResultToCellNode(n,l)):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 w=this.getDataItem(f);for(let b=0,m=l;b<m;b++){if(!this.columns[b]||this.columns[b].hidden)continue;if(this.columnPosLeft[b]>e.rightPx)break;if(L.isDefined(i=t.cellColSpans[b])){b+=i>1?i-1:0;continue}i=1,a=null,y&&(a=y[this.columns[b].id]||y[b],i=a?.colspan??1,i==="*"&&(i=m-b));let v=i;if(!this.getParentRowSpanByCell(f,b)){if(this.columnPosRight[Math.min(m-1,b+v-1)]>e.leftPx){let k=this.getRowspan(f,b);this.appendCellHtml(n,f,b,v,k,a,w),r++}b+=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 DN(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()}};/**
|
|
204
239
|
* @license
|
|
205
240
|
* (c) 2009-present Michael Leibman
|
|
206
241
|
* michael{dot}leibman{at}gmail{dot}com
|
|
@@ -216,15 +251,15 @@ ee.version="2.30.1";i_(Ze);ee.fn=K;ee.min=j0;ee.max=U0;ee.now=G0;ee.utc=pr;ee.un
|
|
|
216
251
|
* This increases the speed dramatically, but can only be done safely because there are no event handlers
|
|
217
252
|
* or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()
|
|
218
253
|
* and do proper cleanup.
|
|
219
|
-
*/const
|
|
254
|
+
*/const MN={asyncEditorLoading:!1,autosizeColsMode:sv.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function IN({SlickDataView:e=EN,applyCellCssStyles:t,columnSorter:n=yA,columns:o,getItemMetadata:r,groups:i,items:a,onAddNewRow:l,onBeforeEditCell:d,onCellChange:u,onClick:f,onDblClick:p,onHeaderMenuCommand:y,onRowCountChanged:w=aA,options:b={},table:m}){ze.useEffect(()=>{const v=new av,k=new aN({}),D=new dN({}),x=new e({groupItemMetadataProvider:i?v:void 0}),S=m.createGrid(x,[],b),C=new mN({container:m.id});S.setSelectionModel(new SN({selectActiveRow:!1})),S.registerPlugin(C),S.registerPlugin(k),S.registerPlugin(v),r&&(x.getItemMetadata=r(x)),x.setItems(a.map(A=>({...A}))),S.invalidate(),x.onRowCountChanged.subscribe(w(m)),x.onRowsChanged.subscribe(iA(S)),S.onAddNewRow.subscribe(l),S.onCellChange.subscribe(u),d&&S.onBeforeEditCell.subscribe(d),f&&S.onClick.subscribe(f),p&&S.onDblClick.subscribe(p),S.onSort.subscribe(n.onSort()),S.onContextMenu.subscribe(cv(m));const M=ev(m);return k.onCommand.subscribe(M),y&&(D.onCommand.subscribe(y),S.registerPlugin(D)),i&&(m.grouping={groups:i,isGrouped:m.grouping.isGrouped??!0}),t?.(S),m.hotKeysBehavior.pushToCommandQueue(S),()=>{k.onCommand.unsubscribe(M),y&&D.onCommand.unsubscribe(y),S.onAddNewRow.unsubscribe(l),S.onCellChange.unsubscribe(u),d&&S.onBeforeEditCell.unsubscribe(d),f&&S.onClick.unsubscribe(f),p&&S.onDblClick.unsubscribe(p),m.reset()}},[a]),ze.useEffect(()=>{const v=m.grid;!v||!b||(v.setOptions({...MN,...b}),v.render())},[b,a]),ze.useEffect(()=>{const v=m.grid;if(v&&o.length){if(o[0].id===TD){const k=new oN;v.setColumns([{...k.getColumnDefinition(),focusable:!1},...o.slice(1)]),v.registerPlugin(k)}else v.setColumns(o);ur.highlightAllColumns(m.filter.args,m.id),m.filter.register(v,m.id),v.invalidate(),dv(v),m.notifyObservers()}},[o,a])}const NN=e=>(t,{grid:n,item:o})=>{AN(n,o),n.updateRowCount(),n.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(n)},AN=(e,t)=>{const n=e.getData(),o=GN(n),r=KN(e),i={...o,...t,id:r+1,isEdited:!0,isNew:!0};n.addItem(i)},FN=({SlickDataView:e,applyCellCssStyles:t,columnSorter:n,columns:o,getItemMetadata:r,groups:i,items:a,onAddNewRow:l,onBeforeEditCell:d,onCellChange:u,onClick:f,onDblClick:p,onHeaderMenuCommand:y,onRowCountChanged:w,options:b,table:m})=>(IN({SlickDataView:e,applyCellCssStyles:t,columnSorter:n,columns:o,getItemMetadata:r,groups:i,items:a,onAddNewRow:l||NN(m),onBeforeEditCell:d,onCellChange:u||sA(m),onClick:f,onDblClick:p,onHeaderMenuCommand:y,onRowCountChanged:w,options:b,table:m}),JN(m),rA(m),P.jsx("div",{id:m.id,className:"slick-container"})),Up=Dl`
|
|
220
255
|
50% {
|
|
221
256
|
background-color: #ffb1b1;
|
|
222
257
|
}
|
|
223
|
-
`;
|
|
224
|
-
[`+
|
|
225
|
-
Arguments: `+Array.prototype.slice.call(
|
|
226
|
-
`+new Error().stack),c=!1}return a.apply(this,arguments)},a)}var G={};function ce(n,a){i.deprecationHandler!=null&&i.deprecationHandler(n,a),G[n]||(te(a),G[n]=!0)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null;function oe(n){return typeof Function<"u"&&n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function ve(n){var a,c;for(c in n)h(n,c)&&(a=n[c],oe(a)?this[c]=a:this["_"+c]=a);this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Fe(n,a){var c=k({},n),u;for(u in a)h(a,u)&&(l(n[u])&&l(a[u])?(c[u]={},k(c[u],n[u]),k(c[u],a[u])):a[u]!=null?c[u]=a[u]:delete c[u]);for(u in n)h(n,u)&&!h(a,u)&&l(n[u])&&(c[u]=k({},c[u]));return c}function me(n){n!=null&&this.set(n)}var De;Object.keys?De=Object.keys:De=function(n){var a,c=[];for(a in n)h(n,a)&&c.push(a);return c};var T={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function S(n,a,c){var u=this._calendar[n]||this._calendar.sameElse;return oe(u)?u.call(a,c):u}function P(n,a,c){var u=""+Math.abs(n),g=a-u.length,M=n>=0;return(M?c?"+":"":"-")+Math.pow(10,Math.max(0,g)).toString().substr(1)+u}var A=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,$=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},V={};function Y(n,a,c,u){var g=u;typeof u=="string"&&(g=function(){return this[u]()}),n&&(V[n]=g),a&&(V[a[0]]=function(){return P(g.apply(this,arguments),a[1],a[2])}),c&&(V[c]=function(){return this.localeData().ordinal(g.apply(this,arguments),n)})}function Q(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function J(n){var a=n.match(A),c,u;for(c=0,u=a.length;c<u;c++)V[a[c]]?a[c]=V[a[c]]:a[c]=Q(a[c]);return function(g){var M="",W;for(W=0;W<u;W++)M+=oe(a[W])?a[W].call(g,n):a[W];return M}}function he(n,a){return n.isValid()?(a=ue(a,n.localeData()),j[a]=j[a]||J(a),j[a](n)):n.localeData().invalidDate()}function ue(n,a){var c=5;function u(g){return a.longDateFormat(g)||g}for($.lastIndex=0;c>=0&&$.test(n);)n=n.replace($,u),$.lastIndex=0,c-=1;return n}var ie={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ze(n){var a=this._longDateFormat[n],c=this._longDateFormat[n.toUpperCase()];return a||!c?a:(this._longDateFormat[n]=c.match(A).map(function(u){return u==="MMMM"||u==="MM"||u==="DD"||u==="dddd"?u.slice(1):u}).join(""),this._longDateFormat[n])}var I="Invalid date";function Ue(){return this._invalidDate}var ot="%d",Xe=/\d{1,2}/;function zt(n){return this._ordinal.replace("%d",n)}var wt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $t(n,a,c,u){var g=this._relativeTime[c];return oe(g)?g(n,a,c,u):g.replace(/%d/i,n)}function Ot(n,a){var c=this._relativeTime[n>0?"future":"past"];return oe(c)?c(a):c.replace(/%s/i,a)}var Fr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function pt(n){return typeof n=="string"?Fr[n]||Fr[n.toLowerCase()]:void 0}function Tt(n){var a={},c,u;for(u in n)h(n,u)&&(c=pt(u),c&&(a[c]=n[u]));return a}var ge={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ir(n){var a=[],c;for(c in n)h(n,c)&&a.push({unit:c,priority:ge[c]});return a.sort(function(u,g){return u.priority-g.priority}),a}var gr=/\d/,ct=/\d\d/,Ir=/\d{3}/,Qr=/\d{4}/,yr=/[+-]?\d{6}/,$e=/\d\d?/,Ls=/\d\d\d\d?/,Fs=/\d\d\d\d\d\d?/,pi=/\d{1,3}/,Xi=/\d{1,4}/,mi=/[+-]?\d{1,6}/,Wr=/\d+/,gi=/[+-]?\d+/,Ki=/Z|[+-]\d\d:?\d\d/gi,ei=/Z|[+-]\d\d(?::?\d\d)?/gi,Hr=/[+-]?\d+(\.\d{1,3})?/,vr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,sr=/^[1-9]\d?/,yi=/^([1-9]\d|\d)/,vi;vi={};function re(n,a,c){vi[n]=oe(a)?a:function(u,g){return u&&c?c:a}}function to(n,a){return h(vi,n)?vi[n](a._strict,a._locale):new RegExp(Is(n))}function Is(n){return Bt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,c,u,g,M){return c||u||g||M}))}function Bt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function At(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function be(n){var a=+n,c=0;return a!==0&&isFinite(a)&&(c=At(a)),c}var wi={};function Ae(n,a){var c,u=a,g;for(typeof n=="string"&&(n=[n]),p(a)&&(u=function(M,W){W[a]=be(M)}),g=n.length,c=0;c<g;c++)wi[n[c]]=u}function ti(n,a){Ae(n,function(c,u,g,M){g._w=g._w||{},a(c,g._w,g,M)})}function ro(n,a,c){a!=null&&h(wi,n)&&wi[n](a,c._a,c,n)}function _i(n){return n%4===0&&n%100!==0||n%400===0}var _t=0,E=1,U=2,Z=3,de=4,_e=5,Ee=6,Se=7,Ce=8;Y("Y",0,0,function(){var n=this.year();return n<=9999?P(n,4):"+"+n}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),re("Y",gi),re("YY",$e,ct),re("YYYY",Xi,Qr),re("YYYYY",mi,yr),re("YYYYYY",mi,yr),Ae(["YYYYY","YYYYYY"],_t),Ae("YYYY",function(n,a){a[_t]=n.length===2?i.parseTwoDigitYear(n):be(n)}),Ae("YY",function(n,a){a[_t]=i.parseTwoDigitYear(n)}),Ae("Y",function(n,a){a[_t]=parseInt(n,10)});function ut(n){return _i(n)?366:365}i.parseTwoDigitYear=function(n){return be(n)+(be(n)>68?1900:2e3)};var Qe=gt("FullYear",!0);function at(){return _i(this.year())}function gt(n,a){return function(c){return c!=null?(nr(this,n,c),i.updateOffset(this,a),this):Vt(this,n)}}function Vt(n,a){if(!n.isValid())return NaN;var c=n._d,u=n._isUTC;switch(a){case"Milliseconds":return u?c.getUTCMilliseconds():c.getMilliseconds();case"Seconds":return u?c.getUTCSeconds():c.getSeconds();case"Minutes":return u?c.getUTCMinutes():c.getMinutes();case"Hours":return u?c.getUTCHours():c.getHours();case"Date":return u?c.getUTCDate():c.getDate();case"Day":return u?c.getUTCDay():c.getDay();case"Month":return u?c.getUTCMonth():c.getMonth();case"FullYear":return u?c.getUTCFullYear():c.getFullYear();default:return NaN}}function nr(n,a,c){var u,g,M,W,se;if(!(!n.isValid()||isNaN(c))){switch(u=n._d,g=n._isUTC,a){case"Milliseconds":return void(g?u.setUTCMilliseconds(c):u.setMilliseconds(c));case"Seconds":return void(g?u.setUTCSeconds(c):u.setSeconds(c));case"Minutes":return void(g?u.setUTCMinutes(c):u.setMinutes(c));case"Hours":return void(g?u.setUTCHours(c):u.setHours(c));case"Date":return void(g?u.setUTCDate(c):u.setDate(c));case"FullYear":break;default:return}M=c,W=n.month(),se=n.date(),se=se===29&&W===1&&!_i(M)?28:se,g?u.setUTCFullYear(M,W,se):u.setFullYear(M,W,se)}}function Rt(n){return n=pt(n),oe(this[n])?this[n]():this}function Zi(n,a){if(typeof n=="object"){n=Tt(n);var c=ir(n),u,g=c.length;for(u=0;u<g;u++)this[c[u].unit](n[c[u].unit])}else if(n=pt(n),oe(this[n]))return this[n](a);return this}function io(n,a){return(n%a+a)%a}var it;Array.prototype.indexOf?it=Array.prototype.indexOf:it=function(n){var a;for(a=0;a<this.length;++a)if(this[a]===n)return a;return-1};function so(n,a){if(isNaN(n)||isNaN(a))return NaN;var c=io(a,12);return n+=(a-c)/12,c===1?_i(n)?29:28:31-c%7%2}Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),Y("MMMM",0,0,function(n){return this.localeData().months(this,n)}),re("M",$e,sr),re("MM",$e,ct),re("MMM",function(n,a){return a.monthsShortRegex(n)}),re("MMMM",function(n,a){return a.monthsRegex(n)}),Ae(["M","MM"],function(n,a){a[E]=be(n)-1}),Ae(["MMM","MMMM"],function(n,a,c,u){var g=c._locale.monthsParse(n,u,c._strict);g!=null?a[E]=g:O(c).invalidMonth=n});var $u="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ja="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Qa=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Bu=vr,Vu=vr;function ju(n,a){return n?o(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||Qa).test(a)?"format":"standalone"][n.month()]:o(this._months)?this._months:this._months.standalone}function Uu(n,a){return n?o(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[Qa.test(a)?"format":"standalone"][n.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Gu(n,a,c){var u,g,M,W=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)M=R([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(M,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(M,"").toLocaleLowerCase();return c?a==="MMM"?(g=it.call(this._shortMonthsParse,W),g!==-1?g:null):(g=it.call(this._longMonthsParse,W),g!==-1?g:null):a==="MMM"?(g=it.call(this._shortMonthsParse,W),g!==-1?g:(g=it.call(this._longMonthsParse,W),g!==-1?g:null)):(g=it.call(this._longMonthsParse,W),g!==-1?g:(g=it.call(this._shortMonthsParse,W),g!==-1?g:null))}function qu(n,a,c){var u,g,M;if(this._monthsParseExact)return Gu.call(this,n,a,c);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),u=0;u<12;u++){if(g=R([2e3,u]),c&&!this._longMonthsParse[u]&&(this._longMonthsParse[u]=new RegExp("^"+this.months(g,"").replace(".","")+"$","i"),this._shortMonthsParse[u]=new RegExp("^"+this.monthsShort(g,"").replace(".","")+"$","i")),!c&&!this._monthsParse[u]&&(M="^"+this.months(g,"")+"|^"+this.monthsShort(g,""),this._monthsParse[u]=new RegExp(M.replace(".",""),"i")),c&&a==="MMMM"&&this._longMonthsParse[u].test(n))return u;if(c&&a==="MMM"&&this._shortMonthsParse[u].test(n))return u;if(!c&&this._monthsParse[u].test(n))return u}}function el(n,a){if(!n.isValid())return n;if(typeof a=="string"){if(/^\d+$/.test(a))a=be(a);else if(a=n.localeData().monthsParse(a),!p(a))return n}var c=a,u=n.date();return u=u<29?u:Math.min(u,so(n.year(),c)),n._isUTC?n._d.setUTCMonth(c,u):n._d.setMonth(c,u),n}function tl(n){return n!=null?(el(this,n),i.updateOffset(this,!0),this):Vt(this,"Month")}function Xu(){return so(this.year(),this.month())}function Ku(n){return this._monthsParseExact?(h(this,"_monthsRegex")||rl.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Bu),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function Zu(n){return this._monthsParseExact?(h(this,"_monthsRegex")||rl.call(this),n?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Vu),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function rl(){function n(ye,xe){return xe.length-ye.length}var a=[],c=[],u=[],g,M,W,se;for(g=0;g<12;g++)M=R([2e3,g]),W=Bt(this.monthsShort(M,"")),se=Bt(this.months(M,"")),a.push(W),c.push(se),u.push(se),u.push(W);a.sort(n),c.sort(n),u.sort(n),this._monthsRegex=new RegExp("^("+u.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ju(n,a,c,u,g,M,W){var se;return n<100&&n>=0?(se=new Date(n+400,a,c,u,g,M,W),isFinite(se.getFullYear())&&se.setFullYear(n)):se=new Date(n,a,c,u,g,M,W),se}function Ji(n){var a,c;return n<100&&n>=0?(c=Array.prototype.slice.call(arguments),c[0]=n+400,a=new Date(Date.UTC.apply(null,c)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(n)):a=new Date(Date.UTC.apply(null,arguments)),a}function Ws(n,a,c){var u=7+a-c,g=(7+Ji(n,0,u).getUTCDay()-a)%7;return-g+u-1}function il(n,a,c,u,g){var M=(7+c-u)%7,W=Ws(n,u,g),se=1+7*(a-1)+M+W,ye,xe;return se<=0?(ye=n-1,xe=ut(ye)+se):se>ut(n)?(ye=n+1,xe=se-ut(n)):(ye=n,xe=se),{year:ye,dayOfYear:xe}}function Qi(n,a,c){var u=Ws(n.year(),a,c),g=Math.floor((n.dayOfYear()-u-1)/7)+1,M,W;return g<1?(W=n.year()-1,M=g+wr(W,a,c)):g>wr(n.year(),a,c)?(M=g-wr(n.year(),a,c),W=n.year()+1):(W=n.year(),M=g),{week:M,year:W}}function wr(n,a,c){var u=Ws(n,a,c),g=Ws(n+1,a,c);return(ut(n)-u+g)/7}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),re("w",$e,sr),re("ww",$e,ct),re("W",$e,sr),re("WW",$e,ct),ti(["w","ww","W","WW"],function(n,a,c,u){a[u.substr(0,1)]=be(n)});function Qu(n){return Qi(n,this._week.dow,this._week.doy).week}var ed={dow:0,doy:6};function td(){return this._week.dow}function rd(){return this._week.doy}function id(n){var a=this.localeData().week(this);return n==null?a:this.add((n-a)*7,"d")}function sd(n){var a=Qi(this,1,4).week;return n==null?a:this.add((n-a)*7,"d")}Y("d",0,"do","day"),Y("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),Y("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),Y("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),re("d",$e),re("e",$e),re("E",$e),re("dd",function(n,a){return a.weekdaysMinRegex(n)}),re("ddd",function(n,a){return a.weekdaysShortRegex(n)}),re("dddd",function(n,a){return a.weekdaysRegex(n)}),ti(["dd","ddd","dddd"],function(n,a,c,u){var g=c._locale.weekdaysParse(n,u,c._strict);g!=null?a.d=g:O(c).invalidWeekday=n}),ti(["d","e","E"],function(n,a,c,u){a[u]=be(n)});function nd(n,a){return typeof n!="string"?n:isNaN(n)?(n=a.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function od(n,a){return typeof n=="string"?a.weekdaysParse(n)%7||7:isNaN(n)?null:n}function no(n,a){return n.slice(a,7).concat(n.slice(0,a))}var ad="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ld="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),hd=vr,cd=vr,ud=vr;function dd(n,a){var c=o(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return n===!0?no(c,this._week.dow):n?c[n.day()]:c}function fd(n){return n===!0?no(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function pd(n){return n===!0?no(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function md(n,a,c){var u,g,M,W=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],u=0;u<7;++u)M=R([2e3,1]).day(u),this._minWeekdaysParse[u]=this.weekdaysMin(M,"").toLocaleLowerCase(),this._shortWeekdaysParse[u]=this.weekdaysShort(M,"").toLocaleLowerCase(),this._weekdaysParse[u]=this.weekdays(M,"").toLocaleLowerCase();return c?a==="dddd"?(g=it.call(this._weekdaysParse,W),g!==-1?g:null):a==="ddd"?(g=it.call(this._shortWeekdaysParse,W),g!==-1?g:null):(g=it.call(this._minWeekdaysParse,W),g!==-1?g:null):a==="dddd"?(g=it.call(this._weekdaysParse,W),g!==-1||(g=it.call(this._shortWeekdaysParse,W),g!==-1)?g:(g=it.call(this._minWeekdaysParse,W),g!==-1?g:null)):a==="ddd"?(g=it.call(this._shortWeekdaysParse,W),g!==-1||(g=it.call(this._weekdaysParse,W),g!==-1)?g:(g=it.call(this._minWeekdaysParse,W),g!==-1?g:null)):(g=it.call(this._minWeekdaysParse,W),g!==-1||(g=it.call(this._weekdaysParse,W),g!==-1)?g:(g=it.call(this._shortWeekdaysParse,W),g!==-1?g:null))}function gd(n,a,c){var u,g,M;if(this._weekdaysParseExact)return md.call(this,n,a,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),u=0;u<7;u++){if(g=R([2e3,1]).day(u),c&&!this._fullWeekdaysParse[u]&&(this._fullWeekdaysParse[u]=new RegExp("^"+this.weekdays(g,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[u]=new RegExp("^"+this.weekdaysShort(g,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[u]=new RegExp("^"+this.weekdaysMin(g,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[u]||(M="^"+this.weekdays(g,"")+"|^"+this.weekdaysShort(g,"")+"|^"+this.weekdaysMin(g,""),this._weekdaysParse[u]=new RegExp(M.replace(".",""),"i")),c&&a==="dddd"&&this._fullWeekdaysParse[u].test(n))return u;if(c&&a==="ddd"&&this._shortWeekdaysParse[u].test(n))return u;if(c&&a==="dd"&&this._minWeekdaysParse[u].test(n))return u;if(!c&&this._weekdaysParse[u].test(n))return u}}function yd(n){if(!this.isValid())return n!=null?this:NaN;var a=Vt(this,"Day");return n!=null?(n=nd(n,this.localeData()),this.add(n-a,"d")):a}function vd(n){if(!this.isValid())return n!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return n==null?a:this.add(n-a,"d")}function wd(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var a=od(n,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function _d(n){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||oo.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=hd),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function bd(n){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||oo.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cd),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Cd(n){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||oo.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ud),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function oo(){function n(Dt,Rr){return Rr.length-Dt.length}var a=[],c=[],u=[],g=[],M,W,se,ye,xe;for(M=0;M<7;M++)W=R([2e3,1]).day(M),se=Bt(this.weekdaysMin(W,"")),ye=Bt(this.weekdaysShort(W,"")),xe=Bt(this.weekdays(W,"")),a.push(se),c.push(ye),u.push(xe),g.push(se),g.push(ye),g.push(xe);a.sort(n),c.sort(n),u.sort(n),g.sort(n),this._weekdaysRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ao(){return this.hours()%12||12}function Sd(){return this.hours()||24}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,ao),Y("k",["kk",2],0,Sd),Y("hmm",0,0,function(){return""+ao.apply(this)+P(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+ao.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)});function nl(n,a){Y(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}nl("a",!0),nl("A",!1);function ol(n,a){return a._meridiemParse}re("a",ol),re("A",ol),re("H",$e,yi),re("h",$e,sr),re("k",$e,sr),re("HH",$e,ct),re("hh",$e,ct),re("kk",$e,ct),re("hmm",Ls),re("hmmss",Fs),re("Hmm",Ls),re("Hmmss",Fs),Ae(["H","HH"],Z),Ae(["k","kk"],function(n,a,c){var u=be(n);a[Z]=u===24?0:u}),Ae(["a","A"],function(n,a,c){c._isPm=c._locale.isPM(n),c._meridiem=n}),Ae(["h","hh"],function(n,a,c){a[Z]=be(n),O(c).bigHour=!0}),Ae("hmm",function(n,a,c){var u=n.length-2;a[Z]=be(n.substr(0,u)),a[de]=be(n.substr(u)),O(c).bigHour=!0}),Ae("hmmss",function(n,a,c){var u=n.length-4,g=n.length-2;a[Z]=be(n.substr(0,u)),a[de]=be(n.substr(u,2)),a[_e]=be(n.substr(g)),O(c).bigHour=!0}),Ae("Hmm",function(n,a,c){var u=n.length-2;a[Z]=be(n.substr(0,u)),a[de]=be(n.substr(u))}),Ae("Hmmss",function(n,a,c){var u=n.length-4,g=n.length-2;a[Z]=be(n.substr(0,u)),a[de]=be(n.substr(u,2)),a[_e]=be(n.substr(g))});function Rd(n){return(n+"").toLowerCase().charAt(0)==="p"}var Ed=/[ap]\.?m?\.?/i,xd=gt("Hours",!0);function kd(n,a,c){return n>11?c?"pm":"PM":c?"am":"AM"}var al={calendar:T,longDateFormat:ie,invalidDate:I,ordinal:ot,dayOfMonthOrdinalParse:Xe,relativeTime:wt,months:$u,monthsShort:Ja,week:ed,weekdays:ad,weekdaysMin:ld,weekdaysShort:sl,meridiemParse:Ed},et={},es={},ts;function Td(n,a){var c,u=Math.min(n.length,a.length);for(c=0;c<u;c+=1)if(n[c]!==a[c])return c;return u}function ll(n){return n&&n.toLowerCase().replace("_","-")}function Dd(n){for(var a=0,c,u,g,M;a<n.length;){for(M=ll(n[a]).split("-"),c=M.length,u=ll(n[a+1]),u=u?u.split("-"):null;c>0;){if(g=Hs(M.slice(0,c).join("-")),g)return g;if(u&&u.length>=c&&Td(M,u)>=c-1)break;c--}a++}return ts}function Md(n){return!!(n&&n.match("^[^/\\\\]*$"))}function Hs(n){var a=null,c;if(et[n]===void 0&&e&&e.exports&&Md(n))try{a=ts._abbr,c=LS,c("./locale/"+n),Yr(a)}catch{et[n]=null}return et[n]}function Yr(n,a){var c;return n&&(f(a)?c=_r(n):c=lo(n,a),c?ts=c:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),ts._abbr}function lo(n,a){if(a!==null){var c,u=al;if(a.abbr=n,et[n]!=null)ce("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),u=et[n]._config;else if(a.parentLocale!=null)if(et[a.parentLocale]!=null)u=et[a.parentLocale]._config;else if(c=Hs(a.parentLocale),c!=null)u=c._config;else return es[a.parentLocale]||(es[a.parentLocale]=[]),es[a.parentLocale].push({name:n,config:a}),null;return et[n]=new me(Fe(u,a)),es[n]&&es[n].forEach(function(g){lo(g.name,g.config)}),Yr(n),et[n]}else return delete et[n],null}function Pd(n,a){if(a!=null){var c,u,g=al;et[n]!=null&&et[n].parentLocale!=null?et[n].set(Fe(et[n]._config,a)):(u=Hs(n),u!=null&&(g=u._config),a=Fe(g,a),u==null&&(a.abbr=n),c=new me(a),c.parentLocale=et[n],et[n]=c),Yr(n)}else et[n]!=null&&(et[n].parentLocale!=null?(et[n]=et[n].parentLocale,n===Yr()&&Yr(n)):et[n]!=null&&delete et[n]);return et[n]}function _r(n){var a;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return ts;if(!o(n)){if(a=Hs(n),a)return a;n=[n]}return Dd(n)}function Od(){return De(et)}function ho(n){var a,c=n._a;return c&&O(n).overflow===-2&&(a=c[E]<0||c[E]>11?E:c[U]<1||c[U]>so(c[_t],c[E])?U:c[Z]<0||c[Z]>24||c[Z]===24&&(c[de]!==0||c[_e]!==0||c[Ee]!==0)?Z:c[de]<0||c[de]>59?de:c[_e]<0||c[_e]>59?_e:c[Ee]<0||c[Ee]>999?Ee:-1,O(n)._overflowDayOfYear&&(a<_t||a>U)&&(a=U),O(n)._overflowWeeks&&a===-1&&(a=Se),O(n)._overflowWeekday&&a===-1&&(a=Ce),O(n).overflow=a),n}var Ad=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nd=/^\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)?)?$/,Ld=/Z|[+-]\d\d(?::?\d\d)?/,Ys=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],co=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Fd=/^\/?Date\((-?\d+)/i,Id=/^(?:(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}))$/,Wd={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function hl(n){var a,c,u=n._i,g=Ad.exec(u)||Nd.exec(u),M,W,se,ye,xe=Ys.length,Dt=co.length;if(g){for(O(n).iso=!0,a=0,c=xe;a<c;a++)if(Ys[a][1].exec(g[1])){W=Ys[a][0],M=Ys[a][2]!==!1;break}if(W==null){n._isValid=!1;return}if(g[3]){for(a=0,c=Dt;a<c;a++)if(co[a][1].exec(g[3])){se=(g[2]||" ")+co[a][0];break}if(se==null){n._isValid=!1;return}}if(!M&&se!=null){n._isValid=!1;return}if(g[4])if(Ld.exec(g[4]))ye="Z";else{n._isValid=!1;return}n._f=W+(se||"")+(ye||""),fo(n)}else n._isValid=!1}function Hd(n,a,c,u,g,M){var W=[Yd(n),Ja.indexOf(a),parseInt(c,10),parseInt(u,10),parseInt(g,10)];return M&&W.push(parseInt(M,10)),W}function Yd(n){var a=parseInt(n,10);return a<=49?2e3+a:a<=999?1900+a:a}function zd(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function $d(n,a,c){if(n){var u=sl.indexOf(n),g=new Date(a[0],a[1],a[2]).getDay();if(u!==g)return O(c).weekdayMismatch=!0,c._isValid=!1,!1}return!0}function Bd(n,a,c){if(n)return Wd[n];if(a)return 0;var u=parseInt(c,10),g=u%100,M=(u-g)/100;return M*60+g}function cl(n){var a=Id.exec(zd(n._i)),c;if(a){if(c=Hd(a[4],a[3],a[2],a[5],a[6],a[7]),!$d(a[1],c,n))return;n._a=c,n._tzm=Bd(a[8],a[9],a[10]),n._d=Ji.apply(null,n._a),n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),O(n).rfc2822=!0}else n._isValid=!1}function Vd(n){var a=Fd.exec(n._i);if(a!==null){n._d=new Date(+a[1]);return}if(hl(n),n._isValid===!1)delete n._isValid;else return;if(cl(n),n._isValid===!1)delete n._isValid;else return;n._strict?n._isValid=!1:i.createFromInputFallback(n)}i.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});function bi(n,a,c){return n??a??c}function jd(n){var a=new Date(i.now());return n._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function uo(n){var a,c,u=[],g,M,W;if(!n._d){for(g=jd(n),n._w&&n._a[U]==null&&n._a[E]==null&&Ud(n),n._dayOfYear!=null&&(W=bi(n._a[_t],g[_t]),(n._dayOfYear>ut(W)||n._dayOfYear===0)&&(O(n)._overflowDayOfYear=!0),c=Ji(W,0,n._dayOfYear),n._a[E]=c.getUTCMonth(),n._a[U]=c.getUTCDate()),a=0;a<3&&n._a[a]==null;++a)n._a[a]=u[a]=g[a];for(;a<7;a++)n._a[a]=u[a]=n._a[a]==null?a===2?1:0:n._a[a];n._a[Z]===24&&n._a[de]===0&&n._a[_e]===0&&n._a[Ee]===0&&(n._nextDay=!0,n._a[Z]=0),n._d=(n._useUTC?Ji:Ju).apply(null,u),M=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[Z]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==M&&(O(n).weekdayMismatch=!0)}}function Ud(n){var a,c,u,g,M,W,se,ye,xe;a=n._w,a.GG!=null||a.W!=null||a.E!=null?(M=1,W=4,c=bi(a.GG,n._a[_t],Qi(Ke(),1,4).year),u=bi(a.W,1),g=bi(a.E,1),(g<1||g>7)&&(ye=!0)):(M=n._locale._week.dow,W=n._locale._week.doy,xe=Qi(Ke(),M,W),c=bi(a.gg,n._a[_t],xe.year),u=bi(a.w,xe.week),a.d!=null?(g=a.d,(g<0||g>6)&&(ye=!0)):a.e!=null?(g=a.e+M,(a.e<0||a.e>6)&&(ye=!0)):g=M),u<1||u>wr(c,M,W)?O(n)._overflowWeeks=!0:ye!=null?O(n)._overflowWeekday=!0:(se=il(c,u,g,M,W),n._a[_t]=se.year,n._dayOfYear=se.dayOfYear)}i.ISO_8601=function(){},i.RFC_2822=function(){};function fo(n){if(n._f===i.ISO_8601){hl(n);return}if(n._f===i.RFC_2822){cl(n);return}n._a=[],O(n).empty=!0;var a=""+n._i,c,u,g,M,W,se=a.length,ye=0,xe,Dt;for(g=ue(n._f,n._locale).match(A)||[],Dt=g.length,c=0;c<Dt;c++)M=g[c],u=(a.match(to(M,n))||[])[0],u&&(W=a.substr(0,a.indexOf(u)),W.length>0&&O(n).unusedInput.push(W),a=a.slice(a.indexOf(u)+u.length),ye+=u.length),V[M]?(u?O(n).empty=!1:O(n).unusedTokens.push(M),ro(M,u,n)):n._strict&&!u&&O(n).unusedTokens.push(M);O(n).charsLeftOver=se-ye,a.length>0&&O(n).unusedInput.push(a),n._a[Z]<=12&&O(n).bigHour===!0&&n._a[Z]>0&&(O(n).bigHour=void 0),O(n).parsedDateParts=n._a.slice(0),O(n).meridiem=n._meridiem,n._a[Z]=Gd(n._locale,n._a[Z],n._meridiem),xe=O(n).era,xe!==null&&(n._a[_t]=n._locale.erasConvertYear(xe,n._a[_t])),uo(n),ho(n)}function Gd(n,a,c){var u;return c==null?a:n.meridiemHour!=null?n.meridiemHour(a,c):(n.isPM!=null&&(u=n.isPM(c),u&&a<12&&(a+=12),!u&&a===12&&(a=0)),a)}function qd(n){var a,c,u,g,M,W,se=!1,ye=n._f.length;if(ye===0){O(n).invalidFormat=!0,n._d=new Date(NaN);return}for(g=0;g<ye;g++)M=0,W=!1,a=L({},n),n._useUTC!=null&&(a._useUTC=n._useUTC),a._f=n._f[g],fo(a),B(a)&&(W=!0),M+=O(a).charsLeftOver,M+=O(a).unusedTokens.length*10,O(a).score=M,se?M<u&&(u=M,c=a):(u==null||M<u||W)&&(u=M,c=a,W&&(se=!0));k(n,c||a)}function Xd(n){if(!n._d){var a=Tt(n._i),c=a.day===void 0?a.date:a.day;n._a=C([a.year,a.month,c,a.hour,a.minute,a.second,a.millisecond],function(u){return u&&parseInt(u,10)}),uo(n)}}function Kd(n){var a=new z(ho(ul(n)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function ul(n){var a=n._i,c=n._f;return n._locale=n._locale||_r(n._l),a===null||c===void 0&&a===""?N({nullInput:!0}):(typeof a=="string"&&(n._i=a=n._locale.preparse(a)),q(a)?new z(ho(a)):(m(a)?n._d=a:o(c)?qd(n):c?fo(n):Zd(n),B(n)||(n._d=null),n))}function Zd(n){var a=n._i;f(a)?n._d=new Date(i.now()):m(a)?n._d=new Date(a.valueOf()):typeof a=="string"?Vd(n):o(a)?(n._a=C(a.slice(0),function(c){return parseInt(c,10)}),uo(n)):l(a)?Xd(n):p(a)?n._d=new Date(a):i.createFromInputFallback(n)}function dl(n,a,c,u,g){var M={};return(a===!0||a===!1)&&(u=a,a=void 0),(c===!0||c===!1)&&(u=c,c=void 0),(l(n)&&d(n)||o(n)&&n.length===0)&&(n=void 0),M._isAMomentObject=!0,M._useUTC=M._isUTC=g,M._l=c,M._i=n,M._f=a,M._strict=u,Kd(M)}function Ke(n,a,c,u){return dl(n,a,c,u,!1)}var Jd=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=Ke.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:N()}),Qd=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=Ke.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:N()});function fl(n,a){var c,u;if(a.length===1&&o(a[0])&&(a=a[0]),!a.length)return Ke();for(c=a[0],u=1;u<a.length;++u)(!a[u].isValid()||a[u][n](c))&&(c=a[u]);return c}function ef(){var n=[].slice.call(arguments,0);return fl("isBefore",n)}function tf(){var n=[].slice.call(arguments,0);return fl("isAfter",n)}var rf=function(){return Date.now?Date.now():+new Date},rs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function sf(n){var a,c=!1,u,g=rs.length;for(a in n)if(h(n,a)&&!(it.call(rs,a)!==-1&&(n[a]==null||!isNaN(n[a]))))return!1;for(u=0;u<g;++u)if(n[rs[u]]){if(c)return!1;parseFloat(n[rs[u]])!==be(n[rs[u]])&&(c=!0)}return!0}function nf(){return this._isValid}function of(){return Jt(NaN)}function zs(n){var a=Tt(n),c=a.year||0,u=a.quarter||0,g=a.month||0,M=a.week||a.isoWeek||0,W=a.day||0,se=a.hour||0,ye=a.minute||0,xe=a.second||0,Dt=a.millisecond||0;this._isValid=sf(a),this._milliseconds=+Dt+xe*1e3+ye*6e4+se*1e3*60*60,this._days=+W+M*7,this._months=+g+u*3+c*12,this._data={},this._locale=_r(),this._bubble()}function $s(n){return n instanceof zs}function po(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function af(n,a,c){var u=Math.min(n.length,a.length),g=Math.abs(n.length-a.length),M=0,W;for(W=0;W<u;W++)be(n[W])!==be(a[W])&&M++;return M+g}function pl(n,a){Y(n,0,0,function(){var c=this.utcOffset(),u="+";return c<0&&(c=-c,u="-"),u+P(~~(c/60),2)+a+P(~~c%60,2)})}pl("Z",":"),pl("ZZ",""),re("Z",ei),re("ZZ",ei),Ae(["Z","ZZ"],function(n,a,c){c._useUTC=!0,c._tzm=mo(ei,n)});var lf=/([\+\-]|\d\d)/gi;function mo(n,a){var c=(a||"").match(n),u,g,M;return c===null?null:(u=c[c.length-1]||[],g=(u+"").match(lf)||["-",0,0],M=+(g[1]*60)+be(g[2]),M===0?0:g[0]==="+"?M:-M)}function go(n,a){var c,u;return a._isUTC?(c=a.clone(),u=(q(n)||m(n)?n.valueOf():Ke(n).valueOf())-c.valueOf(),c._d.setTime(c._d.valueOf()+u),i.updateOffset(c,!1),c):Ke(n).local()}function yo(n){return-Math.round(n._d.getTimezoneOffset())}i.updateOffset=function(){};function hf(n,a,c){var u=this._offset||0,g;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=mo(ei,n),n===null)return this}else Math.abs(n)<16&&!c&&(n=n*60);return!this._isUTC&&a&&(g=yo(this)),this._offset=n,this._isUTC=!0,g!=null&&this.add(g,"m"),u!==n&&(!a||this._changeInProgress?vl(this,Jt(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?u:yo(this)}function cf(n,a){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,a),this):-this.utcOffset()}function uf(n){return this.utcOffset(0,n)}function df(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(yo(this),"m")),this}function ff(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=mo(Ki,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function pf(n){return this.isValid()?(n=n?Ke(n).utcOffset():0,(this.utcOffset()-n)%60===0):!1}function mf(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function gf(){if(!f(this._isDSTShifted))return this._isDSTShifted;var n={},a;return L(n,this),n=ul(n),n._a?(a=n._isUTC?R(n._a):Ke(n._a),this._isDSTShifted=this.isValid()&&af(n._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function yf(){return this.isValid()?!this._isUTC:!1}function vf(){return this.isValid()?this._isUTC:!1}function ml(){return this.isValid()?this._isUTC&&this._offset===0:!1}var wf=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_f=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(n,a){var c=n,u=null,g,M,W;return $s(n)?c={ms:n._milliseconds,d:n._days,M:n._months}:p(n)||!isNaN(+n)?(c={},a?c[a]=+n:c.milliseconds=+n):(u=wf.exec(n))?(g=u[1]==="-"?-1:1,c={y:0,d:be(u[U])*g,h:be(u[Z])*g,m:be(u[de])*g,s:be(u[_e])*g,ms:be(po(u[Ee]*1e3))*g}):(u=_f.exec(n))?(g=u[1]==="-"?-1:1,c={y:ri(u[2],g),M:ri(u[3],g),w:ri(u[4],g),d:ri(u[5],g),h:ri(u[6],g),m:ri(u[7],g),s:ri(u[8],g)}):c==null?c={}:typeof c=="object"&&("from"in c||"to"in c)&&(W=bf(Ke(c.from),Ke(c.to)),c={},c.ms=W.milliseconds,c.M=W.months),M=new zs(c),$s(n)&&h(n,"_locale")&&(M._locale=n._locale),$s(n)&&h(n,"_isValid")&&(M._isValid=n._isValid),M}Jt.fn=zs.prototype,Jt.invalid=of;function ri(n,a){var c=n&&parseFloat(n.replace(",","."));return(isNaN(c)?0:c)*a}function gl(n,a){var c={};return c.months=a.month()-n.month()+(a.year()-n.year())*12,n.clone().add(c.months,"M").isAfter(a)&&--c.months,c.milliseconds=+a-+n.clone().add(c.months,"M"),c}function bf(n,a){var c;return n.isValid()&&a.isValid()?(a=go(a,n),n.isBefore(a)?c=gl(n,a):(c=gl(a,n),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function yl(n,a){return function(c,u){var g,M;return u!==null&&!isNaN(+u)&&(ce(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),M=c,c=u,u=M),g=Jt(c,u),vl(this,g,n),this}}function vl(n,a,c,u){var g=a._milliseconds,M=po(a._days),W=po(a._months);n.isValid()&&(u=u??!0,W&&el(n,Vt(n,"Month")+W*c),M&&nr(n,"Date",Vt(n,"Date")+M*c),g&&n._d.setTime(n._d.valueOf()+g*c),u&&i.updateOffset(n,M||W))}var Cf=yl(1,"add"),Sf=yl(-1,"subtract");function wl(n){return typeof n=="string"||n instanceof String}function Rf(n){return q(n)||m(n)||wl(n)||p(n)||xf(n)||Ef(n)||n===null||n===void 0}function Ef(n){var a=l(n)&&!d(n),c=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],g,M,W=u.length;for(g=0;g<W;g+=1)M=u[g],c=c||h(n,M);return a&&c}function xf(n){var a=o(n),c=!1;return a&&(c=n.filter(function(u){return!p(u)&&wl(n)}).length===0),a&&c}function kf(n){var a=l(n)&&!d(n),c=!1,u=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],g,M;for(g=0;g<u.length;g+=1)M=u[g],c=c||h(n,M);return a&&c}function Tf(n,a){var c=n.diff(a,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function Df(n,a){arguments.length===1&&(arguments[0]?Rf(arguments[0])?(n=arguments[0],a=void 0):kf(arguments[0])&&(a=arguments[0],n=void 0):(n=void 0,a=void 0));var c=n||Ke(),u=go(c,this).startOf("day"),g=i.calendarFormat(this,u)||"sameElse",M=a&&(oe(a[g])?a[g].call(this,c):a[g]);return this.format(M||this.localeData().calendar(g,this,Ke(c)))}function Mf(){return new z(this)}function Pf(n,a){var c=q(n)?n:Ke(n);return this.isValid()&&c.isValid()?(a=pt(a)||"millisecond",a==="millisecond"?this.valueOf()>c.valueOf():c.valueOf()<this.clone().startOf(a).valueOf()):!1}function Of(n,a){var c=q(n)?n:Ke(n);return this.isValid()&&c.isValid()?(a=pt(a)||"millisecond",a==="millisecond"?this.valueOf()<c.valueOf():this.clone().endOf(a).valueOf()<c.valueOf()):!1}function Af(n,a,c,u){var g=q(n)?n:Ke(n),M=q(a)?a:Ke(a);return this.isValid()&&g.isValid()&&M.isValid()?(u=u||"()",(u[0]==="("?this.isAfter(g,c):!this.isBefore(g,c))&&(u[1]===")"?this.isBefore(M,c):!this.isAfter(M,c))):!1}function Nf(n,a){var c=q(n)?n:Ke(n),u;return this.isValid()&&c.isValid()?(a=pt(a)||"millisecond",a==="millisecond"?this.valueOf()===c.valueOf():(u=c.valueOf(),this.clone().startOf(a).valueOf()<=u&&u<=this.clone().endOf(a).valueOf())):!1}function Lf(n,a){return this.isSame(n,a)||this.isAfter(n,a)}function Ff(n,a){return this.isSame(n,a)||this.isBefore(n,a)}function If(n,a,c){var u,g,M;if(!this.isValid())return NaN;if(u=go(n,this),!u.isValid())return NaN;switch(g=(u.utcOffset()-this.utcOffset())*6e4,a=pt(a),a){case"year":M=Bs(this,u)/12;break;case"month":M=Bs(this,u);break;case"quarter":M=Bs(this,u)/3;break;case"second":M=(this-u)/1e3;break;case"minute":M=(this-u)/6e4;break;case"hour":M=(this-u)/36e5;break;case"day":M=(this-u-g)/864e5;break;case"week":M=(this-u-g)/6048e5;break;default:M=this-u}return c?M:At(M)}function Bs(n,a){if(n.date()<a.date())return-Bs(a,n);var c=(a.year()-n.year())*12+(a.month()-n.month()),u=n.clone().add(c,"months"),g,M;return a-u<0?(g=n.clone().add(c-1,"months"),M=(a-u)/(u-g)):(g=n.clone().add(c+1,"months"),M=(a-u)/(g-u)),-(c+M)||0}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Wf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Hf(n){if(!this.isValid())return null;var a=n!==!0,c=a?this.clone().utc():this;return c.year()<0||c.year()>9999?he(c,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):oe(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",he(c,"Z")):he(c,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Yf(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",a="",c,u,g,M;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),c="["+n+'("]',u=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",g="-MM-DD[T]HH:mm:ss.SSS",M=a+'[")]',this.format(c+u+g+M)}function zf(n){n||(n=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var a=he(this,n);return this.localeData().postformat(a)}function $f(n,a){return this.isValid()&&(q(n)&&n.isValid()||Ke(n).isValid())?Jt({to:this,from:n}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function Bf(n){return this.from(Ke(),n)}function Vf(n,a){return this.isValid()&&(q(n)&&n.isValid()||Ke(n).isValid())?Jt({from:this,to:n}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function jf(n){return this.to(Ke(),n)}function _l(n){var a;return n===void 0?this._locale._abbr:(a=_r(n),a!=null&&(this._locale=a),this)}var bl=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Cl(){return this._locale}var Vs=1e3,Ci=60*Vs,js=60*Ci,Sl=(365*400+97)*24*js;function Si(n,a){return(n%a+a)%a}function Rl(n,a,c){return n<100&&n>=0?new Date(n+400,a,c)-Sl:new Date(n,a,c).valueOf()}function El(n,a,c){return n<100&&n>=0?Date.UTC(n+400,a,c)-Sl:Date.UTC(n,a,c)}function Uf(n){var a,c;if(n=pt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?El:Rl,n){case"year":a=c(this.year(),0,1);break;case"quarter":a=c(this.year(),this.month()-this.month()%3,1);break;case"month":a=c(this.year(),this.month(),1);break;case"week":a=c(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=c(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Si(a+(this._isUTC?0:this.utcOffset()*Ci),js);break;case"minute":a=this._d.valueOf(),a-=Si(a,Ci);break;case"second":a=this._d.valueOf(),a-=Si(a,Vs);break}return this._d.setTime(a),i.updateOffset(this,!0),this}function Gf(n){var a,c;if(n=pt(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?El:Rl,n){case"year":a=c(this.year()+1,0,1)-1;break;case"quarter":a=c(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=c(this.year(),this.month()+1,1)-1;break;case"week":a=c(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=c(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=js-Si(a+(this._isUTC?0:this.utcOffset()*Ci),js)-1;break;case"minute":a=this._d.valueOf(),a+=Ci-Si(a,Ci)-1;break;case"second":a=this._d.valueOf(),a+=Vs-Si(a,Vs)-1;break}return this._d.setTime(a),i.updateOffset(this,!0),this}function qf(){return this._d.valueOf()-(this._offset||0)*6e4}function Xf(){return Math.floor(this.valueOf()/1e3)}function Kf(){return new Date(this.valueOf())}function Zf(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function Jf(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Qf(){return this.isValid()?this.toISOString():null}function ep(){return B(this)}function tp(){return k({},O(this))}function rp(){return O(this).overflow}function ip(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),re("N",vo),re("NN",vo),re("NNN",vo),re("NNNN",pp),re("NNNNN",mp),Ae(["N","NN","NNN","NNNN","NNNNN"],function(n,a,c,u){var g=c._locale.erasParse(n,u,c._strict);g?O(c).era=g:O(c).invalidEra=n}),re("y",Wr),re("yy",Wr),re("yyy",Wr),re("yyyy",Wr),re("yo",gp),Ae(["y","yy","yyy","yyyy"],_t),Ae(["yo"],function(n,a,c,u){var g;c._locale._eraYearOrdinalRegex&&(g=n.match(c._locale._eraYearOrdinalRegex)),c._locale.eraYearOrdinalParse?a[_t]=c._locale.eraYearOrdinalParse(n,g):a[_t]=parseInt(n,10)});function sp(n,a){var c,u,g,M=this._eras||_r("en")._eras;for(c=0,u=M.length;c<u;++c){switch(typeof M[c].since){case"string":g=i(M[c].since).startOf("day"),M[c].since=g.valueOf();break}switch(typeof M[c].until){case"undefined":M[c].until=1/0;break;case"string":g=i(M[c].until).startOf("day").valueOf(),M[c].until=g.valueOf();break}}return M}function np(n,a,c){var u,g,M=this.eras(),W,se,ye;for(n=n.toUpperCase(),u=0,g=M.length;u<g;++u)if(W=M[u].name.toUpperCase(),se=M[u].abbr.toUpperCase(),ye=M[u].narrow.toUpperCase(),c)switch(a){case"N":case"NN":case"NNN":if(se===n)return M[u];break;case"NNNN":if(W===n)return M[u];break;case"NNNNN":if(ye===n)return M[u];break}else if([W,se,ye].indexOf(n)>=0)return M[u]}function op(n,a){var c=n.since<=n.until?1:-1;return a===void 0?i(n.since).year():i(n.since).year()+(a-n.offset)*c}function ap(){var n,a,c,u=this.localeData().eras();for(n=0,a=u.length;n<a;++n)if(c=this.clone().startOf("day").valueOf(),u[n].since<=c&&c<=u[n].until||u[n].until<=c&&c<=u[n].since)return u[n].name;return""}function lp(){var n,a,c,u=this.localeData().eras();for(n=0,a=u.length;n<a;++n)if(c=this.clone().startOf("day").valueOf(),u[n].since<=c&&c<=u[n].until||u[n].until<=c&&c<=u[n].since)return u[n].narrow;return""}function hp(){var n,a,c,u=this.localeData().eras();for(n=0,a=u.length;n<a;++n)if(c=this.clone().startOf("day").valueOf(),u[n].since<=c&&c<=u[n].until||u[n].until<=c&&c<=u[n].since)return u[n].abbr;return""}function cp(){var n,a,c,u,g=this.localeData().eras();for(n=0,a=g.length;n<a;++n)if(c=g[n].since<=g[n].until?1:-1,u=this.clone().startOf("day").valueOf(),g[n].since<=u&&u<=g[n].until||g[n].until<=u&&u<=g[n].since)return(this.year()-i(g[n].since).year())*c+g[n].offset;return this.year()}function up(n){return h(this,"_erasNameRegex")||wo.call(this),n?this._erasNameRegex:this._erasRegex}function dp(n){return h(this,"_erasAbbrRegex")||wo.call(this),n?this._erasAbbrRegex:this._erasRegex}function fp(n){return h(this,"_erasNarrowRegex")||wo.call(this),n?this._erasNarrowRegex:this._erasRegex}function vo(n,a){return a.erasAbbrRegex(n)}function pp(n,a){return a.erasNameRegex(n)}function mp(n,a){return a.erasNarrowRegex(n)}function gp(n,a){return a._eraYearOrdinalRegex||Wr}function wo(){var n=[],a=[],c=[],u=[],g,M,W,se,ye,xe=this.eras();for(g=0,M=xe.length;g<M;++g)W=Bt(xe[g].name),se=Bt(xe[g].abbr),ye=Bt(xe[g].narrow),a.push(W),n.push(se),c.push(ye),u.push(W),u.push(se),u.push(ye);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+c.join("|")+")","i")}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Us(n,a){Y(0,[n,n.length],0,a)}Us("gggg","weekYear"),Us("ggggg","weekYear"),Us("GGGG","isoWeekYear"),Us("GGGGG","isoWeekYear"),re("G",gi),re("g",gi),re("GG",$e,ct),re("gg",$e,ct),re("GGGG",Xi,Qr),re("gggg",Xi,Qr),re("GGGGG",mi,yr),re("ggggg",mi,yr),ti(["gggg","ggggg","GGGG","GGGGG"],function(n,a,c,u){a[u.substr(0,2)]=be(n)}),ti(["gg","GG"],function(n,a,c,u){a[u]=i.parseTwoDigitYear(n)});function yp(n){return xl.call(this,n,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function vp(n){return xl.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function wp(){return wr(this.year(),1,4)}function _p(){return wr(this.isoWeekYear(),1,4)}function bp(){var n=this.localeData()._week;return wr(this.year(),n.dow,n.doy)}function Cp(){var n=this.localeData()._week;return wr(this.weekYear(),n.dow,n.doy)}function xl(n,a,c,u,g){var M;return n==null?Qi(this,u,g).year:(M=wr(n,u,g),a>M&&(a=M),Sp.call(this,n,a,c,u,g))}function Sp(n,a,c,u,g){var M=il(n,a,c,u,g),W=Ji(M.year,0,M.dayOfYear);return this.year(W.getUTCFullYear()),this.month(W.getUTCMonth()),this.date(W.getUTCDate()),this}Y("Q",0,"Qo","quarter"),re("Q",gr),Ae("Q",function(n,a){a[E]=(be(n)-1)*3});function Rp(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Y("D",["DD",2],"Do","date"),re("D",$e,sr),re("DD",$e,ct),re("Do",function(n,a){return n?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),Ae(["D","DD"],U),Ae("Do",function(n,a){a[U]=be(n.match($e)[0])});var kl=gt("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),re("DDD",pi),re("DDDD",Ir),Ae(["DDD","DDDD"],function(n,a,c){c._dayOfYear=be(n)});function Ep(n){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?a:this.add(n-a,"d")}Y("m",["mm",2],0,"minute"),re("m",$e,yi),re("mm",$e,ct),Ae(["m","mm"],de);var xp=gt("Minutes",!1);Y("s",["ss",2],0,"second"),re("s",$e,yi),re("ss",$e,ct),Ae(["s","ss"],_e);var kp=gt("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return this.millisecond()*10}),Y(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Y(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Y(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Y(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Y(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),re("S",pi,gr),re("SS",pi,ct),re("SSS",pi,Ir);var zr,Tl;for(zr="SSSS";zr.length<=9;zr+="S")re(zr,Wr);function Tp(n,a){a[Ee]=be(("0."+n)*1e3)}for(zr="S";zr.length<=9;zr+="S")Ae(zr,Tp);Tl=gt("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");function Dp(){return this._isUTC?"UTC":""}function Mp(){return this._isUTC?"Coordinated Universal Time":""}var X=z.prototype;X.add=Cf,X.calendar=Df,X.clone=Mf,X.diff=If,X.endOf=Gf,X.format=zf,X.from=$f,X.fromNow=Bf,X.to=Vf,X.toNow=jf,X.get=Rt,X.invalidAt=rp,X.isAfter=Pf,X.isBefore=Of,X.isBetween=Af,X.isSame=Nf,X.isSameOrAfter=Lf,X.isSameOrBefore=Ff,X.isValid=ep,X.lang=bl,X.locale=_l,X.localeData=Cl,X.max=Qd,X.min=Jd,X.parsingFlags=tp,X.set=Zi,X.startOf=Uf,X.subtract=Sf,X.toArray=Zf,X.toObject=Jf,X.toDate=Kf,X.toISOString=Hf,X.inspect=Yf,typeof Symbol<"u"&&Symbol.for!=null&&(X[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),X.toJSON=Qf,X.toString=Wf,X.unix=Xf,X.valueOf=qf,X.creationData=ip,X.eraName=ap,X.eraNarrow=lp,X.eraAbbr=hp,X.eraYear=cp,X.year=Qe,X.isLeapYear=at,X.weekYear=yp,X.isoWeekYear=vp,X.quarter=X.quarters=Rp,X.month=tl,X.daysInMonth=Xu,X.week=X.weeks=id,X.isoWeek=X.isoWeeks=sd,X.weeksInYear=bp,X.weeksInWeekYear=Cp,X.isoWeeksInYear=wp,X.isoWeeksInISOWeekYear=_p,X.date=kl,X.day=X.days=yd,X.weekday=vd,X.isoWeekday=wd,X.dayOfYear=Ep,X.hour=X.hours=xd,X.minute=X.minutes=xp,X.second=X.seconds=kp,X.millisecond=X.milliseconds=Tl,X.utcOffset=hf,X.utc=uf,X.local=df,X.parseZone=ff,X.hasAlignedHourOffset=pf,X.isDST=mf,X.isLocal=yf,X.isUtcOffset=vf,X.isUtc=ml,X.isUTC=ml,X.zoneAbbr=Dp,X.zoneName=Mp,X.dates=w("dates accessor is deprecated. Use date instead.",kl),X.months=w("months accessor is deprecated. Use month instead",tl),X.years=w("years accessor is deprecated. Use year instead",Qe),X.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",cf),X.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",gf);function Pp(n){return Ke(n*1e3)}function Op(){return Ke.apply(null,arguments).parseZone()}function Dl(n){return n}var Me=me.prototype;Me.calendar=S,Me.longDateFormat=ze,Me.invalidDate=Ue,Me.ordinal=zt,Me.preparse=Dl,Me.postformat=Dl,Me.relativeTime=$t,Me.pastFuture=Ot,Me.set=ve,Me.eras=sp,Me.erasParse=np,Me.erasConvertYear=op,Me.erasAbbrRegex=dp,Me.erasNameRegex=up,Me.erasNarrowRegex=fp,Me.months=ju,Me.monthsShort=Uu,Me.monthsParse=qu,Me.monthsRegex=Zu,Me.monthsShortRegex=Ku,Me.week=Qu,Me.firstDayOfYear=rd,Me.firstDayOfWeek=td,Me.weekdays=dd,Me.weekdaysMin=pd,Me.weekdaysShort=fd,Me.weekdaysParse=gd,Me.weekdaysRegex=_d,Me.weekdaysShortRegex=bd,Me.weekdaysMinRegex=Cd,Me.isPM=Rd,Me.meridiem=kd;function Gs(n,a,c,u){var g=_r(),M=R().set(u,a);return g[c](M,n)}function Ml(n,a,c){if(p(n)&&(a=n,n=void 0),n=n||"",a!=null)return Gs(n,a,c,"month");var u,g=[];for(u=0;u<12;u++)g[u]=Gs(n,u,c,"month");return g}function _o(n,a,c,u){typeof n=="boolean"?(p(a)&&(c=a,a=void 0),a=a||""):(a=n,c=a,n=!1,p(a)&&(c=a,a=void 0),a=a||"");var g=_r(),M=n?g._week.dow:0,W,se=[];if(c!=null)return Gs(a,(c+M)%7,u,"day");for(W=0;W<7;W++)se[W]=Gs(a,(W+M)%7,u,"day");return se}function Ap(n,a){return Ml(n,a,"months")}function Np(n,a){return Ml(n,a,"monthsShort")}function Lp(n,a,c){return _o(n,a,c,"weekdays")}function Fp(n,a,c){return _o(n,a,c,"weekdaysShort")}function Ip(n,a,c){return _o(n,a,c,"weekdaysMin")}Yr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var a=n%10,c=be(n%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return n+c}}),i.lang=w("moment.lang is deprecated. Use moment.locale instead.",Yr),i.langData=w("moment.langData is deprecated. Use moment.localeData instead.",_r);var br=Math.abs;function Wp(){var n=this._data;return this._milliseconds=br(this._milliseconds),this._days=br(this._days),this._months=br(this._months),n.milliseconds=br(n.milliseconds),n.seconds=br(n.seconds),n.minutes=br(n.minutes),n.hours=br(n.hours),n.months=br(n.months),n.years=br(n.years),this}function Pl(n,a,c,u){var g=Jt(a,c);return n._milliseconds+=u*g._milliseconds,n._days+=u*g._days,n._months+=u*g._months,n._bubble()}function Hp(n,a){return Pl(this,n,a,1)}function Yp(n,a){return Pl(this,n,a,-1)}function Ol(n){return n<0?Math.floor(n):Math.ceil(n)}function zp(){var n=this._milliseconds,a=this._days,c=this._months,u=this._data,g,M,W,se,ye;return n>=0&&a>=0&&c>=0||n<=0&&a<=0&&c<=0||(n+=Ol(bo(c)+a)*864e5,a=0,c=0),u.milliseconds=n%1e3,g=At(n/1e3),u.seconds=g%60,M=At(g/60),u.minutes=M%60,W=At(M/60),u.hours=W%24,a+=At(W/24),ye=At(Al(a)),c+=ye,a-=Ol(bo(ye)),se=At(c/12),c%=12,u.days=a,u.months=c,u.years=se,this}function Al(n){return n*4800/146097}function bo(n){return n*146097/4800}function $p(n){if(!this.isValid())return NaN;var a,c,u=this._milliseconds;if(n=pt(n),n==="month"||n==="quarter"||n==="year")switch(a=this._days+u/864e5,c=this._months+Al(a),n){case"month":return c;case"quarter":return c/3;case"year":return c/12}else switch(a=this._days+Math.round(bo(this._months)),n){case"week":return a/7+u/6048e5;case"day":return a+u/864e5;case"hour":return a*24+u/36e5;case"minute":return a*1440+u/6e4;case"second":return a*86400+u/1e3;case"millisecond":return Math.floor(a*864e5)+u;default:throw new Error("Unknown unit "+n)}}function Cr(n){return function(){return this.as(n)}}var Nl=Cr("ms"),Bp=Cr("s"),Vp=Cr("m"),jp=Cr("h"),Up=Cr("d"),Gp=Cr("w"),qp=Cr("M"),Xp=Cr("Q"),Kp=Cr("y"),Zp=Nl;function Jp(){return Jt(this)}function Qp(n){return n=pt(n),this.isValid()?this[n+"s"]():NaN}function ii(n){return function(){return this.isValid()?this._data[n]:NaN}}var em=ii("milliseconds"),tm=ii("seconds"),rm=ii("minutes"),im=ii("hours"),sm=ii("days"),nm=ii("months"),om=ii("years");function am(){return At(this.days()/7)}var Sr=Math.round,Ri={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lm(n,a,c,u,g){return g.relativeTime(a||1,!!c,n,u)}function hm(n,a,c,u){var g=Jt(n).abs(),M=Sr(g.as("s")),W=Sr(g.as("m")),se=Sr(g.as("h")),ye=Sr(g.as("d")),xe=Sr(g.as("M")),Dt=Sr(g.as("w")),Rr=Sr(g.as("y")),$r=M<=c.ss&&["s",M]||M<c.s&&["ss",M]||W<=1&&["m"]||W<c.m&&["mm",W]||se<=1&&["h"]||se<c.h&&["hh",se]||ye<=1&&["d"]||ye<c.d&&["dd",ye];return c.w!=null&&($r=$r||Dt<=1&&["w"]||Dt<c.w&&["ww",Dt]),$r=$r||xe<=1&&["M"]||xe<c.M&&["MM",xe]||Rr<=1&&["y"]||["yy",Rr],$r[2]=a,$r[3]=+n>0,$r[4]=u,lm.apply(null,$r)}function cm(n){return n===void 0?Sr:typeof n=="function"?(Sr=n,!0):!1}function um(n,a){return Ri[n]===void 0?!1:a===void 0?Ri[n]:(Ri[n]=a,n==="s"&&(Ri.ss=a-1),!0)}function dm(n,a){if(!this.isValid())return this.localeData().invalidDate();var c=!1,u=Ri,g,M;return typeof n=="object"&&(a=n,n=!1),typeof n=="boolean"&&(c=n),typeof a=="object"&&(u=Object.assign({},Ri,a),a.s!=null&&a.ss==null&&(u.ss=a.s-1)),g=this.localeData(),M=hm(this,!c,u,g),c&&(M=g.pastFuture(+this,M)),g.postformat(M)}var Co=Math.abs;function Ei(n){return(n>0)-(n<0)||+n}function qs(){if(!this.isValid())return this.localeData().invalidDate();var n=Co(this._milliseconds)/1e3,a=Co(this._days),c=Co(this._months),u,g,M,W,se=this.asSeconds(),ye,xe,Dt,Rr;return se?(u=At(n/60),g=At(u/60),n%=60,u%=60,M=At(c/12),c%=12,W=n?n.toFixed(3).replace(/\.?0+$/,""):"",ye=se<0?"-":"",xe=Ei(this._months)!==Ei(se)?"-":"",Dt=Ei(this._days)!==Ei(se)?"-":"",Rr=Ei(this._milliseconds)!==Ei(se)?"-":"",ye+"P"+(M?xe+M+"Y":"")+(c?xe+c+"M":"")+(a?Dt+a+"D":"")+(g||u||n?"T":"")+(g?Rr+g+"H":"")+(u?Rr+u+"M":"")+(n?Rr+W+"S":"")):"P0D"}var ke=zs.prototype;ke.isValid=nf,ke.abs=Wp,ke.add=Hp,ke.subtract=Yp,ke.as=$p,ke.asMilliseconds=Nl,ke.asSeconds=Bp,ke.asMinutes=Vp,ke.asHours=jp,ke.asDays=Up,ke.asWeeks=Gp,ke.asMonths=qp,ke.asQuarters=Xp,ke.asYears=Kp,ke.valueOf=Zp,ke._bubble=zp,ke.clone=Jp,ke.get=Qp,ke.milliseconds=em,ke.seconds=tm,ke.minutes=rm,ke.hours=im,ke.days=sm,ke.weeks=am,ke.months=nm,ke.years=om,ke.humanize=dm,ke.toISOString=qs,ke.toString=qs,ke.toJSON=qs,ke.locale=_l,ke.localeData=Cl,ke.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qs),ke.lang=bl,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),re("x",gi),re("X",Hr),Ae("X",function(n,a,c){c._d=new Date(parseFloat(n)*1e3)}),Ae("x",function(n,a,c){c._d=new Date(be(n))});//! moment.js
|
|
227
|
-
return
|
|
258
|
+
`;le(Fs)(({theme:e})=>({"& .slick-container":{userSelect:"none",maxWidth:"100%",maxHeight:"100%",color:e.palette.text.primary,borderColor:e.palette.background.paper,fontFamily:"inherit",fontSize:"0.75rem","& .slick-header-column":{"&.filter-active .slick-header-button::after":{width:"7px",height:"7px",content:"''",backgroundColor:"#2196f3",position:"absolute",borderRadius:"50%",border:"2px solid #f8f8f8",top:"3px",right:"3px"},"&:not([data-id=_checkbox_selector]):not([data-id=isEdited])":{"& .slick-column-name":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 16px)"}},"&.slick-state-hover":{"&.filter-active .slick-header-button::after":{border:"2px solid #e8e8e8"},"& .slick-header-button":{"&::before":{backgroundColor:"#e8e8e8"}}},"& .slick-header-button":{width:"19px",height:"12px","&::before":{position:"absolute",content:"''",width:"19px",height:"12px",top:"6px",right:"5px",backgroundImage:"repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",clipPath:"polygon(0% 0%, 100% 0%, 50% 110%)",backgroundColor:"#f8f8f8"}}},"& .slick-viewport":{backgroundColor:e.palette.background.paper,"& .grid-canvas":{"& .ui-widget-content.slick-row":{"&.even":{backgroundColor:e.palette.background.default},"& .slick-cell":{"&.active":{borderColor:"#007bff","& input":{color:e.palette.text.primary}},"&.selected":{color:e.palette.text.primary},"&.text-right":{textAlign:"right"},"&.bold":{fontWeight:"bold"},"&.wink":{animation:`${Up} infinite 0.5s linear`,"& input":{animation:`${Up} 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"}}}}}));sr.NUMBER;class LN{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 $N=new LN,VN=[sn.Date,sn.Boolean,sn.Number];class jN extends Jy{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(!VN.includes(f)){const w=d?.formatter;w&&(y=w(0,0,y,d,t,o))}if(!$N.passed(y,p,u))return!1}return!0}reset(){this.filter.reset(),this.tableId&&ur.highlightAllColumns(this.args,this.tableId)}}function WN(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 rl={exports:{}},BN=rl.exports,qp;function HN(){return qp||(qp=1,function(e,t){(function(n,o){e.exports=o()})(BN,function(){var n;function o(){return n.apply(null,arguments)}function r(c){n=c}function i(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function a(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function l(c,h){return Object.prototype.hasOwnProperty.call(c,h)}function d(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var h;for(h in c)if(l(c,h))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function p(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function y(c,h){var g=[],_,I=c.length;for(_=0;_<I;++_)g.push(h(c[_],_));return g}function w(c,h){for(var g in h)l(h,g)&&(c[g]=h[g]);return l(h,"toString")&&(c.toString=h.toString),l(h,"valueOf")&&(c.valueOf=h.valueOf),c}function b(c,h,g,_){return Eh(c,h,g,_,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(c){return c._pf==null&&(c._pf=m()),c._pf}var k;Array.prototype.some?k=Array.prototype.some:k=function(c){var h=Object(this),g=h.length>>>0,_;for(_=0;_<g;_++)if(_ in h&&c.call(this,h[_],_,h))return!0;return!1};function D(c){var h=null,g=!1,_=c._d&&!isNaN(c._d.getTime());if(_&&(h=v(c),g=k.call(h.parsedDateParts,function(I){return I!=null}),_=h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&g),c._strict&&(_=_&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=_;else return _;return c._isValid}function x(c){var h=b(NaN);return c!=null?w(v(h),c):v(h).userInvalidated=!0,h}var S=o.momentProperties=[],C=!1;function M(c,h){var g,_,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(g=0;g<G;g++)_=S[g],I=h[_],u(I)||(c[_]=I);return c}function A(c){M(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 g=!0;return w(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,c),g){var _=[],I,G,de,Te=arguments.length;for(G=0;G<Te;G++){if(I="",typeof arguments[G]=="object"){I+=`
|
|
259
|
+
[`+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+`
|
|
260
|
+
Arguments: `+Array.prototype.slice.call(_).join("")+`
|
|
261
|
+
`+new Error().stack),g=!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,g;for(g in c)l(c,g)&&(h=c[g],X(h)?this[g]=h:this["_"+g]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var g=w({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(g[_]={},w(g[_],c[_]),w(g[_],h[_])):h[_]!=null?g[_]=h[_]:delete g[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(g[_]=w({},g[_]));return g}function H(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,g=[];for(h in c)l(c,h)&&g.push(h);return g};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function O(c,h,g){var _=this._calendar[c]||this._calendar.sameElse;return X(_)?_.call(h,g):_}function V(c,h,g){var _=""+Math.abs(c),I=h-_.length,G=c>=0;return(G?g?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+_}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,g,_){var I=_;typeof _=="string"&&(I=function(){return this[_]()}),c&&(se[c]=I),h&&(se[h[0]]=function(){return V(I.apply(this,arguments),h[1],h[2])}),g&&(se[g]=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(W),g,_;for(g=0,_=h.length;g<_;g++)se[h[g]]?h[g]=se[h[g]]:h[g]=J(h[g]);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 g=5;function _(I){return h.longDateFormat(I)||I}for(ne.lastIndex=0;g>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,g-=1;return c}var 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],g=this._longDateFormat[c.toUpperCase()];return h||!g?h:(this._longDateFormat[c]=g.match(W).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var B="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,g,_){var I=this._relativeTime[g];return X(I)?I(c,h,g,_):I.replace(/%d/i,c)}function xe(c,h){var g=this._relativeTime[c>0?"future":"past"];return X(g)?g(h):g.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 rt(c){var h={},g,_;for(_ in c)l(c,_)&&(g=Ae(_),g&&(h[g]=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=[],g;for(g in c)l(c,g)&&h.push({unit:g,priority:Pe[g]});return h.sort(function(_,I){return _.priority-I.priority}),h}var Kt=/\d/,st=/\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}/,Me=/\d{1,4}/,Be=/[+-]?\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?/,Br=/^([1-9]\d|\d)/,Hr;Hr={};function Re(c,h,g){Hr[c]=X(h)?h:function(_,I){return _&&g?g:h}}function yc(c,h){return l(Hr,c)?Hr[c](h._strict,h._locale):new RegExp(ga(c))}function ga(c){return Vn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,g,_,I,G){return g||_||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,g=0;return h!==0&&isFinite(h)&&(g=Sn(h)),g}var zr={};function mt(c,h){var g,_=h,I;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(G,de){de[h]=qe(G)}),I=c.length,g=0;g<I;g++)zr[c[g]]=_}function yr(c,h){mt(c,function(g,_,I,G){I._w=I._w||{},h(g,I._w,I,G)})}function vc(c,h,g){h!=null&&l(zr,c)&&zr[c](h,g._a,g,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,st),Re("YYYY",Me,Xt),Re("YYYYY",Be,on),Re("YYYYYY",Be,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 Bt(){return Yr(this.year())}function en(c,h){return function(g){return g!=null?(ho(this,c,g),o.updateOffset(this,h),this):jn(this,c)}}function jn(c,h){if(!c.isValid())return NaN;var g=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return _?g.getUTCSeconds():g.getSeconds();case"Minutes":return _?g.getUTCMinutes():g.getMinutes();case"Hours":return _?g.getUTCHours():g.getHours();case"Date":return _?g.getUTCDate():g.getDate();case"Day":return _?g.getUTCDay():g.getDay();case"Month":return _?g.getUTCMonth():g.getMonth();case"FullYear":return _?g.getUTCFullYear():g.getFullYear();default:return NaN}}function ho(c,h,g){var _,I,G,de,Te;if(!(!c.isValid()||isNaN(g))){switch(_=c._d,I=c._isUTC,h){case"Milliseconds":return void(I?_.setUTCMilliseconds(g):_.setMilliseconds(g));case"Seconds":return void(I?_.setUTCSeconds(g):_.setSeconds(g));case"Minutes":return void(I?_.setUTCMinutes(g):_.setMinutes(g));case"Hours":return void(I?_.setUTCHours(g):_.setHours(g));case"Date":return void(I?_.setUTCDate(g):_.setDate(g));case"FullYear":break;default:return}G=g,de=c.month(),Te=c.date(),Te=Te===29&&de===1&&!Yr(G)?28:Te,I?_.setUTCFullYear(G,de,Te):_.setFullYear(G,de,Te)}}function fn(c){return c=Ae(c),X(this[c])?this[c]():this}function js(c,h){if(typeof c=="object"){c=rt(c);var g=ft(c),_,I=g.length;for(_=0;_<I;_++)this[g[_].unit](c[g[_].unit])}else if(c=Ae(c),X(this[c]))return this[c](h);return this}function bc(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 wc(c,h){if(isNaN(c)||isNaN(h))return NaN;var g=bc(h,12);return c+=(h-g)/12,g===1?Yr(c)?29:28:31-g%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),Re("M",Ue,Jt),Re("MM",Ue,st),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,g,_){var I=g._locale.monthsParse(c,_,g._strict);I!=null?h[U]=I:v(g).invalidMonth=c});var Qv="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),hh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Jv=vn,eb=vn;function tb(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||fh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function nb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[fh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ob(c,h,g){var _,I,G,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)G=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(G,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(G,"").toLocaleLowerCase();return g?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 rb(c,h,g){var _,I,G;if(this._monthsParseExact)return ob.call(this,c,h,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(I=b([2e3,_]),g&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(I,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(I,"").replace(".","")+"$","i")),!g&&!this._monthsParse[_]&&(G="^"+this.months(I,"")+"|^"+this.monthsShort(I,""),this._monthsParse[_]=new RegExp(G.replace(".",""),"i")),g&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(g&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!g&&this._monthsParse[_].test(c))return _}}function ph(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 g=h,_=c.date();return _=_<29?_:Math.min(_,wc(c.year(),g)),c._isUTC?c._d.setUTCMonth(g,_):c._d.setMonth(g,_),c}function mh(c){return c!=null?(ph(this,c),o.updateOffset(this,!0),this):jn(this,"Month")}function sb(){return wc(this.year(),this.month())}function ib(c){return this._monthsParseExact?(l(this,"_monthsRegex")||gh.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Jv),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function ab(c){return this._monthsParseExact?(l(this,"_monthsRegex")||gh.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=eb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function gh(){function c(je,et){return et.length-je.length}var h=[],g=[],_=[],I,G,de,Te;for(I=0;I<12;I++)G=b([2e3,I]),de=Vn(this.monthsShort(G,"")),Te=Vn(this.months(G,"")),h.push(de),g.push(Te),_.push(Te),_.push(de);h.sort(c),g.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function lb(c,h,g,_,I,G,de){var Te;return c<100&&c>=0?(Te=new Date(c+400,h,g,_,I,G,de),isFinite(Te.getFullYear())&&Te.setFullYear(c)):Te=new Date(c,h,g,_,I,G,de),Te}function Ws(c){var h,g;return c<100&&c>=0?(g=Array.prototype.slice.call(arguments),g[0]=c+400,h=new Date(Date.UTC.apply(null,g)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function ya(c,h,g){var _=7+h-g,I=(7+Ws(c,0,_).getUTCDay()-h)%7;return-I+_-1}function yh(c,h,g,_,I){var G=(7+g-_)%7,de=ya(c,_,I),Te=1+7*(h-1)+G+de,je,et;return Te<=0?(je=c-1,et=Ut(je)+Te):Te>Ut(c)?(je=c+1,et=Te-Ut(c)):(je=c,et=Te),{year:je,dayOfYear:et}}function Bs(c,h,g){var _=ya(c.year(),h,g),I=Math.floor((c.dayOfYear()-_-1)/7)+1,G,de;return I<1?(de=c.year()-1,G=I+Do(de,h,g)):I>Do(c.year(),h,g)?(G=I-Do(c.year(),h,g),de=c.year()+1):(de=c.year(),G=I),{week:G,year:de}}function Do(c,h,g){var _=ya(c,h,g),I=ya(c+1,h,g);return(Ut(c)-_+I)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),Re("w",Ue,Jt),Re("ww",Ue,st),Re("W",Ue,Jt),Re("WW",Ue,st),yr(["w","ww","W","WW"],function(c,h,g,_){h[_.substr(0,1)]=qe(c)});function cb(c){return Bs(c,this._week.dow,this._week.doy).week}var db={dow:0,doy:6};function ub(){return this._week.dow}function hb(){return this._week.doy}function fb(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function pb(c){var h=Bs(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,g,_){var I=g._locale.weekdaysParse(c,_,g._strict);I!=null?h.d=I:v(g).invalidWeekday=c}),yr(["d","e","E"],function(c,h,g,_){h[_]=qe(c)});function mb(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function gb(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Cc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var yb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),vb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bb=vn,wb=vn,Cb=vn;function Sb(c,h){var g=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?Cc(g,this._week.dow):c?g[c.day()]:g}function _b(c){return c===!0?Cc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function xb(c){return c===!0?Cc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function Rb(c,h,g){var _,I,G,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)G=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(G,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(G,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(G,"").toLocaleLowerCase();return g?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 Eb(c,h,g){var _,I,G;if(this._weekdaysParseExact)return Rb.call(this,c,h,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(I=b([2e3,1]).day(_),g&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(G="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[_]=new RegExp(G.replace(".",""),"i")),g&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(g&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(g&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!g&&this._weekdaysParse[_].test(c))return _}}function Tb(c){if(!this.isValid())return c!=null?this:NaN;var h=jn(this,"Day");return c!=null?(c=mb(c,this.localeData()),this.add(c-h,"d")):h}function kb(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 Pb(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=gb(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function Db(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Sc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=bb),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ob(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Sc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wb),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Mb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Sc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Cb),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Sc(){function c(bn,Ao){return Ao.length-bn.length}var h=[],g=[],_=[],I=[],G,de,Te,je,et;for(G=0;G<7;G++)de=b([2e3,1]).day(G),Te=Vn(this.weekdaysMin(de,"")),je=Vn(this.weekdaysShort(de,"")),et=Vn(this.weekdays(de,"")),h.push(Te),g.push(je),_.push(et),I.push(Te),I.push(je),I.push(et);h.sort(c),g.sort(c),_.sort(c),I.sort(c),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function _c(){return this.hours()%12||12}function Ib(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,_c),j("k",["kk",2],0,Ib),j("hmm",0,0,function(){return""+_c.apply(this)+V(this.minutes(),2)}),j("hmmss",0,0,function(){return""+_c.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 bh(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}bh("a",!0),bh("A",!1);function wh(c,h){return h._meridiemParse}Re("a",wh),Re("A",wh),Re("H",Ue,Br),Re("h",Ue,Jt),Re("k",Ue,Jt),Re("HH",Ue,st),Re("hh",Ue,st),Re("kk",Ue,st),Re("hmm",tt),Re("hmmss",Mn),Re("Hmm",tt),Re("Hmmss",Mn),mt(["H","HH"],we),mt(["k","kk"],function(c,h,g){var _=qe(c);h[we]=_===24?0:_}),mt(["a","A"],function(c,h,g){g._isPm=g._locale.isPM(c),g._meridiem=c}),mt(["h","hh"],function(c,h,g){h[we]=qe(c),v(g).bigHour=!0}),mt("hmm",function(c,h,g){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_)),v(g).bigHour=!0}),mt("hmmss",function(c,h,g){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(g).bigHour=!0}),mt("Hmm",function(c,h,g){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_))}),mt("Hmmss",function(c,h,g){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 Nb(c){return(c+"").toLowerCase().charAt(0)==="p"}var Ab=/[ap]\.?m?\.?/i,Fb=en("Hours",!0);function Lb(c,h,g){return c>11?g?"pm":"PM":g?"am":"AM"}var Ch={calendar:N,longDateFormat:ie,invalidDate:B,ordinal:Q,dayOfMonthOrdinalParse:fe,relativeTime:Ce,months:Qv,monthsShort:hh,week:db,weekdays:yb,weekdaysMin:vb,weekdaysShort:vh,meridiemParse:Ab},Ft={},Hs={},zs;function $b(c,h){var g,_=Math.min(c.length,h.length);for(g=0;g<_;g+=1)if(c[g]!==h[g])return g;return _}function Sh(c){return c&&c.toLowerCase().replace("_","-")}function Vb(c){for(var h=0,g,_,I,G;h<c.length;){for(G=Sh(c[h]).split("-"),g=G.length,_=Sh(c[h+1]),_=_?_.split("-"):null;g>0;){if(I=va(G.slice(0,g).join("-")),I)return I;if(_&&_.length>=g&&$b(G,_)>=g-1)break;g--}h++}return zs}function jb(c){return!!(c&&c.match("^[^/\\\\]*$"))}function va(c){var h=null,g;if(Ft[c]===void 0&&e&&e.exports&&jb(c))try{h=zs._abbr,g=WN,g("./locale/"+c),er(h)}catch{Ft[c]=null}return Ft[c]}function er(c,h){var g;return c&&(u(h)?g=Oo(c):g=xc(c,h),g?zs=g:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),zs._abbr}function xc(c,h){if(h!==null){var g,_=Ch;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(g=va(h.parentLocale),g!=null)_=g._config;else return Hs[h.parentLocale]||(Hs[h.parentLocale]=[]),Hs[h.parentLocale].push({name:c,config:h}),null;return Ft[c]=new H(Y(_,h)),Hs[c]&&Hs[c].forEach(function(I){xc(I.name,I.config)}),er(c),Ft[c]}else return delete Ft[c],null}function Wb(c,h){if(h!=null){var g,_,I=Ch;Ft[c]!=null&&Ft[c].parentLocale!=null?Ft[c].set(Y(Ft[c]._config,h)):(_=va(c),_!=null&&(I=_._config),h=Y(I,h),_==null&&(h.abbr=c),g=new H(h),g.parentLocale=Ft[c],Ft[c]=g),er(c)}else Ft[c]!=null&&(Ft[c].parentLocale!=null?(Ft[c]=Ft[c].parentLocale,c===er()&&er(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 zs;if(!i(c)){if(h=va(c),h)return h;c=[c]}return Vb(c)}function Bb(){return ae(Ft)}function Rc(c){var h,g=c._a;return g&&v(c).overflow===-2&&(h=g[U]<0||g[U]>11?U:g[pe]<1||g[pe]>wc(g[rn],g[U])?pe:g[we]<0||g[we]>24||g[we]===24&&(g[Ne]!==0||g[Ye]!==0||g[Je]!==0)?we:g[Ne]<0||g[Ne]>59?Ne:g[Ye]<0||g[Ye]>59?Ye:g[Je]<0||g[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 Hb=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zb=/^\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)?)?$/,Yb=/Z|[+-]\d\d(?::?\d\d)?/,ba=[["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]],Ec=[["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/]],Ub=/^\/?Date\((-?\d+)/i,qb=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Gb={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function _h(c){var h,g,_=c._i,I=Hb.exec(_)||zb.exec(_),G,de,Te,je,et=ba.length,bn=Ec.length;if(I){for(v(c).iso=!0,h=0,g=et;h<g;h++)if(ba[h][1].exec(I[1])){de=ba[h][0],G=ba[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(I[3]){for(h=0,g=bn;h<g;h++)if(Ec[h][1].exec(I[3])){Te=(I[2]||" ")+Ec[h][0];break}if(Te==null){c._isValid=!1;return}}if(!G&&Te!=null){c._isValid=!1;return}if(I[4])if(Yb.exec(I[4]))je="Z";else{c._isValid=!1;return}c._f=de+(Te||"")+(je||""),kc(c)}else c._isValid=!1}function Kb(c,h,g,_,I,G){var de=[Xb(c),hh.indexOf(h),parseInt(g,10),parseInt(_,10),parseInt(I,10)];return G&&de.push(parseInt(G,10)),de}function Xb(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function Zb(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Qb(c,h,g){if(c){var _=vh.indexOf(c),I=new Date(h[0],h[1],h[2]).getDay();if(_!==I)return v(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function Jb(c,h,g){if(c)return Gb[c];if(h)return 0;var _=parseInt(g,10),I=_%100,G=(_-I)/100;return G*60+I}function xh(c){var h=qb.exec(Zb(c._i)),g;if(h){if(g=Kb(h[4],h[3],h[2],h[5],h[6],h[7]),!Qb(h[1],g,c))return;c._a=g,c._tzm=Jb(h[8],h[9],h[10]),c._d=Ws.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function ew(c){var h=Ub.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(_h(c),c._isValid===!1)delete c._isValid;else return;if(xh(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,g){return c??h??g}function tw(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function Tc(c){var h,g,_=[],I,G,de;if(!c._d){for(I=tw(c),c._w&&c._a[pe]==null&&c._a[U]==null&&nw(c),c._dayOfYear!=null&&(de=Ur(c._a[rn],I[rn]),(c._dayOfYear>Ut(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),g=Ws(de,0,c._dayOfYear),c._a[U]=g.getUTCMonth(),c._a[pe]=g.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=I[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[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?Ws:lb).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 nw(c){var h,g,_,I,G,de,Te,je,et;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(G=1,de=4,g=Ur(h.GG,c._a[rn],Bs(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=Bs(Dt(),G,de),g=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(g,G,de)?v(c)._overflowWeeks=!0:je!=null?v(c)._overflowWeekday=!0:(Te=yh(g,_,I,G,de),c._a[rn]=Te.year,c._dayOfYear=Te.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function kc(c){if(c._f===o.ISO_8601){_h(c);return}if(c._f===o.RFC_2822){xh(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,g,_,I,G,de,Te=h.length,je=0,et,bn;for(I=ce(c._f,c._locale).match(W)||[],bn=I.length,g=0;g<bn;g++)G=I[g],_=(h.match(yc(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),vc(G,_,c)):c._strict&&!_&&v(c).unusedTokens.push(G);v(c).charsLeftOver=Te-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]=ow(c._locale,c._a[we],c._meridiem),et=v(c).era,et!==null&&(c._a[rn]=c._locale.erasConvertYear(et,c._a[rn])),Tc(c),Rc(c)}function ow(c,h,g){var _;return g==null?h:c.meridiemHour!=null?c.meridiemHour(h,g):(c.isPM!=null&&(_=c.isPM(g),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function rw(c){var h,g,_,I,G,de,Te=!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=M({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[I],kc(h),D(h)&&(de=!0),G+=v(h).charsLeftOver,G+=v(h).unusedTokens.length*10,v(h).score=G,Te?G<_&&(_=G,g=h):(_==null||G<_||de)&&(_=G,g=h,de&&(Te=!0));w(c,g||h)}function sw(c){if(!c._d){var h=rt(c._i),g=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,g,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),Tc(c)}}function iw(c){var h=new A(Rc(Rh(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function Rh(c){var h=c._i,g=c._f;return c._locale=c._locale||Oo(c._l),h===null||g===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new A(Rc(h)):(p(h)?c._d=h:i(g)?rw(c):g?kc(c):aw(c),D(c)||(c._d=null),c))}function aw(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?ew(c):i(h)?(c._a=y(h.slice(0),function(g){return parseInt(g,10)}),Tc(c)):a(h)?sw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function Eh(c,h,g,_,I){var G={};return(h===!0||h===!1)&&(_=h,h=void 0),(g===!0||g===!1)&&(_=g,g=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),G._isAMomentObject=!0,G._useUTC=G._isUTC=I,G._l=g,G._i=c,G._f=h,G._strict=_,iw(G)}function Dt(c,h,g,_){return Eh(c,h,g,_,!1)}var lw=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()}),cw=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 Th(c,h){var g,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Dt();for(g=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](g))&&(g=h[_]);return g}function dw(){var c=[].slice.call(arguments,0);return Th("isBefore",c)}function uw(){var c=[].slice.call(arguments,0);return Th("isAfter",c)}var hw=function(){return Date.now?Date.now():+new Date},Ys=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fw(c){var h,g=!1,_,I=Ys.length;for(h in c)if(l(c,h)&&!(Vt.call(Ys,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<I;++_)if(c[Ys[_]]){if(g)return!1;parseFloat(c[Ys[_]])!==qe(c[Ys[_]])&&(g=!0)}return!0}function pw(){return this._isValid}function mw(){return no(NaN)}function wa(c){var h=rt(c),g=h.year||0,_=h.quarter||0,I=h.month||0,G=h.week||h.isoWeek||0,de=h.day||0,Te=h.hour||0,je=h.minute||0,et=h.second||0,bn=h.millisecond||0;this._isValid=fw(h),this._milliseconds=+bn+et*1e3+je*6e4+Te*1e3*60*60,this._days=+de+G*7,this._months=+I+_*3+g*12,this._data={},this._locale=Oo(),this._bubble()}function Ca(c){return c instanceof wa}function Pc(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function gw(c,h,g){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 kh(c,h){j(c,0,0,function(){var g=this.utcOffset(),_="+";return g<0&&(g=-g,_="-"),_+V(~~(g/60),2)+h+V(~~g%60,2)})}kh("Z",":"),kh("ZZ",""),Re("Z",pt),Re("ZZ",pt),mt(["Z","ZZ"],function(c,h,g){g._useUTC=!0,g._tzm=Dc(pt,c)});var yw=/([\+\-]|\d\d)/gi;function Dc(c,h){var g=(h||"").match(c),_,I,G;return g===null?null:(_=g[g.length-1]||[],I=(_+"").match(yw)||["-",0,0],G=+(I[1]*60)+qe(I[2]),G===0?0:I[0]==="+"?G:-G)}function Oc(c,h){var g,_;return h._isUTC?(g=h.clone(),_=(F(c)||p(c)?c.valueOf():Dt(c).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+_),o.updateOffset(g,!1),g):Dt(c).local()}function Mc(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function vw(c,h,g){var _=this._offset||0,I;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=Dc(pt,c),c===null)return this}else Math.abs(c)<16&&!g&&(c=c*60);return!this._isUTC&&h&&(I=Mc(this)),this._offset=c,this._isUTC=!0,I!=null&&this.add(I,"m"),_!==c&&(!h||this._changeInProgress?Mh(this,no(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Mc(this)}function bw(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function ww(c){return this.utcOffset(0,c)}function Cw(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(Mc(this),"m")),this}function Sw(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=Dc(uo,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function _w(c){return this.isValid()?(c=c?Dt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function xw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Rw(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return M(c,this),c=Rh(c),c._a?(h=c._isUTC?b(c._a):Dt(c._a),this._isDSTShifted=this.isValid()&&gw(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ew(){return this.isValid()?!this._isUTC:!1}function Tw(){return this.isValid()?this._isUTC:!1}function Ph(){return this.isValid()?this._isUTC&&this._offset===0:!1}var kw=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function no(c,h){var g=c,_=null,I,G,de;return Ca(c)?g={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(g={},h?g[h]=+c:g.milliseconds=+c):(_=kw.exec(c))?(I=_[1]==="-"?-1:1,g={y:0,d:qe(_[pe])*I,h:qe(_[we])*I,m:qe(_[Ne])*I,s:qe(_[Ye])*I,ms:qe(Pc(_[Je]*1e3))*I}):(_=Pw.exec(c))?(I=_[1]==="-"?-1:1,g={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)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(de=Dw(Dt(g.from),Dt(g.to)),g={},g.ms=de.milliseconds,g.M=de.months),G=new wa(g),Ca(c)&&l(c,"_locale")&&(G._locale=c._locale),Ca(c)&&l(c,"_isValid")&&(G._isValid=c._isValid),G}no.fn=wa.prototype,no.invalid=mw;function vr(c,h){var g=c&&parseFloat(c.replace(",","."));return(isNaN(g)?0:g)*h}function Dh(c,h){var g={};return g.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(g.months,"M").isAfter(h)&&--g.months,g.milliseconds=+h-+c.clone().add(g.months,"M"),g}function Dw(c,h){var g;return c.isValid()&&h.isValid()?(h=Oc(h,c),c.isBefore(h)?g=Dh(c,h):(g=Dh(h,c),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function Oh(c,h){return function(g,_){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=g,g=_,_=G),I=no(g,_),Mh(this,I,c),this}}function Mh(c,h,g,_){var I=h._milliseconds,G=Pc(h._days),de=Pc(h._months);c.isValid()&&(_=_??!0,de&&ph(c,jn(c,"Month")+de*g),G&&ho(c,"Date",jn(c,"Date")+G*g),I&&c._d.setTime(c._d.valueOf()+I*g),_&&o.updateOffset(c,G||de))}var Ow=Oh(1,"add"),Mw=Oh(-1,"subtract");function Ih(c){return typeof c=="string"||c instanceof String}function Iw(c){return F(c)||p(c)||Ih(c)||f(c)||Aw(c)||Nw(c)||c===null||c===void 0}function Nw(c){var h=a(c)&&!d(c),g=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,G,de=_.length;for(I=0;I<de;I+=1)G=_[I],g=g||l(c,G);return h&&g}function Aw(c){var h=i(c),g=!1;return h&&(g=c.filter(function(_){return!f(_)&&Ih(c)}).length===0),h&&g}function Fw(c){var h=a(c)&&!d(c),g=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],I,G;for(I=0;I<_.length;I+=1)G=_[I],g=g||l(c,G);return h&&g}function Lw(c,h){var g=c.diff(h,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function $w(c,h){arguments.length===1&&(arguments[0]?Iw(arguments[0])?(c=arguments[0],h=void 0):Fw(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var g=c||Dt(),_=Oc(g,this).startOf("day"),I=o.calendarFormat(this,_)||"sameElse",G=h&&(X(h[I])?h[I].call(this,g):h[I]);return this.format(G||this.localeData().calendar(I,this,Dt(g)))}function Vw(){return new A(this)}function jw(c,h){var g=F(c)?c:Dt(c);return this.isValid()&&g.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(h).valueOf()):!1}function Ww(c,h){var g=F(c)?c:Dt(c);return this.isValid()&&g.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(h).valueOf()<g.valueOf()):!1}function Bw(c,h,g,_){var I=F(c)?c:Dt(c),G=F(h)?h:Dt(h);return this.isValid()&&I.isValid()&&G.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(I,g):!this.isBefore(I,g))&&(_[1]===")"?this.isBefore(G,g):!this.isAfter(G,g))):!1}function Hw(c,h){var g=F(c)?c:Dt(c),_;return this.isValid()&&g.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()===g.valueOf():(_=g.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function zw(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function Yw(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function Uw(c,h,g){var _,I,G;if(!this.isValid())return NaN;if(_=Oc(c,this),!_.isValid())return NaN;switch(I=(_.utcOffset()-this.utcOffset())*6e4,h=Ae(h),h){case"year":G=Sa(this,_)/12;break;case"month":G=Sa(this,_);break;case"quarter":G=Sa(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 g?G:Sn(G)}function Sa(c,h){if(c.date()<h.date())return-Sa(h,c);var g=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(g,"months"),I,G;return h-_<0?(I=c.clone().add(g-1,"months"),G=(h-_)/(_-I)):(I=c.clone().add(g+1,"months"),G=(h-_)/(I-_)),-(g+G)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function qw(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Gw(c){if(!this.isValid())return null;var h=c!==!0,g=h?this.clone().utc():this;return g.year()<0||g.year()>9999?te(g,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):X(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",te(g,"Z")):te(g,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Kw(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",g,_,I,G;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),g="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",G=h+'[")]',this.format(g+_+I+G)}function Xw(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function Zw(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?no({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function Qw(c){return this.from(Dt(),c)}function Jw(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?no({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function eC(c){return this.to(Dt(),c)}function Nh(c){var h;return c===void 0?this._locale._abbr:(h=Oo(c),h!=null&&(this._locale=h),this)}var Ah=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 Fh(){return this._locale}var _a=1e3,qr=60*_a,xa=60*qr,Lh=(365*400+97)*24*xa;function Gr(c,h){return(c%h+h)%h}function $h(c,h,g){return c<100&&c>=0?new Date(c+400,h,g)-Lh:new Date(c,h,g).valueOf()}function Vh(c,h,g){return c<100&&c>=0?Date.UTC(c+400,h,g)-Lh:Date.UTC(c,h,g)}function tC(c){var h,g;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Vh:$h,c){case"year":h=g(this.year(),0,1);break;case"quarter":h=g(this.year(),this.month()-this.month()%3,1);break;case"month":h=g(this.year(),this.month(),1);break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=g(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=Gr(h+(this._isUTC?0:this.utcOffset()*qr),xa);break;case"minute":h=this._d.valueOf(),h-=Gr(h,qr);break;case"second":h=this._d.valueOf(),h-=Gr(h,_a);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function nC(c){var h,g;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Vh:$h,c){case"year":h=g(this.year()+1,0,1)-1;break;case"quarter":h=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=g(this.year(),this.month()+1,1)-1;break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=xa-Gr(h+(this._isUTC?0:this.utcOffset()*qr),xa)-1;break;case"minute":h=this._d.valueOf(),h+=qr-Gr(h,qr)-1;break;case"second":h=this._d.valueOf(),h+=_a-Gr(h,_a)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function oC(){return this._d.valueOf()-(this._offset||0)*6e4}function rC(){return Math.floor(this.valueOf()/1e3)}function sC(){return new Date(this.valueOf())}function iC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function aC(){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 lC(){return this.isValid()?this.toISOString():null}function cC(){return D(this)}function dC(){return w({},v(this))}function uC(){return v(this).overflow}function hC(){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",Ic),Re("NN",Ic),Re("NNN",Ic),Re("NNNN",_C),Re("NNNNN",xC),mt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,g,_){var I=g._locale.erasParse(c,_,g._strict);I?v(g).era=I:v(g).invalidEra=c}),Re("y",vt),Re("yy",vt),Re("yyy",vt),Re("yyyy",vt),Re("yo",RC),mt(["y","yy","yyy","yyyy"],rn),mt(["yo"],function(c,h,g,_){var I;g._locale._eraYearOrdinalRegex&&(I=c.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?h[rn]=g._locale.eraYearOrdinalParse(c,I):h[rn]=parseInt(c,10)});function fC(c,h){var g,_,I,G=this._eras||Oo("en")._eras;for(g=0,_=G.length;g<_;++g){switch(typeof G[g].since){case"string":I=o(G[g].since).startOf("day"),G[g].since=I.valueOf();break}switch(typeof G[g].until){case"undefined":G[g].until=1/0;break;case"string":I=o(G[g].until).startOf("day").valueOf(),G[g].until=I.valueOf();break}}return G}function pC(c,h,g){var _,I,G=this.eras(),de,Te,je;for(c=c.toUpperCase(),_=0,I=G.length;_<I;++_)if(de=G[_].name.toUpperCase(),Te=G[_].abbr.toUpperCase(),je=G[_].narrow.toUpperCase(),g)switch(h){case"N":case"NN":case"NNN":if(Te===c)return G[_];break;case"NNNN":if(de===c)return G[_];break;case"NNNNN":if(je===c)return G[_];break}else if([de,Te,je].indexOf(c)>=0)return G[_]}function mC(c,h){var g=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*g}function gC(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].name;return""}function yC(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].narrow;return""}function vC(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].abbr;return""}function bC(){var c,h,g,_,I=this.localeData().eras();for(c=0,h=I.length;c<h;++c)if(g=I[c].since<=I[c].until?1:-1,_=this.clone().startOf("day").valueOf(),I[c].since<=_&&_<=I[c].until||I[c].until<=_&&_<=I[c].since)return(this.year()-o(I[c].since).year())*g+I[c].offset;return this.year()}function wC(c){return l(this,"_erasNameRegex")||Nc.call(this),c?this._erasNameRegex:this._erasRegex}function CC(c){return l(this,"_erasAbbrRegex")||Nc.call(this),c?this._erasAbbrRegex:this._erasRegex}function SC(c){return l(this,"_erasNarrowRegex")||Nc.call(this),c?this._erasNarrowRegex:this._erasRegex}function Ic(c,h){return h.erasAbbrRegex(c)}function _C(c,h){return h.erasNameRegex(c)}function xC(c,h){return h.erasNarrowRegex(c)}function RC(c,h){return h._eraYearOrdinalRegex||vt}function Nc(){var c=[],h=[],g=[],_=[],I,G,de,Te,je,et=this.eras();for(I=0,G=et.length;I<G;++I)de=Vn(et[I].name),Te=Vn(et[I].abbr),je=Vn(et[I].narrow),h.push(de),c.push(Te),g.push(je),_.push(de),_.push(Te),_.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("^("+g.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ra(c,h){j(0,[c,c.length],0,h)}Ra("gggg","weekYear"),Ra("ggggg","weekYear"),Ra("GGGG","isoWeekYear"),Ra("GGGGG","isoWeekYear"),Re("G",ln),Re("g",ln),Re("GG",Ue,st),Re("gg",Ue,st),Re("GGGG",Me,Xt),Re("gggg",Me,Xt),Re("GGGGG",Be,on),Re("ggggg",Be,on),yr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,g,_){h[_.substr(0,2)]=qe(c)}),yr(["gg","GG"],function(c,h,g,_){h[_]=o.parseTwoDigitYear(c)});function EC(c){return jh.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function TC(c){return jh.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function kC(){return Do(this.year(),1,4)}function PC(){return Do(this.isoWeekYear(),1,4)}function DC(){var c=this.localeData()._week;return Do(this.year(),c.dow,c.doy)}function OC(){var c=this.localeData()._week;return Do(this.weekYear(),c.dow,c.doy)}function jh(c,h,g,_,I){var G;return c==null?Bs(this,_,I).year:(G=Do(c,_,I),h>G&&(h=G),MC.call(this,c,h,g,_,I))}function MC(c,h,g,_,I){var G=yh(c,h,g,_,I),de=Ws(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 IC(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,st),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 Wh=en("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),Re("DDD",hn),Re("DDDD",Yt),mt(["DDD","DDDD"],function(c,h,g){g._dayOfYear=qe(c)});function NC(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,Br),Re("mm",Ue,st),mt(["m","mm"],Ne);var AC=en("Minutes",!1);j("s",["ss",2],0,"second"),Re("s",Ue,Br),Re("ss",Ue,st),mt(["s","ss"],Ye);var FC=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,st),Re("SSS",hn,Yt);var tr,Bh;for(tr="SSSS";tr.length<=9;tr+="S")Re(tr,vt);function LC(c,h){h[Je]=qe(("0."+c)*1e3)}for(tr="S";tr.length<=9;tr+="S")mt(tr,LC);Bh=en("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function $C(){return this._isUTC?"UTC":""}function VC(){return this._isUTC?"Coordinated Universal Time":""}var ge=A.prototype;ge.add=Ow,ge.calendar=$w,ge.clone=Vw,ge.diff=Uw,ge.endOf=nC,ge.format=Xw,ge.from=Zw,ge.fromNow=Qw,ge.to=Jw,ge.toNow=eC,ge.get=fn,ge.invalidAt=uC,ge.isAfter=jw,ge.isBefore=Ww,ge.isBetween=Bw,ge.isSame=Hw,ge.isSameOrAfter=zw,ge.isSameOrBefore=Yw,ge.isValid=cC,ge.lang=Ah,ge.locale=Nh,ge.localeData=Fh,ge.max=cw,ge.min=lw,ge.parsingFlags=dC,ge.set=js,ge.startOf=tC,ge.subtract=Mw,ge.toArray=iC,ge.toObject=aC,ge.toDate=sC,ge.toISOString=Gw,ge.inspect=Kw,typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ge.toJSON=lC,ge.toString=qw,ge.unix=rC,ge.valueOf=oC,ge.creationData=hC,ge.eraName=gC,ge.eraNarrow=yC,ge.eraAbbr=vC,ge.eraYear=bC,ge.year=At,ge.isLeapYear=Bt,ge.weekYear=EC,ge.isoWeekYear=TC,ge.quarter=ge.quarters=IC,ge.month=mh,ge.daysInMonth=sb,ge.week=ge.weeks=fb,ge.isoWeek=ge.isoWeeks=pb,ge.weeksInYear=DC,ge.weeksInWeekYear=OC,ge.isoWeeksInYear=kC,ge.isoWeeksInISOWeekYear=PC,ge.date=Wh,ge.day=ge.days=Tb,ge.weekday=kb,ge.isoWeekday=Pb,ge.dayOfYear=NC,ge.hour=ge.hours=Fb,ge.minute=ge.minutes=AC,ge.second=ge.seconds=FC,ge.millisecond=ge.milliseconds=Bh,ge.utcOffset=vw,ge.utc=ww,ge.local=Cw,ge.parseZone=Sw,ge.hasAlignedHourOffset=_w,ge.isDST=xw,ge.isLocal=Ew,ge.isUtcOffset=Tw,ge.isUtc=Ph,ge.isUTC=Ph,ge.zoneAbbr=$C,ge.zoneName=VC,ge.dates=R("dates accessor is deprecated. Use date instead.",Wh),ge.months=R("months accessor is deprecated. Use month instead",mh),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/",bw),ge.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Rw);function jC(c){return Dt(c*1e3)}function WC(){return Dt.apply(null,arguments).parseZone()}function Hh(c){return c}var lt=H.prototype;lt.calendar=O,lt.longDateFormat=he,lt.invalidDate=re,lt.ordinal=me,lt.preparse=Hh,lt.postformat=Hh,lt.relativeTime=ve,lt.pastFuture=xe,lt.set=q,lt.eras=fC,lt.erasParse=pC,lt.erasConvertYear=mC,lt.erasAbbrRegex=CC,lt.erasNameRegex=wC,lt.erasNarrowRegex=SC,lt.months=tb,lt.monthsShort=nb,lt.monthsParse=rb,lt.monthsRegex=ab,lt.monthsShortRegex=ib,lt.week=cb,lt.firstDayOfYear=hb,lt.firstDayOfWeek=ub,lt.weekdays=Sb,lt.weekdaysMin=xb,lt.weekdaysShort=_b,lt.weekdaysParse=Eb,lt.weekdaysRegex=Db,lt.weekdaysShortRegex=Ob,lt.weekdaysMinRegex=Mb,lt.isPM=Nb,lt.meridiem=Lb;function Ea(c,h,g,_){var I=Oo(),G=b().set(_,h);return I[g](G,c)}function zh(c,h,g){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return Ea(c,h,g,"month");var _,I=[];for(_=0;_<12;_++)I[_]=Ea(c,_,g,"month");return I}function Ac(c,h,g,_){typeof c=="boolean"?(f(h)&&(g=h,h=void 0),h=h||""):(h=c,g=h,c=!1,f(h)&&(g=h,h=void 0),h=h||"");var I=Oo(),G=c?I._week.dow:0,de,Te=[];if(g!=null)return Ea(h,(g+G)%7,_,"day");for(de=0;de<7;de++)Te[de]=Ea(h,(de+G)%7,_,"day");return Te}function BC(c,h){return zh(c,h,"months")}function HC(c,h){return zh(c,h,"monthsShort")}function zC(c,h,g){return Ac(c,h,g,"weekdays")}function YC(c,h,g){return Ac(c,h,g,"weekdaysShort")}function UC(c,h,g){return Ac(c,h,g,"weekdaysMin")}er("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,g=qe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+g}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",er),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Oo);var Mo=Math.abs;function qC(){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 Yh(c,h,g,_){var I=no(h,g);return c._milliseconds+=_*I._milliseconds,c._days+=_*I._days,c._months+=_*I._months,c._bubble()}function GC(c,h){return Yh(this,c,h,1)}function KC(c,h){return Yh(this,c,h,-1)}function Uh(c){return c<0?Math.floor(c):Math.ceil(c)}function XC(){var c=this._milliseconds,h=this._days,g=this._months,_=this._data,I,G,de,Te,je;return c>=0&&h>=0&&g>=0||c<=0&&h<=0&&g<=0||(c+=Uh(Fc(g)+h)*864e5,h=0,g=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(qh(h)),g+=je,h-=Uh(Fc(je)),Te=Sn(g/12),g%=12,_.days=h,_.months=g,_.years=Te,this}function qh(c){return c*4800/146097}function Fc(c){return c*146097/4800}function ZC(c){if(!this.isValid())return NaN;var h,g,_=this._milliseconds;if(c=Ae(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,g=this._months+qh(h),c){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(h=this._days+Math.round(Fc(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 Gh=Io("ms"),QC=Io("s"),JC=Io("m"),eS=Io("h"),tS=Io("d"),nS=Io("w"),oS=Io("M"),rS=Io("Q"),sS=Io("y"),iS=Gh;function aS(){return no(this)}function lS(c){return c=Ae(c),this.isValid()?this[c+"s"]():NaN}function br(c){return function(){return this.isValid()?this._data[c]:NaN}}var cS=br("milliseconds"),dS=br("seconds"),uS=br("minutes"),hS=br("hours"),fS=br("days"),pS=br("months"),mS=br("years");function gS(){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 yS(c,h,g,_,I){return I.relativeTime(h||1,!!g,c,_)}function vS(c,h,g,_){var I=no(c).abs(),G=No(I.as("s")),de=No(I.as("m")),Te=No(I.as("h")),je=No(I.as("d")),et=No(I.as("M")),bn=No(I.as("w")),Ao=No(I.as("y")),nr=G<=g.ss&&["s",G]||G<g.s&&["ss",G]||de<=1&&["m"]||de<g.m&&["mm",de]||Te<=1&&["h"]||Te<g.h&&["hh",Te]||je<=1&&["d"]||je<g.d&&["dd",je];return g.w!=null&&(nr=nr||bn<=1&&["w"]||bn<g.w&&["ww",bn]),nr=nr||et<=1&&["M"]||et<g.M&&["MM",et]||Ao<=1&&["y"]||["yy",Ao],nr[2]=h,nr[3]=+c>0,nr[4]=_,yS.apply(null,nr)}function bS(c){return c===void 0?No:typeof c=="function"?(No=c,!0):!1}function wS(c,h){return Kr[c]===void 0?!1:h===void 0?Kr[c]:(Kr[c]=h,c==="s"&&(Kr.ss=h-1),!0)}function CS(c,h){if(!this.isValid())return this.localeData().invalidDate();var g=!1,_=Kr,I,G;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(g=c),typeof h=="object"&&(_=Object.assign({},Kr,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),I=this.localeData(),G=vS(this,!g,_,I),g&&(G=I.pastFuture(+this,G)),I.postformat(G)}var Lc=Math.abs;function Xr(c){return(c>0)-(c<0)||+c}function Ta(){if(!this.isValid())return this.localeData().invalidDate();var c=Lc(this._milliseconds)/1e3,h=Lc(this._days),g=Lc(this._months),_,I,G,de,Te=this.asSeconds(),je,et,bn,Ao;return Te?(_=Sn(c/60),I=Sn(_/60),c%=60,_%=60,G=Sn(g/12),g%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",je=Te<0?"-":"",et=Xr(this._months)!==Xr(Te)?"-":"",bn=Xr(this._days)!==Xr(Te)?"-":"",Ao=Xr(this._milliseconds)!==Xr(Te)?"-":"",je+"P"+(G?et+G+"Y":"")+(g?et+g+"M":"")+(h?bn+h+"D":"")+(I||_||c?"T":"")+(I?Ao+I+"H":"")+(_?Ao+_+"M":"")+(c?Ao+de+"S":"")):"P0D"}var nt=wa.prototype;nt.isValid=pw,nt.abs=qC,nt.add=GC,nt.subtract=KC,nt.as=ZC,nt.asMilliseconds=Gh,nt.asSeconds=QC,nt.asMinutes=JC,nt.asHours=eS,nt.asDays=tS,nt.asWeeks=nS,nt.asMonths=oS,nt.asQuarters=rS,nt.asYears=sS,nt.valueOf=iS,nt._bubble=XC,nt.clone=aS,nt.get=lS,nt.milliseconds=cS,nt.seconds=dS,nt.minutes=uS,nt.hours=hS,nt.days=fS,nt.weeks=gS,nt.months=pS,nt.years=mS,nt.humanize=CS,nt.toISOString=Ta,nt.toString=Ta,nt.toJSON=Ta,nt.locale=Nh,nt.localeData=Fh,nt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ta),nt.lang=Ah,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Re("x",ln),Re("X",Qt),mt("X",function(c,h,g){g._d=new Date(parseFloat(c)*1e3)}),mt("x",function(c,h,g){g._d=new Date(qe(c))});//! moment.js
|
|
262
|
+
return o.version="2.30.1",r(Dt),o.fn=ge,o.min=dw,o.max=uw,o.now=hw,o.utc=b,o.unix=jC,o.months=BC,o.isDate=p,o.locale=er,o.invalid=x,o.duration=no,o.isMoment=F,o.weekdays=zC,o.parseZone=WC,o.localeData=Oo,o.isDuration=Ca,o.monthsShort=HC,o.weekdaysMin=UC,o.defineLocale=xc,o.updateLocale=Wb,o.locales=Bb,o.weekdaysShort=YC,o.normalizeUnits=Ae,o.relativeTimeRounding=bS,o.relativeTimeThreshold=wS,o.calendarFormat=Lw,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})}(rl)),rl.exports}HN();const zN=`
|
|
228
263
|
html body {
|
|
229
264
|
font-family: "Courier", "sans-serif";
|
|
230
265
|
font-size: 12px;
|
|
@@ -269,13 +304,24 @@ return i.version="2.30.1",s(Ke),i.fn=X,i.min=ef,i.max=tf,i.now=rf,i.utc=R,i.unix
|
|
|
269
304
|
.align_left {
|
|
270
305
|
text-align: left;
|
|
271
306
|
}
|
|
272
|
-
`;class
|
|
273
|
-
`+
|
|
274
|
-
Expecting `+
|
|
275
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(
|
|
276
|
-
`+
|
|
277
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const
|
|
307
|
+
`;class lv{constructor(){this.clientId=0,this.clientName="",this.cssStyles=zN}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 ZN(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=iy(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=u.printer||w||u.formatter;let m=a[p];if(d){const v=u.groupTotalsFormatter;m=v?v(a,u,o):""}else b&&(m=b(0,0,m,u,a,o));f.innerText=m||"",r.append(f)});return r}print(t,n,o){this.clientId=n,this.clientName=o;const r=window.open(),i=document.createElement("title");i.innerText=t.name||t.id;const a=r.document.querySelector("head");a.append(i),a.append(this.createStyleElement()),r.document.querySelector("body").append(this.createTableElement(t)),r.print()}}function YN(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 UN{constructor(t){this.hotKeysBehavior=new ED,this.filter=new OI,this.downloadManager=new RD,this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new lv;const{downloadManager:n,filter:o,hotKeys:r,id:i,name:a,printer:l}=t;this.id=i,this.name=a||"",r&&(this.hotKeysBehavior=r),l&&(this.printer=l),o&&(this.filter=o),n&&(this.downloadManager=n)}createGrid(t,n,o){this.reset();const r=new ON(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(Gp(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){YN(`#${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(Gp(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class qN extends Ku{constructor(){super(...arguments),this.x=0,this.y=0}}const Cn=new qN,GN=e=>{const t=e.getLength()-1;return e.getItem(t)},KN=e=>{const n=e.getData().getItems();let o=0;return n.forEach(r=>{r.id>o&&(o=r.id)}),o},XN=()=>{ov.commitCurrentEdit()},ZN=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t};function cv(e){return function(t){t.preventDefault(),XN(),Cn.table=e,Cn.x=t.pageX||0,Cn.y=t.pageY||0,Cn.notify()}}class QN extends Ku{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const ii=new QN,JN=e=>{function t(){if(e.id!==ii.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,ii.activeTable=e,ii.notify()}ze.useEffect(()=>{ii.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{ii.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])};function eA(e,t){const o=e.getColumns()[t].id,r=e.getFooterRowColumn(o);r.textContent="TOTAL:"}function tA(e,t){return e.reduce((n,o)=>(o.isDeleted||(n+=o[t]||0),n),0)}function nA(e,t){const n=e.getColumns()[t],o=n.field,i=e.getData().getItems(),a=tA(i,o),l=e.getFooterRowColumn(o),d=n.formatter;l.textContent=`${d?d(0,0,a,n,null,e):a}`}function oA(e,t){const o=t.getColumns()[e].totalCellContent;if(o)switch(o){case"title":{eA(t,e);break}case"sum":nA(t,e);break}}function dv(e){let t=e.getColumns().length;for(;t--;)oA(t,e)}const rA=e=>{ze.useEffect(()=>{function t(n){const o=n.grid;o&&dv(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},Gp=e=>t=>{t.keyCode===bm.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},sA=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.getData().updateItem(r.id,r),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},iA=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},aA=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())},lA=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,M){for(C=C||{},M=x.length;M--;C[x[M]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],w=[5,6,7,8,9,10,11,12,14],b=[5,6,7,14],m=[5,6,7,8,9,14],v={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"^":10,"!":11,"%":12,"(":13,")":14,NUMBER:15,E:16,PI:17,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"^",11:"!",12:"%",13:"(",14:")",15:"NUMBER",16:"E",17:"PI"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,3],[4,1],[4,1],[4,1]],performAction:function(S,C,M,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(w,[2,11]),e(w,[2,12]),e(w,[2,13]),{1:[2,1]},{4:18,7:t,13:n,15:o,16:r,17:i},{4:19,7:t,13:n,15:o,16:r,17:i},{4:20,7:t,13:n,15:o,16:r,17:i},{4:21,7:t,13:n,15:o,16:r,17:i},{4:22,7:t,13:n,15:o,16:r,17:i},e(w,[2,7]),e(w,[2,8]),e(w,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(b,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(b,[2,3],{8:d,9:u,10:f,11:p,12:y}),e(m,[2,4],{10:f,11:p,12:y}),e(m,[2,5],{10:f,11:p,12:y}),e([5,6,7,8,9,10,14],[2,6],{11:p,12:y}),e(w,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const M=new Error(S);throw M.hash=C,M}},parse:function(S){const C=this;let M=[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 O=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 W,ne,oe,se;const j={};let J,ee,te,ce;for(;;){if(ne=M[M.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((W===null||typeof W>"u")&&(W=V()),oe=z[ne]&&z[ne][W]),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)+`:
|
|
308
|
+
`+H.showPosition()+`
|
|
309
|
+
Expecting `+ce.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ie="Parse error on line "+($+1)+": Unexpected "+(W==q?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ie,{text:H.match,token:this.terminals_[W]||W,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: "+W);switch(oe[0]){case 1:M.push(W),A.push(H.yytext),F.push(H.yylloc),M.push(oe[1]),W=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},O&&(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&&(M=M.slice(0,-1*ee*2),A=A.slice(0,-1*ee),F=F.slice(0,-1*ee)),M.push(this.productions_[oe[1]][0]),A.push(j.$),F.push(j._$),te=z[M[M.length-2]][M[M.length-1]],M.push(te);break;case 3:return!0}}return!0}},k=function(){return{EOF:1,parseError:function(C,M){if(this.yy.parser)this.yy.parser.parseError(C,M);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,M=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),M.length-1&&(this.yylineno-=M.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:M?(M.length===A.length?this.yylloc.first_column:0)+A[A.length-M.length].length-M[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).
|
|
310
|
+
`+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()+`
|
|
311
|
+
`+C+"^"},test_match:function(S,C){let M,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],M=this.performAction.call(this,this.yy,this,C,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),M)return M;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,M,A;this._more||(this.yytext="",this.match="");const F=this._currentRules();for(let z=0;z<F.length;z++)if(M=this._input.match(this.rules[F[z]]),M&&(!C||M[0].length>C[0].length)){if(C=M,A=z,this.options.backtrack_lexer){if(S=this.test_match(M,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.
|
|
312
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){const C=this.next();return C||this.lex()},begin:function(C){this.conditionStack.push(C)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(C){return C=this.conditionStack.length-1-Math.abs(C||0),C>=0?this.conditionStack[C]:"INITIAL"},pushState:function(C){this.begin(C)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(C,M,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=k;function D(){this.yy={},this.parse=this.parse.bind(this)}return D.prototype=v,v.Parser=D,new D}();typeof require<"u"&&typeof exports<"u"&&(exports.parser=Or,exports.Parser=Or.Parser,exports.parse=function(){return Or.parse.apply(Or,arguments)});const uv=2;class cA extends jp{isValueChanged(){const t=lA(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(uv),this.input.value=this.defaultValue,this.input.defaultValue=this.input.value,this.input.select()}serializeValue(){let t=Or.parse(this.input.value||"0");jp.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}}}cA.DefaultDecimalPlaces=uv;var sl={exports:{}};const dA=xS(kI);/*!
|
|
278
313
|
* Pikaday
|
|
279
314
|
*
|
|
280
315
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
281
|
-
*/var XS=mn.exports,qh;function KS(){return qh||(qh=1,function(e,t){(function(r,i){var s;{try{s=qS}catch{}e.exports=i(s)}})(XS,function(r){var i=typeof r=="function",s=!!window.addEventListener,o=window.document,l=window.setTimeout,h=function(T,S,P,A){s?T.addEventListener(S,P,!!A):T.attachEvent("on"+S,P)},d=function(T,S,P,A){s?T.removeEventListener(S,P,!!A):T.detachEvent("on"+S,P)},f=function(T){return T.trim?T.trim():T.replace(/^\s+|\s+$/g,"")},p=function(T,S){return(" "+T.className+" ").indexOf(" "+S+" ")!==-1},m=function(T,S){p(T,S)||(T.className=T.className===""?S:T.className+" "+S)},C=function(T,S){T.className=f((" "+T.className+" ").replace(" "+S+" "," "))},k=function(T){return/Array/.test(Object.prototype.toString.call(T))},R=function(T){return/Date/.test(Object.prototype.toString.call(T))&&!isNaN(T.getTime())},y=function(T){var S=T.getDay();return S===0||S===6},O=function(T){return T%4===0&&T%100!==0||T%400===0},F=function(T,S){return[31,O(T)?29:28,31,30,31,30,31,31,30,31,30,31][S]},B=function(T){R(T)&&T.setHours(0,0,0,0)},N=function(T,S){return T.getTime()===S.getTime()},x=function(T,S,P){var A,$;for(A in S)$=T[A]!==void 0,$&&typeof S[A]=="object"&&S[A]!==null&&S[A].nodeName===void 0?R(S[A])?P&&(T[A]=new Date(S[A].getTime())):k(S[A])?P&&(T[A]=S[A].slice(0)):T[A]=x({},S[A],P):(P||!$)&&(T[A]=S[A]);return T},v=function(T,S,P){var A;o.createEvent?(A=o.createEvent("HTMLEvents"),A.initEvent(S,!0,!1),A=x(A,P),T.dispatchEvent(A)):o.createEventObject&&(A=o.createEventObject(),A=x(A,P),T.fireEvent("on"+S,A))},L=function(T){return T.month<0&&(T.year-=Math.ceil(Math.abs(T.month)/12),T.month+=12),T.month>11&&(T.year+=Math.floor(Math.abs(T.month)/12),T.month-=12),T},z={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},q=function(T,S,P){for(S+=T.firstDay;S>=7;)S-=7;return P?T.i18n.weekdaysShort[S]:T.i18n.weekdays[S]},te=function(T){var S=[],P="false";if(T.isEmpty)if(T.showDaysInNextAndPreviousMonths)S.push("is-outside-current-month"),T.enableSelectionDaysInNextAndPreviousMonths||S.push("is-selection-disabled");else return'<td class="is-empty"></td>';return T.isDisabled&&S.push("is-disabled"),T.isToday&&S.push("is-today"),T.isSelected&&(S.push("is-selected"),P="true"),T.hasEvent&&S.push("has-event"),T.isInRange&&S.push("is-inrange"),T.isStartRange&&S.push("is-startrange"),T.isEndRange&&S.push("is-endrange"),'<td data-day="'+T.day+'" class="'+S.join(" ")+'" aria-selected="'+P+'"><button class="pika-button pika-day" type="button" data-pika-year="'+T.year+'" data-pika-month="'+T.month+'" data-pika-day="'+T.day+'">'+T.day+"</button></td>"},w=function(T,S){T.setHours(0,0,0,0);var P=T.getDate(),A=T.getDay(),$=S,j=$-1,V=7,Y=function(ie){return(ie+V-1)%V};T.setDate(P+j-Y(A));var Q=new Date(T.getFullYear(),0,$),J=24*60*60*1e3,he=(T.getTime()-Q.getTime())/J,ue=1+Math.round((he-j+Y(Q.getDay()))/V);return ue},G=function(T,S,P,A){var $=new Date(P,S,T),j=i?r($).isoWeek():w($,A);return'<td class="pika-week">'+j+"</td>"},ce=function(T,S,P,A){return'<tr class="pika-row'+(P?" pick-whole-week":"")+(A?" is-selected":"")+'">'+(S?T.reverse():T).join("")+"</tr>"},oe=function(T){return"<tbody>"+T.join("")+"</tbody>"},ve=function(T){var S,P=[];for(T.showWeekNumber&&P.push("<th></th>"),S=0;S<7;S++)P.push('<th scope="col"><abbr title="'+q(T,S)+'">'+q(T,S,!0)+"</abbr></th>");return"<thead><tr>"+(T.isRTL?P.reverse():P).join("")+"</tr></thead>"},Fe=function(T,S,P,A,$,j){var V,Y,Q,J=T._o,he=P===J.minYear,ue=P===J.maxYear,ie='<div id="'+j+'" class="pika-title" role="heading" aria-live="assertive">',ze,I,Ue=!0,ot=!0;for(Q=[],V=0;V<12;V++)Q.push('<option value="'+(P===$?V-S:12+V-S)+'"'+(V===A?' selected="selected"':"")+(he&&V<J.minMonth||ue&&V>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[V]+"</option>");for(ze='<div class="pika-label">'+J.i18n.months[A]+'<select class="pika-select pika-select-month" tabindex="-1">'+Q.join("")+"</select></div>",k(J.yearRange)?(V=J.yearRange[0],Y=J.yearRange[1]+1):(V=P-J.yearRange,Y=1+P+J.yearRange),Q=[];V<Y&&V<=J.maxYear;V++)V>=J.minYear&&Q.push('<option value="'+V+'"'+(V===P?' selected="selected"':"")+">"+V+"</option>");return I='<div class="pika-label">'+P+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+Q.join("")+"</select></div>",J.showMonthAfterYear?ie+=I+ze:ie+=ze+I,he&&(A===0||J.minMonth>=A)&&(Ue=!1),ue&&(A===11||J.maxMonth<=A)&&(ot=!1),S===0&&(ie+='<button class="pika-prev'+(Ue?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),S===T._o.numberOfMonths-1&&(ie+='<button class="pika-next'+(ot?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),ie+="</div>"},me=function(T,S,P){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+P+'">'+ve(T)+oe(S)+"</table>"},De=function(T){var S=this,P=S.config(T);S._onMouseDown=function($){if(S._v){$=$||window.event;var j=$.target||$.srcElement;if(j)if(p(j,"is-disabled")||(p(j,"pika-button")&&!p(j,"is-empty")&&!p(j.parentNode,"is-disabled")?(S.setDate(new Date(j.getAttribute("data-pika-year"),j.getAttribute("data-pika-month"),j.getAttribute("data-pika-day"))),P.bound&&l(function(){S.hide(),P.blurFieldOnSelect&&P.field&&P.field.blur()},100)):p(j,"pika-prev")?S.prevMonth():p(j,"pika-next")&&S.nextMonth()),p(j,"pika-select"))S._c=!0;else if($.preventDefault)$.preventDefault();else return $.returnValue=!1,!1}},S._onChange=function($){$=$||window.event;var j=$.target||$.srcElement;j&&(p(j,"pika-select-month")?S.gotoMonth(j.value):p(j,"pika-select-year")&&S.gotoYear(j.value))},S._onKeyChange=function($){if($=$||window.event,S.isVisible())switch($.keyCode){case 13:case 27:P.field&&P.field.blur();break;case 37:S.adjustDate("subtract",1);break;case 38:S.adjustDate("subtract",7);break;case 39:S.adjustDate("add",1);break;case 40:S.adjustDate("add",7);break;case 8:case 46:S.setDate(null);break}},S._parseFieldValue=function(){if(P.parse)return P.parse(P.field.value,P.format);if(i){var $=r(P.field.value,P.format,P.formatStrict);return $&&$.isValid()?$.toDate():null}else return new Date(Date.parse(P.field.value))},S._onInputChange=function($){var j;$.firedBy!==S&&(j=S._parseFieldValue(),R(j)&&S.setDate(j),S._v||S.show())},S._onInputFocus=function(){S.show()},S._onInputClick=function(){S.show()},S._onInputBlur=function(){var $=o.activeElement;do if(p($,"pika-single"))return;while($=$.parentNode);S._c||(S._b=l(function(){S.hide()},50)),S._c=!1},S._onClick=function($){$=$||window.event;var j=$.target||$.srcElement,V=j;if(j){!s&&p(j,"pika-select")&&(j.onchange||(j.setAttribute("onchange","return;"),h(j,"change",S._onChange)));do if(p(V,"pika-single")||V===P.trigger)return;while(V=V.parentNode);S._v&&j!==P.trigger&&V!==P.trigger&&S.hide()}},S.el=o.createElement("div"),S.el.className="pika-single"+(P.isRTL?" is-rtl":"")+(P.theme?" "+P.theme:""),h(S.el,"mousedown",S._onMouseDown,!0),h(S.el,"touchend",S._onMouseDown,!0),h(S.el,"change",S._onChange),P.keyboardInput&&h(o,"keydown",S._onKeyChange),P.field&&(P.container?P.container.appendChild(S.el):P.bound?o.body.appendChild(S.el):P.field.parentNode.insertBefore(S.el,P.field.nextSibling),h(P.field,"change",S._onInputChange),P.defaultDate||(P.defaultDate=S._parseFieldValue(),P.setDefaultDate=!0));var A=P.defaultDate;R(A)?P.setDefaultDate?S.setDate(A,!0):S.gotoDate(A):S.gotoDate(new Date),P.bound?(this.hide(),S.el.className+=" is-bound",h(P.trigger,"click",S._onInputClick),h(P.trigger,"focus",S._onInputFocus),h(P.trigger,"blur",S._onInputBlur)):this.show()};return De.prototype={config:function(T){this._o||(this._o=x({},z,!0));var S=x(this._o,T,!0);S.isRTL=!!S.isRTL,S.field=S.field&&S.field.nodeName?S.field:null,S.theme=typeof S.theme=="string"&&S.theme?S.theme:null,S.bound=!!(S.bound!==void 0?S.field&&S.bound:S.field),S.trigger=S.trigger&&S.trigger.nodeName?S.trigger:S.field,S.disableWeekends=!!S.disableWeekends,S.disableDayFn=typeof S.disableDayFn=="function"?S.disableDayFn:null;var P=parseInt(S.numberOfMonths,10)||1;if(S.numberOfMonths=P>4?4:P,R(S.minDate)||(S.minDate=!1),R(S.maxDate)||(S.maxDate=!1),S.minDate&&S.maxDate&&S.maxDate<S.minDate&&(S.maxDate=S.minDate=!1),S.minDate&&this.setMinDate(S.minDate),S.maxDate&&this.setMaxDate(S.maxDate),k(S.yearRange)){var A=new Date().getFullYear()-10;S.yearRange[0]=parseInt(S.yearRange[0],10)||A,S.yearRange[1]=parseInt(S.yearRange[1],10)||A}else S.yearRange=Math.abs(parseInt(S.yearRange,10))||z.yearRange,S.yearRange>100&&(S.yearRange=100);return S},toString:function(T){return T=T||this._o.format,R(this._d)?this._o.toString?this._o.toString(this._d,T):i?r(this._d).format(T):this._d.toDateString():""},getMoment:function(){return i?r(this._d):null},setMoment:function(T,S){i&&r.isMoment(T)&&this.setDate(T.toDate(),S)},getDate:function(){return R(this._d)?new Date(this._d.getTime()):null},setDate:function(T,S){if(!T)return this._d=null,this._o.field&&(this._o.field.value="",v(this._o.field,"change",{firedBy:this})),this.draw();if(typeof T=="string"&&(T=new Date(Date.parse(T))),!!R(T)){var P=this._o.minDate,A=this._o.maxDate;R(P)&&T<P?T=P:R(A)&&T>A&&(T=A),this._d=new Date(T.getTime()),B(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),v(this._o.field,"change",{firedBy:this})),!S&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(T){var S=!0;if(R(T)){if(this.calendars){var P=new Date(this.calendars[0].year,this.calendars[0].month,1),A=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),$=T.getTime();A.setMonth(A.getMonth()+1),A.setDate(A.getDate()-1),S=$<P.getTime()||A.getTime()<$}S&&(this.calendars=[{month:T.getMonth(),year:T.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(T,S){var P=this.getDate()||new Date,A=parseInt(S)*24*60*60*1e3,$;T==="add"?$=new Date(P.valueOf()+A):T==="subtract"&&($=new Date(P.valueOf()-A)),this.setDate($)},adjustCalendars:function(){this.calendars[0]=L(this.calendars[0]);for(var T=1;T<this._o.numberOfMonths;T++)this.calendars[T]=L({month:this.calendars[0].month+T,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(T){isNaN(T)||(this.calendars[0].month=parseInt(T,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(T){isNaN(T)||(this.calendars[0].year=parseInt(T,10),this.adjustCalendars())},setMinDate:function(T){T instanceof Date?(B(T),this._o.minDate=T,this._o.minYear=T.getFullYear(),this._o.minMonth=T.getMonth()):(this._o.minDate=z.minDate,this._o.minYear=z.minYear,this._o.minMonth=z.minMonth,this._o.startRange=z.startRange),this.draw()},setMaxDate:function(T){T instanceof Date?(B(T),this._o.maxDate=T,this._o.maxYear=T.getFullYear(),this._o.maxMonth=T.getMonth()):(this._o.maxDate=z.maxDate,this._o.maxYear=z.maxYear,this._o.maxMonth=z.maxMonth,this._o.endRange=z.endRange),this.draw()},setStartRange:function(T){this._o.startRange=T},setEndRange:function(T){this._o.endRange=T},draw:function(T){if(!(!this._v&&!T)){var S=this._o,P=S.minYear,A=S.maxYear,$=S.minMonth,j=S.maxMonth,V="",Y;this._y<=P&&(this._y=P,!isNaN($)&&this._m<$&&(this._m=$)),this._y>=A&&(this._y=A,!isNaN(j)&&this._m>j&&(this._m=j));for(var Q=0;Q<S.numberOfMonths;Q++)Y="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),V+='<div class="pika-lendar">'+Fe(this,Q,this.calendars[Q].year,this.calendars[Q].month,this.calendars[0].year,Y)+this.render(this.calendars[Q].year,this.calendars[Q].month,Y)+"</div>";this.el.innerHTML=V,S.bound&&S.field.type!=="hidden"&&l(function(){S.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),S.bound&&S.field.setAttribute("aria-label",S.ariaLabel)}},adjustPosition:function(){var T,S,P,A,$,j,V,Y,Q,J,he,ue;if(!this._o.container){if(this.el.style.position="absolute",T=this._o.trigger,S=T,P=this.el.offsetWidth,A=this.el.offsetHeight,$=window.innerWidth||o.documentElement.clientWidth,j=window.innerHeight||o.documentElement.clientHeight,V=window.pageYOffset||o.body.scrollTop||o.documentElement.scrollTop,he=!0,ue=!0,typeof T.getBoundingClientRect=="function")J=T.getBoundingClientRect(),Y=J.left+window.pageXOffset,Q=J.bottom+window.pageYOffset;else for(Y=S.offsetLeft,Q=S.offsetTop+S.offsetHeight;S=S.offsetParent;)Y+=S.offsetLeft,Q+=S.offsetTop;(this._o.reposition&&Y+P>$||this._o.position.indexOf("right")>-1&&Y-P+T.offsetWidth>0)&&(Y=Y-P+T.offsetWidth,he=!1),(this._o.reposition&&Q+A>j+V||this._o.position.indexOf("top")>-1&&Q-A-T.offsetHeight>0)&&(Q=Q-A-T.offsetHeight,ue=!1),this.el.style.left=Y+"px",this.el.style.top=Q+"px",m(this.el,he?"left-aligned":"right-aligned"),m(this.el,ue?"bottom-aligned":"top-aligned"),C(this.el,he?"right-aligned":"left-aligned"),C(this.el,ue?"top-aligned":"bottom-aligned")}},render:function(T,S,P){var A=this._o,$=new Date,j=F(T,S),V=new Date(T,S,1).getDay(),Y=[],Q=[];B($),A.firstDay>0&&(V-=A.firstDay,V<0&&(V+=7));for(var J=S===0?11:S-1,he=S===11?0:S+1,ue=S===0?T-1:T,ie=S===11?T+1:T,ze=F(ue,J),I=j+V,Ue=I;Ue>7;)Ue-=7;I+=7-Ue;for(var ot=!1,Xe=0,zt=0;Xe<I;Xe++){var wt=new Date(T,S,1+(Xe-V)),$t=R(this._d)?N(wt,this._d):!1,Ot=N(wt,$),Fr=A.events.indexOf(wt.toDateString())!==-1,pt=Xe<V||Xe>=j+V,Tt=1+(Xe-V),ge=S,ir=T,gr=A.startRange&&N(A.startRange,wt),ct=A.endRange&&N(A.endRange,wt),Ir=A.startRange&&A.endRange&&A.startRange<wt&&wt<A.endRange,Qr=A.minDate&&wt<A.minDate||A.maxDate&&wt>A.maxDate||A.disableWeekends&&y(wt)||A.disableDayFn&&A.disableDayFn(wt);pt&&(Xe<V?(Tt=ze+Tt,ge=J,ir=ue):(Tt=Tt-j,ge=he,ir=ie));var yr={day:Tt,month:ge,year:ir,hasEvent:Fr,isSelected:$t,isToday:Ot,isDisabled:Qr,isEmpty:pt,isStartRange:gr,isEndRange:ct,isInRange:Ir,showDaysInNextAndPreviousMonths:A.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:A.enableSelectionDaysInNextAndPreviousMonths};A.pickWholeWeek&&$t&&(ot=!0),Q.push(te(yr)),++zt===7&&(A.showWeekNumber&&Q.unshift(G(Xe-V,S,T,A.firstWeekOfYearMinDays)),Y.push(ce(Q,A.isRTL,A.pickWholeWeek,ot)),Q=[],zt=0,ot=!1)}return me(A,Y,P)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),C(this.el,"is-hidden"),this._o.bound&&(h(o,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var T=this._v;T!==!1&&(this._o.bound&&d(o,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),m(this.el,"is-hidden"),this._v=!1,T!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var T=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),T.keyboardInput&&d(o,"keydown",this._onKeyChange),T.field&&(d(T.field,"change",this._onInputChange),T.bound&&(d(T.trigger,"click",this._onInputClick),d(T.trigger,"focus",this._onInputFocus),d(T.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},De})}(mn)),mn.exports}KS();function ZS(e){if(!e.getSelectionModel())return Xh(e);let t=e.getSelectedRows();return t.sort((r,i)=>r-i),t.length===0&&(t=Xh(e)),t}function Xh(e){const t=e.getData();return Array.from({length:t.getLength()},(r,i)=>i)}class JS{constructor(){this.emptyValue="1/1/1970"}dates(t,r){const i=Li(t||this.emptyValue),s=Li(r||this.emptyValue);return i-s}numbers(t,r){return Number(t||0)-Number(r||0)}strings(t,r){return(t||"").toLowerCase()>(r||"").toLowerCase()?1:(t||"").toLowerCase()<(r||"").toLowerCase()?-1:0}}const QS=new JS;class eR{constructor(){this.resetSorting=!1,this.sort=QS,this.sortedColumnId="",this.withFormatter=[Vr.TEXT,Vr.NUMBER_FORMATTED]}onSort(){return(t,r)=>{const{grid:i,sortCol:s,sortAsc:o}=r;if(!i)return;const{formatter:l}=s;this.reset(r);const h=i.getData(),d=s?.sortAs;h.getItems().sort((p,m)=>{if(this.resetSorting)return p.id-m.id;const C=s?.field;if(!C)return 0;const k=o?1:-1;let R=p[C],y=m[C];switch(l&&this.withFormatter.includes(d)&&(R=l(0,0,R,s,p,i),y=l(0,0,y,s,m,i)),d){case Vr.DATE:return this.priority(p,m)||this.sort.dates(R,y)*k;case Vr.NUMBER:case Vr.NUMBER_FORMATTED:return this.priority(p,m)||this.sort.numbers(R,y)*k;case Vr.TEXT:return this.priority(p,m)||this.sort.strings(R,y)*k}}),h.refresh()}}priority(t,r){return 0}reset(t){const{grid:r,sortCol:i,sortAsc:s}=t;if(r)if(s&&this.sortedColumnId===i?.id)this.resetSorting=!0,r.setSortColumns([]),this.sortedColumnId="";else{this.resetSorting=!1;const o=r.getSortColumns();this.sortedColumnId=o[0]?.columnId}}}new eR;function tR(e){nt.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const r=document.getElementById(Kh);if(!r)return;const{x:i,y:s}=Pt;_m(r,i,s)},0)}return Pt.subscribe(t),()=>{Pt.unsubscribe(t)}},[])}const rR=vt("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),iR=vt("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),sR=vt("span")(({theme:e})=>({backgroundColor:e.palette.text.primary})),St={Ul:rR,Li:iR,Icon:sR},nR=({clientId:e,clientName:t,setIsOpened:r})=>{const i=()=>{const s=Pt.table,o=s?.grid;if(!s||!o){r(!1);return}s.downloadManager.download(s,e,t),r(!1)};return le.jsxs(St.Li,{onClick:i,children:[le.jsx(St.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},oR=({setIsOpened:e})=>{const t=Pt.table;function r(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:le.jsxs(St.Li,{onClick:r,children:[le.jsx(St.Icon,{className:"sgi sgi-link"}),"Group"]})};function aR(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const lR=({setIsOpened:e})=>{const t=Pt.table;function r(){if(!t){e(!1);return}const i=t.filter.args;delete i.columnFilters,t.filter.args=i,Fu.highlightAllColumns(i,t.id),e(!1)}return aR(t)?le.jsxs(nt.Fragment,{children:[le.jsx(bn,{}),le.jsxs(St.Li,{onClick:r,children:[le.jsx(St.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},hR=({setIsOpened:e})=>{const t=Pt.table;function r(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?le.jsxs(St.Li,{onClick:r,children:[le.jsx(St.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},cR=({setIsOpened:e})=>{const t=Pt.table;function r(){const i=t?.grid;if(!i)return;i.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?le.jsxs(St.Li,{onClick:r,children:[le.jsx(St.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},uR=({setIsOpened:e})=>{function t(){const r=Pt.table,i=r?.grid;if(!i||!r){e(!1);return}window.navigator.clipboard.writeText(r.downloadManager.createCSV(r)).then(()=>{}).catch(()=>{}),i.getSelectionModel()&&i.setSelectedRows([]),e(!1)}return le.jsxs(St.Li,{onClick:t,children:[le.jsx(St.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},dR=({setIsOpened:e})=>{const t=Pt.table;function r(){const i=t?.grid;if(!i)return;i.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?le.jsxs(St.Li,{onClick:r,children:[le.jsx(St.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},fR=({clientId:e,clientName:t,setIsOpened:r})=>{function i(){const s=Pt.table;s?.printer.print(s,e,t),r(!1)}return le.jsxs(St.Li,{onClick:i,children:[le.jsx(St.Icon,{className:"sgi sgi-printer"}),"Print"]})},pR=({clientId:e,clientName:t})=>{const[r,i]=nt.useState(!1);return tR(i),r?le.jsx(Qw,{setIsOpened:i,children:le.jsxs(St.Ul,{children:[le.jsx(fR,{clientId:e,clientName:t,setIsOpened:i}),le.jsx(uR,{setIsOpened:i}),le.jsx(nR,{clientId:e,clientName:t,setIsOpened:i}),le.jsx(lR,{setIsOpened:i}),le.jsx(hR,{setIsOpened:i}),le.jsx(oR,{setIsOpened:i}),le.jsx(dR,{setIsOpened:i}),le.jsx(cR,{setIsOpened:i})]})}):null};exports.ContextMenu=pR;exports.DecoratorColumnFilter=NS;exports.DecoratorFilter=Lu;exports.DefaultPrinter=Yu;exports.DeletedRowsFilter=sS;exports.EColumnFiltersGroup=Wi;exports.Filter=Nu;exports.SlickTable=YS;exports.openColumnFilter=oS;exports.openContextMenu=VS;
|
|
316
|
+
*/var uA=sl.exports,Kp;function hA(){return Kp||(Kp=1,function(e,t){(function(n,o){var r;{try{r=dA}catch{}e.exports=o(r)}})(uA,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(N,O,V,W){r?N.addEventListener(O,V,!!W):N.attachEvent("on"+O,V)},d=function(N,O,V,W){r?N.removeEventListener(O,V,!!W):N.detachEvent("on"+O,V)},u=function(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")},f=function(N,O){return(" "+N.className+" ").indexOf(" "+O+" ")!==-1},p=function(N,O){f(N,O)||(N.className=N.className===""?O:N.className+" "+O)},y=function(N,O){N.className=u((" "+N.className+" ").replace(" "+O+" "," "))},w=function(N){return/Array/.test(Object.prototype.toString.call(N))},b=function(N){return/Date/.test(Object.prototype.toString.call(N))&&!isNaN(N.getTime())},m=function(N){var O=N.getDay();return O===0||O===6},v=function(N){return N%4===0&&N%100!==0||N%400===0},k=function(N,O){return[31,v(N)?29:28,31,30,31,30,31,31,30,31,30,31][O]},D=function(N){b(N)&&N.setHours(0,0,0,0)},x=function(N,O){return N.getTime()===O.getTime()},S=function(N,O,V){var W,ne;for(W in O)ne=N[W]!==void 0,ne&&typeof O[W]=="object"&&O[W]!==null&&O[W].nodeName===void 0?b(O[W])?V&&(N[W]=new Date(O[W].getTime())):w(O[W])?V&&(N[W]=O[W].slice(0)):N[W]=S({},O[W],V):(V||!ne)&&(N[W]=O[W]);return N},C=function(N,O,V){var W;i.createEvent?(W=i.createEvent("HTMLEvents"),W.initEvent(O,!0,!1),W=S(W,V),N.dispatchEvent(W)):i.createEventObject&&(W=i.createEventObject(),W=S(W,V),N.fireEvent("on"+O,W))},M=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,O,V){for(O+=N.firstDay;O>=7;)O-=7;return V?N.i18n.weekdaysShort[O]:N.i18n.weekdays[O]},z=function(N){var O=[],V="false";if(N.isEmpty)if(N.showDaysInNextAndPreviousMonths)O.push("is-outside-current-month"),N.enableSelectionDaysInNextAndPreviousMonths||O.push("is-selection-disabled");else return'<td class="is-empty"></td>';return N.isDisabled&&O.push("is-disabled"),N.isToday&&O.push("is-today"),N.isSelected&&(O.push("is-selected"),V="true"),N.hasEvent&&O.push("has-event"),N.isInRange&&O.push("is-inrange"),N.isStartRange&&O.push("is-startrange"),N.isEndRange&&O.push("is-endrange"),'<td data-day="'+N.day+'" class="'+O.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,O){N.setHours(0,0,0,0);var V=N.getDate(),W=N.getDay(),ne=O,oe=ne-1,se=7,j=function(ie){return(ie+se-1)%se};N.setDate(V+oe-j(W));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,O,V,W){var ne=new Date(V,O,N),oe=o?n(ne).isoWeek():R(ne,W);return'<td class="pika-week">'+oe+"</td>"},K=function(N,O,V,W){return'<tr class="pika-row'+(V?" pick-whole-week":"")+(W?" is-selected":"")+'">'+(O?N.reverse():N).join("")+"</tr>"},X=function(N){return"<tbody>"+N.join("")+"</tbody>"},q=function(N){var O,V=[];for(N.showWeekNumber&&V.push("<th></th>"),O=0;O<7;O++)V.push('<th scope="col"><abbr title="'+F(N,O)+'">'+F(N,O,!0)+"</abbr></th>");return"<thead><tr>"+(N.isRTL?V.reverse():V).join("")+"</tr></thead>"},Y=function(N,O,V,W,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,B,re=!0,Q=!0;for(J=[],se=0;se<12;se++)J.push('<option value="'+(V===ne?se-O:12+se-O)+'"'+(se===W?' selected="selected"':"")+(te&&se<ee.minMonth||ce&&se>ee.maxMonth?' disabled="disabled"':"")+">"+ee.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+ee.i18n.months[W]+'<select class="pika-select pika-select-month" tabindex="-1">'+J.join("")+"</select></div>",w(ee.yearRange)?(se=ee.yearRange[0],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 B='<div class="pika-label">'+V+ee.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+J.join("")+"</select></div>",ee.showMonthAfterYear?ie+=B+he:ie+=he+B,te&&(W===0||ee.minMonth>=W)&&(re=!1),ce&&(W===11||ee.maxMonth<=W)&&(Q=!1),O===0&&(ie+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+ee.i18n.previousMonth+"</button>"),O===N._o.numberOfMonths-1&&(ie+='<button class="pika-next'+(Q?"":" is-disabled")+'" type="button">'+ee.i18n.nextMonth+"</button>"),ie+="</div>"},H=function(N,O,V){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+V+'">'+q(N)+X(O)+"</table>"},ae=function(N){var O=this,V=O.config(N);O._onMouseDown=function(ne){if(O._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")?(O.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),V.bound&&a(function(){O.hide(),V.blurFieldOnSelect&&V.field&&V.field.blur()},100)):f(oe,"pika-prev")?O.prevMonth():f(oe,"pika-next")&&O.nextMonth()),f(oe,"pika-select"))O._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},O._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?O.gotoMonth(oe.value):f(oe,"pika-select-year")&&O.gotoYear(oe.value))},O._onKeyChange=function(ne){if(ne=ne||window.event,O.isVisible())switch(ne.keyCode){case 13:case 27:V.field&&V.field.blur();break;case 37:O.adjustDate("subtract",1);break;case 38:O.adjustDate("subtract",7);break;case 39:O.adjustDate("add",1);break;case 40:O.adjustDate("add",7);break;case 8:case 46:O.setDate(null);break}},O._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))},O._onInputChange=function(ne){var oe;ne.firedBy!==O&&(oe=O._parseFieldValue(),b(oe)&&O.setDate(oe),O._v||O.show())},O._onInputFocus=function(){O.show()},O._onInputClick=function(){O.show()},O._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);O._c||(O._b=a(function(){O.hide()},50)),O._c=!1},O._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",O._onChange)));do if(f(se,"pika-single")||se===V.trigger)return;while(se=se.parentNode);O._v&&oe!==V.trigger&&se!==V.trigger&&O.hide()}},O.el=i.createElement("div"),O.el.className="pika-single"+(V.isRTL?" is-rtl":"")+(V.theme?" "+V.theme:""),l(O.el,"mousedown",O._onMouseDown,!0),l(O.el,"touchend",O._onMouseDown,!0),l(O.el,"change",O._onChange),V.keyboardInput&&l(i,"keydown",O._onKeyChange),V.field&&(V.container?V.container.appendChild(O.el):V.bound?i.body.appendChild(O.el):V.field.parentNode.insertBefore(O.el,V.field.nextSibling),l(V.field,"change",O._onInputChange),V.defaultDate||(V.defaultDate=O._parseFieldValue(),V.setDefaultDate=!0));var W=V.defaultDate;b(W)?V.setDefaultDate?O.setDate(W,!0):O.gotoDate(W):O.gotoDate(new Date),V.bound?(this.hide(),O.el.className+=" is-bound",l(V.trigger,"click",O._onInputClick),l(V.trigger,"focus",O._onInputFocus),l(V.trigger,"blur",O._onInputBlur)):this.show()};return ae.prototype={config:function(N){this._o||(this._o=S({},A,!0));var O=S(this._o,N,!0);O.isRTL=!!O.isRTL,O.field=O.field&&O.field.nodeName?O.field:null,O.theme=typeof O.theme=="string"&&O.theme?O.theme:null,O.bound=!!(O.bound!==void 0?O.field&&O.bound:O.field),O.trigger=O.trigger&&O.trigger.nodeName?O.trigger:O.field,O.disableWeekends=!!O.disableWeekends,O.disableDayFn=typeof O.disableDayFn=="function"?O.disableDayFn:null;var V=parseInt(O.numberOfMonths,10)||1;if(O.numberOfMonths=V>4?4:V,b(O.minDate)||(O.minDate=!1),b(O.maxDate)||(O.maxDate=!1),O.minDate&&O.maxDate&&O.maxDate<O.minDate&&(O.maxDate=O.minDate=!1),O.minDate&&this.setMinDate(O.minDate),O.maxDate&&this.setMaxDate(O.maxDate),w(O.yearRange)){var W=new Date().getFullYear()-10;O.yearRange[0]=parseInt(O.yearRange[0],10)||W,O.yearRange[1]=parseInt(O.yearRange[1],10)||W}else O.yearRange=Math.abs(parseInt(O.yearRange,10))||A.yearRange,O.yearRange>100&&(O.yearRange=100);return O},toString:function(N){return N=N||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,N):o?n(this._d).format(N):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(N,O){o&&n.isMoment(N)&&this.setDate(N.toDate(),O)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(N,O){if(!N)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof N=="string"&&(N=new Date(Date.parse(N))),!!b(N)){var V=this._o.minDate,W=this._o.maxDate;b(V)&&N<V?N=V:b(W)&&N>W&&(N=W),this._d=new Date(N.getTime()),D(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!O&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(N){var O=!0;if(b(N)){if(this.calendars){var V=new Date(this.calendars[0].year,this.calendars[0].month,1),W=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=N.getTime();W.setMonth(W.getMonth()+1),W.setDate(W.getDate()-1),O=ne<V.getTime()||W.getTime()<ne}O&&(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,O){var V=this.getDate()||new Date,W=parseInt(O)*24*60*60*1e3,ne;N==="add"?ne=new Date(V.valueOf()+W):N==="subtract"&&(ne=new Date(V.valueOf()-W)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=M(this.calendars[0]);for(var N=1;N<this._o.numberOfMonths;N++)this.calendars[N]=M({month:this.calendars[0].month+N,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(N){isNaN(N)||(this.calendars[0].month=parseInt(N,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(N){isNaN(N)||(this.calendars[0].year=parseInt(N,10),this.adjustCalendars())},setMinDate:function(N){N instanceof Date?(D(N),this._o.minDate=N,this._o.minYear=N.getFullYear(),this._o.minMonth=N.getMonth()):(this._o.minDate=A.minDate,this._o.minYear=A.minYear,this._o.minMonth=A.minMonth,this._o.startRange=A.startRange),this.draw()},setMaxDate:function(N){N instanceof Date?(D(N),this._o.maxDate=N,this._o.maxYear=N.getFullYear(),this._o.maxMonth=N.getMonth()):(this._o.maxDate=A.maxDate,this._o.maxYear=A.maxYear,this._o.maxMonth=A.maxMonth,this._o.endRange=A.endRange),this.draw()},setStartRange:function(N){this._o.startRange=N},setEndRange:function(N){this._o.endRange=N},draw:function(N){if(!(!this._v&&!N)){var O=this._o,V=O.minYear,W=O.maxYear,ne=O.minMonth,oe=O.maxMonth,se="",j;this._y<=V&&(this._y=V,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=W&&(this._y=W,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var J=0;J<O.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,O.bound&&O.field.type!=="hidden"&&a(function(){O.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),O.bound&&O.field.setAttribute("aria-label",O.ariaLabel)}},adjustPosition:function(){var N,O,V,W,ne,oe,se,j,J,ee,te,ce;if(!this._o.container){if(this.el.style.position="absolute",N=this._o.trigger,O=N,V=this.el.offsetWidth,W=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof N.getBoundingClientRect=="function")ee=N.getBoundingClientRect(),j=ee.left+window.pageXOffset,J=ee.bottom+window.pageYOffset;else for(j=O.offsetLeft,J=O.offsetTop+O.offsetHeight;O=O.offsetParent;)j+=O.offsetLeft,J+=O.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+W>oe+se||this._o.position.indexOf("top")>-1&&J-W-N.offsetHeight>0)&&(J=J-W-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,O,V){var W=this._o,ne=new Date,oe=k(N,O),se=new Date(N,O,1).getDay(),j=[],J=[];D(ne),W.firstDay>0&&(se-=W.firstDay,se<0&&(se+=7));for(var ee=O===0?11:O-1,te=O===11?0:O+1,ce=O===0?N-1:N,ie=O===11?N+1:N,he=k(ce,ee),B=oe+se,re=B;re>7;)re-=7;B+=7-re;for(var Q=!1,fe=0,me=0;fe<B;fe++){var Ce=new Date(N,O,1+(fe-se)),ve=b(this._d)?x(Ce,this._d):!1,xe=x(Ce,ne),$e=W.events.indexOf(Ce.toDateString())!==-1,Ae=fe<se||fe>=oe+se,rt=1+(fe-se),Pe=O,ft=N,Kt=W.startRange&&x(W.startRange,Ce),st=W.endRange&&x(W.endRange,Ce),Yt=W.startRange&&W.endRange&&W.startRange<Ce&&Ce<W.endRange,Xt=W.minDate&&Ce<W.minDate||W.maxDate&&Ce>W.maxDate||W.disableWeekends&&m(Ce)||W.disableDayFn&&W.disableDayFn(Ce);Ae&&(fe<se?(rt=he+rt,Pe=ee,ft=ce):(rt=rt-oe,Pe=te,ft=ie));var on={day:rt,month:Pe,year:ft,hasEvent:$e,isSelected:ve,isToday:xe,isDisabled:Xt,isEmpty:Ae,isStartRange:Kt,isEndRange:st,isInRange:Yt,showDaysInNextAndPreviousMonths:W.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:W.enableSelectionDaysInNextAndPreviousMonths};W.pickWholeWeek&&ve&&(Q=!0),J.push(z(on)),++me===7&&(W.showWeekNumber&&J.unshift($(fe-se,O,N,W.firstWeekOfYearMinDays)),j.push(K(J,W.isRTL,W.pickWholeWeek,Q)),J=[],me=0,Q=!1)}return H(W,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})}(sl)),sl.exports}hA();function fA(e){if(!e.getSelectionModel())return Xp(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Xp(e)),t}function Xp(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}class pA{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}}const mA=new pA;class gA{constructor(){this.resetSorting=!1,this.sort=mA,this.sortedColumnId="",this.withFormatter=[sr.TEXT,sr.NUMBER_FORMATTED]}onSort(){return(t,n)=>{const{grid:o,sortCol:r,sortAsc:i}=n;if(!o)return;const{formatter:a}=r;this.reset(n);const l=o.getData(),d=r?.sortAs;l.getItems().sort((f,p)=>{if(this.resetSorting)return f.id-p.id;const y=r?.field;if(!y)return 0;const w=i?1:-1;let b=f[y],m=p[y];switch(a&&this.withFormatter.includes(d)&&(b=a(0,0,b,r,f,o),m=a(0,0,m,r,p,o)),d){case sr.DATE:return this.priority(f,p)||this.sort.dates(b,m)*w;case sr.NUMBER:case sr.NUMBER_FORMATTED:return this.priority(f,p)||this.sort.numbers(b,m)*w;case sr.TEXT:return this.priority(f,p)||this.sort.strings(b,m)*w}}),l.refresh()}}priority(t,n){return 0}reset(t){const{grid:n,sortCol:o,sortAsc:r}=t;if(n)if(r&&this.sortedColumnId===o?.id)this.resetSorting=!0,n.setSortColumns([]),this.sortedColumnId="";else{this.resetSorting=!1;const i=n.getSortColumns();this.sortedColumnId=i[0]?.columnId}}}const yA=new gA;function vA(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 Xo=_D(vA),Os={1:"",2:""},ro={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function bA(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 wA(e,t,n){ze.useEffect(()=>{if(!e)return;const o=document.getElementById(Ud);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=wn;if(!a?.grid)return;const f=a.filter.args;wm(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||bA(i),b=y||Os;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function CA(e){ze.useEffect(()=>{function t(){e(!0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}function Hd(e){return{format:Nr.ui,value:e?_e(e,PI):null}}const SA=le(ds)({width:"5em",alignSelf:"flex-end"}),_A={Button:SA},xA=({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 P.jsx(_A.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},RA=le(bu)({padding:0}),EA=le(Ug)({margin:"0.5em 0 0 1em"}),Ha={Checkbox:RA,FormGroup:EA},TA=({setValue:e,value:t})=>{function n(o){e(o),Xo(o)}return P.jsxs(Ha.FormGroup,{children:[P.jsx(Ja,{control:P.jsx(Ha.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),P.jsx(Ja,{control:P.jsx(Ha.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),P.jsx(Ja,{control:P.jsx(Ha.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},kA={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"},PA={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"},Zp=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
|
317
|
+
`);class hv{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=kA,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(Zp);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(Zp);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({},PA,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 ai=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),DA=({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}},_l=(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},xi=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:l})=>{const d=_l(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},OA=(e,t)=>t==null||!e.isValid(t)?null:t,Xn=(e,t,n)=>t==null||!e.isValid(t)?n:t,MA=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Qu=(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},fv=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),IA=["year","month","day"],Qp=e=>IA.includes(e),Ju=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return ai(n,["year"])?r.year:ai(n,["month"])?r.month:ai(n,["day"])?r.dayOfMonth:ai(n,["month","year"])?`${r.month} ${r.year}`:ai(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},NA=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},AA=["hours","minutes","seconds"],FA=e=>AA.includes(e),Jp=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),LA=(e,t)=>(n,o)=>e?t.isAfter(n,o):Jp(n,t)>Jp(o,t),vo={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},$A=e=>Math.max(...e.map(t=>vo[t.type]??1)),li=(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},VA=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():li(t,n,fv(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=li(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=li(t,n,e.maxDate));const a=LA(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=li(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:_l(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=li(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:_l(t,i,e.maxTime))),i},eh=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
318
|
+
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},jA=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},dc=(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))},pv=(e,t,n,o)=>{switch(n){case"month":return Qu(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return dc(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[]}},em="s",WA=["0","1","2","3","4","5","6","7","8","9"],BA=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),em)==="0"?WA:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),em))},Lr=(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("")},th=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),tm=(e,t)=>{const n=Lr(e,t);return n!==" "&&!Number.isNaN(Number(n))},mv=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},gv=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
|
|
319
|
+
This type of format is only supported for 'day' sections`].join(`
|
|
320
|
+
`));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=mv(i,r.maxLength)),th(i,o)},HA=(e,t,n,o,r,i,a,l)=>{const d=jA(o),u=o==="Home",f=o==="End",p=n.value===""||u||f,y=()=>{const b=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),m=x=>gv(e,x,b,i,n),v=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let D=parseInt(Lr(n.value,i),10)+d*v;if(p){if(n.type==="year"&&!f&&!u)return e.formatByString(e.date(void 0,t),n.format);d>0||u?D=b.minimum:D=b.maximum}return D%v!==0&&((d<0||u)&&(D+=v-(v+D)%v),(d>0||f)&&(D-=D%v)),D>b.maximum?m(b.minimum+(D-b.maximum-1)%(b.maximum-b.minimum+1)):D<b.minimum?m(b.maximum-(b.minimum-D-1)%(b.maximum-b.minimum+1)):m(D)},w=()=>{const b=pv(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return d>0||u?b[0]:b[b.length-1];const k=((b.indexOf(n.value)+d)%b.length+b.length)%b.length;return b[k]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():w()},nh=(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(Lr(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},nm=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&eh(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},yv=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,vv=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return yv(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")}},zA=(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(nh(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},YA=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),UA=(e,t,n)=>{const r=e.map(i=>{const a=nh(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},qA=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Qu(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:yv(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=dc(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 Lr(e.formatByString(e.endOfDay(o),d),t)!==u.toString()?{minimum:1,maximum:Number(Lr(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 om=!1;const rm=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!om){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('", "')}"]\`.`),om=!0)}},GA=(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=dc(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}},sm={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},im=(e,t,n,o,r)=>[...n].sort((i,a)=>sm[i.type]-sm[a.type]).reduce((i,a)=>!r||a.modified?GA(e,a,t,i):i,o),KA=()=>navigator.userAgent.toLowerCase().includes("android"),XA=(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]}},zd=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,ZA=(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}},QA=(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}},JA=["value","referenceDate"],To={emptyValue:null,getTodayValue:fv,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=We(e,JA);return t!=null&&o.utils.isValid(t)?t:n??VA(o)},cleanValue:OA,areValuesEqual:MA,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)},eF={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o)=>!e.isValid(t)&&!!n?n:o(t),getV7HiddenInputValueFromSections:YA,getV6InputValueFromSections:UA,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)},tF=["localeText"],xl=T.createContext(null);process.env.NODE_ENV!=="production"&&(xl.displayName="MuiPickersAdapterContext");const uc=function(t){const{localeText:n}=t,o=We(t,tF),{utils:r,localeText:i}=T.useContext(xl)??{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,w=T.useMemo(()=>Z({},y,i,n),[y,i,n]),b=T.useMemo(()=>{if(!d)return r||null;const k=new d({locale:p,formats:u,instance:f});if(!k.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
321
|
+
`));return k},[d,p,u,f,r]),m=T.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),v=T.useMemo(()=>({utils:b,defaultDates:m,localeText:w}),[m,b,w]);return P.jsx(xl.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(uc.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 nF=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Z({},e)}}}}),bv=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)}},wv={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"},oF=wv;nF(wv);const Wr=()=>{const e=T.useContext(xl);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
322
|
+
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
323
|
+
`));const t=T.useMemo(()=>Z({},oF,e.localeText),[e.localeText]);return T.useMemo(()=>Z({},e,{localeText:t}),[e,t])},Nt=()=>Wr().utils,pa=()=>Wr().defaultDates,hc=e=>{const t=Nt(),n=T.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function rF(e){return Oe("MuiPickersToolbar",e)}De("MuiPickersToolbar",["root","content"]);const sF=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],iF=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},rF,t)},aF=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"}}]})),lF=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"}}]}),cF=T.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,sF),f=o,p=iF(f);return l?null:P.jsxs(aF,Z({ref:n,className:Se(p.root,i),ownerState:f},u,{children:[P.jsx(En,{color:"text.secondary",variant:"overline",id:d,children:a}),P.jsx(lF,{className:p.content,ownerState:f,children:r})]}))}),Jo=()=>Wr().localeText;function dF(e){return Oe("MuiDatePickerToolbar",e)}De("MuiDatePickerToolbar",["root","title"]);const uF=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],hF=e=>{const{classes:t}=e;return Ie({root:["root"],title:["title"]},dF,t)},fF=le(cF,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pF=le(En,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Cv=T.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,uF),p=Nt(),y=Jo(),w=hF(o),b=T.useMemo(()=>{if(!r)return l;const v=Ju(p,{format:a,views:d},!0);return p.formatByString(r,v)},[r,a,l,p,d]),m=o;return P.jsx(fF,Z({ref:n,toolbarTitle:y.datePickerToolbarTitle,isLandscape:i,className:Se(w.root,u)},f,{children:P.jsx(pF,{variant:"h4",align:i?"left":"center",ownerState:m,className:w.title,children:b})}))});process.env.NODE_ENV!=="production"&&(Cv.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 Sv(e,t){const n=Nt(),o=pa(),r=Mt({props:e,name:t}),i=T.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Z({},r.localeText,{datePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return Z({},r,{localeText:i},DA({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:Cv},r.slots)})}const ma=({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}};ma.valueManager=To;const _v=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],mF=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],gF=["minDateTime","maxDateTime"],yF=[..._v,...mF,...gF],xv=e=>yF.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Rv(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Wr(),l=T.useRef(n.valueManager.defaultErrorState),d=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(d);T.useEffect(()=>{i&&!n.valueManager.isSameError(d,l.current)&&i(d,o),l.current=d},[n,i,d,o]);const f=Ee(p=>n({adapter:a,value:p,timezone:r,props:t}));return{validationError:d,hasValidationError:u,getValidationErrorForNewValue:f}}function vF(e){return Oe("MuiPickersPopper",e)}De("MuiPickersPopper",["root","paper"]);function bF(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const wF=(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},CF="@media (pointer: fine)",SF="@media (prefers-reduced-motion: reduce)",ws=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),am=ws&&ws[1]?parseInt(ws[1],10):null,lm=ws&&ws[2]?parseInt(ws[2],10):null,_F=am&&am<10||lm&&lm<13||!1,Ev=()=>Qm(SF,{defaultMatches:!1})||_F,xF=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],RF=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},vF,t)},EF=le(Ag,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),TF=le(Ns,{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 kF(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function PF(e,t){const n=T.useRef(!1),o=T.useRef(!1),r=T.useRef(null),i=T.useRef(!1);T.useEffect(()=>{if(!e)return;function d(){i.current=!0}return document.addEventListener("mousedown",d,!0),document.addEventListener("touchstart",d,!0),()=>{document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0),i.current=!1}},[e]);const a=Ee(d=>{if(!i.current)return;const u=o.current;o.current=!1;const f=gn(r.current);if(!r.current||"clientX"in d&&kF(d,f))return;if(n.current){n.current=!1;return}let p;d.composedPath?p=d.composedPath().indexOf(r.current)>-1:p=!f.documentElement.contains(d.target)||r.current.contains(d.target),!p&&!u&&t(d)}),l=()=>{o.current=!0};return T.useEffect(()=>{if(e){const d=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]),T.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 DF=T.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:r,children:i,paperSlotProps:a,paperClasses:l,onPaperClick:d,onPaperTouchStart:u}=e,f=We(e,xF),p=Z({},r,{placement:o}),y=ct({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return P.jsx(n,Z({},f,y,{onClick:w=>{d(w),y.onClick?.(w)},onTouchStart:w=>{u(w),y.onTouchStart?.(w)},ownerState:p,children:i}))});function OF(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:w}=t;T.useEffect(()=>{function Y(H){d&&H.key==="Escape"&&l()}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[l,d]);const b=T.useRef(null);T.useEffect(()=>{u==="tooltip"||i&&!i()||(d?b.current=Nn(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[d,u,i]);const[m,v,k]=PF(d,a??l),D=T.useRef(null),x=at(D,r),S=at(x,m),C=t,M=RF(C),A=Ev(),F=w??A,z=Y=>{Y.key==="Escape"&&(Y.stopPropagation(),l())},R=p?.desktopTransition??F?$r:Vi,$=p?.desktopTrapFocus??Li,K=p?.desktopPaper??TF,X=p?.popper??EF,q=ct({elementType:X,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:u,open:d,anchorEl:n,placement:f,onKeyDown:z},className:M.root,ownerState:t});return P.jsx(X,Z({},q,{children:({TransitionProps:Y,placement:H})=>P.jsx($,Z({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:P.jsx(R,Z({},Y,y?.desktopTransition,{children:P.jsx(DF,{PaperComponent:K,ownerState:C,popperPlacement:H,ref:S,onPaperClick:v,onPaperTouchStart:k,paperClasses:M.paper,paperSlotProps:y?.desktopPaper,children:o})}))}))}))}const cm=new Set;function MF(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
324
|
+
`):e;cm.has(n)||(cm.add(n),t==="error"?console.error(n):console.warn(n))}const IF=({open:e,onOpen:t,onClose:n})=>{const o=T.useRef(typeof e=="boolean").current,[r,i]=T.useState(!1);T.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[o,e]);const a=T.useCallback(l=>{o||i(l),l&&t&&t(),!l&&n&&n()},[o,t,n]);return{isOpen:r,setIsOpen:a}},oh=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:r})=>{const i=Nt(),a=T.useRef(n),l=t??a.current??r.emptyValue,d=T.useMemo(()=>r.getTimezone(i,l),[i,r,l]),u=Ee(w=>d==null?w:r.setTimezone(i,d,w)),f=e??d??"default",p=T.useMemo(()=>r.setTimezone(i,f,l),[r,i,f,l]),y=Ee((w,...b)=>{const m=u(w);o?.(m,...b)});return{value:p,handleValueChange:y,timezone:f}},rh=({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=Ee((u,...f)=>{l(u),r?.(u,...f)});return oh({timezone:t,value:a,defaultValue:void 0,onChange:d,valueManager:i})},NF=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},AF=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},FF=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},LF=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:r})=>{const{onAccept:i,onChange:a,value:l,defaultValue:d,closeOnSelect:u=o==="desktop",timezone:f}=e,{current:p}=T.useRef(d),{current:y}=T.useRef(l!==void 0);process.env.NODE_ENV!=="production"&&(T.useEffect(()=>{y!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${y?"":"un"}controlled value of a picker to be ${y?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
325
|
+
`))},[l]),T.useEffect(()=>{!y&&p!==d&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
|
|
326
|
+
`))},[JSON.stringify(p)]));const w=Nt(),b=Wr(),{isOpen:m,setIsOpen:v}=IF(e),{timezone:k,value:D,handleValueChange:x}=oh({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=T.useState(()=>{let j;return D!==void 0?j=D:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:D,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:M}=Rv({props:e,validator:r,timezone:k,value:S.draft,onError:e.onError}),A=Ee(j=>{const J={action:j,dateState:S,hasChanged:B=>!t.areValuesEqual(w,j.value,B),isControlled:y,closeOnSelect:u},ee=NF(J),te=AF(J),ce=FF(J);C(B=>Z({},B,{draft:j.value,lastPublishedValue:ee?j.value:B.lastPublishedValue,lastCommittedValue:te?j.value:B.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ie=null;const he=()=>(ie||(ie={validationError:j.name==="setValueFromField"?j.context.validationError:M(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(D!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(w,S.lastControlledValue,D))){const j=t.areValuesEqual(w,S.draft,D);C(J=>Z({},J,{lastControlledValue:D},j?{}:{lastCommittedValue:D,lastPublishedValue:D,draft:D,hasBeenModifiedSinceMount:!0}))}const F=Ee(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=Ee(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Ee(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Ee(()=>{A({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Ee(()=>{A({value:t.getTodayValue(w,k,n),name:"setValueFromAction",pickerAction:"today"})}),X=Ee(j=>{j.preventDefault(),v(!0)}),q=Ee(j=>{j?.preventDefault(),v(!1)}),Y=Ee((j,J="partial")=>A({name:"setValueFromView",value:j,selectionState:J})),H=Ee((j,J,ee)=>A({name:"setValueFromShortcut",value:j,changeImportance:J,shortcut:ee})),ae=Ee((j,J)=>A({name:"setValueFromField",value:j,context:J})),N={onClear:F,onAccept:z,onDismiss:R,onCancel:$,onSetToday:K,onOpen:X,onClose:q},O={value:S.draft,onChange:ae},V=T.useMemo(()=>t.cleanValue(w,S.draft),[w,t,S.draft]),W={value:V,onChange:Y,onClose:q,open:m},oe=Z({},N,{value:V,onChange:Y,onSelectShortcut:H,isValid:j=>{const J=r({adapter:b,value:j,timezone:k,props:e});return!t.hasError(J)}}),se=T.useMemo(()=>({onOpen:X,onClose:q,open:m}),[m,q,X]);return{open:m,fieldProps:O,viewProps:W,layoutProps:oe,actions:N,contextValue:se}};let md=!1;function Tv({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(md||(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('", "')}"]\`.`),md=!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('", "')}"]\`.`),md=!0)));const d=T.useRef(n),u=T.useRef(r),f=T.useRef(r.includes(n)?n:r[0]),[p,y]=xo({name:"useViews",state:"view",controlled:o,default:f.current}),w=T.useRef(i?p:null),[b,m]=xo({name:"useViews",state:"focusedView",controlled:a,default:w.current});T.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(A=>!r.includes(A)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),k=r[v-1]??null,D=r[v+1]??null,x=Ee((A,F)=>{m(F?A:z=>A===z?null:z),l?.(A,F)}),S=Ee(A=>{x(A,!0),A!==p&&(y(A),t&&t(A))}),C=Ee(()=>{D&&S(D)}),M=Ee((A,F,z)=>{const R=F==="finish",$=z?r.indexOf(z)<r.length-1:!!D;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:b,setFocusedView:x,nextView:D,previousView:k,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:M}}const $F=["className","sx"],VF=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:w,timezone:b}=e,m=We(e,$F),{view:v,setView:k,defaultView:D,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=Tv({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:M,viewModeLookup:A}=T.useMemo(()=>f.reduce((q,Y)=>{let H;return w[Y]!=null?H="UI":H="field",q.viewModeLookup[Y]=H,H==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[w,f]),F=T.useMemo(()=>f.reduce((q,Y)=>w[Y]!=null&&FA(Y)?q+1:q,0),[w,f]),z=A[v],R=Ee(()=>z==="UI"),[$,K]=T.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!==D&&A[q]==="UI"&&A[D]==="UI"&&(q=D),q!==v&&k(q),S(q,!0)},[l]),{hasUIView:M,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:k},renderCurrentView:()=>{if($==null)return null;const q=w[$];if(q==null)return null;const Y=Z({},m,n,t,{views:f,timezone:b,onChange:C,view:$,onViewChange:k,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(w,$,Y):q(Y)}}};function dm(){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 jF=(e,t)=>{const[n,o]=T.useState(dm);return nn(()=>{const i=()=>{o(dm())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),bF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},WF=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=jF(n.views,r),a=lo();return{layoutProps:Z({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function BF(e){const{props:t,pickerValueResponse:n}=e;return T.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const kv=({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&&MF(["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=LF({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=VF({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=WF({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=BF({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 Pv(e){return Oe("MuiPickersLayout",e)}const xr=De("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),HF=["onAccept","onClear","onCancel","onSetToday","actions"];function Dv(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=We(e,HF),l=Jo();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return P.jsx(ds,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return P.jsx(ds,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return P.jsx(ds,{onClick:t,children:l.okButtonLabel},u);case"today":return P.jsx(ds,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return P.jsx(zg,Z({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(Dv.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 Ui=36,fc=2,pc=320,zF=280,sh=336,YF=["items","changeImportance","isLandscape","onChange","isValid"],UF=["getValue"];function Ov(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=We(e,YF);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=We(l,UF);const f=d({isValid:r});return Z({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return P.jsx(_u,Z({dense:!0,sx:[{maxHeight:sh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>P.jsx(Gg,{children:P.jsx(Fg,Z({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Ov.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 qF(e){return e.view!==null}const GF=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Pv,t)},KF=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:w,disabled:b,readOnly:m,children:v,slots:k,slotProps:D}=e,x=GF(e),S=k?.actionBar??Dv,C=ct({elementType:S,externalSlotProps:D?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Z({},e,{wrapperVariant:t})}),M=P.jsx(S,Z({},C)),A=k?.toolbar,F=ct({elementType:A,externalSlotProps:D?.toolbar,additionalProps:{isLandscape:w,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:b,readOnly:m},className:x.toolbar,ownerState:Z({},e,{wrapperVariant:t})}),z=qF(F)&&A?P.jsx(A,Z({},F)):null,R=v,$=k?.tabs,K=a&&$?P.jsx($,Z({view:a,onViewChange:d,className:x.tabs},D?.tabs)):null,X=k?.shortcuts??Ov,q=ct({elementType:X,externalSlotProps:D?.shortcuts,additionalProps:{isValid:y,isLandscape:w,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:w,onChange:p,wrapperVariant:t}}),Y=a&&X?P.jsx(X,Z({},q)):null;return{toolbar:z,content:R,tabs:K,actionBar:M,shortcuts:Y}},XF=e=>{const{isLandscape:t,classes:n}=e;return Ie({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Pv,n)},ZF=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",[`& .${xr.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${xr.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${xr.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${xr.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${xr.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${xr.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${xr.shortcuts}`]:{gridColumn:3}}}]}),QF=le("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),ih=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=KF(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,w=XF(o);return P.jsxs(ZF,{ref:n,sx:u,className:Se(w.root,f),ownerState:o,children:[p?d:r,p?r:d,P.jsx(QF,{className:w.contentWrapper,children:y==="desktop"?P.jsxs(T.Fragment,{children:[i,a]}):P.jsxs(T.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(ih.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 JF=T.createContext(null);function Mv(e){const{contextValue:t,localeText:n,children:o}=e;return P.jsx(JF.Provider,{value:t,children:P.jsx(uc,{localeText:n,children:o})})}const eL=["props","getOpenDialogAriaText"],tL=["ownerState"],nL=["ownerState"],oL=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,eL);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:k,disabled:D,autoFocus:x,localeText:S,reduceAnimations:C}=t,M=T.useRef(null),A=T.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}=kv(Z({},o,{props:t,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),O=r.inputAdornment??Su,V=ct({elementType:O,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),W=We(V,tL),ne=r.openPickerButton??As,oe=ct({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:D||k,onClick:R?$.onClose:$.onOpen,"aria-label":n(H.value),edge:W.position},ownerState:t}),se=We(oe,nL),j=r.openPickerIcon,J=ct({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:N}),ee=r.field,te=ct({elementType:ee,externalSlotProps:i?.field,additionalProps:Z({},H,z&&{id:F},{readOnly:k,disabled:D,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Z({},te.InputProps,{ref:M},!t.disableOpenPicker&&{[`${W.position}Adornment`]:P.jsx(O,Z({},W,{children:P.jsx(ne,Z({},se,{children:P.jsx(j,Z({},J))}))}))}));const ce=Z({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),ie=r.layout??ih;let he=F;z&&(m?he=`${F}-label`:he=void 0);const B=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:F}),popper:Z({"aria-labelledby":he},i?.popper)}),re=at(A,te.unstableFieldRef);return{renderPicker:()=>P.jsxs(Mv,{contextValue:ae,localeText:S,children:[P.jsx(ee,Z({},te,{slots:ce,slotProps:B,unstableFieldRef:re})),P.jsx(OF,Z({role:"dialog",placement:"bottom-start",anchorEl:M.current},$,{open:R,slots:r,slotProps:B,shouldRestoreFocus:Y,reduceAnimations:C,children:P.jsx(ie,Z({},X,B?.layout,{slots:r,slotProps:B,children:q()}))}))]})}},rL=an(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),sL=an(P.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),iL=an(P.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),aL=an(P.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");an(P.jsxs(T.Fragment,{children:[P.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),P.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");an(P.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");an(P.jsxs(T.Fragment,{children:[P.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),P.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const lL=an(P.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),cL=({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},dL=({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},uL=(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}},hL=({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=eh(e,a),u=vv(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",w=null;if(f)if(u)w=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);w=d.maxLength,p&&(y=th(mv(Lr(y,r),w),r))}return Z({},d,{format:a,maxLength:w,value:y,placeholder:uL(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},fL=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((w,b)=>b.length-w.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=w=>o.find(b=>b.start<=w&&b.end>=w);let y=0;for(;y<n.length;){const w=p(y),b=w!=null,m=d.exec(n.slice(y))?.[1];if(!b&&m!=null&&u.test(m)){let v=m;for(;v.length>0;){const k=f.exec(v)[1];v=v.slice(k.length),i.push(hL(Z({},e,{now:r,token:k,startSeparator:a}))),a=""}y+=m.length}else{const v=n[y];b&&w?.start===y||w?.end===y||(i.length===0?a+=v:i[i.length-1].endSeparator+=v),y+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},pL=({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}),um=e=>{let t=cL(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=dL(Z({},e,{expandedFormat:t})),o=fL(Z({},e,{expandedFormat:t,escapedParts:n}));return pL(Z({},e,{sections:o}))},mL=e=>{const t=Nt(),n=Jo(),o=Wr(),r=lo(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:w,format:b,formatDensity:m="dense",selectedSections:v,onSelectedSectionsChange:k,shouldRespectLeadingZeros:D=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:M,handleValueChange:A}=oh({timezone:x,value:f,defaultValue:p,onChange:w,valueManager:i}),F=T.useMemo(()=>BA(t),[t]),z=T.useMemo(()=>qA(t,F,C),[t,F,C]),R=T.useCallback((j,J=null)=>a.getSectionsFromValue(t,j,J,ee=>um({utils:t,localeText:n,localizedDigits:F,format:b,date:ee,formatDensity:m,shouldRespectLeadingZeros:D,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,b,n,F,r,D,t,m,S]),[$,K]=T.useState(()=>{const j=R(M);rm(j,l);const J={sections:j,value:M,referenceValue:i.emptyValue,tempValueStrAndroid:null},ee=$A(j),te=i.getInitialReferenceValue({referenceDate:y,value:M,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),k?.(j)},H=T.useMemo(()=>zd(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)},O=(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)})},W=()=>{if(ae==null)return;const j=$.sections[ae],J=a.getActiveDateManager(t,$,j),te=J.getSections($.sections).filter(B=>B.value!=="").length===(j.value===""?0:1),ce=O(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,b);if(he==null||!t.isValid(he))return null;const B=um({utils:t,localeText:n,localizedDigits:F,format:b,date:he,formatDensity:m,shouldRespectLeadingZeros:D,enableAccessibleFieldDOMStructure:S,isRtl:r});return im(t,he,B,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=O(ae,J),ie=te.getSections(ce),he=zA(t,ie,F);let B,re;if(he!=null&&t.isValid(he)){const Q=im(t,he,ie,te.referenceDate,!0);B=te.getNewValuesFromNewActiveDate(Q),re=!0}else B=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?N(Z({},B,{sections:ce})):K(Q=>Z({},Q,B,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(J=>Z({},J,{tempValueStrAndroid:j}));return T.useEffect(()=>{const j=R($.value);rm(j,l),K(J=>Z({},J,{sections:j}))},[b,t.locale,r]),T.useEffect(()=>{let j;i.areValuesEqual(t,$.value,M)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,M):j=!0,j&&K(J=>Z({},J,{value:M,referenceValue:a.updateReferenceValue(t,M,J.referenceValue),sections:R(M)}))},[M]),{state:$,activeSectionIndex:ae,parsedSelectedSections:H,setSelectedSections:Y,clearValue:V,clearActiveSection:W,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:z,localizedDigits:F,timezone:C}},gL=5e3,is=e=>e.saveQuery!=null,yL=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Nt(),[l,d]=T.useState(null),u=Ee(()=>d(null));T.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),T.useEffect(()=>{if(l!=null){const b=setTimeout(()=>u(),gL);return()=>{clearTimeout(b)}}return()=>{}},[l,u]);const f=({keyPressed:b,sectionIndex:m},v,k)=>{const D=b.toLowerCase(),x=e[m];if(l!=null&&(!k||k(l.value))&&l.sectionIndex===m){const C=`${l.value}${D}`,M=v(C,x);if(!is(M))return d({sectionIndex:m,value:C,sectionType:x.type}),M}const S=v(D,x);return is(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:m,value:D,sectionType:x.type}),is(S)?null:S)},p=b=>{const m=(D,x,S)=>{const C=x.filter(M=>M.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(D,x,S,C)=>{const M=A=>pv(a,i,x.type,A);if(x.contentType==="letter")return m(x.format,M(x.format),D);if(S&&C!=null&&eh(a,S).contentType==="letter"){const A=M(S),F=m(S,A,D);return is(F)?{saveQuery:!1}:Z({},F,{sectionValue:C(F.sectionValue,A)})}return{saveQuery:!1}};return f(b,(D,x)=>{switch(x.type){case"month":{const S=C=>nm(a,C,a.formats.month,x.format);return v(D,x,a.formats.month,S)}case"weekDay":{const S=(C,M)=>M.indexOf(C).toString();return v(D,x,a.formats.weekday,S)}case"meridiem":return v(D,x);default:return{saveQuery:!1}}})},y=b=>{const m=(k,D)=>{const x=Lr(k,o),S=Number(x),C=n[D.type]({currentDate:null,format:D.format,contentType:D.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const M=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:gv(a,S,C,o,D),shouldGoToNextSection:M}};return f(b,(k,D)=>{if(D.contentType==="digit"||D.contentType==="digit-with-letter")return m(k,D);if(D.type==="month"){vv(a,"digit","month","MM");const x=m(k,{type:D.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(is(x))return x;const S=nm(a,x.sectionValue,"MM",D.format);return Z({},x,{sectionValue:S})}if(D.type==="weekDay"){const x=m(k,D);if(is(x))return x;const S=dc(a,D.format)[Number(x.sectionValue)-1];return Z({},x,{sectionValue:S})}return{saveQuery:!1}},k=>tm(k,o))};return{applyCharacterEditing:Ee(b=>{const m=e[b.sectionIndex],k=tm(b.keyPressed,o)?y(Z({},b,{keyPressed:th(b.keyPressed,o)})):p(b);if(k==null){r(null);return}t({activeSection:m,newSectionValue:k.sectionValue,shouldGoToNextSection:k.shouldGoToNextSection})}),resetCharacterQuery:u}},vL=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:w,setSelectedSections:b,parsedSelectedSections:m,state:v,clearActiveSection:k,clearValue:D,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:M,sectionsValueBoundaries:A}=e,F=T.useRef(null),z=at(o,F),R=Jo(),$=Nt(),K=pr(),[X,q]=T.useState(!1),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(m==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),X&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains(Nn(document)))return;const Q=new window.Range;let fe;m==="all"?fe=F.current.getRoot():v.sections[m].type==="empty"?fe=F.current.getSectionContainer(m):fe=F.current.getSectionContent(m),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=zd(re,v.sections);q(!0),F.current.getSectionContent(Q).focus()},setSelectedSections:re=>{if(!F.current)return;const Q=zd(re,v.sections);q((Q==="all"?0:Q)!==null),b(re)},isFieldFocused:()=>{const re=Nn(document);return!!F.current&&F.current.getRoot().contains(re)}}),[m,b,v.sections,X]),H=Ee(re=>{if(!F.current)return;const Q=v.sections[re];F.current.getSectionContent(re).innerHTML=Q.value||Q.placeholder,Y.syncSelectionToDOM()}),ae=Ee((re,...Q)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Q),m==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){b(C.startIndex);return}let me=0,Ce=0;for(;Ce<fe&&me<v.sections.length;){const ve=v.sections[me];me+=1,Ce+=`${ve.startSeparator}${ve.value||ve.placeholder}${ve.endSeparator}`.length}b(me-1)}):X?F.current.getRoot().contains(re.target)||b(C.startIndex):(q(!0),b(C.startIndex)))}),N=Ee(re=>{if(l?.(re),!F.current||m!=="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?(w(),D(),b("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),O=Ee(re=>{if(d?.(re),n||m!=="all"){re.preventDefault();return}const Q=re.clipboardData.getData("text");re.preventDefault(),w(),S(Q)}),V=Ee((...re)=>{if(a?.(...re),X||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement(Nn(document))!=null||b(C.startIndex)}),W=Ee((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Q=Nn(document);!F.current.getRoot().contains(Q)&&(q(!1),b(null))})}),ne=Ee(re=>Q=>{Q.isDefaultPrevented()||b(re)}),oe=Ee(re=>{re.preventDefault()}),se=Ee(re=>()=>{b(re)}),j=Ee(re=>{if(re.preventDefault(),n||t||typeof m!="number")return;const Q=v.sections[m],fe=re.clipboardData.getData("text"),me=/^[a-zA-Z]+$/.test(fe),Ce=/^[0-9]+$/.test(fe),ve=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);Q.contentType==="letter"&&me||Q.contentType==="digit"&&Ce||Q.contentType==="digit-with-letter"&&ve?(w(),x({activeSection:Q,newSectionValue:fe,shouldGoToNextSection:!0})):!me&&!Ce&&(w(),S(fe))}),J=Ee(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),ee=Ee(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}w(),k();return}y({keyPressed:fe,sectionIndex:me}),H(me)});nn(()=>{if(!(!X||!F.current)){if(m==="all")F.current.getRoot().focus();else if(typeof m=="number"){const re=F.current.getSectionContent(m);re&&re.focus()}}},[m,X]);const te=T.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=m==="all",ie=T.useMemo(()=>v.sections.map((re,Q)=>{const fe=!ce&&!t&&!n;return{container:{"data-sectionindex":Q,onClick:ne(Q)},content:{tabIndex:ce||Q>0?-1:0,contentEditable:!ce&&!t&&!n,role:"spinbutton",id:`${K}-${re.type}`,"aria-labelledby":`${K}-${re.type}`,"aria-readonly":n,"aria-valuenow":QA(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?ZA(re,$):R.empty,"aria-label":R[re.type],"aria-disabled":t,spellCheck:fe?!1:void 0,autoCapitalize:fe?"off":void 0,autoCorrect:fe?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:ee,onPaste: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=Ee(re=>{S(re.target.value)}),B=T.useMemo(()=>M?"":p.getV7HiddenInputValueFromSections(v.sections),[M,v.sections,p]);return T.useEffect(()=>{if(F.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
327
|
+
`));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??X,sectionListRef:z,onBlur:W,onClick:ae,onFocus:V,onInput:N,onPaste:O,enableAccessibleFieldDOMStructure:!0,elements:ie,tabIndex:m===0?-1:0,contentEditable:ce,value:B,onChange:he,areAllSectionsEmpty:M}}},ps=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),bL=(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=nh(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=ps(u).length,p=u.length,y=ps(d),w=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=w+y.length;i.push(Z({},l,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},wL=e=>{const t=lo(),n=T.useRef(),o=T.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:m,valueManager:v,applyCharacterEditing:k,resetCharacterQuery:D,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:M,setTempAndroidValueStr:A,setSelectedSections:F,getSectionsFromValue:z,areAllSectionsEmpty:R,localizedDigits:$}=e,K=T.useRef(null),X=at(d,K),q=T.useMemo(()=>bL(b.sections,$,t),[b.sections,$,t]),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==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=Ee((...ee)=>{r?.(...ee);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||w==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):H())})}),N=Ee((ee,...te)=>{ee.isDefaultPrevented()||(i?.(ee,...te),H())}),O=Ee(ee=>{if(a?.(ee),ee.preventDefault(),f||p)return;const te=ee.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],ie=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),B=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&ie||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&B){D(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(ie||he)return}D(),S(te)}),V=Ee((...ee)=>{l?.(...ee),F(null)}),W=Ee(ee=>{if(f)return;const te=ee.target.value;if(te===""){D(),M();return}const ce=ee.nativeEvent.data,ie=ce&&ce.length>1,he=ie?ce:te,B=ps(he);if(w==null||ie){S(ie?ce:B);return}let re;if(y==="all"&&B.length===1)re=B;else{const Q=ps(m.getV6InputValueFromSections(q,$,t));let fe=-1,me=-1;for(let $e=0;$e<Q.length;$e+=1)fe===-1&&Q[$e]!==B[$e]&&(fe=$e),me===-1&&Q[Q.length-$e-1]!==B[B.length-$e-1]&&(me=$e);const Ce=q[w];if(fe<Ce.start||Q.length-me-1>Ce.end)return;const xe=B.length-Q.length+Ce.end-ps(Ce.endSeparator||"").length;re=B.slice(Ce.start+ps(Ce.startSeparator||"").length,xe)}if(re.length===0){KA()&&A(he),D(),C();return}k({keyPressed:re,sectionIndex:w})}),ne=T.useMemo(()=>u!==void 0?u:m.getV6InputValueFromSections(z(v.emptyValue),$,t),[u,m,z,v.emptyValue,$,t]),oe=T.useMemo(()=>b.tempValueStrAndroid??m.getV6InputValueFromSections(b.sections,$,t),[b.sections,m,b.tempValueStrAndroid,$,t]);T.useEffect(()=>(K.current&&K.current===Nn(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=T.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),J=!(K.current&&K.current===Nn(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:V,onClick:N,onFocus:ae,onPaste:O,inputRef:X,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:J?"":oe,onChange:W}}},CL=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:w,validator:b}=e,m=lo(),v=mL(e),{state:k,activeSectionIndex:D,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:M,updateSectionValue:A,setTempAndroidValueStr:F,sectionsValueBoundaries:z,localizedDigits:R,timezone:$}=v,K=yL({sections:k.sections,updateSectionValue:A,sectionsValueBoundaries:z,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:X}=K,q=w.areValuesEqual(t,k.value,w.emptyValue),Y=i?vL:wL,H=T.useMemo(()=>XA(k.sections,m&&!i),[k.sections,m,i]),{returnedValue:ae,interactions:N}=Y(Z({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:H})),O=Ee(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():M(),X();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||D==null)break;const J=k.sections[D],ee=y.getActiveDateManager(t,k,J),te=HA(t,$,J,j.key,z,R,ee.date,{minutesStep:r});A({activeSection:J,newSectionValue:te,shouldGoToNextSection:!1});break}}});nn(()=>{N.syncSelectionToDOM()});const{hasValidationError:V}=Rv({props:n,validator:b,timezone:$,value:k.value,onError:n.onError}),W=T.useMemo(()=>u!==void 0?u:V,[V,u]);T.useEffect(()=>{!W&&D==null&&X()},[k.referenceValue,D,W]),T.useEffect(()=>{k.tempValueStrAndroid!=null&&D!=null&&(X(),M())},[k.sections]),T.useImperativeHandle(o,()=>({getSections:()=>k.sections,getActiveSectionIndex:N.getActiveSectionIndexFromDOM,setSelectedSections:N.setSelectedSections,focusField:N.focusField,isFieldFocused:N.isFieldFocused}));const ne=Ee((j,...J)=>{j.preventDefault(),p?.(j,...J),C(),N.isFieldFocused()?S(H.startIndex):N.focusField(0)}),oe={onKeyDown:O,onClear:ne,error:W,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Z({},e.forwardedProps,oe,se,ae)},SL=["clearable","onClear","InputProps","sx","slots","slotProps"],_L=["ownerState"],xL=e=>{const t=Jo(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=We(e,SL),u=a?.clearButton??As,f=ct({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=We(f,_L),y=a?.clearIcon??lL,w=ct({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Z({},d,{InputProps:Z({},r,{endAdornment:P.jsxs(T.Fragment,{children:[n&&P.jsx(Su,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:P.jsx(u,Z({},p,{onClick:o,children:P.jsx(y,Z({fontSize:"small"},w))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},RL=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],EL=(e,t)=>T.useMemo(()=>{const n=Z({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return RL.forEach(r),_v.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),TL=e=>{const t=Nt(),n=pa();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)})},kL=e=>{const t=TL(e),{forwardedProps:n,internalProps:o}=EL(t,"date");return CL({forwardedProps:n,internalProps:o,valueManager:To,fieldValueManager:eF,validator:ma,valueType:"date"})};function PL(e){return Oe("MuiPickersTextField",e)}De("MuiPickersTextField",["root","focused","disabled","error","required"]);function DL(e){return Oe("MuiPickersInputBase",e)}const Cs=De("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function OL(e){return Oe("MuiPickersSectionList",e)}const ci=De("MuiPickersSectionList",["root","section","sectionContent"]),ML=["slots","slotProps","elements","sectionListRef"],Iv=le("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Nv=le("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Av=le("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Fv=le("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),IL=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},OL,t)};function Lv(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??Nv,a=ct({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??Fv,d=ct({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??Av,f=ct({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=ct({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return P.jsxs(i,Z({},a,{children:[P.jsx(u,Z({},f)),P.jsx(l,Z({},d)),P.jsx(u,Z({},p))]}))}process.env.NODE_ENV!=="production"&&(Lv.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 $v=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=We(o,ML),u=IL(o),f=T.useRef(null),p=at(n,f),y=m=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return f.current};T.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(m){return y("getSectionContainer").querySelector(`.${ci.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return y("getSectionContent").querySelector(`.${ci.section}[data-sectionindex="${m}"] .${ci.sectionContent}`)},getSectionIndexFromDOMElement(m){const v=y("getSectionIndexFromDOMElement");if(m==null||!v.contains(m))return null;let k=null;return m.classList.contains(ci.section)?k=m:m.classList.contains(ci.sectionContent)&&(k=m.parentElement),k==null?null:Number(k.dataset.sectionindex)}}));const w=r?.root??Iv,b=ct({elementType:w,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return P.jsx(w,Z({},b,{children:b.contentEditable?a.map(({content:m,before:v,after:k})=>`${v.children}${m.children}${k.children}`).join(""):P.jsx(T.Fragment,{children:a.map((m,v)=>P.jsx(Lv,{slots:r,slotProps:i,element:m,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&($v.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 NL=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],AL=e=>Math.round(e*1e5)/1e5,mc=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:`${AL(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),ah=le(Iv,{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}}]})),FL=le(Nv,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),LL=le(Fv,{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"})),$L=le(Av,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),VL=le("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Z({},yx)),jL=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 Ie(p,DL,r)},gc=T.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:w,contentEditable:b,tabIndex:m,onInput:v,onPaste:k,onKeyDown:D,name:x,readOnly:S,inputProps:C,inputRef:M,sectionListRef:A}=o,F=We(o,NL),z=T.useRef(null),R=at(n,z),$=at(C?.ref,M),K=lo(),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)};T.useEffect(()=>{X&&X.setAdornedStart(!!f)},[X,f]),T.useEffect(()=>{X&&(i?X.onEmpty():X.onFilled())},[X,i]);const Y=Z({},o,X,{isRtl:K}),H=jL(Y),ae=y?.root||mc,N=ct({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":X.error,ref:R},className:H.root,ownerState:Y}),O=y?.input||ah;return P.jsxs(ae,Z({},N,{children:[f,P.jsx($v,{sectionListRef:A,elements:r,contentEditable:b,tabIndex:m,className:H.sectionsContainer,onFocus:q,onBlur:X.onBlur,onInput:v,onPaste:k,onKeyDown:D,slots:{root:O,section:FL,sectionContent:LL,sectionSeparator:$L},slotProps:{root:{ownerState:Y},sectionContent:{className:Cs.sectionContent},sectionSeparator:({position:V})=>({className:V==="before"?Cs.sectionBefore:Cs.sectionAfter})}}),u,p?p(Z({},X)):null,P.jsx(VL,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"&&(gc.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function WL(e){return Oe("MuiPickersOutlinedInput",e)}const oo=Z({},Cs,De("MuiPickersOutlinedInput",["root","notchedOutline","input"])),BL=["children","className","label","notched","shrink"],HL=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}}),hm=le("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),zL=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 YL(e){const{className:t,label:n}=e,o=We(e,BL),r=n!=null&&n!=="",i=Z({},e,{withLabel:r});return P.jsx(HL,Z({"aria-hidden":!0,className:t},o,{ownerState:i,children:P.jsx(zL,{ownerState:i,children:r?P.jsx(hm,{children:n}):P.jsx(hm,{className:"notranslate",children:""})})}))}const UL=["label","autoFocus","ownerState","notched"],qL=le(mc,{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 .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${oo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${oo.focused} .${oo.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${oo.disabled}`]:{[`& .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${oo.error} .${oo.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:{[`&.${oo.focused}:not(.${oo.error}) .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),GL=le(ah,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),KL=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},WL,t);return Z({},t,o)},lh=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=We(o,UL),d=On(),u=Z({},o,i,d,{color:d?.color||"primary"}),f=KL(u);return P.jsx(gc,Z({slots:{root:qL,input:GL},renderSuffix:p=>P.jsx(YL,{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?P.jsxs(T.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(lh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});lh.muiName="Input";function XL(e){return Oe("MuiPickersFilledInput",e)}const Rr=Z({},Cs,De("MuiPickersFilledInput",["root","underline","input"])),ZL=["label","autoFocus","disableUnderline","ownerState"],QL=le(mc,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Xa(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}},[`&.${Rr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Rr.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"},[`&.${Rr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Rr.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(.${Rr.disabled}, .${Rr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Rr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),JL=le(ah,{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}}]}),e$=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},XL,t);return Z({},t,r)},ch=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=We(o,ZL),d=On(),u=Z({},o,a,d,{color:d?.color||"primary"}),f=e$(u);return P.jsx(gc,Z({slots:{root:QL,input:JL},slotProps:{root:{disableUnderline:i}}},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,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});ch.muiName="Input";function t$(e){return Oe("MuiPickersFilledInput",e)}const di=Z({},Cs,De("MuiPickersInput",["root","input"])),n$=["label","autoFocus","disableUnderline","ownerState"],o$=le(mc,{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"},[`&.${di.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${di.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(.${di.disabled}, .${di.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${di.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),r$=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},t$,t);return Z({},t,r)},dh=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=We(o,n$),d=On(),u=Z({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=r$(u);return P.jsx(gc,Z({slots:{root:o$}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(dh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});dh.muiName="Input";const s$=["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"],i$={standard:dh,filled:ch,outlined:lh},a$=le(sa,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),l$=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},PL,o)},Vv=T.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:w,inputRef:b,sectionListRef:m,elements:v,areAllSectionsEmpty:k,onClick:D,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:M,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,focused:$,value:K,onChange:X,fullWidth:q,id:Y,name:H,helperText:ae,FormHelperTextProps:N,label:O,InputLabelProps:V}=o,W=We(o,s$),ne=T.useRef(null),oe=at(n,ne),se=pr(Y),j=ae&&se?`${se}-helper-text`:void 0,J=O&&se?`${se}-label`:void 0,ee=Z({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=l$(ee),ce=i$[f];return P.jsxs(a$,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},W,{children:[P.jsx(ia,Z({htmlFor:se,id:J},V,{children:O})),P.jsx(ce,Z({elements:v,areAllSectionsEmpty:k,onClick:D,onKeyDown:x,onKeyUp:S,onInput:M,onPaste:C,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,value:K,onChange:X,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:m,label:O,name:H,role:"group","aria-labelledby":J},y)),ae&&P.jsx(Cu,Z({id:j},N,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(Vv.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const c$=["enableAccessibleFieldDOMStructure"],d$=["InputProps","readOnly"],u$=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],h$=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=We(e,c$);if(t){const{InputProps:p,readOnly:y}=n,w=We(n,d$);return Z({},w,{InputProps:Z({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=We(n,u$);return Z({},f,{InputProps:Z({},l??{},{readOnly:a}),inputProps:Z({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},f$=["slots","slotProps","InputProps","inputProps"],uh=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=We(o,f$),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?Vv:Ds),p=ct({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=kL(p),w=h$(y),b=xL(Z({},w,{slots:r,slotProps:i}));return P.jsx(f,Z({},b))});process.env.NODE_ENV!=="production"&&(uh.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const jv=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=Wr();return T.useCallback(u=>ma({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])},p$=(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")}},m$=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(),w=T.useRef(p$(!!u,i,y)).current,b=T.useMemo(()=>To.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:vo.day}),[n,p]),[m,v]=T.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});T.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const k=T.useCallback(M=>{v(Z({type:"changeMonth"},M)),d&&d(M.newMonth)},[d]),D=T.useCallback(M=>{const A=M;y.isSameMonth(A,m.currentMonth)||k({newMonth:y.startOfMonth(A),direction:y.isAfterDay(A,m.currentMonth)?"left":"right"})},[m.currentMonth,k,y]),x=jv({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=T.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Ee((M,A)=>{x(M)||v({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:A})});return{referenceDate:b,calendarState:m,changeMonth:D,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:k}},g$=e=>Oe("MuiPickersFadeTransitionGroup",e);De("MuiPickersFadeTransitionGroup",["root"]);const y$=e=>{const{classes:t}=e;return Ie({root:["root"]},g$,t)},v$=le(ta,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Wv(e){const t=Mt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=y$(t),l=Is();return r?n:P.jsx(v$,{className:Se(a.root,o),children:P.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 b$(e){return Oe("MuiPickersDay",e)}const Er=De("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),w$=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],C$=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Ie({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},b$,d)},Bv=({theme:e})=>Z({},e.typography.caption,{width:Ui,height:Ui,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Er.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Er.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}},[`&.${Er.disabled}:not(.${Er.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Er.disabled}&.${Er.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${fc}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Er.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Hv=(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]},S$=le(dr,{name:"MuiPickersDay",slot:"Root",overridesResolver:Hv})(Bv),_$=le("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Hv})(({theme:e})=>Z({},Bv({theme:e}),{opacity:0,pointerEvents:"none"})),ui=()=>{},zv=T.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:w=ui,onBlur:b=ui,onKeyDown:m=ui,onMouseDown:v=ui,onMouseEnter:k=ui,outsideCurrentMonth:D,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:M=!1}=o,A=We(o,w$),F=Z({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:M}),z=C$(F),R=Nt(),$=T.useRef(null),K=at($,n);nn(()=>{r&&!l&&!f&&!D&&$.current.focus()},[r,l,f,D]);const X=Y=>{v(Y),D&&Y.preventDefault()},q=Y=>{l||y(a),D&&Y.currentTarget.focus(),p&&p(Y)};return D&&!S?P.jsx(_$,{className:Se(z.root,z.hiddenDaySpacingFiller,i),ownerState:F,role:A.role}):P.jsx(S$,Z({className:Se(z.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>m(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>k(Y,a),onClick:q,onMouseDown:X},A,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(zv.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 x$=T.memo(zv),R$=e=>Oe("MuiPickersSlideTransition",e),Bn=De("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),E$=["children","className","reduceAnimations","slideDirection","transKey","classes"],T$=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,R$,t)},k$=le(ta,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Bn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Bn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Bn.slideEnterActive}`]:t.slideEnterActive},{[`.${Bn.slideExit}`]:t.slideExit},{[`.${Bn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Bn["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},[`& .${Bn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Bn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Bn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Bn.slideExit}`]:{transform:"translate(0%)"},[`& .${Bn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Bn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function P$(e){const t=Mt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=We(t,E$),l=T$(t),d=Is();if(r)return P.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return P.jsx(k$,{className:Se(l.root,o),childFactory:f=>T.cloneElement(f,{classNames:u}),role:"presentation",children:P.jsx(cu,Z({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const D$=e=>Oe("MuiDayCalendar",e);De("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const O$=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],M$=["ownerState"],I$=e=>{const{classes:t}=e;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},D$,t)},Yv=(Ui+fc*2)*6,N$=le("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A$=le("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),F$=le(En,{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})),L$=le(En,{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})),$$=le(En,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Z({},e.typography.caption,{width:Ui,height:Ui,padding:0,margin:`0 ${fc}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),V$=le("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Yv}),j$=le(P$,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Yv}),W$=le("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),B$=le("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${fc}px 0`,display:"flex",justifyContent:"center"});function H$(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=We(e,O$);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:m}=t,v=Nt(),k=hc(m),D=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,k),C=w?.day??x$,M=ct({elementType:C,externalSlotProps:b?.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(M,M$),F=T.useMemo(()=>u||i(n),[u,i,n]),z=T.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=T.useMemo(()=>{const K=v.startOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.startOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]),$=T.useMemo(()=>{const K=v.endOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.endOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]);return P.jsx(C,Z({},A,{day:n,disabled:F,autoFocus:l&&D,today:S,outsideCurrentMonth:z,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:D?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function z$(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:w=()=>P.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:m,disablePast:v,disableFuture:k,minDate:D,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:M,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=hc(q),H=I$(t),ae=lo(),N=jv({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:M,minDate:D,maxDate:x,disablePast:v,disableFuture:k,timezone:q}),O=Jo(),[V,W]=xo({name:"DayCalendar",state:"hasFocus",controlled:F,default:X??!1}),[ne,oe]=T.useState(()=>l||Y),se=Ee(me=>{p||u(me)}),j=me=>{N(me)||(o(me),oe(me),z?.(!0),W(!0))},J=Ee((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=xi({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=xi({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=Ee((me,Ce)=>j(Ce)),te=Ee((me,Ce)=>{V&&n.isSameDay(ne,Ce)&&z?.(!1)}),ce=n.getMonth(i),ie=n.getYear(i),he=T.useMemo(()=>a.filter(me=>!!me).map(me=>n.startOfDay(me)),[n,a]),B=`${ie}-${ce}`,re=T.useMemo(()=>T.createRef(),[B]),Q=T.useMemo(()=>{const me=n.startOfMonth(i),Ce=n.endOfMonth(i);return N(ne)||n.isAfterDay(ne,Ce)||n.isBeforeDay(ne,me)?xi({utils:n,date:ne,minDate:me,maxDate:Ce,disablePast:v,disableFuture:k,isDateDisabled:N,timezone:q}):ne},[i,k,v,ne,N,n,q]),fe=T.useMemo(()=>{const me=n.getWeekArray(i);let Ce=n.addMonths(i,1);for(;K&&me.length<K;){const ve=n.getWeekArray(Ce),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 P.jsxs(N$,{role:"grid","aria-labelledby":R,className:H.root,children:[P.jsxs(A$,{role:"row",className:H.header,children:[$&&P.jsx(L$,{variant:"caption",role:"columnheader","aria-label":O.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:O.calendarWeekNumberHeaderText}),NA(n,Y).map((me,Ce)=>P.jsx(F$,{variant:"caption",role:"columnheader","aria-label":n.format(me,"weekday"),className:H.weekDayLabel,children:A(me)},Ce.toString()))]}),d?P.jsx(V$,{className:H.loadingContainer,children:w()}):P.jsx(j$,Z({transKey:B,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,H.slideTransition)},m,{nodeRef:re,children:P.jsx(W$,{ref:re,role:"rowgroup",className:H.monthContainer,children:fe.map((me,Ce)=>P.jsxs(B$,{role:"row",className:H.weekContainer,"aria-rowindex":Ce+1,children:[$&&P.jsx($$,{className:H.weekNumber,role:"rowheader","aria-label":O.calendarWeekNumberAriaLabelText(n.getWeekNumber(me[0])),children:O.calendarWeekNumberText(n.getWeekNumber(me[0]))}),me.map((ve,xe)=>P.jsx(H$,{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 Y$(e){return Oe("MuiPickersMonth",e)}const za=De("MuiPickersMonth",["root","monthButton","disabled","selected"]),U$=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],q$=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Y$,o)},G$=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%"}}]}),K$=le("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${za.disabled}`]:t.disabled},{[`&.${za.selected}`]:t.selected}]})(({theme:e})=>Z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${za.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${za.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),X$=T.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:w,"aria-current":b,"aria-label":m,slots:v,slotProps:k}=n,D=We(n,U$),x=T.useRef(null),S=q$(n);nn(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??K$,M=ct({elementType:C,externalSlotProps:k?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":b,"aria-checked":l,"aria-label":m,onClick:A=>f(A,d),onKeyDown:A=>p(A,d),onFocus:A=>y(A,d),onBlur:A=>w(A,d)},ownerState:n,className:S.monthButton});return P.jsx(G$,Z({className:Se(S.root,r),ownerState:n},D,{children:P.jsx(C,Z({},M))}))});function Z$(e){return Oe("MuiMonthCalendar",e)}De("MuiMonthCalendar",["root"]);const Q$=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],J$=e=>{const{classes:t}=e;return Ie({root:["root"]},Z$,t)};function eV(e,t){const n=Nt(),o=pa(),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 tV=le("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:pc,boxSizing:"border-box"}),Uv=T.forwardRef(function(t,n){const o=eV(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:m,autoFocus:v=!1,onMonthFocus:k,hasFocus:D,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:M,slots:A,slotProps:F}=o,z=We(o,Q$),{value:R,handleValueChange:$,timezone:K}=rh({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:To}),X=hc(K),q=lo(),Y=Nt(),H=T.useMemo(()=>To.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:vo.month}),[]),ae=o,N=J$(ae),O=T.useMemo(()=>Y.getMonth(X),[Y,X]),V=T.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[W,ne]=T.useState(()=>V||Y.getMonth(H)),[oe,se]=xo({name:"MonthCalendar",state:"hasFocus",controlled:D,default:v??!1}),j=Ee(B=>{se(B),x&&x(B)}),J=T.useCallback(B=>{const re=Y.startOfMonth(f&&Y.isAfter(X,y)?X:y),Q=Y.startOfMonth(u&&Y.isBefore(X,p)?X:p),fe=Y.startOfMonth(B);return Y.isBefore(fe,re)||Y.isAfter(fe,Q)?!0:b?b(fe):!1},[u,f,p,y,X,b,Y]),ee=Ee((B,re)=>{if(m)return;const Q=Y.setMonth(R??H,re);$(Q)}),te=Ee(B=>{J(Y.setMonth(R??H,B))||(ne(B),j(!0),k&&k(B))});T.useEffect(()=>{ne(B=>V!==null&&B!==V?V:B)},[V]);const ce=Ee((B,re)=>{switch(B.key){case"ArrowUp":te((12+re-3)%12),B.preventDefault();break;case"ArrowDown":te((12+re+3)%12),B.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),B.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),B.preventDefault();break}}),ie=Ee((B,re)=>{te(re)}),he=Ee((B,re)=>{W===re&&j(!1)});return P.jsx(tV,Z({ref:n,className:Se(N.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":M},z,{children:Qu(Y,R??H).map(B=>{const re=Y.getMonth(B),Q=Y.format(B,"monthShort"),fe=Y.format(B,"month"),me=re===V,Ce=d||J(B);return P.jsx(X$,{selected:me,value:re,onClick:ee,onKeyDown:ce,autoFocus:oe&&re===W,disabled:Ce,tabIndex:re===W&&!Ce?0:-1,onFocus:ie,onBlur:he,"aria-current":O===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:A,slotProps:F,children:Q},Q)})}))});process.env.NODE_ENV!=="production"&&(Uv.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 nV(e){return Oe("MuiPickersYear",e)}const Ya=De("MuiPickersYear",["root","yearButton","selected","disabled"]),oV=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],rV=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},nV,o)},sV=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%"}}]}),iV=le("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Ya.disabled}`]:t.disabled},{[`&.${Ya.selected}`]:t.selected}]})(({theme:e})=>Z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ya.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ya.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),aV=T.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:w,"aria-current":b,slots:m,slotProps:v}=n,k=We(n,oV),D=T.useRef(null),x=rV(n);nn(()=>{o&&D.current?.focus()},[o]);const S=m?.yearButton??iV,C=ct({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:D,type:"button",role:"radio","aria-current":b,"aria-checked":l,onClick:M=>f(M,d),onKeyDown:M=>p(M,d),onFocus:M=>y(M,d),onBlur:M=>w(M,d)},ownerState:n,className:x.yearButton});return P.jsx(sV,Z({className:Se(x.root,r),ownerState:n},k,{children:P.jsx(S,Z({},C))}))});function lV(e){return Oe("MuiYearCalendar",e)}De("MuiYearCalendar",["root"]);const cV=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],dV=e=>{const{classes:t}=e;return Ie({root:["root"]},lV,t)};function uV(e,t){const n=Nt(),o=pa(),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 hV=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:pc,maxHeight:zF,boxSizing:"border-box",position:"relative"}),qv=T.forwardRef(function(t,n){const o=uV(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:m,shouldDisableYear:v,onYearFocus:k,hasFocus:D,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:M,gridLabelId:A,slots:F,slotProps:z}=o,R=We(o,cV),{value:$,handleValueChange:K,timezone:X}=rh({name:"YearCalendar",timezone:M,value:a,defaultValue:l,onChange:b,valueManager:To}),q=hc(X),Y=lo(),H=Nt(),ae=T.useMemo(()=>To.getInitialReferenceValue({value:$,utils:H,props:o,timezone:X,referenceDate:d,granularity:vo.year}),[]),N=o,O=dV(N),V=T.useMemo(()=>H.getYear(q),[H,q]),W=T.useMemo(()=>$!=null?H.getYear($):null,[$,H]),[ne,oe]=T.useState(()=>W||H.getYear(ae)),[se,j]=xo({name:"YearCalendar",state:"hasFocus",controlled:D,default:r??!1}),J=Ee(ve=>{j(ve),x&&x(ve)}),ee=T.useCallback(ve=>{if(p&&H.isBeforeYear(ve,q)||f&&H.isAfterYear(ve,q)||w&&H.isBeforeYear(ve,w)||y&&H.isAfterYear(ve,y))return!0;if(!v)return!1;const xe=H.startOfYear(ve);return v(xe)},[f,p,y,w,q,v,H]),te=Ee((ve,xe)=>{if(m)return;const $e=H.setYear($??ae,xe);K($e)}),ce=Ee(ve=>{ee(H.setYear($??ae,ve))||(oe(ve),J(!0),k?.(ve))});T.useEffect(()=>{oe(ve=>W!==null&&ve!==W?W:ve)},[W]);const ie=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,B=Ee((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=Ee((ve,xe)=>{ce(xe)}),Q=Ee((ve,xe)=>{ne===xe&&J(!1)}),fe=T.useRef(null),me=at(n,fe);T.useEffect(()=>{if(r||fe.current===null)return;const ve=fe.current.querySelector('[tabindex="0"]');if(!ve)return;const xe=ve.offsetHeight,$e=ve.offsetTop,Ae=fe.current.clientHeight,rt=fe.current.scrollTop,Pe=$e+xe;xe>Ae||$e<rt||(fe.current.scrollTop=Pe-Ae/2-xe/2)},[r]);const Ce=H.getYearRange([w,y]);return S==="desc"&&Ce.reverse(),P.jsx(hV,Z({ref:me,className:Se(O.root,i),ownerState:N,role:"radiogroup","aria-labelledby":A},R,{children:Ce.map(ve=>{const xe=H.getYear(ve),$e=xe===W,Ae=u||ee(ve);return P.jsx(aV,{selected:$e,value:xe,onClick:te,onKeyDown:B,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"&&(qv.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 fV=e=>Oe("MuiPickersCalendarHeader",e),pV=De("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function mV(e){return Oe("MuiPickersArrowSwitcher",e)}De("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const gV=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],yV=["ownerState"],vV=["ownerState"],bV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),wV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),fm=le(As,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),CV=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},mV,t)},SV=T.forwardRef(function(t,n){const o=lo(),r=Mt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:m,previousLabel:v,labelId:k}=r,D=We(r,gV),x=r,S=CV(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},M={isDisabled:w,isHidden:b,goTo:m,label:v},A=l?.previousIconButton??fm,F=ct({elementType:A,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:Z({},x,{hidden:M.isHidden}),className:Se(S.button,S.previousIconButton)}),z=l?.nextIconButton??fm,R=ct({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??sL,K=ct({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),X=We(K,yV),q=l?.rightArrowIcon??iL,Y=ct({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),H=We(Y,vV);return P.jsxs(bV,Z({ref:n,className:Se(S.root,a),ownerState:x},D,{children:[P.jsx(A,Z({},F,{children:o?P.jsx(q,Z({},H)):P.jsx($,Z({},X))})),i?P.jsx(En,{variant:"subtitle1",component:"span",id:k,children:i}):P.jsx(wV,{className:S.spacer,ownerState:x}),P.jsx(z,Z({},R,{children:o?P.jsx($,Z({},X)):P.jsx(q,Z({},H))}))]}))});function _V(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Nt();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function xV(e,{disablePast:t,minDate:n,timezone:o}){const r=Nt();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const RV=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],EV=["ownerState"],TV=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},fV,t)},kV=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}),PV=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})),DV=le("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),OV=le(As,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${pV.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),MV=le(rL,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Gv=T.forwardRef(function(t,n){const o=Jo(),r=Nt(),i=Mt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:m,view:v,reduceAnimations:k,views:D,labelId:x,className:S,timezone:C,format:M=`${r.formats.month} ${r.formats.year}`}=i,A=We(i,RV),F=i,z=TV(i),R=a?.switchViewButton??OV,$=ct({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:z.switchViewButton}),K=a?.switchViewIcon??MV,X=ct({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:z.switchViewIcon}),q=We(X,EV),Y=()=>b(r.addMonths(d,1),"left"),H=()=>b(r.addMonths(d,-1),"right"),ae=_V(d,{disableFuture:f,maxDate:y,timezone:C}),N=xV(d,{disablePast:p,minDate:w,timezone:C}),O=()=>{if(!(D.length===1||!m||u))if(D.length===2)m(D.find(W=>W!==v)||D[0]);else{const W=D.indexOf(v)!==0?0:1;m(D[W])}};if(D.length===1&&D[0]==="year")return null;const V=r.formatByString(d,M);return P.jsxs(kV,Z({},A,{ownerState:F,className:Se(z.root,S),ref:n,children:[P.jsxs(PV,{role:"presentation",onClick:O,ownerState:F,"aria-live":"polite",className:z.labelContainer,children:[P.jsx(Wv,{reduceAnimations:k,transKey:V,children:P.jsx(DV,{id:x,ownerState:F,className:z.label,children:V})}),D.length>1&&!u&&P.jsx(R,Z({},$,{children:P.jsx(K,Z({},q))}))]}),P.jsx($r,{in:v==="day",children:P.jsx(SV,{slots:a,slotProps:l,onGoToPrevious:H,isPreviousDisabled:N,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Gv.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const IV=le("div")({overflow:"hidden",width:pc,maxHeight:sh,display:"flex",flexDirection:"column",margin:"0 auto"}),NV=e=>Oe("MuiDateCalendar",e);De("MuiDateCalendar",["root","viewTransitionContainer"]);const AV=["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"],FV=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},NV,t)};function LV(e,t){const n=Nt(),o=pa(),r=Ev(),i=Mt({props:e,name:t});return Z({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??r,renderLoading:i.renderLoading??(()=>P.jsx("span",{children:"..."})),minDate:Xn(n,i.minDate,o.minDate),maxDate:Xn(n,i.maxDate,o.maxDate)})}const $V=le(IV,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:sh}),VV=le(Wv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Kv=T.forwardRef(function(t,n){const o=Nt(),r=pr(),i=LV(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:m,reduceAnimations:v,shouldDisableDate:k,shouldDisableMonth:D,shouldDisableYear:x,view:S,views:C,openTo:M,className:A,disabled:F,readOnly:z,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:X,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,slots:N,slotProps:O,loading:V,renderLoading:W,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:J}=i,ee=We(i,AV),{value:te,handleValueChange:ce,timezone:ie}=rh({name:"DateCalendar",timezone:J,value:d,defaultValue:u,onChange:w,valueManager:To}),{view:he,setView:B,focusedView:re,setFocusedView:Q,goToNextView:fe,setValueAndGoToNextView:me}=Tv({view:S,views:C,openTo:M,onChange:ce,onViewChange:l,autoFocus:a,focusedView:X,onFocusedViewChange:q}),{referenceDate:Ce,calendarState:ve,changeFocusedDay:xe,changeMonth:$e,handleChangeMonth:Ae,isDateDisabled:rt,onMonthSwitchingAnimationEnd:Pe}=m$({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:m,minDate:R,maxDate:$,shouldDisableDate:k,disablePast:y,disableFuture:p,timezone:ie}),ft=F&&te||R,Kt=F&&te||$,st=`${r}-grid-label`,Yt=re!==null,Xt=N?.calendarHeader??Gv,on=ct({elementType:Xt,externalSlotProps:O?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ve.currentMonth,onViewChange:B,onMonthChange:(pt,Qt)=>Ae({newMonth:pt,direction:Qt}),minDate:ft,maxDate:Kt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:ie,labelId:st},ownerState:i}),Ue=Ee(pt=>{const Qt=o.startOfMonth(pt),vn=o.endOfMonth(pt),Jt=rt(pt)?xi({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:rt,timezone:ie}):pt;Jt?(me(Jt,"finish"),m?.(Qt)):(fe(),$e(Qt)),xe(Jt,!0)}),tt=Ee(pt=>{const Qt=o.startOfYear(pt),vn=o.endOfYear(pt),Jt=rt(pt)?xi({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:rt,timezone:ie}):pt;Jt?(me(Jt,"finish"),b?.(Jt)):(fe(),$e(Qt)),xe(Jt,!0)}),Mn=Ee(pt=>ce(pt&&_l(o,pt,te??Ce),"finish",he));T.useEffect(()=>{te!=null&&o.isValid(te)&&$e(te)},[te]);const hn=i,Me=FV(hn),Be={disablePast:y,disableFuture:p,maxDate:$,minDate:R},vt={disableHighlightToday:K,readOnly:z,disabled:F,timezone:ie,gridLabelId:st,slots:N,slotProps:O},ln=T.useRef(he);T.useEffect(()=>{ln.current!==he&&(re===ln.current&&Q(he,!0),ln.current=he)},[re,Q,he]);const uo=T.useMemo(()=>[te],[te]);return P.jsxs($V,Z({ref:n,className:Se(Me.root,A),ownerState:hn},ee,{children:[P.jsx(Xt,Z({},on,{slots:N,slotProps:O})),P.jsx(VV,{reduceAnimations:v,className:Me.viewTransitionContainer,transKey:he,ownerState:hn,children:P.jsxs("div",{children:[he==="year"&&P.jsx(qv,Z({},Be,vt,{value:te,onChange:tt,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("year",pt),yearsOrder:oe,yearsPerRow:se,referenceDate:Ce})),he==="month"&&P.jsx(Uv,Z({},Be,vt,{hasFocus:Yt,className:A,value:te,onChange:Ue,shouldDisableMonth:D,onFocusedViewChange:pt=>Q("month",pt),monthsPerRow:j,referenceDate:Ce})),he==="day"&&P.jsx(z$,Z({},ve,Be,vt,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:xe,reduceAnimations:v,selectedDays:uo,onSelectedDaysChange:Mn,shouldDisableDate:k,shouldDisableMonth:D,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("day",pt),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:V,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(Kv.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:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:k,reduceAnimations:D,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:M,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:O,displayWeekNumber:V,timezone:W})=>P.jsx(Kv,{view:e,onViewChange:t,views:n.filter(Qp),focusedView:o&&Qp(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:k,reduceAnimations:D,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:M,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:O,displayWeekNumber:V,timezone:W}),Xv=T.forwardRef(function(t,n){const o=Jo(),r=Nt(),i=Sv(t,"MuiDesktopDatePicker"),a=Z({day:Ss,month:Ss,year:Ss},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:Ju(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Z({openPickerIcon:aL,field:uh},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Hl(i.slotProps?.field,u),xv(i),{ref:n}),toolbar:Z({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=oL({props:l,valueManager:To,valueType:"date",getOpenDialogAriaText:bv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:ma});return d()});Xv.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const jV=le(Hg)({[`& .${Ci.container}`]:{outline:0},[`& .${Ci.paper}`]:{outline:0,minWidth:pc}}),WV=le(Yg)({"&:first-of-type":{padding:0}});function BV(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??jV,l=r?.mobileTransition??$r;return P.jsx(a,Z({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:P.jsx(WV,{children:t})}))}const HV=["props","getOpenDialogAriaText"],zV=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,HV);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:k,disabled:D,localeText:x}=t,S=T.useRef(null),C=pr(),M=i?.toolbar?.hidden??!1,{open:A,actions:F,layoutProps:z,renderCurrentView:R,fieldProps:$,contextValue:K}=kv(Z({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),X=r.field,q=ct({elementType:X,externalSlotProps:i?.field,additionalProps:Z({},$,M&&{id:C},!(D||k)&&{onClick:F.onOpen,onKeyDown:wF(F.onOpen)},{readOnly:k??!0,disabled:D,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Z({},q.inputProps,{"aria-label":n($.value)});const Y=Z({textField:r.textField},q.slots),H=r.layout??ih;let ae=C;M&&(m?ae=`${C}-label`:ae=void 0);const N=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:C}),mobilePaper:Z({"aria-labelledby":ae},i?.mobilePaper)}),O=at(S,q.unstableFieldRef);return{renderPicker:()=>P.jsxs(Mv,{contextValue:K,localeText:x,children:[P.jsx(X,Z({},q,{slots:Y,slotProps:N,unstableFieldRef:O})),P.jsx(BV,Z({},F,{open:A,slots:r,slotProps:N,children:P.jsx(H,Z({},z,N?.layout,{slots:r,slotProps:N,children:R()}))}))]})}},Zv=T.forwardRef(function(t,n){const o=Jo(),r=Nt(),i=Sv(t,"MuiMobileDatePicker"),a=Z({day:Ss,month:Ss,year:Ss},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:Ju(r,i,!1),slots:Z({field:uh},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Hl(i.slotProps?.field,u),xv(i),{ref:n}),toolbar:Z({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=zV({props:l,valueManager:To,valueType:"date",getOpenDialogAriaText:bv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:ma});return d()});Zv.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const YV=["desktopModeMediaQuery"],Rl=T.forwardRef(function(t,n){const o=Mt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=CF}=o,i=We(o,YV);return Qm(r,{defaultMatches:!0})?P.jsx(Xv,Z({ref:n},i)):P.jsx(Zv,Z({ref:n},i))});process.env.NODE_ENV!=="production"&&(Rl.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Yd=le(Fs)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),UV=({setValue:e,value:t})=>{function n(r){const i=r?.format(Nr.db)||"",a={...t,1:i===jd?Os[1]:i};e(a),Xo(a)}function o(r){const i=r?.format(Nr.db)||"",a={...t,2:i===jd?Os[2]:i};e(a),Xo(a)}return P.jsxs(uc,{dateAdapter:hv,children:[P.jsx(Yd,{children:P.jsx(Rl,{label:ro.from,onChange:n,...Hd(t[1])})}),P.jsx(Yd,{children:P.jsx(Rl,{label:ro.to,onChange:o,...Hd(t[2])})})]})},gd=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Nr.db)||"",a={...n,1:i===jd?Os[1]:i};t(a),Xo(a)}return P.jsx(uc,{dateAdapter:hv,children:P.jsx(Yd,{children:P.jsx(Rl,{label:e,onChange:o,...Hd(n[1])})})})},pm={label:"",options:[]};function qV(){const{columnId:e,table:t}=wn,n=t?.grid;if(!n)return pm;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return pm;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 GV(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const KV=le(bu)({padding:0}),mm={Checkbox:KV},XV=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=qV(),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),Xo(d)};return P.jsxs(sa,{size:"small",children:[P.jsx(ia,{id:"column-filter-multiple-select-label",children:o}),P.jsxs(aa,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:P.jsx(Ps,{label:o}),renderValue:a=>a.join(", "),children:[P.jsxs(gl,{value:"All",children:[P.jsx(mm.Checkbox,{checked:n.indexOf("All")>-1}),P.jsx(Md,{primary:"All"})]},0),r.sort(GV).map(a=>P.jsxs(gl,{value:a,children:[P.jsx(mm.Checkbox,{checked:n.indexOf(a)>-1}),P.jsx(Md,{primary:a})]},a))]})]})},ZV=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),Xo(i)}function o(r){const i={...t,2:r.target.value};e(i),Xo(i)}return P.jsxs(ze.Fragment,{children:[P.jsx(Ds,{label:ro.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),P.jsx(Ds,{label:ro.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},yd=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),Xo(i)}return P.jsx(Ds,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},Ua=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),Xo(r)}return P.jsx(Ds,{label:ro.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},QV=({filterId:e,setValue:t,value:n})=>P.jsxs(ze.Fragment,{children:[e===Ve.Boolean&&P.jsx(TA,{setValue:t,value:n}),e===Ve.TextEqual&&P.jsx(Ua,{setValue:t,value:n}),e===Ve.TextNotEqual&&P.jsx(Ua,{setValue:t,value:n}),e===Ve.TextContain&&P.jsx(Ua,{setValue:t,value:n}),e===Ve.TextNotContain&&P.jsx(Ua,{setValue:t,value:n}),e===Ve.MultipleSelect&&P.jsx(XV,{setValue:t,value:n}),e===Ve.NumberEqual&&P.jsx(yd,{label:ro.filter,setValue:t,value:n}),e===Ve.NumberFrom&&P.jsx(yd,{label:ro.from,setValue:t,value:n}),e===Ve.NumberTo&&P.jsx(yd,{label:ro.to,setValue:t,value:n}),e===Ve.NumberBetween&&P.jsx(ZV,{setValue:t,value:n}),e===Ve.DateEqual&&P.jsx(gd,{label:ro.filter,setValue:t,value:n}),e===Ve.DateFrom&&P.jsx(gd,{label:ro.from,setValue:t,value:n}),e===Ve.DateTo&&P.jsx(gd,{label:ro.to,setValue:t,value:n}),e===Ve.DateBetween&&P.jsx(UV,{setValue:t,value:n})]}),JV=le(gl)({fontSize:"12px"}),gm={MenuItem:JV},ej=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:l="12.8em",height:d,disabled:u=!1})=>P.jsxs(sa,{variant:"outlined",size:"small",children:[P.jsx(ia,{id:"reportType",children:e}),P.jsxs(aa,{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&&P.jsx(gm.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>P.jsx(gm.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),tj={id:Ve.DateBetween,name:"Between"},nj={id:Ve.DateEqual,name:"Equal"},oj={id:Ve.DateFrom,name:"From"},rj={id:Ve.DateTo,name:"To"},sj={id:Ve.NumberBetween,name:"Between"},ij={id:Ve.NumberEqual,name:"Equal"},aj={id:Ve.NumberFrom,name:"From"},lj={id:Ve.NumberTo,name:"To"},cj={id:Ve.TextContain,name:"Contains"},dj={id:Ve.TextEqual,name:"Equal"},uj={id:Ve.TextNotContain,name:"Does not contain"},hj={id:Ve.TextNotEqual,name:"Not equal"},ym=[ij,aj,lj,sj],fj={[sn.Boolean]:[],[sn.Date]:[nj,oj,rj,tj],[sn.MultipleSelect]:[],[sn.Number]:ym,[sn.NumberFormatted]:ym,[sn.Text]:[cj,uj,dj,hj]},pj=({filterId:e,setFilterId:t})=>{const n=fj[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?P.jsx(ej,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},mj=le(Fs)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),gj={Wrapper:mj},yj=()=>{const[e,t]=ze.useState(Os),[n,o]=ze.useState(Ve.TextContain),[r,i]=ze.useState(!1);return CA(i),wA(r,o,t),r?P.jsx(sy,{setIsOpened:i,children:P.jsxs(gj.Wrapper,{children:[P.jsx(pj,{filterId:n,setFilterId:o}),P.jsx(QV,{filterId:n,setValue:t,value:e}),P.jsx(xA,{setIsOpened:i,setValue:t,value:e})]})}):null};function vj(e){ze.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(Ud);if(!n)return;const{x:o,y:r}=Cn;wm(n,o,r)},0)}return Cn.subscribe(t),()=>{Cn.unsubscribe(t)}},[])}const bj=le("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),wj=le("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),Cj=le("span")(({theme:e})=>({backgroundColor:e.palette.text.primary})),un={Ul:bj,Li:wj,Icon:Cj},Sj=({clientId:e,clientName:t,setIsOpened:n})=>{const o=()=>{const r=Cn.table,i=r?.grid;if(!r||!i){n(!1);return}r.downloadManager.download(r,e,t),n(!1)};return P.jsxs(un.Li,{onClick:o,children:[P.jsx(un.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},_j=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:P.jsxs(un.Li,{onClick:n,children:[P.jsx(un.Icon,{className:"sgi sgi-link"}),"Group"]})};function xj(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const Rj=({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 xj(t)?P.jsxs(ze.Fragment,{children:[P.jsx(ml,{}),P.jsxs(un.Li,{onClick:n,children:[P.jsx(un.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},Ej=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?P.jsxs(un.Li,{onClick:n,children:[P.jsx(un.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},Tj=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?P.jsxs(un.Li,{onClick:n,children:[P.jsx(un.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},kj=({setIsOpened:e})=>{function t(){const n=Cn.table,o=n?.grid;if(!o||!n){e(!1);return}window.navigator.clipboard.writeText(n.downloadManager.createCSV(n)).then(()=>{}).catch(()=>{}),o.getSelectionModel()&&o.setSelectedRows([]),e(!1)}return P.jsxs(un.Li,{onClick:t,children:[P.jsx(un.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},Pj=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?P.jsxs(un.Li,{onClick:n,children:[P.jsx(un.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},Dj=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=Cn.table;r?.printer.print(r,e,t),n(!1)}return P.jsxs(un.Li,{onClick:o,children:[P.jsx(un.Icon,{className:"sgi sgi-printer"}),"Print"]})},Oj=({clientId:e,clientName:t})=>{const[n,o]=ze.useState(!1);return vj(o),n?P.jsx(sy,{setIsOpened:o,children:P.jsxs(un.Ul,{children:[P.jsx(Dj,{clientId:e,clientName:t,setIsOpened:o}),P.jsx(kj,{setIsOpened:o}),P.jsx(Sj,{clientId:e,clientName:t,setIsOpened:o}),P.jsx(Rj,{setIsOpened:o}),P.jsx(Ej,{setIsOpened:o}),P.jsx(_j,{setIsOpened:o}),P.jsx(Pj,{setIsOpened:o}),P.jsx(Tj,{setIsOpened:o})]})}):null};exports.ColumnFilters=yj;exports.ContextMenu=Oj;exports.DecoratorColumnFilter=jN;exports.DecoratorFilter=Jy;exports.DefaultPrinter=lv;exports.DeletedRowsFilter=DI;exports.EColumnFiltersGroup=sn;exports.Filter=Qy;exports.SlickTable=UN;exports.SlickgridTable=FN;exports.handleHeaderButtons=ev;exports.headerButtons=ur;exports.openColumnFilter=MI;exports.openContextMenu=cv;
|