asma-core-ui 2.21.3 → 2.22.4
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/CHANGELOG.md +0 -12
- package/dist/asma-core-ui.es.js +6 -182
- package/dist/src/components/pickers/date-picker/components/DatePickerInputIndex.d.ts +8 -0
- package/dist/src/components/pickers/date-picker/types.d.ts +2 -0
- package/dist/src/components/table/components/TableBody.d.ts +9 -0
- package/dist/src/components/table/components/TableFooter.d.ts +7 -5
- package/dist/src/components/table/components/TableHeader.d.ts +6 -4
- package/dist/src/components/table/components/TableNoRowsOverlay.d.ts +5 -0
- package/dist/src/components/table/components/TableRow.d.ts +2 -2
- package/dist/src/components/table/components/TableRows.d.ts +2 -2
- package/dist/src/components/table/components/TableSkeleton.d.ts +4 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/style.css +2 -2
- package/package.json +1 -2
- package/dist/src/components/table/__deprecated-data-grid/StyledDataGrid.d.ts +0 -8
- package/dist/src/components/table/__deprecated-data-grid/StyledGridActionsCellItem.d.ts +0 -3
- package/dist/src/components/table/__deprecated-data-grid/components/ColumnFormControlItem.d.ts +0 -6
- package/dist/src/components/table/__deprecated-data-grid/components/ColumnsMenu.d.ts +0 -7
- package/dist/src/components/table/__deprecated-data-grid/components/columnActions.d.ts +0 -13
- package/dist/src/components/table/__deprecated-data-grid/index.d.ts +0 -3
- package/dist/src/components/table/__deprecated-data-grid/types.d.ts +0 -9
- package/dist/src/components/table/__deprecated-data-grid/x-data-grid-types.d.ts +0 -2
package/dist/asma-core-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t,{Children as n,
|
|
1
|
+
import*as e from"react";import t,{Children as n,forwardRef as o,useRef as r,useCallback as i,useEffect as a,createElement as l,cloneElement as s,useContext as u,useMemo as c,Component as d,useLayoutEffect as f,useState as p,memo as h,isValidElement as g,createContext as m,Fragment as v}from"react";import{Badge as y,Chip as b,Tooltip as w,Typography as x,Dialog as _,DialogActions as k,DialogContent as E,DialogTitle as C,Alert as O,AlertTitle as S,Snackbar as N,Checkbox as j,TextField as T,Select as P,MenuItem as M,Autocomplete as A,Paper as R,Slider as I,Switch as D,Radio as L,RadioGroup as q,FormControl as F,Popover as z,Popper as V,Fade as B,ClickAwayListener as H,FormControlLabel as U,FormHelperText as W,FormLabel as $,InputLabel as G,Stack as K,FormGroup as Y,Drawer as Z,Menu as X,MenuList as Q,Tab as J,Tabs as ee,Container as te,Accordion as ne,AccordionSummary as oe,AccordionDetails as re,Skeleton as ie}from"@mui/material";import{Avatar as ae,ClickAwayListener as le,Fade as se,Paper as ue,Popper as ce,Skeleton as de}from"@mui/material";import fe from"prop-types";import{ThemeContext as pe}from"@emotion/react";import he,{createPortal as ge}from"react-dom";const me=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e)))),ve=(e,t)=>Object.fromEntries(Object.entries(e).filter((([e])=>t.includes(e))));function ye(e){const t={};for(const[n,o]of Object.entries(e))o.includes("var")?Object.assign(t,{[`${n}`]:JSON.parse(JSON.stringify(getComputedStyle(document.body).getPropertyValue(o.replaceAll(/((var)|\(|\))/g,"")))).trim()}):Object.assign(t,{[`${n}`]:o});return t}var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function we(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xe,_e={exports:{}},ke={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
@@ -7,7 +7,7 @@ import*as e from"react";import t,{Children as n,isValidElement as o,cloneElement
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var Ee,Ce={};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.development.js
|
|
@@ -16,189 +16,13 @@ import*as e from"react";import t,{Children as n,isValidElement as o,cloneElement
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/"production"===process.env.NODE_ENV?Re.exports=function(){if(Ee)return Te;Ee=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,o){var a,s={},u=null,c=null;for(a in void 0!==o&&(u=""+o),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)r.call(t,a)&&!l.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===s[a]&&(s[a]=t[a]);return{$$typeof:n,type:e,key:u,ref:c,props:s,_owner:i.current}}return Te.Fragment=o,Te.jsx=a,Te.jsxs=a,Te}():Re.exports=(Ne||(Ne=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator",b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=b.ReactDebugCurrentFrame,r=o.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var y,w=!1,x=!1,C=!1,O=!1,k=!1;function S(e){return e.displayName||"Context"}function E(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case o:return"Portal";case l:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return S(e)+".Consumer";case a:return S(e._context)+".Provider";case u:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:E(e.type)||"Memo";case f:var n=e,h=n._payload,m=n._init;try{return E(m(h))}catch{return null}}return null}y=Symbol.for("react.module.reference");var R,T,N,j,P,M,I,_=Object.assign,D=0;function A(){}A.__reactDisabledLog=!0;var F,L=b.ReactCurrentDispatcher;function V(e,t,n){if(void 0===F)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);F=o&&o[1]||""}return"\n"+F+e}var $,z=!1,q="function"==typeof WeakMap?WeakMap:Map;function H(e,t){if(!e||z)return"";var n,o=$.get(e);if(void 0!==o)return o;z=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=L.current,L.current=null,function(){if(0===D){R=console.log,T=console.info,N=console.warn,j=console.error,P=console.group,M=console.groupCollapsed,I=console.groupEnd;var e={configurable:!0,enumerable:!0,value:A,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(l,[])}catch(e){n=e}Reflect.construct(e,[],l)}else{try{l.call()}catch(e){n=e}e.call(l.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),s=n.stack.split("\n"),u=a.length-1,c=s.length-1;u>=1&&c>=0&&a[u]!==s[c];)c--;for(;u>=1&&c>=0;u--,c--)if(a[u]!==s[c]){if(1!==u||1!==c)do{if(u--,--c<0||a[u]!==s[c]){var d="\n"+a[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&$.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{z=!1,L.current=r,function(){if(0==--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},e,{value:R}),info:_({},e,{value:T}),warn:_({},e,{value:N}),error:_({},e,{value:j}),group:_({},e,{value:P}),groupCollapsed:_({},e,{value:M}),groupEnd:_({},e,{value:I})})}D<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?V(p):"";return"function"==typeof e&&$.set(e,f),f}function B(e,t,n){if(null==e)return"";if("function"==typeof e)return H(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return V(e);switch(e){case c:return V("Suspense");case d:return V("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return function(e,t,n){return H(e,!1)}(e.render);case p:return B(e.type,t,n);case f:var o=e,r=o._payload,i=o._init;try{return B(i(r),t,n)}catch{}}return""}$=new q;var U=Object.prototype.hasOwnProperty,W={},G=b.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,n=B(e.type,e._source,t?t.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var Y=Array.isArray;function Z(e){return Y(e)}function X(e){return""+e}function Q(e){if(function(e){try{return X(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var J,ee,te,ne=b.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};te={};var re=function(e,t,o,r,i,l,a){var s={$$typeof:n,type:e,key:t,ref:o,props:a,_owner:l,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ie(e,t,n,o,r){var i,l={},a=null,s=null;for(i in void 0!==n&&(Q(n),a=""+n),function(e){if(U.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),a=""+t.key),function(e){if(U.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(s=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=E(ne.current.type);te[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',E(ne.current.type),e.ref),te[n]=!0)}}(t,r)),t)U.call(t,i)&&!oe.hasOwnProperty(i)&&(l[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===l[i]&&(l[i]=u[i])}if(a||s){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var n=function(){J||(J=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(l,c),s&&function(e,t){var n=function(){ee||(ee=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(l,c)}return re(e,a,s,r,o,ne.current,l)}var le,ae=b.ReactCurrentOwner,se=b.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=B(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(ae.current){var e=E(ae.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}le=!1;var pe={};function fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=de();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var o="";e&&e._owner&&e._owner!==ae.current&&(o=" It was passed a child from "+E(e._owner.type)+"."),ue(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),ue(null)}}}function he(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&fe(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e[g];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,l=r.call(e);!(i=l.next()).done;)ce(i.value)&&fe(i.value,t)}}function me(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==p)return;t=n.propTypes}if(t){var o=E(n);!function(e,t,n,o,r){var i=Function.call.bind(U);for(var l in e)if(i(e,l)){var a=void 0;try{if("function"!=typeof e[l]){var s=Error((o||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[l](t,l,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){a=e}a&&!(a instanceof Error)&&(K(r),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",n,l,typeof a),K(null)),a instanceof Error&&!(a.message in W)&&(W[a.message]=!0,K(r),v("Failed %s type: %s",n,a.message),K(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||le||(le=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ge(e,t,o,m,g,b){var S=function(e){return!!("string"==typeof e||"function"==typeof e||e===r||e===l||k||e===i||e===c||e===d||O||e===h||w||x||C||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===y||void 0!==e.getModuleId))}(e);if(!S){var R="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(R+=" 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 T,N=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);R+=N||de(),null===e?T="null":Z(e)?T="array":void 0!==e&&e.$$typeof===n?(T="<"+(E(e.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,R)}var j=ie(e,t,o,g,b);if(null==j)return j;if(S){var P=t.children;if(void 0!==P)if(m)if(Z(P)){for(var M=0;M<P.length;M++)he(P[M],e);Object.freeze&&Object.freeze(P)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(P,e)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){ue(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),ue(null);break}}null!==e.ref&&(ue(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(j):me(j),j}var be=function(e,t,n){return ge(e,t,n,!1)},ve=function(e,t,n){return ge(e,t,n,!0)};je.Fragment=r,je.jsx=be,je.jsxs=ve}()),je);var Pe=Re.exports;const Me=({color:e="primary",dataTest:t,...n})=>Pe.jsx(v,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-badge-background)",color:"var(--colors-badge-text)"},...n.sx}}),Ie=({dataTest:e,...t})=>Pe.jsx(y,{...t,"data-test":e});function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_e.apply(this,arguments)}function De(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Ae(e,t){return(Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ae(e,t)}const Le=!1;var Ve="production"!==process.env.NODE_ENV?pe.oneOfType([pe.number,pe.shape({enter:pe.number,exit:pe.number,appear:pe.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&pe.oneOfType([pe.string,pe.shape({enter:pe.string,exit:pe.string,active:pe.string}),pe.shape({enter:pe.string,enterDone:pe.string,enterActive:pe.string,exit:pe.string,exitDone:pe.string,exitActive:pe.string})]);const $e=t.createContext(null);var ze="unmounted",qe="exited",He="entering",Be="entered",Ue="exiting",We=function(e){function n(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=qe,o.appearStatus=He):r=Be:r=t.unmountOnExit||t.mountOnEnter?ze:qe,o.state={status:r},o.nextCallback=null,o}Fe(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ze?{status:qe}:null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==He&&n!==Be&&(t=He):(n===He||n===Be)&&(t=Ue)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===He){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ve.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qe&&this.setState({status:ze})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[ve.findDOMNode(this),o],i=r[0],l=r[1],a=this.getTimeouts(),s=o?a.appear:a.enter;!e&&!n||Le?this.safeSetState({status:Be},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:He},(function(){t.props.onEntering(i,l),t.onTransitionEnd(s,(function(){t.safeSetState({status:Be},(function(){t.props.onEntered(i,l)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:ve.findDOMNode(this);t&&!Le?(this.props.onExit(o),this.safeSetState({status:Ue},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:qe},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:qe},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ve.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],l=r[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===ze)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var r=De(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement($e.Provider,{value:null},"function"==typeof o?o(e,r):t.cloneElement(t.Children.only(o),r))},n}(t.Component);function Ge(){}We.contextType=$e,We.propTypes="production"!==process.env.NODE_ENV?{nodeRef:pe.shape({current:typeof Element>"u"?pe.any:function(e,t,n,o,r,i){var l=e[t];return pe.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:pe.oneOfType([pe.func.isRequired,pe.element.isRequired]).isRequired,in:pe.bool,mountOnEnter:pe.bool,unmountOnExit:pe.bool,appear:pe.bool,enter:pe.bool,exit:pe.bool,timeout:function(e){var t=Ve;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return t.apply(void 0,[e].concat(o))},addEndListener:pe.func,onEnter:pe.func,onEntering:pe.func,onEntered:pe.func,onExit:pe.func,onExiting:pe.func,onExited:pe.func}:{},We.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ge,onEntering:Ge,onEntered:Ge,onExit:Ge,onExiting:Ge,onExited:Ge},We.UNMOUNTED=ze,We.EXITED=qe,We.ENTERING=He,We.ENTERED=Be,We.EXITING=Ue;const Ke=We;function Ye(e,t){var r=Object.create(null);return e&&n.map(e,(function(e){return e})).forEach((function(e){var n;r[e.key]=(n=e,t&&o(n)?t(n):n)})),r}function Ze(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Xe(e,t){return Ye(e.children,(function(n){return r(n,{onExited:t.bind(null,n),in:!0,appear:Ze(n,"appear",e),enter:Ze(n,"enter",e),exit:Ze(n,"exit",e)})}))}function Qe(e,t,n){var i=Ye(e.children),l=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var l,a={};for(var s in t){if(o[s])for(l=0;l<o[s].length;l++){var u=o[s][l];a[o[s][l]]=n(u)}a[s]=n(s)}for(l=0;l<r.length;l++)a[r[l]]=n(r[l]);return a}(t,i);return Object.keys(l).forEach((function(a){var s=l[a];if(o(s)){var u=a in t,c=a in i,d=t[a],p=o(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&o(d)&&(l[a]=r(s,{onExited:n.bind(null,s),in:d.props.in,exit:Ze(s,"exit",e),enter:Ze(s,"enter",e)})):l[a]=r(s,{in:!1}):l[a]=r(s,{onExited:n.bind(null,s),in:!0,exit:Ze(s,"exit",e),enter:Ze(s,"enter",e)})}})),l}var Je=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},et=function(e){function n(t,n){var o,r=(o=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}Fe(n,e);var o=n.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n=t.children,o=t.handleExited;return{children:t.firstRender?Xe(e,o):Qe(e,n,o),firstRender:!1}},o.handleExited=function(e,t){var n=Ye(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=_e({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,n=e.component,o=e.childFactory,r=De(e,["component","childFactory"]),i=this.state.contextValue,l=Je(this.state.children).map(o);return delete r.appear,delete r.enter,delete r.exit,null===n?t.createElement($e.Provider,{value:i},l):t.createElement($e.Provider,{value:i},t.createElement(n,r,l))},n}(t.Component);et.propTypes="production"!==process.env.NODE_ENV?{component:pe.any,children:pe.node,appear:pe.bool,enter:pe.bool,exit:pe.bool,childFactory:pe.func}:{},et.defaultProps={component:"div",childFactory:function(e){return e}};const tt=et;function nt(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function ot(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function rt(e){if(!ot(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=rt(e[n])})),t}function it(e,t,n={clone:!0}){const o=n.clone?_e({},e):e;return ot(e)&&ot(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(ot(t[r])&&r in e&&ot(e[r])?o[r]=it(e[r],t[r],n):n.clone?o[r]=ot(t[r])?rt(t[r]):t[r]:o[r]=t[r])})),o}function lt(e,t,n,o,r){const i=e[t],l=r||t;if(null==i||typeof window>"u")return null;let a;const s=i.type;return"function"==typeof s&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(s)&&(a="Did you accidentally use a plain function component for an element instead?"),void 0!==a?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const at=nt(pe.element,lt);at.isRequired=nt(pe.element.isRequired,lt);const st=at;const ut=nt(pe.elementType,(function(e,t,n,o,r){const i=e[t],l=r||t;if(null==i||typeof window>"u")return null;let a;return"function"==typeof i&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(i)&&(a="Did you accidentally provide a plain function component instead?"),void 0!==a?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}));function ct(e){return"production"===process.env.NODE_ENV?e:_e({},e,{"exact-prop: ":t=>{const n=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return n.length>0?new Error(`The following props are not supported: ${n.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}function dt(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var pt,ft={exports:{}},ht={};
|
|
20
|
-
/**
|
|
21
|
-
* @license React
|
|
22
|
-
* react-is.production.min.js
|
|
23
|
-
*
|
|
24
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the MIT license found in the
|
|
27
|
-
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var mt,gt={};
|
|
29
|
-
/**
|
|
30
|
-
* @license React
|
|
31
|
-
* react-is.development.js
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the MIT license found in the
|
|
36
|
-
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/"production"===process.env.NODE_ENV?ft.exports=function(){if(pt)return ht;pt=1;var e,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"),l=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case o:case i:case r:case c:case d:return e;default:switch(e=e&&e.$$typeof){case s:case a:case u:case f:case p:case l:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),ht.ContextConsumer=a,ht.ContextProvider=l,ht.Element=t,ht.ForwardRef=u,ht.Fragment=o,ht.Lazy=f,ht.Memo=p,ht.Portal=n,ht.Profiler=i,ht.StrictMode=r,ht.Suspense=c,ht.SuspenseList=d,ht.isAsyncMode=function(){return!1},ht.isConcurrentMode=function(){return!1},ht.isContextConsumer=function(e){return m(e)===a},ht.isContextProvider=function(e){return m(e)===l},ht.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ht.isForwardRef=function(e){return m(e)===u},ht.isFragment=function(e){return m(e)===o},ht.isLazy=function(e){return m(e)===f},ht.isMemo=function(e){return m(e)===p},ht.isPortal=function(e){return m(e)===n},ht.isProfiler=function(e){return m(e)===i},ht.isStrictMode=function(e){return m(e)===r},ht.isSuspense=function(e){return m(e)===c},ht.isSuspenseList=function(e){return m(e)===d},ht.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===l||t.$$typeof===a||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},ht.typeOf=m,ht}():ft.exports=(mt||(mt=1,"production"!==process.env.NODE_ENV&&function(){var e,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"),l=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case o:case i:case r:case c:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case a:case u:case f:case p:case l:return g;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var g=a,b=l,v=t,y=u,w=o,x=f,C=p,O=n,k=i,S=r,E=c,R=d,T=!1,N=!1;gt.ContextConsumer=g,gt.ContextProvider=b,gt.Element=v,gt.ForwardRef=y,gt.Fragment=w,gt.Lazy=x,gt.Memo=C,gt.Portal=O,gt.Profiler=k,gt.StrictMode=S,gt.Suspense=E,gt.SuspenseList=R,gt.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},gt.isConcurrentMode=function(e){return N||(N=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},gt.isContextConsumer=function(e){return m(e)===a},gt.isContextProvider=function(e){return m(e)===l},gt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},gt.isForwardRef=function(e){return m(e)===u},gt.isFragment=function(e){return m(e)===o},gt.isLazy=function(e){return m(e)===f},gt.isMemo=function(e){return m(e)===p},gt.isPortal=function(e){return m(e)===n},gt.isProfiler=function(e){return m(e)===i},gt.isStrictMode=function(e){return m(e)===r},gt.isSuspense=function(e){return m(e)===c},gt.isSuspenseList=function(e){return m(e)===d},gt.isValidElementType=function(t){return!("string"!=typeof t&&"function"!=typeof t&&t!==o&&t!==i&&t!==r&&t!==c&&t!==d&&t!==h&&("object"!=typeof t||null===t||t.$$typeof!==f&&t.$$typeof!==p&&t.$$typeof!==l&&t.$$typeof!==a&&t.$$typeof!==u&&t.$$typeof!==e&&void 0===t.getModuleId))},gt.typeOf=m}()),gt);var bt=ft.exports;const vt=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function yt(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(vt);return t&&t[1]||""}(e)||t}function wt(e,t,n){const o=yt(t);return e.displayName||(""!==o?`${n}(${o})`:n)}function xt(e,t,n,o,r){if("production"===process.env.NODE_ENV)return null;const i=e[t],l=r||t;return null==i?null:i&&1!==i.nodeType?new Error(`Invalid ${o} \`${l}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Ct=pe.oneOfType([pe.func,pe.object]);function Ot(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":dt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function kt(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function St(e,t=166){let n;function o(...o){clearTimeout(n),n=setTimeout((()=>{e.apply(this,o)}),t)}return o.clear=()=>{clearTimeout(n)},o}function Et(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)}function Rt(e){return e&&e.ownerDocument||document}function Tt(e){return Rt(e).defaultView||window}function Nt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const jt=typeof window<"u"?e.useLayoutEffect:e.useEffect;let Pt=0;const Mt=e["useId".toString()];function It(t){if(void 0!==Mt){const e=Mt();return t??e}return function(t){const[n,o]=e.useState(t),r=t||n;return e.useEffect((()=>{null==n&&(Pt+=1,o(`mui-${Pt}`))}),[n]),r}(t)}function _t({controlled:t,default:n,name:o,state:r="value"}){const{current:i}=e.useRef(void 0!==t),[l,a]=e.useState(n),s=i?t:l;if("production"!==process.env.NODE_ENV){e.useEffect((()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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("\n"))}),[r,o,t]);const{current:l}=e.useRef(n);e.useEffect((()=>{!i&&l!==n&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join("\n"))}),[JSON.stringify(n)])}return[s,e.useCallback((e=>{i||a(e)}),[])]}function Dt(t){const n=e.useRef(t);return jt((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])}function At(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Nt(t,e)}))}),t)}let Ft,Lt=!0,Vt=!1;const $t={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function zt(e){e.metaKey||e.altKey||e.ctrlKey||(Lt=!0)}function qt(){Lt=!1}function Ht(){"hidden"===this.visibilityState&&Vt&&(Lt=!0)}function Bt(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Lt||function(e){const{type:t,tagName:n}=e;return!!("INPUT"===n&&$t[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||e.isContentEditable)}(t)}function Ut(){const t=e.useCallback((e=>{null!=e&&function(e){e.addEventListener("keydown",zt,!0),e.addEventListener("mousedown",qt,!0),e.addEventListener("pointerdown",qt,!0),e.addEventListener("touchstart",qt,!0),e.addEventListener("visibilitychange",Ht,!0)}(e.ownerDocument)}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Bt(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(Vt=!0,window.clearTimeout(Ft),Ft=window.setTimeout((()=>{Vt=!1}),100),n.current=!1,!0)},ref:t}}function Wt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Gt=t=>{const n=e.useRef({});return e.useEffect((()=>{n.current=t})),n.current};const Kt=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function Yt(e,t,n,o){const r=e[t];if(null==r||!Kt(r)){const e=function(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 null===e?"null":e.constructor.name;default:return t}}(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Zt(e,t,...n){return void 0===e[t]?null:Yt(e,t,...n)}function Xt(){return null}Zt.isRequired=Yt,Xt.isRequired=Xt;const Qt="production"===process.env.NODE_ENV?Xt:Zt;function Jt(e,t){const n=_e({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=_e({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const r=e[o]||{},i=t[o];n[o]={},i&&Object.keys(i)?r&&Object.keys(r)?(n[o]=_e({},i),Object.keys(r).forEach((e=>{n[o][e]=Jt(r[e],i[e])}))):n[o]=i:n[o]=r}else void 0===n[o]&&(n[o]=e[o])})),n}function en(e,t,n=void 0){const o={};return Object.keys(e).forEach((r=>{o[r]=e[r].reduce(((e,o)=>{if(o){const r=t(o);""!==r&&e.push(r),n&&n[o]&&e.push(n[o])}return e}),[]).join(" ")})),o}const tn=e=>e,nn=(()=>{let e=tn;return{configure(t){e=t},generate:t=>e(t),reset(){e=tn}}})(),on=nn,rn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function ln(e,t,n="Mui"){const o=rn[t];return o?`${n}-${o}`:`${on.generate(e)}-${t}`}function an(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=ln(e,t,n)})),o}function sn(e){const{styles:t,defaultTheme:n={}}=e,o="function"==typeof t?e=>t(function(e){return null==e||0===Object.keys(e).length}(e)?n:e):t;return Pe.jsx(fe,{styles:o})}"production"!==process.env.NODE_ENV&&(sn.propTypes={defaultTheme:pe.object,styles:pe.oneOfType([pe.array,pe.string,pe.object,pe.func])});const un=["values","unit","step"],cn=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>_e({},e,{[t.key]:t.val})),{})};const dn={borderRadius:4},pn="production"!==process.env.NODE_ENV?pe.oneOfType([pe.number,pe.string,pe.object,pe.array]):{};function fn(e,t){return t?it(e,t,{clone:!1}):e}const hn={xs:0,sm:600,md:900,lg:1200,xl:1536},mn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hn[e]}px)`};function gn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||mn;return t.reduce(((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o)),{})}if("object"==typeof t){const e=o.breakpoints||mn;return Object.keys(t).reduce(((o,r)=>{if(-1!==Object.keys(e.values||hn).indexOf(r)){o[e.up(r)]=n(t[r],r)}else{const e=r;o[e]=t[e]}return o}),{})}return n(t)}function bn(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function vn(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:bn(e,n)||o,t&&(r=t(r,o,e)),r}function yn(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],l=bn(e.theme,o)||{};return gn(e,i,(e=>{let o=vn(l,r,e);return e===o&&"string"==typeof e&&(o=vn(l,r,`${t}${"default"===e?"":Ot(e)}`,e)),!1===n?o:{[n]:o}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:pn}:{},i.filterProps=[t],i}const wn={m:"margin",p:"padding"},xn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Cn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},On=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Cn[e])return[e];e=Cn[e]}const[t,n]=e.split(""),o=wn[t],r=xn[n]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),kn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],En=[...kn,...Sn];function Rn(e,t,n,o){var r;const i=null!=(r=bn(e,t,!1))?r:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):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("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Tn(e){return Rn(e,"spacing",8,"spacing")}function Nn(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function jn(e,t,n,o){if(-1===t.indexOf(n))return null;const r=function(e,t){return n=>e.reduce(((e,o)=>(e[o]=Nn(t,n),e)),{})}(On(n),o);return gn(e,e[n],r)}function Pn(e,t){const n=Tn(e.theme);return Object.keys(e).map((o=>jn(e,t,o,n))).reduce(fn,{})}function Mn(e){return Pn(e,kn)}function In(e){return Pn(e,Sn)}function _n(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,o)=>t[o]?fn(n,t[o](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Dn(e){return"number"!=typeof e?e:`${e}px solid`}Mn.propTypes="production"!==process.env.NODE_ENV?kn.reduce(((e,t)=>(e[t]=pn,e)),{}):{},Mn.filterProps=kn,In.propTypes="production"!==process.env.NODE_ENV?Sn.reduce(((e,t)=>(e[t]=pn,e)),{}):{},In.filterProps=Sn,"production"!==process.env.NODE_ENV&&En.reduce(((e,t)=>(e[t]=pn,e)),{});const An=yn({prop:"border",themeKey:"borders",transform:Dn}),Fn=yn({prop:"borderTop",themeKey:"borders",transform:Dn}),Ln=yn({prop:"borderRight",themeKey:"borders",transform:Dn}),Vn=yn({prop:"borderBottom",themeKey:"borders",transform:Dn}),$n=yn({prop:"borderLeft",themeKey:"borders",transform:Dn}),zn=yn({prop:"borderColor",themeKey:"palette"}),qn=yn({prop:"borderTopColor",themeKey:"palette"}),Hn=yn({prop:"borderRightColor",themeKey:"palette"}),Bn=yn({prop:"borderBottomColor",themeKey:"palette"}),Un=yn({prop:"borderLeftColor",themeKey:"palette"}),Wn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Rn(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:Nn(t,e)});return gn(e,e.borderRadius,n)}return null};Wn.propTypes="production"!==process.env.NODE_ENV?{borderRadius:pn}:{},Wn.filterProps=["borderRadius"],_n(An,Fn,Ln,Vn,$n,zn,qn,Hn,Bn,Un,Wn);const Gn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Rn(e.theme,"spacing",8,"gap"),n=e=>({gap:Nn(t,e)});return gn(e,e.gap,n)}return null};Gn.propTypes="production"!==process.env.NODE_ENV?{gap:pn}:{},Gn.filterProps=["gap"];const Kn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Rn(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:Nn(t,e)});return gn(e,e.columnGap,n)}return null};Kn.propTypes="production"!==process.env.NODE_ENV?{columnGap:pn}:{},Kn.filterProps=["columnGap"];const Yn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Rn(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:Nn(t,e)});return gn(e,e.rowGap,n)}return null};Yn.propTypes="production"!==process.env.NODE_ENV?{rowGap:pn}:{},Yn.filterProps=["rowGap"];function Zn(e,t){return"grey"===t?t:e}_n(Gn,Kn,Yn,yn({prop:"gridColumn"}),yn({prop:"gridRow"}),yn({prop:"gridAutoFlow"}),yn({prop:"gridAutoColumns"}),yn({prop:"gridAutoRows"}),yn({prop:"gridTemplateColumns"}),yn({prop:"gridTemplateRows"}),yn({prop:"gridTemplateAreas"}),yn({prop:"gridArea"}));function Xn(e){return e<=1&&0!==e?100*e+"%":e}_n(yn({prop:"color",themeKey:"palette",transform:Zn}),yn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zn}),yn({prop:"backgroundColor",themeKey:"palette",transform:Zn}));const Qn=yn({prop:"width",transform:Xn}),Jn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,o,r;return{maxWidth:(null==(n=e.theme)||null==(o=n.breakpoints)||null==(r=o.values)?void 0:r[t])||hn[t]||Xn(t)}};return gn(e,e.maxWidth,t)}return null};Jn.filterProps=["maxWidth"];const eo=yn({prop:"minWidth",transform:Xn}),to=yn({prop:"height",transform:Xn}),no=yn({prop:"maxHeight",transform:Xn}),oo=yn({prop:"minHeight",transform:Xn});yn({prop:"size",cssProperty:"width",transform:Xn}),yn({prop:"size",cssProperty:"height",transform:Xn});_n(Qn,Jn,eo,to,no,oo,yn({prop:"boxSizing"}));const ro={border:{themeKey:"borders",transform:Dn},borderTop:{themeKey:"borders",transform:Dn},borderRight:{themeKey:"borders",transform:Dn},borderBottom:{themeKey:"borders",transform:Dn},borderLeft:{themeKey:"borders",transform:Dn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wn},color:{themeKey:"palette",transform:Zn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zn},backgroundColor:{themeKey:"palette",transform:Zn},p:{style:In},pt:{style:In},pr:{style:In},pb:{style:In},pl:{style:In},px:{style:In},py:{style:In},padding:{style:In},paddingTop:{style:In},paddingRight:{style:In},paddingBottom:{style:In},paddingLeft:{style:In},paddingX:{style:In},paddingY:{style:In},paddingInline:{style:In},paddingInlineStart:{style:In},paddingInlineEnd:{style:In},paddingBlock:{style:In},paddingBlockStart:{style:In},paddingBlockEnd:{style:In},m:{style:Mn},mt:{style:Mn},mr:{style:Mn},mb:{style:Mn},ml:{style:Mn},mx:{style:Mn},my:{style:Mn},margin:{style:Mn},marginTop:{style:Mn},marginRight:{style:Mn},marginBottom:{style:Mn},marginLeft:{style:Mn},marginX:{style:Mn},marginY:{style:Mn},marginInline:{style:Mn},marginInlineStart:{style:Mn},marginInlineEnd:{style:Mn},marginBlock:{style:Mn},marginBlockStart:{style:Mn},marginBlockEnd:{style:Mn},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:Gn},rowGap:{style:Yn},columnGap:{style:Kn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xn},maxWidth:{style:Jn},minWidth:{transform:Xn},height:{transform:Xn},maxHeight:{transform:Xn},minHeight:{transform:Xn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},io=ro;const lo=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:s,style:u}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const c=bn(n,a)||{};return u?u(r):gn(r,t,(t=>{let n=vn(c,s,t);return t===n&&"string"==typeof t&&(n=vn(c,s,`${e}${"default"===t?"":Ot(t)}`,t)),!1===l?n:{[l]:n}}))}return function t(n){var o;const{sx:r,theme:i={}}=n||{};if(!r)return null;const l=null!=(o=i.unstable_sxConfig)?o:io;function a(n){let o=n;if("function"==typeof n)o=n(i);else if("object"!=typeof n)return n;if(!o)return null;const r=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),a=Object.keys(r);let s=r;return Object.keys(o).forEach((n=>{const r=function(e,t){return"function"==typeof e?e(t):e}(o[n],i);if(null!=r)if("object"==typeof r)if(l[n])s=fn(s,e(n,r,i,l));else{const e=gn({theme:i},r,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,r)?s=fn(s,e):s[n]=t({sx:r,theme:i})}else s=fn(s,e(n,r,i,l))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(a,s)}return Array.isArray(r)?r.map(a):a(r)}}();lo.filterProps=["sx"];const ao=lo,so=["breakpoints","palette","spacing","shape"];function uo(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={}}=e,l=De(e,so),a=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,r=De(e,un),i=cn(t),l=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function u(e,r){const i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return _e({keys:l,values:i,up:a,down:s,between:u,only:function(e){return l.indexOf(e)+1<l.length?u(e,l[l.indexOf(e)+1]):a(e)},not:function(e){const t=l.indexOf(e);return 0===t?a(l[1]):t===l.length-1?s(l[t]):u(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},r)}(n),s=function(e=8){if(e.mui)return e;const t=Tn({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(r);let u=it({breakpoints:a,direction:"ltr",components:{},palette:_e({mode:"light"},o),spacing:s,shape:_e({},dn,i)},l);return u=t.reduce(((e,t)=>it(e,t)),u),u.unstable_sxConfig=_e({},io,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return ao({sx:e,theme:this})},u}function co(t=null){const n=e.useContext(he);return!n||function(e){return 0===Object.keys(e).length}(n)?t:n}const po=uo();function fo(e=po){return co(e)}function ho({styles:e,themeId:t,defaultTheme:n={}}){const o=fo(n),r="function"==typeof e?e(t&&o[t]||o):e;return Pe.jsx(sn,{styles:r})}"production"!==process.env.NODE_ENV&&(ho.propTypes={defaultTheme:pe.object,styles:pe.oneOfType([pe.array,pe.func,pe.number,pe.object,pe.string,pe.bool]),themeId:pe.string});const mo=["sx"];function go(e){const{sx:t}=e,n=De(e,mo),{systemProps:o,otherProps:r}=(e=>{var t,n;const o={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:io;return Object.keys(e).forEach((t=>{r[t]?o.systemProps[t]=e[t]:o.otherProps[t]=e[t]})),o})(n);let i;return i=Array.isArray(t)?[o,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return ot(n)?_e({},o,n):o}:_e({},o,t),_e({},r,{sx:i})}function bo(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=bo(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function vo(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=bo(e))&&(o&&(o+=" "),o+=t);return o}const yo=["variant"];function wo(e){return 0===e.length}function xo(e){const{variant:t}=e,n=De(e,yo);let o=t||"";return Object.keys(n).sort().forEach((t=>{o+="color"===t?wo(o)?e[t]:Ot(e[t]):`${wo(o)?t:Ot(t)}${Ot(e[t].toString())}`})),o}const Co=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Oo(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ko=uo();function So({defaultTheme:e,theme:t,themeId:n}){return function(e){return 0===Object.keys(e).length}(t)?e:t[n]||t}function Eo(e={}){const{themeId:t,defaultTheme:n=ko,rootShouldForwardProp:o=Oo,slotShouldForwardProp:r=Oo}=e,i=e=>ao(_e({},e,{theme:So(_e({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,l={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d}=l,p=De(l,Co),f=void 0!==u?u:s&&"Root"!==s||!1,h=c||!1;let m;"production"!==process.env.NODE_ENV&&a&&(m=`${a}-${(e=>e.charAt(0).toLowerCase()+e.slice(1))(s||"Root")}`);let g=Oo;"Root"===s?g=o:s?g=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=
|
|
38
|
-
/**
|
|
39
|
-
* @mui/styled-engine v5.13.2
|
|
40
|
-
*
|
|
41
|
-
* @license MIT
|
|
42
|
-
* This source code is licensed under the MIT license found in the
|
|
43
|
-
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/
|
|
45
|
-
function(e,t){const n=we(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const o="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...t)}:n}(e,_e({shouldForwardProp:g,label:m},p)),v=(o,...r)=>{const l=r?r.map((e=>"function"==typeof e&&e.__emotion_real!==e?o=>e(_e({},o,{theme:So(_e({},o,{defaultTheme:n,themeId:t}))})):e)):[];let u=o;a&&d&&l.push((e=>{const o=So(_e({},e,{defaultTheme:n,themeId:t})),r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,o);if(r){const t={};return Object.entries(r).forEach((([n,r])=>{t[n]="function"==typeof r?r(_e({},e,{theme:o})):r})),d(e,t)}return null})),a&&!f&&l.push((e=>{const o=So(_e({},e,{defaultTheme:n,themeId:t}));return((e,t,n,o)=>{var r,i;const{ownerState:l={}}=e,a=[],s=null==n||null==(r=n.components)||null==(i=r[o])?void 0:i.variants;return s&&s.forEach((n=>{let o=!0;Object.keys(n.props).forEach((t=>{l[t]!==n.props[t]&&e[t]!==n.props[t]&&(o=!1)})),o&&a.push(t[xo(n.props)])})),a})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const o={};return n.forEach((e=>{const t=xo(e.props);o[t]=e.style})),o})(a,o),o,a)})),h||l.push(i);const c=l.length-r.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");u=[...o,...e],u.raw=[...o.raw,...e]}else"function"==typeof o&&o.__emotion_real!==o&&(u=e=>o(_e({},e,{theme:So(_e({},e,{defaultTheme:n,themeId:t}))})));const p=b(u,...l);if("production"!==process.env.NODE_ENV){let t;a&&(t=`${a}${s||""}`),void 0===t&&(t=`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return yt(e,"Component");if("object"==typeof e)switch(e.$$typeof){case bt.ForwardRef:return wt(e,e.render,"ForwardRef");case bt.Memo:return wt(e,e.type,"memo");default:return}}}(e)})`),p.displayName=t}return e.muiName&&(p.muiName=e.muiName),p};return b.withConfig&&(v.withConfig=b.withConfig),v}}const Ro=Eo();function To({props:e,name:t,defaultTheme:n,themeId:o}){let r=fo(n);return o&&(r=r[o]||r),function(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Jt(t.components[n].defaultProps,o):o}({theme:r,name:t,props:e})}function No(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function jo(e){if(e.type)return e;if("#"===e.charAt(0))return jo(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:dt(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:dt(10,o))}else r=r.split(",");return r=r.map((e=>parseFloat(e))),{type:n,values:r,colorSpace:o}}function Po(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function Mo(e){let t="hsl"===(e=jo(e)).type||"hsla"===e.type?jo(function(e){e=jo(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),Po({type:a,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Io(e,t){const n=Mo(e),o=Mo(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function _o(e,t){return e=jo(e),t=No(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Po(e)}function Do(e,t){if(e=jo(e),t=No(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Po(e)}function Ao(e,t){if(e=jo(e),t=No(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Po(e)}function Fo(e,t){return _e({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Lo={black:"#000",white:"#fff"},Vo={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"},$o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},zo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},qo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ho={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Bo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Uo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Wo=["mode","contrastThreshold","tonalOffset"],Go={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:Lo.white,default:Lo.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}},Ko={text:{primary:Lo.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:Lo.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}};function Yo(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ao(e.main,r):"dark"===t&&(e.dark=Do(e.main,i)))}function Zo(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,r=De(e,Wo),i=e.primary||function(e="light"){return"dark"===e?{main:Ho[200],light:Ho[50],dark:Ho[400]}:{main:Ho[700],light:Ho[400],dark:Ho[800]}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:$o[200],light:$o[50],dark:$o[400]}:{main:$o[500],light:$o[300],dark:$o[700]}}(t),a=e.error||function(e="light"){return"dark"===e?{main:zo[500],light:zo[300],dark:zo[700]}:{main:zo[700],light:zo[400],dark:zo[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[500],dark:Bo[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[800],light:Uo[500],dark:Uo[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:qo[400],light:qo[300],dark:qo[700]}:{main:"#ed6c02",light:qo[500],dark:qo[900]}}(t);function d(e){const t=Io(e,Ko.text.primary)>=n?Ko.text.primary:Go.text.primary;if("production"!==process.env.NODE_ENV){const n=Io(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"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("\n"))}return t}const p=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e=_e({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:dt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:dt(12,t?` (${t})`:"",JSON.stringify(e.main)));return Yo(e,"light",r,o),Yo(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ko,light:Go};return"production"!==process.env.NODE_ENV&&(f[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),it(_e({common:_e({},Lo),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Vo,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:o},f[t]),r)}const Xo=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Qo(e){return Math.round(1e5*e)/1e5}const Jo={textTransform:"uppercase"},er='"Roboto", "Helvetica", "Arial", sans-serif';function tr(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=er,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=De(n,Xo);"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof u&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=r/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,r,i)=>_e({fontFamily:o,fontWeight:e,fontSize:h(t),lineHeight:n},o===er?{letterSpacing:`${Qo(r/t)}em`}:{},i,c),g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(l,48,1.167,0),h4:m(l,34,1.235,.25),h5:m(l,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(l,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(l,16,1.5,.15),body2:m(l,14,1.43,.15),button:m(a,14,1.75,.4,Jo),caption:m(l,12,1.66,.4),overline:m(l,12,2.66,1,Jo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return it(_e({htmlFontSize:u,pxToRem:h,fontFamily:o,fontSize:r,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},g),p,{clone:!1})}function nr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const or=["none",nr(0,2,1,-1,0,1,1,0,0,1,3,0),nr(0,3,1,-2,0,2,2,0,0,1,5,0),nr(0,3,3,-2,0,3,4,0,0,1,8,0),nr(0,2,4,-1,0,4,5,0,0,1,10,0),nr(0,3,5,-1,0,5,8,0,0,1,14,0),nr(0,3,5,-1,0,6,10,0,0,1,18,0),nr(0,4,5,-2,0,7,10,1,0,2,16,1),nr(0,5,5,-3,0,8,10,1,0,3,14,2),nr(0,5,6,-3,0,9,12,1,0,3,16,2),nr(0,6,6,-3,0,10,14,1,0,4,18,3),nr(0,6,7,-4,0,11,15,1,0,4,20,3),nr(0,7,8,-4,0,12,17,2,0,5,22,4),nr(0,7,8,-4,0,13,19,2,0,5,24,4),nr(0,7,9,-4,0,14,21,2,0,5,26,4),nr(0,8,9,-5,0,15,22,2,0,6,28,5),nr(0,8,10,-5,0,16,24,2,0,6,30,5),nr(0,8,11,-5,0,17,26,2,0,6,32,5),nr(0,9,11,-5,0,18,28,2,0,7,34,6),nr(0,9,12,-6,0,19,29,2,0,7,36,6),nr(0,10,13,-6,0,20,31,3,0,8,38,7),nr(0,10,13,-6,0,21,33,3,0,8,40,7),nr(0,10,14,-6,0,22,35,3,0,8,42,7),nr(0,11,14,-7,0,23,36,3,0,9,44,8),nr(0,11,15,-7,0,24,38,3,0,9,46,8)],rr=["duration","easing","delay"],ir={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},lr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ar(e){return`${Math.round(e)}ms`}function sr(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ur(e){const t=_e({},ir,e.easing),n=_e({},lr,e.duration);return _e({getAutoHeightDuration:sr,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:l=0}=o,a=De(o,rr);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(r)&&!t(r)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${r}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(l)&&!t(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(a).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(a).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof r?r:ar(r)} ${i} ${"string"==typeof l?l:ar(l)}`)).join(",")}},e,{easing:t,duration:n})}const cr={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},dr=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const pr=function(e={},...t){const{mixins:n={},palette:o={},transitions:r={},typography:i={}}=e,l=De(e,dr);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":dt(18));const a=Zo(o),s=uo(e);let u=it(s,{mixins:Fo(s.breakpoints,n),palette:a,shadows:or.slice(),typography:tr(a,i),transitions:ur(r),zIndex:_e({},cr)});if(u=it(u,l),u=t.reduce(((e,t)=>it(e,t)),u),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let o;for(o in t){const r=t[o];if(-1!==e.indexOf(o)&&Object.keys(r).length>0){if("production"!==process.env.NODE_ENV){const e=ln("",o);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:r}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(u.components).forEach((e=>{const n=u.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return u.unstable_sxConfig=_e({},io,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return ao({sx:e,theme:this})},u}(),fr=pr,hr="$$material";function mr(){const t=fo(fr);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t[hr]||t}const gr=e=>e.scrollTop;function br(e,t){var n,o;const{timeout:r,easing:i,style:l={}}=e;return{duration:null!=(n=l.transitionDuration)?n:"number"==typeof r?r:r[t.mode]||0,easing:null!=(o=l.transitionTimingFunction)?o:"object"==typeof i?i[t.mode]:i,delay:l.transitionDelay}}const vr=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yr={entering:{opacity:1},entered:{opacity:1}},wr=e.forwardRef((function(t,n){const o=mr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=r,TransitionComponent:v=Ke}=t,y=De(t,vr),w=e.useRef(null),x=At(w,a.ref,n),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},O=C(p),k=C(((e,t)=>{gr(e);const n=br({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",n),e.style.transition=o.transitions.create("opacity",n),c&&c(e,t)})),S=C(d),E=C(m),R=C((e=>{const t=br({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),f&&f(e)})),T=C(h);return Pe.jsx(v,_e({appear:l,in:u,nodeRef:w,onEnter:k,onEntered:S,onEntering:O,onExit:R,onExited:T,onExiting:E,addEndListener:e=>{i&&i(w.current,e)},timeout:b},y,{children:(t,n)=>e.cloneElement(a,_e({style:_e({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},yr[t],g,a.props.style),ref:x},n))}))}));"production"!==process.env.NODE_ENV&&(wr.propTypes={addEndListener:pe.func,appear:pe.bool,children:st.isRequired,easing:pe.oneOfType([pe.shape({enter:pe.string,exit:pe.string}),pe.string]),in:pe.bool,onEnter:pe.func,onEntered:pe.func,onEntering:pe.func,onExit:pe.func,onExited:pe.func,onExiting:pe.func,style:pe.object,timeout:pe.oneOfType([pe.number,pe.shape({appear:pe.number,enter:pe.number,exit:pe.number})])});const xr=wr,Cr=e=>Pe.jsx(w,{TransitionComponent:xr,TransitionProps:{timeout:300},arrow:!0,placement:"top",componentsProps:{tooltip:{sx:{bgcolor:"var(--colors-gray-800)",borderRadius:"3px","& .MuiTooltip-arrow":{color:"var(--colors-gray-800)"}}}},...e}),Or=/^[a-z0-9]+(-[a-z0-9]+)*$/,kr=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!Sr(i)?null:i}const i=r[0],l=i.split("-");if(l.length>1){const e={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!Sr(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!Sr(e,n)?null:e}return null},Sr=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(Or)||!(t&&""===e.prefix||e.prefix.match(Or))||!e.name.match(Or)),Er=Object.freeze({left:0,top:0,width:16,height:16}),Rr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Tr=Object.freeze({...Er,...Rr}),Nr=Object.freeze({...Tr,body:"",hidden:!1});function jr(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in Nr)o in Rr?o in e&&!(o in n)&&(n[o]=Rr[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Pr(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function l(e){i=jr(o[e]||r[e],i)}return l(t),n.forEach(l),jr(e,i)}function Mr(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,Pr(e,r,i)),n.push(r))}return n}const Ir={provider:"",aliases:{},not_found:{},...Er};function _r(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Dr(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!_r(e,Ir))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(Or)||"string"!=typeof t.body||!_r(t,Nr))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],r=t.parent;if(!e.match(Or)||"string"!=typeof r||!n[r]&&!o[r]||!_r(t,Nr))return null}return t}const Ar=Object.create(null);function Fr(e,t){const n=Ar[e]||(Ar[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function Lr(e,t){return Dr(t)?Mr(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Vr=!1;function $r(e){return"boolean"==typeof e&&(Vr=e),Vr}function zr(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Vr&&!t&&!e.prefix){let t=!1;return Dr(e)&&(e.prefix="",Mr(e,((e,n)=>{n&&function(e,t){const n=kr(e,!0,Vr);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Fr(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!Sr({provider:t,prefix:n,name:"a"}))return!1;return!!Lr(Fr(t,n),e)}const qr=Object.freeze({width:null,height:null}),Hr=Object.freeze({...qr,...Rr}),Br=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ur=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Wr(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(Br);if(null===o||!o.length)return e;const r=[];let i=o.shift(),l=Ur.test(i);for(;;){if(l){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");l=!l}}const Gr=/\sid="(\S+)"/g,Kr="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Yr=0;function Zr(e,t=Kr){const n=[];let o;for(;o=Gr.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof t?t(n):t+(Yr++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const Xr=Object.create(null);function Qr(e){return Xr[e]||Xr[""]}function Jr(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const ei=Object.create(null),ti=["https://api.simplesvg.com","https://api.unisvg.com"],ni=[];for(;ti.length>0;)1===ti.length||Math.random()>.5?ni.push(ti.shift()):ni.push(ti.pop());function oi(e,t){const n=Jr(t);return null!==n&&(ei[e]=n,!0)}function ri(e){return ei[e]}ei[""]=Jr({resources:["https://api.iconify.design"].concat(ni)});let ii=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const li={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=ri(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let l={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach(((n,s)=>{a+=n.length+1,a>=r&&s>0&&(o.push(l),l={type:i,provider:e,prefix:t,icons:[]},a=n.length),l.icons.push(n)})),o.push(l),o},send:(e,t,n)=>{if(!ii)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=ri(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;ii(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function ai(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let si=0;var ui={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ci(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let t=e.resources.slice(0);for(l=[];t.length>1;){const e=Math.floor(Math.random()*t.length);l.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}l=l.concat(t)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let s,u="pending",c=0,d=null,p=[],f=[];function h(){d&&(clearTimeout(d),d=null)}function m(){"pending"===u&&(u="aborted"),h(),p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function g(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function b(){u="failed",f.forEach((e=>{e(void 0,s)}))}function v(){p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function y(){if("pending"!==u)return;h();const o=l.shift();if(void 0===o)return p.length?void(d=setTimeout((()=>{h(),"pending"===u&&(v(),b())}),e.timeout)):void b();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(p=p.filter((e=>e!==t)),u){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=o,void b();if(r)return s=o,void(p.length||(l.length?y():b()));if(h(),v(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",f.forEach((e=>{e(o)}))}(r,t,n)}};p.push(r),c++,d=setTimeout(y,e.rotate),n(o,t,r.callback)}return"function"==typeof o&&f.push(o),setTimeout(y),function(){return{startTime:a,payload:t,status:u,queriesSent:c,queriesPending:p.length,subscribe:g,abort:m}}}function di(e){const t={...ui,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const l=ci(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(l),l},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function pi(){}const fi=Object.create(null);function hi(e,t,n){let o,r;if("string"==typeof e){const t=Qr(e);if(!t)return n(void 0,424),pi;r=t.send;const i=function(e){if(!fi[e]){const t=ri(e);if(!t)return;const n={config:t,redundancy:di(t)};fi[e]=n}return fi[e]}(e);i&&(o=i.redundancy)}else{const t=Jr(e);if(t){o=di(t);const n=Qr(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),pi)}const mi="iconify2",gi="iconify",bi=gi+"-count",vi=gi+"-version",yi=36e5,wi=168;function xi(e,t){try{return e.getItem(t)}catch{}}function Ci(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Oi(e,t){try{e.removeItem(t)}catch{}}function ki(e,t){return Ci(e,bi,t.toString())}function Si(e){return parseInt(xi(e,bi))||0}const Ei={local:!0,session:!0},Ri={local:new Set,session:new Set};let Ti=!1;let Ni=typeof window>"u"?{}:window;function ji(e){const t=e+"Storage";try{if(Ni&&Ni[t]&&"number"==typeof Ni[t].length)return Ni[t]}catch{}Ei[e]=!1}function Pi(e,t){const n=ji(e);if(!n)return;const o=xi(n,vi);if(o!==mi){if(o){const e=Si(n);for(let t=0;t<e;t++)Oi(n,gi+t.toString())}return Ci(n,vi,mi),void ki(n,0)}const r=Math.floor(Date.now()/yi)-wi,i=e=>{const o=gi+e.toString(),i=xi(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}Oi(n,o)}};let l=Si(n);for(let t=l-1;t>=0;t--)i(t)||(t===l-1?(l--,ki(n,l)):Ri[e].add(t))}function Mi(){if(!Ti){Ti=!0;for(const e in Ei)Pi(e,(e=>{const t=e.data,n=Fr(e.provider,t.prefix);if(!Lr(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function Ii(e,t){function n(n){let o;if(!Ei[n]||!(o=ji(n)))return;const r=Ri[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Si(o),!ki(o,i+1))return;const l={cached:Math.floor(Date.now()/yi),provider:e.provider,data:t};return Ci(o,gi+i.toString(),JSON.stringify(l))}Ti||Mi(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in Ei)Pi(n,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function _i(){}function Di(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,l=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const l=t.name;if(e.icons[l])i.loaded.push({provider:o,prefix:r,name:l});else{if(!e.missing.has(l))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:l})}return!1})),i.pending.length!==l&&(n||ai([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const Ai=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"==typeof e?kr(e,t,n):e;r&&o.push(r)})),o}(e,!0,$r()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,l=e.name,a=n[r]||(n[r]=Object.create(null)),s=a[i]||(a[i]=Fr(r,i));let u;u=l in s.icons?t.loaded:""===i||s.missing.has(l)?t.missing:t.pending;const c={provider:r,prefix:i,name:l};u.push(c)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,_i)})),()=>{e=!1}}const r=Object.create(null),i=[];let l,a;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===a&&t===l)return;l=t,a=n,i.push(Fr(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=Fr(t,n),l=i.pendingIcons||(i.pendingIcons=new Set);l.has(o)||(l.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=Qr(t))&&r.prepare(t,n,o).forEach((n=>{hi(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Lr(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),Ii(e,t)}catch(e){console.error(e)}Di(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=si++,r=ai.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):_i};const Fi=/[\s,]+/;function Li(e,t){t.split(Fi).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Vi(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1==0?o(r):0)}}return t}function $i(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let zi;function qi(e){return void 0===zi&&function(){try{zi=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{zi=null}}(),zi?zi.createHTML(e):e}const Hi={...Hr,inline:!1},Bi={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ui={display:"inline-block"},Wi={backgroundColor:"currentColor"},Gi={backgroundColor:"transparent"},Ki={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Yi={WebkitMask:Wi,mask:Wi,background:Gi};for(const e in Yi){const t=Yi[e];for(const n in Ki)t[e+n]=Ki[n]}const Zi={...Hi,inline:!0};function Xi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Qi=(e,n,o,r)=>{const i=o?Zi:Hi,l=function(e,t){const n={...e};for(const e in t){const o=t[e],r=typeof o;e in qr?(null===o||o&&("string"===r||"number"===r))&&(n[e]=o):r===typeof n[e]&&(n[e]="rotate"===e?o%4:o)}return n}(i,n),a=n.mode||"svg",s={},u=n.style||{},c={..."svg"===a?Bi:{},ref:r};for(let e in n){const t=n[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":l[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&Li(l,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?l[e]=Vi(t):"number"==typeof t&&(l[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=t)}}const d=function(e,t){const n={...Tr,...e},o={...Hr,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let l,a=e.rotate;switch(n?o?a+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:l=r.height/2+r.top,t.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,t.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}a%2==1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const l=o.width,a=o.height,s=r.width,u=r.height;let c,d;null===l?(d=null===a?"1em":"auto"===a?u:a,c=Wr(d,s/u)):(c="auto"===l?s:l,d=null===a?Wr(c,u/s):"auto"===a?u:a);const p={},f=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(p[e]=t.toString())};return f("width",c),f("height",d),p.viewBox=r.left.toString()+" "+r.top.toString()+" "+s.toString()+" "+u.toString(),{attributes:p,body:i}}(e,l),p=d.attributes;if(l.inline&&(s.verticalAlign="-0.125em"),"svg"===a){c.style={...s,...u},Object.assign(c,p);let e=0,o=n.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:qi(Zr(d.body,o?()=>o+"ID"+e++:"iconifyReact"))},t.createElement("svg",c)}const{body:f,width:h,height:m}=e,g="mask"===a||"bg"!==a&&-1!==f.indexOf("currentColor"),b=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(f,{...p,width:h+"",height:m+""});return c.style={...s,"--svg":$i(b),width:Xi(p.width),height:Xi(p.height),...Ui,...g?Wi:Gi,...u},t.createElement("span",c)};var Ji;if($r(!0),Ji=li,Xr[""]=Ji,typeof document<"u"&&typeof window<"u"){Mi();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!zr(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;oi(e,o)||console.error(n)}catch{console.error(n)}}}}class el extends t.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!=typeof n||null===(o=kr(n,!1,!0)))return this._abortLoading(),void this._setData(null);const r=function(e){const t="string"==typeof e?kr(e,!0,Vr):e;if(t){const e=Fr(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(o);if(r){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:r,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==r&&(this._loading={name:n,abort:Ai([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,n=this.state.icon;if(null===n)return e.children?e.children:t.createElement("span",{});let o=e;return n.classes&&(o={...e,className:("string"==typeof e.className?e.className+" ":"")+n.classes.join(" ")}),Qi({...Tr,...n.data},o,e._inline,e._ref)}}const tl=t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!1};return t.createElement(el,o)}));t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!0};return t.createElement(el,o)}));const nl="_icon_z9w7e_5",ol=({width:e=20,height:t=20,className:n="",icon:o,onClick:r,color:i,vFlip:l=!1})=>Pe.jsx(tl,{onClick:r,icon:o,width:e,height:t,className:`${nl} ${n}`,color:i,vFlip:l}),rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:r}),il=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:r}),ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:r}),al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:r}),sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:r}),ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:r}),cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:r}),dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:r}),pl=({width:e=20,height:t=20,className:n="",onClick:o,color:r=""})=>Pe.jsx(ol,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:r}),fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:r}),hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:r}),ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:r}),gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:r}),bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:outline-fact-check",width:e,height:t,className:n,onClick:o,color:r}),vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"material-symbols:fact-check",width:e,height:t,className:n,onClick:o,color:r}),yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:r}),wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:r}),xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:r}),Cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:r}),Ol=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:r}),kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:r}),Sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:r}),El=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:r}),Rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:r}),Tl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:r}),Nl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:r}),jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:r,vFlip:!0}),Pl=({color:e="black",size:t="20",className:n=""})=>Pe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[Pe.jsx("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),Pe.jsx("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),Pe.jsx("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),Pe.jsx("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),Ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:r}),Il=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:r}),_l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:r}),Dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:r}),Al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:r}),Fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:r}),Ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:r}),Vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:r}),$l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:r}),zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:r}),ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:r}),Hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:r}),Bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:r}),Ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:o,color:r}),Wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:r}),Gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:r}),Kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:r}),Yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:r}),Zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:r}),Xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"material-symbols:self-improvement",width:e,height:t,className:n,onClick:o,color:r}),Ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:r}),Jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:r}),ea=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:r}),ta=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:r}),na=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:r}),oa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:o,color:r}),ra=({width:e=20,height:t=20,className:n="",onClick:o,color:r="var(--colors-error-500)"})=>Pe.jsx(ol,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:o,color:r}),ia=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:replay",width:e,height:t,className:n,onClick:o,color:r}),la=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:o,color:r}),aa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:o,color:r}),sa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:o,color:r}),ua=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:o,color:r}),ca=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:o,color:r}),da=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:o,color:r}),pa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:o,color:r}),fa=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:o,color:r}),ha=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:o,color:r}),ma=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:o,color:r});function ga(e){return Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Pe.jsx("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const ba=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:o,color:r});function va(e){return Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Pe.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const ya=e=>Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Pe.jsx("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),wa=e=>Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Pe.jsx("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function xa(e){return Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Pe.jsx("path",{fill:"currentColor",d:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function Ca(e){return Pe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[Pe.jsx("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),Pe.jsx("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),Pe.jsx("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),Pe.jsx("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}const Oa=e=>Pe.jsx(x,{...e}),ka=e.createContext(void 0);function Sa(){const t=e.useContext(ka);if(void 0===t)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return t}"production"!==process.env.NODE_ENV&&(ka.displayName="GridApiContext");const Ea=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(Ea.displayName="GridRootPropsContext");const Ra=()=>{const t=e.useContext(Ea);if(!t)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return t},Ta=e.createContext(void 0);function Na(){const t=e.useContext(Ta);if(void 0===t)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return t}"production"!==process.env.NODE_ENV&&(Ta.displayName="GridPrivateApiContext");const ja={};const Pa=[];const Ma=(e,t="warning")=>{let n=!1;const o=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(o):console.warn(o))}},Ia=Object.is;function _a(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,o=0;for(const o in e)if(n+=1,!Ia(e[o],t[o])||!(o in t))return!1;for(const e in t)o+=1;return n===o}const Da=Ma(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Aa(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)}const Fa=Object.is,La=_a,Va=()=>({state:null,equals:null,selector:null}),$a=(t,n,o=Fa)=>{"production"!==process.env.NODE_ENV&&(t.current.state||Da());const r=function(t,n){const o=e.useRef(ja);return o.current===ja&&(o.current=t(n)),o}(Va),i=null!==r.current.selector,[l,a]=e.useState(i?null:Aa(t,n));return r.current.state=l,r.current.equals=o,r.current.selector=n,function(t){e.useEffect(t,Pa)}((()=>t.current.store.subscribe((()=>{const e=Aa(t,r.current.selector);r.current.equals(r.current.state,e)||(r.current.state=e,a(e))})))),l};function za(e){return ln("MuiDataGrid",e)}const qa=an("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Ha=Ro("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})((()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}))),Ba=e.forwardRef(((e,t)=>{const n=Ra(),o=(e=>{const{classes:t}=e;return en({root:["main"]},za,t)})(n);return Pe.jsx(Ha,{ref:t,className:o.root,ownerState:n,children:e.children})}));var Ua="NOT_FOUND";var Wa=function(e,t){return e===t};function Ga(e,t){var n="object"==typeof t?t:{equalityCheck:t},o=n.equalityCheck,r=void 0===o?Wa:o,i=n.maxSize,l=void 0===i?1:i,a=n.resultEqualityCheck,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var o=t.length,r=0;r<o;r++)if(!e(t[r],n[r]))return!1;return!0}}(r),u=1===l?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Ua},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(s):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var r=n[o];return o>0&&(n.splice(o,1),n.unshift(r)),r.value}return Ua}return{get:o,put:function(t,r){o(t)===Ua&&(n.unshift({key:t,value:r}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,s);function c(){var t=u.get(arguments);if(t===Ua){if(t=e.apply(null,arguments),a){var n=u.getEntries().find((function(e){return a(e.value,t)}));n&&(t=n.value)}u.put(arguments,t)}return t}return c.clearCache=function(){return u.clear()},c}function Ka(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];var i,l=0,a={memoizeOptions:void 0},s=o.pop();if("object"==typeof s&&(a=s,s=o.pop()),"function"!=typeof s)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof s+"]");var u=a.memoizeOptions,c=void 0===u?n:u,d=Array.isArray(c)?c:[c],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(o),f=e.apply(void 0,[function(){return l++,s.apply(null,arguments)}].concat(d)),h=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return i=f.apply(null,e)}));return Object.assign(h,{resultFunc:s,memoizedResultFunc:f,dependencies:p,lastResult:function(){return i},recomputations:function(){return l},resetRecomputations:function(){return l=0}}),h}}var Ya=Ka(Ga);const Za={cache:new WeakMap},Xa=Ma(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]);function Qa(e){return"current"in e&&"instanceId"in e.current}const Ja={id:"default"},es=(e,t,n,o,r,i,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&o&&r&&i)a=(l,a)=>{const s=Qa(l),u=a??(s?l.current.instanceId:Ja),c=s?l.current.state:l,d=e(c,u),p=t(c,u),f=n(c,u),h=o(c,u),m=r(c,u);return i(d,p,f,h,m)};else if(e&&t&&n&&o&&r)a=(i,l)=>{const a=Qa(i),s=l??(a?i.current.instanceId:Ja),u=a?i.current.state:i,c=e(u,s),d=t(u,s),p=n(u,s),f=o(u,s);return r(c,d,p,f)};else if(e&&t&&n&&o)a=(r,i)=>{const l=Qa(r),a=i??(l?r.current.instanceId:Ja),s=l?r.current.state:r,u=e(s,a),c=t(s,a),d=n(s,a);return o(u,c,d)};else if(e&&t&&n)a=(o,r)=>{const i=Qa(o),l=r??(i?o.current.instanceId:Ja),a=i?o.current.state:o,s=e(a,l),u=t(a,l);return n(s,u)};else{if(!e||!t)throw new Error("Missing arguments");a=(n,o)=>{const r=Qa(n),i=o??(r?n.current.instanceId:Ja),l=r?n.current.state:n,a=e(l,i);return t(a)}}return a.acceptsApiRef=!0,a},ts=(...e)=>{const t=(...t)=>{var n,o;const[r,i]=t,l=Qa(r),a=l?r.current.instanceId:i??Ja,s=l?r.current.state:r;"production"!==process.env.NODE_ENV&&"default"===a.id&&Xa();const{cache:u}=Za;var c;if(u.get(a)&&null!=(n=u.get(a))&&n.get(e))return null==(c=u.get(a))?void 0:c.get(e)(s,a);const d=Ya(...e);return u.get(a)||u.set(a,new Map),null==(o=u.get(a))||o.set(e,d),d(s,a)};return t.acceptsApiRef=!0,t},ns=e=>e.columns,os=es(ns,(e=>e.orderedFields)),rs=es(ns,(e=>e.lookup)),is=ts(os,rs,((e,t)=>e.map((e=>t[e])))),ls=es(ns,(e=>e.columnVisibilityModel)),as=ts(is,ls,((e,t)=>e.filter((e=>!1!==t[e.field])))),ss=ts(as,(e=>e.map((e=>e.field)))),us=ts(as,(e=>{const t=[];let n=0;for(let o=0;o<e.length;o+=1)t.push(n),n+=e[o].computedWidth;return t})),cs=es(as,us,((e,t)=>{const n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),ds=ts(is,(e=>e.filter((e=>e.filterable)))),ps=ts(is,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),fs=e=>e.rows,hs=es(fs,(e=>e.totalRowCount)),ms=es(fs,(e=>e.loading)),gs=es(fs,(e=>e.totalTopLevelRowCount)),bs=es(fs,(e=>e.dataRowIdToModelLookup)),vs=es(fs,(e=>e.dataRowIdToIdLookup)),ys=es(fs,(e=>e.tree)),ws=es(fs,(e=>e.groupingName)),xs=es(fs,(e=>e.treeDepths)),Cs=ts(fs,(e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:t.filter((([,e])=>e>0)).map((([e])=>Number(e))).sort(((e,t)=>t-e))[0]+1})),Os=es(fs,(e=>e.dataRowIds)),ks=es(fs,(e=>null==e?void 0:e.additionalRowGroups)),Ss=ts(ks,(e=>{var t,n;const o=null==e?void 0:e.pinnedRows;return{bottom:null==o||null==(t=o.bottom)?void 0:t.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}})),top:null==o||null==(n=o.top)?void 0:n.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}}))}})),Es=es(Ss,(e=>{var t,n;return((null==e||null==(t=e.top)?void 0:t.length)||0)+((null==e||null==(n=e.bottom)?void 0:n.length)||0)})),Rs=e=>e.sorting,Ts=es(Rs,(e=>e.sortedRows)),Ns=ts(Ts,bs,((e,t)=>e.map((e=>{var n;return{id:e,model:null!=(n=t[e])?n:{}}})))),js=es(Rs,(e=>e.sortModel)),Ps=ts(js,(e=>e.reduce(((t,n,o)=>(t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?o+1:void 0},t)),{}))),Ms=e=>e.filter,Is=es(Ms,(e=>e.filterModel));es(Is,(e=>e.quickFilterValues));const _s=es(Ms,(e=>e.filteredRowsLookup));es(Ms,(e=>e.filteredDescendantCountLookup));const Ds=ts((e=>e.visibleRowsLookup),Ns,((e,t)=>t.filter((t=>!1!==e[t.id])))),As=ts(Ds,(e=>e.map((e=>e.id)))),Fs=ts(_s,Ns,((e,t)=>t.filter((t=>!1!==e[t.id])))),Ls=ts(Fs,(e=>e.map((e=>e.id)))),Vs=ts(Ds,ys,Cs,((e,t,n)=>n<2?e:e.filter((e=>{var n;return 0===(null==(n=t[e.id])?void 0:n.depth)})))),$s=es(Ds,(e=>e.length)),zs=es(Vs,(e=>e.length)),qs=ts(Is,rs,((e,t)=>{var n;return null==(n=e.items)?void 0:n.filter((e=>{var n,o;if(!e.field)return!1;const r=t[e.field];if(null==r||!r.filterOperators||0===(null==r||null==(n=r.filterOperators)?void 0:n.length))return!1;const i=r.filterOperators.find((t=>t.value===e.operator));return!!i&&(!i.InputComponent||null!=e.value&&""!==(null==(o=e.value)?void 0:o.toString()))}))})),Hs=ts(qs,(e=>e.reduce(((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e)),{}))),Bs=e=>e.focus,Us=es(Bs,(e=>e.cell)),Ws=es(Bs,(e=>e.columnHeader));es(Bs,(e=>e.columnHeaderFilter));const Gs=es(Bs,(e=>e.columnGroupHeader)),Ks=e=>e.tabIndex,Ys=es(Ks,(e=>e.cell)),Zs=es(Ks,(e=>e.columnHeader));es(Ks,(e=>e.columnHeaderFilter));const Xs=es(Ks,(e=>e.columnGroupHeader)),Qs=e=>e.density,Js=es(Qs,(e=>e.value)),eu=es(Qs,(e=>e.factor)),tu=e=>e.columnGrouping,nu=ts(tu,(e=>{var t;return null!=(t=null==e?void 0:e.unwrappedGroupingModel)?t:{}})),ou=ts(tu,(e=>{var t;return null!=(t=null==e?void 0:e.lookup)?t:{}})),ru=ts(tu,(e=>{var t;return null!=(t=null==e?void 0:e.headerStructure)?t:[]})),iu=es(tu,(e=>{var t;return null!=(t=null==e?void 0:e.maxDepth)?t:0})),lu=e=>e.columnMenu;function au(t){const{VirtualScrollerComponent:n,ColumnHeadersProps:o,children:r}=t,i=Na(),l=Ra(),a=e.useRef(null),s=$a(i,as),u=$a(i,Hs),c=$a(i,Ps),d=$a(i,us),p=$a(i,Zs),f=$a(i,Ys),h=$a(i,Xs),m=$a(i,Ws),g=$a(i,Gs),b=$a(i,eu),v=$a(i,iu),y=$a(i,lu),w=$a(i,ls),x=$a(i,ru),C=!(null===h&&null===p&&null===f),[O,k]=e.useState(l.disableVirtualization);jt((()=>{i.current.computeSizeAndPublishResizeEvent();const e=a.current;if(typeof ResizeObserver>"u")return()=>{};let t;const n=new ResizeObserver((()=>{t=window.requestAnimationFrame((()=>{i.current.computeSizeAndPublishResizeEvent()}))}));return e&&n.observe(e),()=>{t&&window.cancelAnimationFrame(t),e&&n.unobserve(e)}}),[i]);const S=e.useCallback((()=>{k(!0)}),[]),E=e.useCallback((()=>{k(!1)}),[]);e.useEffect((()=>{k(l.disableVirtualization)}),[l.disableVirtualization]),i.current.unstable_disableVirtualization=S,i.current.unstable_enableVirtualization=E;const R=e.useRef(null),T=e.useRef(null),N=e.useRef(null);i.current.register("private",{columnHeadersContainerElementRef:T,columnHeadersElementRef:R,virtualScrollerRef:N,mainElementRef:a});const j=!!i.current.getRootDimensions();return Pe.jsxs(Ba,{ref:a,children:[Pe.jsx(l.slots.columnHeaders,_e({ref:T,innerRef:R,visibleColumns:s,filterColumnLookup:u,sortColumnLookup:c,columnPositions:d,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:h,columnHeaderFocus:m,columnGroupHeaderFocus:g,densityFactor:b,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:w,columnGroupsHeaderStructure:x,hasOtherElementInTabSequence:C},o)),j&&Pe.jsx(n,{ref:N,disableVirtualization:O}),r]})}function su(){var e;const t=Ra();return t.hideFooter?null:Pe.jsx(t.slots.footer,_e({},null==(e=t.slotProps)?void 0:e.footer))}"production"!==process.env.NODE_ENV&&(au.propTypes={children:pe.node,ColumnHeadersProps:pe.object,VirtualScrollerComponent:pe.elementType.isRequired});const uu="auto-generated-group-node-root",cu=Symbol("mui-autogenerated-id");const du=(e,t,n)=>{const o=t?t(e):e.id;return function(e,t,n="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(o,e,n),o},pu=({rows:e,getRowId:t,loading:n,rowCount:o})=>{const r={type:"full",rows:[]},i={},l={};for(let n=0;n<e.length;n+=1){const o=e[n],a=du(o,t);i[a]=o,l[a]=a,r.rows.push(a)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:o,updates:r,dataRowIdToIdLookup:l,dataRowIdToModelLookup:i}},fu=({tree:e,rowCountProp:t=0})=>{const n=e[uu];return Math.max(t,n.children.length+(null==n.footerId?0:1))},hu=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:o,previousTreeDepths:r})=>{const i=e.current.caches.rows,{tree:l,treeDepths:a,dataRowIds:s,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:o,previousTreeDepths:r,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:a,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:s,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},_e({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:fu({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},mu=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,gu=(e,t,n)=>{const o=e[t];if("group"!==o.type)return[];const r=[];for(let t=0;t<o.children.length;t+=1){const i=o.children[t];(!n||!mu(e[i]))&&r.push(i),r.push(...gu(e,i,n))}return!n&&null!=o.footerId&&r.push(o.footerId),r};function bu(e){var t,n;const o=Ss(e);return{top:(null==o||null==(t=o.top)?void 0:t.reduce(((t,n)=>t+=e.current.unstable_getRowHeight(n.id)),0))||0,bottom:(null==o||null==(n=o.bottom)?void 0:n.reduce(((t,n)=>t+=e.current.unstable_getRowHeight(n.id)),0))||0}}function vu(e,t){const n=eu(e);return 2*Math.floor(t*n)}const yu=Ro("div",{name:"MuiDataGrid",slot:"OverlayWrapper",overridesResolver:(e,t)=>t.overlayWrapper})({position:"sticky",top:0,left:0,width:0,height:0,zIndex:4}),wu=Ro("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),xu=e=>{const{classes:t}=e;return en({root:["overlayWrapper"],inner:["overlayWrapperInner"]},za,t)};function Cu(t){var n,o;const r=Sa(),i=Ra(),[l,a]=e.useState((()=>{var e,t;return null!=(e=null==(t=r.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),s=e.useCallback((()=>{var e,t;a(null!=(e=null==(t=r.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[r]);jt((()=>r.current.subscribeEvent("viewportInnerSizeChange",s)),[r,s]);let u=null!=(n=null==l?void 0:l.height)?n:0;i.autoHeight&&0===u&&(u=vu(r,i.rowHeight));const c=xu(_e({},t,{classes:i.classes}));return l?Pe.jsx(yu,{className:vo(c.root),children:Pe.jsx(wu,_e({className:vo(c.inner),style:{height:u,width:null!=(o=null==l?void 0:l.width)?o:0}},t))}):null}function Ou(){const e=Sa(),t=Ra(),n=$a(e,hs),o=$a(e,$s),r=$a(e,ms),i=!r&&n>0&&0===o;let l=null;var a,s,u;r||0!==n||(l=Pe.jsx(t.slots.noRowsOverlay,_e({},null==(a=t.slotProps)?void 0:a.noRowsOverlay)));i&&(l=Pe.jsx(t.slots.noResultsOverlay,_e({},null==(s=t.slotProps)?void 0:s.noResultsOverlay)));r&&(l=Pe.jsx(t.slots.loadingOverlay,_e({},null==(u=t.slotProps)?void 0:u.loadingOverlay)));return null===l?null:Pe.jsx(Cu,{children:l})}function ku(t){return e.memo(t,_a)}let Su;function Eu(){return void 0===Su&&document.createElement("div").focus({get preventScroll(){return Su=!0,!1}}),Su}var Ru=function(e){return e.Cell="cell",e.Row="row",e}(Ru||{}),Tu=function(e){return e.Edit="edit",e.View="view",e}(Tu||{}),Nu=function(e){return e.Edit="edit",e.View="view",e}(Nu||{}),ju=function(e){return e.And="and",e.Or="or",e}(ju||{}),Pu=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Pu||{}),Mu=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Mu||{}),Iu=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Iu||{}),_u=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(_u||{});function Du(e){return void 0!==e.field}function Au(e){return e.replace(/["\\]/g,"\\$&")}function Fu(e){return`.${qa.row}[data-id="${Au(String(e))}"]`}function Lu(t,n,o){const r=e.useRef(n),[i]=e.useState(Object.keys(n)),l=e.useCallback((()=>{t.current&&i.forEach((e=>{t.current.hasOwnProperty(e)||t.current.register(o,{[e]:(...t)=>(0,r.current[e])(...t)})}))}),[i,t,o]);e.useEffect((()=>{r.current=n}),[n]),e.useEffect((()=>{l()}),[l]),l()}class Vu extends Error{}function $u(t,n){const{getRowId:o}=n,r=e.useCallback((e=>({field:e,colDef:t.current.getColumn(e)})),[t]),i=e.useCallback((e=>{const n=t.current.getRow(e);if(!n)throw new Vu(`No row with id #${e} found`);return{id:e,columns:t.current.getAllColumns(),row:n}}),[t]),l=e.useCallback(((e,n)=>{const o=t.current.getRow(e),r=t.current.getRowNode(e);if(!o||!r)throw new Vu(`No row with id #${e} found`);const i=Us(t),l=Ys(t);return{id:e,field:n,row:o,rowNode:r,value:o[n],colDef:t.current.getColumn(n),cellMode:t.current.getCellMode(e,n),api:t.current,hasFocus:null!==i&&i.field===n&&i.id===e,tabIndex:l&&l.field===n&&l.id===e?0:-1}}),[t]),a=e.useCallback(((e,n)=>{const o=t.current.getColumn(n),r=t.current.getCellValue(e,n),i=t.current.getRow(e),l=t.current.getRowNode(e);if(!i||!l)throw new Vu(`No row with id #${e} found`);const a=Us(t),s=Ys(t),u={id:e,field:n,row:i,rowNode:l,colDef:o,cellMode:t.current.getCellMode(e,n),hasFocus:null!==a&&a.field===n&&a.id===e,tabIndex:s&&s.field===n&&s.id===e?0:-1,value:r,formattedValue:r,isEditable:!1};return o&&o.valueFormatter&&(u.formattedValue=o.valueFormatter({id:e,field:u.field,value:u.value,api:t.current})),u.isEditable=o&&t.current.isCellEditable(u),u}),[t]),s=e.useCallback(((e,n)=>{const o=t.current.getColumn(n);if(!o||!o.valueGetter){const o=t.current.getRow(e);if(!o)throw new Vu(`No row with id #${e} found`);return o[n]}return o.valueGetter(l(e,n))}),[t,l]),u=e.useCallback(((e,t)=>{var n;const r=cu in e?e[cu]:null!=(n=null==o?void 0:o(e))?n:e.id,i=t.field;return t&&t.valueGetter?t.valueGetter(l(r,i)):e[i]}),[l,o]),c=e.useCallback(((e,n)=>{var r;const i=u(e,n);if(!n||!n.valueFormatter)return i;const l=null!=(r=o?o(e):e.id)?r:e[cu],a=n.field;return n.valueFormatter({id:l,field:a,value:i,api:t.current})}),[t,o,u]),d=e.useCallback((e=>t.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${Au(t)}"]`)}(t.current.rootElementRef.current,e):null),[t]),p=e.useCallback((e=>t.current.rootElementRef.current?function(e,t){return e.querySelector(Fu(t))}(t.current.rootElementRef.current,e):null),[t]),f=e.useCallback(((e,n)=>t.current.rootElementRef.current?function(e,{id:t,field:n}){const o=`${Fu(t)} .${qa.cell}[data-field="${Au(n)}"]`;return e.querySelector(o)}(t.current.rootElementRef.current,{id:e,field:n}):null),[t]);Lu(t,{getCellValue:s,getCellParams:a,getCellElement:f,getRowValue:u,getRowFormattedValue:c,getRowParams:i,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:d},"public")}const zu=["changeReason","unstable_updateValueOnRender"],qu=["align","children","editCellState","colIndex","column","cellMode","field","formattedValue","hasFocus","height","isEditable","isSelected","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Hu=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Bu=["changeReason","unstable_updateValueOnRender"],Uu={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Tu.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Wu=e=>{const{align:t,showRightBorder:n,isEditable:o,isSelected:r,classes:i}=e;return en({root:["cell",`cell--text${Ot(t)}`,o&&"cell--editable",r&&"selected",n&&"cell--withRightBorder","withBorderColor"],content:["cellContent"]},za,i)};let Gu=!1;const Ku=e.forwardRef(((t,n)=>{const{column:o,rowId:r,editCellState:i}=t,l=Sa(),a=Ra(),s=o.field,u=$a(l,(()=>{try{const e=l.current.getCellParams(r,s);return e.api=l.current,e}catch(e){if(e instanceof Vu)return Uu;throw e}}),La),c=$a(l,(()=>l.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:s})));if(u===Uu)return null;const{cellMode:d,hasFocus:p,isEditable:f,value:h,formattedValue:m}=u,g="actions"===o.type,b="view"!==d&&f||g?-1:u.tabIndex,{classes:v,getCellClassName:y}=a,w=l.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:s});let x;if(o.cellClassName&&w.push("function"==typeof o.cellClassName?o.cellClassName(u):o.cellClassName),y&&w.push(y(u)),null==i&&o.renderCell&&(x=o.renderCell(u),w.push(qa["cell--withRenderer"]),w.push(null==v?void 0:v["cell--withRenderer"])),null!=i&&o.renderEditCell){const e=_e({},u,{row:l.current.getRowWithUpdatedValues(r,o.field)},De(i,zu));x=o.renderEditCell(e),w.push(qa["cell--editing"]),w.push(null==v?void 0:v["cell--editing"])}const{slots:C}=a,O=C.cell,k=_e({},t,{ref:n,field:s,formattedValue:m,hasFocus:p,isEditable:f,isSelected:c,value:h,cellMode:d,children:x,tabIndex:b,className:vo(w)});return e.createElement(O,k)})),Yu=e.forwardRef(((t,n)=>{var o;const{align:r,children:i,colIndex:l,column:a,cellMode:s,field:u,formattedValue:c,hasFocus:d,height:p,isEditable:f,isSelected:h,rowId:m,tabIndex:g,value:b,width:v,className:y,showRightBorder:w,colSpan:x,disableDragEvents:C,onClick:O,onDoubleClick:k,onMouseDown:S,onMouseUp:E,onMouseOver:R,onKeyDown:T,onKeyUp:N,onDragEnter:j,onDragOver:P}=t,M=De(t,qu),I=c??b,_=e.useRef(null),D=At(n,_),A=e.useRef(null),F=Sa(),L=Ra(),V={align:r,showRightBorder:w,isEditable:f,classes:L.classes,isSelected:h},$=Wu(V),z=e.useCallback((e=>t=>{const n=F.current.getCellParams(m,u||"");F.current.publishEvent(e,n,t),E&&E(t)}),[F,u,E,m]),q=e.useCallback((e=>t=>{const n=F.current.getCellParams(m,u||"");F.current.publishEvent(e,n,t),S&&S(t)}),[F,u,S,m]),H=e.useCallback(((e,t)=>n=>{if(!F.current.getRow(m))return;const o=F.current.getCellParams(m,u||"");F.current.publishEvent(e,o,n),t&&t(n)}),[F,u,m]),B={minWidth:v,maxWidth:v,minHeight:p,maxHeight:"auto"===p?"none":p};e.useEffect((()=>{if(!d||s===Tu.Edit)return;const e=Rt(F.current.rootElementRef.current);if(_.current&&!_.current.contains(e.activeElement)){const e=_.current.querySelector('[tabindex="0"]'),t=A.current||e||_.current;if(Eu())t.focus({preventScroll:!0});else{const e=F.current.getScrollPosition();t.focus(),F.current.scroll(e)}}}),[d,s,F]);let U=M.onFocus;"test"===process.env.NODE_ENV&&null!=(o=L.experimentalFeatures)&&o.warnIfFocusStateIsNotSynced&&(U=e=>{const t=Us(F);(null==t?void 0:t.id)!==m||t.field!==u?Gu||(console.warn([`MUI: The cell with id=${m} and field=${u} received focus.`,`According to the state, the focus should be at id=${null==t?void 0:t.id}, field=${null==t?void 0:t.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join("\n")),Gu=!0):"function"==typeof M.onFocus&&M.onFocus(e)});const W="actions"===a.type;let G=i;if(void 0===G){const e=null==I?void 0:I.toString();G=Pe.jsx("div",{className:$.content,title:e,children:e})}e.isValidElement(G)&&W&&(G=e.cloneElement(G,{focusElementRef:A}));const K=C?null:{onDragEnter:H("cellDragEnter",j),onDragOver:H("cellDragOver",P)};return Pe.jsx("div",_e({ref:D,className:vo(y,$.root),role:"cell","data-field":u,"data-colindex":l,"aria-colindex":l+1,"aria-colspan":x,style:B,tabIndex:g,onClick:H("cellClick",O),onDoubleClick:H("cellDoubleClick",k),onMouseOver:H("cellMouseOver",R),onMouseDown:q("cellMouseDown"),onMouseUp:z("cellMouseUp"),onKeyDown:H("cellKeyDown",T),onKeyUp:H("cellKeyUp",N)},K,M,{onFocus:U,children:G}))})),Zu=ku(Ku);"production"!==process.env.NODE_ENV&&(Ku.propTypes={align:pe.oneOf(["center","left","right"]),className:pe.string,colIndex:pe.number,colSpan:pe.number,column:pe.object,disableDragEvents:pe.bool,height:pe.oneOfType([pe.oneOf(["auto"]),pe.number]),onClick:pe.func,onDoubleClick:pe.func,onDragEnter:pe.func,onDragOver:pe.func,onKeyDown:pe.func,onMouseDown:pe.func,onMouseUp:pe.func,rowId:pe.oneOfType([pe.number,pe.string]),showRightBorder:pe.bool,width:pe.number}),"production"!==process.env.NODE_ENV&&(Yu.propTypes={align:pe.oneOf(["center","left","right"]),cellMode:pe.oneOf(["edit","view"]),children:pe.node,className:pe.string,colIndex:pe.number,colSpan:pe.number,column:pe.object,disableDragEvents:pe.bool,editCellState:pe.shape({changeReason:pe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),isProcessingProps:pe.bool,isValidating:pe.bool,value:pe.any}),height:pe.oneOfType([pe.oneOf(["auto"]),pe.number]),onClick:pe.func,onDoubleClick:pe.func,onDragEnter:pe.func,onDragOver:pe.func,onKeyDown:pe.func,onMouseDown:pe.func,onMouseUp:pe.func,rowId:pe.oneOfType([pe.number,pe.string]),showRightBorder:pe.bool,width:pe.number});const Xu=e.forwardRef(((t,n)=>{var o;const{column:r,rowId:i,editCellState:l,align:a,colIndex:s,height:u,width:c,className:d,showRightBorder:p,colSpan:f,disableDragEvents:h,onClick:m,onDoubleClick:g,onMouseDown:b,onMouseUp:v,onMouseOver:y,onKeyDown:w,onKeyUp:x,onDragEnter:C,onDragOver:O}=t,k=De(t,Hu),S=Sa(),E=Ra(),R=r.field,T=$a(S,(()=>{try{const e=S.current.getCellParams(i,R);return e.api=S.current,e}catch(e){if(e instanceof Vu)return Uu;throw e}}),La),N=$a(S,(()=>S.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:R}))),{cellMode:j,hasFocus:P,isEditable:M,value:I,formattedValue:_}=T,D="actions"===r.type,A="view"!==j&&M||D?-1:T.tabIndex,{classes:F,getCellClassName:L}=E,V=S.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:R});r.cellClassName&&V.push("function"==typeof r.cellClassName?r.cellClassName(T):r.cellClassName),L&&V.push(L(T));const $=_??I,z=e.useRef(null),q=At(n,z),H=e.useRef(null),B={align:a,showRightBorder:p,isEditable:M,classes:E.classes,isSelected:N},U=Wu(B),W=e.useCallback((e=>t=>{const n=S.current.getCellParams(i,R||"");S.current.publishEvent(e,n,t),v&&v(t)}),[S,R,v,i]),G=e.useCallback((e=>t=>{const n=S.current.getCellParams(i,R||"");S.current.publishEvent(e,n,t),b&&b(t)}),[S,R,b,i]),K=e.useCallback(((e,t)=>n=>{if(!S.current.getRow(i))return;const o=S.current.getCellParams(i,R||"");S.current.publishEvent(e,o,n),t&&t(n)}),[S,R,i]),Y={minWidth:c,maxWidth:c,minHeight:u,maxHeight:"auto"===u?"none":u};if(e.useEffect((()=>{if(!P||j===Tu.Edit)return;const e=Rt(S.current.rootElementRef.current);if(z.current&&!z.current.contains(e.activeElement)){const e=z.current.querySelector('[tabindex="0"]'),t=H.current||e||z.current;if(Eu())t.focus({preventScroll:!0});else{const e=S.current.getScrollPosition();t.focus(),S.current.scroll(e)}}}),[P,j,S]),T===Uu)return null;let Z,X=k.onFocus;if("test"===process.env.NODE_ENV&&null!=(o=E.experimentalFeatures)&&o.warnIfFocusStateIsNotSynced&&(X=e=>{const t=Us(S);(null==t?void 0:t.id)!==i||t.field!==R?Gu||(console.warn([`MUI: The cell with id=${i} and field=${R} received focus.`,`According to the state, the focus should be at id=${null==t?void 0:t.id}, field=${null==t?void 0:t.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join("\n")),Gu=!0):"function"==typeof k.onFocus&&k.onFocus(e)}),null==l&&r.renderCell&&(Z=r.renderCell(T),V.push(qa["cell--withRenderer"]),V.push(null==F?void 0:F["cell--withRenderer"])),null!=l&&r.renderEditCell){const e=_e({},T,{row:S.current.getRowWithUpdatedValues(i,r.field)},De(l,Bu));Z=r.renderEditCell(e),V.push(qa["cell--editing"]),V.push(null==F?void 0:F["cell--editing"])}if(void 0===Z){const e=null==$?void 0:$.toString();Z=Pe.jsx("div",{className:U.content,title:e,children:e})}e.isValidElement(Z)&&D&&(Z=e.cloneElement(Z,{focusElementRef:H}));const Q=h?null:{onDragEnter:K("cellDragEnter",C),onDragOver:K("cellDragOver",O)};return Pe.jsx("div",_e({ref:q,className:vo(d,V,U.root),role:"cell","data-field":R,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":f,style:Y,tabIndex:A,onClick:K("cellClick",m),onDoubleClick:K("cellDoubleClick",g),onMouseOver:K("cellMouseOver",y),onMouseDown:G("cellMouseDown"),onMouseUp:W("cellMouseUp"),onKeyDown:K("cellKeyDown",w),onKeyUp:K("cellKeyUp",x)},Q,k,{onFocus:X,children:Z}))}));"production"!==process.env.NODE_ENV&&(Xu.propTypes={align:pe.oneOf(["center","left","right"]).isRequired,className:pe.string,colIndex:pe.number.isRequired,colSpan:pe.number,column:pe.object.isRequired,disableDragEvents:pe.bool,editCellState:pe.shape({changeReason:pe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),isProcessingProps:pe.bool,isValidating:pe.bool,value:pe.any}),height:pe.oneOfType([pe.oneOf(["auto"]),pe.number]).isRequired,onClick:pe.func,onDoubleClick:pe.func,onDragEnter:pe.func,onDragOver:pe.func,onKeyDown:pe.func,onMouseDown:pe.func,onMouseUp:pe.func,rowId:pe.oneOfType([pe.number,pe.string]).isRequired,showRightBorder:pe.bool,width:pe.number.isRequired});const Qu=ku(Xu),Ju=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"];function ec(t){const{value:n}=t,o=De(t,Ju),r=Sa(),i=Ra(),l=(e=>{const{classes:t}=e;return en({root:["booleanCell"]},za,t)})({classes:i.classes}),a=e.useMemo((()=>n?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon),[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,n]);return Pe.jsx(a,_e({fontSize:"small",className:l.root,titleAccess:r.current.getLocaleText(n?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!n},o))}"production"!==process.env.NODE_ENV&&(ec.propTypes={api:pe.object.isRequired,cellMode:pe.oneOf(["edit","view"]).isRequired,colDef:pe.object.isRequired,field:pe.string.isRequired,focusElementRef:pe.oneOfType([pe.func,pe.shape({current:pe.shape({focus:pe.func.isRequired})})]),formattedValue:pe.any,hasFocus:pe.bool.isRequired,id:pe.oneOfType([pe.number,pe.string]).isRequired,isEditable:pe.bool,row:pe.any.isRequired,rowNode:pe.object.isRequired,tabIndex:pe.oneOf([-1,0]).isRequired,value:pe.any});const tc=e.memo(ec),nc=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function oc(t){var n;const{id:o,value:r,field:i,className:l,hasFocus:a,onValueChange:s}=t,u=De(t,nc),c=Sa(),d=e.useRef(null),p=It(),[f,h]=e.useState(r),m=Ra(),g=(e=>{const{classes:t}=e;return en({root:["editBooleanCell"]},za,t)})({classes:m.classes}),b=e.useCallback((async e=>{const t=e.target.checked;s&&await s(e,t),h(t),await c.current.setEditCellValue({id:o,field:i,value:t},e)}),[c,i,o,s]);return e.useEffect((()=>{h(r)}),[r]),jt((()=>{a&&d.current.focus()}),[a]),Pe.jsx("label",_e({htmlFor:p,className:vo(g.root,l)},u,{children:Pe.jsx(m.slots.baseCheckbox,_e({id:p,inputRef:d,checked:!!f,onChange:b,size:"small"},null==(n=m.slotProps)?void 0:n.baseCheckbox))}))}"production"!==process.env.NODE_ENV&&(oc.propTypes={api:pe.object.isRequired,cellMode:pe.oneOf(["edit","view"]).isRequired,changeReason:pe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:pe.object.isRequired,field:pe.string.isRequired,formattedValue:pe.any,hasFocus:pe.bool.isRequired,id:pe.oneOfType([pe.number,pe.string]).isRequired,isEditable:pe.bool,isProcessingProps:pe.bool,isValidating:pe.bool,onValueChange:pe.func,row:pe.any.isRequired,rowNode:pe.object.isRequired,tabIndex:pe.oneOf([-1,0]).isRequired,value:pe.any});function rc(e){return"string"==typeof e}function ic(e,t,n){return void 0===e||rc(e)?t:_e({},t,{ownerState:_e({},t.ownerState,n)})}const lc={disableDefaultClasses:!1},ac=e.createContext(lc);function sc(t){const{disableDefaultClasses:n}=e.useContext(ac);return e=>n?"":t(e)}function uc(e,t,n){return"function"==typeof e?e(t,n):e}function cc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function dc(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const e=vo(null==r?void 0:r.className,null==o?void 0:o.className,i,null==n?void 0:n.className),t=_e({},null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),l=_e({},n,r,o);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(_e({},r,o)),a=cc(o),s=cc(r),u=t(l),c=vo(null==u?void 0:u.className,null==n?void 0:n.className,i,null==r?void 0:r.className,null==o?void 0:o.className),d=_e({},null==u?void 0:u.style,null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),p=_e({},u,n,s,a);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const pc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fc(e){var t;const{elementType:n,externalSlotProps:o,ownerState:r,skipResolvingSlotProps:i=!1}=e,l=De(e,pc),a=i?{}:uc(o,r),{props:s,internalRef:u}=dc(_e({},l,{externalSlotProps:a}));return ic(n,_e({},s,{ref:At(u,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),r)}function hc(e){return e.substring(2).toLowerCase()}function mc(t){const{children:n,disableReactTree:o=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:l="onTouchEnd"}=t,a=e.useRef(!1),s=e.useRef(null),u=e.useRef(!1),c=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const d=At(n.ref,s),p=Dt((e=>{const t=c.current;c.current=!1;const n=Rt(s.current);if(!u.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(a.current)return void(a.current=!1);let r;r=e.composedPath?e.composedPath().indexOf(s.current)>-1:!n.documentElement.contains(e.target)||s.current.contains(e.target),!r&&(o||!t)&&i(e)})),f=e=>t=>{c.current=!0;const o=n.props[e];o&&o(t)},h={ref:d};return!1!==l&&(h[l]=f(l)),e.useEffect((()=>{if(!1!==l){const e=hc(l),t=Rt(s.current),n=()=>{a.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,l]),!1!==r&&(h[r]=f(r)),e.useEffect((()=>{if(!1!==r){const e=hc(r),t=Rt(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,r]),Pe.jsx(e.Fragment,{children:e.cloneElement(n,h)})}"production"!==process.env.NODE_ENV&&(mc.propTypes={children:st.isRequired,disableReactTree:pe.bool,mouseEvent:pe.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:pe.func.isRequired,touchEvent:pe.oneOf(["onTouchEnd","onTouchStart",!1])}),"production"!==process.env.NODE_ENV&&(mc.propTypes=ct(mc.propTypes));const gc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function bc(e){const t=[],n=[];return Array.from(e.querySelectorAll(gc)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===r||!function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)||(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function vc(){return!0}function yc(t){const{children:n,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:l=bc,isEnabled:a=vc,open:s}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),p=e.useRef(null),f=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=At(n.ref,m),b=e.useRef(null);e.useEffect((()=>{!s||!m.current||(h.current=!o)}),[o,s]),e.useEffect((()=>{if(!s||!m.current)return;const e=Rt(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&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("\n")),m.current.setAttribute("tabIndex","-1")),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),e.useEffect((()=>{if(!s||!m.current)return;const e=Rt(m.current),t=t=>{const{current:n}=m;if(null!==n){if(!e.hasFocus()||r||!a()||u.current)return void(u.current=!1);if(!n.contains(e.activeElement)){if(t&&f.current!==t.target||e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if((e.activeElement===c.current||e.activeElement===d.current)&&(r=l(m.current)),r.length>0){var o,i;const e=!(null==(o=b.current)||!o.shiftKey||"Tab"!==(null==(i=b.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}},n=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[o,r,i,a,s,l]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Pe.jsxs(e.Fragment,{children:[Pe.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const t=n.props.onFocus;t&&t(e)}}),Pe.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(yc.propTypes={children:st,disableAutoFocus:pe.bool,disableEnforceFocus:pe.bool,disableRestoreFocus:pe.bool,getTabbable:pe.func,isEnabled:pe.func,open:pe.bool.isRequired}),"production"!==process.env.NODE_ENV&&(yc.propTypes=ct(yc.propTypes));var wc="top",xc="bottom",Cc="right",Oc="left",kc="auto",Sc=[wc,xc,Cc,Oc],Ec="start",Rc="end",Tc="clippingParents",Nc="viewport",jc="popper",Pc="reference",Mc=Sc.reduce((function(e,t){return e.concat([t+"-"+Ec,t+"-"+Rc])}),[]),Ic=[].concat(Sc,[kc]).reduce((function(e,t){return e.concat([t,t+"-"+Ec,t+"-"+Rc])}),[]),_c=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Dc(e){return e?(e.nodeName||"").toLowerCase():null}function Ac(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fc(e){return e instanceof Ac(e).Element||e instanceof Element}function Lc(e){return e instanceof Ac(e).HTMLElement||e instanceof HTMLElement}function Vc(e){return!(typeof ShadowRoot>"u")&&(e instanceof Ac(e).ShadowRoot||e instanceof ShadowRoot)}const $c={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];!Lc(r)||!Dc(r)||(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!Lc(o)||!Dc(o)||(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function zc(e){return e.split("-")[0]}var qc=Math.max,Hc=Math.min,Bc=Math.round;function Uc(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Wc(){return!/^((?!chrome|android).)*safari/i.test(Uc())}function Gc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Lc(e)&&(r=e.offsetWidth>0&&Bc(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Bc(o.height)/e.offsetHeight||1);var l=(Fc(e)?Ac(e):window).visualViewport,a=!Wc()&&n,s=(o.left+(a&&l?l.offsetLeft:0))/r,u=(o.top+(a&&l?l.offsetTop:0))/i,c=o.width/r,d=o.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function Kc(e){var t=Gc(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 Yc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vc(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Zc(e){return Ac(e).getComputedStyle(e)}function Xc(e){return["table","td","th"].indexOf(Dc(e))>=0}function Qc(e){return((Fc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jc(e){return"html"===Dc(e)?e:e.assignedSlot||e.parentNode||(Vc(e)?e.host:null)||Qc(e)}function ed(e){return Lc(e)&&"fixed"!==Zc(e).position?e.offsetParent:null}function td(e){for(var t=Ac(e),n=ed(e);n&&Xc(n)&&"static"===Zc(n).position;)n=ed(n);return n&&("html"===Dc(n)||"body"===Dc(n)&&"static"===Zc(n).position)?t:n||function(e){var t=/firefox/i.test(Uc());if(/Trident/i.test(Uc())&&Lc(e)&&"fixed"===Zc(e).position)return null;var n=Jc(e);for(Vc(n)&&(n=n.host);Lc(n)&&["html","body"].indexOf(Dc(n))<0;){var o=Zc(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function nd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function od(e,t,n){return qc(e,Hc(t,n))}function rd(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function id(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const ld={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=zc(n.placement),s=nd(a),u=[Oc,Cc].indexOf(a)>=0?"height":"width";if(i&&l){var c=function(e,t){return rd("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:id(e,Sc))}(r.padding,n),d=Kc(i),p="y"===s?wc:Oc,f="y"===s?xc:Cc,h=n.rects.reference[u]+n.rects.reference[s]-l[s]-n.rects.popper[u],m=l[s]-n.rects.reference[s],g=td(i),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=c[p],w=b-d[u]-c[f],x=b/2-d[u]/2+v,C=od(y,x,w),O=s;n.modifiersData[o]=((t={})[O]=C,t.centerOffset=C-x,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"==typeof o&&!(o=t.elements.popper.querySelector(o))||Yc(t.elements.popper,o)&&(t.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ad(e){return e.split("-")[1]}var sd={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ud(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,l=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=l.x,f=void 0===p?0:p,h=l.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=l.hasOwnProperty("x"),v=l.hasOwnProperty("y"),y=Oc,w=wc,x=window;if(u){var C=td(n),O="clientHeight",k="clientWidth";if(C===Ac(n)&&("static"!==Zc(C=Qc(n)).position&&"absolute"===a&&(O="scrollHeight",k="scrollWidth")),r===wc||(r===Oc||r===Cc)&&i===Rc)w=xc,m-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[O])-o.height,m*=s?1:-1;if(r===Oc||(r===wc||r===xc)&&i===Rc)y=Cc,f-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[k])-o.width,f*=s?1:-1}var S,E=Object.assign({position:a},u&&sd),R=!0===c?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Bc(n*r)/r||0,y:Bc(o*r)/r||0}}({x:f,y:m},Ac(n)):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},E,((S={})[w]=v?"0":"",S[y]=b?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",S)):Object.assign({},E,((t={})[w]=v?m+"px":"",t[y]=b?f+"px":"",t.transform="",t))}const cd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,l=void 0===i||i,a=n.roundOffsets,s=void 0===a||a,u={placement:zc(t.placement),variation:ad(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ud(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ud(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var dd={passive:!0};const pd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,l=o.resize,a=void 0===l||l,s=Ac(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,dd)})),a&&s.addEventListener("resize",n.update,dd),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,dd)})),a&&s.removeEventListener("resize",n.update,dd)}},data:{}};var fd={left:"right",right:"left",bottom:"top",top:"bottom"};function hd(e){return e.replace(/left|right|bottom|top/g,(function(e){return fd[e]}))}var md={start:"end",end:"start"};function gd(e){return e.replace(/start|end/g,(function(e){return md[e]}))}function bd(e){var t=Ac(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vd(e){return Gc(Qc(e)).left+bd(e).scrollLeft}function yd(e){var t=Zc(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function wd(e){return["html","body","#document"].indexOf(Dc(e))>=0?e.ownerDocument.body:Lc(e)&&yd(e)?e:wd(Jc(e))}function xd(e,t){var n;void 0===t&&(t=[]);var o=wd(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Ac(o),l=r?[i].concat(i.visualViewport||[],yd(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(xd(Jc(l)))}function Cd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Od(e,t,n){return t===Nc?Cd(function(e,t){var n=Ac(e),o=Qc(e),r=n.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;var u=Wc();(u||!u&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a+vd(e),y:s}}(e,n)):Fc(t)?function(e,t){var n=Gc(e,!1,"fixed"===t);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}(t,n):Cd(function(e){var t,n=Qc(e),o=bd(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=qc(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=qc(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+vd(e),s=-o.scrollTop;return"rtl"===Zc(r||n).direction&&(a+=qc(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(Qc(e)))}function kd(e,t,n,o){var r="clippingParents"===t?function(e){var t=xd(Jc(e)),n=["absolute","fixed"].indexOf(Zc(e).position)>=0&&Lc(e)?td(e):e;return Fc(n)?t.filter((function(e){return Fc(e)&&Yc(e,n)&&"body"!==Dc(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),l=i[0],a=i.reduce((function(t,n){var r=Od(e,n,o);return t.top=qc(r.top,t.top),t.right=Hc(r.right,t.right),t.bottom=Hc(r.bottom,t.bottom),t.left=qc(r.left,t.left),t}),Od(e,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Sd(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?zc(r):null,l=r?ad(r):null,a=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(i){case wc:t={x:a,y:n.y-o.height};break;case xc:t={x:a,y:n.y+n.height};break;case Cc:t={x:n.x+n.width,y:s};break;case Oc:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?nd(i):null;if(null!=u){var c="y"===u?"height":"width";switch(l){case Ec:t[u]=t[u]-(n[c]/2-o[c]/2);break;case Rc:t[u]=t[u]+(n[c]/2-o[c]/2)}}return t}function Ed(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,l=void 0===i?e.strategy:i,a=n.boundary,s=void 0===a?Tc:a,u=n.rootBoundary,c=void 0===u?Nc:u,d=n.elementContext,p=void 0===d?jc:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=rd("number"!=typeof g?g:id(g,Sc)),v=p===jc?Pc:jc,y=e.rects.popper,w=e.elements[h?v:p],x=kd(Fc(w)?w:w.contextElement||Qc(e.elements.popper),s,c,l),C=Gc(e.elements.reference),O=Sd({reference:C,element:y,strategy:"absolute",placement:r}),k=Cd(Object.assign({},y,O)),S=p===jc?k:C,E={top:x.top-S.top+b.top,bottom:S.bottom-x.bottom+b.bottom,left:x.left-S.left+b.left,right:S.right-x.right+b.right},R=e.modifiersData.offset;if(p===jc&&R){var T=R[r];Object.keys(E).forEach((function(e){var t=[Cc,xc].indexOf(e)>=0?1:-1,n=[wc,xc].indexOf(e)>=0?"y":"x";E[e]+=T[n]*t}))}return E}const Rd={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0===l||l,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=zc(g),v=s||(b===g||!h?[hd(g)]:function(e){if(zc(e)===kc)return[];var t=hd(e);return[gd(e),t,gd(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(zc(n)===kc?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Ic:s,c=ad(o),d=c?a?Mc:Mc.filter((function(e){return ad(e)===c})):Sc,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Ed(e,{placement:n,boundary:r,rootBoundary:i,padding:l})[zc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,C=new Map,O=!0,k=y[0],S=0;S<y.length;S++){var E=y[S],R=zc(E),T=ad(E)===Ec,N=[wc,xc].indexOf(R)>=0,j=N?"width":"height",P=Ed(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),M=N?T?Cc:Oc:T?xc:wc;w[j]>x[j]&&(M=hd(M));var I=hd(M),_=[];if(i&&_.push(P[R]<=0),a&&_.push(P[M]<=0,P[I]<=0),_.every((function(e){return e}))){k=E,O=!1;break}C.set(E,_)}if(O)for(var D=function(e){var t=y.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},A=h?3:1;A>0;A--){if("break"===D(A))break}t.placement!==k&&(t.modifiersData[o]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Td(e,t,n){return void 0===n&&(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 Nd(e){return[wc,Cc,xc,Oc].some((function(t){return e[t]>=0}))}const jd={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,l=Ed(t,{elementContext:"reference"}),a=Ed(t,{altBoundary:!0}),s=Td(l,o),u=Td(a,r,i),c=Nd(s),d=Nd(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};const Pd={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,l=Ic.reduce((function(e,n){return e[n]=function(e,t,n){var o=zc(e),r=[Oc,wc].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*r,[Oc,Cc].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}(n,t.rects,i),e}),{}),a=l[t.placement],s=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=l}};const Md={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Sd({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const Id={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0!==l&&l,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Ed(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),b=zc(t.placement),v=ad(t.placement),y=!v,w=nd(b),x=function(e){return"x"===e?"y":"x"}(w),C=t.modifiersData.popperOffsets,O=t.rects.reference,k=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(C){if(i){var N,j="y"===w?wc:Oc,P="y"===w?xc:Cc,M="y"===w?"height":"width",I=C[w],_=I+g[j],D=I-g[P],A=f?-k[M]/2:0,F=v===Ec?O[M]:k[M],L=v===Ec?-k[M]:-O[M],V=t.elements.arrow,$=f&&V?Kc(V):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=z[j],H=z[P],B=od(0,O[M],$[M]),U=y?O[M]/2-A-B-q-E.mainAxis:F-B-q-E.mainAxis,W=y?-O[M]/2+A+B+H+E.mainAxis:L+B+H+E.mainAxis,G=t.elements.arrow&&td(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Y=null!=(N=null==R?void 0:R[w])?N:0,Z=I+W-Y,X=od(f?Hc(_,I+U-Y-K):_,I,f?qc(D,Z):D);C[w]=X,T[w]=X-I}if(a){var Q,J="x"===w?wc:Oc,ee="x"===w?xc:Cc,te=C[x],ne="y"===x?"height":"width",oe=te+g[J],re=te-g[ee],ie=-1!==[wc,Oc].indexOf(b),le=null!=(Q=null==R?void 0:R[x])?Q:0,ae=ie?oe:te-O[ne]-k[ne]-le+E.altAxis,se=ie?te+O[ne]+k[ne]-le-E.altAxis:re,ue=f&&ie?function(e,t,n){var o=od(e,t,n);return o>n?n:o}(ae,te,se):od(f?ae:oe,te,f?se:re);C[x]=ue,T[x]=ue-te}t.modifiersData[o]=T}},requiresIfExists:["offset"]};function _d(e,t,n){void 0===n&&(n=!1);var o=Lc(t),r=Lc(t)&&function(e){var t=e.getBoundingClientRect(),n=Bc(t.width)/e.offsetWidth||1,o=Bc(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),i=Qc(t),l=Gc(e,r,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&(("body"!==Dc(t)||yd(i))&&(a=function(e){return e!==Ac(e)&&Lc(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):bd(e)}(t)),Lc(t)?((s=Gc(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=vd(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function Dd(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function Ad(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Fd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ld(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Vd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?Fd:r;return function(e,t,n){void 0===n&&(n=i);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Fd,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],a=!1,s={state:r,setOptions:function(n){var a="function"==typeof n?n(r.options):n;u(),r.options=Object.assign({},i,r.options,a),r.scrollParents={reference:Fc(e)?xd(e):e.contextElement?xd(e.contextElement):[],popper:xd(t)};var c=function(e){var t=Dd(e);return _c.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(o,r.options.modifiers)));return r.orderedModifiers=c.filter((function(e){return e.enabled})),r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var a=i({state:r,name:t,instance:s,options:o}),u=function(){};l.push(a||u)}})),s.update()},forceUpdate:function(){if(!a){var e=r.elements,t=e.reference,n=e.popper;if(Ld(t,n)){r.rects={reference:_d(t,td(n),"fixed"===r.options.strategy),popper:Kc(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<r.orderedModifiers.length;o++)if(!0!==r.reset){var i=r.orderedModifiers[o],l=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof l&&(r=l({state:r,options:c,name:d,instance:s})||r)}else r.reset=!1,o=-1}}},update:Ad((function(){return new Promise((function(e){s.forceUpdate(),e(r)}))})),destroy:function(){u(),a=!0}};if(!Ld(e,t))return s;function u(){l.forEach((function(e){return e()})),l=[]}return s.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var $d=Vd({defaultModifiers:[pd,Md,cd,$c,Pd,Rd,Id,ld,jd]});const zd=e.forwardRef((function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[l,a]=e.useState(null),s=At(e.isValidElement(o)?o.ref:null,n);if(jt((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),jt((()=>{if(l&&!i)return Nt(n,l),()=>{Nt(n,null)}}),[n,l,i]),i){if(e.isValidElement(o)){const t={ref:s};return e.cloneElement(o,t)}return Pe.jsx(e.Fragment,{children:o})}return Pe.jsx(e.Fragment,{children:l&&be.createPortal(o,l)})}));"production"!==process.env.NODE_ENV&&(zd.propTypes={children:pe.node,container:pe.oneOfType([xt,pe.func]),disablePortal:pe.bool}),"production"!==process.env.NODE_ENV&&(zd.propTypes=ct(zd.propTypes));const qd=zd;function Hd(e){return ln("MuiPopper",e)}an("MuiPopper",["root"]);const Bd=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ud=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Wd(e){return"function"==typeof e?e():e}function Gd(e){return void 0!==e.nodeType}const Kd={},Yd=e.forwardRef((function(t,n){var o;const{anchorEl:r,children:i,direction:l,disablePortal:a,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:f={},slots:h={},TransitionProps:m}=t,g=De(t,Bd),b=e.useRef(null),v=At(b,n),y=e.useRef(null),w=At(y,p),x=e.useRef(w);jt((()=>{x.current=w}),[w]),e.useImperativeHandle(p,(()=>y.current),[]);const C=function(e,t){if("ltr"===t)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}}(c,l),[O,k]=e.useState(C),[S,E]=e.useState(Wd(r));e.useEffect((()=>{y.current&&y.current.forceUpdate()})),e.useEffect((()=>{r&&E(Wd(r))}),[r]),jt((()=>{if(!S||!u)return;if("production"!==process.env.NODE_ENV&&S&&Gd(S)&&1===S.nodeType){const e=S.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&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("\n"))}let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{k(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=$d(S,b.current,_e({placement:C},d,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[S,a,s,u,d,C]);const R={placement:O};null!==m&&(R.TransitionProps=m);const T=en({root:["root"]},sc(Hd)),N=null!=(o=h.root)?o:"div",j=fc({elementType:N,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:T.root});return Pe.jsx(N,_e({},j,{children:"function"==typeof i?i(R):i}))})),Zd=e.forwardRef((function(t,n){const{anchorEl:o,children:r,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=Kd,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:b={}}=t,v=De(t,Ud),[y,w]=e.useState(!0);if(!s&&!c&&(!m||y))return null;let x;if(i)x=i;else if(o){const e=Wd(o);x=e&&Gd(e)?Rt(e).body:Rt(null).body}const C=c||!s||m&&!y?void 0:"none",O=m?{in:c,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return Pe.jsx(qd,{disablePortal:a,container:x,children:Pe.jsx(Yd,_e({anchorEl:o,direction:l,disablePortal:a,modifiers:u,ref:n,open:m?!y:c,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:b},v,{style:_e({position:"fixed",top:0,left:0,display:C},h),TransitionProps:O,children:r}))})}));"production"!==process.env.NODE_ENV&&(Zd.propTypes={anchorEl:nt(pe.oneOfType([xt,pe.object,pe.func]),(e=>{if(e.open){const t=Wd(e.anchorEl);if(t&&Gd(t)&&1===t.nodeType){const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)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("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||function(e){return!Gd(e)}(t)&&null!=t.contextElement&&1!==t.contextElement.nodeType)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("\n"))}return null})),children:pe.oneOfType([pe.node,pe.func]),container:pe.oneOfType([xt,pe.func]),direction:pe.oneOf(["ltr","rtl"]),disablePortal:pe.bool,keepMounted:pe.bool,modifiers:pe.arrayOf(pe.shape({data:pe.object,effect:pe.func,enabled:pe.bool,fn:pe.func,name:pe.any,options:pe.object,phase:pe.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:pe.arrayOf(pe.string),requiresIfExists:pe.arrayOf(pe.string)})),open:pe.bool.isRequired,placement:pe.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:pe.shape({modifiers:pe.array,onFirstUpdate:pe.func,placement:pe.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:pe.oneOf(["absolute","fixed"])}),popperRef:Ct,slotProps:pe.shape({root:pe.oneOfType([pe.func,pe.object])}),slots:pe.shape({root:pe.elementType}),transition:pe.bool});const Xd=Zd;function Qd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Jd(e){return parseInt(Tt(e).getComputedStyle(e).paddingRight,10)||0}function ep(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Qd(e,r)}))}function tp(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function np(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=Rt(e);return t.body===e?Tt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=Wt(Rt(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Jd(o)+e}px`;const t=Rt(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Jd(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=Rt(o).body;else{const t=o.parentElement,n=Tt(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function op(e){return ln("MuiModal",e)}an("MuiModal",["root","hidden","backdrop"]);const rp=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];const ip=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Qd(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ep(t,e.mount,e.modalRef,o,!0);const r=tp(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=tp(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];o.restore||(o.restore=np(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=tp(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Qd(e.modalRef,t),ep(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&Qd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},lp=e.forwardRef((function(t,n){var o,r;const{children:i,closeAfterTransition:l=!1,container:a,disableAutoFocus:s=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:c=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:f=!1,hideBackdrop:h=!1,keepMounted:m=!1,manager:g=ip,onBackdropClick:b,onClose:v,onKeyDown:y,open:w,onTransitionEnter:x,onTransitionExited:C,slotProps:O={},slots:k={}}=t,S=De(t,rp),E=g,[R,T]=e.useState(!w),N=e.useRef({}),j=e.useRef(null),P=e.useRef(null),M=At(P,n),I=function(e){return!!e&&e.props.hasOwnProperty("in")}(i),_=null==(o=t["aria-hidden"])||o,D=()=>(N.current.modalRef=P.current,N.current.mountNode=j.current,N.current),A=()=>{E.mount(D(),{disableScrollLock:f}),P.current&&(P.current.scrollTop=0)},F=Dt((()=>{const e=function(e){return"function"==typeof e?e():e}(a)||Rt(j.current).body;E.add(D(),e),P.current&&A()})),L=e.useCallback((()=>E.isTopModal(D())),[E]),V=Dt((e=>{j.current=e,e&&P.current&&(w&&L()?A():Qd(P.current,_))})),$=e.useCallback((()=>{E.remove(D(),_)}),[E,_]);e.useEffect((()=>()=>{$()}),[$]),e.useEffect((()=>{w?F():(!I||!l)&&$()}),[w,$,I,l,F]);const z=_e({},t,{closeAfterTransition:l,disableAutoFocus:s,disableEnforceFocus:u,disableEscapeKeyDown:c,disablePortal:d,disableRestoreFocus:p,disableScrollLock:f,exited:R,hideBackdrop:h,keepMounted:m}),q=(e=>{const{open:t,exited:n}=e;return en({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},sc(op))})(z),H={};void 0===i.props.tabIndex&&(H.tabIndex="-1"),I&&(H.onEnter=kt((()=>{T(!1),x&&x()}),i.props.onEnter),H.onExited=kt((()=>{T(!0),C&&C(),l&&$()}),i.props.onExited));const B=null!=(r=k.root)?r:"div",U=fc({elementType:B,externalSlotProps:O.root,externalForwardedProps:S,additionalProps:{ref:M,role:"presentation",onKeyDown:e=>{y&&y(e),"Escape"===e.key&&L()&&(c||(e.stopPropagation(),v&&v(e,"escapeKeyDown")))}},className:q.root,ownerState:z}),W=k.backdrop,G=fc({elementType:W,externalSlotProps:O.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),v&&v(e,"backdropClick"))},open:w},className:q.backdrop,ownerState:z});return m||w||I&&!R?Pe.jsx(qd,{ref:V,container:a,disablePortal:d,children:Pe.jsxs(B,_e({},U,{children:[!h&&W?Pe.jsx(W,_e({},G)):null,Pe.jsx(yc,{disableEnforceFocus:u,disableAutoFocus:s,disableRestoreFocus:p,isEnabled:L,open:w,children:e.cloneElement(i,H)})]}))}):null}));"production"!==process.env.NODE_ENV&&(lp.propTypes={children:st.isRequired,closeAfterTransition:pe.bool,container:pe.oneOfType([xt,pe.func]),disableAutoFocus:pe.bool,disableEnforceFocus:pe.bool,disableEscapeKeyDown:pe.bool,disablePortal:pe.bool,disableRestoreFocus:pe.bool,disableScrollLock:pe.bool,hideBackdrop:pe.bool,keepMounted:pe.bool,onBackdropClick:pe.func,onClose:pe.func,onTransitionEnter:pe.func,onTransitionExited:pe.func,open:pe.bool.isRequired,slotProps:pe.shape({backdrop:pe.oneOfType([pe.func,pe.object]),root:pe.oneOfType([pe.func,pe.object])}),slots:pe.shape({backdrop:pe.elementType,root:pe.elementType})});const ap=lp,sp=["onChange","maxRows","minRows","style","value"];function up(e){return parseInt(e,10)||0}const cp={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function dp(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const pp=e.forwardRef((function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:l,value:a}=t,s=De(t,sp),{current:u}=e.useRef(null!=a),c=e.useRef(null),d=At(n,c),p=e.useRef(null),f=e.useRef(0),[h,m]=e.useState({outerHeightStyle:0}),g=e.useCallback((()=>{const e=c.current,n=Tt(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0};const o=p.current;o.style.width=n.width,o.value=e.value||t.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const l=n.boxSizing,a=up(n.paddingBottom)+up(n.paddingTop),s=up(n.borderBottomWidth)+up(n.borderTopWidth),u=o.scrollHeight;o.value="x";const d=o.scrollHeight;let f=u;i&&(f=Math.max(Number(i)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===l?a+s:0),overflow:Math.abs(f-u)<=1}}),[r,i,t.placeholder]),b=(e,t)=>{const{outerHeightStyle:n,overflow:o}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==o)?(f.current+=1,{overflow:o,outerHeightStyle:n}):("production"!==process.env.NODE_ENV&&20===f.current&&console.error(["MUI: Too many re-renders. The layout is unstable.","TextareaAutosize limits the number of renders to prevent an infinite loop."].join("\n")),e)},v=e.useCallback((()=>{const e=g();dp(e)||m((t=>b(t,e)))}),[g]);e.useEffect((()=>{const e=St((()=>{f.current=0,c.current&&(()=>{const e=g();dp(e)||be.flushSync((()=>{m((t=>b(t,e)))}))})()}));let t;const n=c.current,o=Tt(n);return o.addEventListener("resize",e),typeof ResizeObserver<"u"&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),o.removeEventListener("resize",e),t&&t.disconnect()}})),jt((()=>{v()})),e.useEffect((()=>{f.current=0}),[a]);return Pe.jsxs(e.Fragment,{children:[Pe.jsx("textarea",_e({value:a,onChange:e=>{f.current=0,u||v(),o&&o(e)},ref:d,rows:i,style:_e({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},l)},s)),Pe.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:_e({},cp,l,{paddingTop:0,paddingBottom:0})})]})}));"production"!==process.env.NODE_ENV&&(pp.propTypes={className:pe.string,maxRows:pe.oneOfType([pe.number,pe.string]),minRows:pe.oneOfType([pe.number,pe.string]),onChange:pe.func,placeholder:pe.string,style:pe.object,value:pe.oneOfType([pe.arrayOf(pe.string),pe.number,pe.string])});const fp=pp;function hp(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function mp(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:o,matchFrom:r="any",stringify:i,trim:l=!1}=e;return(e,{inputValue:a,getOptionLabel:s})=>{let u=l?a.trim():a;n&&(u=u.toLowerCase()),t&&(u=hp(u));const c=u?e.filter((e=>{let o=(i||s)(e);return n&&(o=o.toLowerCase()),t&&(o=hp(o)),"start"===r?0===o.indexOf(u):o.indexOf(u)>-1})):e;return"number"==typeof o?c.slice(0,o):c}}function gp(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const bp=mp(),vp=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function yp(t){const{unstable_isActiveElementInListbox:n=vp,unstable_classNamePrefix:o="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:a=!1,clearOnBlur:s=!t.freeSolo,clearOnEscape:u=!1,componentName:c="useAutocomplete",defaultValue:d=(t.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:b=bp,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:x=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:C,handleHomeEndKeys:O=!t.freeSolo,id:k,includeInputInList:S=!1,inputValue:E,isOptionEqualToValue:R=((e,t)=>e===t),multiple:T=!1,onChange:N,onClose:j,onHighlightChange:P,onInputChange:M,onOpen:I,open:_,openOnFocus:D=!1,options:A,readOnly:F=!1,selectOnFocus:L=!t.freeSolo,value:V}=t,$=It(k);let z=x;z=e=>{const t=x(e);if("string"!=typeof t){if("production"!==process.env.NODE_ENV){const n=void 0===t?"undefined":`${typeof t} (${t})`;console.error(`MUI: The \`getOptionLabel\` method of ${c} returned ${n} instead of a string for ${JSON.stringify(e)}.`)}return String(t)}return t};const q=e.useRef(!1),H=e.useRef(!0),B=e.useRef(null),U=e.useRef(null),[W,G]=e.useState(null),[K,Y]=e.useState(-1),Z=i?0:-1,X=e.useRef(Z),[Q,J]=_t({controlled:V,default:d,name:c}),[ee,te]=_t({controlled:E,default:"",name:c,state:"inputValue"}),[ne,oe]=e.useState(!1),re=e.useCallback(((e,t)=>{if(!(T?Q.length<t.length:null!==t)&&!s)return;let n;if(T)n="";else if(null==t)n="";else{const e=z(t);n="string"==typeof e?e:""}ee!==n&&(te(n),M&&M(e,n,"reset"))}),[z,ee,T,M,te,s,Q]),[ie,le]=_t({controlled:_,default:!1,name:c,state:"open"}),[ae,se]=e.useState(!0),ue=!T&&null!=Q&&ee===z(Q),ce=ie&&!F,de=ce?b(A.filter((e=>!(v&&(T?Q:[Q]).some((t=>null!==t&&R(e,t)))))),{inputValue:ue&&ae?"":ee,getOptionLabel:z}):[],pe=Gt({filteredOptions:de,value:Q,inputValue:ee});e.useEffect((()=>{const e=Q!==pe.value;ne&&!e||y&&!e||re(null,Q)}),[Q,re,ne,pe.value,y]);const fe=ie&&de.length>0&&!F;if("production"!==process.env.NODE_ENV&&null!==Q&&!y&&A.length>0){const e=(T?Q:[Q]).filter((e=>!A.some((t=>R(t,e)))));e.length>0&&console.warn([`MUI: The value provided to ${c} is invalid.`,`None of the options match with \`${e.length>1?JSON.stringify(e):JSON.stringify(e[0])}\`.`,"You can use the `isOptionEqualToValue` prop to customize the equality test."].join("\n"))}const he=Dt((e=>{-1===e?B.current.focus():W.querySelector(`[data-tag-index="${e}"]`).focus()}));e.useEffect((()=>{T&&K>Q.length-1&&(Y(-1),he(-1))}),[Q,T,K,he]);const me=Dt((({event:e,index:t,reason:n="auto"})=>{if(X.current=t,-1===t?B.current.removeAttribute("aria-activedescendant"):B.current.setAttribute("aria-activedescendant",`${$}-option-${t}`),P&&P(e,-1===t?null:de[t],n),!U.current)return;const r=U.current.querySelector(`[role="option"].${o}-focused`);r&&(r.classList.remove(`${o}-focused`),r.classList.remove(`${o}-focusVisible`));let i=U.current;if("listbox"!==U.current.getAttribute("role")&&(i=U.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const l=U.current.querySelector(`[data-option-index="${t}"]`);if(l&&(l.classList.add(`${o}-focused`),"keyboard"===n&&l.classList.add(`${o}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==n)){const e=l,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ge=Dt((({event:e,diff:t,direction:n="next",reason:o="auto"})=>{if(!ce)return;const i=function(e,t){if(!U.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===de.length||"previous"===t&&-1===n)return-1;const e=U.current.querySelector(`[data-option-index="${n}"]`),o=!m&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}((()=>{const e=de.length-1;if("reset"===t)return Z;if("start"===t)return 0;if("end"===t)return e;const n=X.current+t;return n<0?-1===n&&S?-1:g&&-1!==X.current||Math.abs(t)>1?0:e:n>e?n===e+1&&S?-1:g||Math.abs(t)>1?e:0:n})(),n);if(me({index:i,reason:o,event:e}),r&&"reset"!==t)if(-1===i)B.current.value=ee;else{const e=z(de[i]);B.current.value=e,0===e.toLowerCase().indexOf(ee.toLowerCase())&&ee.length>0&&B.current.setSelectionRange(ee.length,e.length)}})),be=e.useCallback((()=>{if(!ce||(()=>{if(-1!==X.current&&pe.filteredOptions&&pe.filteredOptions.length!==de.length&&pe.inputValue===ee&&(T?Q.length===pe.value.length&&pe.value.every(((e,t)=>z(Q[t])===z(e))):(e=pe.value,t=Q,(e?z(e):"")===(t?z(t):"")))){const e=pe.filteredOptions[X.current];if(e&&de.some((t=>z(t)===z(e))))return!0}var e,t;return!1})())return;const e=T?Q[0]:Q;if(0!==de.length&&null!=e){if(U.current){if(null!=e){const t=de[X.current];if(T&&t&&-1!==gp(Q,(e=>R(t,e))))return;const n=gp(de,(t=>R(t,e)));return void(-1===n?ge({diff:"reset"}):me({index:n}))}if(X.current>=de.length-1)return void me({index:de.length-1});me({index:X.current})}}else ge({diff:"reset"})}),[de.length,!T&&Q,v,ge,me,ce,ee,T]),ve=Dt((e=>{Nt(U,e),e&&be()}));"production"!==process.env.NODE_ENV&&e.useEffect((()=>{(!B.current||"INPUT"!==B.current.nodeName)&&(B.current&&"TEXTAREA"===B.current.nodeName?console.warn([`A textarea element was provided to ${c} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (e.g. enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join("\n")):console.error([`MUI: Unable to find the input element. It was resolved to ${B.current} while an HTMLInputElement was expected.`,`Instead, ${c} expects an input element.`,"","useAutocomplete"===c?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join("\n")))}),[c]),e.useEffect((()=>{be()}),[be]);const ye=e=>{ie||(le(!0),se(!0),I&&I(e))},we=(e,t)=>{ie&&(le(!1),j&&j(e,t))},xe=(e,t,n,o)=>{if(T){if(Q.length===t.length&&Q.every(((e,n)=>e===t[n])))return}else if(Q===t)return;N&&N(e,t,n,o),J(t)},Ce=e.useRef(!1),Oe=(e,t,n="selectOption",o="options")=>{let r=n,i=t;if(T){if(i=Array.isArray(Q)?Q.slice():[],"production"!==process.env.NODE_ENV){const e=i.filter((e=>R(t,e)));e.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${c} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${e.length} matches.`].join("\n"))}const e=gp(i,(e=>R(t,e)));-1===e?i.push(t):"freeSolo"!==o&&(i.splice(e,1),r="removeOption")}re(e,i),xe(e,i,r,{option:t}),!f&&(!e||!e.ctrlKey&&!e.metaKey)&&we(e,r),(!0===a||"touch"===a&&Ce.current||"mouse"===a&&!Ce.current)&&B.current.blur()};const ke=(e,t)=>{if(!T)return;""===ee&&we(e,"toggleInput");let n=K;-1===K?""===ee&&"previous"===t&&(n=Q.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Q.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Q.length||"previous"===t&&-1===n)return-1;const e=W.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Y(n),he(n)},Se=e=>{q.current=!0,te(""),M&&M(e,"","clear"),xe(e,T?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Y(-1),he(-1)),229!==t.which))switch(t.key){case"Home":ce&&O&&(t.preventDefault(),ge({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ce&&O&&(t.preventDefault(),ge({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ge({diff:-5,direction:"previous",reason:"keyboard",event:t}),ye(t);break;case"PageDown":t.preventDefault(),ge({diff:5,direction:"next",reason:"keyboard",event:t}),ye(t);break;case"ArrowDown":t.preventDefault(),ge({diff:1,direction:"next",reason:"keyboard",event:t}),ye(t);break;case"ArrowUp":t.preventDefault(),ge({diff:-1,direction:"previous",reason:"keyboard",event:t}),ye(t);break;case"ArrowLeft":ke(t,"previous");break;case"ArrowRight":ke(t,"next");break;case"Enter":if(-1!==X.current&&ce){const e=de[X.current],n=!!w&&w(e);if(t.preventDefault(),n)return;Oe(t,e,"selectOption"),r&&B.current.setSelectionRange(B.current.value.length,B.current.value.length)}else y&&""!==ee&&!1===ue&&(T&&t.preventDefault(),Oe(t,ee,"createOption","freeSolo"));break;case"Escape":ce?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):u&&(""!==ee||T&&Q.length>0)&&(t.preventDefault(),t.stopPropagation(),Se(t));break;case"Backspace":if(T&&!F&&""===ee&&Q.length>0){const e=-1===K?Q.length-1:K,n=Q.slice();n.splice(e,1),xe(t,n,"removeOption",{option:Q[e]})}break;case"Delete":if(T&&!F&&""===ee&&Q.length>0&&-1!==K){const e=K,n=Q.slice();n.splice(e,1),xe(t,n,"removeOption",{option:Q[e]})}}},Re=e=>{oe(!0),D&&!q.current&&ye(e)},Te=e=>{n(U)?B.current.focus():(oe(!1),H.current=!0,q.current=!1,l&&-1!==X.current&&ce?Oe(e,de[X.current],"blur"):l&&y&&""!==ee?Oe(e,ee,"blur","freeSolo"):s&&re(e,Q),we(e,"blur"))},Ne=e=>{const t=e.target.value;ee!==t&&(te(t),se(!1),M&&M(e,t,"input")),""===t?!p&&!T&&xe(e,null,"clear"):ye(e)},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));X.current!==t&&me({event:e,index:t,reason:"mouse"})},Pe=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Oe(e,de[t],"selectOption"),Ce.current=!1},Ie=e=>t=>{const n=Q.slice();n.splice(e,1),xe(t,n,"removeOption",{option:Q[e]})},De=e=>{ie?we(e,"toggleInput"):ye(e)},Ae=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==$&&e.preventDefault()},Fe=e=>{e.currentTarget.contains(e.target)&&(B.current.focus(),L&&H.current&&B.current.selectionEnd-B.current.selectionStart==0&&B.current.select(),H.current=!1)},Le=e=>{(""===ee||!ie)&&De(e)};let Ve=y&&ee.length>0;Ve=Ve||(T?Q.length>0:null!==Q);let $e=de;if(C){const e=new Map;let t=!1;$e=de.reduce(((n,o,r)=>{const i=C(o);return n.length>0&&n[n.length-1].group===i?n[n.length-1].options.push(o):("production"!==process.env.NODE_ENV&&(e.get(i)&&!t&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${c} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),t=!0),e.set(i,!0)),n.push({key:r,index:r,group:i,options:[o]})),n}),[])}return h&&ne&&Te(),{getRootProps:(e={})=>_e({"aria-owns":fe?`${$}-listbox`:null},e,{onKeyDown:Ee(e),onMouseDown:Ae,onClick:Fe}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:ee,onBlur:Te,onFocus:Re,onChange:Ne,onMouseDown:Le,"aria-activedescendant":ce?"":null,"aria-autocomplete":r?"both":"list","aria-controls":fe?`${$}-listbox`:void 0,"aria-expanded":fe,autoComplete:"off",ref:B,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,onClick:Se}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:De}),getTagProps:({index:e})=>_e({key:e,"data-tag-index":e,tabIndex:-1},!F&&{onDelete:Ie(e)}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:ve,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(T?Q:[Q]).some((e=>null!=e&&R(t,e))),o=!!w&&w(t);return{key:z(t),tabIndex:-1,role:"option",id:`${$}-option-${e}`,onMouseMove:je,onClick:Me,onTouchStart:Pe,"data-option-index":e,"aria-disabled":o,"aria-selected":n}},id:$,inputValue:ee,value:Q,dirty:Ve,expanded:ce&&W,popupOpen:ce,focused:ne||-1!==K,anchorEl:W,setAnchorEl:G,focusedTag:K,groupedOptions:$e}}function wp({props:e,states:t,muiFormControl:n}){return t.reduce(((t,o)=>(t[o]=e[o],n&&typeof e[o]>"u"&&(t[o]=n[o]),t)),{})}const xp=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(xp.displayName="FormControlContext");const Cp=xp;function Op(){return e.useContext(Cp)}const kp=e=>Oo(e)&&"classes"!==e,Sp=Oo,Ep=Eo({themeId:hr,defaultTheme:fr,rootShouldForwardProp:kp});function Rp({props:e,name:t}){return To({props:e,name:t,defaultTheme:fr,themeId:hr})}function Tp(e){return Pe.jsx(ho,_e({},e,{defaultTheme:fr,themeId:hr}))}function Np(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function jp(e,t=!1){return e&&(Np(e.value)&&""!==e.value||t&&Np(e.defaultValue)&&""!==e.defaultValue)}function Pp(e){return ln("MuiInputBase",e)}"production"!==process.env.NODE_ENV&&(Tp.propTypes={styles:pe.oneOfType([pe.array,pe.func,pe.number,pe.object,pe.string,pe.bool])});const Mp=an("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ip=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],_p=(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,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ot(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Dp=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Ap=Ep("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_p})((({theme:e,ownerState:t})=>_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",[`&.${Mp.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&_e({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Fp=Ep("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dp})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,o=_e({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return _e({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Mp.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Mp.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Lp=Pe.jsx(Tp,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Vp=e.forwardRef((function(t,n){var o;const r=Rp({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:l,autoFocus:a,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:w,minRows:x,multiline:C=!1,name:O,onBlur:k,onChange:S,onClick:E,onFocus:R,onKeyDown:T,onKeyUp:N,placeholder:j,readOnly:P,renderSuffix:M,rows:I,slotProps:_={},slots:D={},startAdornment:A,type:F="text",value:L}=r,V=De(r,Ip),$=null!=v.value?v.value:L,{current:z}=e.useRef(null!=$),q=e.useRef(),H=e.useCallback((e=>{"production"!==process.env.NODE_ENV&&e&&"INPUT"!==e.nodeName&&!e.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("\n"))}),[]),B=At(q,y,v.ref,H),[U,W]=e.useState(!1),G=Op();"production"!==process.env.NODE_ENV&&e.useEffect((()=>{if(G)return G.registerEffect()}),[G]);const K=wp({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,e.useEffect((()=>{!G&&p&&U&&(W(!1),k&&k())}),[G,p,U,k]);const Y=G&&G.onFilled,Z=G&&G.onEmpty,X=e.useCallback((e=>{jp(e)?Y&&Y():Z&&Z()}),[Y,Z]);jt((()=>{z&&X({value:$})}),[$,X,z]);e.useEffect((()=>{X(q.current)}),[]);let Q=b,J=v;C&&"input"===Q&&(I?("production"!==process.env.NODE_ENV&&(x||w)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),J=_e({type:void 0,minRows:I,maxRows:I},J)):J=_e({type:void 0,maxRows:w,minRows:x},J),Q=fp);e.useEffect((()=>{G&&G.setAdornedStart(!!A)}),[G,A]);const ee=_e({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:h,error:K.error,focused:K.focused,formControl:G,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:C,size:K.size,startAdornment:A,type:F}),te=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:l,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return en({root:["root",`color${Ot(n)}`,o&&"disabled",r&&"error",s&&"fullWidth",l&&"focused",a&&"formControl","small"===p&&"sizeSmall",c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",o&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Pp,t)})(ee),ne=D.root||u.Root||Ap,oe=_.root||c.root||{},re=D.input||u.Input||Fp;return J=_e({},J,null!=(o=_.input)?o:c.input),Pe.jsxs(e.Fragment,{children:[!f&&Lp,Pe.jsxs(ne,_e({},oe,!rc(ne)&&{ownerState:_e({},ee,oe.ownerState)},{ref:n,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),E&&!K.disabled&&E(e)}},V,{className:vo(te.root,oe.className,s,P&&"MuiInputBase-readOnly"),children:[A,Pe.jsx(Cp.Provider,{value:null,children:Pe.jsx(re,_e({ownerState:ee,"aria-invalid":K.error,"aria-describedby":i,autoComplete:l,autoFocus:a,defaultValue:d,disabled:K.disabled,id:g,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:O,placeholder:j,readOnly:P,required:K.required,rows:I,value:$,onKeyDown:T,onKeyUp:N,type:F},J,!rc(re)&&{as:Q,ownerState:_e({},ee,J.ownerState)},{ref:B,className:vo(te.input,J.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!z){const t=e.target||q.current;if(null==t)throw new Error("production"!==process.env.NODE_ENV?"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.":dt(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):W(!0))}}))}),h,M?M(_e({},K,{startAdornment:A})):null]}))]})}));"production"!==process.env.NODE_ENV&&(Vp.propTypes={"aria-describedby":pe.string,autoComplete:pe.string,autoFocus:pe.bool,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["primary","secondary","error","info","success","warning"]),pe.string]),components:pe.shape({Input:pe.elementType,Root:pe.elementType}),componentsProps:pe.shape({input:pe.object,root:pe.object}),defaultValue:pe.any,disabled:pe.bool,disableInjectingGlobalStyles:pe.bool,endAdornment:pe.node,error:pe.bool,fullWidth:pe.bool,id:pe.string,inputComponent:ut,inputProps:pe.object,inputRef:Ct,margin:pe.oneOf(["dense","none"]),maxRows:pe.oneOfType([pe.number,pe.string]),minRows:pe.oneOfType([pe.number,pe.string]),multiline:pe.bool,name:pe.string,onBlur:pe.func,onChange:pe.func,onClick:pe.func,onFocus:pe.func,onInvalid:pe.func,onKeyDown:pe.func,onKeyUp:pe.func,placeholder:pe.string,readOnly:pe.bool,renderSuffix:pe.func,required:pe.bool,rows:pe.oneOfType([pe.number,pe.string]),size:pe.oneOfType([pe.oneOf(["medium","small"]),pe.string]),slotProps:pe.shape({input:pe.object,root:pe.object}),slots:pe.shape({input:pe.elementType,root:pe.elementType}),startAdornment:pe.node,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),type:pe.string,value:pe.any});const $p=Vp;const zp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},qp=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Hp=Ep($p)({fontSize:"inherit"});function Bp(t){const{id:n,value:o,field:r,colDef:i,hasFocus:l,inputProps:a,onValueChange:s}=t,u=De(t,qp),c="dateTime"===i.type,d=Sa(),p=e.useRef(),f=e.useMemo((()=>{let e,t;return e=null==o?null:o instanceof Date?o:new Date((o??"").toString()),t=null==e||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,c?16:10),{parsed:e,formatted:t}}),[o,c]),[h,m]=e.useState(f),g=(e=>{const{classes:t}=e;return en({root:["editInputCell"]},za,t)})({classes:Ra().classes}),b=e.useRef(!1),v=e.useCallback((e=>{if(""===e)return null;const[t,n]=e.split("T"),[o,r,i]=t.split("-"),l=new Date;if(l.setFullYear(Number(o),Number(r)-1,Number(i)),l.setHours(0,0,0,0),n){const[e,t]=n.split(":");l.setHours(Number(e),Number(t),0,0)}return l}),[]),y=e.useCallback((async e=>{const t=e.target.value,o=v(t);s&&await s(e,o),m({parsed:o,formatted:t}),d.current.setEditCellValue({id:n,field:r,value:o},e)}),[d,r,n,s,v]);e.useEffect((()=>{m((e=>{var t,n;return f.parsed!==e.parsed&&(null==(t=f.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?f:e}))}),[f]),jt((()=>{l&&p.current.focus()}),[l]);const w=d.current.unstable_getEditCellMeta(n,r);return Pe.jsx(Hp,_e({inputRef:e=>{if(p.current=e,null!=w&&w.unstable_updateValueOnRender&&!b.current){const e=p.current.value,t=v(e);m({parsed:t,formatted:e}),d.current.setEditCellValue({id:n,field:r,value:t}),b.current=!0}},fullWidth:!0,className:g.root,type:c?"datetime-local":"date",inputProps:_e({max:c?"9999-12-31T23:59":"9999-12-31"},a),value:h.formatted,onChange:y},u))}"production"!==process.env.NODE_ENV&&(Bp.propTypes={api:pe.object.isRequired,cellMode:pe.oneOf(["edit","view"]).isRequired,changeReason:pe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:pe.object.isRequired,field:pe.string.isRequired,formattedValue:pe.any,hasFocus:pe.bool.isRequired,id:pe.oneOfType([pe.number,pe.string]).isRequired,isEditable:pe.bool,isProcessingProps:pe.bool,isValidating:pe.bool,onValueChange:pe.func,row:pe.any.isRequired,rowNode:pe.object.isRequired,tabIndex:pe.oneOf([-1,0]).isRequired,value:pe.any});const Up=e=>Pe.jsx(Bp,_e({},e)),Wp=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Gp=Ep($p,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((({theme:e})=>_e({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}))),Kp=e.forwardRef(((t,n)=>{const o=Ra(),{id:r,value:i,field:l,colDef:a,hasFocus:s,debounceMs:u=200,isProcessingProps:c,onValueChange:d}=t,p=De(t,Wp),f=Sa(),h=e.useRef(),[m,g]=e.useState(i),b=(e=>{const{classes:t}=e;return en({root:["editInputCell"]},za,t)})(o),v=e.useCallback((async e=>{const t=e.target.value;d&&await d(e,t);const n=f.current.getColumn(l);let o=t;n.valueParser&&(o=n.valueParser(t,f.current.getCellParams(r,l))),g(o),f.current.setEditCellValue({id:r,field:l,value:o,debounceMs:u,unstable_skipValueParser:!0},e)}),[f,u,l,r,d]),y=f.current.unstable_getEditCellMeta(r,l);return e.useEffect((()=>{"debouncedSetEditCellValue"!==(null==y?void 0:y.changeReason)&&g(i)}),[y,i]),jt((()=>{s&&h.current.focus()}),[s]),Pe.jsx(Gp,_e({ref:n,inputRef:h,className:b.root,ownerState:o,fullWidth:!0,type:"number"===a.type?a.type:"text",value:m??"",onChange:v,endAdornment:c?Pe.jsx(o.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}));"production"!==process.env.NODE_ENV&&(Kp.propTypes={api:pe.object.isRequired,cellMode:pe.oneOf(["edit","view"]).isRequired,changeReason:pe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:pe.object.isRequired,debounceMs:pe.number,field:pe.string.isRequired,formattedValue:pe.any,hasFocus:pe.bool.isRequired,id:pe.oneOfType([pe.number,pe.string]).isRequired,isEditable:pe.bool,isProcessingProps:pe.bool,isValidating:pe.bool,onValueChange:pe.func,row:pe.any.isRequired,rowNode:pe.object.isRequired,tabIndex:pe.oneOf([-1,0]).isRequired,value:pe.any});const Yp=e=>"Escape"===e,Zp=e=>"Tab"===e,Xp=e=>" "===e;function Qp(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}const Jp=e=>(e=>"Home"===e||"End"===e)(e)||(e=>0===e.indexOf("Arrow"))(e)||(e=>0===e.indexOf("Page"))(e)||Xp(e),ef=e=>Zp(e)||Yp(e);function tf(e){return"singleSelect"===(null==e?void 0:e.type)}function nf(e,t,n){if(void 0===t)return;const o=t.find((t=>{const o=n(t);return String(o)===String(e)}));return n(o)}const of=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],rf=["MenuProps"];function lf(t){var n,o,r;const l=Ra(),{id:a,value:s,field:u,row:c,colDef:d,hasFocus:p,error:f,onValueChange:h,initialOpen:m=l.editMode===Ru.Cell,getOptionLabel:g,getOptionValue:b}=t,v=De(t,of),y=Sa(),w=e.useRef(),x=e.useRef(),[C,O]=e.useState(m),k=null!=(o=((null==(n=l.slotProps)?void 0:n.baseSelect)||{}).native)&&o,S=(null==(r=l.slotProps)?void 0:r.baseSelect)||{},{MenuProps:E}=S,R=De(S,rf);if(jt((()=>{var e;p&&(null==(e=x.current)||e.focus())}),[p]),!tf(d))return null;let T;if(T="function"==typeof(null==d?void 0:d.valueOptions)?null==d?void 0:d.valueOptions({id:a,row:c,field:u}):null==d?void 0:d.valueOptions,!T)return null;const N=b||d.getOptionValue,j=g||d.getOptionLabel;return T&&d?Pe.jsx(l.slots.baseSelect,_e({ref:w,inputRef:x,value:s,onChange:async e=>{if(!tf(d)||!T)return;O(!1);const t=nf(e.target.value,T,N);h&&await h(e,t),await y.current.setEditCellValue({id:a,field:u,value:t},e)},open:C,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||O(!0)},MenuProps:_e({onClose:(e,t)=>{if(l.editMode!==Ru.Row){if("backdropClick"===t||Yp(e.key)){const t=y.current.getCellParams(a,u);y.current.publishEvent("cellEditStop",_e({},t,{reason:Yp(e.key)?Mu.escapeKeyDown:Mu.cellFocusOut}))}}else O(!1)}},E),error:f,native:k,fullWidth:!0},v,R,{children:T.map((e=>{var t;const n=N(e);return i(l.slots.baseSelectOption,_e({},(null==(t=l.slotProps)?void 0:t.baseSelectOption)||{},{native:k,key:n,value:n}),j(e))}))})):null}"production"!==process.env.NODE_ENV&&(lf.propTypes={api:pe.object.isRequired,cellMode:pe.oneOf(["edit","view"]).isRequired,changeReason:pe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:pe.object.isRequired,field:pe.string.isRequired,formattedValue:pe.any,getOptionLabel:pe.func,getOptionValue:pe.func,hasFocus:pe.bool.isRequired,id:pe.oneOfType([pe.number,pe.string]).isRequired,initialOpen:pe.bool,isEditable:pe.bool,isProcessingProps:pe.bool,isValidating:pe.bool,onValueChange:pe.func,row:pe.any.isRequired,rowNode:pe.object.isRequired,tabIndex:pe.oneOf([-1,0]).isRequired,value:pe.any});const af=e.createContext({});"production"!==process.env.NODE_ENV&&(af.displayName="ListContext");const sf=af;function uf(e){return ln("MuiList",e)}an("MuiList",["root","padding","dense","subheader"]);const cf=["children","className","component","dense","disablePadding","subheader"],df=Ep("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]}})((({ownerState:e})=>_e({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),pf=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiList"}),{children:r,className:i,component:l="ul",dense:a=!1,disablePadding:s=!1,subheader:u}=o,c=De(o,cf),d=e.useMemo((()=>({dense:a})),[a]),p=_e({},o,{component:l,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return en({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},uf,t)})(p);return Pe.jsx(sf.Provider,{value:d,children:Pe.jsxs(df,_e({as:l,className:vo(f.root,i),ref:n,ownerState:p},c,{children:[u,r]}))})}));"production"!==process.env.NODE_ENV&&(pf.propTypes={children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,dense:pe.bool,disablePadding:pe.bool,subheader:pe.node,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const ff=pf,hf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function mf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bf(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function vf(e,t,n,o,r,i){let l=!1,a=r(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const t=!o&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&bf(a,i)&&!t)return a.focus(),!0;a=r(e,a,n)}return!1}const yf=e.forwardRef((function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:l,className:a,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=De(t,hf),f=e.useRef(null),h=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jt((()=>{r&&f.current.focus()}),[r]),e.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Wt(Rt(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=At(f,n);let g=-1;e.Children.forEach(l,((t,n)=>{e.isValidElement(t)?("production"!==process.env.NODE_ENV&&bt.isFragment(t)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),t.props.disabled||("selectedMenu"===d&&t.props.selected||-1===g)&&(g=n),g===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(g+=1,g>=l.length&&(g=-1))):g===n&&(g+=1,g>=l.length&&(g=-1))}));const b=e.Children.map(l,((t,n)=>{if(n===g){const n={};return i&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return Pe.jsx(ff,_e({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=f.current,n=e.key,o=Rt(t).activeElement;if("ArrowDown"===n)e.preventDefault(),vf(t,o,u,s,mf);else if("ArrowUp"===n)e.preventDefault(),vf(t,o,u,s,gf);else if("Home"===n)e.preventDefault(),vf(t,null,u,s,mf);else if("End"===n)e.preventDefault(),vf(t,null,u,s,gf);else if(1===n.length){const r=h.current,i=n.toLowerCase(),l=performance.now();r.keys.length>0&&(l-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&i!==r.keys[0]&&(r.repeating=!1)),r.lastTime=l,r.keys.push(i);const a=o&&!r.repeating&&bf(o,r);r.previousKeyMatched&&(a||vf(t,o,!1,s,mf,r))?e.preventDefault():r.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:b}))}));"production"!==process.env.NODE_ENV&&(yf.propTypes={autoFocus:pe.bool,autoFocusItem:pe.bool,children:pe.node,className:pe.string,disabledItemsFocusable:pe.bool,disableListWrap:pe.bool,onKeyDown:pe.func,variant:pe.oneOf(["menu","selectedMenu"])});const wf=yf,xf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cf(e){return`scale(${e}, ${e**2})`}const Of={entering:{opacity:1,transform:Cf(1)},entered:{opacity:1,transform:"none"}},kf=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Sf=e.forwardRef((function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:l,in:a,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Ke}=t,b=De(t,xf),v=e.useRef(),y=e.useRef(),w=mr(),x=e.useRef(null),C=At(x,i.ref,n),O=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=O(c),S=O(((e,t)=>{gr(e);const{duration:n,delay:o,easing:r}=br({style:h,timeout:m,easing:l},{mode:"enter"});let i;"auto"===m?(i=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=n,e.style.transition=[w.transitions.create("opacity",{duration:i,delay:o}),w.transitions.create("transform",{duration:kf?i:.666*i,delay:o,easing:r})].join(","),s&&s(e,t)})),E=O(u),R=O(f),T=O((e=>{const{duration:t,delay:n,easing:o}=br({style:h,timeout:m,easing:l},{mode:"exit"});let r;"auto"===m?(r=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=r):r=t,e.style.transition=[w.transitions.create("opacity",{duration:r,delay:n}),w.transitions.create("transform",{duration:kf?r:.666*r,delay:kf?n:n||.333*r,easing:o})].join(","),e.style.opacity=0,e.style.transform=Cf(.75),d&&d(e)})),N=O(p);return e.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Pe.jsx(g,_e({appear:r,in:a,nodeRef:x,onEnter:S,onEntered:E,onEntering:k,onExit:T,onExited:N,onExiting:R,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,y.current||0)),o&&o(x.current,e)},timeout:"auto"===m?null:m},b,{children:(t,n)=>e.cloneElement(i,_e({style:_e({opacity:0,transform:Cf(.75),visibility:"exited"!==t||a?void 0:"hidden"},Of[t],h,i.props.style),ref:C},n))}))}));"production"!==process.env.NODE_ENV&&(Sf.propTypes={addEndListener:pe.func,appear:pe.bool,children:st.isRequired,easing:pe.oneOfType([pe.shape({enter:pe.string,exit:pe.string}),pe.string]),in:pe.bool,onEnter:pe.func,onEntered:pe.func,onEntering:pe.func,onExit:pe.func,onExited:pe.func,onExiting:pe.func,style:pe.object,timeout:pe.oneOfType([pe.oneOf(["auto"]),pe.number,pe.shape({appear:pe.number,enter:pe.number,exit:pe.number})])}),Sf.muiSupportAuto=!0;const Ef=Sf;function Rf(e){return ln("MuiPaper",e)}an("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 Tf=["className","component","elevation","square","variant"],Nf=Ep("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return _e({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&_e({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${_o("#fff",zp(t.elevation))}, ${_o("#fff",zp(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),jf=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiPaper"}),{className:o,component:r="div",elevation:i=1,square:l=!1,variant:a="elevation"}=n,s=De(n,Tf),u=_e({},n,{component:r,elevation:i,square:l,variant:a}),c=(e=>{const{square:t,elevation:n,variant:o,classes:r}=e;return en({root:["root",o,!t&&"rounded","elevation"===o&&`elevation${n}`]},Rf,r)})(u);return"production"!==process.env.NODE_ENV&&void 0===mr().shadows[i]&&console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${i}]\` is defined.`].join("\n")),Pe.jsx(Nf,_e({as:r,ownerState:u,className:vo(c.root,o),ref:t},s))}));"production"!==process.env.NODE_ENV&&(jf.propTypes={children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,elevation:nt(Qt,(e=>{const{elevation:t,variant:n}=e;return t>0&&"outlined"===n?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null})),square:pe.bool,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOfType([pe.oneOf(["elevation","outlined"]),pe.string])});const Pf=jf,Mf=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],If=Ep(Xd,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_f=e.forwardRef((function(e,t){var n;const o=co(),r=Rp({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b,slots:v,slotProps:y}=r,w=De(r,Mf),x=null!=(n=null==v?void 0:v.root)?n:null==a?void 0:a.Root,C=_e({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b},w);return Pe.jsx(If,_e({as:l,direction:null==o?void 0:o.direction,slots:{root:x},slotProps:y??s},C,{ref:t}))}));"production"!==process.env.NODE_ENV&&(_f.propTypes={anchorEl:pe.oneOfType([xt,pe.object,pe.func]),children:pe.oneOfType([pe.node,pe.func]),component:pe.elementType,components:pe.shape({Root:pe.elementType}),componentsProps:pe.shape({root:pe.oneOfType([pe.func,pe.object])}),container:pe.oneOfType([xt,pe.func]),disablePortal:pe.bool,keepMounted:pe.bool,modifiers:pe.arrayOf(pe.shape({data:pe.object,effect:pe.func,enabled:pe.bool,fn:pe.func,name:pe.any,options:pe.object,phase:pe.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:pe.arrayOf(pe.string),requiresIfExists:pe.arrayOf(pe.string)})),open:pe.bool.isRequired,placement:pe.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:pe.shape({modifiers:pe.array,onFirstUpdate:pe.func,placement:pe.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:pe.oneOf(["absolute","fixed"])}),popperRef:Ct,slotProps:pe.shape({root:pe.oneOfType([pe.func,pe.object])}),slots:pe.shape({root:pe.elementType}),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),transition:pe.bool});const Df=_f,Af=["open","target","onClickAway","children","position","className","onExited"],Ff=e=>{const{classes:t}=e;return en({root:["menu"]},za,t)},Lf=Ep(Df,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((({theme:e})=>({zIndex:e.zIndex.modal,[`& .${qa.menuList}`]:{outline:0}}))),Vf={"bottom-start":"top left","bottom-end":"top right"};function $f(t){var n;const{open:o,target:r,onClickAway:i,children:l,position:a,className:s,onExited:u}=t,c=De(t,Af),d=Sa(),p=Ra(),f=Ff(p);e.useEffect((()=>{const e=o?"menuOpen":"menuClose";d.current.publishEvent(e,{target:r})}),[d,o,r]);const h=e=>t=>{e&&e(),u&&u(t)};return Pe.jsx(Lf,_e({as:p.slots.basePopper,className:vo(s,f.root),ownerState:p,open:o,anchorEl:r,transition:!0,placement:a},c,null==(n=p.slotProps)?void 0:n.basePopper,{children:({TransitionProps:e,placement:t})=>Pe.jsx(mc,{onClickAway:i,mouseEvent:"onMouseDown",children:Pe.jsx(Ef,_e({},e,{style:{transformOrigin:Vf[t]},onExited:h(null==e?void 0:e.onExited),children:Pe.jsx(Pf,{children:l})}))})}))}"production"!==process.env.NODE_ENV&&($f.propTypes={children:pe.node,onClickAway:pe.func.isRequired,onExited:pe.func,open:pe.bool.isRequired,position:pe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),target:xt});const zf=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"];function qf(t){var n;const{colDef:o,id:r,hasFocus:i,tabIndex:l,position:a="bottom-end",focusElementRef:s}=t,u=De(t,zf),[c,d]=e.useState(-1),[p,f]=e.useState(!1),h=Sa(),m=e.useRef(null),g=e.useRef(null),b=e.useRef(!1),v=e.useRef({}),y=mr(),w=It(),x=It(),C=Ra();if(!(e=>"function"==typeof e.getActions)(o))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const O=o.getActions(h.current.getRowParams(r)),k=O.filter((e=>!e.props.showInMenu)),S=O.filter((e=>e.props.showInMenu)),E=k.length+(S.length?1:0);e.useLayoutEffect((()=>{i||Object.entries(v.current).forEach((([e,t])=>{null==t||t.stop({},(()=>{delete v.current[e]}))}))}),[i]),e.useEffect((()=>{c<0||!m.current||c>=m.current.children.length||m.current.children[c].focus({preventScroll:!0})}),[c]),e.useEffect((()=>{i||(d(-1),b.current=!1)}),[i]),e.useImperativeHandle(s,(()=>({focus(){b.current||d(0)}})),[]),e.useEffect((()=>{c>=E&&d(E-1)}),[c,E]);const R=()=>{f(!1)},T=e=>t=>{v.current[e]=t},N=(e,t)=>n=>{d(e),b.current=!0,t&&t(n)};return Pe.jsxs("div",_e({role:"menu",ref:m,tabIndex:-1,className:qa.actionsCell,onKeyDown:e=>{if(E<=1)return;let t=c;"ArrowRight"===e.key?"rtl"===y.direction?t-=1:t+=1:"ArrowLeft"===e.key&&("rtl"===y.direction?t+=1:t-=1),!(t<0||t>=E)&&t!==c&&(e.preventDefault(),e.stopPropagation(),d(t))}},u,{children:[k.map(((t,n)=>e.cloneElement(t,{key:n,touchRippleRef:T(n),onClick:N(n,t.props.onClick),tabIndex:c===n?l:-1}))),S.length>0&&x&&Pe.jsx(C.slots.baseIconButton,_e({ref:g,id:x,"aria-label":h.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?w:void 0,role:"menuitem",size:"small",onClick:()=>{f(!0),d(E-1),b.current=!0},touchRippleRef:T(x),tabIndex:c===k.length?l:-1},null==(n=C.slotProps)?void 0:n.baseIconButton,{children:Pe.jsx(C.slots.moreActionsIcon,{fontSize:"small"})})),S.length>0&&Pe.jsx($f,{onClickAway:R,onClick:R,open:p,target:g.current,position:a,children:Pe.jsx(wf,{id:w,className:qa.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&R()},"aria-labelledby":x,variant:"menu",autoFocusItem:!0,children:S.map(((t,n)=>e.cloneElement(t,{key:n})))})})]}))}"production"!==process.env.NODE_ENV&&(qf.propTypes={api:pe.object,cellMode:pe.oneOf(["edit","view"]).isRequired,colDef:pe.object.isRequired,field:pe.string.isRequired,focusElementRef:pe.oneOfType([pe.func,pe.shape({current:pe.shape({focus:pe.func.isRequired})})]),formattedValue:pe.any,hasFocus:pe.bool.isRequired,id:pe.oneOfType([pe.number,pe.string]).isRequired,isEditable:pe.bool,position:pe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),row:pe.any.isRequired,rowNode:pe.object.isRequired,tabIndex:pe.oneOf([-1,0]).isRequired,value:pe.any});function Hf(t){const{className:n,classes:o,pulsate:r=!1,rippleX:i,rippleY:l,rippleSize:a,in:s,onExited:u,timeout:c}=t,[d,p]=e.useState(!1),f=vo(n,o.ripple,o.rippleVisible,r&&o.ripplePulsate),h={width:a,height:a,top:-a/2+l,left:-a/2+i},m=vo(o.child,d&&o.childLeaving,r&&o.childPulsate);return!s&&!d&&p(!0),e.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),Pe.jsx("span",{className:f,style:h,children:Pe.jsx("span",{className:m})})}"production"!==process.env.NODE_ENV&&(Hf.propTypes={classes:pe.object.isRequired,className:pe.string,in:pe.bool,onExited:pe.func,pulsate:pe.bool,rippleSize:pe.number,rippleX:pe.number,rippleY:pe.number,timeout:pe.number.isRequired});const Bf=an("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Uf=["center","classes","className"];let Wf,Gf,Kf,Yf,Zf=e=>e;const Xf=me(Wf||(Wf=Zf`
|
|
46
|
-
0% {
|
|
47
|
-
transform: scale(0);
|
|
48
|
-
opacity: 0.1;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
100% {
|
|
52
|
-
transform: scale(1);
|
|
53
|
-
opacity: 0.3;
|
|
54
|
-
}
|
|
55
|
-
`)),Qf=me(Gf||(Gf=Zf`
|
|
56
|
-
0% {
|
|
57
|
-
opacity: 1;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
100% {
|
|
61
|
-
opacity: 0;
|
|
62
|
-
}
|
|
63
|
-
`)),Jf=me(Kf||(Kf=Zf`
|
|
64
|
-
0% {
|
|
65
|
-
transform: scale(1);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
50% {
|
|
69
|
-
transform: scale(0.92);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
100% {
|
|
73
|
-
transform: scale(1);
|
|
74
|
-
}
|
|
75
|
-
`)),eh=Ep("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),th=Ep(Hf,{name:"MuiTouchRipple",slot:"Ripple"})(Yf||(Yf=Zf`
|
|
76
|
-
opacity: 0;
|
|
77
|
-
position: absolute;
|
|
78
|
-
|
|
79
|
-
&.${0} {
|
|
80
|
-
opacity: 0.3;
|
|
81
|
-
transform: scale(1);
|
|
82
|
-
animation-name: ${0};
|
|
83
|
-
animation-duration: ${0}ms;
|
|
84
|
-
animation-timing-function: ${0};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.${0} {
|
|
88
|
-
animation-duration: ${0}ms;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
& .${0} {
|
|
92
|
-
opacity: 1;
|
|
93
|
-
display: block;
|
|
94
|
-
width: 100%;
|
|
95
|
-
height: 100%;
|
|
96
|
-
border-radius: 50%;
|
|
97
|
-
background-color: currentColor;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
& .${0} {
|
|
101
|
-
opacity: 0;
|
|
102
|
-
animation-name: ${0};
|
|
103
|
-
animation-duration: ${0}ms;
|
|
104
|
-
animation-timing-function: ${0};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
& .${0} {
|
|
108
|
-
position: absolute;
|
|
109
|
-
/* @noflip */
|
|
110
|
-
left: 0px;
|
|
111
|
-
top: 0;
|
|
112
|
-
animation-name: ${0};
|
|
113
|
-
animation-duration: 2500ms;
|
|
114
|
-
animation-timing-function: ${0};
|
|
115
|
-
animation-iteration-count: infinite;
|
|
116
|
-
animation-delay: 200ms;
|
|
117
|
-
}
|
|
118
|
-
`),Bf.rippleVisible,Xf,550,(({theme:e})=>e.transitions.easing.easeInOut),Bf.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bf.child,Bf.childLeaving,Qf,550,(({theme:e})=>e.transitions.easing.easeInOut),Bf.childPulsate,Jf,(({theme:e})=>e.transitions.easing.easeInOut)),nh=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:l}=o,a=De(o,Uf),[s,u]=e.useState([]),c=e.useRef(0),d=e.useRef(null);e.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=e.useRef(!1),f=e.useRef(0),h=e.useRef(null),m=e.useRef(null);e.useEffect((()=>()=>{f.current&&clearTimeout(f.current)}),[]);const g=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:o,rippleSize:r,cb:l}=e;u((e=>[...e,Pe.jsx(th,{classes:{ripple:vo(i.ripple,Bf.ripple),rippleVisible:vo(i.rippleVisible,Bf.rippleVisible),ripplePulsate:vo(i.ripplePulsate,Bf.ripplePulsate),child:vo(i.child,Bf.child),childLeaving:vo(i.childLeaving,Bf.childLeaving),childPulsate:vo(i.childPulsate,Bf.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:r},c.current)])),c.current+=1,d.current=l}),[i]),b=e.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:l=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const a=l?null:m.current,s=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[r,g]),v=e.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=e.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(f.current=setTimeout((()=>{y(e,t)})));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return e.useImperativeHandle(n,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Pe.jsx(eh,_e({className:vo(Bf.root,i.root,l),ref:m},a,{children:Pe.jsx(tt,{component:null,exit:!0,children:s})}))}));"production"!==process.env.NODE_ENV&&(nh.propTypes={center:pe.bool,classes:pe.object,className:pe.string});const oh=nh;function rh(e){return ln("MuiButtonBase",e)}const ih=an("MuiButtonBase",["root","disabled","focusVisible"]),lh=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ah=Ep("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"},[`&.${ih.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sh=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:l,className:a,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:w,onKeyUp:x,onMouseDown:C,onMouseLeave:O,onMouseUp:k,onTouchEnd:S,onTouchMove:E,onTouchStart:R,tabIndex:T=0,TouchRippleProps:N,touchRippleRef:j,type:P}=o,M=De(o,lh),I=e.useRef(null),_=e.useRef(null),D=At(_,j),{isFocusVisibleRef:A,onFocus:F,onBlur:L,ref:V}=Ut(),[$,z]=e.useState(!1);u&&$&&z(!1),e.useImperativeHandle(r,(()=>({focusVisible:()=>{z(!0),I.current.focus()}})),[]);const[q,H]=e.useState(!1);e.useEffect((()=>{H(!0)}),[]);const B=q&&!c&&!u;function U(e,t,n=d){return Dt((o=>(t&&t(o),!n&&_.current&&_.current[e](o),!0)))}e.useEffect((()=>{$&&p&&!c&&q&&_.current.pulsate()}),[c,p,$,q]);const W=U("start",C),G=U("stop",g),K=U("stop",b),Y=U("stop",k),Z=U("stop",(e=>{$&&e.preventDefault(),O&&O(e)})),X=U("start",R),Q=U("stop",S),J=U("stop",E),ee=U("stop",(e=>{L(e),!1===A.current&&z(!1),h&&h(e)}),!1),te=Dt((e=>{I.current||(I.current=e.currentTarget),F(e),!0===A.current&&(z(!0),y&&y(e)),v&&v(e)})),ne=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},oe=e.useRef(!1),re=Dt((e=>{p&&!oe.current&&$&&_.current&&" "===e.key&&(oe.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=Dt((e=>{p&&" "===e.key&&_.current&&$&&!e.defaultPrevented&&(oe.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let le=s;"button"===le&&(M.href||M.to)&&(le=f);const ae={};"button"===le?(ae.type=void 0===P?"button":P,ae.disabled=u):(!M.href&&!M.to&&(ae.role="button"),u&&(ae["aria-disabled"]=u));const se=At(n,V,I);"production"!==process.env.NODE_ENV&&e.useEffect((()=>{B&&!_.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join("\n"))}),[B]);const ue=_e({},o,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:T,focusVisible:$}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,i=en({root:["root",t&&"disabled",n&&"focusVisible"]},rh,r);return n&&o&&(i.root+=` ${o}`),i})(ue);return Pe.jsxs(ah,_e({as:le,className:vo(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:re,onKeyUp:ie,onMouseDown:W,onMouseLeave:Z,onMouseUp:Y,onDragLeave:K,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:se,tabIndex:u?-1:T,type:P},ae,M,{children:[l,B?Pe.jsx(oh,_e({ref:D,center:i},N)):null]}))}));"production"!==process.env.NODE_ENV&&(sh.propTypes={action:Ct,centerRipple:pe.bool,children:pe.node,classes:pe.object,className:pe.string,component:ut,disabled:pe.bool,disableRipple:pe.bool,disableTouchRipple:pe.bool,focusRipple:pe.bool,focusVisibleClassName:pe.string,href:pe.any,LinkComponent:pe.elementType,onBlur:pe.func,onClick:pe.func,onContextMenu:pe.func,onDragLeave:pe.func,onFocus:pe.func,onFocusVisible:pe.func,onKeyDown:pe.func,onKeyUp:pe.func,onMouseDown:pe.func,onMouseLeave:pe.func,onMouseUp:pe.func,onTouchEnd:pe.func,onTouchMove:pe.func,onTouchStart:pe.func,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),tabIndex:pe.number,TouchRippleProps:pe.object,touchRippleRef:pe.oneOfType([pe.func,pe.shape({current:pe.shape({pulsate:pe.func.isRequired,start:pe.func.isRequired,stop:pe.func.isRequired})})]),type:pe.oneOfType([pe.oneOf(["button","reset","submit"]),pe.string])});const uh=sh;function ch(e){return ln("MuiDivider",e)}const dh=an("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ph=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],fh=Ep("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,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>_e({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:_o(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>_e({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>_e({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>_e({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>_e({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),hh=Ep("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>_e({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),mh=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiDivider"}),{absolute:o=!1,children:r,className:i,component:l=(r?"div":"hr"),flexItem:a=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==l?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=De(n,ph),h=_e({},n,{absolute:o,component:l,flexItem:a,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:l,textAlign:a,variant:s}=e;return en({root:["root",t&&"absolute",s,i&&"light","vertical"===l&&"vertical",r&&"flexItem",n&&"withChildren",n&&"vertical"===l&&"withChildrenVertical","right"===a&&"vertical"!==l&&"textAlignRight","left"===a&&"vertical"!==l&&"textAlignLeft"],wrapper:["wrapper","vertical"===l&&"wrapperVertical"]},ch,o)})(h);return Pe.jsx(fh,_e({as:l,className:vo(m.root,i),role:c,ref:t,ownerState:h},f,{children:r?Pe.jsx(hh,{className:m.wrapper,ownerState:h,children:r}):null}))}));"production"!==process.env.NODE_ENV&&(mh.propTypes={absolute:pe.bool,children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,flexItem:pe.bool,light:pe.bool,orientation:pe.oneOf(["horizontal","vertical"]),role:pe.string,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),textAlign:pe.oneOf(["center","left","right"]),variant:pe.oneOfType([pe.oneOf(["fullWidth","inset","middle"]),pe.string])});const gh=mh;function bh(e){return ln("MuiListItemIcon",e)}const vh=an("MuiListItemIcon",["root","alignItemsFlexStart"]),yh=["className"],wh=Ep("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>_e({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),xh=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiListItemIcon"}),{className:r}=o,i=De(o,yh),l=_e({},o,{alignItems:e.useContext(sf).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return en({root:["root","flex-start"===t&&"alignItemsFlexStart"]},bh,n)})(l);return Pe.jsx(wh,_e({className:vo(a.root,r),ownerState:l,ref:n},i))}));"production"!==process.env.NODE_ENV&&(xh.propTypes={children:pe.node,classes:pe.object,className:pe.string,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const Ch=xh;function Oh(e){return ln("MuiTypography",e)}an("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const kh=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Sh=Ep("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Ot(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>_e({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Eh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Rh={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Th=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiTypography"}),o=(e=>Rh[e]||e)(n.color),r=go(_e({},n,{color:o})),{align:i="inherit",className:l,component:a,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Eh}=r,f=De(r,kh),h=_e({},r,{align:i,color:o,className:l,component:a,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=a||(c?"p":p[d]||Eh[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:l}=e;return en({root:["root",i,"inherit"!==e.align&&`align${Ot(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]},Oh,l)})(h);return Pe.jsx(Sh,_e({as:m,ref:t,ownerState:h,className:vo(g.root,l)},f))}));"production"!==process.env.NODE_ENV&&(Th.propTypes={align:pe.oneOf(["center","inherit","justify","left","right"]),children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,gutterBottom:pe.bool,noWrap:pe.bool,paragraph:pe.bool,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOfType([pe.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),pe.string]),variantMapping:pe.object});const Nh=Th;function jh(e){return ln("MuiListItemText",e)}const Ph=an("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Mh=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ih=Ep("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ph.primary}`]:t.primary},{[`& .${Ph.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>_e({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),_h=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiListItemText"}),{children:r,className:i,disableTypography:l=!1,inset:a=!1,primary:s,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=o,p=De(o,Mh),{dense:f}=e.useContext(sf);let h=s??r,m=c;const g=_e({},o,{disableTypography:l,inset:a,primary:!!h,secondary:!!m,dense:f}),b=(e=>{const{classes:t,inset:n,primary:o,secondary:r,dense:i}=e;return en({root:["root",n&&"inset",i&&"dense",o&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},jh,t)})(g);return null!=h&&h.type!==Nh&&!l&&(h=Pe.jsx(Nh,_e({variant:f?"body2":"body1",className:b.primary,component:null!=u&&u.variant?void 0:"span",display:"block"},u,{children:h}))),null!=m&&m.type!==Nh&&!l&&(m=Pe.jsx(Nh,_e({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:m}))),Pe.jsxs(Ih,_e({className:vo(b.root,i),ownerState:g,ref:n},p,{children:[h,m]}))}));"production"!==process.env.NODE_ENV&&(_h.propTypes={children:pe.node,classes:pe.object,className:pe.string,disableTypography:pe.bool,inset:pe.bool,primary:pe.node,primaryTypographyProps:pe.object,secondary:pe.node,secondaryTypographyProps:pe.object,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const Dh=_h;function Ah(e){return ln("MuiMenuItem",e)}const Fh=an("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Lh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Vh=Ep(uh,{shouldForwardProp:e=>kp(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>_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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_o(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_o(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Fh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_o(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})`:_o(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Fh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Fh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dh.inset}`]:{marginLeft:52},[`& .${Ph.root}`]:{marginTop:0,marginBottom:0},[`& .${Ph.inset}`]:{paddingLeft:36},[`& .${vh.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&_e({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${vh.root} svg`]:{fontSize:"1.25rem"}})))),$h=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:l=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=o,f=De(o,Lh),h=e.useContext(sf),m=e.useMemo((()=>({dense:l||h.dense||!1,disableGutters:s})),[h.dense,l,s]),g=e.useRef(null);jt((()=>{r&&(g.current?g.current.focus():"production"!==process.env.NODE_ENV&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))}),[r]);const b=_e({},o,{dense:m.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:l}=e;return _e({},l,en({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},Ah,l))})(o),y=At(g,n);let w;return o.disabled||(w=void 0!==d?d:-1),Pe.jsx(sf.Provider,{value:m,children:Pe.jsx(Vh,_e({ref:y,role:c,tabIndex:w,component:i,focusVisibleClassName:vo(v.focusVisible,u),className:vo(v.root,p)},f,{ownerState:b,classes:v}))})}));"production"!==process.env.NODE_ENV&&($h.propTypes={autoFocus:pe.bool,children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,dense:pe.bool,disabled:pe.bool,disableGutters:pe.bool,divider:pe.bool,focusVisibleClassName:pe.string,role:pe.string,selected:pe.bool,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),tabIndex:pe.number});const zh=$h,qh=["label","icon","showInMenu","onClick"],Hh=e.forwardRef(((t,n)=>{const{label:o,icon:r,showInMenu:i,onClick:l}=t,a=De(t,qh),s=Ra(),u=e=>{l&&l(e)};var c;return i?Pe.jsxs(zh,_e({ref:n},a,{onClick:l,children:[r&&Pe.jsx(Ch,{children:r}),o]})):Pe.jsx(s.slots.baseIconButton,_e({ref:n,size:"small",role:"menuitem","aria-label":o},a,{onClick:u},null==(c=s.slotProps)?void 0:c.baseIconButton,{children:e.cloneElement(r,{fontSize:"small"})}))}));function Bh(e){return ln("MuiSkeleton",e)}"production"!==process.env.NODE_ENV&&(Hh.propTypes={icon:pe.element,label:pe.string.isRequired,showInMenu:pe.bool}),an("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Uh=["animation","className","component","height","style","variant","width"];let Wh,Gh,Kh,Yh,Zh=e=>e;const Xh=me(Wh||(Wh=Zh`
|
|
119
|
-
0% {
|
|
120
|
-
opacity: 1;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
50% {
|
|
124
|
-
opacity: 0.4;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
100% {
|
|
128
|
-
opacity: 1;
|
|
129
|
-
}
|
|
130
|
-
`)),Qh=me(Gh||(Gh=Zh`
|
|
131
|
-
0% {
|
|
132
|
-
transform: translateX(-100%);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
50% {
|
|
136
|
-
/* +0.5s of delay between each loop */
|
|
137
|
-
transform: translateX(100%);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
100% {
|
|
141
|
-
transform: translateX(100%);
|
|
142
|
-
}
|
|
143
|
-
`)),Jh=Ep("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const n=function(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}(e.shape.borderRadius)||"px",o=function(e){return parseFloat(e)}(e.shape.borderRadius);return _e({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:_o(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${o}${n}/${Math.round(o/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&ge(Kh||(Kh=Zh`
|
|
144
|
-
animation: ${0} 1.5s ease-in-out 0.5s infinite;
|
|
145
|
-
`),Xh)),(({ownerState:e,theme:t})=>"wave"===e.animation&&ge(Yh||(Yh=Zh`
|
|
146
|
-
position: relative;
|
|
147
|
-
overflow: hidden;
|
|
148
|
-
|
|
149
|
-
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
|
|
150
|
-
-webkit-mask-image: -webkit-radial-gradient(white, black);
|
|
151
|
-
|
|
152
|
-
&::after {
|
|
153
|
-
animation: ${0} 1.6s linear 0.5s infinite;
|
|
154
|
-
background: linear-gradient(
|
|
155
|
-
90deg,
|
|
156
|
-
transparent,
|
|
157
|
-
${0},
|
|
158
|
-
transparent
|
|
159
|
-
);
|
|
160
|
-
content: '';
|
|
161
|
-
position: absolute;
|
|
162
|
-
transform: translateX(-100%); /* Avoid flash during server-side hydration */
|
|
163
|
-
bottom: 0;
|
|
164
|
-
left: 0;
|
|
165
|
-
right: 0;
|
|
166
|
-
top: 0;
|
|
167
|
-
}
|
|
168
|
-
`),Qh,(t.vars||t).palette.action.hover))),em=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:r,component:i="span",height:l,style:a,variant:s="text",width:u}=n,c=De(n,Uh),d=_e({},n,{animation:o,component:i,variant:s,hasChildren:!!c.children}),p=(e=>{const{classes:t,variant:n,animation:o,hasChildren:r,width:i,height:l}=e;return en({root:["root",n,o,r&&"withChildren",r&&!i&&"fitContent",r&&!l&&"heightAuto"]},Bh,t)})(d);return Pe.jsx(Jh,_e({as:i,ref:t,className:vo(p.root,r),ownerState:d},c,{style:_e({width:u,height:l},a)}))}));"production"!==process.env.NODE_ENV&&(em.propTypes={animation:pe.oneOf(["pulse","wave",!1]),children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,height:pe.oneOfType([pe.number,pe.string]),style:pe.object,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOfType([pe.oneOf(["circular","rectangular","rounded","text"]),pe.string]),width:pe.oneOfType([pe.number,pe.string])});const tm=em,nm=["field","align","width","contentWidth"];function om(e){const{align:t,width:n,contentWidth:o}=e,r=De(e,nm),i=(e=>{const{align:t,classes:n}=e;return en({root:["cell","cellSkeleton",`cell--text${Ot(t)}`,"withBorderColor"]},za,n)})({classes:Ra().classes,align:t});return Pe.jsx("div",_e({className:i.root,style:{width:n}},r,{children:Pe.jsx(tm,{width:`${o}%`})}))}"production"!==process.env.NODE_ENV&&(om.propTypes={align:pe.string.isRequired,contentWidth:pe.number.isRequired,field:pe.string.isRequired,width:pe.number.isRequired});const rm={[`.${qa.columnSeparator}, .${qa["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},im={[`& .${qa.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${qa.menuIcon}`]:{width:"auto",visibility:"visible"}},lm=Ep("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${qa.autoHeight}`]:t.autoHeight},{[`&.${qa.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${qa["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${qa["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${qa["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${qa.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${qa["root--disableUserSelection"]} .${qa.cell}`]:t["root--disableUserSelection"]},{[`& .${qa.editBooleanCell}`]:t.editBooleanCell},{[`& .${qa["cell--editing"]}`]:t["cell--editing"]},{[`& .${qa["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${qa["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${qa["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${qa["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${qa.cell}`]:t.cell},{[`& .${qa["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${qa["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${qa["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${qa["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${qa["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${qa.cellContent}`]:t.cellContent},{[`& .${qa.cellCheckbox}`]:t.cellCheckbox},{[`& .${qa.cellSkeleton}`]:t.cellSkeleton},{[`& .${qa.checkboxInput}`]:t.checkboxInput},{[`& .${qa["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${qa["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${qa["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${qa["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${qa["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${qa["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${qa["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${qa["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${qa["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${qa.columnHeader}`]:t.columnHeader},{[`& .${qa.headerFilterRow}`]:t.headerFilterRow},{[`& .${qa.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${qa.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${qa.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${qa["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${qa["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${qa.columnSeparator}`]:t.columnSeparator},{[`& .${qa.filterIcon}`]:t.filterIcon},{[`& .${qa.iconSeparator}`]:t.iconSeparator},{[`& .${qa.menuIcon}`]:t.menuIcon},{[`& .${qa.menuIconButton}`]:t.menuIconButton},{[`& .${qa.menuOpen}`]:t.menuOpen},{[`& .${qa.menuList}`]:t.menuList},{[`& .${qa["row--editable"]}`]:t["row--editable"]},{[`& .${qa["row--editing"]}`]:t["row--editing"]},{[`& .${qa["row--dragging"]}`]:t["row--dragging"]},{[`& .${qa.row}`]:t.row},{[`& .${qa.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${qa.rowReorderCell}`]:t.rowReorderCell},{[`& .${qa["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${qa.sortIcon}`]:t.sortIcon},{[`& .${qa.withBorderColor}`]:t.withBorderColor},{[`& .${qa.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${qa.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${qa.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${qa["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})((({theme:e})=>{const t=function(e){return e.vars?e.vars.palette.TableCell.border:"light"===e.palette.mode?Ao(_o(e.palette.divider,1),.88):Do(_o(e.palette.divider,1),.68)}(e),n=e.shape.borderRadius;return _e({"--unstable_DataGrid-radius":"number"==typeof n?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:_o(e.palette.background.default,e.palette.action.disabledOpacity),flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${qa.autoHeight}`]:{height:"auto",[`& .${qa["row--lastVisible"]} .${qa.cell}`]:{borderBottomColor:"transparent"}},[`& .${qa["virtualScrollerContent--overflowed"]} .${qa["row--lastVisible"]} .${qa.cell}`]:{borderBottomColor:"transparent"},[`& .${qa.columnHeader}, & .${qa.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${qa.columnHeader}:focus-within, & .${qa.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:_o(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${qa.columnHeader}:focus, & .${qa.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${qa.columnHeaderCheckbox}, & .${qa.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${qa.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${qa["columnHeader--sorted"]} .${qa.iconButtonContainer}, & .${qa["columnHeader--filtered"]} .${qa.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${qa.columnHeader}:not(.${qa["columnHeader--sorted"]}) .${qa.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${qa.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${qa.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${qa["columnHeader--filledGroup"]} .${qa.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${qa["columnHeader--filledGroup"]}.${qa["columnHeader--showColumnBorder"]} .${qa.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${qa["columnHeader--filledGroup"]}.${qa["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${qa.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${qa.sortIcon}, & .${qa.filterIcon}`]:{fontSize:"inherit"},[`& .${qa["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${qa["columnHeader--alignCenter"]} .${qa.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${qa["columnHeader--alignRight"]} .${qa.columnHeaderDraggableContainer}, & .${qa["columnHeader--alignRight"]} .${qa.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${qa["columnHeader--alignCenter"]} .${qa.menuIcon}, & .${qa["columnHeader--alignRight"]} .${qa.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${qa["columnHeader--alignRight"]} .${qa.menuIcon}, & .${qa["columnHeader--alignRight"]} .${qa.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${qa["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${qa.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${qa.columnHeaders}:hover`]:rm,[`& .${qa.columnHeader}:hover`]:im,[`& .${qa.columnHeader}:not(.${qa["columnHeader--sorted"]}):hover .${qa.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${qa.columnHeaders}`]:rm,[`& .${qa.columnHeader}`]:im},[`& .${qa["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${qa["columnSeparator--sideRight"]}`]:{right:-12},[`& .${qa["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${qa["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${qa.iconSeparator}`]:{color:"inherit"},[`& .${qa.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${qa.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${qa.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_o(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:_o(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})`:_o(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${qa.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_o(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:_o(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})`:_o(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${qa["root--disableUserSelection"]} .${qa.cell}`]:{userSelect:"none"},[`& .${qa.row}:not(.${qa["row--dynamicHeight"]}) > .${qa.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${qa.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${qa.cell}.${qa["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${qa["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${qa["row--editing"]} .${qa.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${qa.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${qa.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${qa.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${qa.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${qa.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${qa["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${qa.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${qa.withBorderColor}`]:{borderColor:t},[`& .${qa["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${qa["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${qa["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${qa["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${qa["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${qa.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${qa.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${qa["columnHeader--dragging"]}, & .${qa["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${qa["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${qa.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${qa.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${qa.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${qa.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${qa.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})})),am=["children","className"],sm=e.forwardRef((function(t,n){const o=Ra(),{children:r,className:i}=t,l=De(t,am),a=Na(),s=$a(a,as),u=$a(a,hs),c=$a(a,Js),d=$a(a,iu),p=e.useRef(null),f=At(p,n),h=$a(a,Es),m=_e({},o,{density:c}),g=(e=>{const{autoHeight:t,density:n,classes:o}=e;return en({root:["root",t&&"autoHeight",`root--density${Ot(n)}`,"withBorderColor"]},za,o)})(m);a.current.register("public",{rootElementRef:p});const[b,v]=e.useState(!1);return jt((()=>{v(!0)}),[]),b?Pe.jsx(lm,_e({ref:f,className:vo(i,g.root),ownerState:m,role:"grid","aria-colcount":s.length,"aria-rowcount":d+1+h+u,"aria-multiselectable":!o.disableMultipleRowSelection},l,{children:r})):null}));"production"!==process.env.NODE_ENV&&(sm.propTypes={sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const um=["className"],cm=Ro("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),dm=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,um),r=Ra(),i=(e=>{const{classes:t}=e;return en({root:["footerContainer","withBorderColor"]},za,t)})(r);return Pe.jsx(cm,_e({ref:t,className:vo(i.root,n),ownerState:r},o))}));"production"!==process.env.NODE_ENV&&(dm.propTypes={sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const pm=["className"],fm=Ro("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),hm=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,pm),r=Ra(),i=(e=>{const{classes:t}=e;return en({root:["overlay"]},za,t)})(r);return Pe.jsx(fm,_e({ref:t,className:vo(i.root,n),ownerState:r},o))}));function mm(e){return ln("MuiBadge",e)}"production"!==process.env.NODE_ENV&&(hm.propTypes={sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const gm=an("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),bm=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],vm=Ep("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ym=Ep("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Ot(n.anchorOrigin.vertical)}${Ot(n.anchorOrigin.horizontal)}${Ot(n.overlap)}`],"default"!==n.color&&t[`color${Ot(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>_e({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gm.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gm.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gm.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gm.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${gm.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${gm.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${gm.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${gm.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),wm=e.forwardRef((function(e,t){var n,o,r,i,l,a;const s=Rp({props:e,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:c,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:b=!1,max:v=99,badgeContent:y,slots:w,slotProps:x,showZero:C=!1,variant:O="standard"}=s,k=De(s,bm),{badgeContent:S,invisible:E,max:R,displayValue:T}=function(e){const{badgeContent:t,invisible:n=!1,max:o=99,showZero:r=!1}=e,i=Gt({badgeContent:t,max:o});let l=n;!1===n&&0===t&&!r&&(l=!0);const{badgeContent:a,max:s=o}=l?i:e;return{badgeContent:a,invisible:l,max:s,displayValue:a&&Number(a)>s?`${s}+`:a}}({max:v,invisible:b,badgeContent:y,showZero:C}),N=Gt({anchorOrigin:u,color:g,overlap:m,variant:O,badgeContent:y}),j=E||null==S&&"dot"!==O,{color:P=g,overlap:M=m,anchorOrigin:I=u,variant:_=O}=j?N:s,D="dot"!==_?T:void 0,A=_e({},s,{badgeContent:S,invisible:j,max:R,displayValue:D,showZero:C,anchorOrigin:I,color:P,overlap:M,variant:_}),F=(e=>{const{color:t,anchorOrigin:n,invisible:o,overlap:r,variant:i,classes:l={}}=e;return en({root:["root"],badge:["badge",i,o&&"invisible",`anchorOrigin${Ot(n.vertical)}${Ot(n.horizontal)}`,`anchorOrigin${Ot(n.vertical)}${Ot(n.horizontal)}${Ot(r)}`,`overlap${Ot(r)}`,"default"!==t&&`color${Ot(t)}`]},mm,l)})(A),L=null!=(n=null!=(o=null==w?void 0:w.root)?o:p.Root)?n:vm,V=null!=(r=null!=(i=null==w?void 0:w.badge)?i:p.Badge)?r:ym,$=null!=(l=null==x?void 0:x.root)?l:f.root,z=null!=(a=null==x?void 0:x.badge)?a:f.badge,q=fc({elementType:L,externalSlotProps:$,externalForwardedProps:k,additionalProps:{ref:t,as:d},ownerState:A,className:vo(null==$?void 0:$.className,F.root,c)}),H=fc({elementType:V,externalSlotProps:z,ownerState:A,className:vo(F.badge,null==z?void 0:z.className)});return Pe.jsxs(L,_e({},q,{children:[h,Pe.jsx(V,_e({},H,{children:D}))]}))}));"production"!==process.env.NODE_ENV&&(wm.propTypes={anchorOrigin:pe.shape({horizontal:pe.oneOf(["left","right"]).isRequired,vertical:pe.oneOf(["bottom","top"]).isRequired}),badgeContent:pe.node,children:pe.node,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["default","primary","secondary","error","info","success","warning"]),pe.string]),component:pe.elementType,components:pe.shape({Badge:pe.elementType,Root:pe.elementType}),componentsProps:pe.shape({badge:pe.oneOfType([pe.func,pe.object]),root:pe.oneOfType([pe.func,pe.object])}),invisible:pe.bool,max:pe.number,overlap:pe.oneOf(["circular","rectangular"]),showZero:pe.bool,slotProps:pe.shape({badge:pe.oneOfType([pe.func,pe.object]),root:pe.oneOfType([pe.func,pe.object])}),slots:pe.shape({badge:pe.elementType,root:pe.elementType}),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOfType([pe.oneOf(["dot","standard"]),pe.string])});const xm=wm,Cm=["className"],Om=Ro("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})((()=>({display:"flex",visibility:"hidden",width:0}))),km=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,Cm),r=Ra(),i=(e=>{const{classes:t}=e;return en({root:["iconButtonContainer"]},za,t)})(r);return Pe.jsx(Om,_e({ref:t,className:vo(i.root,n),ownerState:r},o))}));function Sm(e){var t;const{direction:n,index:o,sortingOrder:r}=e,i=Sa(),l=Ra(),a=(e=>{const{classes:t}=e;return en({icon:["sortIcon"]},za,t)})(_e({},e,{classes:l.classes})),s=function(e,t,n,o){let r;const i={};return"asc"===t?r=e.columnSortedAscendingIcon:"desc"===t?r=e.columnSortedDescendingIcon:(r=e.columnUnsortedIcon,i.sortingOrder=o),r?Pe.jsx(r,_e({fontSize:"small",className:n},i)):null}(l.slots,n,a.icon,r);if(!s)return null;const u=Pe.jsx(l.slots.baseIconButton,_e({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},null==(t=l.slotProps)?void 0:t.baseIconButton,{children:s}));return Pe.jsxs(km,{children:[null!=o&&Pe.jsx(xm,{badgeContent:o,color:"default",children:u}),null==o&&u]})}const Em=e.memo(Sm);"production"!==process.env.NODE_ENV&&(Sm.propTypes={direction:pe.oneOf(["asc","desc"]),index:pe.number,sortingOrder:pe.arrayOf(pe.oneOf(["asc","desc"])).isRequired});const Rm=e.memo((t=>{var n,o;const{colDef:r,open:i,columnMenuId:l,columnMenuButtonId:a,iconButtonRef:s}=t,u=Sa(),c=Ra(),d=(e=>{const{classes:t,open:n}=e;return en({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},za,t)})(_e({},t,{classes:c.classes})),p=e.useCallback((e=>{e.preventDefault(),e.stopPropagation(),u.current.toggleColumnMenu(r.field)}),[u,r.field]);return Pe.jsx("div",{className:d.root,children:Pe.jsx(c.slots.baseTooltip,_e({title:u.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},null==(n=c.slotProps)?void 0:n.baseTooltip,{children:Pe.jsx(c.slots.baseIconButton,_e({ref:s,tabIndex:-1,className:d.button,"aria-label":u.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-haspopup":"menu","aria-expanded":i,"aria-controls":i?l:void 0,id:a},null==(o=c.slotProps)?void 0:o.baseIconButton,{children:Pe.jsx(c.slots.columnMenuIcon,{fontSize:"small"})}))}))})}));function Tm({columnMenuId:t,columnMenuButtonId:n,ContentComponent:o,contentComponentProps:r,field:i,open:l,target:a,onExited:s}){const u=Sa(),c=u.current.getColumn(i),d=e.useCallback((e=>{e.stopPropagation(),null!=a&&a.contains(e.target)||u.current.hideColumnMenu()}),[u,a]);return a&&c?Pe.jsx($f,{placement:"bottom-"+("right"===c.align?"start":"end"),open:l,target:a,onClickAway:d,onExited:s,children:Pe.jsx(o,_e({colDef:c,hideMenu:d,open:l,id:t,labelledby:n},r))}):null}"production"!==process.env.NODE_ENV&&(Tm.propTypes={columnMenuButtonId:pe.string,columnMenuId:pe.string,ContentComponent:pe.elementType.isRequired,contentComponentProps:pe.any,field:pe.string.isRequired,onExited:pe.func,open:pe.bool.isRequired,target:xt});const Nm=["className"],jm=Ro("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),Pm=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,Nm),r=Ra(),i=(e=>{const{classes:t}=e;return en({root:["columnHeaderTitle"]},za,t)})(r);return Pe.jsx(jm,_e({ref:t,className:vo(i.root,n),ownerState:r},o))}));function Mm(t){var n;const{label:o,description:r}=t,i=Ra(),l=e.useRef(null),[a,s]=e.useState(""),u=e.useCallback((()=>{if(!r&&null!=l&&l.current){const e=function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(l.current);s(e?o:"")}}),[r,o]);return Pe.jsx(i.slots.baseTooltip,_e({title:r||a},null==(n=i.slotProps)?void 0:n.baseTooltip,{children:Pe.jsx(Pm,{onMouseOver:u,ref:l,children:o})}))}"production"!==process.env.NODE_ENV&&(Mm.propTypes={columnWidth:pe.number.isRequired,description:pe.node,label:pe.string.isRequired});const Im=["resizable","resizing","height","side"];var _m=function(e){return e.Left="left",e.Right="right",e}(_m||{});function Dm(t){const{height:n,side:o=_m.Right}=t,r=De(t,Im),i=Ra(),l=(e=>{const{resizable:t,resizing:n,classes:o,side:r}=e;return en({root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",r&&`columnSeparator--side${Ot(r)}`],icon:["iconSeparator"]},za,o)})(_e({},t,{side:o,classes:i.classes})),a=e.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return Pe.jsx("div",_e({className:l.root,style:{minHeight:n,opacity:i.showColumnVerticalBorder?0:1}},r,{onClick:a,children:Pe.jsx(i.slots.columnResizeIcon,{className:l.icon})}))}const Am=e.memo(Dm);"production"!==process.env.NODE_ENV&&(Dm.propTypes={height:pe.number.isRequired,resizable:pe.bool.isRequired,resizing:pe.bool.isRequired,side:pe.oneOf(["left","right"])});const Fm=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],Lm=e.forwardRef((function(t,n){const{classes:o,columnMenuOpen:r,colIndex:i,height:l,isResizing:a,sortDirection:s,hasFocus:u,tabIndex:c,separatorSide:d,isDraggable:p,headerComponent:f,description:h,width:m,columnMenuIconButton:g=null,columnMenu:b=null,columnTitleIconButtons:v=null,headerClassName:y,label:w,resizable:x,draggableContainerProps:C,columnHeaderSeparatorProps:O}=t,k=De(t,Fm),S=Na(),E=Ra(),R=e.useRef(null),[T,N]=e.useState(r),j=At(R,n);let P="none";return null!=s&&(P="asc"===s?"ascending":"descending"),e.useEffect((()=>{T||N(r)}),[T,r]),e.useLayoutEffect((()=>{const e=S.current.state.columnMenu;if(u&&!e.open){const e=R.current.querySelector('[tabindex="0"]')||R.current;null==e||e.focus(),S.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[S,u]),Pe.jsxs("div",_e({ref:j,className:vo(o.root,y),style:{height:l,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:c,"aria-colindex":i+1,"aria-sort":P,"aria-label":null==f?w:void 0},k,{children:[Pe.jsxs("div",_e({className:o.draggableContainer,draggable:p},C,{children:[Pe.jsxs("div",{className:o.titleContainer,children:[Pe.jsx("div",{className:o.titleContainerContent,children:void 0!==f?f:Pe.jsx(Mm,{label:w,description:h,columnWidth:m})}),v]}),g]})),Pe.jsx(Am,_e({resizable:!E.disableColumnResize&&!!x,resizing:a,height:l,side:d},O)),b]}))}));function Vm(t){var n,o,r,i;const{colDef:l,columnMenuOpen:a,colIndex:s,headerHeight:u,isResizing:c,sortDirection:d,sortIndex:p,filterItemsCounter:f,hasFocus:h,tabIndex:m,disableReorder:g,separatorSide:b}=t,v=Na(),y=Ra(),w=e.useRef(null),x=It(),C=It(),O=e.useRef(null),[k,S]=e.useState(a),E=e.useMemo((()=>!y.disableColumnReorder&&!g&&!l.disableReorder),[y.disableColumnReorder,g,l.disableReorder]);let R;l.renderHeader&&(R=l.renderHeader(v.current.getColumnHeaderParams(l.field)));const T=(e=>{const{colDef:t,classes:n,isDragging:o,sortDirection:r,showRightBorder:i,filterItemsCounter:l}=e,a=null!=r,s=null!=l&&l>0,u="number"===t.type;return en({root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",o&&"columnHeader--moving",a&&"columnHeader--sorted",s&&"columnHeader--filtered",u&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},za,n)})(_e({},t,{classes:y.classes,showRightBorder:y.showColumnVerticalBorder})),N=e.useCallback((e=>t=>{t.currentTarget.contains(t.target)&&v.current.publishEvent(e,v.current.getColumnHeaderParams(l.field),t)}),[v,l.field]),j=e.useMemo((()=>({onClick:N("columnHeaderClick"),onDoubleClick:N("columnHeaderDoubleClick"),onMouseOver:N("columnHeaderOver"),onMouseOut:N("columnHeaderOut"),onMouseEnter:N("columnHeaderEnter"),onMouseLeave:N("columnHeaderLeave"),onKeyDown:N("columnHeaderKeyDown"),onFocus:N("columnHeaderFocus"),onBlur:N("columnHeaderBlur")})),[N]),P=e.useMemo((()=>E?{onDragStart:N("columnHeaderDragStart"),onDragEnter:N("columnHeaderDragEnter"),onDragOver:N("columnHeaderDragOver"),onDragEnd:N("columnHeaderDragEnd")}:{}),[E,N]),M=e.useMemo((()=>({onMouseDown:N("columnSeparatorMouseDown")})),[N]);e.useEffect((()=>{k||S(a)}),[k,a]);const I=e.useCallback((()=>{S(!1)}),[]),_=!y.disableColumnMenu&&!l.disableColumnMenu&&Pe.jsx(Rm,{colDef:l,columnMenuId:x,columnMenuButtonId:C,open:k,iconButtonRef:O}),D=Pe.jsx(Tm,{columnMenuId:x,columnMenuButtonId:C,field:l.field,open:a,target:O.current,ContentComponent:y.slots.columnMenu,contentComponentProps:null==(n=y.slotProps)?void 0:n.columnMenu,onExited:I}),A=null!=(o=l.sortingOrder)?o:y.sortingOrder,F=Pe.jsxs(e.Fragment,{children:[!y.disableColumnFilter&&Pe.jsx(y.slots.columnHeaderFilterIconButton,_e({field:l.field,counter:f},null==(r=y.slotProps)?void 0:r.columnHeaderFilterIconButton)),l.sortable&&!l.hideSortIcons&&Pe.jsx(Em,{direction:d,index:p,sortingOrder:A})]});e.useLayoutEffect((()=>{const e=v.current.state.columnMenu;if(h&&!e.open){const e=w.current.querySelector('[tabindex="0"]')||w.current;null==e||e.focus(),v.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[v,h]);const L="function"==typeof l.headerClassName?l.headerClassName({field:l.field,colDef:l}):l.headerClassName,V=null!=(i=l.headerName)?i:l.field;return Pe.jsx(Lm,_e({ref:w,classes:T,columnMenuOpen:a,colIndex:s,height:u,isResizing:c,sortDirection:d,hasFocus:h,tabIndex:m,separatorSide:b,isDraggable:E,headerComponent:R,description:l.description,elementId:l.field,width:l.computedWidth,columnMenuIconButton:_,columnTitleIconButtons:F,headerClassName:L,label:V,resizable:!y.disableColumnResize&&!!l.resizable,"data-field":l.field,columnMenu:D,draggableContainerProps:P,columnHeaderSeparatorProps:M},j))}"production"!==process.env.NODE_ENV&&(Vm.propTypes={colDef:pe.object.isRequired,colIndex:pe.number.isRequired,columnMenuOpen:pe.bool.isRequired,disableReorder:pe.bool,filterItemsCounter:pe.number,hasFocus:pe.bool,headerHeight:pe.number.isRequired,isDragging:pe.bool.isRequired,isResizing:pe.bool.isRequired,separatorSide:pe.oneOf(["left","right"]),sortDirection:pe.oneOf(["asc","desc"]),sortIndex:pe.number,tabIndex:pe.oneOf([-1,0]).isRequired});const $m=()=>({items:[],logicOperator:ju.And,quickFilterValues:[],quickFilterLogicOperator:ju.And});class zm{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const o=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,o)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class qm{constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}var Hm=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Hm||{});class Bm{}const Um=function(t){let n=0;return function(o,r,i,l){null===t.registry&&(t.registry=typeof FinalizationRegistry<"u"?new qm:new zm);const[a]=e.useState(new Bm),s=e.useRef(null),u=e.useRef();u.current=i;const c=e.useRef(null);if(!s.current&&u.current){const e=(e,t,n)=>{var o;t.defaultMuiPrevented||(null==(o=u.current)||o.call(u,e,t,n))};s.current=o.current.subscribeEvent(r,e,l),n+=1,c.current={cleanupToken:n},t.registry.register(a,(()=>{var e;null==(e=s.current)||e.call(s),s.current=null,c.current=null}),c.current)}else!u.current&&s.current&&(s.current(),s.current=null,c.current&&(t.registry.unregister(c.current),c.current=null));e.useEffect((()=>{if(!s.current&&u.current){const e=(e,t,n)=>{var o;t.defaultMuiPrevented||(null==(o=u.current)||o.call(u,e,t,n))};s.current=o.current.subscribeEvent(r,e,l)}return c.current&&t.registry&&(t.registry.unregister(c.current),c.current=null),()=>{var e;null==(e=s.current)||e.call(s),s.current=null}}),[o,r,l])}}({registry:null}),Wm={isFirst:!0};function Gm(e,t,n){Um(e,t,n,Wm)}function Km(t,n){const o=e.useRef(null);if(o.current)return o.current;const r=t.current.getLogger(n);return o.current=r,r}function Ym(e){return"function"==typeof e}function Zm(e){return"object"==typeof e&&null!==e}function Xm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Qm=(e,t,n)=>Math.max(t,Math.min(n,e));function Jm(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o+=1)if(!Jm(e[o],t[o]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;for(let e=0;e<n.length;e+=1){const o=n[e];if(!Jm(o[1],t.get(o[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o+=1)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),o=n.length;if(o!==Object.keys(t).length)return!1;for(let e=0;e<o;e+=1)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let r=0;r<o;r+=1){const o=n[r];if(!Jm(e[o],t[o]))return!1}return!0}return e!=e&&t!=t}function eg(e,t,n){const o=function(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296}}(e);return()=>t+(n-t)*o()}function tg(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}const ng=t=>{const n=e.useRef(!0);n.current&&(n.current=!1,t())},og=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,rg=Ma(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),ig=e=>({page:0,pageSize:e?0:100}),lg=(e,t)=>{if(t===Hm.DataGrid&&e>100)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"))},ag=e=>e.pagination,sg=es(ag,(e=>e.paginationModel)),ug=es(sg,(e=>e.page)),cg=es(sg,(e=>e.pageSize));es(sg,zs,((e,t)=>og(t,e.pageSize)));const dg=ts(sg,ys,Cs,Ds,Vs,((e,t,n,o,r)=>{const i=r.length,l=Math.min(e.pageSize*e.page,i-1),a=Math.min(l+e.pageSize-1,i-1);if(-1===l||-1===a)return null;if(n<2)return{firstRowIndex:l,lastRowIndex:a};const s=r[l],u=a-l+1,c=o.findIndex((e=>e.id===s.id));let d=c,p=0;for(;d<o.length&&p<=u;){var f;const e=null==(f=t[o[d].id])?void 0:f.depth;void 0===e?d+=1:((p<u||e>0)&&(d+=1),0===e&&(p+=1))}return{firstRowIndex:c,lastRowIndex:d-1}})),pg=ts(Ds,dg,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),fg=ts(As,dg,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),hg=e=>e.preferencePanel;var mg=function(e){return e.filters="filters",e.columns="columns",e}(mg||{});const gg=e=>e.rowsMeta,bg=e=>e.rowSelection,vg=es(bg,(e=>e.length)),yg=ts(bg,bs,((e,t)=>new Map(e.map((e=>[e,t[e]]))))),wg=ts(bg,(e=>e.reduce(((e,t)=>(e[t]=t,e)),{}))),xg=Ma(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Cg=(e,t)=>t&&e.length>1?(xg(),[e[0]]):e,Og=(e,t)=>n=>_e({},n,{sorting:_e({},n.sorting,{sortModel:Cg(e,t)})}),kg=(e,t)=>{const n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},Sg=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,Eg=new Intl.Collator,Rg=(e,t)=>{const n=Sg(e,t);return null!==n?n:Number(e)-Number(t)},Tg=(e,t)=>{const n=Sg(e,t);return null!==n?n:e>t?1:e<t?-1:0},Ng=e=>e.headerFiltering,jg=es(Ng,(e=>e.editing)),Pg=es(Ng,(e=>e.menuOpen));function Mg(t){var n,o;const{counter:r,field:i,onClick:l}=t,a=Sa(),s=Ra(),u=(e=>{const{classes:t}=e;return en({icon:["filterIcon"]},za,t)})(_e({},t,{classes:s.classes})),c=$a(a,hg),d=It(),p=It(),f=e.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=hg(a.current.state);t&&n===mg.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,p,d),l&&l(a.current.getColumnHeaderParams(i),e)}),[a,i,l,p,d]);if(!r)return null;const h=c.open&&c.labelId===d,m=Pe.jsx(s.slots.baseIconButton,_e({id:d,onClick:f,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?p:void 0},null==(n=s.slotProps)?void 0:n.baseIconButton,{children:Pe.jsx(s.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return Pe.jsx(s.slots.baseTooltip,_e({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},null==(o=s.slotProps)?void 0:o.baseTooltip,{children:Pe.jsxs(km,{children:[r>1&&Pe.jsx(xm,{badgeContent:r,color:"default",children:m}),1===r&&m]})}))}"production"!==process.env.NODE_ENV&&(Mg.propTypes={counter:pe.number,field:pe.string.isRequired,onClick:pe.func});const Ig=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],_g=e.forwardRef((function(t,n){var o;const{field:r,id:i,value:l,rowNode:a,hasFocus:s,tabIndex:u}=t,c=De(t,Ig),d=Sa(),p=Ra(),f=(e=>{const{classes:t}=e;return en({root:["checkboxInput"]},za,t)})({classes:p.classes}),h=e.useRef(null),m=e.useRef(null),g=At(h,n),b=d.current.getCellElement(i,r);e.useLayoutEffect((()=>{0===u&&b&&(b.tabIndex=-1)}),[b,u]),e.useEffect((()=>{if(s){var e;const t=null==(e=h.current)?void 0:e.querySelector("input");null==t||t.focus({preventScroll:!0})}else m.current&&m.current.stop({})}),[s]);const v=e.useCallback((e=>{Xp(e.key)&&e.stopPropagation()}),[]);if("footer"===a.type||"pinnedRow"===a.type)return null;const y=d.current.isRowSelectable(i),w=d.current.getLocaleText(l?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return Pe.jsx(p.slots.baseCheckbox,_e({ref:g,tabIndex:u,checked:l,onChange:e=>{const t={value:e.target.checked,id:i};d.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:f.root,inputProps:{"aria-label":w},onKeyDown:v,disabled:!y,touchRippleRef:m},null==(o=p.slotProps)?void 0:o.baseCheckbox,c))}));"production"!==process.env.NODE_ENV&&(_g.propTypes={api:pe.object.isRequired,cellMode:pe.oneOf(["edit","view"]).isRequired,colDef:pe.object.isRequired,field:pe.string.isRequired,focusElementRef:pe.oneOfType([pe.func,pe.shape({current:pe.shape({focus:pe.func.isRequired})})]),formattedValue:pe.any,hasFocus:pe.bool.isRequired,id:pe.oneOfType([pe.number,pe.string]).isRequired,isEditable:pe.bool,row:pe.any.isRequired,rowNode:pe.object.isRequired,tabIndex:pe.oneOf([-1,0]).isRequired,value:pe.any});const Dg=_g,Ag=["field","colDef"],Fg=e.forwardRef((function(t,n){var o;const r=De(t,Ag),[,i]=e.useState(!1),l=Sa(),a=Ra(),s=(e=>{const{classes:t}=e;return en({root:["checkboxInput"]},za,t)})({classes:a.classes}),u=$a(l,Zs),c=$a(l,bg),d=$a(l,As),p=$a(l,fg),f=e.useMemo((()=>"function"!=typeof a.isRowSelectable?c:c.filter((e=>!!l.current.getRow(e)&&a.isRowSelectable(l.current.getRowParams(e))))),[l,a.isRowSelectable,c]),h=e.useMemo((()=>(a.pagination&&a.checkboxSelectionVisibleOnly?p:d).reduce(((e,t)=>(e[t]=!0,e)),{})),[a.pagination,a.checkboxSelectionVisibleOnly,p,d]),m=e.useMemo((()=>f.filter((e=>h[e])).length),[f,h]),g=m>0&&m<Object.keys(h).length,b=m>0,v=null!==u&&u.field===t.field?0:-1;e.useLayoutEffect((()=>{const e=l.current.getColumnHeaderElement(t.field);0===v&&e&&(e.tabIndex=-1)}),[v,l,t.field]);const y=e.useCallback((e=>{" "===e.key&&l.current.publishEvent("headerSelectionCheckboxChange",{value:!b})}),[l,b]),w=e.useCallback((()=>{i((e=>!e))}),[]);e.useEffect((()=>l.current.subscribeEvent("rowSelectionChange",w)),[l,w]);const x=l.current.getLocaleText(b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return Pe.jsx(a.slots.baseCheckbox,_e({ref:n,indeterminate:g,checked:b,onChange:e=>{const t={value:e.target.checked};l.current.publishEvent("headerSelectionCheckboxChange",t)},className:s.root,inputProps:{"aria-label":x},tabIndex:v,onKeyDown:y},null==(o=a.slotProps)?void 0:o.baseCheckbox,r))}));function Lg(e){return ln("MuiSvgIcon",e)}"production"!==process.env.NODE_ENV&&(Fg.propTypes={colDef:pe.object.isRequired,field:pe.string.isRequired}),an("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Vg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$g=Ep("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ot(n.color)}`],t[`fontSize${Ot(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(o=n.create)?void 0:o.call(n,"fill",{duration:null==(r=e.transitions)||null==(i=r.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(l=e.typography)||null==(a=l.pxToRem)?void 0:a.call(l,20))||"1.25rem",medium:(null==(s=e.typography)||null==(u=s.pxToRem)?void 0:u.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(b=(e.vars||e).palette)||null==(v=b.action)?void 0:v.disabled,inherit:void 0}[t.color]}})),zg=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:l="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=o,f=De(o,Vg),h=e.isValidElement(r)&&"svg"===r.type,m=_e({},o,{color:l,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h}),g={};c||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:n,classes:o}=e;return en({root:["root","inherit"!==t&&`color${Ot(t)}`,`fontSize${Ot(n)}`]},Lg,o)})(m);return Pe.jsxs($g,_e({as:a,className:vo(b.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,f,h&&r.props,{ownerState:m,children:[h?r.props.children:r,d?Pe.jsx("title",{children:d}):null]}))}));"production"!==process.env.NODE_ENV&&(zg.propTypes={children:pe.node,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),pe.string]),component:pe.elementType,fontSize:pe.oneOfType([pe.oneOf(["inherit","large","medium","small"]),pe.string]),htmlColor:pe.string,inheritViewBox:pe.bool,shapeRendering:pe.string,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),titleAccess:pe.string,viewBox:pe.string}),zg.muiName="SvgIcon";const qg=zg;function Hg(t,n){function o(e,o){return Pe.jsx(qg,_e({"data-testid":`${n}Icon`,ref:o},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(o.displayName=`${n}Icon`),o.muiName=qg.muiName,e.memo(e.forwardRef(o))}const Bg=Hg(Pe.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Ug=Hg(Pe.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),Wg=Hg(Pe.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),Gg=Hg(Pe.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Kg=Hg(Pe.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Yg=Hg(Pe.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Zg=Hg(Pe.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Hg(Pe.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Hg(Pe.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const Xg=Hg(Pe.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),Qg=Hg(Pe.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),Jg=Hg(Pe.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),eb=Hg(Pe.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),tb=Hg(Pe.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),nb=Hg(Pe.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),ob=Hg(Pe.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"),rb=Hg(Pe.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),ib=Hg(Pe.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),lb=Hg(Pe.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),ab=Hg(Pe.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),sb=Hg(Pe.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),ub=Hg(Pe.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),cb=Hg(Pe.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),db=Hg(Pe.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),pb=Hg(Pe.jsx("g",{children:Pe.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),fb=Hg(Pe.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"}),"Clear");Hg(Pe.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const hb=Hg(Pe.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),mb=["hideMenu","colDef","id","labelledby","className","children","open"],gb=Ep(wf)((()=>({minWidth:248}))),bb=e.forwardRef((function(t,n){const{hideMenu:o,id:r,labelledby:i,className:l,children:a,open:s}=t,u=De(t,mb),c=e.useCallback((e=>{Zp(e.key)&&e.preventDefault(),ef(e.key)&&o(e)}),[o]);return Pe.jsx(gb,_e({id:r,ref:n,className:vo(qa.menuList,l),"aria-labelledby":i,onKeyDown:c,autoFocus:s},u,{children:a}))}));"production"!==process.env.NODE_ENV&&(bb.propTypes={colDef:pe.object.isRequired,hideMenu:pe.func.isRequired,id:pe.string,labelledby:pe.string,open:pe.bool.isRequired});const vb=["displayOrder"];function yb(t){const{colDef:n,onClick:o}=t,r=Sa(),i=Ra(),l=1===as(r).filter((e=>!0!==e.disableColumnMenu)).length,a=e.useCallback((e=>{l||(r.current.setColumnVisibility(n.field,!1),o(e))}),[r,n.field,o,l]);return i.disableColumnSelector||!1===n.hideable?null:Pe.jsxs(zh,{onClick:a,disabled:l,children:[Pe.jsx(Ch,{children:Pe.jsx(i.slots.columnMenuHideIcon,{fontSize:"small"})}),Pe.jsx(Dh,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function wb(t){const{onClick:n}=t,o=Sa(),r=Ra(),i=e.useCallback((e=>{n(e),o.current.showPreferences(mg.columns)}),[o,n]);return r.disableColumnSelector?null:Pe.jsxs(zh,{onClick:i,children:[Pe.jsx(Ch,{children:Pe.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),Pe.jsx(Dh,{children:o.current.getLocaleText("columnMenuManageColumns")})]})}function xb(t){return Pe.jsxs(e.Fragment,{children:[Pe.jsx(yb,_e({},t)),Pe.jsx(wb,_e({},t))]})}function Cb(t){const{colDef:n,onClick:o}=t,r=Sa(),i=Ra(),l=e.useCallback((e=>{o(e),r.current.showFilterPanel(n.field)}),[r,n.field,o]);return i.disableColumnFilter||!n.filterable?null:Pe.jsxs(zh,{onClick:l,children:[Pe.jsx(Ch,{children:Pe.jsx(i.slots.columnMenuFilterIcon,{fontSize:"small"})}),Pe.jsx(Dh,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Ob(t){var n;const{colDef:o,onClick:r}=t,i=Sa(),l=$a(i,js),a=Ra(),s=e.useMemo((()=>{if(!o)return null;const e=l.find((e=>e.field===o.field));return null==e?void 0:e.sort}),[o,l]),u=null!=(n=o.sortingOrder)?n:a.sortingOrder,c=e.useCallback((e=>{r(e);const t=e.currentTarget.getAttribute("data-value")||null;i.current.sortColumn(o,t===s?null:t)}),[i,o,r,s]);return o&&o.sortable&&u.some((e=>!!e))?Pe.jsxs(e.Fragment,{children:[u.includes("asc")&&"asc"!==s?Pe.jsxs(zh,{onClick:c,"data-value":"asc",children:[Pe.jsx(Ch,{children:Pe.jsx(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),Pe.jsx(Dh,{children:i.current.getLocaleText("columnMenuSortAsc")})]}):null,u.includes("desc")&&"desc"!==s?Pe.jsxs(zh,{onClick:c,"data-value":"desc",children:[Pe.jsx(Ch,{children:Pe.jsx(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),Pe.jsx(Dh,{children:i.current.getLocaleText("columnMenuSortDesc")})]}):null,u.includes(null)&&null!=s?Pe.jsxs(zh,{onClick:c,children:[Pe.jsx(Ch,{}),Pe.jsx(Dh,{children:i.current.getLocaleText("columnMenuUnsort")})]}):null]}):null}"production"!==process.env.NODE_ENV&&(yb.propTypes={colDef:pe.object.isRequired,onClick:pe.func.isRequired}),"production"!==process.env.NODE_ENV&&(wb.propTypes={colDef:pe.object.isRequired,onClick:pe.func.isRequired}),"production"!==process.env.NODE_ENV&&(xb.propTypes={colDef:pe.object.isRequired,onClick:pe.func.isRequired}),"production"!==process.env.NODE_ENV&&(Cb.propTypes={colDef:pe.object.isRequired,onClick:pe.func.isRequired}),"production"!==process.env.NODE_ENV&&(Ob.propTypes={colDef:pe.object.isRequired,onClick:pe.func.isRequired});const kb=["defaultSlots","defaultSlotProps","slots","slotProps"],Sb={columnMenuSortItem:Ob,columnMenuFilterItem:Cb,columnMenuColumnsItem:xb},Eb={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Rb=e.forwardRef((function(t,n){const{defaultSlots:o,defaultSlotProps:r,slots:i,slotProps:l}=t,a=De(t,kb),s=(t=>{const n=Na(),{defaultSlots:o,defaultSlotProps:r,slots:i={},slotProps:l={},hideMenu:a,colDef:s,addDividers:u=!0}=t,c=e.useMemo((()=>_e({},o,i)),[o,i]),d=e.useMemo((()=>{if(!l||0===Object.keys(l).length)return r;const e=_e({},l);return Object.entries(r).forEach((([t,n])=>{e[t]=_e({},n,l[t]||{})})),e}),[r,l]),p=n.current.unstable_applyPipeProcessors("columnMenu",[],t.colDef),f=e.useMemo((()=>{const e=Object.keys(o);return Object.keys(i).filter((t=>!e.includes(t)))}),[i,o]);return e.useMemo((()=>{const e=Array.from(new Set([...p,...f])).filter((e=>null!=c[e])).sort(((e,t)=>{const n=d[e],o=d[t];return(Number.isFinite(null==n?void 0:n.displayOrder)?n.displayOrder:100)-(Number.isFinite(null==o?void 0:o.displayOrder)?o.displayOrder:100)}));return e.reduce(((t,n,o)=>{let r={colDef:s,onClick:a};const i=d[n];return i&&(r=_e({},r,De(i,vb))),u&&o!==e.length-1?[...t,[c[n],r],[gh,{}]]:[...t,[c[n],r]]}),[])}),[u,s,p,a,c,d,f])})(_e({},a,{defaultSlots:o,defaultSlotProps:r,slots:i,slotProps:l}));return Pe.jsx(bb,_e({ref:n},a,{children:s.map((([e,t],n)=>Pe.jsx(e,_e({},t),n)))}))})),Tb=e.forwardRef((function(e,t){return Pe.jsx(Rb,_e({},e,{ref:t,defaultSlots:Sb,defaultSlotProps:Eb}))}));function Nb(e){return ln("MuiIconButton",e)}"production"!==process.env.NODE_ENV&&(Tb.propTypes={colDef:pe.object.isRequired,hideMenu:pe.func.isRequired,id:pe.string,labelledby:pe.string,open:pe.bool.isRequired,slotProps:pe.object,slots:pe.object});const jb=an("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Pb=["edge","children","className","color","disabled","disableFocusRipple","size"],Mb=Ep(uh,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Ot(n.color)}`],n.edge&&t[`edge${Ot(n.edge)}`],t[`size${Ot(n.size)}`]]}})((({theme:e,ownerState:t})=>_e({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:_o(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const o=null==(n=(e.vars||e).palette)?void 0:n[t.color];return _e({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&_e({color:null==o?void 0:o.main},!t.disableRipple&&{"&:hover":_e({},o&&{backgroundColor:e.vars?`rgba(${o.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_o(o.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${jb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),Ib=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiIconButton"}),{edge:o=!1,children:r,className:i,color:l="default",disabled:a=!1,disableFocusRipple:s=!1,size:u="medium"}=n,c=De(n,Pb),d=_e({},n,{edge:o,color:l,disabled:a,disableFocusRipple:s,size:u}),p=(e=>{const{classes:t,disabled:n,color:o,edge:r,size:i}=e;return en({root:["root",n&&"disabled","default"!==o&&`color${Ot(o)}`,r&&`edge${Ot(r)}`,`size${Ot(i)}`]},Nb,t)})(d);return Pe.jsx(Mb,_e({className:vo(p.root,i),centerRipple:!0,focusRipple:!s,disabled:a,ref:t,ownerState:d},c,{children:r}))}));"production"!==process.env.NODE_ENV&&(Ib.propTypes={children:nt(pe.node,(t=>e.Children.toArray(t.children).some((t=>e.isValidElement(t)&&t.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("\n")):null)),classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),pe.string]),disabled:pe.bool,disableFocusRipple:pe.bool,disableRipple:pe.bool,edge:pe.oneOf(["end","start",!1]),size:pe.oneOfType([pe.oneOf(["small","medium","large"]),pe.string]),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const _b=Ib;function Db(e){return ln("PrivateSwitchBase",e)}an("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Ab=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Fb=Ep(uh)((({ownerState:e})=>_e({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Lb=Ep("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Vb=e.forwardRef((function(e,t){const{autoFocus:n,checked:o,checkedIcon:r,className:i,defaultChecked:l,disabled:a,disableFocusRipple:s=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:w,type:x,value:C}=e,O=De(e,Ab),[k,S]=_t({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),E=Op();let R=a;E&&typeof R>"u"&&(R=E.disabled);const T="checkbox"===x||"radio"===x,N=_e({},e,{checked:k,disabled:R,disableFocusRipple:s,edge:u}),j=(e=>{const{classes:t,checked:n,disabled:o,edge:r}=e;return en({root:["root",n&&"checked",o&&"disabled",r&&`edge${Ot(r)}`],input:["input"]},Db,t)})(N);return Pe.jsxs(Fb,_e({component:"span",className:vo(j.root,i),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{m&&m(e),E&&E.onBlur&&E.onBlur(e)},ownerState:N,ref:t},O,{children:[Pe.jsx(Lb,_e({autoFocus:n,checked:o,defaultChecked:l,className:j.input,disabled:R,id:T?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;S(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:N,tabIndex:w,type:x},"checkbox"===x&&void 0===C?{}:{value:C},p)),k?r:c]}))}));"production"!==process.env.NODE_ENV&&(Vb.propTypes={autoFocus:pe.bool,checked:pe.bool,checkedIcon:pe.node.isRequired,classes:pe.object,className:pe.string,defaultChecked:pe.bool,disabled:pe.bool,disableFocusRipple:pe.bool,edge:pe.oneOf(["end","start",!1]),icon:pe.node.isRequired,id:pe.string,inputProps:pe.object,inputRef:Ct,name:pe.string,onBlur:pe.func,onChange:pe.func,onFocus:pe.func,readOnly:pe.bool,required:pe.bool,sx:pe.object,tabIndex:pe.oneOfType([pe.number,pe.string]),type:pe.string.isRequired,value:pe.any});const $b=Vb;function zb(e){return ln("MuiSwitch",e)}const qb=an("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Hb=["className","color","edge","size","sx"],Bb=Ep("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Ot(n.edge)}`],t[`size${Ot(n.size)}`]]}})((({ownerState:e})=>_e({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${qb.thumb}`]:{width:16,height:16},[`& .${qb.switchBase}`]:{padding:4,[`&.${qb.checked}`]:{transform:"translateX(16px)"}}}))),Ub=Ep($b,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${qb.input}`]:t.input},"default"!==n.color&&t[`color${Ot(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${qb.checked}`]:{transform:"translateX(20px)"},[`&.${qb.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${qb.checked} + .${qb.track}`]:{opacity:.5},[`&.${qb.disabled} + .${qb.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${qb.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>_e({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:_o(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${qb.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_o(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qb.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${"light"===e.palette.mode?Ao(e.palette[t.color].main,.62):Do(e.palette[t.color].main,.55)}`}},[`&.${qb.checked} + .${qb.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}}))),Wb=Ep("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),Gb=Ep("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Kb=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiSwitch"}),{className:o,color:r="primary",edge:i=!1,size:l="medium",sx:a}=n,s=De(n,Hb),u=_e({},n,{color:r,edge:i,size:l}),c=(e=>{const{classes:t,edge:n,size:o,color:r,checked:i,disabled:l}=e;return _e({},t,en({root:["root",n&&`edge${Ot(n)}`,`size${Ot(o)}`],switchBase:["switchBase",`color${Ot(r)}`,i&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},zb,t))})(u),d=Pe.jsx(Gb,{className:c.thumb,ownerState:u});return Pe.jsxs(Bb,{className:vo(c.root,o),sx:a,ownerState:u,children:[Pe.jsx(Ub,_e({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:u},s,{classes:_e({},c,{root:c.switchBase})})),Pe.jsx(Wb,{className:c.track,ownerState:u})]})}));"production"!==process.env.NODE_ENV&&(Kb.propTypes={checked:pe.bool,checkedIcon:pe.node,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["default","primary","secondary","error","info","success","warning"]),pe.string]),defaultChecked:pe.bool,disabled:pe.bool,disableRipple:pe.bool,edge:pe.oneOf(["end","start",!1]),icon:pe.node,id:pe.string,inputProps:pe.object,inputRef:Ct,onChange:pe.func,required:pe.bool,size:pe.oneOfType([pe.oneOf(["medium","small"]),pe.string]),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),value:pe.any});const Yb=Kb;function Zb(e){return ln("MuiFormControl",e)}an("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Xb=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Qb=Ep("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>_e({},t.root,t[`margin${Ot(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>_e({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),Jb=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiFormControl"}),{children:r,className:i,color:l="primary",component:a="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:h=!1,size:m="medium",variant:g="outlined"}=o,b=De(o,Xb),v=_e({},o,{color:l,component:a,disabled:s,error:u,fullWidth:d,hiddenLabel:p,margin:f,required:h,size:m,variant:g}),y=(e=>{const{classes:t,margin:n,fullWidth:o}=e;return en({root:["root","none"!==n&&`margin${Ot(n)}`,o&&"fullWidth"]},Zb,t)})(v),[w,x]=e.useState((()=>{let t=!1;return r&&e.Children.forEach(r,(e=>{if(!Et(e,["Input","Select"]))return;const n=Et(e,["Select"])?e.props.input:e;n&&function(e){return e.startAdornment}(n.props)&&(t=!0)})),t})),[C,O]=e.useState((()=>{let t=!1;return r&&e.Children.forEach(r,(e=>{Et(e,["Input","Select"])&&(jp(e.props,!0)||jp(e.props.inputProps,!0))&&(t=!0)})),t})),[k,S]=e.useState(!1);s&&k&&S(!1);const E=void 0===c||s?k:c;let R;if("production"!==process.env.NODE_ENV){const t=e.useRef(!1);R=()=>(t.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join("\n")),t.current=!0,()=>{t.current=!1})}const T=e.useMemo((()=>({adornedStart:w,setAdornedStart:x,color:l,disabled:s,error:u,filled:C,focused:E,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{S(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{S(!0)},registerEffect:R,required:h,variant:g})),[w,l,s,u,C,E,d,p,R,h,m,g]);return Pe.jsx(Cp.Provider,{value:T,children:Pe.jsx(Qb,_e({as:a,ownerState:v,className:vo(y.root,i),ref:n},b,{children:r}))})}));"production"!==process.env.NODE_ENV&&(Jb.propTypes={children:pe.node,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["primary","secondary","error","info","success","warning"]),pe.string]),component:pe.elementType,disabled:pe.bool,error:pe.bool,focused:pe.bool,fullWidth:pe.bool,hiddenLabel:pe.bool,margin:pe.oneOf(["dense","none","normal"]),required:pe.bool,size:pe.oneOfType([pe.oneOf(["medium","small"]),pe.string]),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOf(["filled","outlined","standard"])});const ev=Jb;function tv(e){return ln("MuiFormControlLabel",e)}const nv=an("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ov=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],rv=Ep("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nv.label}`]:t.label},t.root,t[`labelPlacement${Ot(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>_e({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${nv.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${nv.label}`]:{[`&.${nv.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),iv=Ep("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${nv.error}`]:{color:(e.vars||e).palette.error.main}}))),lv=e.forwardRef((function(t,n){var o,r;const i=Rp({props:t,name:"MuiFormControlLabel"}),{className:l,componentsProps:a={},control:s,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:f,slotProps:h={}}=i,m=De(i,ov),g=Op(),b=null!=(o=u??s.props.disabled)?o:null==g?void 0:g.disabled,v=f??s.props.required,y={disabled:b,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{typeof s.props[e]>"u"&&typeof i[e]<"u"&&(y[e]=i[e])}));const w=wp({props:i,muiFormControl:g,states:["error"]}),x=_e({},i,{disabled:b,labelPlacement:p,required:v,error:w.error}),C=(e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:i}=e;return en({root:["root",n&&"disabled",`labelPlacement${Ot(o)}`,r&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]},tv,t)})(x),O=null!=(r=h.typography)?r:a.typography;let k=d;return null!=k&&k.type!==Nh&&!c&&(k=Pe.jsx(Nh,_e({component:"span"},O,{className:vo(C.label,null==O?void 0:O.className),children:k}))),Pe.jsxs(rv,_e({className:vo(C.root,l),ownerState:x,ref:n},m,{children:[e.cloneElement(s,y),k,v&&Pe.jsxs(iv,{ownerState:x,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}))}));"production"!==process.env.NODE_ENV&&(lv.propTypes={checked:pe.bool,classes:pe.object,className:pe.string,componentsProps:pe.shape({typography:pe.object}),control:pe.element.isRequired,disabled:pe.bool,disableTypography:pe.bool,inputRef:Ct,label:pe.node,labelPlacement:pe.oneOf(["bottom","end","start","top"]),name:pe.string,onChange:pe.func,required:pe.bool,slotProps:pe.shape({typography:pe.object}),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),value:pe.any});const av=lv,sv=["className"],uv=e=>{const{classes:t}=e;return en({root:["panelContent"]},za,t)},cv=Ro("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function dv(e){const{className:t}=e,n=De(e,sv),o=Ra(),r=uv(o);return Pe.jsx(cv,_e({className:vo(t,r.root),ownerState:o},n))}"production"!==process.env.NODE_ENV&&(dv.propTypes={sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const pv=["className"],fv=e=>{const{classes:t}=e;return en({root:["panelFooter"]},za,t)},hv=Ro("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"})));function mv(e){const{className:t}=e,n=De(e,pv),o=Ra(),r=fv(o);return Pe.jsx(hv,_e({className:vo(t,r.root),ownerState:o},n))}"production"!==process.env.NODE_ENV&&(mv.propTypes={sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const gv=["className"],bv=e=>{const{classes:t}=e;return en({root:["panelHeader"]},za,t)},vv=Ro("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})((({theme:e})=>({padding:e.spacing(1)})));function yv(e){const{className:t}=e,n=De(e,gv),o=Ra(),r=bv(o);return Pe.jsx(vv,_e({className:vo(t,r.root),ownerState:o},n))}"production"!==process.env.NODE_ENV&&(yv.propTypes={sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const wv=["className","slotProps"],xv=Ep("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Cv=()=>!0,Ov=e.forwardRef((function(e,t){const{className:n,slotProps:o={}}=e,r=De(e,wv),i=Ra(),l=(e=>{const{classes:t}=e;return en({root:["panelWrapper"]},za,t)})(i);return Pe.jsx(yc,_e({open:!0,disableEnforceFocus:!0,isEnabled:Cv},o.TrapFocus,{children:Pe.jsx(xv,_e({ref:t,tabIndex:-1,className:vo(n,l.root),ownerState:i},r))}))}));"production"!==process.env.NODE_ENV&&(Ov.propTypes={slotProps:pe.object});const kv=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],Sv=Ep("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),Ev=Ep("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})((({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${qb.root}`]:{marginRight:e.spacing(.5)}}))),Rv=(Ep(_b)({justifyContent:"flex-end"}),new Intl.Collator),Tv=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function Nv(t){var n,o,r;const i=Sa(),l=e.useRef(null),a=$a(i,is),s=$a(i,ls),u=Ra(),[c,d]=e.useState(""),p=(e=>{const{classes:t}=e;return en({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},za,t)})(u),{sort:f,searchPredicate:h=Tv,autoFocusSearchField:m=!0,disableHideAllButton:g=!1,disableShowAllButton:b=!1,getTogglableColumns:v}=t,y=De(t,kv),w=e.useMemo((()=>{switch(f){case"asc":return[...a].sort(((e,t)=>Rv.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...a].sort(((e,t)=>-Rv.compare(e.headerName||e.field,t.headerName||t.field)));default:return a}}),[a,f]),x=e=>{const{name:t}=e.target;i.current.setColumnVisibility(t,!1===s[t])},C=e.useCallback((e=>{const t=_e({},ls(i)),n=v?v(a):null;return a.forEach((o=>{o.hideable&&(null==n||n.includes(o.field))&&(e?delete t[o.field]:t[o.field]=!1)})),i.current.setColumnVisibilityModel(t)}),[i,a,v]),O=e.useCallback((e=>{d(e.target.value)}),[]),k=e.useMemo((()=>{const e=v?v(w):null,t=e?w.filter((({field:t})=>e.includes(t))):w;return c?t.filter((e=>h(e,c.toLowerCase()))):t}),[w,c,h,v]),S=e.useRef(null);e.useEffect((()=>{m?l.current.focus():S.current&&"function"==typeof S.current.focus&&S.current.focus()}),[m]);let E=!1;const R=e=>!1===E&&!1!==e.hideable&&(E=!0,!0);return Pe.jsxs(Ov,_e({},y,{children:[Pe.jsx(yv,{children:Pe.jsx(u.slots.baseTextField,_e({label:i.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:i.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:l,value:c,onChange:O,variant:"standard",fullWidth:!0},null==(n=u.slotProps)?void 0:n.baseTextField))}),Pe.jsx(dv,{children:Pe.jsx(Sv,{className:p.root,ownerState:u,children:k.map((e=>{var t;return Pe.jsxs(Ev,{className:p.columnsPanelRow,ownerState:u,children:[Pe.jsx(av,{control:Pe.jsx(u.slots.baseSwitch,_e({disabled:!1===e.hideable,checked:!1!==s[e.field],onClick:x,name:e.field,size:"small",inputRef:R(e)?S:void 0},null==(t=u.slotProps)?void 0:t.baseSwitch)),label:e.headerName||e.field}),!u.disableColumnReorder&&false]},e.field)}))})}),b&&g?null:Pe.jsxs(mv,{children:[g?Pe.jsx("span",{}):Pe.jsx(u.slots.baseButton,_e({onClick:()=>C(!1)},null==(o=u.slotProps)?void 0:o.baseButton,{disabled:g,children:i.current.getLocaleText("columnsPanelHideAllButton")})),b?null:Pe.jsx(u.slots.baseButton,_e({onClick:()=>C(!0)},null==(r=u.slotProps)?void 0:r.baseButton,{disabled:b,children:i.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}"production"!==process.env.NODE_ENV&&(Nv.propTypes={autoFocusSearchField:pe.bool,disableHideAllButton:pe.bool,disableShowAllButton:pe.bool,getTogglableColumns:pe.func,searchPredicate:pe.func,slotProps:pe.object,sort:pe.oneOf(["asc","desc"])});const jv=["children","className","classes"],Pv=an("MuiDataGrid",["panel","paper"]),Mv=Ep(Df,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((({theme:e})=>({zIndex:e.zIndex.modal}))),Iv=Ep(Pf,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}))),_v=e.forwardRef(((t,n)=>{const{children:o,className:r}=t,i=De(t,jv),l=Sa(),a=Ra(),s=Pv,[u,c]=e.useState(!1),d=e.useCallback((()=>{l.current.hidePreferences()}),[l]),p=e.useCallback((e=>{Yp(e.key)&&l.current.hidePreferences()}),[l]),f=e.useMemo((()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}]),[]),[h,m]=e.useState(null);return e.useEffect((()=>{var e,t;const n=null==(e=l.current.rootElementRef)||null==(t=e.current)?void 0:t.querySelector(`.${qa.columnHeaders}`);n&&m(n)}),[l]),h?Pe.jsx(Mv,_e({ref:n,placement:"bottom-start",className:vo(r,s.panel),ownerState:a,anchorEl:h,modifiers:f},i,{children:Pe.jsx(mc,{mouseEvent:"onMouseUp",onClickAway:d,children:Pe.jsx(Iv,{className:s.paper,ownerState:a,elevation:8,onKeyDown:p,children:u&&o})})})):null}));"production"!==process.env.NODE_ENV&&(_v.propTypes={children:pe.node,classes:pe.object,open:pe.bool.isRequired,ownerState:pe.object});const Dv=e.forwardRef((function(e,t){var n,o,r;const i=Sa(),l=$a(i,is),a=Ra(),s=$a(i,hg),u=i.current.unstable_applyPipeProcessors("preferencePanel",null,null!=(n=s.openedPanelValue)?n:mg.filters);return Pe.jsx(a.slots.panel,_e({ref:t,as:a.slots.basePopper,open:l.length>0&&s.open,id:s.panelId,"aria-labelledby":s.labelId},null==(o=a.slotProps)?void 0:o.panel,e,null==(r=a.slotProps)?void 0:r.basePopper,{children:u}))})),Av=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Fv=["InputComponentProps"],Lv=Ep("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((({theme:e})=>({display:"flex",padding:e.spacing(1)}))),Vv=Ep("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})((({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)}))),$v=Ep("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),zv=Ep("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),qv=Ep("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Hv=Ep("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Bv=e=>e.headerName||e.field,Uv=new Intl.Collator,Wv=e.forwardRef((function(t,n){var o,r,l,a,s,u,c,d,p,f;const{item:h,hasMultipleFilters:m,deleteFilter:g,applyFilterChanges:b,multiFilterOperator:v,showMultiFilterOperators:y,disableMultiFilterOperator:w,applyMultiFilterOperatorChanges:x,focusElementRef:C,logicOperators:O=[ju.And,ju.Or],columnsSort:k,filterColumns:S,deleteIconProps:E={},logicOperatorInputProps:R={},operatorInputProps:T={},columnInputProps:N={},valueInputProps:j={}}=t,P=De(t,Av),M=Sa(),I=$a(M,ds),_=$a(M,Is),D=It(),A=It(),F=It(),L=It(),V=Ra(),$=(e=>{const{classes:t}=e;return en({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},za,t)})(V),z=e.useRef(null),q=e.useRef(null),H=m&&O.length>0,B=(null==(o=V.slotProps)?void 0:o.baseFormControl)||{},U=null==(l=((null==(r=V.slotProps)?void 0:r.baseSelect)||{}).native)||l,W=(null==(a=V.slotProps)?void 0:a.baseInputLabel)||{},G=(null==(s=V.slotProps)?void 0:s.baseSelectOption)||{},{InputComponentProps:K}=j,Y=De(j,Fv),Z=e.useMemo((()=>{if(void 0===S||"function"!=typeof S)return I;const e=S({field:h.field,columns:I,currentFilters:(null==_?void 0:_.items)||[]});return I.filter((t=>e.includes(t.field)))}),[S,null==_?void 0:_.items,I,h.field]),X=e.useMemo((()=>{switch(k){case"asc":return Z.sort(((e,t)=>Uv.compare(Bv(e),Bv(t))));case"desc":return Z.sort(((e,t)=>-Uv.compare(Bv(e),Bv(t))));default:return Z}}),[Z,k]),Q=h.field?M.current.getColumn(h.field):null,J=e.useMemo((()=>{var e;return h.operator&&Q?null==(e=Q.filterOperators)?void 0:e.find((e=>e.value===h.operator)):null}),[h,Q]),ee=e.useCallback((e=>{const t=e.target.value,n=M.current.getColumn(t);if(n.field===Q.field)return;const o=n.filterOperators.find((e=>e.value===h.operator))||n.filterOperators[0],r=!o.InputComponent||o.InputComponent!==(null==J?void 0:J.InputComponent);b(_e({},h,{field:t,operator:o.value,value:r?void 0:h.value}))}),[M,b,h,Q,J]),te=e.useCallback((e=>{const t=e.target.value,n=null==Q?void 0:Q.filterOperators.find((e=>e.value===t)),o=!(null!=n&&n.InputComponent)||(null==n?void 0:n.InputComponent)!==(null==J?void 0:J.InputComponent);b(_e({},h,{operator:t,value:o?void 0:h.value}))}),[b,h,Q,J]),ne=e.useCallback((e=>{const t=e.target.value===ju.And.toString()?ju.And:ju.Or;x(t)}),[x]);return e.useImperativeHandle(C,(()=>({focus:()=>{var e;null!=J&&J.InputComponent?null==z||null==(e=z.current)||e.focus():q.current.focus()}})),[J]),Pe.jsxs(Lv,_e({ref:n,className:$.root,"data-id":h.id,ownerState:V},P,{children:[Pe.jsx(Vv,_e({variant:"standard",as:V.slots.baseFormControl},B,E,{className:vo($.deleteIcon,B.className,E.className),ownerState:V,children:Pe.jsx(V.slots.baseIconButton,_e({"aria-label":M.current.getLocaleText("filterPanelDeleteIconLabel"),title:M.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{V.disableMultipleColumnsFiltering?void 0===h.value?g(h):b(_e({},h,{value:void 0})):g(h)},size:"small"},null==(u=V.slotProps)?void 0:u.baseIconButton,{children:Pe.jsx(V.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),Pe.jsx($v,_e({variant:"standard",as:V.slots.baseFormControl},B,R,{sx:_e({display:H?"flex":"none",visibility:y?"visible":"hidden"},B.sx||{},R.sx||{}),className:vo($.logicOperatorInput,B.className,R.className),ownerState:V,children:Pe.jsx(V.slots.baseSelect,_e({inputProps:{"aria-label":M.current.getLocaleText("filterPanelLogicOperator")},value:v,onChange:ne,disabled:!!w||1===O.length,native:U},null==(c=V.slotProps)?void 0:c.baseSelect,{children:O.map((e=>i(V.slots.baseSelectOption,_e({},G,{native:U,key:e.toString(),value:e.toString()}),M.current.getLocaleText((e=>{switch(e){case ju.And:return"filterPanelOperatorAnd";case ju.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e)))))}))})),Pe.jsxs(zv,_e({variant:"standard",as:V.slots.baseFormControl},B,N,{className:vo($.columnInput,B.className,N.className),ownerState:V,children:[Pe.jsx(V.slots.baseInputLabel,_e({},W,{htmlFor:D,id:A,children:M.current.getLocaleText("filterPanelColumns")})),Pe.jsx(V.slots.baseSelect,_e({labelId:A,id:D,label:M.current.getLocaleText("filterPanelColumns"),value:h.field||"",onChange:ee,native:U},null==(d=V.slotProps)?void 0:d.baseSelect,{children:X.map((e=>i(V.slots.baseSelectOption,_e({},G,{native:U,key:e.field,value:e.field}),Bv(e))))}))]})),Pe.jsxs(qv,_e({variant:"standard",as:V.slots.baseFormControl},B,T,{className:vo($.operatorInput,B.className,T.className),ownerState:V,children:[Pe.jsx(V.slots.baseInputLabel,_e({},W,{htmlFor:F,id:L,children:M.current.getLocaleText("filterPanelOperator")})),Pe.jsx(V.slots.baseSelect,_e({labelId:L,label:M.current.getLocaleText("filterPanelOperator"),id:F,value:h.operator,onChange:te,native:U,inputRef:q},null==(p=V.slotProps)?void 0:p.baseSelect,{children:null==Q||null==(f=Q.filterOperators)?void 0:f.map((e=>i(V.slots.baseSelectOption,_e({},G,{native:U,key:e.value,value:e.value}),e.label||M.current.getLocaleText(`filterOperator${Ot(e.value)}`))))}))]})),Pe.jsx(Hv,_e({variant:"standard",as:V.slots.baseFormControl},B,Y,{className:vo($.valueInput,B.className,Y.className),ownerState:V,children:null!=J&&J.InputComponent?Pe.jsx(J.InputComponent,_e({apiRef:M,item:h,applyValue:b,focusElementRef:z},J.InputComponentProps,K)):null}))]}))}));"production"!==process.env.NODE_ENV&&(Wv.propTypes={applyFilterChanges:pe.func.isRequired,applyMultiFilterOperatorChanges:pe.func.isRequired,children:pe.node,columnInputProps:pe.any,columnsSort:pe.oneOf(["asc","desc"]),deleteFilter:pe.func.isRequired,deleteIconProps:pe.any,disableMultiFilterOperator:pe.bool,filterColumns:pe.func,focusElementRef:pe.oneOfType([pe.func,pe.object]),hasMultipleFilters:pe.bool.isRequired,item:pe.shape({field:pe.string.isRequired,id:pe.oneOfType([pe.number,pe.string]),operator:pe.string.isRequired,value:pe.any}).isRequired,logicOperatorInputProps:pe.any,logicOperators:pe.arrayOf(pe.oneOf(["and","or"]).isRequired),multiFilterOperator:pe.oneOf(["and","or"]),operatorInputProps:pe.any,showMultiFilterOperators:pe.bool,valueInputProps:pe.any});const Gv=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"];function Kv(t){var n,o;const{item:r,applyValue:i,type:l,apiRef:a,focusElementRef:s,tabIndex:u,disabled:c,clearButton:d,InputProps:p}=t,f=De(t,Gv),h=e.useRef(),[m,g]=e.useState(null!=(n=r.value)?n:""),[b,v]=e.useState(!1),y=It(),w=Ra(),x=e.useCallback((e=>{const{value:t}=e.target;clearTimeout(h.current),g(String(t)),v(!0),h.current=setTimeout((()=>{i(_e({},r,{value:t})),v(!1)}),500)}),[i,r]);return e.useEffect((()=>()=>{clearTimeout(h.current)}),[]),e.useEffect((()=>{var e;const t=null!=(e=r.value)?e:"";g(String(t))}),[r.value]),Pe.jsx(w.slots.baseTextField,_e({id:y,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:x,variant:"standard",type:l||"text",InputProps:_e({},b||d?{endAdornment:b?Pe.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):d}:{},{disabled:c},p,{inputProps:_e({tabIndex:u},null==p?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:s},f,null==(o=w.slotProps)?void 0:o.baseTextField))}"production"!==process.env.NODE_ENV&&(Kv.propTypes={apiRef:pe.shape({current:pe.object.isRequired}).isRequired,applyValue:pe.func.isRequired,clearButton:pe.node,focusElementRef:pe.oneOfType([pe.func,pe.object]),isFilterActive:pe.bool,item:pe.shape({field:pe.string.isRequired,id:pe.oneOfType([pe.number,pe.string]),operator:pe.string.isRequired,value:pe.any}).isRequired});const Yv=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function Zv(t){var n,o;const{item:r,applyValue:i,type:l,apiRef:a,focusElementRef:s,InputProps:u,clearButton:c,tabIndex:d,disabled:p}=t,f=De(t,Yv),h=e.useRef(),[m,g]=e.useState(null!=(n=r.value)?n:""),[b,v]=e.useState(!1),y=It(),w=Ra(),x=e.useCallback((e=>{const t=e.target.value;clearTimeout(h.current),g(String(t)),v(!0),h.current=setTimeout((()=>{i(_e({},r,{value:t})),v(!1)}),500)}),[i,r]);return e.useEffect((()=>()=>{clearTimeout(h.current)}),[]),e.useEffect((()=>{var e;const t=null!=(e=r.value)?e:"";g(String(t))}),[r.value]),Pe.jsx(w.slots.baseTextField,_e({fullWidth:!0,id:y,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:x,variant:"standard",type:l||"text",InputLabelProps:{shrink:!0},inputRef:s,InputProps:_e({},b||c?{endAdornment:b?Pe.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:p},u,{inputProps:_e({max:"datetime-local"===l?"9999-12-31T23:59":"9999-12-31",tabIndex:d},null==u?void 0:u.inputProps)})},f,null==(o=w.slotProps)?void 0:o.baseTextField))}"production"!==process.env.NODE_ENV&&(Zv.propTypes={apiRef:pe.shape({current:pe.object.isRequired}).isRequired,applyValue:pe.func.isRequired,clearButton:pe.node,focusElementRef:pe.oneOfType([pe.func,pe.object]),isFilterActive:pe.bool,item:pe.shape({field:pe.string.isRequired,id:pe.oneOfType([pe.number,pe.string]),operator:pe.string.isRequired,value:pe.any}).isRequired});const Xv=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton"],Qv=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:o,getOptionValue:r,isSelectNative:l,baseSelectOptionProps:a})=>("function"==typeof e?["",...e({field:t})]:["",...e||[]]).map((e=>{const t=r(e),s=o(e);return i(n,_e({},a,{native:l,key:t,value:t}),s)})),Jv=Ep("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function ey(t){var n,o,r,i,l,a,s,u,c;const{item:d,applyValue:p,type:f,apiRef:h,focusElementRef:m,getOptionLabel:g,getOptionValue:b,placeholder:v,tabIndex:y,label:w,clearButton:x}=t,C=De(t,Xv),[O,k]=e.useState(null!=(n=d.value)?n:""),S=It(),E=It(),R=Ra(),T=null==(o=null==(r=R.slotProps)||null==(i=r.baseSelect)?void 0:i.native)||o;let N=null;if(d.field){const e=h.current.getColumn(d.field);tf(e)&&(N=e)}const j=b||(null==(l=N)?void 0:l.getOptionValue),P=g||(null==(a=N)?void 0:a.getOptionLabel),M=e.useMemo((()=>{if(N)return"function"==typeof N.valueOptions?N.valueOptions({field:N.field}):N.valueOptions}),[N]),I=e.useCallback((e=>{let t=e.target.value;t=nf(t,M,j),k(String(t)),p(_e({},d,{value:t}))}),[M,j,p,d]);if(e.useEffect((()=>{var e;let t;if(void 0!==M){if(t=nf(d.value,M,j),t!==d.value)return void p(_e({},d,{value:t}))}else t=d.value;t=null!=(e=t)?e:"",k(String(t))}),[d,M,p,j]),!tf(N)||!tf(N))return null;const _=w??h.current.getLocaleText("filterPanelInputLabel");return Pe.jsxs(Jv,{children:[Pe.jsxs(R.slots.baseFormControl,{children:[Pe.jsx(R.slots.baseInputLabel,_e({},null==(s=R.slotProps)?void 0:s.baseInputLabel,{id:E,htmlFor:S,shrink:!0,variant:"standard",children:_})),Pe.jsx(R.slots.baseSelect,_e({id:S,label:_,labelId:E,value:O,onChange:I,variant:"standard",type:f||"text",inputProps:{tabIndex:y,ref:m,placeholder:v??h.current.getLocaleText("filterPanelInputPlaceholder")},native:T},C,null==(u=R.slotProps)?void 0:u.baseSelect,{children:Qv({column:N,OptionComponent:R.slots.baseSelectOption,getOptionLabel:P,getOptionValue:j,isSelectNative:T,baseSelectOptionProps:null==(c=R.slotProps)?void 0:c.baseSelectOption})}))]}),x]})}"production"!==process.env.NODE_ENV&&(ey.propTypes={apiRef:pe.shape({current:pe.object.isRequired}).isRequired,applyValue:pe.func.isRequired,clearButton:pe.node,focusElementRef:pe.oneOfType([pe.func,pe.object]),getOptionLabel:pe.func,getOptionValue:pe.func,isFilterActive:pe.bool,item:pe.shape({field:pe.string.isRequired,id:pe.oneOfType([pe.number,pe.string]),operator:pe.string.isRequired,value:pe.any}).isRequired});const ty=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label"],ny=Ep("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function oy(t){var n,o,r,i;const{item:l,applyValue:a,apiRef:s,focusElementRef:u,clearButton:c,tabIndex:d,label:p}=t,f=De(t,ty),[h,m]=e.useState(l.value||""),g=Ra(),b=It(),v=It(),y=(null==(n=g.slotProps)?void 0:n.baseSelect)||{},w=null==(o=y.native)||o,x=(null==(r=g.slotProps)?void 0:r.baseSelectOption)||{},C=e.useCallback((e=>{const t=e.target.value;m(t),a(_e({},l,{value:t}))}),[a,l]);e.useEffect((()=>{m(l.value||"")}),[l.value]);const O=p??s.current.getLocaleText("filterPanelInputLabel");return Pe.jsxs(ny,{children:[Pe.jsxs(g.slots.baseFormControl,{fullWidth:!0,children:[Pe.jsx(g.slots.baseInputLabel,_e({},null==(i=g.slotProps)?void 0:i.baseInputLabel,{id:b,shrink:!0,variant:"standard",children:O})),Pe.jsxs(g.slots.baseSelect,_e({labelId:b,id:v,label:O,value:h,onChange:C,variant:"standard",native:w,displayEmpty:!0,inputProps:{ref:u,tabIndex:d}},f,y,{children:[Pe.jsx(g.slots.baseSelectOption,_e({},x,{native:w,value:"",children:s.current.getLocaleText("filterValueAny")})),Pe.jsx(g.slots.baseSelectOption,_e({},x,{native:w,value:"true",children:s.current.getLocaleText("filterValueTrue")})),Pe.jsx(g.slots.baseSelectOption,_e({},x,{native:w,value:"false",children:s.current.getLocaleText("filterValueFalse")}))]}))]}),c]})}"production"!==process.env.NODE_ENV&&(oy.propTypes={apiRef:pe.shape({current:pe.object.isRequired}).isRequired,applyValue:pe.func.isRequired,clearButton:pe.node,focusElementRef:pe.oneOfType([pe.func,pe.shape({current:pe.any.isRequired})]),isFilterActive:pe.bool,item:pe.shape({field:pe.string.isRequired,id:pe.oneOfType([pe.number,pe.string]),operator:pe.string.isRequired,value:pe.any}).isRequired});const ry=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],iy=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),ly=e.forwardRef((function(t,n){var o,r;const i=Sa(),l=Ra(),a=$a(i,Is),s=$a(i,ds),u=e.useRef(null),c=e.useRef(null),{logicOperators:d=[ju.And,ju.Or],columnsSort:p,filterFormProps:f,getColumnForNewFilter:h,disableAddFilterButton:m=!1,disableRemoveAllButton:g=!1}=t,b=De(t,ry),v=e.useCallback((e=>{i.current.upsertFilterItem(e)}),[i]),y=e.useCallback((e=>{i.current.setFilterLogicOperator(e)}),[i]),w=e.useCallback((()=>{let e;if(h&&"function"==typeof h){const t=h({currentFilters:(null==a?void 0:a.items)||[],columns:s});if(null===t)return null;e=s.find((({field:e})=>e===t))}else e=s.find((e=>{var t;return null==(t=e.filterOperators)?void 0:t.length}));return e?iy(e):null}),[null==a?void 0:a.items,s,h]),x=e.useCallback((()=>{if(void 0===h||"function"!=typeof h)return w();const e=a.items.length?a.items:[w()].filter(Boolean),t=h({currentFilters:e,columns:s});if(null===t)return null;const n=s.find((({field:e})=>e===t));return n?iy(n):null}),[a.items,s,h,w]),C=e.useMemo((()=>a.items.length?a.items:(c.current||(c.current=w()),c.current?[c.current]:[])),[a.items,w]),O=C.length>1,k=e.useCallback((e=>{const t=1===C.length;i.current.deleteFilterItem(e),t&&i.current.hideFilterPanel()}),[i,C.length]);return e.useEffect((()=>{d.length>0&&a.logicOperator&&!d.includes(a.logicOperator)&&y(d[0])}),[d,y,a.logicOperator]),e.useEffect((()=>{C.length>0&&u.current.focus()}),[C.length]),Pe.jsxs(Ov,_e({ref:n},b,{children:[Pe.jsx(dv,{children:C.map(((e,t)=>Pe.jsx(Wv,_e({item:e,applyFilterChanges:v,deleteFilter:k,hasMultipleFilters:O,showMultiFilterOperators:t>0,multiFilterOperator:a.logicOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:y,focusElementRef:t===C.length-1?u:null,logicOperators:d,columnsSort:p},f),null==e.id?t:e.id)))}),l.disableMultipleColumnsFiltering||m&&g?null:Pe.jsxs(mv,{children:[m?Pe.jsx("span",{}):Pe.jsx(l.slots.baseButton,_e({onClick:()=>{const e=x();e&&i.current.upsertFilterItems([...C,e])},startIcon:Pe.jsx(l.slots.filterPanelAddIcon,{})},null==(o=l.slotProps)?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),g?null:Pe.jsx(l.slots.baseButton,_e({onClick:()=>{1===C.length&&void 0===C[0].value&&(i.current.deleteFilterItem(C[0]),i.current.hideFilterPanel()),i.current.setFilterModel(_e({},a,{items:[]}))},startIcon:Pe.jsx(l.slots.filterPanelRemoveAllIcon,{})},null==(r=l.slotProps)?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]})]}))}));function ay(e){return ln("MuiListSubheader",e)}"production"!==process.env.NODE_ENV&&(ly.propTypes={children:pe.node,columnsSort:pe.oneOf(["asc","desc"]),disableAddFilterButton:pe.bool,disableRemoveAllButton:pe.bool,filterFormProps:pe.shape({columnInputProps:pe.any,columnsSort:pe.oneOf(["asc","desc"]),deleteIconProps:pe.any,filterColumns:pe.func,logicOperatorInputProps:pe.any,operatorInputProps:pe.any,valueInputProps:pe.any}),getColumnForNewFilter:pe.func,logicOperators:pe.arrayOf(pe.oneOf(["and","or"]).isRequired),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])}),an("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const sy=["className","color","component","disableGutters","disableSticky","inset"],uy=Ep("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Ot(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>_e({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),cy=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiListSubheader"}),{className:o,color:r="default",component:i="li",disableGutters:l=!1,disableSticky:a=!1,inset:s=!1}=n,u=De(n,sy),c=_e({},n,{color:r,component:i,disableGutters:l,disableSticky:a,inset:s}),d=(e=>{const{classes:t,color:n,disableGutters:o,inset:r,disableSticky:i}=e;return en({root:["root","default"!==n&&`color${Ot(n)}`,!o&&"gutters",r&&"inset",!i&&"sticky"]},ay,t)})(c);return Pe.jsx(uy,_e({as:i,className:vo(d.root,o),ref:t,ownerState:c},u))}));cy.muiSkipListHighlight=!0,"production"!==process.env.NODE_ENV&&(cy.propTypes={children:pe.node,classes:pe.object,className:pe.string,color:pe.oneOf(["default","inherit","primary"]),component:pe.elementType,disableGutters:pe.bool,disableSticky:pe.bool,inset:pe.bool,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const dy=cy,py=Hg(Pe.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 fy(e){return ln("MuiChip",e)}const hy=an("MuiChip",["root","sizeSmall","sizeMedium","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"]),my=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],gy=Ep("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:l,size:a,variant:s}=n;return[{[`& .${hy.avatar}`]:t.avatar},{[`& .${hy.avatar}`]:t[`avatar${Ot(a)}`]},{[`& .${hy.avatar}`]:t[`avatarColor${Ot(o)}`]},{[`& .${hy.icon}`]:t.icon},{[`& .${hy.icon}`]:t[`icon${Ot(a)}`]},{[`& .${hy.icon}`]:t[`iconColor${Ot(r)}`]},{[`& .${hy.deleteIcon}`]:t.deleteIcon},{[`& .${hy.deleteIcon}`]:t[`deleteIcon${Ot(a)}`]},{[`& .${hy.deleteIcon}`]:t[`deleteIconColor${Ot(o)}`]},{[`& .${hy.deleteIcon}`]:t[`deleteIcon${Ot(s)}Color${Ot(o)}`]},t.root,t[`size${Ot(a)}`],t[`color${Ot(o)}`],i&&t.clickable,i&&"default"!==o&&t[`clickableColor${Ot(o)})`],l&&t.deletable,l&&"default"!==o&&t[`deletableColor${Ot(o)}`],t[s],t[`${s}${Ot(o)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return _e({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:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${hy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${hy.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${hy.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${hy.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${hy.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${hy.icon}`]:_e({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&_e({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${hy.deleteIcon}`]:_e({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:_o(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)`:_o(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:_o(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${hy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_o(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${hy.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>_e({},t.clickable&&{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}))`:_o(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${hy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_o(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${hy.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>_e({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${hy.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${hy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${hy.avatar}`]:{marginLeft:4},[`& .${hy.avatarSmall}`]:{marginLeft:2},[`& .${hy.icon}`]:{marginLeft:4},[`& .${hy.iconSmall}`]:{marginLeft:2},[`& .${hy.deleteIcon}`]:{marginRight:5},[`& .${hy.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:_o(e.palette[t.color].main,.7)}`,[`&.${hy.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_o(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${hy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:_o(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${hy.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:_o(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),by=Ep("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${Ot(o)}`]]}})((({ownerState:e})=>_e({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function vy(e){return"Backspace"===e.key||"Delete"===e.key}const yy=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:l,color:a="default",component:s,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:f,onDelete:h,onKeyDown:m,onKeyUp:g,size:b="medium",variant:v="filled",tabIndex:y,skipFocusWhenDisabled:w=!1}=o,x=De(o,my),C=e.useRef(null),O=At(C,n),k=e=>{e.stopPropagation(),h&&h(e)},S=!(!1===l||!f)||l,E=S||h?uh:s||"div",R=_e({},o,{component:E,disabled:c,size:b,color:a,iconColor:e.isValidElement(d)&&d.props.color||a,onDelete:!!h,clickable:S,variant:v}),T=(e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:l,clickable:a,variant:s}=e;return en({root:["root",s,n&&"disabled",`size${Ot(o)}`,`color${Ot(r)}`,a&&"clickable",a&&`clickableColor${Ot(r)}`,l&&"deletable",l&&`deletableColor${Ot(r)}`,`${s}${Ot(r)}`],label:["label",`label${Ot(o)}`],avatar:["avatar",`avatar${Ot(o)}`,`avatarColor${Ot(r)}`],icon:["icon",`icon${Ot(o)}`,`iconColor${Ot(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Ot(o)}`,`deleteIconColor${Ot(r)}`,`deleteIcon${Ot(s)}Color${Ot(r)}`]},fy,t)})(R),N=E===uh?_e({component:s||"div",focusVisibleClassName:T.focusVisible},h&&{disableRipple:!0}):{};let j=null;h&&(j=u&&e.isValidElement(u)?e.cloneElement(u,{className:vo(u.props.className,T.deleteIcon),onClick:k}):Pe.jsx(py,{className:vo(T.deleteIcon),onClick:k}));let P=null;r&&e.isValidElement(r)&&(P=e.cloneElement(r,{className:vo(T.avatar,r.props.className)}));let M=null;return d&&e.isValidElement(d)&&(M=e.cloneElement(d,{className:vo(T.icon,d.props.className)})),"production"!==process.env.NODE_ENV&&P&&M&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),Pe.jsxs(gy,_e({as:E,className:vo(T.root,i),disabled:!(!S||!c)||void 0,onClick:f,onKeyDown:e=>{e.currentTarget===e.target&&vy(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(h&&vy(e)?h(e):"Escape"===e.key&&C.current&&C.current.blur()),g&&g(e)},ref:O,tabIndex:w&&c?-1:y,ownerState:R},N,x,{children:[P||M,Pe.jsx(by,{className:vo(T.label),ownerState:R,children:p}),j]}))}));"production"!==process.env.NODE_ENV&&(yy.propTypes={avatar:pe.element,children:function(e,t,n,o,r){if("production"===process.env.NODE_ENV)return null;const i=r||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},classes:pe.object,className:pe.string,clickable:pe.bool,color:pe.oneOfType([pe.oneOf(["default","primary","secondary","error","info","success","warning"]),pe.string]),component:pe.elementType,deleteIcon:pe.element,disabled:pe.bool,icon:pe.element,label:pe.node,onClick:pe.func,onDelete:pe.func,onKeyDown:pe.func,onKeyUp:pe.func,size:pe.oneOfType([pe.oneOf(["medium","small"]),pe.string]),skipFocusWhenDisabled:pe.bool,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),tabIndex:pe.number,variant:pe.oneOfType([pe.oneOf(["filled","outlined"]),pe.string])});const wy=yy;function xy(e){return ln("MuiInput",e)}const Cy=_e({},Mp,an("MuiInput",["root","underline","input"]));function Oy(e){return ln("MuiOutlinedInput",e)}const ky=_e({},Mp,an("MuiOutlinedInput",["root","notchedOutline","input"]));function Sy(e){return ln("MuiFilledInput",e)}const Ey=_e({},Mp,an("MuiFilledInput",["root","underline","input"])),Ry=Hg(Pe.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"),Ty=Hg(Pe.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Ny(e){return ln("MuiAutocomplete",e)}const jy=an("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Py,My;const Iy=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],_y=["ref"],Dy=Ep("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:o,hasClearIcon:r,hasPopupIcon:i,inputFocused:l,size:a}=n;return[{[`& .${jy.tag}`]:t.tag},{[`& .${jy.tag}`]:t[`tagSize${Ot(a)}`]},{[`& .${jy.inputRoot}`]:t.inputRoot},{[`& .${jy.input}`]:t.input},{[`& .${jy.input}`]:l&&t.inputFocused},t.root,o&&t.fullWidth,i&&t.hasPopupIcon,r&&t.hasClearIcon]}})((({ownerState:e})=>_e({[`&.${jy.focused} .${jy.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${jy.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${jy.tag}`]:_e({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${jy.inputRoot}`]:{flexWrap:"wrap",[`.${jy.hasPopupIcon}&, .${jy.hasClearIcon}&`]:{paddingRight:30},[`.${jy.hasPopupIcon}.${jy.hasClearIcon}&`]:{paddingRight:56},[`& .${jy.input}`]:{width:0,minWidth:30}},[`& .${Cy.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Cy.root}.${Mp.sizeSmall}`]:{[`& .${Cy.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ky.root}`]:{padding:9,[`.${jy.hasPopupIcon}&, .${jy.hasClearIcon}&`]:{paddingRight:39},[`.${jy.hasPopupIcon}.${jy.hasClearIcon}&`]:{paddingRight:65},[`& .${jy.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${jy.endAdornment}`]:{right:9}},[`& .${ky.root}.${Mp.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${jy.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ey.root}`]:{paddingTop:19,paddingLeft:8,[`.${jy.hasPopupIcon}&, .${jy.hasClearIcon}&`]:{paddingRight:39},[`.${jy.hasPopupIcon}.${jy.hasClearIcon}&`]:{paddingRight:65},[`& .${Ey.input}`]:{padding:"7px 4px"},[`& .${jy.endAdornment}`]:{right:9}},[`& .${Ey.root}.${Mp.sizeSmall}`]:{paddingBottom:1,[`& .${Ey.input}`]:{padding:"2.5px 4px"}},[`& .${Mp.hiddenLabel}`]:{paddingTop:8},[`& .${Ey.root}.${Mp.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${jy.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ey.root}.${Mp.hiddenLabel}.${Mp.sizeSmall}`]:{[`& .${jy.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${jy.input}`]:_e({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),Ay=Ep("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Fy=Ep(_b,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Ly=Ep(_b,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>_e({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>_e({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),Vy=Ep(Df,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jy.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>_e({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"}))),$y=Ep(Pf,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>_e({},e.typography.body1,{overflow:"auto"}))),zy=Ep("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),qy=Ep("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Hy=Ep("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${jy.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${jy.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${jy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_o(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jy.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_o(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${jy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_o(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),By=Ep(dy,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Uy=Ep("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${jy.option}`]:{paddingLeft:24}}),Wy=e.forwardRef((function(t,n){var o,r,i,l;const a=Rp({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:f,clearIcon:h=Py||(Py=Pe.jsx(Ry,{fontSize:"small"})),clearOnBlur:m=!a.freeSolo,clearOnEscape:g=!1,clearText:b="Clear",closeText:v="Close",componentsProps:y={},defaultValue:w=(a.multiple?[]:null),disableClearable:x=!1,disableCloseOnSelect:C=!1,disabled:O=!1,disabledItemsFocusable:k=!1,disableListWrap:S=!1,disablePortal:E=!1,filterSelectedOptions:R=!1,forcePopupIcon:T="auto",freeSolo:N=!1,fullWidth:j=!1,getLimitTagsText:P=(e=>`+${e}`),getOptionLabel:M=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:I,handleHomeEndKeys:_=!a.freeSolo,includeInputInList:D=!1,limitTags:A=-1,ListboxComponent:F="ul",ListboxProps:L,loading:V=!1,loadingText:$="Loading…",multiple:z=!1,noOptionsText:q="No options",openOnFocus:H=!1,openText:B="Open",PaperComponent:U=Pf,PopperComponent:W=Df,popupIcon:G=My||(My=Pe.jsx(Ty,{})),readOnly:K=!1,renderGroup:Y,renderInput:Z,renderOption:X,renderTags:Q,selectOnFocus:J=!a.freeSolo,size:ee="medium",slotProps:te={}}=a,ne=De(a,Iy),{getRootProps:oe,getInputProps:re,getInputLabelProps:ie,getPopupIndicatorProps:le,getClearProps:ae,getTagProps:se,getListboxProps:ue,getOptionProps:ce,value:de,dirty:pe,expanded:fe,id:he,popupOpen:me,focused:ge,focusedTag:be,anchorEl:ve,setAnchorEl:ye,inputValue:we,groupedOptions:xe}=yp(_e({},a,{componentName:"Autocomplete"})),Ce=!x&&!O&&pe&&!K,Oe=(!N||!0===T)&&!1!==T,{onMouseDown:ke}=re(),{ref:Se}=L??{},Ee=ue(),{ref:Re}=Ee,Te=De(Ee,_y),Ne=At(Re,Se),je=_e({},a,{disablePortal:E,expanded:fe,focused:ge,fullWidth:j,hasClearIcon:Ce,hasPopupIcon:Oe,inputFocused:-1===be,popupOpen:me,size:ee}),Me=(e=>{const{classes:t,disablePortal:n,expanded:o,focused:r,fullWidth:i,hasClearIcon:l,hasPopupIcon:a,inputFocused:s,popupOpen:u,size:c}=e;return en({root:["root",o&&"expanded",r&&"focused",i&&"fullWidth",l&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${Ot(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},Ny,t)})(je);let Ie;if(z&&de.length>0){const e=e=>_e({className:Me.tag,disabled:O},se(e));Ie=Q?Q(de,e,je):de.map(((t,n)=>Pe.jsx(wy,_e({label:M(t),size:ee},e({index:n}),p))))}if(A>-1&&Array.isArray(Ie)){const e=Ie.length-A;!ge&&e>0&&(Ie=Ie.splice(0,A),Ie.push(Pe.jsx("span",{className:Me.tag,children:P(e)},Ie.length)))}const Ae=Y||(e=>Pe.jsxs("li",{children:[Pe.jsx(By,{className:Me.groupLabel,ownerState:je,component:"div",children:e.group}),Pe.jsx(Uy,{className:Me.groupUl,ownerState:je,children:e.children})]},e.key)),Fe=X||((e,t)=>Pe.jsx("li",_e({},e,{children:M(t)}))),Le=(e,t)=>{const n=ce({option:e,index:t});return Fe(_e({},n,{className:Me.option}),e,{selected:n["aria-selected"],index:t,inputValue:we})},Ve=null!=(o=te.clearIndicator)?o:y.clearIndicator,$e=null!=(r=te.paper)?r:y.paper,ze=null!=(i=te.popper)?i:y.popper,qe=null!=(l=te.popupIndicator)?l:y.popupIndicator;return Pe.jsxs(e.Fragment,{children:[Pe.jsx(Dy,_e({ref:n,className:vo(Me.root,f),ownerState:je},oe(ne),{children:Z({id:he,disabled:O,fullWidth:!0,size:"small"===ee?"small":void 0,InputLabelProps:ie(),InputProps:_e({ref:ye,className:Me.inputRoot,startAdornment:Ie,onClick:e=>{e.target===e.currentTarget&&ke(e)}},(Ce||Oe)&&{endAdornment:Pe.jsxs(Ay,{className:Me.endAdornment,ownerState:je,children:[Ce?Pe.jsx(Fy,_e({},ae(),{"aria-label":b,title:b,ownerState:je},Ve,{className:vo(Me.clearIndicator,null==Ve?void 0:Ve.className),children:h})):null,Oe?Pe.jsx(Ly,_e({},le(),{disabled:O,"aria-label":me?v:B,title:me?v:B,ownerState:je},qe,{className:vo(Me.popupIndicator,null==qe?void 0:qe.className),children:G})):null]})}),inputProps:_e({className:Me.input,disabled:O,readOnly:K},re())})})),ve?Pe.jsx(Vy,_e({as:W,disablePortal:E,style:{width:ve?ve.clientWidth:null},ownerState:je,role:"presentation",anchorEl:ve,open:me},ze,{className:vo(Me.popper,null==ze?void 0:ze.className),children:Pe.jsxs($y,_e({ownerState:je,as:U},$e,{className:vo(Me.paper,null==$e?void 0:$e.className),children:[V&&0===xe.length?Pe.jsx(zy,{className:Me.loading,ownerState:je,children:$}):null,0!==xe.length||N||V?null:Pe.jsx(qy,{className:Me.noOptions,ownerState:je,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:q}),xe.length>0?Pe.jsx(Hy,_e({as:F,className:Me.listbox,ownerState:je},Te,L,{ref:Ne,children:xe.map(((e,t)=>I?Ae({key:e.key,group:e.group,children:e.options.map(((t,n)=>Le(t,e.index+n)))}):Le(e,t)))})):null]}))})):null]})}));"production"!==process.env.NODE_ENV&&(Wy.propTypes={autoComplete:pe.bool,autoHighlight:pe.bool,autoSelect:pe.bool,blurOnSelect:pe.oneOfType([pe.oneOf(["mouse","touch"]),pe.bool]),ChipProps:pe.object,classes:pe.object,className:pe.string,clearIcon:pe.node,clearOnBlur:pe.bool,clearOnEscape:pe.bool,clearText:pe.string,closeText:pe.string,componentsProps:pe.shape({clearIndicator:pe.object,paper:pe.object,popper:pe.object,popupIndicator:pe.object}),defaultValue:nt(pe.any,(e=>e.multiple&&void 0!==e.defaultValue&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join("\n")):null)),disableClearable:pe.bool,disableCloseOnSelect:pe.bool,disabled:pe.bool,disabledItemsFocusable:pe.bool,disableListWrap:pe.bool,disablePortal:pe.bool,filterOptions:pe.func,filterSelectedOptions:pe.bool,forcePopupIcon:pe.oneOfType([pe.oneOf(["auto"]),pe.bool]),freeSolo:pe.bool,fullWidth:pe.bool,getLimitTagsText:pe.func,getOptionDisabled:pe.func,getOptionLabel:pe.func,groupBy:pe.func,handleHomeEndKeys:pe.bool,id:pe.string,includeInputInList:pe.bool,inputValue:pe.string,isOptionEqualToValue:pe.func,limitTags:Qt,ListboxComponent:pe.elementType,ListboxProps:pe.object,loading:pe.bool,loadingText:pe.node,multiple:pe.bool,noOptionsText:pe.node,onChange:pe.func,onClose:pe.func,onHighlightChange:pe.func,onInputChange:pe.func,onOpen:pe.func,open:pe.bool,openOnFocus:pe.bool,openText:pe.string,options:pe.array.isRequired,PaperComponent:pe.elementType,PopperComponent:pe.elementType,popupIcon:pe.node,readOnly:pe.bool,renderGroup:pe.func,renderInput:pe.func.isRequired,renderOption:pe.func,renderTags:pe.func,selectOnFocus:pe.bool,size:pe.oneOfType([pe.oneOf(["small","medium"]),pe.string]),slotProps:pe.shape({clearIndicator:pe.object,paper:pe.object,popper:pe.object,popupIndicator:pe.object}),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),value:nt(pe.any,(e=>e.multiple&&void 0!==e.value&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join("\n")):null))});const Gy=Wy,Ky=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function Yy(t){const{item:n,applyValue:o,type:r,apiRef:i,focusElementRef:l,color:a,error:s,helperText:u,size:c,variant:d}=t,p=De(t,Ky),f={color:a,error:s,helperText:u,size:c,variant:d},[h,m]=e.useState(n.value||[]),g=It(),b=Ra();e.useEffect((()=>{var e;const t=null!=(e=n.value)?e:[];m(t.map(String))}),[n.value]);const v=e.useCallback(((e,t)=>{m(t.map(String)),o(_e({},n,{value:[...t]}))}),[o,n]);return Pe.jsx(Gy,_e({multiple:!0,freeSolo:!0,options:[],filterOptions:(e,t)=>{const{inputValue:n}=t;return null==n||""===n?[]:[n]},id:g,value:h,onChange:v,renderTags:(e,t)=>e.map(((e,n)=>Pe.jsx(b.slots.baseChip,_e({variant:"outlined",size:"small",label:e},t({index:n}))))),renderInput:e=>{var t;return Pe.jsx(b.slots.baseTextField,_e({},e,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:_e({},e.InputLabelProps,{shrink:!0}),inputRef:l,type:r||"text"},f,null==(t=b.slotProps)?void 0:t.baseTextField))}},p))}"production"!==process.env.NODE_ENV&&(Yy.propTypes={apiRef:pe.shape({current:pe.object.isRequired}).isRequired,applyValue:pe.func.isRequired,focusElementRef:pe.oneOfType([pe.func,pe.object]),item:pe.shape({field:pe.string.isRequired,id:pe.oneOfType([pe.number,pe.string]),operator:pe.string.isRequired,value:pe.any}).isRequired,type:pe.oneOf(["number","text"])});const Zy=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],Xy=mp();function Qy(t){var n,o;const{item:r,applyValue:i,apiRef:l,focusElementRef:a,color:s,error:u,helperText:c,size:d,variant:p="standard",getOptionLabel:f,getOptionValue:h}=t,m=De(t,Zy),g={color:s,error:u,helperText:c,size:d,variant:p},b=It(),v=Ra();let y=null;if(r.field){const e=l.current.getColumn(r.field);tf(e)&&(y=e)}const w=h||(null==(n=y)?void 0:n.getOptionValue),x=f||(null==(o=y)?void 0:o.getOptionLabel),C=e.useCallback(((e,t)=>w(e)===w(t)),[w]),O=e.useMemo((()=>{var e;return null!=(e=y)&&e.valueOptions?"function"==typeof y.valueOptions?y.valueOptions({field:y.field}):y.valueOptions:[]}),[y]),k=e.useMemo((()=>null==O?void 0:O.map(w)),[O,w]),S=e.useMemo((()=>Array.isArray(r.value)?void 0!==O?r.value.map((e=>null==k?void 0:k.findIndex((t=>t===e)))).filter((e=>e>=0)).map((e=>O[e])):r.value:[]),[r.value,O,k]);e.useEffect((()=>{(!Array.isArray(r.value)||S.length!==r.value.length)&&i(_e({},r,{value:S.map(w)}))}),[r,S,i,w]);const E=e.useCallback(((e,t)=>{i(_e({},r,{value:t.map(w)}))}),[i,r,w]);return Pe.jsx(Gy,_e({multiple:!0,options:O,isOptionEqualToValue:C,filterOptions:Xy,id:b,value:S,onChange:E,getOptionLabel:x,renderTags:(e,t)=>e.map(((e,n)=>Pe.jsx(v.slots.baseChip,_e({variant:"outlined",size:"small",label:x(e)},t({index:n}))))),renderInput:e=>{var t;return Pe.jsx(v.slots.baseTextField,_e({},e,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:_e({},e.InputLabelProps,{shrink:!0}),inputRef:a,type:"singleSelect"},g,null==(t=v.slotProps)?void 0:t.baseTextField))}},m))}"production"!==process.env.NODE_ENV&&(Qy.propTypes={apiRef:pe.shape({current:pe.object.isRequired}).isRequired,applyValue:pe.func.isRequired,focusElementRef:pe.oneOfType([pe.func,pe.object]),getOptionLabel:pe.func,getOptionValue:pe.func,item:pe.shape({field:pe.string.isRequired,id:pe.oneOfType([pe.number,pe.string]),operator:pe.string.isRequired,value:pe.any}).isRequired,type:pe.oneOf(["singleSelect"])});const Jy=["children","onClick"],ew=e.forwardRef((function(t,n){var o;const{children:r,onClick:i}=t,l=De(t,Jy),a=Sa(),s=Ra(),u=It(),c=It(),[d,p]=e.useState(!1),f=e.useRef(null),h=At(n,f),m=()=>p(!1);return null==r?null:Pe.jsxs(e.Fragment,{children:[Pe.jsx(s.slots.baseButton,_e({ref:h,size:"small",startIcon:Pe.jsx(s.slots.exportIcon,{}),"aria-expanded":d,"aria-label":a.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":d?c:void 0,id:u},l,{onClick:e=>{p((e=>!e)),null==i||i(e)}},null==(o=s.slotProps)?void 0:o.baseButton,{children:a.current.getLocaleText("toolbarExport")})),Pe.jsx($f,{open:d,target:f.current,onClickAway:e=>{var t;f.current===e.target||null!=(t=f.current)&&t.contains(e.target)||p(!1)},position:"bottom-start",children:Pe.jsx(wf,{id:c,className:qa.menuList,"aria-labelledby":u,onKeyDown:e=>{Zp(e.key)&&e.preventDefault(),ef(e.key)&&m()},autoFocusItem:d,children:e.Children.map(r,(t=>e.isValidElement(t)?e.cloneElement(t,{hideMenu:m}):t))})})]})})),tw=["hideMenu","options"],nw=["hideMenu","options"],ow=["csvOptions","printOptions","excelOptions"];function rw(e){const t=Sa(),{hideMenu:n,options:o}=e,r=De(e,tw);return Pe.jsx(zh,_e({onClick:()=>{t.current.exportDataAsCsv(o),null==n||n()}},r,{children:t.current.getLocaleText("toolbarExportCSV")}))}function iw(e){const t=Sa(),{hideMenu:n,options:o}=e,r=De(e,nw);return Pe.jsx(zh,_e({onClick:()=>{t.current.exportDataAsPrint(o),null==n||n()}},r,{children:t.current.getLocaleText("toolbarExportPrint")}))}const lw=e.forwardRef((function(t,n){const{csvOptions:o={},printOptions:r={},excelOptions:i}=t,l=De(t,ow),a=Sa().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:i,csvOptions:o,printOptions:r}).sort(((e,t)=>e.componentName>t.componentName?1:-1));return 0===a.length?null:Pe.jsx(ew,_e({},l,{ref:n,children:a.map(((t,n)=>e.cloneElement(t.component,{key:n})))}))}));"production"!==process.env.NODE_ENV&&(lw.propTypes={csvOptions:pe.object,printOptions:pe.object});const aw=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],sw=Ep(Ap,{shouldForwardProp:e=>kp(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._p(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"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})`),_e({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${Cy.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Cy.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(.${Cy.disabled}, .${Cy.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Cy.disabled}:before`]:{borderBottomStyle:"dotted"}})})),uw=Ep(Fp,{name:"MuiInput",slot:"Input",overridesResolver:Dp})({}),cw=e.forwardRef((function(e,t){var n,o,r,i;const l=Rp({props:e,name:"MuiInput"}),{disableUnderline:a,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=l,g=De(l,aw),b=(e=>{const{classes:t,disableUnderline:n}=e;return _e({},t,en({root:["root",!n&&"underline"],input:["input"]},xy,t))})(l),v={root:{ownerState:{disableUnderline:a}}},y=f??u?it(f??u,v):v,w=null!=(n=null!=(o=h.root)?o:s.Root)?n:sw,x=null!=(r=null!=(i=h.input)?i:s.Input)?r:uw;return Pe.jsx($p,_e({slots:{root:w,input:x},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));"production"!==process.env.NODE_ENV&&(cw.propTypes={autoComplete:pe.string,autoFocus:pe.bool,classes:pe.object,color:pe.oneOfType([pe.oneOf(["primary","secondary"]),pe.string]),components:pe.shape({Input:pe.elementType,Root:pe.elementType}),componentsProps:pe.shape({input:pe.object,root:pe.object}),defaultValue:pe.any,disabled:pe.bool,disableUnderline:pe.bool,endAdornment:pe.node,error:pe.bool,fullWidth:pe.bool,id:pe.string,inputComponent:pe.elementType,inputProps:pe.object,inputRef:Ct,margin:pe.oneOf(["dense","none"]),maxRows:pe.oneOfType([pe.number,pe.string]),minRows:pe.oneOfType([pe.number,pe.string]),multiline:pe.bool,name:pe.string,onChange:pe.func,placeholder:pe.string,readOnly:pe.bool,required:pe.bool,rows:pe.oneOfType([pe.number,pe.string]),slotProps:pe.shape({input:pe.object,root:pe.object}),slots:pe.shape({input:pe.elementType,root:pe.elementType}),startAdornment:pe.node,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),type:pe.string,value:pe.any}),cw.muiName="Input";const dw=cw,pw=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],fw=Ep(Ap,{shouldForwardProp:e=>kp(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._p(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const o="light"===e.palette.mode,r=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return _e({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ey.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ey.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,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"},[`&.${Ey.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ey.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})`:r}`,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(.${Ey.disabled}, .${Ey.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ey.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&_e({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),hw=Ep(Fp,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dp})((({theme:e,ownerState:t})=>_e({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),mw=e.forwardRef((function(e,t){var n,o,r,i;const l=Rp({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=l,m=De(l,pw),g=_e({},l,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return _e({},t,en({root:["root",!n&&"underline"],input:["input"]},Sy,t))})(l),v={root:{ownerState:g},input:{ownerState:g}},y=p??s?it(p??s,v):v,w=null!=(n=null!=(o=f.root)?o:a.Root)?n:fw,x=null!=(r=null!=(i=f.input)?i:a.Input)?r:hw;return Pe.jsx($p,_e({slots:{root:w,input:x},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));"production"!==process.env.NODE_ENV&&(mw.propTypes={autoComplete:pe.string,autoFocus:pe.bool,classes:pe.object,color:pe.oneOfType([pe.oneOf(["primary","secondary"]),pe.string]),components:pe.shape({Input:pe.elementType,Root:pe.elementType}),componentsProps:pe.shape({input:pe.object,root:pe.object}),defaultValue:pe.any,disabled:pe.bool,disableUnderline:pe.bool,endAdornment:pe.node,error:pe.bool,fullWidth:pe.bool,hiddenLabel:pe.bool,id:pe.string,inputComponent:pe.elementType,inputProps:pe.object,inputRef:Ct,margin:pe.oneOf(["dense","none"]),maxRows:pe.oneOfType([pe.number,pe.string]),minRows:pe.oneOfType([pe.number,pe.string]),multiline:pe.bool,name:pe.string,onChange:pe.func,placeholder:pe.string,readOnly:pe.bool,required:pe.bool,rows:pe.oneOfType([pe.number,pe.string]),slotProps:pe.shape({input:pe.object,root:pe.object}),slots:pe.shape({input:pe.elementType,root:pe.elementType}),startAdornment:pe.node,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),type:pe.string,value:pe.any}),mw.muiName="Input";const gw=mw;var bw;const vw=["children","classes","className","label","notched"],yw=Ep("fieldset")({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%"}),ww=Ep("legend")((({ownerState:e,theme:t})=>_e({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&_e({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function xw(e){const{className:t,label:n,notched:o}=e,r=De(e,vw),i=null!=n&&""!==n,l=_e({},e,{notched:o,withLabel:i});return Pe.jsx(yw,_e({"aria-hidden":!0,className:t,ownerState:l},r,{children:Pe.jsx(ww,{ownerState:l,children:i?Pe.jsx("span",{children:n}):bw||(bw=Pe.jsx("span",{className:"notranslate",children:""}))})}))}"production"!==process.env.NODE_ENV&&(xw.propTypes={children:pe.node,classes:pe.object,className:pe.string,label:pe.node,notched:pe.bool.isRequired,style:pe.object});const Cw=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ow=Ep(Ap,{shouldForwardProp:e=>kp(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:_p})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return _e({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ky.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ky.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ky.focused} .${ky.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ky.error} .${ky.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ky.disabled} .${ky.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&_e({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),kw=Ep(xw,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"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}})),Sw=Ep(Fp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dp})((({theme:e,ownerState:t})=>_e({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),Ew=e.forwardRef((function(t,n){var o,r,i,l,a;const s=Rp({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=s,b=De(s,Cw),v=(e=>{const{classes:t}=e;return _e({},t,en({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Oy,t))})(s),y=Op(),w=wp({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=_e({},s,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:f,size:w.size,type:g}),C=null!=(o=null!=(r=m.root)?r:u.Root)?o:Ow,O=null!=(i=null!=(l=m.input)?l:u.Input)?i:Sw;return Pe.jsx($p,_e({slots:{root:C,input:O},renderSuffix:t=>Pe.jsx(kw,{ownerState:x,className:v.notchedOutline,label:null!=p&&""!==p&&w.required?a||(a=Pe.jsxs(e.Fragment,{children:[p," ","*"]})):p,notched:typeof h<"u"?h:!!(t.startAdornment||t.filled||t.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:n,type:g},b,{classes:_e({},v,{notchedOutline:null})}))}));"production"!==process.env.NODE_ENV&&(Ew.propTypes={autoComplete:pe.string,autoFocus:pe.bool,classes:pe.object,color:pe.oneOfType([pe.oneOf(["primary","secondary"]),pe.string]),components:pe.shape({Input:pe.elementType,Root:pe.elementType}),defaultValue:pe.any,disabled:pe.bool,endAdornment:pe.node,error:pe.bool,fullWidth:pe.bool,id:pe.string,inputComponent:pe.elementType,inputProps:pe.object,inputRef:Ct,label:pe.node,margin:pe.oneOf(["dense","none"]),maxRows:pe.oneOfType([pe.number,pe.string]),minRows:pe.oneOfType([pe.number,pe.string]),multiline:pe.bool,name:pe.string,notched:pe.bool,onChange:pe.func,placeholder:pe.string,readOnly:pe.bool,required:pe.bool,rows:pe.oneOfType([pe.number,pe.string]),slots:pe.shape({input:pe.elementType,root:pe.elementType}),startAdornment:pe.node,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),type:pe.string,value:pe.any}),Ew.muiName="Input";const Rw=Ew;function Tw(e){return ln("MuiFormLabel",e)}const Nw=an("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),jw=["children","className","color","component","disabled","error","filled","focused","required"],Pw=Ep("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>_e({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>_e({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Nw.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Nw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nw.error}`]:{color:(e.vars||e).palette.error.main}}))),Mw=Ep("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Nw.error}`]:{color:(e.vars||e).palette.error.main}}))),Iw=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiFormLabel"}),{children:o,className:r,component:i="label"}=n,l=De(n,jw),a=wp({props:n,muiFormControl:Op(),states:["color","required","focused","disabled","error","filled"]}),s=_e({},n,{color:a.color||"primary",component:i,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),u=(e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:l,required:a}=e;return en({root:["root",`color${Ot(n)}`,r&&"disabled",i&&"error",l&&"filled",o&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]},Tw,t)})(s);return Pe.jsxs(Pw,_e({as:i,ownerState:s,className:vo(u.root,r),ref:t},l,{children:[o,a.required&&Pe.jsxs(Mw,{ownerState:s,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));"production"!==process.env.NODE_ENV&&(Iw.propTypes={children:pe.node,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["error","info","primary","secondary","success","warning"]),pe.string]),component:pe.elementType,disabled:pe.bool,error:pe.bool,filled:pe.bool,focused:pe.bool,required:pe.bool,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const _w=Iw;function Dw(e){return ln("MuiInputLabel",e)}an("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Aw=["disableAnimation","margin","shrink","variant","className"],Fw=Ep(_w,{shouldForwardProp:e=>kp(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nw.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>_e({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&_e({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&_e({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&_e({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),Lw=e.forwardRef((function(e,t){const n=Rp({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:r,className:i}=n,l=De(n,Aw),a=Op();let s=r;typeof s>"u"&&a&&(s=a.filled||a.focused||a.adornedStart);const u=wp({props:n,muiFormControl:a,states:["size","variant","required"]}),c=_e({},n,{disableAnimation:o,formControl:a,shrink:s,size:u.size,variant:u.variant,required:u.required}),d=(e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:l,required:a}=e;return _e({},t,en({root:["root",n&&"formControl",!i&&"animated",r&&"shrink","small"===o&&"sizeSmall",l],asterisk:[a&&"asterisk"]},Dw,t))})(c);return Pe.jsx(Fw,_e({"data-shrink":s,ownerState:c,ref:t,className:vo(d.root,i)},l,{classes:d}))}));"production"!==process.env.NODE_ENV&&(Lw.propTypes={children:pe.node,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["error","info","primary","secondary","success","warning"]),pe.string]),disableAnimation:pe.bool,disabled:pe.bool,error:pe.bool,focused:pe.bool,margin:pe.oneOf(["dense"]),required:pe.bool,shrink:pe.bool,size:pe.oneOfType([pe.oneOf(["normal","small"]),pe.string]),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOf(["filled","outlined","standard"])});const Vw=Lw;function $w(e){return ln("MuiFormHelperText",e)}const zw=an("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var qw;const Hw=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Bw=Ep("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Ot(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>_e({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${zw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${zw.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),Uw=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiFormHelperText"}),{children:o,className:r,component:i="p"}=n,l=De(n,Hw),a=wp({props:n,muiFormControl:Op(),states:["variant","size","disabled","error","filled","focused","required"]}),s=_e({},n,{component:i,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),u=(e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:l,focused:a,required:s}=e;return en({root:["root",r&&"disabled",i&&"error",o&&`size${Ot(o)}`,n&&"contained",a&&"focused",l&&"filled",s&&"required"]},$w,t)})(s);return Pe.jsx(Bw,_e({as:i,ownerState:s,className:vo(u.root,r),ref:t},l,{children:" "===o?qw||(qw=Pe.jsx("span",{className:"notranslate",children:""})):o}))}));"production"!==process.env.NODE_ENV&&(Uw.propTypes={children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,disabled:pe.bool,error:pe.bool,filled:pe.bool,focused:pe.bool,margin:pe.oneOf(["dense"]),required:pe.bool,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOfType([pe.oneOf(["filled","outlined","standard"]),pe.string])});const Ww=Uw;function Gw(e){return ln("MuiBackdrop",e)}an("MuiBackdrop",["root","invisible"]);const Kw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Yw=Ep("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>_e({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"},e.invisible&&{backgroundColor:"transparent"}))),Zw=e.forwardRef((function(e,t){var n,o,r;const i=Rp({props:e,name:"MuiBackdrop"}),{children:l,className:a,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=xr,transitionDuration:g}=i,b=De(i,Kw),v=_e({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return en({root:["root",n&&"invisible"]},Gw,t)})(v),w=null!=(n=f.root)?n:c.root;return Pe.jsx(m,_e({in:p,timeout:g},b,{children:Pe.jsx(Yw,_e({"aria-hidden":!0},w,{as:null!=(o=null!=(r=h.root)?r:u.Root)?o:s,className:vo(y.root,a,null==w?void 0:w.className),ownerState:_e({},v,null==w?void 0:w.ownerState),classes:y,ref:t,children:l}))}))}));"production"!==process.env.NODE_ENV&&(Zw.propTypes={children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,components:pe.shape({Root:pe.elementType}),componentsProps:pe.shape({root:pe.object}),invisible:pe.bool,open:pe.bool.isRequired,slotProps:pe.shape({root:pe.object}),slots:pe.shape({root:pe.elementType}),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),TransitionComponent:pe.elementType,transitionDuration:pe.oneOfType([pe.number,pe.shape({appear:pe.number,enter:pe.number,exit:pe.number})])});const Xw=Zw,Qw=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],Jw=Ep("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>_e({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),ex=Ep(Xw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),tx=e.forwardRef((function(t,n){var o,r,i,l,a,s;const u=Rp({name:"MuiModal",props:t}),{BackdropComponent:c=ex,BackdropProps:d,classes:p,className:f,closeAfterTransition:h=!1,children:m,container:g,component:b,components:v={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:C=!1,disablePortal:O=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:E=!1,keepMounted:R=!1,onBackdropClick:T,onClose:N,open:j,slotProps:P,slots:M,theme:I}=u,_=De(u,Qw),[D,A]=e.useState(!0),F={container:g,closeAfterTransition:h,disableAutoFocus:w,disableEnforceFocus:x,disableEscapeKeyDown:C,disablePortal:O,disableRestoreFocus:k,disableScrollLock:S,hideBackdrop:E,keepMounted:R,onBackdropClick:T,onClose:N,open:j},L=_e({},u,F,{exited:D}),V=null!=(o=null!=(r=null==M?void 0:M.root)?r:v.Root)?o:Jw,$=null!=(i=null!=(l=null==M?void 0:M.backdrop)?l:v.Backdrop)?i:c,z=null!=(a=null==P?void 0:P.root)?a:y.root,q=null!=(s=null==P?void 0:P.backdrop)?s:y.backdrop;return Pe.jsx(ap,_e({slots:{root:V,backdrop:$},slotProps:{root:()=>_e({},uc(z,L),!rc(V)&&{as:b,theme:I},{className:vo(f,null==z?void 0:z.className,null==p?void 0:p.root,!L.open&&L.exited&&(null==p?void 0:p.hidden))}),backdrop:()=>_e({},d,uc(q,L),{className:vo(null==q?void 0:q.className,null==d?void 0:d.className,null==p?void 0:p.backdrop)})},onTransitionEnter:()=>A(!1),onTransitionExited:()=>A(!0),ref:n},_,F,{children:m}))}));"production"!==process.env.NODE_ENV&&(tx.propTypes={BackdropComponent:pe.elementType,BackdropProps:pe.object,children:st.isRequired,classes:pe.object,className:pe.string,closeAfterTransition:pe.bool,component:pe.elementType,components:pe.shape({Backdrop:pe.elementType,Root:pe.elementType}),componentsProps:pe.shape({backdrop:pe.oneOfType([pe.func,pe.object]),root:pe.oneOfType([pe.func,pe.object])}),container:pe.oneOfType([xt,pe.func]),disableAutoFocus:pe.bool,disableEnforceFocus:pe.bool,disableEscapeKeyDown:pe.bool,disablePortal:pe.bool,disableRestoreFocus:pe.bool,disableScrollLock:pe.bool,hideBackdrop:pe.bool,keepMounted:pe.bool,onBackdropClick:pe.func,onClose:pe.func,onTransitionEnter:pe.func,onTransitionExited:pe.func,open:pe.bool.isRequired,slotProps:pe.shape({backdrop:pe.oneOfType([pe.func,pe.object]),root:pe.oneOfType([pe.func,pe.object])}),slots:pe.shape({backdrop:pe.elementType,root:pe.elementType}),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const nx=tx;function ox(e){return ln("MuiPopover",e)}an("MuiPopover",["root","paper"]);const rx=["onEntering"],ix=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],lx=["slotProps"];function ax(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function sx(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ux(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function cx(e){return"function"==typeof e?e():e}const dx=Ep(nx,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),px=Ep(Pf,{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}),fx=e.forwardRef((function(t,n){var o,r,i;const l=Rp({props:t,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:w,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:C=Ef,transitionDuration:O="auto",TransitionProps:{onEntering:k}={}}=l,S=De(l.TransitionProps,rx),E=De(l,ix),R=null!=(o=null==w?void 0:w.paper)?o:v,T=e.useRef(),N=At(T,R.ref),j=_e({},l,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:R,transformOrigin:x,TransitionComponent:C,transitionDuration:O,TransitionProps:S}),P=(e=>{const{classes:t}=e;return en({root:["root"],paper:["paper"]},ox,t)})(j),M=e.useCallback((()=>{if("anchorPosition"===d)return"production"!==process.env.NODE_ENV&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const e=cx(s),t=e&&1===e.nodeType?e:Rt(T.current).body,n=t.getBoundingClientRect();if("production"!==process.env.NODE_ENV){const e=t.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&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("\n"))}return{top:n.top+ax(n,u.vertical),left:n.left+sx(n,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),I=e.useCallback((e=>({vertical:ax(e,x.vertical),horizontal:sx(e,x.horizontal)})),[x.horizontal,x.vertical]),_=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=I(t);if("none"===d)return{top:null,left:null,transformOrigin:ux(n)};const o=M();let r=o.top-n.vertical,i=o.left-n.horizontal;const l=r+t.height,a=i+t.width,u=Tt(cx(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(r<g){const e=r-g;r-=e,n.vertical+=e}else if(l>c){const e=l-c;r-=e,n.vertical+=e}if("production"!==process.env.NODE_ENV&&t.height>c&&t.height&&c&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${t.height-c}px).`,"Please consider adding a `max-height` to improve the user-experience."].join("\n")),i<g){const e=i-g;i-=e,n.horizontal+=e}else if(a>p){const e=a-p;i-=e,n.horizontal+=e}return{top:`${Math.round(r)}px`,left:`${Math.round(i)}px`,transformOrigin:ux(n)}}),[s,d,M,I,g]),[D,A]=e.useState(b),F=e.useCallback((()=>{const e=T.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[_]);e.useEffect((()=>{b&&F()})),e.useImperativeHandle(a,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),e.useEffect((()=>{if(!b)return;const e=St((()=>{F()})),t=Tt(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let L=O;"auto"===O&&!C.muiSupportAuto&&(L=void 0);const V=h||(s?Rt(cx(s)).body:void 0),$=null!=(r=null==y?void 0:y.root)?r:dx,z=null!=(i=null==y?void 0:y.paper)?i:px,q=fc({elementType:z,externalSlotProps:_e({},R,{style:D?R.style:_e({},R.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:j,className:vo(P.paper,null==R?void 0:R.className)}),H=fc({elementType:$,externalSlotProps:(null==w?void 0:w.root)||{},externalForwardedProps:E,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:b},ownerState:j,className:vo(P.root,f)}),{slotProps:B}=H,U=De(H,lx);return Pe.jsx($,_e({},U,!rc($)&&{slotProps:B},{children:Pe.jsx(C,_e({appear:!0,in:b,onEntering:(e,t)=>{k&&k(e,t),F()},onExited:()=>{A(!1)},timeout:L},S,{children:Pe.jsx(z,_e({},q,{children:p}))}))}))}));"production"!==process.env.NODE_ENV&&(fx.propTypes={action:Ct,anchorEl:nt(pe.oneOfType([xt,pe.func]),(e=>{if(e.open&&(!e.anchorReference||"anchorEl"===e.anchorReference)){const t=cx(e.anchorEl);if(!t||1!==t.nodeType)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("\n"));{const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)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("\n"))}}return null})),anchorOrigin:pe.shape({horizontal:pe.oneOfType([pe.oneOf(["center","left","right"]),pe.number]).isRequired,vertical:pe.oneOfType([pe.oneOf(["bottom","center","top"]),pe.number]).isRequired}),anchorPosition:pe.shape({left:pe.number.isRequired,top:pe.number.isRequired}),anchorReference:pe.oneOf(["anchorEl","anchorPosition","none"]),children:pe.node,classes:pe.object,className:pe.string,container:pe.oneOfType([xt,pe.func]),elevation:Qt,marginThreshold:pe.number,onClose:pe.func,open:pe.bool.isRequired,PaperProps:pe.shape({component:ut}),slotProps:pe.shape({paper:pe.oneOfType([pe.func,pe.object]),root:pe.oneOfType([pe.func,pe.object])}),slots:pe.shape({paper:pe.elementType,root:pe.elementType}),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),transformOrigin:pe.shape({horizontal:pe.oneOfType([pe.oneOf(["center","left","right"]),pe.number]).isRequired,vertical:pe.oneOfType([pe.oneOf(["bottom","center","top"]),pe.number]).isRequired}),TransitionComponent:pe.elementType,transitionDuration:pe.oneOfType([pe.oneOf(["auto"]),pe.number,pe.shape({appear:pe.number,enter:pe.number,exit:pe.number})]),TransitionProps:pe.object});const hx=fx;function mx(e){return ln("MuiMenu",e)}an("MuiMenu",["root","paper","list"]);const gx=["onEntering"],bx=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],vx={vertical:"top",horizontal:"right"},yx={vertical:"top",horizontal:"left"},wx=Ep(hx,{shouldForwardProp:e=>kp(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xx=Ep(px,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Cx=Ep(wf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ox=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,disableAutoFocusItem:l=!1,MenuListProps:a={},onClose:s,open:u,PaperProps:c={},PopoverClasses:d,transitionDuration:p="auto",TransitionProps:{onEntering:f}={},variant:h="selectedMenu"}=o,m=De(o.TransitionProps,gx),g=De(o,bx),b=mr(),v="rtl"===b.direction,y=_e({},o,{autoFocus:r,disableAutoFocusItem:l,MenuListProps:a,onEntering:f,PaperProps:c,transitionDuration:p,TransitionProps:m,variant:h}),w=(e=>{const{classes:t}=e;return en({root:["root"],paper:["paper"],list:["list"]},mx,t)})(y),x=r&&!l&&u,C=e.useRef(null);let O=-1;return e.Children.map(i,((t,n)=>{e.isValidElement(t)&&("production"!==process.env.NODE_ENV&&bt.isFragment(t)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),t.props.disabled||("selectedMenu"===h&&t.props.selected||-1===O)&&(O=n))})),Pe.jsx(wx,_e({onClose:s,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?vx:yx,slots:{paper:xx},slotProps:{paper:_e({},c,{classes:_e({},c.classes,{root:w.paper})})},className:w.root,open:u,ref:n,transitionDuration:p,TransitionProps:_e({onEntering:(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,b),f&&f(e,t)}},m),ownerState:y},g,{classes:d,children:Pe.jsx(Cx,_e({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),s&&s(e,"tabKeyDown"))},actions:C,autoFocus:r&&(-1===O||l),autoFocusItem:x,variant:h},a,{className:vo(w.list,a.className),children:i}))}))}));"production"!==process.env.NODE_ENV&&(Ox.propTypes={anchorEl:pe.oneOfType([xt,pe.func]),autoFocus:pe.bool,children:pe.node,classes:pe.object,disableAutoFocusItem:pe.bool,MenuListProps:pe.object,onClose:pe.func,open:pe.bool.isRequired,PaperProps:pe.object,PopoverClasses:pe.object,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),transitionDuration:pe.oneOfType([pe.oneOf(["auto"]),pe.number,pe.shape({appear:pe.number,enter:pe.number,exit:pe.number})]),TransitionProps:pe.object,variant:pe.oneOf(["menu","selectedMenu"])});const kx=Ox;function Sx(e){return ln("MuiNativeSelect",e)}const Ex=an("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rx=["className","disabled","error","IconComponent","inputRef","variant"],Tx=({ownerState:e,theme:t})=>_e({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":_e({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Ex.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Nx=Ep("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:kp,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ex.multiple}`]:t.multiple}]}})(Tx),jx=({ownerState:e,theme:t})=>_e({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Ex.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Px=Ep("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ot(n.variant)}`],n.open&&t.iconOpen]}})(jx),Mx=e.forwardRef((function(t,n){const{className:o,disabled:r,error:i,IconComponent:l,inputRef:a,variant:s="standard"}=t,u=De(t,Rx),c=_e({},t,{disabled:r,variant:s,error:i}),d=(e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:l}=e;return en({select:["select",n,o&&"disabled",r&&"multiple",l&&"error"],icon:["icon",`icon${Ot(n)}`,i&&"iconOpen",o&&"disabled"]},Sx,t)})(c);return Pe.jsxs(e.Fragment,{children:[Pe.jsx(Nx,_e({ownerState:c,className:vo(d.select,o),disabled:r,ref:a||n},u)),t.multiple?null:Pe.jsx(Px,{as:l,ownerState:c,className:d.icon})]})}));"production"!==process.env.NODE_ENV&&(Mx.propTypes={children:pe.node,classes:pe.object,className:pe.string,disabled:pe.bool,error:pe.bool,IconComponent:pe.elementType.isRequired,inputRef:Ct,multiple:pe.bool,name:pe.string,onChange:pe.func,value:pe.any,variant:pe.oneOf(["standard","outlined","filled"])});const Ix=Mx;function _x(e){return ln("MuiSelect",e)}const Dx=an("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ax;const Fx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Lx=Ep("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Dx.select}`]:t.select},{[`&.${Dx.select}`]:t[n.variant]},{[`&.${Dx.error}`]:t.error},{[`&.${Dx.multiple}`]:t.multiple}]}})(Tx,{[`&.${Dx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Vx=Ep("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ot(n.variant)}`],n.open&&t.iconOpen]}})(jx),$x=Ep("input",{shouldForwardProp:e=>Sp(e)&&"classes"!==e,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 zx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function qx(e){return null==e||"string"==typeof e&&!e.trim()}const Hx=e.forwardRef((function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:l,children:a,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:w,onChange:x,onClose:C,onFocus:O,onOpen:k,open:S,readOnly:E,renderValue:R,SelectDisplayProps:T={},tabIndex:N,value:j,variant:P="standard"}=t,M=De(t,Fx),[I,_]=_t({controlled:j,default:c,name:"Select"}),[D,A]=_t({controlled:S,default:u,name:"Select"}),F=e.useRef(null),L=e.useRef(null),[V,$]=e.useState(null),{current:z}=e.useRef(null!=S),[q,H]=e.useState(),B=At(n,m),U=e.useCallback((e=>{L.current=e,e&&$(e)}),[]),W=null==V?void 0:V.parentNode;e.useImperativeHandle(B,(()=>({focus:()=>{L.current.focus()},node:F.current,value:I})),[I]),e.useEffect((()=>{u&&D&&V&&!z&&(H(l?null:W.clientWidth),L.current.focus())}),[V,l]),e.useEffect((()=>{i&&L.current.focus()}),[i]),e.useEffect((()=>{if(!g)return;const e=Rt(L.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&L.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const G=(e,t)=>{e?k&&k(t):C&&C(t),z||(H(l?null:W.clientWidth),A(e))},K=e.Children.toArray(a),Y=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(I)?I.slice():[];const t=I.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),I!==n&&(_(n),x)){const o=t.nativeEvent||t,r=new o.constructor(o.type,o);Object.defineProperty(r,"target",{writable:!0,value:{value:n,name:y}}),x(r,e)}v||G(!1,t)}},Z=null!==V&&D;let X,Q;delete M["aria-invalid"];const J=[];let ee=!1,te=!1;(jp({value:I})||p)&&(R?X=R(I):ee=!0);const ne=K.map((t=>{if(!e.isValidElement(t))return null;let n;if("production"!==process.env.NODE_ENV&&bt.isFragment(t)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),v){if(!Array.isArray(I))throw new Error("production"!==process.env.NODE_ENV?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":dt(2));n=I.some((e=>zx(e,t.props.value))),n&&ee&&J.push(t.props.children)}else n=zx(I,t.props.value),n&&ee&&(Q=t.props.children);return n&&(te=!0),e.cloneElement(t,{"aria-selected":n?"true":"false",onClick:Y(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));"production"!==process.env.NODE_ENV&&e.useEffect((()=>{if(!te&&!v&&""!==I){const e=K.map((e=>e.props.value));console.warn([`MUI: You have provided an out-of-range value \`${I}\` for the select ${y?`(name="${y}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${e.filter((e=>null!=e)).map((e=>`\`${e}\``)).join(", ")||'""'}.`].join("\n"))}}),[te,K,v,y,I]),ee&&(X=v?0===J.length?null:J.reduce(((e,t,n)=>(e.push(t),n<J.length-1&&e.push(", "),e)),[]):Q);let oe,re=q;!l&&z&&V&&(re=W.clientWidth),oe=typeof N<"u"?N:d?null:0;const ie=T.id||(y?`mui-component-select-${y}`:void 0),le=_e({},t,{variant:P,value:I,open:Z,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:l}=e;return en({select:["select",n,o&&"disabled",r&&"multiple",l&&"error"],icon:["icon",`icon${Ot(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]},_x,t)})(le);return Pe.jsxs(e.Fragment,{children:[Pe.jsx(Lx,_e({ref:U,tabIndex:oe,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{E||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))},onMouseDown:d||E?null:e=>{0===e.button&&(e.preventDefault(),L.current.focus(),G(!0,e))},onBlur:e=>{!Z&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:y}}),w(e))},onFocus:O},T,{ownerState:le,className:vo(T.className,ae.select,s),id:ie,children:qx(X)?Ax||(Ax=Pe.jsx("span",{className:"notranslate",children:""})):X})),Pe.jsx($x,_e({"aria-invalid":f,value:Array.isArray(I)?I.join(","):I,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),x&&x(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:le},M)),Pe.jsx(Vx,{as:h,className:ae.icon,ownerState:le}),Pe.jsx(kx,_e({id:`menu-${y||""}`,anchorEl:W,open:Z,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:_e({"aria-labelledby":g,role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:_e({},b.PaperProps,{style:_e({minWidth:re},null!=b.PaperProps?b.PaperProps.style:null)}),children:ne}))]})}));"production"!==process.env.NODE_ENV&&(Hx.propTypes={"aria-describedby":pe.string,"aria-label":pe.string,autoFocus:pe.bool,autoWidth:pe.bool,children:pe.node,classes:pe.object,className:pe.string,defaultOpen:pe.bool,defaultValue:pe.any,disabled:pe.bool,displayEmpty:pe.bool,error:pe.bool,IconComponent:pe.elementType.isRequired,inputRef:Ct,labelId:pe.string,MenuProps:pe.object,multiple:pe.bool,name:pe.string,onBlur:pe.func,onChange:pe.func,onClose:pe.func,onFocus:pe.func,onOpen:pe.func,open:pe.bool,readOnly:pe.bool,renderValue:pe.func,SelectDisplayProps:pe.object,tabIndex:pe.oneOfType([pe.number,pe.string]),type:pe.any,value:pe.any,variant:pe.oneOf(["standard","outlined","filled"])});const Bx=Hx,Ux=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Wx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>kp(e)&&"variant"!==e,slot:"Root"},Gx=Ep(dw,Wx)(""),Kx=Ep(Rw,Wx)(""),Yx=Ep(gw,Wx)(""),Zx=e.forwardRef((function(t,n){const o=Rp({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:l={},className:a,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=Ty,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:w,open:x,renderValue:C,SelectDisplayProps:O,variant:k="outlined"}=o,S=De(o,Ux),E=v?Ix:Bx,R=wp({props:o,muiFormControl:Op(),states:["variant","error"]}),T=R.variant||k,N=_e({},o,{variant:T,classes:l}),j=(e=>{const{classes:t}=e;return t})(N),P=p||{standard:Pe.jsx(Gx,{ownerState:N}),outlined:Pe.jsx(Kx,{label:h,ownerState:N}),filled:Pe.jsx(Yx,{ownerState:N})}[T],M=At(n,P.ref);return Pe.jsx(e.Fragment,{children:e.cloneElement(P,_e({inputComponent:E,inputProps:_e({children:i,error:R.error,IconComponent:c,variant:T,type:void 0,multiple:b},v?{id:d}:{autoWidth:r,defaultOpen:s,displayEmpty:u,labelId:m,MenuProps:g,onClose:y,onOpen:w,open:x,renderValue:C,SelectDisplayProps:_e({id:d},O)},f,{classes:f?it(j,f.classes):j},p?p.props.inputProps:{})},b&&v&&"outlined"===T?{notched:!0}:{},{ref:M,className:vo(P.props.className,a)},!p&&{variant:T},S))})}));"production"!==process.env.NODE_ENV&&(Zx.propTypes={autoWidth:pe.bool,children:pe.node,classes:pe.object,className:pe.string,defaultOpen:pe.bool,defaultValue:pe.any,displayEmpty:pe.bool,IconComponent:pe.elementType,id:pe.string,input:pe.element,inputProps:pe.object,label:pe.node,labelId:pe.string,MenuProps:pe.object,multiple:pe.bool,native:pe.bool,onChange:pe.func,onClose:pe.func,onOpen:pe.func,open:pe.bool,renderValue:pe.func,SelectDisplayProps:pe.object,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),value:pe.oneOfType([pe.oneOf([""]),pe.any]),variant:pe.oneOf(["filled","outlined","standard"])}),Zx.muiName="Select";const Xx=Zx;function Qx(e){return ln("MuiTextField",e)}an("MuiTextField",["root"]);const Jx=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],eC={standard:dw,filled:gw,outlined:Rw},tC=Ep(ev,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nC=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:r=!1,children:i,className:l,color:a="primary",defaultValue:s,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:h,InputLabelProps:m,inputProps:g,InputProps:b,inputRef:v,label:y,maxRows:w,minRows:x,multiline:C=!1,name:O,onBlur:k,onChange:S,onClick:E,onFocus:R,placeholder:T,required:N=!1,rows:j,select:P=!1,SelectProps:M,type:I,value:_,variant:D="outlined"}=n,A=De(n,Jx),F=_e({},n,{autoFocus:r,color:a,disabled:u,error:c,fullWidth:p,multiline:C,required:N,select:P,variant:D}),L=(e=>{const{classes:t}=e;return en({root:["root"]},Qx,t)})(F);"production"!==process.env.NODE_ENV&&P&&!i&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const V={};"outlined"===D&&(m&&typeof m.shrink<"u"&&(V.notched=m.shrink),V.label=y),P&&((!M||!M.native)&&(V.id=void 0),V["aria-describedby"]=void 0);const $=It(h),z=f&&$?`${$}-helper-text`:void 0,q=y&&$?`${$}-label`:void 0,H=eC[D],B=Pe.jsx(H,_e({"aria-describedby":z,autoComplete:o,autoFocus:r,defaultValue:s,fullWidth:p,multiline:C,name:O,rows:j,maxRows:w,minRows:x,type:I,value:_,id:$,inputRef:v,onBlur:k,onChange:S,onFocus:R,onClick:E,placeholder:T,inputProps:g},V,b));return Pe.jsxs(tC,_e({className:vo(L.root,l),disabled:u,error:c,fullWidth:p,ref:t,required:N,color:a,variant:D,ownerState:F},A,{children:[null!=y&&""!==y&&Pe.jsx(Vw,_e({htmlFor:$,id:q},m,{children:y})),P?Pe.jsx(Xx,_e({"aria-describedby":z,id:$,labelId:q,value:_,input:B},M,{children:i})):B,f&&Pe.jsx(Ww,_e({id:z},d,{children:f}))]}))}));"production"!==process.env.NODE_ENV&&(nC.propTypes={autoComplete:pe.string,autoFocus:pe.bool,children:pe.node,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["primary","secondary","error","info","success","warning"]),pe.string]),defaultValue:pe.any,disabled:pe.bool,error:pe.bool,FormHelperTextProps:pe.object,fullWidth:pe.bool,helperText:pe.node,id:pe.string,InputLabelProps:pe.object,inputProps:pe.object,InputProps:pe.object,inputRef:Ct,label:pe.node,margin:pe.oneOf(["dense","none","normal"]),maxRows:pe.oneOfType([pe.number,pe.string]),minRows:pe.oneOfType([pe.number,pe.string]),multiline:pe.bool,name:pe.string,onBlur:pe.func,onChange:pe.func,onClick:pe.func,onFocus:pe.func,placeholder:pe.string,required:pe.bool,rows:pe.oneOfType([pe.number,pe.string]),select:pe.bool,SelectProps:pe.object,size:pe.oneOfType([pe.oneOf(["medium","small"]),pe.string]),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),type:pe.string,value:pe.any,variant:pe.oneOf(["filled","outlined","standard"])});const oC=nC,rC=["className","rowCount","visibleRowCount"],iC=Ro("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)}))),lC=e.forwardRef((function(e,t){const{className:n,rowCount:o,visibleRowCount:r}=e,i=De(e,rC),l=Sa(),a=Ra(),s=(e=>{const{classes:t}=e;return en({root:["rowCount"]},za,t)})(a);if(0===o)return null;const u=r<o?l.current.getLocaleText("footerTotalVisibleRows")(r,o):o.toLocaleString();return Pe.jsxs(iC,_e({ref:t,className:vo(s.root,n),ownerState:a},i,{children:[l.current.getLocaleText("footerTotalRows")," ",u]}))}));"production"!==process.env.NODE_ENV&&(lC.propTypes={rowCount:pe.number.isRequired,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),visibleRowCount:pe.number.isRequired});const aC=["className","selectedRowCount"],sC=Ro("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})((({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}))),uC=e.forwardRef((function(e,t){const{className:n,selectedRowCount:o}=e,r=De(e,aC),i=Sa(),l=Ra(),a=(e=>{const{classes:t}=e;return en({root:["selectedRowCount"]},za,t)})(l),s=i.current.getLocaleText("footerRowSelected")(o);return Pe.jsx(sC,_e({ref:t,className:vo(a.root,n),ownerState:l},r,{children:s}))}));"production"!==process.env.NODE_ENV&&(uC.propTypes={selectedRowCount:pe.number.isRequired,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const cC=e.forwardRef((function(e,t){var n;const o=Sa(),r=Ra(),i=$a(o,gs),l=$a(o,vg),a=$a(o,zs),s=!r.hideFooterSelectedRowCount&&l>0?Pe.jsx(uC,{selectedRowCount:l}):Pe.jsx("div",{}),u=r.hideFooterRowCount||r.pagination?null:Pe.jsx(lC,{rowCount:i,visibleRowCount:a}),c=r.pagination&&!r.hideFooterPagination&&r.slots.pagination&&Pe.jsx(r.slots.pagination,_e({},null==(n=r.slotProps)?void 0:n.pagination));return Pe.jsxs(dm,_e({ref:t},e,{children:[s,u,c]}))}));function dC(){var t,n;const o=Ra();return Pe.jsxs(e.Fragment,{children:[Pe.jsx(o.slots.preferencesPanel,_e({},null==(t=o.slotProps)?void 0:t.preferencesPanel)),o.slots.toolbar&&Pe.jsx(o.slots.toolbar,_e({},null==(n=o.slotProps)?void 0:n.toolbar))]})}function pC(e){return ln("MuiCircularProgress",e)}"production"!==process.env.NODE_ENV&&(cC.propTypes={sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])}),an("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const fC=["className","color","disableShrink","size","style","thickness","value","variant"];let hC,mC,gC,bC,vC=e=>e;const yC=44,wC=me(hC||(hC=vC`
|
|
169
|
-
0% {
|
|
170
|
-
transform: rotate(0deg);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
100% {
|
|
174
|
-
transform: rotate(360deg);
|
|
175
|
-
}
|
|
176
|
-
`)),xC=me(mC||(mC=vC`
|
|
177
|
-
0% {
|
|
178
|
-
stroke-dasharray: 1px, 200px;
|
|
179
|
-
stroke-dashoffset: 0;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
50% {
|
|
183
|
-
stroke-dasharray: 100px, 200px;
|
|
184
|
-
stroke-dashoffset: -15px;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
100% {
|
|
188
|
-
stroke-dasharray: 100px, 200px;
|
|
189
|
-
stroke-dashoffset: -125px;
|
|
190
|
-
}
|
|
191
|
-
`)),CC=Ep("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Ot(n.color)}`]]}})((({ownerState:e,theme:t})=>_e({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&ge(gC||(gC=vC`
|
|
192
|
-
animation: ${0} 1.4s linear infinite;
|
|
193
|
-
`),wC))),OC=Ep("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),kC=Ep("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Ot(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>_e({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&ge(bC||(bC=vC`
|
|
194
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
195
|
-
`),xC))),SC=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiCircularProgress"}),{className:o,color:r="primary",disableShrink:i=!1,size:l=40,style:a,thickness:s=3.6,value:u=0,variant:c="indeterminate"}=n,d=De(n,fC),p=_e({},n,{color:r,disableShrink:i,size:l,thickness:s,value:u,variant:c}),f=(e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e;return en({root:["root",n,`color${Ot(o)}`],svg:["svg"],circle:["circle",`circle${Ot(n)}`,r&&"circleDisableShrink"]},pC,t)})(p),h={},m={},g={};if("determinate"===c){const e=2*Math.PI*((yC-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return Pe.jsx(CC,_e({className:vo(f.root,o),style:_e({width:l,height:l},m,a),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Pe.jsx(OC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Pe.jsx(kC,{className:f.circle,style:h,ownerState:p,cx:yC,cy:yC,r:(yC-s)/2,fill:"none",strokeWidth:s})})}))}));"production"!==process.env.NODE_ENV&&(SC.propTypes={classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["inherit","primary","secondary","error","info","success","warning"]),pe.string]),disableShrink:nt(pe.bool,(e=>e.disableShrink&&e.variant&&"indeterminate"!==e.variant?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null)),size:pe.oneOfType([pe.number,pe.string]),style:pe.object,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),thickness:pe.number,value:pe.number,variant:pe.oneOf(["determinate","indeterminate"])});const EC=SC,RC=e.forwardRef((function(e,t){return Pe.jsx(hm,_e({ref:t},e,{children:Pe.jsx(EC,{})}))}));"production"!==process.env.NODE_ENV&&(RC.propTypes={sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const TC=e.forwardRef((function(e,t){const n=Sa().current.getLocaleText("noRowsLabel");return Pe.jsx(hm,_e({ref:t},e,{children:n}))}));"production"!==process.env.NODE_ENV&&(TC.propTypes={sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const NC=e.createContext();"production"!==process.env.NODE_ENV&&(NC.displayName="TableContext");const jC=NC,PC=e.createContext();"production"!==process.env.NODE_ENV&&(PC.displayName="Tablelvl2Context");const MC=PC;function IC(e){return ln("MuiTableCell",e)}const _C=an("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),DC=["align","className","component","padding","scope","size","sortDirection","variant"],AC=Ep("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ot(n.size)}`],"normal"!==n.padding&&t[`padding${Ot(n.padding)}`],"inherit"!==n.align&&t[`align${Ot(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>_e({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Ao(_o(e.palette.divider,1),.88):Do(_o(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${_C.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),FC=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiTableCell"}),{align:r="inherit",className:i,component:l,padding:a,scope:s,size:u,sortDirection:c,variant:d}=o,p=De(o,DC),f=e.useContext(jC),h=e.useContext(MC),m=h&&"head"===h.variant;let g;g=l||(m?"th":"td");let b=s;"td"===g?b=void 0:!b&&m&&(b="col");const v=d||h&&h.variant,y=_e({},o,{align:r,component:g,padding:a||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:"head"===v&&f&&f.stickyHeader,variant:v}),w=(e=>{const{classes:t,variant:n,align:o,padding:r,size:i,stickyHeader:l}=e;return en({root:["root",n,l&&"stickyHeader","inherit"!==o&&`align${Ot(o)}`,"normal"!==r&&`padding${Ot(r)}`,`size${Ot(i)}`]},IC,t)})(y);let x=null;return c&&(x="asc"===c?"ascending":"descending"),Pe.jsx(AC,_e({as:g,ref:n,className:vo(w.root,i),"aria-sort":x,scope:b,ownerState:y},p))}));"production"!==process.env.NODE_ENV&&(FC.propTypes={align:pe.oneOf(["center","inherit","justify","left","right"]),children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,padding:pe.oneOf(["checkbox","none","normal"]),scope:pe.string,size:pe.oneOfType([pe.oneOf(["medium","small"]),pe.string]),sortDirection:pe.oneOf(["asc","desc",!1]),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOfType([pe.oneOf(["body","footer","head"]),pe.string])});const LC=FC;function VC(e){return ln("MuiToolbar",e)}an("MuiToolbar",["root","gutters","regular","dense"]);const $C=["className","component","disableGutters","variant"],zC=Ep("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>_e({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),qC=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiToolbar"}),{className:o,component:r="div",disableGutters:i=!1,variant:l="regular"}=n,a=De(n,$C),s=_e({},n,{component:r,disableGutters:i,variant:l}),u=(e=>{const{classes:t,disableGutters:n,variant:o}=e;return en({root:["root",!n&&"gutters",o]},VC,t)})(s);return Pe.jsx(zC,_e({as:r,className:vo(u.root,o),ref:t,ownerState:s},a))}));"production"!==process.env.NODE_ENV&&(qC.propTypes={children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,disableGutters:pe.bool,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOfType([pe.oneOf(["dense","regular"]),pe.string])});const HC=qC,BC=Hg(Pe.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),UC=Hg(Pe.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),WC=Hg(Pe.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),GC=Hg(Pe.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");var KC,YC,ZC,XC,QC,JC,eO,tO;const nO=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],oO=e.forwardRef((function(e,t){const{backIconButtonProps:n,count:o,getItemAriaLabel:r,nextIconButtonProps:i,onPageChange:l,page:a,rowsPerPage:s,showFirstButton:u,showLastButton:c}=e,d=De(e,nO),p=mr();return Pe.jsxs("div",_e({ref:t},d,{children:[u&&Pe.jsx(_b,{onClick:e=>{l(e,0)},disabled:0===a,"aria-label":r("first",a),title:r("first",a),children:"rtl"===p.direction?KC||(KC=Pe.jsx(WC,{})):YC||(YC=Pe.jsx(GC,{}))}),Pe.jsx(_b,_e({onClick:e=>{l(e,a-1)},disabled:0===a,color:"inherit","aria-label":r("previous",a),title:r("previous",a)},n,{children:"rtl"===p.direction?ZC||(ZC=Pe.jsx(UC,{})):XC||(XC=Pe.jsx(BC,{}))})),Pe.jsx(_b,_e({onClick:e=>{l(e,a+1)},disabled:-1!==o&&a>=Math.ceil(o/s)-1,color:"inherit","aria-label":r("next",a),title:r("next",a)},i,{children:"rtl"===p.direction?QC||(QC=Pe.jsx(BC,{})):JC||(JC=Pe.jsx(UC,{}))})),c&&Pe.jsx(_b,{onClick:e=>{l(e,Math.max(0,Math.ceil(o/s)-1))},disabled:a>=Math.ceil(o/s)-1,"aria-label":r("last",a),title:r("last",a),children:"rtl"===p.direction?eO||(eO=Pe.jsx(GC,{})):tO||(tO=Pe.jsx(WC,{}))})]}))}));"production"!==process.env.NODE_ENV&&(oO.propTypes={backIconButtonProps:pe.object,count:pe.number.isRequired,getItemAriaLabel:pe.func.isRequired,nextIconButtonProps:pe.object,onPageChange:pe.func.isRequired,page:pe.number.isRequired,rowsPerPage:pe.number.isRequired,showFirstButton:pe.bool.isRequired,showLastButton:pe.bool.isRequired});const rO=oO;function iO(e){return ln("MuiTablePagination",e)}const lO=an("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var aO;const sO=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],uO=Ep(LC,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),cO=Ep(HC,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>_e({[`& .${lO.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${lO.actions}`]:{flexShrink:0,marginLeft:20}}))),dO=Ep("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),pO=Ep("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>_e({},e.typography.body2,{flexShrink:0}))),fO=Ep(Xx,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>_e({[`& .${lO.selectIcon}`]:t.selectIcon,[`& .${lO.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${lO.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),hO=Ep(zh,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),mO=Ep("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>_e({},e.typography.body2,{flexShrink:0})));function gO({from:e,to:t,count:n}){return`${e}–${t} of ${-1!==n?n:`more than ${t}`}`}function bO(e){return`Go to ${e} page`}const vO=e.forwardRef((function(e,t){const n=Rp({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=rO,backIconButtonProps:r,className:l,colSpan:a,component:s=LC,count:u,getItemAriaLabel:c=bO,labelDisplayedRows:d=gO,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:f,onPageChange:h,onRowsPerPageChange:m,page:g,rowsPerPage:b,rowsPerPageOptions:v=[10,25,50,100],SelectProps:y={},showFirstButton:w=!1,showLastButton:x=!1}=n,C=De(n,sO),O=n,k=(e=>{const{classes:t}=e;return en({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},iO,t)})(O),S=y.native?"option":hO;let E;(s===LC||"td"===s)&&(E=a||1e3);const R=It(y.id),T=It(y.labelId);return Pe.jsx(uO,_e({colSpan:E,ref:t,as:s,ownerState:O,className:vo(k.root,l)},C,{children:Pe.jsxs(cO,{className:k.toolbar,children:[Pe.jsx(dO,{className:k.spacer}),v.length>1&&Pe.jsx(pO,{className:k.selectLabel,id:T,children:p}),v.length>1&&Pe.jsx(fO,_e({variant:"standard"},!y.variant&&{input:aO||(aO=Pe.jsx($p,{}))},{value:b,onChange:m,id:R,labelId:T},y,{classes:_e({},y.classes,{root:vo(k.input,k.selectRoot,(y.classes||{}).root),select:vo(k.select,(y.classes||{}).select),icon:vo(k.selectIcon,(y.classes||{}).icon)}),children:v.map((e=>i(S,_e({},!rc(S)&&{ownerState:O},{className:k.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),Pe.jsx(mO,{className:k.displayedRows,children:d({from:0===u?0:g*b+1,to:-1===u?(g+1)*b:-1===b?u:Math.min(u,(g+1)*b),count:-1===u?-1:u,page:g})}),Pe.jsx(o,{className:k.actions,backIconButtonProps:r,count:u,nextIconButtonProps:f,onPageChange:h,page:g,rowsPerPage:b,showFirstButton:w,showLastButton:x,getItemAriaLabel:c})]})}))}));"production"!==process.env.NODE_ENV&&(vO.propTypes={ActionsComponent:pe.elementType,backIconButtonProps:pe.object,classes:pe.object,className:pe.string,colSpan:pe.number,component:pe.elementType,count:Qt.isRequired,getItemAriaLabel:pe.func,labelDisplayedRows:pe.func,labelRowsPerPage:pe.node,nextIconButtonProps:pe.object,onPageChange:pe.func.isRequired,onRowsPerPageChange:pe.func,page:nt(Qt.isRequired,(e=>{const{count:t,page:n,rowsPerPage:o}=e;if(-1===t)return null;const r=Math.max(0,Math.ceil(t/o)-1);return n<0||n>r?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${r}, but page is ${n}).`):null})),rowsPerPage:Qt.isRequired,rowsPerPageOptions:pe.arrayOf(pe.oneOfType([pe.number,pe.shape({label:pe.string.isRequired,value:pe.number.isRequired})]).isRequired),SelectProps:pe.object,showFirstButton:pe.bool,showLastButton:pe.bool,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object])});const yO=Ep(vO)((({theme:e})=>({[`& .${lO.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${lO.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),wO=e.forwardRef((function(t,n){const o=Sa(),r=Ra(),i=$a(o,sg),l=$a(o,zs),a=e.useMemo((()=>{var e,t;return null!=(e=null!=(t=r.rowCount)?t:l)?e:0}),[r.rowCount,l]),s=e.useMemo((()=>Math.floor(a/(i.pageSize||1))),[a,i.pageSize]),u=e.useCallback((e=>{const t=Number(e.target.value);o.current.setPageSize(t)}),[o]),c=e.useCallback(((e,t)=>{o.current.setPage(t)}),[o]),d=e=>{for(let t=0;t<r.pageSizeOptions.length;t+=1){const n=r.pageSizeOptions[t];if("number"==typeof n){if(n===e)return!0}else if(n.value===e)return!0}return!1};if("production"!==process.env.NODE_ENV){var p,f;const t=e.useRef(!1),n=null!=(p=null==(f=r.paginationModel)?void 0:f.pageSize)?p:i.pageSize;!t.current&&!r.autoPageSize&&!d(n)&&(console.warn([`MUI: The page size \`${i.pageSize}\` is not preset in the \`pageSizeOptions\``,"Add it to show the pagination select."].join("\n")),t.current=!0)}const h=d(i.pageSize)?r.pageSizeOptions:[];return Pe.jsx(yO,_e({ref:n,component:"div",count:a,page:i.page<=s?i.page:s,rowsPerPageOptions:h,rowsPerPage:i.pageSize,onPageChange:c,onRowsPerPageChange:u},o.current.getLocaleText("MuiTablePagination"),t))})),xO=(e,t)=>{let n,o;return t.pagination&&"client"===t.paginationMode?(o=dg(e),n=pg(e)):(n=Ds(e),o=0===n.length?null:{firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:o}},CO=(t,n)=>{const o=xO(t,n);return e.useMemo((()=>({rows:o.rows,range:o.range})),[o.rows,o.range])},OO={current:null};function kO(e){return e.isInternal=!0,e}function SO(e){return void 0!==e&&!0===e.isInternal}function EO(e){return kO(((t,n)=>{const o=e(t,n);return o&&(e=>o(e.value,e.row,n,OO.current))}))}function RO(e){return e.map((e=>_e({},e,{getApplyFilterFn:EO(e.getApplyFilterFnV7),getApplyFilterFnV7:kO(e.getApplyFilterFnV7)})))}function TO(e){return kO(((t,n,o)=>{const r=e(t,n,o);return r&&(e=>r(e.value,e.row,n,o))}))}const NO=kO((e=>{if(!e)return null;const t=new RegExp(Xm(e),"i");return(e,n,o,r)=>{const i=r.current.getRowFormattedValue(n,o);return null!=i&&t.test(i.toString())}})),jO={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:(e,t)=>{const n=Sg(e,t);return null!==n?n:"string"==typeof e?Eg.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:((e=!1)=>RO([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(Xm(n),"i");return e=>null!=e&&o.test(String(e))},InputComponent:Kv},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&0===o.compare(n,e.toString())},InputComponent:Kv},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(`^${Xm(n)}.*$`,"i");return e=>null!=e&&o.test(e.toString())},InputComponent:Kv},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(`.*${Xm(n)}$`,"i");return e=>null!=e&&o.test(e.toString())},InputComponent:Kv},{value:"isEmpty",getApplyFilterFnV7:()=>e=>""===e||null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>""!==e&&null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const n=e?t.value:t.value.map((e=>e.trim())),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&n.some((t=>0===o.compare(t,e.toString()||"")))},InputComponent:Yy}]))(),renderEditCell:e=>Pe.jsx(Kp,_e({},e)),getApplyQuickFilterFn:TO(NO),getApplyQuickFilterFnV7:NO};const PO=_e({},jO,{type:"boolean",align:"center",headerAlign:"center",renderCell:e=>mu(e.rowNode)?"":Pe.jsx(tc,_e({},e)),renderEditCell:e=>Pe.jsx(oc,_e({},e)),sortComparator:Rg,valueFormatter:function({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")},filterOperators:RO([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t="true"===e.value;return e=>!!e===t},InputComponent:oy}]),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>(e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}})(e)}),MO="__check__",IO=_e({},PO,{field:MO,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>void 0!==wg(e.api.state,e.api.instanceId)[e.id],renderHeader:e=>Pe.jsx(Fg,_e({},e)),renderCell:e=>Pe.jsx(Dg,_e({},e))}),_O="actions",DO=_e({},jO,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>Pe.jsx(qf,_e({},e)),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),AO="__detail_panel_toggle__",FO=e=>e.editRows,LO=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave"];function VO({width:e}){if(!e)return null;const t={width:e};return Pe.jsx("div",{className:`${qa.cell} ${qa.withBorderColor}`,style:t})}const $O=e.forwardRef((function(t,n){const{selected:o,rowId:r,row:i,index:l,style:a,position:s,rowHeight:u,className:c,renderedColumns:d,containerWidth:p,firstColumnToRender:f,isLastVisible:h=!1,onClick:m,onDoubleClick:g,onMouseEnter:b,onMouseLeave:v}=t,y=De(t,LO),w=Sa(),x=e.useRef(null),C=Ra(),O=CO(w,C),k=$a(w,cs),S=$a(w,js),E=$a(w,Cs),R=$a(w,iu),T=$a(w,FO),N=At(x,n),j=l+R+2,P=(e=>{const{editable:t,editing:n,selected:o,isLastVisible:r,rowHeight:i,classes:l}=e;return en({root:["row",o&&"selected",t&&"row--editable",n&&"row--editing",r&&"row--lastVisible","auto"===i&&"row--dynamicHeight"]},za,l)})({selected:o,isLastVisible:h,classes:C.classes,editing:w.current.getRowMode(r)===Nu.Edit,editable:C.editMode===Ru.Row,rowHeight:u});e.useLayoutEffect((()=>{"auto"===u&&x.current&&typeof ResizeObserver>"u"&&w.current.unstable_storeRowHeightMeasurement(r,x.current.clientHeight,s)}),[w,u,r,s]),e.useLayoutEffect((()=>{if(O.range){const e=w.current.getRowIndexRelativeToVisibleRows(r);null!=e&&w.current.unstable_setLastMeasuredRowIndex(e)}const e=x.current;if(!e||"auto"!==u||typeof ResizeObserver>"u")return;const t=new ResizeObserver((e=>{const[t]=e,n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;w.current.unstable_storeRowHeightMeasurement(r,n,s)}));return t.observe(e),()=>t.disconnect()}),[w,O.range,l,u,r,s]);const M=e.useCallback(((e,t)=>n=>{1===n.target.nodeType&&!n.currentTarget.contains(n.target)||w.current.getRow(r)&&(w.current.publishEvent(e,w.current.getRowParams(r),n),t&&t(n))}),[w,r]),I=e.useCallback((e=>{const t=function(e,t){return e.closest(`.${t}`)}(e.target,qa.cell),n=null==t?void 0:t.getAttribute("data-field");n&&(n===IO.field||n===AO||"__reorder__"===n||w.current.getCellMode(r,n)===Tu.Edit||w.current.getColumn(n).type===_O)||M("rowClick",m)(e)}),[w,m,M,r]),{slots:_,slotProps:D,disableColumnReorder:A}=C,F=_.cell===Qu?Qu:Zu,L=C.rowReordering,V=(e,t)=>{var n,o;const i=A&&e.disableReorder||!L&&!!S.length&&E>1&&Object.keys(T).length>0,l=null!=(n=null==(o=T[r])?void 0:o[e.field])?n:null;return Pe.jsx(F,_e({column:e,width:t.width,rowId:r,height:u,showRightBorder:t.showRightBorder,align:e.align||"left",colIndex:t.indexRelativeToAllColumns,colSpan:t.colSpan,disableDragEvents:i,editCellState:l},null==D?void 0:D.cell),e.field)},$=$a(w,(()=>_e({},w.current.unstable_getRowInternalSizes(r))),La);let z=u;if("auto"===z&&$){let e=0;const t=Object.entries($).reduce(((t,[n,o])=>/^base[A-Z]/.test(n)?(e+=1,o>t?o:t):t),0);t>0&&e>1&&(z=t)}const q=_e({},a,{maxHeight:"auto"===u?"none":u,minHeight:z});if(null!=$&&$.spacingTop){q["border"===C.rowSpacingType?"borderTopWidth":"marginTop"]=$.spacingTop}if(null!=$&&$.spacingBottom){const e="border"===C.rowSpacingType?"borderBottomWidth":"marginBottom";let t=q[e];"number"!=typeof t&&(t=parseInt(t||"0",10)),t+=$.spacingBottom,q[e]=t}const H=w.current.unstable_applyPipeProcessors("rowClassName",[],r);if("function"==typeof C.getRowClassName){var B;const e=l-((null==(B=O.range)?void 0:B.firstRowIndex)||0),t=_e({},w.current.getRowParams(r),{isFirstVisible:0===e,isLastVisible:e===O.rows.length-1,indexRelativeToCurrentPage:e});H.push(C.getRowClassName(t))}const U=eg(1e4,20,80),W=w.current.getRowNode(r);if(!W)return null;const G=W.type,K=[];for(let e=0;e<d.length;e+=1){const t=d[e],n=f+e,o=w.current.unstable_getCellColSpanInfo(r,n);if(o&&!o.spannedByColSpan)if("skeletonRow"!==G){const{colSpan:e,width:r}=o.cellProps,i={width:r,colSpan:e,showRightBorder:C.showCellVerticalBorder,indexRelativeToAllColumns:n};K.push(V(t,i))}else{const{width:e}=o.cellProps,n=Math.round(U());K.push(Pe.jsx(_.skeletonCell,{width:e,contentWidth:n,field:t.field,align:t.align},t.field))}}const Y=p-k,Z=i?{onClick:I,onDoubleClick:M("rowDoubleClick",g),onMouseEnter:M("rowMouseEnter",b),onMouseLeave:M("rowMouseLeave",v)}:null;return Pe.jsxs("div",_e({ref:N,"data-id":r,"data-rowindex":l,role:"row",className:vo(...H,P.root,c),"aria-rowindex":j,"aria-selected":o,style:q},Z,y,{children:[K,Y>0&&Pe.jsx(VO,{width:Y})]}))}));"production"!==process.env.NODE_ENV&&($O.propTypes={containerWidth:pe.number.isRequired,firstColumnToRender:pe.number.isRequired,focusedCell:pe.string,index:pe.number.isRequired,isLastVisible:pe.bool,lastColumnToRender:pe.number.isRequired,onClick:pe.func,onDoubleClick:pe.func,onMouseEnter:pe.func,onMouseLeave:pe.func,position:pe.oneOf(["center","left","right"]).isRequired,renderedColumns:pe.arrayOf(pe.object).isRequired,row:pe.object,rowHeight:pe.oneOfType([pe.oneOf(["auto"]),pe.number]).isRequired,rowId:pe.oneOfType([pe.number,pe.string]).isRequired,selected:pe.bool.isRequired,tabbableCell:pe.string,visibleColumns:pe.arrayOf(pe.object).isRequired});const zO=ku($O);function qO({privateApiRef:t,props:n,children:o}){const r=e.useRef(t.current.getPublicApi());return Pe.jsx(Ea.Provider,{value:n,children:Pe.jsx(Ta.Provider,{value:t,children:Pe.jsx(ka.Provider,{value:r,children:o})})})}const HO=function(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}()&&null!=window.localStorage.getItem("DEBUG"),BO=()=>{},UO={debug:BO,info:BO,warn:BO,error:BO},WO=["debug","info","warn","error"];function GO(e,t,n=console){const o=WO.indexOf(t);if(-1===o)throw new Error(`MUI: Log level ${t} not recognized.`);return WO.reduce(((t,r,i)=>(t[r]=i>=o?(...t)=>{const[o,...i]=t;n[r](`MUI: ${e} - ${o}`,...i)}:BO,t)),{})}class KO{static create(e){return new KO(e)}constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{this.value=e,this.listeners.forEach((t=>t(e)))},this.value=e,this.listeners=new Set}}class YO{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,n={}){let o=this.events[e];if(o||(o={highPriority:new Map,regular:new Map},this.events[e]=o),n.isFirst?o.highPriority.set(t,!0):o.regular.set(t,!0),"production"!==process.env.NODE_ENV){const t=o.highPriority.size+o.regular.size;t>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${t} ${e} listeners added.`].join("\n")))}}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const o=Array.from(n.highPriority.keys()),r=Array.from(n.regular.keys());for(let e=o.length-1;e>=0;e-=1){const r=o[e];n.highPriority.has(r)&&r.apply(this,t)}for(let e=0;e<r.length;e+=1){const o=r[e];n.regular.has(o)&&o.apply(this,t)}}once(e,t){const n=this;this.on(e,(function o(...r){n.removeListener(e,o),t.apply(n,r)}))}}let ZO=0;function XO(t,n){const o=e.useRef();if(!o.current){const e={};o.current={state:e,store:KO.create(e),instanceId:{id:ZO}},ZO+=1}const r=e.useRef();r.current||(r.current=(e=>{const t={getPublicApi:()=>e,register:(n,o)=>{Object.keys(o).forEach((r=>{"public"===n?e[r]=o[r]:t[r]=o[r]}))}};return new Proxy(e,{get:(e,n)=>n in e?e[n]:t[n],set:(e,t,n)=>(e[t]=n,!0)})})(o.current),r.current.register("private",{caches:{},eventManager:new YO})),e.useImperativeHandle(t,(()=>o.current),[o]);const i=e.useCallback(((...e)=>{const[t,o,i={}]=e;if(i.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(i)&&i.isPropagationStopped())return;const l=n.signature===Hm.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(t,o,i,l)}),[r,n.signature]),l=e.useCallback(((e,t,n)=>{r.current.eventManager.on(e,t,n);const o=r.current;return()=>{o.eventManager.removeListener(e,t)}}),[r]);return Lu(r,{subscribeEvent:l,publishEvent:i},"public"),e.useEffect((()=>{const e=r.current;return()=>{e.publishEvent("unmount")}}),[r]),r}function QO(e){return QO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QO(e)}function JO(e){var t=function(e,t){if("object"!=QO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=QO(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QO(t)?t:String(t)}const ek=(t,n,o)=>{const r=e.useRef(),i=e.useRef(`mui-${Math.round(1e9*Math.random())}`),l=e.useCallback((()=>{r.current=t.current.registerPipeProcessor(n,i.current,o)}),[t,o,n]);ng((()=>{l()}));const a=e.useRef(!0);e.useEffect((()=>(a.current?a.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)})),[l])},tk=(t,n,o)=>{const r=e.useRef(),i=e.useRef(`mui-${Math.round(1e9*Math.random())}`),l=e.useCallback((()=>{r.current=t.current.registerPipeApplier(n,i.current,o)}),[t,o,n]);ng((()=>{l()}));const a=e.useRef(!0);e.useEffect((()=>(a.current?a.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)})),[l])},nk=(t,n,o,r)=>{const i=e.useCallback((()=>{t.current.registerStrategyProcessor(n,o,r)}),[t,r,o,n]);ng((()=>{i()}));const l=e.useRef(!0);e.useEffect((()=>{l.current?l.current=!1:i()}),[i])},ok="none",rk={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},ik=(t,n)=>{const o=XO(t,n);return((t,n)=>{Lu(t,{getLogger:e.useCallback((e=>HO?GO(e,"debug",n.logger):n.logLevel?GO(e,n.logLevel.toString(),n.logger):UO),[n.logLevel,n.logger])},"private")})(o,n),((t,n)=>{const o=e.useRef({}),[,r]=e.useState(),i=e.useCallback((e=>{o.current[e.stateId]=e}),[]),l=e.useCallback(((e,r)=>{let i;if(i=Ym(e)?e(t.current.state):e,t.current.state===i)return!1;let l=!1;const a=[];if(Object.keys(o.current).forEach((e=>{const n=o.current[e],r=n.stateSelector(t.current.state,t.current.instanceId),s=n.stateSelector(i,t.current.instanceId);s!==r&&(a.push({stateId:n.stateId,hasPropChanged:s!==n.propModel}),void 0!==n.propModel&&s!==n.propModel&&(l=!0))})),a.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${a[0].stateId}, therefore, you're not allowed to update ${a.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(l||(t.current.state=i,t.current.publishEvent&&t.current.publishEvent("stateChange",i),t.current.store.update(i)),1===a.length){const{stateId:e,hasPropChanged:s}=a[0],u=o.current[e],c=u.stateSelector(i,t.current.instanceId);if(u.propOnChange&&s){const e=n.signature===Hm.DataGridPro?{api:t.current,reason:r}:{reason:r};u.propOnChange(c,e)}l||t.current.publishEvent(u.changeEvent,c,{reason:r})}return!l}),[t,n.signature]),a=e.useCallback(((e,n,o)=>t.current.setState((t=>_e({},t,{[e]:n(t[e])})),o)),[t]),s=e.useCallback((()=>r((()=>t.current.state))),[t]),u={updateControlState:a,registerControlState:i};Lu(t,{setState:l,forceUpdate:s},"public"),Lu(t,u,"private")})(o,n),(t=>{const n=e.useRef({}),o=e.useCallback((e=>{e&&Object.values(e.appliers).forEach((e=>{e()}))}),[]),r=e.useCallback(((e,t,r)=>{n.current[e]||(n.current[e]={processors:new Map,appliers:{}});const i=n.current[e];return i.processors.get(t)!==r&&(i.processors.set(t,r),o(i)),()=>{n.current[e].processors.set(t,null)}}),[o]),i=e.useCallback(((e,t,o)=>(n.current[e]||(n.current[e]={processors:new Map,appliers:{}}),n.current[e].appliers[t]=o,()=>{const o=De(n.current[e].appliers,[t].map(JO));n.current[e].appliers=o})),[]),l=e.useCallback((e=>{const t=n.current[e];o(t)}),[o]),a={unstable_applyPipeProcessors:e.useCallback(((...e)=>{const[t,o,r]=e;return n.current[t]?Array.from(n.current[t].processors.values()).reduce(((e,t)=>t?t(e,r):e),o):o}),[])};Lu(t,{registerPipeProcessor:r,registerPipeApplier:i,requestPipeProcessorsApplication:l},"private"),Lu(t,a,"public")})(o),(t=>{const n=e.useRef(new Map),o=e.useRef({}),r=e.useCallback(((e,n,r)=>{o.current[n]||(o.current[n]={});const i=o.current[n],l=i[e];return i[e]=r,!l||l===r||e===t.current.getActiveStrategy(rk[n])&&t.current.publishEvent("activeStrategyProcessorChange",n),()=>{const t=De(o.current[n],[e].map(JO));o.current[n]=t}}),[t]),i=e.useCallback(((e,n)=>{const r=t.current.getActiveStrategy(rk[e]);if(null==r)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=o.current[e];if(!i||!i[r])throw new Error(`No processor found for processor "${e}" on strategy "${r}"`);return(0,i[r])(n)}),[t]),l=e.useCallback((e=>{var t;const o=Array.from(n.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return null!=(t=null==o?void 0:o[0])?t:ok}),[]),a=e.useCallback(((e,o,r)=>{n.current.set(o,{group:e,isAvailable:r}),t.current.publishEvent("strategyAvailabilityChange")}),[t]);Lu(t,{registerStrategyProcessor:r,applyStrategyProcessor:i,getActiveStrategy:l,setStrategyAvailability:a},"private")})(o),((t,n)=>{const o=e.useCallback((e=>{if(null==n.localeText[e])throw new Error(`Missing translation for key ${e}.`);return n.localeText[e]}),[n.localeText]);t.current.register("public",{getLocaleText:o})})(o,n),o},lk=(t,n,o)=>{const r=e.useRef(!1);r.current||(n.current.state=t(n.current.state,o,n),r.current=!0)},ak=/(\d+)-(\d+)-(\d+)/,sk=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function uk(e,t,n,o){if(!e.value)return null;const[r,i,l,a,s]=e.value.match(n?sk:ak).slice(1).map(Number),u=new Date(r,i-1,l,a||0,s||0).getTime();return e=>{if(!e)return!1;if(o)return t(e.getTime(),u);const r=new Date(e).setHours(n?e.getHours():0,n?e.getMinutes():0,0,0);return t(r,u)}}const ck=e=>RO([{value:"is",getApplyFilterFnV7:t=>uk(t,((e,t)=>e===t),e),InputComponent:Zv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>uk(t,((e,t)=>e!==t),e),InputComponent:Zv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>uk(t,((e,t)=>e>t),e),InputComponent:Zv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>uk(t,((e,t)=>e>=t),e),InputComponent:Zv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>uk(t,((e,t)=>e<t),e,!e),InputComponent:Zv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>uk(t,((e,t)=>e<=t),e),InputComponent:Zv,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1}]);function dk({value:e,columnType:t,rowId:n,field:o}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${o}".`].join("\n"))}const pk=_e({},jO,{type:"date",sortComparator:Tg,valueFormatter:function({value:e,field:t,id:n}){return e?(dk({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""},filterOperators:ck(),renderEditCell:Up,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),fk=_e({},jO,{type:"dateTime",sortComparator:Tg,valueFormatter:function({value:e,field:t,id:n}){return e?(dk({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""},filterOperators:ck(!0),renderEditCell:Up,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),hk=e=>null==e?null:Number(e),mk=kO((e=>null==e||Number.isNaN(e)||""===e?null:t=>hk(t)===hk(e))),gk=_e({},jO,{type:"number",align:"right",headerAlign:"right",sortComparator:Rg,valueParser:e=>""===e?null:Number(e),valueFormatter:({value:e})=>function(e){return"number"==typeof e}(e)?e.toLocaleString():e||"",filterOperators:RO([{value:"=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>hk(t)===e.value,InputComponent:Kv,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>hk(t)!==e.value,InputComponent:Kv,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&hk(t)>e.value,InputComponent:Kv,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&hk(t)>=e.value,InputComponent:Kv,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&hk(t)<e.value,InputComponent:Kv,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&hk(t)<=e.value,InputComponent:Kv,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:Yy,InputComponentProps:{type:"number"}}]),getApplyQuickFilterFn:TO(mk),getApplyQuickFilterFnV7:mk}),bk=e=>null!=e&&Zm(e)?e.value:e,vk=_e({},jO,{type:"singleSelect",getOptionLabel:e=>Zm(e)?e.label:String(e),getOptionValue:e=>Zm(e)?e.value:e,valueFormatter(e){const{id:t,field:n,value:o,api:r}=e,i=e.api.getColumn(n);if(!tf(i))return"";let l;if(l="function"==typeof i.valueOptions?i.valueOptions({id:t,row:t?r.getRow(t):null,field:n}):i.valueOptions,null==o)return"";if(!l)return o;if(!(e=>"object"==typeof e[0])(l))return i.getOptionLabel(o);const a=l.find((e=>i.getOptionValue(e)===o));return a?i.getOptionLabel(a):""},renderEditCell:e=>Pe.jsx(lf,_e({},e)),filterOperators:RO([{value:"is",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>bk(t)===bk(e.value),InputComponent:ey},{value:"not",getApplyFilterFnV7:e=>null==e.value||""===e.value?null:t=>bk(t)!==bk(e.value),InputComponent:ey},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(bk);return e=>t.includes(bk(e))},InputComponent:Qy}]),pastedValueParser:(e,t)=>{const n=t.colDef,o=n.valueOptions,r="function"==typeof o?o({field:n.field}):o||[],i=n.getOptionValue;if(r.find((t=>i(t)===e)))return e}}),yk="__default__";function wk(e,t){if("string"==typeof e){const n=e.replace(/"/g,'""');return[t,"\n","\r"].some((e=>n.includes(e)))?`"${n}"`:n}return e}const xk=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:o}=t;let r;if(o){var i;const t=e.colDef.type;if("number"===t)r=String(e.value);else if("date"===t||"dateTime"===t){var l;r=null==(l=e.value)?void 0:l.toISOString()}else r="function"==typeof(null==(i=e.value)?void 0:i.toString)?e.value.toString():e.value}else r=e.formattedValue;return wk(r,n)},Ck=Ma(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);function Ok(e){const{columns:t,rowIds:n,getCellParams:o,delimiterCharacter:r,includeHeaders:i,ignoreValueFormatter:l}=e,a=n.reduce(((e,n)=>`${e}${(({id:e,columns:t,getCellParams:n,delimiterCharacter:o,ignoreValueFormatter:r})=>t.map((t=>{const i=n(e,t.field);return"production"!==process.env.NODE_ENV&&"[object Object]"===String(i.formattedValue)&&Ck(),xk(i,{delimiterCharacter:o,ignoreValueFormatter:r})})))({id:n,columns:t,getCellParams:o,delimiterCharacter:r,ignoreValueFormatter:l}).join(r)}\r\n`),"").trim();return i?`${t.filter((e=>e.field!==IO.field)).map((e=>wk(e.headerName||e.field,r))).join(r)}\r\n${a}`.trim():a}function kk(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const o=window.getSelection();o.removeAllRanges(),o.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const Sk=(t,n)=>{const o=n.unstable_ignoreValueFormatterDuringExport,r=("object"==typeof o?null==o?void 0:o.clipboardExport:o)||!1,i=n.clipboardCopyCellDelimiter,l=e.useCallback((e=>{if(!e.ctrlKey&&!e.metaKey||"c"!==e.key||function(e){var t;return!!(null!=(t=window.getSelection())&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}(e.target))return;let n="";if(t.current.getSelectedRows().size>0)n=t.current.getDataAsCsv({includeHeaders:!1,delimiter:i});else{const e=Us(t);if(e){const o=t.current.getCellParams(e.id,e.field);n=xk(o,{delimiterCharacter:i,ignoreValueFormatter:r})}}n=t.current.unstable_applyPipeProcessors("clipboardCopy",n),n&&(function(e){navigator.clipboard?navigator.clipboard.writeText(e).catch((()=>{kk(e)})):kk(e)}(n),t.current.publishEvent("clipboardCopy",n))}),[t,r,i]);((t,n,o,r,i)=>{const l=Km(t,"useNativeEventListener"),[a,s]=e.useState(!1),u=e.useRef(r),c=e.useCallback((e=>u.current&&u.current(e)),[]);e.useEffect((()=>{u.current=r}),[r]),e.useEffect((()=>{let e;if(e=Ym(n)?n():n&&n.current?n.current:null,e&&o&&!a){l.debug(`Binding native ${o} event`),e.addEventListener(o,c,i);const n=e;s(!0);const r=()=>{l.debug(`Clearing native ${o} event`),n.removeEventListener(o,c,i)};t.current.subscribeEvent("unmount",r)}}),[n,c,o,a,l,i,t])})(t,t.current.rootElementRef,"keydown",l),Gm(t,"clipboardCopy",n.onClipboardCopy)},Ek=e=>_e({},e,{columnMenu:{open:!1}}),Rk=["maxWidth","minWidth","width","flex"];const Tk=(e,t)=>{const n={};let o=0,r=0;const i=[];e.orderedFields.forEach((t=>{const l=_e({},e.lookup[t]);if(!1===e.columnVisibilityModel[t])l.computedWidth=0;else{let e;l.flex&&l.flex>0?(o+=l.flex,e=0,i.push(l)):e=Qm(l.width,l.minWidth,l.maxWidth),r+=e,l.computedWidth=e}n[t]=l}));const l=Math.max(t-r,0);if(o>0&&t>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const o=new Set(n.map((e=>e.field))),r={all:{},frozenFields:[],freeze:e=>{const t=r.all[e];t&&!0!==t.frozen&&(r.all[e].frozen=!0,r.frozenFields.push(e))}};return function i(){if(r.frozenFields.length===o.size)return;const l={min:{},max:{}};let a=e,s=t,u=0;r.frozenFields.forEach((e=>{a-=r.all[e].computedWidth,s-=r.all[e].flex}));for(let e=0;e<n.length;e+=1){const t=n[e];if(r.all[t.field]&&!0===r.all[t.field].frozen)continue;let o=a/s*t.flex;o<t.minWidth?(u+=t.minWidth-o,o=t.minWidth,l.min[t.field]=!0):o>t.maxWidth&&(u+=t.maxWidth-o,o=t.maxWidth,l.max[t.field]=!0),r.all[t.field]={frozen:!1,computedWidth:o,flex:t.flex}}u<0?Object.keys(l.max).forEach((e=>{r.freeze(e)})):u>0?Object.keys(l.min).forEach((e=>{r.freeze(e)})):n.forEach((({field:e})=>{r.freeze(e)})),i()}(),r.all}({initialFreeSpace:l,totalFlexUnits:o,flexColumns:i});Object.keys(e).forEach((t=>{n[t].computedWidth=e[t].computedWidth}))}return _e({},e,{lookup:n})},Nk=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:o,columnVisibilityModel:r=ls(e),keepOnlyColumnsToUpsert:i=!1})=>{var l,a,s,u;const c=!e.current.state.columns;let d;if(c)d={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const t=ns(e.current.state);d={orderedFields:i?[]:[...t.orderedFields],lookup:_e({},t.lookup),columnVisibilityModel:r}}let p={};i&&!c&&(p=Object.keys(d.lookup).reduce(((e,t)=>_e({},e,{[t]:!1})),{})),t.forEach((e=>{const{field:t}=e;p[t]=!0;let n=d.lookup[t];if(null==n){let r=o[yk];e.type&&o[e.type]&&(r=o[e.type]),n=_e({},r,{field:t,hasBeenResized:!1}),d.orderedFields.push(t)}else i&&d.orderedFields.push(t);let r=n.hasBeenResized;Rk.forEach((t=>{void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))})),d.lookup[t]=_e({},n,e,{hasBeenResized:r})})),i&&!c&&Object.keys(d.lookup).forEach((e=>{p[e]||delete d.lookup[e]}));const f=((e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:o={}}=t,r=Object.keys(o);if(0===r.length&&0===n.length)return e;const i={},l=[];for(let t=0;t<n.length;t+=1){const o=n[t];e.lookup[o]&&(i[o]=!0,l.push(o))}const a=0===l.length?e.orderedFields:[...l,...e.orderedFields.filter((e=>!i[e]))],s=_e({},e.lookup);for(let e=0;e<r.length;e+=1){const t=r[e],n=_e({},s[t],{hasBeenResized:!0});Object.entries(o[t]).forEach((([e,t])=>{n[e]=-1===t?1/0:t})),s[t]=n}return _e({},e,{orderedFields:a,lookup:s})})(e.current.unstable_applyPipeProcessors("hydrateColumns",d),n);return Tk(f,null!=(l=null==(a=(s=e.current).getRootDimensions)||null==(u=a.call(s))?void 0:u.viewportInnerSize.width)?l:0)},jk=e=>t=>_e({},t,{columns:e});function Pk({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:o,visibleRows:r}){let i=e;for(let l=n;l<o;l+=1)if(r[l]){const n=r[l].id,o=t.current.unstable_getCellColSpanInfo(n,e);o&&o.spannedByColSpan&&(i=o.leftVisibleCellIndex)}return i}function Mk({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:o,lastRowToRender:r,apiRef:i,visibleRows:l}){return Pk({firstColumnToRender:Math.max(e-n,t),apiRef:i,firstRowToRender:o,lastRowToRender:r,visibleRows:l})}function Ik(e,t){const n=eu(e),o=iu(e);return Math.floor(t*n)*((o??0)+1)}const _k={string:jO,number:gk,date:pk,dateTime:fk,boolean:PO,singleSelect:vk,[_O]:DO,[yk]:jO},Dk=(e,t,n)=>{var o,r,i,l,a;return _e({},e,{columns:Nk({apiRef:n,columnTypes:_k,columnsToUpsert:t.columns,initialState:null==(o=t.initialState)?void 0:o.columns,columnVisibilityModel:null!=(r=null!=(i=t.columnVisibilityModel)?i:null==(l=t.initialState)||null==(a=l.columns)?void 0:a.columnVisibilityModel)?r:{},keepOnlyColumnsToUpsert:!0})})};const Ak={compact:.7,comfortable:1.3,standard:1},Fk=(e,t)=>_e({},e,{density:{value:t.density,factor:Ak[t.density]}});const Lk=({apiRef:e,options:t})=>{const n=is(e);return t.fields?t.fields.map((e=>n.find((t=>t.field===e)))).filter((e=>!!e)):(t.allColumns?n:as(e)).filter((e=>!e.disableExport))},Vk=({apiRef:e})=>{var t,n;const o=Ls(e),r=ys(e),i=e.current.getSelectedRows(),l=o.filter((e=>"footer"!==r[e].type)),a=Ss(e),s=(null==a||null==(t=a.top)?void 0:t.map((e=>e.id)))||[],u=(null==a||null==(n=a.bottom)?void 0:n.map((e=>e.id)))||[];return l.unshift(...s),l.push(...u),i.size>0?l.filter((e=>i.has(e))):l},$k=(t,n)=>{const o=Km(t,"useGridCsvExport"),r=n.unstable_ignoreValueFormatterDuringExport,i=("object"==typeof r?null==r?void 0:r.csvExport:r)||!1,l=e.useCallback(((e={})=>{var n,r;o.debug("Get data as CSV");return Ok({columns:Lk({apiRef:t,options:e}),rowIds:(null!=(n=e.getRowsToExport)?n:Vk)({apiRef:t}),getCellParams:t.current.getCellParams,delimiterCharacter:e.delimiter||",",includeHeaders:null==(r=e.includeHeaders)||r,ignoreValueFormatter:i})}),[o,t,i]),a=e.useCallback((e=>{o.debug("Export data as CSV");const t=l(e);!function(e,t="csv",n=document.title||"untitled"){const o=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),n=document.createElement("a");return n.href=t,n.download=o,n.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[o,l]);Lu(t,{getDataAsCsv:l,exportDataAsCsv:a},"public");const s=e.useCallback(((e,t)=>{var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[...e,{component:Pe.jsx(rw,{options:t.csvOptions}),componentName:"csvExport"}]}),[]);ek(t,"exportMenu",s)};const zk=(t,n)=>{const o=Km(t,"useGridPrintExport"),r=e.useRef(null),i=e.useRef(null),l=e.useRef({});e.useEffect((()=>{r.current=Rt(t.current.rootElementRef.current)}),[t]);const a=e.useCallback(((e,n)=>new Promise((o=>{if(!e&&!n)return void o();const r=Lk({apiRef:t,options:{fields:e,allColumns:n}}).map((e=>e.field)),i=is(t),l={};i.forEach((e=>{l[e.field]=r.includes(e.field)})),t.current.setColumnVisibilityModel(l),o()}))),[t]),s=e.useCallback(((e,o)=>{var i,l;const a=_e({copyStyles:!0,hideToolbar:!1,hideFooter:!1},o),s=e.contentDocument;if(!s)return;const u=gg(t.current.state),c=t.current.rootElementRef.current,d=c.cloneNode(!0);d.querySelector(`.${qa.main}`).style.overflow="visible",d.style.contain="size";d.querySelector(`.${qa.columnHeaders}`).querySelector(`.${qa.columnHeadersInner}`).style.width="100%";let p=(null==(i=c.querySelector(`.${qa.toolbarContainer}`))?void 0:i.offsetHeight)||0,f=(null==(l=c.querySelector(`.${qa.footerContainer}`))?void 0:l.offsetHeight)||0;var h,m;a.hideToolbar&&(null==(h=d.querySelector(`.${qa.toolbarContainer}`))||h.remove(),p=0);a.hideFooter&&(null==(m=d.querySelector(`.${qa.footerContainer}`))||m.remove(),f=0);d.style.height=`${u.currentPageTotalHeight+Ik(t,n.columnHeaderHeight)+p+f}px`,d.style.boxSizing="content-box";const g=document.createElement("div");g.appendChild(d),s.body.innerHTML=g.innerHTML;const b="function"==typeof a.pageStyle?a.pageStyle():a.pageStyle;if("string"==typeof b){const e=s.createElement("style");e.appendChild(s.createTextNode(b)),s.head.appendChild(e)}if(a.bodyClassName&&s.body.classList.add(...a.bodyClassName.split(" ")),a.copyStyles){const e=c.getRootNode(),t=("ShadowRoot"===e.constructor.name?e:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let e=0;e<t.length;e+=1){const n=t[e];if("STYLE"===n.tagName){const e=s.createElement(n.tagName),t=n.sheet;if(t){let n="";for(let e=0;e<t.cssRules.length;e+=1)"string"==typeof t.cssRules[e].cssText&&(n+=`${t.cssRules[e].cssText}\r\n`);e.appendChild(s.createTextNode(n)),s.head.appendChild(e)}}else if(n.getAttribute("href")){const e=s.createElement(n.tagName);for(let t=0;t<n.attributes.length;t+=1){const o=n.attributes[t];o&&e.setAttribute(o.nodeName,o.nodeValue||"")}s.head.appendChild(e)}}}"test"!==process.env.NODE_ENV&&e.contentWindow.print()}),[t,r,n.columnHeaderHeight]),u=e.useCallback((e=>{var n,o;r.current.body.removeChild(e),t.current.restoreState(i.current||{}),null!=(n=i.current)&&null!=(o=n.columns)&&o.columnVisibilityModel||t.current.setColumnVisibilityModel(l.current),t.current.unstable_enableVirtualization(),i.current=null,l.current={}}),[t]),c={exportDataAsPrint:e.useCallback((async e=>{if(o.debug("Export data as Print"),!t.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(i.current=t.current.exportState(),l.current=ls(t),n.pagination){const e=$s(t);t.current.setPageSize(e)}await a(null==e?void 0:e.fields,null==e?void 0:e.allColumns),t.current.unstable_disableVirtualization(),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const c=function(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}(null==e?void 0:e.fileName);"test"===process.env.NODE_ENV?(r.current.body.appendChild(c),s(c,e),u(c)):(c.onload=()=>{s(c,e),c.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&u(c)}))},r.current.body.appendChild(c))}),[n,o,t,s,u,a])};Lu(t,c,"public");const d=e.useCallback(((e,t)=>{var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[...e,{component:Pe.jsx(iw,{options:t.printOptions}),componentName:"printExport"}]}),[]);ek(t,"exportMenu",d)},qk=(e,t)=>{const n=_e({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operator){const e=rs(t)[n.field];n.operator=e&&e.filterOperators[0].value}return n},Hk=Ma(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Bk=Ma("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),Uk=Ma("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),Wk=(e,t,n)=>{const o=e.items.length>1;let r;o&&t?(Hk(),r=[e.items[0]]):r=e.items;const i=o&&r.some((e=>null==e.id)),l=r.some((e=>null==e.operator));return i&&Bk(),l&&Uk(),l||i?_e({},e,{items:r.map((e=>qk(e,n)))}):e.items!==r?_e({},e,{items:r}):e},Gk=(e,t,n)=>o=>_e({},o,{filterModel:Wk(e,t,n)}),Kk=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let o;if(n.valueParser){var r;const t=n.valueParser;o=Array.isArray(e.value)?null==(r=e.value)?void 0:r.map((e=>t(e))):t(e.value)}else o=e.value;const i=_e({},e,{value:o}),l=n.filterOperators;if(null==l||!l.length)throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=l.find((e=>e.value===i.operator));if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const s=!SO(a.getApplyFilterFn),u=!SO(a.getApplyFilterFnV7);if(a.getApplyFilterFnV7&&(!s||u)){const e=a.getApplyFilterFnV7(i,n);return"function"!=typeof e?null:{v7:!0,item:i,fn:o=>{const r=t.current.getRowValue(o,n);return e(r,o,n,t)}}}const c=a.getApplyFilterFn(i,n);return"function"!=typeof c?null:{v7:!1,item:i,fn:e=>{const n=t.current.getCellParams(e,i.field);OO.current=t;const o=c(n);return OO.current=null,o}}},Yk=(e,t,n)=>{const o=((e,t,n)=>{const{items:o}=t,r=o.map((e=>Kk(e,n))).filter((e=>!!e));return 0===r.length?null:(t,n)=>{const o={};for(let i=0;i<r.length;i+=1){const l=r[i];(!n||n(l.item.field))&&(o[l.item.id]=l.v7?l.fn(t):l.fn(e?e(t):t.id))}return o}})(e,t,n),r=((e,t,n)=>{var o,r;const i=null!=(o=null==(r=t.quickFilterValues)?void 0:r.filter(Boolean))?o:[];if(0===i.length)return null;const l=os(n),a=[];return l.forEach((e=>{const t=n.current.getColumn(e),o=null==t?void 0:t.getApplyQuickFilterFn,r=null==t?void 0:t.getApplyQuickFilterFnV7,l=!SO(o),s=!SO(r);!r||l&&!s?o&&a.push({column:t,appliers:i.map((e=>({v7:!1,fn:o(e,t,n)})))}):a.push({column:t,appliers:i.map((e=>({v7:!0,fn:r(e,t,n)})))})})),function(t,o){const r={},l={};e:for(let u=0;u<i.length;u+=1){const c=i[u];for(let i=0;i<a.length;i+=1){const{column:d,appliers:p}=a[i],{field:f}=d;if(o&&!o(f))continue;const h=p[u],m=n.current.getRowValue(t,d);if(null!==h.fn)if(h.v7){if(h.fn(m,t,d,n)){r[c]=!0;continue e}}else{var s;const o=null!=(s=l[f])?s:n.current.getCellParams(e?e(t):t.id,f);if(l[f]=o,h.fn(o)){r[c]=!0;continue e}}}r[c]=!1}return r}})(e,t,n);return function(e,t,n){var i,l;n.passingFilterItems=null!=(i=null==o?void 0:o(e,t))?i:null,n.passingQuickFilterValues=null!=(l=null==r?void 0:r(e,t))?l:null}},Zk=e=>null!=e,Xk=(e,t,n,o,r)=>{const i=((e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter((e=>null!==Kk(e,t)))),e.cleanedFilterItems))(r,o,n.items),l=e.filter(Zk),a=t.filter(Zk);if(l.length>0){var s;const e=e=>l.some((t=>t[e.id]));if((null!=(s=n.logicOperator)?s:$m().logicOperator)===ju.And){if(!i.every(e))return!1}else if(!i.some(e))return!1}if(a.length>0&&null!=n.quickFilterValues){var u;const e=e=>a.some((t=>t[e]));if((null!=(u=n.quickFilterLogicOperator)?u:$m().quickFilterLogicOperator)===ju.And){if(!n.quickFilterValues.every(e))return!1}else if(!n.quickFilterValues.some(e))return!1}return!0},Qk=(e,t,n)=>{var o,r,i,l;const a=null!=(o=null!=(r=t.filterModel)?r:null==(i=t.initialState)||null==(l=i.filter)?void 0:l.filterModel)?o:$m();return _e({},e,{filter:{filterModel:Wk(a,t.disableMultipleColumnsFiltering,n),filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Jk=e=>e.filteredRowsLookup;function eS(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}const tS=e=>_e({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}});const nS=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:o})=>{if("rtl"===o){if(e<n)return e+1}else if("ltr"===o&&e>t)return e-1;return null},oS=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:o})=>{if("rtl"===o){if(e>t)return e-1}else if("ltr"===o&&e<n)return e+1;return null},rS=(t,n)=>{const o=Km(t,"useGridKeyboardNavigation"),r=CO(t,n).rows,i=mr(),l=e.useMemo((()=>function(e,t){const n=Ss(e)||{};return[...n.top||[],...t,...n.bottom||[]]}(t,r)),[t,r]),a="DataGrid"!==n.signature&&n.unstable_headerFilters,s=e.useCallback(((e,n,r="left")=>{const i=Ds(t),l=t.current.unstable_getCellColSpanInfo(n,e);l&&l.spannedByColSpan&&("left"===r?e=l.leftVisibleCellIndex:"right"===r&&(e=l.rightVisibleCellIndex));const a=i.findIndex((e=>e.id===n));o.debug(`Navigating to cell row ${a}, col ${e}`),t.current.scrollToIndexes({colIndex:e,rowIndex:a});const s=t.current.getVisibleColumns()[e].field;t.current.setCellFocus(n,s)}),[t,o]),u=e.useCallback(((e,n)=>{o.debug(`Navigating to header col ${e}`),t.current.scrollToIndexes({colIndex:e});const r=t.current.getVisibleColumns()[e].field;t.current.setColumnHeaderFocus(r,n)}),[t,o]),c=e.useCallback(((e,n)=>{o.debug(`Navigating to header filter col ${e}`),t.current.scrollToIndexes({colIndex:e});const r=t.current.getVisibleColumns()[e].field;t.current.setColumnHeaderFilterFocus(r,n)}),[t,o]),d=e.useCallback(((e,n,r)=>{o.debug(`Navigating to header col ${e}`),t.current.scrollToIndexes({colIndex:e});const{field:i}=t.current.getVisibleColumns()[e];t.current.setColumnGroupHeaderFocus(i,n,r)}),[t,o]),p=e.useCallback((e=>null==l?void 0:l[e].id),[l]),f=e.useCallback(((e,n)=>{const o=n.currentTarget.querySelector(`.${qa.columnHeaderTitleContainerContent}`);if(o&&o.contains(n.target)&&e.field!==IO.field||!t.current.getRootDimensions())return;const r=t.current.getViewportPageSize(),f=e.field?t.current.getColumnIndex(e.field):0,h=l.length-1,m=as(t).length-1,g=iu(t);let b=!0;switch(n.key){case"ArrowDown":a?c(f,n):s(f,p(0));break;case"ArrowRight":{const e=oS({currentColIndex:f,firstColIndex:0,lastColIndex:m,direction:i.direction});null!==e&&u(e,n);break}case"ArrowLeft":{const e=nS({currentColIndex:f,firstColIndex:0,lastColIndex:m,direction:i.direction});null!==e&&u(e,n);break}case"ArrowUp":g>0&&d(f,g-1,n);break;case"PageDown":null!==h&&s(f,p(Math.min(0+r,h)));break;case"Home":u(0,n);break;case"End":u(m,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&t.current.toggleColumnMenu(e.field);break;case" ":break;default:b=!1}b&&n.preventDefault()}),[t,l.length,a,c,s,p,i.direction,u,d]),h=e.useCallback(((e,n)=>{if(!t.current.getRootDimensions())return;const o=jg(t)===e.field,r=Pg(t)===e.field;if(o||r||!Jp(n.key))return;const a=t.current.getViewportPageSize(),d=e.field?t.current.getColumnIndex(e.field):0,f=l.length-1,h=as(t).length-1;let m=!0;switch(n.key){case"ArrowDown":{const e=p(0);null!=e&&s(d,e);break}case"ArrowRight":{const e=oS({currentColIndex:d,firstColIndex:0,lastColIndex:h,direction:i.direction});null!==e&&c(e,n);break}case"ArrowLeft":{const o=nS({currentColIndex:d,firstColIndex:0,lastColIndex:h,direction:i.direction});null!==o?c(o,n):t.current.setColumnHeaderFilterFocus(e.field,n);break}case"ArrowUp":u(d,n);break;case"PageDown":null!==f&&s(d,p(Math.min(0+a,f)));break;case"Home":c(0,n);break;case"End":c(h,n);break;case" ":break;default:m=!1}m&&n.preventDefault()}),[t,l.length,c,i.direction,u,s,p]),m=e.useCallback(((e,n)=>{if(!t.current.getRootDimensions())return;const o=Gs(t);if(null===o)return;const{field:r,depth:i}=o,{fields:a,depth:c,maxDepth:f}=e,h=t.current.getViewportPageSize(),m=t.current.getColumnIndex(r),g=r?t.current.getColumnIndex(r):0,b=l.length-1,v=as(t).length-1;let y=!0;switch(n.key){case"ArrowDown":c===f-1?u(m,n):d(m,i+1,n);break;case"ArrowUp":c>0&&d(m,i-1,n);break;case"ArrowRight":{const e=a.length-a.indexOf(r)-1;m+e+1<=v&&d(m+e+1,i,n);break}case"ArrowLeft":{const e=a.indexOf(r);m-e-1>=0&&d(m-e-1,i,n);break}case"PageDown":null!==b&&s(g,p(Math.min(0+h,b)));break;case"Home":d(0,i,n);break;case"End":d(v,i,n);break;case" ":break;default:y=!1}y&&n.preventDefault()}),[t,l.length,u,d,s,p]),g=e.useCallback(((e,n)=>{if(!n.currentTarget.contains(n.target))return;const o=t.current.getCellParams(e.id,e.field);if(o.cellMode===Tu.Edit||!Jp(n.key)||!t.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:n,cell:o}))return;const r=t.current.getRootDimensions();if(0===l.length||!r)return;const d=i.direction,f=t.current.getViewportPageSize(),h=e.field?t.current.getColumnIndex(e.field):0,m=l.findIndex((t=>t.id===e.id)),g=l.length-1,b=as(t).length-1;let v=!0;switch(n.key){case"ArrowDown":m<g&&s(h,p(m+1));break;case"ArrowUp":m>0?s(h,p(m-1)):a?c(h,n):u(h,n);break;case"ArrowRight":{const e=oS({currentColIndex:h,firstColIndex:0,lastColIndex:b,direction:d});null!==e&&s(e,p(m),"rtl"===d?"left":"right");break}case"ArrowLeft":{const e=nS({currentColIndex:h,firstColIndex:0,lastColIndex:b,direction:d});null!==e&&s(e,p(m),"rtl"===d?"right":"left");break}case"Tab":n.shiftKey&&h>0?s(h-1,p(m),"left"):!n.shiftKey&&h<b&&s(h+1,p(m),"right");break;case" ":{if(e.field===AO)break;const t=e.colDef;if(t&&"treeDataGroup"===t.type)break;!n.shiftKey&&m<g&&s(h,p(Math.min(m+f,g)));break}case"PageDown":m<g&&s(h,p(Math.min(m+f,g)));break;case"PageUp":{const e=Math.max(m-f,0);e!==m&&e>=0?s(h,p(e)):u(h,n);break}case"Home":n.ctrlKey||n.metaKey||n.shiftKey?s(0,p(0)):s(0,p(m));break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?s(b,p(g)):s(b,p(m));break;default:v=!1}v&&n.preventDefault()}),[t,l,i.direction,s,p,a,c,u]),b=e.useCallback(((e,{event:t})=>" "!==t.key&&e),[]);ek(t,"canStartEditing",b),Um(t,"columnHeaderKeyDown",f),Um(t,"headerFilterKeyDown",h),Um(t,"columnGroupHeaderKeyDown",m),Um(t,"cellKeyDown",g)},iS=(e,t)=>{var n,o,r;const i=_e({},ig(t.autoPageSize),null!=(n=t.paginationModel)?n:null==(o=t.initialState)||null==(r=o.pagination)?void 0:r.paginationModel);return lg(i.pageSize,t.signature),_e({},e,{pagination:{paginationModel:i}})},lS=(e,t,n)=>o=>{var r;let i=o.paginationModel;const l=null!=(r=null==n?void 0:n.pageSize)?r:i.pageSize,a=og(e,l);n&&((null==n?void 0:n.page)!==i.page||(null==n?void 0:n.pageSize)!==i.pageSize)&&(i=n);const s=((e,t=0)=>0===t?e:Math.max(Math.min(e,t-1),0))(i.page,a);return s!==i.page&&(i=_e({},i,{page:s})),lg(i.pageSize,t),{paginationModel:i}},aS=(e,t)=>{var n,o;return _e({},e,{preferencePanel:null!=(n=null==(o=t.initialState)?void 0:o.preferencePanel)?n:{open:!1}})},sS=["id","field"],uS=["id","field"],cS=Ma(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),dS=["id"],pS=["id"],fS=Ma(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),hS=e=>_e({},e,{editRows:{}}),mS=(t,n)=>{((t,n)=>{const[o,r]=e.useState({}),i=e.useRef(o),l=e.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:s,cellModesModel:u,onCellModesModelChange:c}=n,d=e=>(...t)=>{n.editMode===Ru.Cell&&e(...t)},p=e.useCallback(((e,n)=>{const o=t.current.getCellParams(e,n);if(!t.current.isCellEditable(o))throw new Error(`MUI: The cell with id=${e} and field=${n} is not editable.`)}),[t]),f=e.useCallback(((e,n,o)=>{if(t.current.getCellMode(e,n)!==o)throw new Error(`MUI: The cell with id=${e} and field=${n} is not in ${o} mode.`)}),[t]),h=e.useCallback(((e,n)=>{if(!e.isEditable||e.cellMode===Tu.Edit)return;const o=_e({},e,{reason:Pu.cellDoubleClick});t.current.publishEvent("cellEditStart",o,n)}),[t]),m=e.useCallback(((e,n)=>{if(e.cellMode===Tu.View||t.current.getCellMode(e.id,e.field)===Tu.View)return;const o=_e({},e,{reason:Mu.cellFocusOut});t.current.publishEvent("cellEditStop",o,n)}),[t]),g=e.useCallback(((e,n)=>{if(e.cellMode===Tu.Edit){if(229===n.which)return;let o;if("Escape"===n.key?o=Mu.escapeKeyDown:"Enter"===n.key?o=Mu.enterKeyDown:"Tab"===n.key&&(o=n.shiftKey?Mu.shiftTabKeyDown:Mu.tabKeyDown,n.preventDefault()),o){const r=_e({},e,{reason:o});t.current.publishEvent("cellEditStop",r,n)}}else if(e.isEditable){let o;if(!t.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:e,editMode:"cell"}))return;if(Qp(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?o=Pu.printableKeyDown:"Enter"===n.key?o=Pu.enterKeyDown:("Delete"===n.key||"Backspace"===n.key)&&(o=Pu.deleteKeyDown),o){const r=_e({},e,{reason:o,key:n.key});t.current.publishEvent("cellEditStart",r,n)}}}),[t]),b=e.useCallback((n=>{const{id:o,field:r,reason:i,key:l,colDef:a}=n,s={id:o,field:r};if(i===Pu.printableKeyDown)if(e.version.startsWith("17"))s.deleteValue=!0;else{const e=a.valueParser?a.valueParser(l):l;s.initialValue=e}else i===Pu.deleteKeyDown&&(s.deleteValue=!0);t.current.startCellEditMode(s)}),[t]),v=e.useCallback((e=>{const{id:n,field:o,reason:r}=e;let i;t.current.runPendingEditCellValueMutation(n,o),r===Mu.enterKeyDown?i="below":r===Mu.tabKeyDown?i="right":r===Mu.shiftTabKeyDown&&(i="left");const l="escapeKeyDown"===r;t.current.stopCellEditMode({id:n,field:o,ignoreModifications:l,cellToFocusAfter:i})}),[t]);Um(t,"cellDoubleClick",d(h)),Um(t,"cellFocusOut",d(m)),Um(t,"cellKeyDown",d(g)),Um(t,"cellEditStart",d(b)),Um(t,"cellEditStop",d(v)),Gm(t,"cellEditStart",n.onCellEditStart),Gm(t,"cellEditStop",n.onCellEditStop);const y=e.useCallback(((e,n)=>{const o=FO(t.current.state);return o[e]&&o[e][n]?Tu.Edit:Tu.View}),[t]),w=Dt((e=>{const o=e!==n.cellModesModel;c&&o&&c(e,{}),(!n.cellModesModel||!o)&&(r(e),i.current=e,t.current.publishEvent("cellModesModelChange",e))})),x=e.useCallback(((e,t,n)=>{const o=_e({},i.current);if(null!==n)o[e]=_e({},o[e],{[t]:_e({},n)});else{const n=De(o[e],[t].map(JO));o[e]=n,0===Object.keys(o[e]).length&&delete o[e]}w(o)}),[w]),C=e.useCallback(((e,n,o)=>{t.current.setState((t=>{const r=_e({},t.editRows);return null!==o?r[e]=_e({},r[e],{[n]:_e({},o)}):(delete r[e][n],0===Object.keys(r[e]).length&&delete r[e]),_e({},t,{editRows:r})})),t.current.forceUpdate()}),[t]),O=e.useCallback((e=>{const{id:t,field:n}=e,o=De(e,sS);p(t,n),f(t,n,Tu.View),x(t,n,_e({mode:Tu.Edit},o))}),[p,f,x]),k=Dt((e=>{const{id:n,field:o,deleteValue:r,initialValue:i}=e;let l=t.current.getCellValue(n,o),a=!1;(r||i)&&(l=r?"":i,a=!0),C(n,o,{value:l,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:a}),t.current.setCellFocus(n,o)})),S=e.useCallback((e=>{const{id:t,field:n}=e,o=De(e,uS);f(t,n,Tu.Edit),x(t,n,_e({mode:Tu.View},o))}),[f,x]),E=Dt((async e=>{const{id:n,field:o,ignoreModifications:r,cellToFocusAfter:i="none"}=e;f(n,o,Tu.Edit),t.current.runPendingEditCellValueMutation(n,o);const u=()=>{C(n,o,null),x(n,o,null),"none"!==i&&t.current.moveFocusToRelativeCell(n,o,i)};if(r)return void u();const c=FO(t.current.state),{error:d,isProcessingProps:p}=c[n][o];if(d||p)return l.current[n][o].mode=Tu.Edit,void x(n,o,{mode:Tu.Edit});const h=t.current.getRowWithUpdatedValuesFromCellEditing(n,o);if(a){const e=e=>{l.current[n][o].mode=Tu.Edit,x(n,o,{mode:Tu.Edit}),s?s(e):cS()};try{const o=t.current.getRow(n);Promise.resolve(a(h,o)).then((e=>{t.current.updateRows([e]),u()})).catch(e)}catch(t){e(t)}}else t.current.updateRows([h]),u()})),R={setCellEditingEditCellValue:e.useCallback((async e=>{var n,o;const{id:r,field:i,value:l,debounceMs:a,unstable_skipValueParser:s}=e;p(r,i),f(r,i,Tu.Edit);const u=t.current.getColumn(i),c=t.current.getRow(r);let d=l;u.valueParser&&!s&&(d=u.valueParser(l,t.current.getCellParams(r,i)));let h=FO(t.current.state),m=_e({},h[r][i],{value:d,changeReason:a?"debouncedSetEditCellValue":"setEditCellValue"});if(u.preProcessEditCellProps){const e=l!==h[r][i].value;m=_e({},m,{isProcessingProps:!0}),C(r,i,m),m=await Promise.resolve(u.preProcessEditCellProps({id:r,row:c,props:m,hasChanged:e}))}return t.current.getCellMode(r,i)!==Tu.View&&(h=FO(t.current.state),m=_e({},m,{isProcessingProps:!1}),m.value=u.preProcessEditCellProps?h[r][i].value:d,C(r,i,m),h=FO(t.current.state),!(null!=(n=h[r])&&null!=(o=n[i])&&o.error))}),[t,p,f,C]),getRowWithUpdatedValuesFromCellEditing:e.useCallback(((e,n)=>{const o=t.current.getColumn(n),r=FO(t.current.state),i=t.current.getRow(e);if(!r[e]||!r[e][n])return t.current.getRow(e);const{value:l}=r[e][n];return o.valueSetter?o.valueSetter({value:l,row:i}):_e({},i,{[n]:l})}),[t])};Lu(t,{getCellMode:y,startCellEditMode:O,stopCellEditMode:S},"public"),Lu(t,R,"private"),e.useEffect((()=>{u&&w(u)}),[u,w]),e.useEffect((()=>{const e=vs(t),n=l.current;l.current=tg(o),Object.entries(o).forEach((([t,o])=>{Object.entries(o).forEach((([o,r])=>{var i,l,a;const s=(null==(i=n[t])||null==(l=i[o])?void 0:l.mode)||Tu.View,u=null!=(a=e[t])?a:t;r.mode===Tu.Edit&&s===Tu.View?k(_e({id:u,field:o},r)):r.mode===Tu.View&&s===Tu.Edit&&E(_e({id:u,field:o},r))}))}))}),[t,o,k,E])})(t,n),((t,n)=>{const[o,r]=e.useState({}),i=e.useRef(o),l=e.useRef({}),a=e.useRef(null),s=e.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:c,rowModesModel:d,onRowModesModelChange:p}=n,f=e=>(...t)=>{n.editMode===Ru.Row&&e(...t)},h=e.useCallback(((e,n)=>{const o=t.current.getCellParams(e,n);if(!t.current.isCellEditable(o))throw new Error(`MUI: The cell with id=${e} and field=${n} is not editable.`)}),[t]),m=e.useCallback(((e,n)=>{if(t.current.getRowMode(e)!==n)throw new Error(`MUI: The row with id=${e} is not in ${n} mode.`)}),[t]),g=e.useCallback(((e,n)=>{if(!e.isEditable||t.current.getRowMode(e.id)===Nu.Edit)return;const o=_e({},t.current.getRowParams(e.id),{field:e.field,reason:Iu.cellDoubleClick});t.current.publishEvent("rowEditStart",o,n)}),[t]),b=e.useCallback((e=>{s.current=e}),[]),v=e.useCallback(((e,n)=>{e.isEditable&&t.current.getRowMode(e.id)!==Nu.View&&(s.current=null,a.current=setTimeout((()=>{var o;if(a.current=null,(null==(o=s.current)?void 0:o.id)!==e.id){if(!t.current.getRow(e.id)||t.current.getRowMode(e.id)===Nu.View)return;const o=_e({},t.current.getRowParams(e.id),{field:e.field,reason:_u.rowFocusOut});t.current.publishEvent("rowEditStop",o,n)}})))}),[t]);e.useEffect((()=>()=>{clearTimeout(a.current)}),[]);const y=e.useCallback(((e,n)=>{if(e.cellMode===Nu.Edit){if(229===n.which)return;let o;if("Escape"===n.key)o=_u.escapeKeyDown;else if("Enter"===n.key)o=_u.enterKeyDown;else if("Tab"===n.key){const r=ss(t).filter((n=>t.current.getColumn(n).type===_O||t.current.isCellEditable(t.current.getCellParams(e.id,n))));if(n.shiftKey?e.field===r[0]&&(o=_u.shiftTabKeyDown):e.field===r[r.length-1]&&(o=_u.tabKeyDown),n.preventDefault(),!o){const o=r.findIndex((t=>t===e.field)),i=r[n.shiftKey?o-1:o+1];t.current.setCellFocus(e.id,i)}}if(o){const r=_e({},t.current.getRowParams(e.id),{reason:o,field:e.field});t.current.publishEvent("rowEditStop",r,n)}}else if(e.isEditable){let o;if(!t.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:e,editMode:"row"}))return;if(Qp(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?o=Iu.printableKeyDown:"Enter"===n.key?o=Iu.enterKeyDown:("Delete"===n.key||"Backspace"===n.key)&&(o=Iu.deleteKeyDown),o){const r=_e({},t.current.getRowParams(e.id),{field:e.field,key:n.key,reason:o});t.current.publishEvent("rowEditStart",r,n)}}}),[t]),w=e.useCallback((n=>{const{id:o,field:r,reason:i,key:l,columns:a}=n,s={id:o,fieldToFocus:r};if(i===Iu.printableKeyDown)if(e.version.startsWith("17"))s.deleteValue=!!r;else{const e=a.find((e=>e.field===r));s.initialValue=e.valueParser?e.valueParser(l):l}else i===Iu.deleteKeyDown&&(s.deleteValue=!!r);t.current.startRowEditMode(s)}),[t]),x=e.useCallback((e=>{const{id:n,reason:o,field:r}=e;let i;t.current.runPendingEditCellValueMutation(n),o===_u.enterKeyDown?i="below":o===_u.tabKeyDown?i="right":o===_u.shiftTabKeyDown&&(i="left");const l="escapeKeyDown"===o;t.current.stopRowEditMode({id:n,ignoreModifications:l,field:r,cellToFocusAfter:i})}),[t]);Um(t,"cellDoubleClick",f(g)),Um(t,"cellFocusIn",f(b)),Um(t,"cellFocusOut",f(v)),Um(t,"cellKeyDown",f(y)),Um(t,"rowEditStart",f(w)),Um(t,"rowEditStop",f(x)),Gm(t,"rowEditStart",n.onRowEditStart),Gm(t,"rowEditStop",n.onRowEditStop);const C=e.useCallback((e=>{if(n.editMode===Ru.Cell)return Nu.View;const o=FO(t.current.state);return o[e]&&Object.keys(o[e]).length>0?Nu.Edit:Nu.View}),[t,n.editMode]),O=Dt((e=>{const o=e!==n.rowModesModel;p&&o&&p(e,{}),(!n.rowModesModel||!o)&&(r(e),i.current=e,t.current.publishEvent("rowModesModelChange",e))})),k=e.useCallback(((e,t)=>{const n=_e({},i.current);null!==t?n[e]=_e({},t):delete n[e],O(n)}),[O]),S=e.useCallback(((e,n)=>{t.current.setState((t=>{const o=_e({},t.editRows);return null!==n?o[e]=n:delete o[e],_e({},t,{editRows:o})})),t.current.forceUpdate()}),[t]),E=e.useCallback(((e,n,o)=>{t.current.setState((t=>{const r=_e({},t.editRows);return null!==o?r[e]=_e({},r[e],{[n]:_e({},o)}):(delete r[e][n],0===Object.keys(r[e]).length&&delete r[e]),_e({},t,{editRows:r})})),t.current.forceUpdate()}),[t]),R=e.useCallback((e=>{const{id:t}=e,n=De(e,dS);m(t,Nu.View),k(t,_e({mode:Nu.Edit},n))}),[m,k]),T=Dt((e=>{const{id:n,fieldToFocus:o,deleteValue:r,initialValue:i}=e,l=os(t).reduce(((e,l)=>{if(!t.current.getCellParams(n,l).isEditable)return e;let a=t.current.getCellValue(n,l),s=!1;return o===l&&(r||i)&&(a=r?"":i,s=!0),e[l]={value:a,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:s},e}),{});S(n,l),o&&t.current.setCellFocus(n,o)})),N=e.useCallback((e=>{const{id:t}=e,n=De(e,pS);m(t,Nu.Edit),k(t,_e({mode:Nu.View},n))}),[m,k]),j=Dt((e=>{const{id:n,ignoreModifications:o,field:r,cellToFocusAfter:i="none"}=e;t.current.runPendingEditCellValueMutation(n);const a=()=>{"none"!==i&&r&&t.current.moveFocusToRelativeCell(n,r,i),S(n,null),k(n,null)};if(o)return void a();const s=FO(t.current.state),d=t.current.getRow(n);if(Object.values(s[n]).some((e=>e.isProcessingProps)))return void(l.current[n].mode=Nu.Edit);if(Object.values(s[n]).some((e=>e.error)))return l.current[n].mode=Nu.Edit,void k(n,{mode:Nu.Edit});const p=t.current.getRowWithUpdatedValuesFromRowEditing(n);if(u){const e=e=>{l.current[n].mode=Nu.Edit,k(n,{mode:Nu.Edit}),c?c(e):fS()};try{Promise.resolve(u(p,d)).then((e=>{t.current.updateRows([e]),a()})).catch(e)}catch(t){e(t)}}else t.current.updateRows([p]),a()})),P={setRowEditingEditCellValue:e.useCallback((e=>{const{id:n,field:o,value:r,debounceMs:i,unstable_skipValueParser:l}=e;h(n,o);const a=t.current.getColumn(o),s=t.current.getRow(n);let u=r;a.valueParser&&!l&&(u=a.valueParser(r,t.current.getCellParams(n,o)));let c=FO(t.current.state),d=_e({},c[n][o],{value:u,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return a.preProcessEditCellProps||E(n,o,d),new Promise((e=>{const r=[];if(a.preProcessEditCellProps){const i=d.value!==c[n][o].value;d=_e({},d,{isProcessingProps:!0}),E(n,o,d);const l=De(c[n],[o].map(JO)),p=Promise.resolve(a.preProcessEditCellProps({id:n,row:s,props:d,hasChanged:i,otherFieldsProps:l})).then((r=>{t.current.getRowMode(n)!==Nu.View?(c=FO(t.current.state),(r=_e({},r,{isProcessingProps:!1})).value=a.preProcessEditCellProps?c[n][o].value:u,E(n,o,r)):e(!1)}));r.push(p)}Object.entries(c[n]).forEach((([i,l])=>{if(i===o)return;const a=t.current.getColumn(i);if(!a.preProcessEditCellProps)return;l=_e({},l,{isProcessingProps:!0}),E(n,i,l),c=FO(t.current.state);const u=De(c[n],[i].map(JO)),d=Promise.resolve(a.preProcessEditCellProps({id:n,row:s,props:l,hasChanged:!1,otherFieldsProps:u})).then((o=>{t.current.getRowMode(n)!==Nu.View?(o=_e({},o,{isProcessingProps:!1}),E(n,i,o)):e(!1)}));r.push(d)})),Promise.all(r).then((()=>{t.current.getRowMode(n)===Nu.Edit?(c=FO(t.current.state),e(!c[n][o].error)):e(!1)}))}))}),[t,h,E]),getRowWithUpdatedValuesFromRowEditing:e.useCallback((e=>{const n=FO(t.current.state),o=t.current.getRow(e);if(!n[e])return t.current.getRow(e);let r=_e({},o);return Object.entries(n[e]).forEach((([e,n])=>{const o=t.current.getColumn(e);o.valueSetter?r=o.valueSetter({value:n.value,row:r}):r[e]=n.value})),r}),[t])};Lu(t,{getRowMode:C,startRowEditMode:R,stopRowEditMode:N},"public"),Lu(t,P,"private"),e.useEffect((()=>{d&&O(d)}),[d,O]),e.useEffect((()=>{const e=vs(t),n=l.current;l.current=tg(o),Object.entries(o).forEach((([t,o])=>{var r,i;const l=(null==(r=n[t])?void 0:r.mode)||Nu.View,a=null!=(i=e[t])?i:t;o.mode===Nu.Edit&&l===Nu.View?T(_e({id:a},o)):o.mode===Nu.View&&l===Nu.Edit&&j(_e({id:a},o))}))}),[t,o,T,j])})(t,n);const o=e.useRef({}),{isCellEditable:r}=n,i=e.useCallback((e=>!(mu(e.rowNode)||!e.colDef.editable||!e.colDef.renderEditCell)&&(!r||r(e))),[r]);e.useEffect((()=>{const e=o.current;return()=>{Object.entries(e).forEach((([t,n])=>{Object.keys(n).forEach((n=>{const[o]=e[t][n];clearTimeout(o),delete e[t][n]}))}))}}),[]);const l=e.useCallback(((e,t)=>{if(o.current[e])if(t){if(o.current[e][t]){const[,n]=o.current[e][t];n()}}else Object.keys(o.current[e]).forEach((t=>{const[,n]=o.current[e][t];n()}))}),[]),a=e.useCallback((e=>{const{id:r,field:i,debounceMs:l}=e;return new Promise((a=>{((e,t,n,r)=>{if(!n)return void r();if(o.current[e]||(o.current[e]={}),o.current[e][t]){const[n]=o.current[e][t];clearTimeout(n)}const i=setTimeout((()=>{r(),delete o.current[e][t]}),n);o.current[e][t]=[i,()=>{const[n]=o.current[e][t];clearTimeout(n),r(),delete o.current[e][t]}]})(r,i,l,(async()=>{const o=n.editMode===Ru.Row?t.current.setRowEditingEditCellValue:t.current.setCellEditingEditCellValue;if(t.current.getCellMode(r,i)===Tu.Edit){const t=await o(e);a(t)}}))}))}),[t,n.editMode]),s=e.useCallback(((e,o)=>n.editMode===Ru.Cell?t.current.getRowWithUpdatedValuesFromCellEditing(e,o):t.current.getRowWithUpdatedValuesFromRowEditing(e)),[t,n.editMode]),u=e.useCallback(((e,n)=>{var o,r;return null!=(o=null==(r=FO(t.current.state)[e])?void 0:r[n])?o:null}),[t]),c={runPendingEditCellValueMutation:l};Lu(t,{isCellEditable:i,setEditCellValue:a,getRowWithUpdatedValues:s,unstable_getEditCellMeta:u},"public"),Lu(t,c,"private")},gS=(e,t,n)=>(n.current.caches.rows=pu({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),_e({},e,{rows:hu({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),bS=(t,n)=>{if("production"!==process.env.NODE_ENV)try{Object.freeze(n.rows)}catch{}const o=Km(t,"useGridRows"),r=CO(t,n),i=e.useRef(Date.now()),l=e.useRef(null),a=e.useCallback((e=>{const n=bs(t)[e];if(n)return n;const o=t.current.getRowNode(e);return o&&mu(o)?{[cu]:e}:null}),[t]),s=e.useMemo((()=>r.rows.reduce(((e,{id:t},n)=>(e[t]=n,e)),{})),[r.rows]),u=e.useCallback((({cache:e,throttle:o})=>{const r=()=>{l.current=null,i.current=Date.now(),t.current.setState((e=>_e({},e,{rows:hu({apiRef:t,rowCountProp:n.rowCount,loadingProp:n.loading,previousTree:ys(t),previousTreeDepths:xs(t)})}))),t.current.publishEvent("rowsSet"),t.current.forceUpdate()};if(l.current&&(clearTimeout(l.current),l.current=null),t.current.caches.rows=e,!o)return void r();const a=n.throttleRowsMs-(Date.now()-i.current);a>0?l.current=setTimeout(r,a):r()}),[n.throttleRowsMs,n.rowCount,n.loading,t]),c=e.useCallback((e=>{o.debug(`Updating all rows, new length ${e.length}`);const r=pu({rows:e,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),i=t.current.caches.rows;r.rowsBeforePartialUpdates=i.rowsBeforePartialUpdates,u({cache:r,throttle:!0})}),[o,n.getRowId,n.loading,n.rowCount,u,t]),d=e.useCallback((e=>{if(n.signature===Hm.DataGrid&&e.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));const o=[];e.forEach((e=>{const r=du(e,n.getRowId,"A row was provided without id when calling updateRows():"),i=t.current.getRowNode(r);if("pinnedRow"===(null==i?void 0:i.type)){const n=t.current.caches.pinnedRows,o=n.idLookup[r];o&&(n.idLookup[r]=_e({},o,e))}else o.push(e)}));const r=(({previousCache:e,getRowId:t,updates:n})=>{var o,r,i;if("full"===e.updates.type)throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const l=new Map;n.forEach((e=>{const n=du(e,t,"A row was provided without id when calling updateRows():");l.has(n)?l.set(n,_e({},l.get(n),e)):l.set(n,e)}));const a={type:"partial",actions:{insert:[...null!=(o=e.updates.actions.insert)?o:[]],modify:[...null!=(r=e.updates.actions.modify)?r:[]],remove:[...null!=(i=e.updates.actions.remove)?i:[]]},idToActionLookup:_e({},e.updates.idToActionLookup)},s=_e({},e.dataRowIdToModelLookup),u=_e({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};l.forEach(((e,t)=>{const n=a.idToActionLookup[t];if("delete"===e._action){if("remove"===n||!s[t])return;return null!=n&&(c[n][t]=!0),a.actions.remove.push(t),delete s[t],void delete u[t]}const o=s[t];if(o)return"remove"===n?(c.remove[t]=!0,a.actions.modify.push(t)):null==n&&a.actions.modify.push(t),void(s[t]=_e({},o,e));"remove"===n?(c.remove[t]=!0,a.actions.insert.push(t)):null==n&&a.actions.insert.push(t),s[t]=e,u[t]=t}));const d=Object.keys(c);for(let e=0;e<d.length;e+=1){const t=d[e],n=c[t];Object.keys(n).length>0&&(a.actions[t]=a.actions[t].filter((e=>!n[e])))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:u,updates:a,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}})({updates:o,getRowId:n.getRowId,previousCache:t.current.caches.rows});u({cache:r,throttle:!0})}),[n.signature,n.getRowId,u,t]),p=e.useCallback((()=>{const e=Os(t),n=bs(t);return new Map(e.map((e=>{var t;return[e,null!=(t=n[e])?t:{}]})))}),[t]),f=e.useCallback((()=>hs(t)),[t]),h=e.useCallback((()=>Os(t)),[t]),m=e.useCallback((e=>s[e]),[s]),g=e.useCallback(((e,n)=>{const o=t.current.getRowNode(e);if(!o)throw new Error(`MUI: No row with id #${e} found`);if("group"!==o.type)throw new Error("MUI: Only group nodes can be expanded or collapsed");const r=_e({},o,{childrenExpanded:n});t.current.setState((t=>_e({},t,{rows:_e({},t.rows,{tree:_e({},t.rows.tree,{[e]:r})})}))),t.current.forceUpdate(),t.current.publishEvent("rowExpansionChange",r)}),[t]),b=e.useCallback((e=>{var n;return null!=(n=ys(t)[e])?n:null}),[t]),v=e.useCallback((({skipAutoGeneratedRows:e=!0,groupId:n,applySorting:o,applyFiltering:r})=>{const i=ys(t);let l;if(o){const o=i[n];if(!o)return[];const r=Ts(t);l=[];const a=r.findIndex((e=>e===n))+1;for(let t=a;t<r.length&&i[r[t]].depth>o.depth;t+=1){const n=r[t];(!e||!mu(i[n]))&&l.push(n)}}else l=gu(i,n,e);if(r){const e=_s(t);l=l.filter((t=>!1!==e[t]))}return l}),[t]),y=e.useCallback(((e,n)=>{const r=t.current.getRowNode(e);if(!r)throw new Error(`MUI: No row with id #${e} found`);if(r.parent!==uu)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if("leaf"!==r.type)throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");t.current.setState((r=>{const i=ys(r,t.current.instanceId)[uu],l=i.children,a=l.findIndex((t=>t===e));if(-1===a||a===n)return r;o.debug(`Moving row ${e} to index ${n}`);const s=[...l];return s.splice(n,0,s.splice(a,1)[0]),_e({},r,{rows:_e({},r.rows,{tree:_e({},r.rows.tree,{[uu]:_e({},i,{children:s})})})})})),t.current.publishEvent("rowsSet")}),[t,o]),w={getRow:a,getRowModels:p,getRowsCount:f,getAllRowIds:h,setRows:c,updateRows:d,getRowNode:b,getRowIndexRelativeToVisibleRows:m,unstable_replaceRows:e.useCallback(((e,o)=>{if(n.signature===Hm.DataGrid&&o.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===o.length)return;if(Cs(t)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const r=_e({},ys(t)),i=_e({},bs(t)),l=_e({},vs(t)),a=r[uu],s=[...a.children];for(let t=0;t<o.length;t+=1){const a=o[t],u=du(a,n.getRowId,"A row was provided without id when calling replaceRows()."),[c]=s.splice(e+t,1,u);delete i[c],delete l[c],delete r[c];const d={id:u,depth:0,parent:uu,type:"leaf",groupingKey:null};i[u]=a,l[u]=u,r[u]=d}r[uu]=_e({},a,{children:s});const u=s.filter((e=>"leaf"===r[e].type));t.current.caches.rows.dataRowIdToModelLookup=i,t.current.caches.rows.dataRowIdToIdLookup=l,t.current.setState((e=>_e({},e,{rows:_e({},e.rows,{dataRowIdToModelLookup:i,dataRowIdToIdLookup:l,dataRowIds:u,tree:r})}))),t.current.publishEvent("rowsSet")}),[t,n.signature,n.getRowId])},x={setRowIndex:y,setRowChildrenExpansion:g,getRowGroupChildren:v},C=e.useCallback((()=>{let e;o.info("Row grouping pre-processing have changed, regenerating the row tree"),e=t.current.caches.rows.rowsBeforePartialUpdates===n.rows?_e({},t.current.caches.rows,{updates:{type:"full",rows:Os(t)}}):pu({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),u({cache:e,throttle:!1})}),[o,t,n.rows,n.getRowId,n.loading,n.rowCount,u]),O=e.useCallback((e=>{"rowTreeCreation"===e&&C()}),[C]),k=e.useCallback((()=>{t.current.getActiveStrategy("rowTree")!==ws(t)&&C()}),[t,C]);Um(t,"activeStrategyProcessorChange",O),Um(t,"strategyAvailabilityChange",k);const S=e.useCallback((()=>{t.current.setState((e=>{const o=t.current.unstable_applyPipeProcessors("hydrateRows",{tree:ys(e,t.current.instanceId),treeDepths:xs(e,t.current.instanceId),dataRowIds:Os(e,t.current.instanceId),dataRowIdToModelLookup:bs(e,t.current.instanceId),dataRowIdToIdLookup:vs(e,t.current.instanceId)});return _e({},e,{rows:_e({},e.rows,o,{totalTopLevelRowCount:fu({tree:o.tree,rowCountProp:n.rowCount})})})})),t.current.publishEvent("rowsSet"),t.current.forceUpdate()}),[t,n.rowCount]);tk(t,"hydrateRows",S),Lu(t,w,"public"),Lu(t,x,n.signature===Hm.DataGrid?"private":"public"),e.useEffect((()=>()=>{null!==l.current&&clearTimeout(l.current)}),[]);const E=e.useRef(!0);e.useEffect((()=>{if(E.current)return void(E.current=!1);const e=t.current.caches.rows.rowsBeforePartialUpdates===n.rows,r=t.current.caches.rows.loadingPropBeforePartialUpdates===n.loading,i=t.current.caches.rows.rowCountPropBeforePartialUpdates===n.rowCount;if(e)return r||(t.current.setState((e=>_e({},e,{rows:_e({},e.rows,{loading:n.loading})}))),t.current.caches.rows.loadingPropBeforePartialUpdates=n.loading,t.current.forceUpdate()),void(i||(t.current.setState((e=>_e({},e,{rows:_e({},e.rows,{totalRowCount:Math.max(n.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(n.rowCount||0,e.rows.totalTopLevelRowCount)})}))),t.current.caches.rows.rowCountPropBeforePartialUpdates=n.rowCount,t.current.forceUpdate()));o.debug(`Updating all rows, new length ${n.rows.length}`),u({cache:pu({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),throttle:!1})}),[n.rows,n.rowCount,n.getRowId,n.loading,o,u,t])},vS=e=>"full"===e.updates.type?(e=>{const t={[uu]:_e({},{type:"group",id:uu,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null},{children:e})};for(let n=0;n<e.length;n+=1){const o=e[n];t[o]={id:o,depth:0,parent:uu,type:"leaf",groupingKey:null}}return{groupingName:ok,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(({previousTree:e,actions:t})=>{const n=_e({},e),o={};for(let e=0;e<t.remove.length;e+=1){const r=t.remove[e];o[r]=!0,delete n[r]}for(let e=0;e<t.insert.length;e+=1){const o=t.insert[e];n[o]={id:o,depth:0,parent:uu,type:"leaf",groupingKey:null}}const r=n[uu];let i=[...r.children,...t.insert];return Object.values(o).length&&(i=i.filter((e=>!o[e]))),n[uu]=_e({},r,{children:i}),{groupingName:ok,tree:n,treeDepths:{0:i.length},dataRowIds:i}})({previousTree:e.previousTree,actions:e.updates.actions}),yS=(e,t)=>null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e],wS=(e,t)=>{var n;return _e({},e,{rowSelection:t.rowSelection&&null!=(n=yS(t.rowSelectionModel))?n:[]})},xS={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},CS=(t,n)=>{const o=(t=>{const{classes:n}=t;return e.useMemo((()=>en({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},za,n)),[n])})({classes:n.classes}),r=e.useCallback((e=>{const r=_e({},IO,{cellClassName:o.cellCheckbox,headerClassName:o.columnHeaderCheckbox,headerName:t.current.getLocaleText("checkboxSelectionHeaderName")}),i=n.checkboxSelection,l=null!=e.lookup[MO];return i&&!l?(e.lookup[MO]=r,e.orderedFields=[MO,...e.orderedFields]):!i&&l?(delete e.lookup[MO],e.orderedFields=e.orderedFields.filter((e=>e!==MO))):i&&l&&(e.lookup[MO]=_e({},r,e.lookup[MO])),e}),[t,o,n.checkboxSelection]);ek(t,"hydrateColumns",r)},OS=(e,t)=>{var n,o,r,i;const l=null!=(n=null!=(o=t.sortModel)?o:null==(r=t.initialState)||null==(i=r.sorting)?void 0:i.sortModel)?n:[];return _e({},e,{sorting:{sortModel:Cg(l,t.disableMultipleColumnsSorting),sortedRows:[]}})};function kS(e){const{clientHeight:t,scrollTop:n,offsetHeight:o,offsetTop:r}=e,i=r+o;return o>t?r:i-t>n?i-t:r<n?r:void 0}const SS="test"===process.env.NODE_ENV;const ES=["style"],RS=["style"];function TS(e,t,n=0,o=t.length){if(t.length<=0)return-1;if(n>=o)return n;const r=n+Math.floor((o-n)/2);return e<=t[r]?TS(e,t,n,r):TS(e,t,r+1,o)}const NS=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:o,maxLastIndex:r})=>[Qm(e-n,o,r),Qm(t+n,o,r)],jS=(e,t)=>e===t||e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,PS={maxSize:3},MS=t=>{var n,o;const r=Na(),i=Ra(),l=$a(r,as),{ref:a,disableVirtualization:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=l.length,getRowProps:p}=t,f=mr(),h=$a(r,us),m=$a(r,cs),g=$a(r,Us),b=$a(r,Ys),v=$a(r,gg),y=$a(r,wg),w=CO(r,i),x=e.useRef(null),C=e.useRef(null),O=At(a,C),[k,S]=e.useState(null),E=e.useRef(k),R=e.useRef({top:0,left:0}),[T,N]=e.useState({width:null,height:null}),j=e.useRef(m),P=e.useRef(Object.create(null)),M=e.useRef(),I=e.useRef(),_=e.useRef(Ga(((e,t,n)=>e.slice(t,n)),PS)),D=e.useCallback((e=>{var t,n;const o=r.current.getLastMeasuredRowIndex();let i=o===1/0;null!=(t=w.range)&&t.lastRowIndex&&!i&&(i=o>=w.range.lastRowIndex);const l=Qm(o-((null==(n=w.range)?void 0:n.firstRowIndex)||0),0,v.positions.length);return i||v.positions[l]>=e?TS(e,v.positions):function(e,t,n){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return TS(e,t,Math.floor(n/2),Math.min(n,t.length))}(e,v.positions,l)}),[r,null==(n=w.range)?void 0:n.firstRowIndex,null==(o=w.range)?void 0:o.lastRowIndex,v.positions]),A=e.useCallback((()=>{if(s)return{firstRowIndex:0,lastRowIndex:w.rows.length,firstColumnIndex:0,lastColumnIndex:l.length};const{top:e,left:t}=R.current,n=Math.min(D(e),v.positions.length-1),o=i.autoHeight?n+w.rows.length:D(e+T.height);let a=!1,u=0,c=h.length;const[d,p]=NS({firstIndex:n,lastIndex:o,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:i.rowBuffer});for(let e=d;e<p&&!a;e+=1){const t=w.rows[e];a=r.current.rowHasAutoHeight(t.id)}return a||(u=TS(Math.abs(t),h),c=TS(Math.abs(t)+T.width,h)),{firstRowIndex:n,lastRowIndex:o,firstColumnIndex:u,lastColumnIndex:c}}),[s,D,v.positions.length,i.autoHeight,i.rowBuffer,w.rows,h,l.length,r,T]);jt((()=>{s?x.current.style.transform="translate3d(0px, 0px, 0px)":(C.current.scrollLeft=0,C.current.scrollTop=0)}),[s]),jt((()=>{N({width:C.current.clientWidth,height:C.current.clientHeight})}),[v.currentPageTotalHeight]);const F=e.useCallback((()=>{C.current&&N({width:C.current.clientWidth,height:C.current.clientHeight})}),[]);Um(r,"debouncedResize",F);const L=e.useCallback((e=>{const[t,n]=NS({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:i.rowBuffer}),[o]=NS({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:i.columnBuffer}),l=Pk({firstColumnToRender:o,apiRef:r,firstRowToRender:t,lastRowToRender:n,visibleRows:w.rows}),a="ltr"===f.direction?1:-1,s=gg(r.current.state).positions[t],p=a*us(r)[l];x.current.style.transform=`translate3d(${p}px, ${s}px, 0px)`,"function"==typeof u&&u({top:s,left:p})}),[r,w.rows,u,c,d,i.columnBuffer,i.rowBuffer,f.direction]),V=e.useCallback((e=>{if(E.current&&jS(e,E.current))return void L(e);S(e),L(e);const[t,n]=NS({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:i.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:t,lastRowToRender:n}),E.current=e}),[r,S,E,w.rows.length,i.rowBuffer,L]);jt((()=>{if(null==T.width)return;const e=A();V(e);const{top:t,left:n}=R.current,o={top:t,left:n,renderContext:e};r.current.publishEvent("scrollPositionChange",o)}),[r,A,T.width,V]);const $=Dt((e=>{const{scrollTop:t,scrollLeft:n}=e.currentTarget;if(R.current.top=t,R.current.left=n,!E.current||t<0||"ltr"===f.direction&&n<0||"rtl"===f.direction&&n>0)return;const o=s?E.current:A(),l=Math.abs(o.firstRowIndex-E.current.firstRowIndex),a=Math.abs(o.lastRowIndex-E.current.lastRowIndex),u=Math.abs(o.firstColumnIndex-E.current.firstColumnIndex),c=Math.abs(o.lastColumnIndex-E.current.lastColumnIndex),d=l>=i.rowThreshold||a>=i.rowThreshold||u>=i.columnThreshold||c>=i.columnThreshold||j.current!==m;r.current.publishEvent("scrollPositionChange",{top:t,left:n,renderContext:d?o:E.current},e),d&&(be.flushSync((()=>{V(o)})),j.current=m)})),z=Dt((e=>{r.current.publishEvent("virtualScrollerWheel",{},e)})),q=Dt((e=>{r.current.publishEvent("virtualScrollerTouchMove",{},e)})),H=T.width&&m>=T.width,B=e.useMemo((()=>{const e=Math.max(v.currentPageTotalHeight,1);let t=!1;null!=C&&C.current&&e<=(null==C?void 0:C.current.clientHeight)&&(t=!0);const n={width:H?m:"auto",height:e,minHeight:t?"100%":"auto"};return i.autoHeight&&0===w.rows.length&&(n.height=vu(r,i.rowHeight)),n}),[r,C,m,v.currentPageTotalHeight,H,i.autoHeight,i.rowHeight,w.rows.length]);e.useEffect((()=>{r.current.publishEvent("virtualScrollerContentSizeChange")}),[r,B]);const U=e.useMemo((()=>{const e={};return H||(e.overflowX="hidden"),i.autoHeight&&(e.overflowY="hidden"),e}),[H,i.autoHeight]),W=e.useCallback((()=>E.current),[]);return r.current.register("private",{getRenderContext:W}),{renderContext:k,updateRenderZonePosition:L,getRows:(e={renderContext:k})=>{var t;const{onRowRender:n,renderContext:o,minFirstColumn:a=c,maxLastColumn:u=d,availableSpace:f=T.width,rowIndexOffset:h=0,position:m="center"}=e;if(!o||null==f)return null;const v=s?0:i.rowBuffer,x=s?0:i.columnBuffer,[C,O]=NS({firstIndex:o.firstRowIndex,lastIndex:o.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:v}),S=[];if(e.rows)e.rows.forEach((e=>{S.push(e),r.current.calculateColSpan({rowId:e.id,minFirstColumn:a,maxLastColumn:u,columns:l})}));else{if(!w.range)return null;for(let e=C;e<O;e+=1){const t=w.rows[e];S.push(t),r.current.calculateColSpan({rowId:t.id,minFirstColumn:a,maxLastColumn:u,columns:l})}}const[E,R]=NS({firstIndex:o.firstColumnIndex,lastIndex:o.lastColumnIndex,minFirstIndex:a,maxLastIndex:u,buffer:x}),N=Pk({firstColumnToRender:E,apiRef:r,firstRowToRender:C,lastRowToRender:O,visibleRows:w.rows}),j=_.current(l,N,R),D=(null==(t=i.slotProps)?void 0:t.row)||{},{style:A}=D,F=De(D,ES);(M.current!==p||I.current!==A)&&(P.current=Object.create(null));const L=[];for(let e=0;e<S.length;e+=1){var V;const{id:t,model:o}=S[e],a=C+e===w.rows.length-1,s=r.current.rowHasAutoHeight(t)?"auto":r.current.unstable_getRowHeight(t);let u;u=null!=y[t]&&r.current.isRowSelectable(t),n&&n(t);const c=null!==g&&g.id===t?g.field:null;let d=null;null!==b&&b.id===t&&(d="view"===r.current.getCellParams(t,b.field).cellMode?b.field:null);const v="function"==typeof p&&p(t,o)||{},{style:x}=v,O=De(v,RS);if(!P.current[t]){const e=_e({},x,A);P.current[t]=e}L.push(Pe.jsx(i.slots.row,_e({row:o,rowId:t,rowHeight:s,focusedCell:c,tabbableCell:d,renderedColumns:j,visibleColumns:l,firstColumnToRender:N,lastColumnToRender:R,selected:u,index:h+((null==w||null==(V=w.range)?void 0:V.firstRowIndex)||0)+C+e,containerWidth:f,isLastVisible:a,position:m},O,F,{style:P.current[t]}),t))}return M.current=p,I.current=A,L},getRootProps:(e={})=>_e({ref:O,onScroll:$,onWheel:z,onTouchMove:q},e,{style:e.style?_e({},e.style,U):U}),getContentProps:({style:e}={})=>({style:e?_e({},e,B):B}),getRenderZoneProps:()=>({ref:x})}};function IS(t){var n;const{groupId:o,width:r,depth:i,maxDepth:l,fields:a,height:s,colIndex:u,hasFocus:c,tabIndex:d,isLastColumn:p}=t,f=Ra(),h=e.useRef(null),m=Sa(),g=$a(m,ou),b=o?g[o]:{},{headerName:v=o??"",description:y="",headerAlign:w}=b;let x;const C=o&&(null==(n=g[o])?void 0:n.renderHeaderGroup),O=e.useMemo((()=>({groupId:o,headerName:v,description:y,depth:i,maxDepth:l,fields:a,colIndex:u,isLastColumn:p})),[o,v,y,i,l,a,u,p]);o&&C&&(x=C(O));const k=f.showColumnVerticalBorder,S=_e({},t,{classes:f.classes,showColumnBorder:k,headerAlign:w,depth:i,isDragging:!1}),E=v??o,R=It(),T=null===o?`empty-group-cell-${R}`:o,N=(e=>{const{classes:t,headerAlign:n,isDragging:o,showColumnBorder:r,groupId:i}=e;return en({root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",o&&"columnHeader--moving",r&&"columnHeader--showColumnBorder",r&&"columnHeader--withRightBorder","withBorderColor",null===i?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},za,t)})(S);e.useLayoutEffect((()=>{if(c){const e=h.current.querySelector('[tabindex="0"]')||h.current;null==e||e.focus()}}),[m,c]);const j=e.useCallback((e=>t=>{t.currentTarget.contains(t.target)&&m.current.publishEvent(e,O,t)}),[m,O]),P=e.useMemo((()=>({onKeyDown:j("columnGroupHeaderKeyDown"),onFocus:j("columnGroupHeaderFocus"),onBlur:j("columnGroupHeaderBlur")})),[j]),M="function"==typeof b.headerClassName?b.headerClassName(O):b.headerClassName;return Pe.jsx(Lm,_e({ref:h,classes:N,columnMenuOpen:!1,colIndex:u,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:x,headerClassName:M,description:y,elementId:T,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:E,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},P))}const _S=Ro("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})((()=>({display:"flex"})));const DS=["className"],AS=Ro("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),FS=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,DS),r=Ra(),i=(e=>{const{classes:t}=e;return en({root:["columnHeaders","withBorderColor"]},za,t)})(r);return Pe.jsx(AS,_e({ref:t,className:vo(n,i.root),ownerState:r},o))})),LS=["isDragging","className"],VS=Ro("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${qa.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})((()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${qa.columnHeaderDropZone} .${qa.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${qa["columnHeadersInner--scrollable"]} .${qa.columnHeader}:last-child`]:{borderRight:"none"}}))),$S=e.forwardRef((function(e,t){var n,o;const{isDragging:r,className:i}=e,l=De(e,LS),a=Sa(),s=_e({},Ra(),{isDragging:r,hasScrollX:null!=(n=null==(o=a.current.getRootDimensions())?void 0:o.hasScrollX)&&n}),u=(e=>{const{isDragging:t,hasScrollX:n,classes:o}=e;return en({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},za,o)})(s);return Pe.jsx(VS,_e({ref:t,className:vo(i,u.root),ownerState:s},l))})),zS=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],qS=e.forwardRef((function(t,n){const{innerRef:o,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:l,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b}=t,v=De(t,zS),{isDragging:y,getRootProps:w,getInnerProps:x,getColumnHeaders:C,getColumnGroupHeaders:O}=(t=>{const{innerRef:n,minColumnIndex:o=0,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:l,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b}=t,v=fo(),[y,w]=e.useState(""),[x,C]=e.useState(""),O=Na(),k=Ra(),S=e.useRef(null),E=At(n,S),[R,T]=e.useState(null),N=e.useRef(R),j=e.useRef(0),P=CO(O,k),M=Ik(O,k.columnHeaderHeight),I=Math.floor(k.columnHeaderHeight*p),_=e.useCallback((e=>{R&&e&&jS(R,e)||T(e)}),[R]);e.useEffect((()=>{O.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[O]);const D=e.useRef(Ga(Mk,{equalityCheck:(e,t)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every((n=>e[n]===t[n]))})),A=e.useCallback((e=>{const[t,n]=NS({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:k.rowBuffer}),r=D.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:o,columnBuffer:k.columnBuffer,firstRowToRender:t,lastRowToRender:n,apiRef:O,visibleRows:P.rows}),i="ltr"===v.direction?1:-1,l=r>0?j.current-i*a[r]:j.current;S.current.style.transform=`translate3d(${-l}px, 0px, 0px)`}),[a,o,k.columnBuffer,O,P.rows,k.rowBuffer,v.direction]);e.useLayoutEffect((()=>{R&&A(R)}),[R,A]);const F=e.useCallback((({left:e,renderContext:t=null},n)=>{var o,r;if(!S.current||j.current===e&&(null==(o=N.current)?void 0:o.firstColumnIndex)===(null==t?void 0:t.firstColumnIndex)&&(null==(r=N.current)?void 0:r.lastColumnIndex)===(null==t?void 0:t.lastColumnIndex))return;j.current=e;let i=!1;t===N.current&&N.current?i=!0:(function(e){return!!e.target}(n)?(be.flushSync((()=>{_(t)})),i=!0):_(t),N.current=t),t&&i&&A(t)}),[A,_]),L=e.useCallback((e=>C(e.field)),[]),V=e.useCallback((()=>C("")),[]),$=e.useCallback((e=>w(e.field)),[]),z=e.useCallback((()=>w("")),[]);Um(O,"columnResizeStart",L),Um(O,"columnResizeStop",V),Um(O,"columnHeaderDragStart",$),Um(O,"columnHeaderDragEnd",z),Um(O,"scrollPositionChange",F);const q=e=>{const{renderContext:t=R,minFirstColumn:n=o,maxLastColumn:i=r.length}=e||{};if(!t)return null;const[l,a]=NS({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:k.rowBuffer}),s=D.current({firstColumnIndex:t.firstColumnIndex,minColumnIndex:n,columnBuffer:k.columnBuffer,apiRef:O,firstRowToRender:l,lastRowToRender:a,visibleRows:P.rows}),u=Math.min(t.lastColumnIndex+k.columnBuffer,i);return{renderedColumns:r.slice(s,u),firstColumnToRender:s,lastColumnToRender:u,minFirstColumn:n,maxLastColumn:i}},H={minHeight:M,maxHeight:M,lineHeight:`${I}px`};return{renderContext:R,getColumnHeaders:(e,t={})=>{const n=q(e);if(null==n)return null;const{renderedColumns:o,firstColumnToRender:r}=n,a=[];for(let e=0;e<o.length;e+=1){const n=o[e],u=r+e,d=0===u,p=null!==s&&s.field===n.field||d&&!b?0:-1,f=null!==c&&c.field===n.field,m=h.open&&h.field===n.field;a.push(Pe.jsx(Vm,_e({},i[n.field],{columnMenuOpen:m,filterItemsCounter:l[n.field]&&l[n.field].length,headerHeight:I,isDragging:n.field===y,colDef:n,colIndex:u,isResizing:x===n.field,hasFocus:f,tabIndex:p},t),n.field))}return Pe.jsx(_S,{role:"row","aria-rowindex":f+1,ownerState:k,children:a})},getColumnsToRender:q,getColumnGroupHeaders:e=>{if(0===f)return null;const t=q(e);if(null==t||0===t.renderedColumns.length)return null;const{firstColumnToRender:n,lastColumnToRender:o}=t,i=[],l=[];for(let e=0;e<f;e+=1){var a,s;const t=g[e],i=r[n].field,c=null!=(a=O.current.unstable_getColumnGroupPath(i)[e])?a:null,p=t.findIndex((({groupId:e,columnFields:t})=>e===c&&t.includes(i))),f=r[o-1].field,h=null!=(s=O.current.unstable_getColumnGroupPath(f)[e])?s:null,b=t.findIndex((({groupId:e,columnFields:t})=>e===h&&t.includes(f))),v=t.slice(p,b+1).map((e=>_e({},e,{columnFields:e.columnFields.filter((e=>!1!==m[e]))}))).filter((e=>e.columnFields.length>0)),y=v[0].columnFields.indexOf(i),w=v[0].columnFields.slice(0,y).reduce(((e,t)=>{var n;return e+(null!=(n=O.current.getColumn(t).computedWidth)?n:0)}),0);let x=n;const C=v.map((({groupId:t,columnFields:n})=>{const o=null!==d&&d.depth===e&&n.includes(d.field),r=null!==u&&u.depth===e&&n.includes(u.field)?0:-1,i={groupId:t,width:n.reduce(((e,t)=>e+O.current.getColumn(t).computedWidth),0),fields:n,colIndex:x,hasFocus:o,tabIndex:r};return x+=n.length,i}));l.push({leftOverflow:w,elements:C})}return l.forEach(((e,t)=>{i.push(Pe.jsx(_S,{style:{height:`${I}px`,transform:`translateX(-${e.leftOverflow}px)`},role:"row","aria-rowindex":t+1,ownerState:k,children:e.elements.map((({groupId:e,width:n,fields:o,colIndex:i,hasFocus:a,tabIndex:s},u)=>Pe.jsx(IS,{groupId:e,width:n,fields:o,colIndex:i,depth:t,isLastColumn:i===r.length-o.length,maxDepth:l.length,height:I,hasFocus:a,tabIndex:s},u)))},t))})),i},isDragging:!!y,getRootProps:(e={})=>_e({style:H},e),getInnerProps:()=>({ref:E,role:"rowgroup"}),headerHeight:I}})({innerRef:o,visibleColumns:r,sortColumnLookup:i,filterColumnLookup:l,columnPositions:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:p,headerGroupingMaxDepth:f,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b});return Pe.jsx(FS,_e({ref:n},w(v),{children:Pe.jsxs($S,_e({isDragging:y},x(),{children:[O(),C()]}))}))}));"production"!==process.env.NODE_ENV&&(qS.propTypes={columnGroupHeaderFocus:pe.shape({depth:pe.number.isRequired,field:pe.string.isRequired}),columnGroupHeaderTabIndexState:pe.shape({depth:pe.number.isRequired,field:pe.string.isRequired}),columnGroupsHeaderStructure:pe.arrayOf(pe.arrayOf(pe.shape({columnFields:pe.arrayOf(pe.string).isRequired,groupId:pe.string}))).isRequired,columnHeaderFocus:pe.shape({field:pe.string.isRequired}),columnHeaderTabIndexState:pe.shape({field:pe.string.isRequired}),columnMenuState:pe.shape({field:pe.string,open:pe.bool.isRequired}).isRequired,columnPositions:pe.arrayOf(pe.number).isRequired,columnVisibility:pe.object.isRequired,densityFactor:pe.number.isRequired,filterColumnLookup:pe.object.isRequired,hasOtherElementInTabSequence:pe.bool.isRequired,headerGroupingMaxDepth:pe.number.isRequired,innerRef:pe.oneOfType([pe.func,pe.shape({current:pe.object})]),minColumnIndex:pe.number,sortColumnLookup:pe.object.isRequired,visibleColumns:pe.arrayOf(pe.object).isRequired});const HS=ku(qS),BS=e.forwardRef((function(e,t){const n=Sa().current.getLocaleText("noResultsOverlayLabel");return Pe.jsx(hm,_e({ref:t},e,{children:n}))})),US=Hg(Pe.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"),WS=Hg(Pe.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"),GS=Hg(Pe.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 KS(e){return ln("MuiCheckbox",e)}const YS=an("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),ZS=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],XS=Ep($b,{shouldForwardProp:e=>kp(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Ot(n.color)}`]]}})((({theme:e,ownerState:t})=>_e({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_o("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${YS.checked}, &.${YS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${YS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),QS=Pe.jsx(WS,{}),JS=Pe.jsx(US,{}),eE=Pe.jsx(GS,{}),tE=e.forwardRef((function(t,n){var o,r;const i=Rp({props:t,name:"MuiCheckbox"}),{checkedIcon:l=QS,color:a="primary",icon:s=JS,indeterminate:u=!1,indeterminateIcon:c=eE,inputProps:d,size:p="medium",className:f}=i,h=De(i,ZS),m=u?c:s,g=u?c:l,b=_e({},i,{color:a,indeterminate:u,size:p}),v=(e=>{const{classes:t,indeterminate:n,color:o}=e;return _e({},t,en({root:["root",n&&"indeterminate",`color${Ot(o)}`]},KS,t))})(b);return Pe.jsx(XS,_e({type:"checkbox",inputProps:_e({"data-indeterminate":u},d),icon:e.cloneElement(m,{fontSize:null!=(o=m.props.fontSize)?o:p}),checkedIcon:e.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:b,ref:n,className:vo(v.root,f)},h,{classes:v}))}));"production"!==process.env.NODE_ENV&&(tE.propTypes={checked:pe.bool,checkedIcon:pe.node,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["default","primary","secondary","error","info","success","warning"]),pe.string]),defaultChecked:pe.bool,disabled:pe.bool,disableRipple:pe.bool,icon:pe.node,id:pe.string,indeterminate:pe.bool,indeterminateIcon:pe.node,inputProps:pe.object,inputRef:Ct,onChange:pe.func,required:pe.bool,size:pe.oneOfType([pe.oneOf(["medium","small"]),pe.string]),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),value:pe.any});const nE=tE;function oE(e){return ln("MuiButton",e)}const rE=an("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),iE=e.createContext({});"production"!==process.env.NODE_ENV&&(iE.displayName="ButtonGroupContext");const lE=iE,aE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],sE=e=>_e({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),uE=Ep(uh,{shouldForwardProp:e=>kp(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ot(n.color)}`],t[`size${Ot(n.size)}`],t[`${n.variant}Size${Ot(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,o;const r="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return _e({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":_e({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:_o(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_o(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_o(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":_e({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rE.focusVisible}`]:_e({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rE.disabled}`]:_e({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${_o(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(o=e.palette).getContrastText)?void 0:n.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rE.disabled}`]:{boxShadow:"none"}})),cE=Ep("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ot(n.size)}`]]}})((({ownerState:e})=>_e({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},sE(e)))),dE=Ep("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ot(n.size)}`]]}})((({ownerState:e})=>_e({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},sE(e)))),pE=e.forwardRef((function(t,n){const o=e.useContext(lE),r=Rp({props:Jt(o,t),name:"MuiButton"}),{children:i,color:l="primary",component:a="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=r,y=De(r,aE),w=_e({},r,{color:l,component:a,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:l}=e;return _e({},l,en({root:["root",i,`${i}${Ot(t)}`,`size${Ot(r)}`,`${i}Size${Ot(r)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ot(r)}`],endIcon:["endIcon",`iconSize${Ot(r)}`]},oE,l))})(w),C=g&&Pe.jsx(cE,{className:x.startIcon,ownerState:w,children:g}),O=p&&Pe.jsx(dE,{className:x.endIcon,ownerState:w,children:p});return Pe.jsxs(uE,_e({ownerState:w,className:vo(o.className,x.root,s),component:a,disabled:u,focusRipple:!d,focusVisibleClassName:vo(x.focusVisible,f),ref:n,type:b},y,{classes:x,children:[C,i,O]}))}));"production"!==process.env.NODE_ENV&&(pE.propTypes={children:pe.node,classes:pe.object,className:pe.string,color:pe.oneOfType([pe.oneOf(["inherit","primary","secondary","success","error","info","warning"]),pe.string]),component:pe.elementType,disabled:pe.bool,disableElevation:pe.bool,disableFocusRipple:pe.bool,disableRipple:pe.bool,endIcon:pe.node,focusVisibleClassName:pe.string,fullWidth:pe.bool,href:pe.string,size:pe.oneOfType([pe.oneOf(["small","medium","large"]),pe.string]),startIcon:pe.node,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),type:pe.oneOfType([pe.oneOf(["button","reset","submit"]),pe.string]),variant:pe.oneOfType([pe.oneOf(["contained","outlined","text"]),pe.string])});const fE=pE;function hE(e){return ln("MuiInputAdornment",e)}const mE=an("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var gE;const bE=["children","className","component","disablePointerEvents","disableTypography","position","variant"],vE=Ep("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Ot(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>_e({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${mE.positionStart}&:not(.${mE.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),yE=e.forwardRef((function(t,n){const o=Rp({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:l="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:u,variant:c}=o,d=De(o,bE),p=Op()||{};let f=c;c&&p.variant&&"production"!==process.env.NODE_ENV&&c===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!f&&(f=p.variant);const h=_e({},o,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:l}=e;return en({root:["root",n&&"disablePointerEvents",r&&`position${Ot(r)}`,l,o&&"hiddenLabel",i&&`size${Ot(i)}`]},hE,t)})(h);return Pe.jsx(Cp.Provider,{value:null,children:Pe.jsx(vE,_e({as:l,ownerState:h,className:vo(m.root,i),ref:n},d,{children:"string"!=typeof r||s?Pe.jsxs(e.Fragment,{children:["start"===u?gE||(gE=Pe.jsx("span",{className:"notranslate",children:""})):null,r]}):Pe.jsx(Nh,{color:"text.secondary",children:r})}))})}));"production"!==process.env.NODE_ENV&&(yE.propTypes={children:pe.node,classes:pe.object,className:pe.string,component:pe.elementType,disablePointerEvents:pe.bool,disableTypography:pe.bool,position:pe.oneOf(["end","start"]).isRequired,sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),variant:pe.oneOf(["filled","outlined","standard"])});const wE=yE;function xE(e){return ln("MuiTooltip",e)}const CE=an("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),OE=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function kE(e){return Math.round(1e5*e)/1e5}const SE=Ep(Df,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>_e({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${CE.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${CE.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${CE.arrow}`]:_e({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${CE.arrow}`]:_e({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),EE=Ep("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ot(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>_e({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:_o(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${kE(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${CE.popper}[data-popper-placement*="left"] &`]:_e({transformOrigin:"right center"},t.isRtl?_e({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):_e({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${CE.popper}[data-popper-placement*="right"] &`]:_e({transformOrigin:"left center"},t.isRtl?_e({marginRight:"14px"},t.touch&&{marginRight:"24px"}):_e({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${CE.popper}[data-popper-placement*="top"] &`]:_e({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${CE.popper}[data-popper-placement*="bottom"] &`]:_e({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),RE=Ep("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:_o(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let TE=!1,NE=null,jE={x:0,y:0};function PE(e,t){return n=>{t&&t(n),e(n)}}const ME=e.forwardRef((function(t,n){var o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v,y,w,x;const C=Rp({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:k,components:S={},componentsProps:E={},describeChild:R=!1,disableFocusListener:T=!1,disableHoverListener:N=!1,disableInteractive:j=!1,disableTouchListener:P=!1,enterDelay:M=100,enterNextDelay:I=0,enterTouchDelay:_=700,followCursor:D=!1,id:A,leaveDelay:F=0,leaveTouchDelay:L=1500,onClose:V,onOpen:$,open:z,placement:q="bottom",PopperComponent:H,PopperProps:B={},slotProps:U={},slots:W={},title:G,TransitionComponent:K=Ef,TransitionProps:Y}=C,Z=De(C,OE),X=e.isValidElement(k)?k:Pe.jsx("span",{children:k}),Q=mr(),J="rtl"===Q.direction,[ee,te]=e.useState(),[ne,oe]=e.useState(null),re=e.useRef(!1),ie=j||D,le=e.useRef(),ae=e.useRef(),se=e.useRef(),ue=e.useRef(),[ce,de]=_t({controlled:z,default:!1,name:"Tooltip",state:"open"});let pe=ce;if("production"!==process.env.NODE_ENV){const{current:t}=e.useRef(void 0!==z);e.useEffect((()=>{ee&&ee.disabled&&!t&&""!==G&&"button"===ee.tagName.toLowerCase()&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join("\n"))}),[G,ee,t])}const fe=It(A),he=e.useRef(),me=e.useCallback((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),clearTimeout(ue.current)}),[]);e.useEffect((()=>()=>{clearTimeout(le.current),clearTimeout(ae.current),clearTimeout(se.current),me()}),[me]);const ge=e=>{clearTimeout(NE),TE=!0,de(!0),$&&!pe&&$(e)},be=Dt((e=>{clearTimeout(NE),NE=setTimeout((()=>{TE=!1}),800+F),de(!1),V&&pe&&V(e),clearTimeout(le.current),le.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(se.current),M||TE&&I?ae.current=setTimeout((()=>{ge(e)}),TE?I:M):ge(e))},ye=e=>{clearTimeout(ae.current),clearTimeout(se.current),se.current=setTimeout((()=>{be(e)}),F)},{isFocusVisibleRef:we,onBlur:xe,onFocus:Ce,ref:Oe}=Ut(),[,ke]=e.useState(!1),Se=e=>{xe(e),!1===we.current&&(ke(!1),ye(e))},Ee=e=>{ee||te(e.currentTarget),Ce(e),!0===we.current&&(ke(!0),ve(e))},Re=e=>{re.current=!0;const t=X.props;t.onTouchStart&&t.onTouchStart(e)},Te=ve,Ne=ye;e.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&be(e)}}),[be,pe]);const je=At(X.ref,Oe,te,n);!G&&0!==G&&(pe=!1);const Me=e.useRef(),Ie={},Ae="string"==typeof G;R?(Ie.title=pe||!Ae||N?null:G,Ie["aria-describedby"]=pe?fe:null):(Ie["aria-label"]=Ae?G:null,Ie["aria-labelledby"]=pe&&!Ae?fe:null);const Fe=_e({},Ie,Z,X.props,{className:vo(Z.className,X.props.className),onTouchStart:Re,ref:je},D?{onMouseMove:e=>{const t=X.props;t.onMouseMove&&t.onMouseMove(e),jE={x:e.clientX,y:e.clientY},Me.current&&Me.current.update()}}:{});"production"!==process.env.NODE_ENV&&(Fe["data-mui-internal-clone-element"]=!0,e.useEffect((()=>{ee&&!ee.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join("\n"))}),[ee]));const Le={};P||(Fe.onTouchStart=e=>{Re(e),clearTimeout(se.current),clearTimeout(le.current),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.current=setTimeout((()=>{document.body.style.WebkitUserSelect=he.current,ve(e)}),_)},Fe.onTouchEnd=e=>{X.props.onTouchEnd&&X.props.onTouchEnd(e),me(),clearTimeout(se.current),se.current=setTimeout((()=>{be(e)}),L)}),N||(Fe.onMouseOver=PE(Te,Fe.onMouseOver),Fe.onMouseLeave=PE(Ne,Fe.onMouseLeave),ie||(Le.onMouseOver=Te,Le.onMouseLeave=Ne)),T||(Fe.onFocus=PE(Ee,Fe.onFocus),Fe.onBlur=PE(Se,Fe.onBlur),ie||(Le.onFocus=Ee,Le.onBlur=Se)),"production"!==process.env.NODE_ENV&&X.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${X.props.title}\` or the Tooltip component.`].join("\n"));const Ve=e.useMemo((()=>{var e;let t=[{name:"arrow",enabled:!!ne,options:{element:ne,padding:4}}];return null!=(e=B.popperOptions)&&e.modifiers&&(t=t.concat(B.popperOptions.modifiers)),_e({},B.popperOptions,{modifiers:t})}),[ne,B]),$e=_e({},C,{isRtl:J,arrow:O,disableInteractive:ie,placement:q,PopperComponentProp:H,touch:re.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:i}=e;return en({popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${Ot(i.split("-")[0])}`],arrow:["arrow"]},xE,t)})($e),qe=null!=(o=null!=(r=W.popper)?r:S.Popper)?o:SE,He=null!=(i=null!=(l=null!=(a=W.transition)?a:S.Transition)?l:K)?i:Ef,Be=null!=(s=null!=(u=W.tooltip)?u:S.Tooltip)?s:EE,Ue=null!=(c=null!=(d=W.arrow)?d:S.Arrow)?c:RE,We=ic(qe,_e({},B,null!=(p=U.popper)?p:E.popper,{className:vo(ze.popper,null==B?void 0:B.className,null==(f=null!=(h=U.popper)?h:E.popper)?void 0:f.className)}),$e),Ge=ic(He,_e({},Y,null!=(m=U.transition)?m:E.transition),$e),Ke=ic(Be,_e({},null!=(g=U.tooltip)?g:E.tooltip,{className:vo(ze.tooltip,null==(b=null!=(v=U.tooltip)?v:E.tooltip)?void 0:b.className)}),$e),Ye=ic(Ue,_e({},null!=(y=U.arrow)?y:E.arrow,{className:vo(ze.arrow,null==(w=null!=(x=U.arrow)?x:E.arrow)?void 0:w.className)}),$e);return Pe.jsxs(e.Fragment,{children:[e.cloneElement(X,Fe),Pe.jsx(qe,_e({as:H??Df,placement:q,anchorEl:D?{getBoundingClientRect:()=>({top:jE.y,left:jE.x,right:jE.x,bottom:jE.y,width:0,height:0})}:ee,popperRef:Me,open:!!ee&&pe,id:fe,transition:!0},Le,We,{popperOptions:Ve,children:({TransitionProps:e})=>Pe.jsx(He,_e({timeout:Q.transitions.duration.shorter},e,Ge,{children:Pe.jsxs(Be,_e({},Ke,{children:[G,O?Pe.jsx(Ue,_e({},Ye,{ref:oe})):null]}))}))}))]})}));"production"!==process.env.NODE_ENV&&(ME.propTypes={arrow:pe.bool,children:st.isRequired,classes:pe.object,className:pe.string,components:pe.shape({Arrow:pe.elementType,Popper:pe.elementType,Tooltip:pe.elementType,Transition:pe.elementType}),componentsProps:pe.shape({arrow:pe.object,popper:pe.object,tooltip:pe.object,transition:pe.object}),describeChild:pe.bool,disableFocusListener:pe.bool,disableHoverListener:pe.bool,disableInteractive:pe.bool,disableTouchListener:pe.bool,enterDelay:pe.number,enterNextDelay:pe.number,enterTouchDelay:pe.number,followCursor:pe.bool,id:pe.string,leaveDelay:pe.number,leaveTouchDelay:pe.number,onClose:pe.func,onOpen:pe.func,open:pe.bool,placement:pe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:pe.elementType,PopperProps:pe.object,slotProps:pe.shape({arrow:pe.object,popper:pe.object,tooltip:pe.object,transition:pe.object}),slots:pe.shape({arrow:pe.elementType,popper:pe.elementType,tooltip:pe.elementType,transition:pe.elementType}),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),title:pe.node,TransitionComponent:pe.elementType,TransitionProps:pe.object});const IE=ME,_E=["sortingOrder"],DE=e.memo((function(e){const{sortingOrder:t}=e,n=De(e,_E),o=Ra(),[r]=t,i="asc"===r?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?Pe.jsx(i,_e({},n)):null})),AE=["native"];const FE=_e({},{BooleanCellTrueIcon:ub,BooleanCellFalseIcon:ob,ColumnMenuIcon:nb,OpenFilterButtonIcon:Kg,FilterPanelDeleteIcon:ob,ColumnFilteredIcon:Yg,ColumnSelectorIcon:Xg,ColumnUnsortedIcon:DE,ColumnSortedAscendingIcon:Bg,ColumnSortedDescendingIcon:Ug,ColumnResizeIcon:Qg,DensityCompactIcon:Jg,DensityStandardIcon:eb,DensityComfortableIcon:tb,ExportIcon:sb,MoreActionsIcon:cb,TreeDataCollapseIcon:Gg,TreeDataExpandIcon:Wg,GroupingCriteriaCollapseIcon:Gg,GroupingCriteriaExpandIcon:Wg,DetailPanelExpandIcon:rb,DetailPanelCollapseIcon:ib,RowReorderIcon:ab,QuickFilterIcon:Zg,QuickFilterClearIcon:ob,ColumnMenuHideIcon:db,ColumnMenuSortAscendingIcon:Bg,ColumnMenuSortDescendingIcon:Ug,ColumnMenuFilterIcon:Yg,ColumnMenuManageColumnsIcon:pb,ColumnMenuClearIcon:fb,LoadIcon:lb,FilterPanelAddIcon:rb,FilterPanelRemoveAllIcon:hb,ColumnReorderIcon:ab},{BaseCheckbox:nE,BaseTextField:oC,BaseFormControl:ev,BaseSelect:Xx,BaseSwitch:Yb,BaseButton:fE,BaseIconButton:_b,BaseInputAdornment:wE,BaseTooltip:IE,BasePopper:Df,BaseInputLabel:Vw,BaseSelectOption:function(e){let{native:t}=e,n=De(e,AE);return t?Pe.jsx("option",_e({},n)):Pe.jsx(zh,_e({},n))},BaseChip:wy}),LE=_e({},FE,{Cell:Qu,SkeletonCell:om,ColumnHeaderFilterIconButton:Mg,ColumnMenu:Tb,ColumnHeaders:HS,Footer:cC,Toolbar:null,PreferencesPanel:Dv,LoadingOverlay:RC,NoResultsOverlay:BS,NoRowsOverlay:TC,Pagination:wO,FilterPanel:ly,ColumnsPanel:Nv,Panel:_v,Row:zO}),VE=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>_e({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]})),{})};const $E=["components","componentsProps"];function zE(e){var t;const n=Object.keys(e);if(!n.some((e=>e.startsWith("aria-")||e.startsWith("data-"))))return e;const o={},r=null!=(t=e.forwardedProps)?t:{};for(let t=0;t<n.length;t+=1){const i=n[t];i.startsWith("aria-")||i.startsWith("data-")?r[i]=e[i]:o[i]=e[i]}return o.forwardedProps=r,o}const qE={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},HE={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Ru.Cell,filterMode:"client",columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"production"===process.env.NODE_ENV?"error":"warn",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:"\t"},BE=VE(LE),UE=t=>{const[n,o,r]=function(t){return e.useMemo((()=>{const{components:e,componentsProps:n}=t;return[e,n,zE(De(t,$E))]}),[t])}(Rp({props:t,name:"MuiDataGrid"})),i=e.useMemo((()=>_e({},xS,r.localeText)),[r.localeText]),l=e.useMemo((()=>function({defaultSlots:e,slots:t,components:n}){const o=t??(n?VE(n):null);return o&&0!==Object.keys(o).length?_e({},e,o):e}({defaultSlots:BE,slots:r.slots,components:n})),[n,r.slots]);return e.useMemo((()=>{var e;return _e({},HE,r,{localeText:i,slots:l,slotProps:null!=(e=r.slotProps)?e:o},qE)}),[r,i,l,o])},WE=e=>_e({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}});let GE=!1;const KE=(e,t,n)=>"number"==typeof e&&e>0?e:("production"!==process.env.NODE_ENV&&!GE&&typeof e<"u"&&null!==e&&(console.warn(n),GE=!0),t),YE=["MUI: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),ZE=["MUI: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\n"),XE=(e,t,n)=>{if(Du(e)){if(void 0!==n[e.field])throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(n[e.field]=t)}const{groupId:o,children:r}=e;r.forEach((e=>{XE(e,[...t,o],n)}))},QE=e=>{if(!e)return{};const t={};return e.forEach((e=>{XE(e,[],t)})),t},JE=(e,t)=>{const n=e=>{var n;return null!=(n=t[e])?n:[]},o=[],r=Math.max(...e.map((e=>n(e).length))),i=(e,t,o)=>Jm(n(e).slice(0,o+1),n(t).slice(0,o+1));for(let t=0;t<r;t+=1){const r=e.reduce(((e,o)=>{var r;const l=null!=(r=n(o)[t])?r:null;if(0===e.length)return[{columnFields:[o],groupId:l}];const a=e[e.length-1],s=a.columnFields[a.columnFields.length-1];return a.groupId===l&&i(s,o,t)?[...e.slice(0,e.length-1),{columnFields:[...a.columnFields,o],groupId:l}]:[...e,{columnFields:[o],groupId:l}]}),[]);o.push(r)}return o},eR=["groupId","children"],tR=e=>{let t={};return e.forEach((e=>{if(Du(e))return;const{groupId:n,children:o}=e,r=De(e,eR);if(!n)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${n} has no children.`);const i=_e({},r,{groupId:n}),l=tR(o);if(void 0!==l[n]||void 0!==t[n])throw new Error(`MUI: The groupId ${n} is used multiple times in the columnGroupingModel.`);t=_e({},t,l,{[n]:i})})),_e({},t)},nR=(e,t,n)=>{var o,r,i;if(null==(o=t.experimentalFeatures)||!o.columnGrouping)return e;const l=os(n),a=ss(n),s=tR(null!=(r=t.columnGroupingModel)?r:[]),u=QE(null!=(i=t.columnGroupingModel)?i:[]),c=JE(l,u),d=0===a.length?0:Math.max(...a.map((e=>{var t,n;return null!=(t=null==(n=u[e])?void 0:n.length)?t:0})));return _e({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:u,headerStructure:c,maxDepth:d}})},oR=(t,n)=>{const o=ik(t,n);return CS(o,n),(e=>{nk(e,ok,"rowTreeCreation",vS)})(o),lk(wS,o,n),lk(Dk,o,n),lk(gS,o,n),lk(hS,o,n),lk(tS,o,n),lk(OS,o,n),lk(aS,o,n),lk(Qk,o,n),lk(Fk,o,n),lk(iS,o,n),lk(WE,o,n),lk(Ek,o,n),lk(nR,o,n),rS(o,n),((t,n)=>{const o=Km(t,"useGridSelection"),r=e=>(...t)=>{n.rowSelection&&e(...t)},i=e.useMemo((()=>yS(n.rowSelectionModel,bg(t.current.state))),[t,n.rowSelectionModel]),l=e.useRef(null);t.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:n.onRowSelectionModelChange,stateSelector:bg,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:s,disableRowSelectionOnClick:u,isRowSelectable:c}=n,d=!s||a,p=CO(t,n),f=e.useCallback((e=>{var n;let o=e;const r=null!=(n=l.current)?n:e,i=t.current.isRowSelected(e);if(i){const e=As(t),n=e.findIndex((e=>e===r)),i=e.findIndex((e=>e===o));if(n===i)return;o=n>i?e[i+1]:e[i-1]}l.current=e,t.current.selectRowRange({startId:r,endId:o},!i)}),[t]),h=e.useCallback((e=>{if(n.signature===Hm.DataGrid&&!n.checkboxSelection&&Array.isArray(e)&&e.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join("\n"));bg(t.current.state)!==e&&(o.debug("Setting selection model"),t.current.setState((t=>_e({},t,{rowSelection:n.rowSelection?e:[]}))),t.current.forceUpdate())}),[t,o,n.rowSelection,n.signature,n.checkboxSelection]),m=e.useCallback((e=>bg(t.current.state).includes(e)),[t]),g=e.useCallback((e=>{if(c&&!c(t.current.getRowParams(e)))return!1;const n=t.current.getRowNode(e);return!("footer"===(null==n?void 0:n.type)||"pinnedRow"===(null==n?void 0:n.type))}),[t,c]),b=e.useCallback((()=>yg(t)),[t]),v=e.useCallback(((e,n=!0,r=!1)=>{if(t.current.isRowSelectable(e))if(l.current=e,r)o.debug(`Setting selection for row ${e}`),t.current.setRowSelectionModel(n?[e]:[]);else{o.debug(`Toggling selection for row ${e}`);const r=bg(t.current.state).filter((t=>t!==e));n&&r.push(e),(r.length<2||d)&&t.current.setRowSelectionModel(r)}}),[t,o,d]),y=e.useCallback(((e,n=!0,r=!1)=>{o.debug("Setting selection for several rows");const i=e.filter((e=>t.current.isRowSelectable(e)));let l;if(r)l=n?i:[];else{const e=_e({},wg(t));i.forEach((t=>{n?e[t]=t:delete e[t]})),l=Object.values(e)}(l.length<2||d)&&t.current.setRowSelectionModel(l)}),[t,o,d]),w=e.useCallback((({startId:e,endId:n},r=!0,i=!1)=>{if(!t.current.getRow(e)||!t.current.getRow(n))return;o.debug(`Expanding selection from row ${e} to row ${n}`);const l=As(t),a=l.indexOf(e),s=l.indexOf(n),[u,c]=a>s?[s,a]:[a,s],d=l.slice(u,c+1);t.current.selectRows(d,r,i)}),[t,o]),x={selectRows:y,selectRowRange:w};Lu(t,{selectRow:v,setRowSelectionModel:h,getSelectedRows:b,isRowSelected:m,isRowSelectable:g},"public"),Lu(t,x,n.signature===Hm.DataGrid?"private":"public");const C=e.useCallback((()=>{if(n.keepNonExistentRowsSelected)return;const e=bg(t.current.state),o=bs(t),r=_e({},wg(t));let i=!1;e.forEach((e=>{o[e]||(delete r[e],i=!0)})),i&&t.current.setRowSelectionModel(Object.values(r))}),[t,n.keepNonExistentRowsSelected]),O=e.useCallback(((e,n)=>{const o=n.metaKey||n.ctrlKey,r=!a&&!o&&!(e=>!!e.key)(n),i=!d||r,l=t.current.isRowSelected(e);i?t.current.selectRow(e,!!r||!l,!0):t.current.selectRow(e,!l,!1)}),[t,d,a]),k=e.useCallback(((e,n)=>{var o;if(u)return;const r=null==(o=n.target.closest(`.${qa.cell}`))?void 0:o.getAttribute("data-field");r===IO.field||r===AO||r&&t.current.getColumn(r).type===_O||"pinnedRow"===t.current.getRowNode(e.id).type||(n.shiftKey&&(d||a)?f(e.id):O(e.id,n))}),[u,d,a,t,f,O]),S=e.useCallback(((e,t)=>{var n;d&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[d]),E=e.useCallback(((e,n)=>{n.nativeEvent.shiftKey?f(e.id):t.current.selectRow(e.id,e.value)}),[t,f]),R=e.useCallback((e=>{const o=n.checkboxSelectionVisibleOnly&&n.pagination?fg(t):As(t);t.current.selectRows(o,e.value)}),[t,n.checkboxSelectionVisibleOnly,n.pagination]),T=e.useCallback(((e,n)=>{if(t.current.getCellMode(e.id,e.field)!==Tu.Edit&&n.currentTarget.contains(n.target)){if(Jp(n.key)&&n.shiftKey){const o=Us(t);if(o&&o.id!==e.id){n.preventDefault();const r=t.current.isRowSelected(o.id);if(!d)return void t.current.selectRow(o.id,!r,!0);const i=t.current.getRowIndexRelativeToVisibleRows(o.id),l=t.current.getRowIndexRelativeToVisibleRows(e.id);let a,s;i>l?r?(a=l,s=i-1):(a=l,s=i):r?(a=i+1,s=l):(a=i,s=l);const u=p.rows.slice(a,s+1).map((e=>e.id));return void t.current.selectRows(u,!r)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void O(e.id,n);"a"===n.key&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),y(t.current.getAllRowIds(),!0))}}),[t,O,y,p.rows,d]);Um(t,"sortedRowsSet",r(C)),Um(t,"rowClick",r(k)),Um(t,"rowSelectionCheckboxChange",r(E)),Um(t,"headerSelectionCheckboxChange",R),Um(t,"cellMouseDown",r(S)),Um(t,"cellKeyDown",r(T)),e.useEffect((()=>{void 0!==i&&t.current.setRowSelectionModel(i)}),[t,i,n.rowSelection]),e.useEffect((()=>{n.rowSelection||t.current.setRowSelectionModel([])}),[t,n.rowSelection]);const N=null!=i;e.useEffect((()=>{if(N||!n.rowSelection)return;const e=bg(t.current.state);if(g){const n=e.filter((e=>g(e)));n.length<e.length&&t.current.setRowSelectionModel(n)}}),[t,g,N,n.rowSelection]),e.useEffect((()=>{if(!n.rowSelection||N)return;const e=bg(t.current.state);!d&&e.length>1&&t.current.setRowSelectionModel([])}),[t,d,a,N,n.rowSelection])})(o,n),function(t,n){var o,r;const i=Km(t,"useGridColumns"),l=_k,a=e.useRef(n.columns),s=e.useRef(l);t.current.registerControlState({stateId:"visibleColumns",propModel:n.columnVisibilityModel,propOnChange:n.onColumnVisibilityModelChange,stateSelector:ls,changeEvent:"columnVisibilityModelChange"});const u=e.useCallback((e=>{i.debug("Updating columns state."),t.current.setState(jk(e)),t.current.forceUpdate(),t.current.publishEvent("columnsChange",e.orderedFields)}),[i,t]),c=e.useCallback((e=>rs(t)[e]),[t]),d=e.useCallback((()=>is(t)),[t]),p=e.useCallback((()=>as(t)),[t]),f=e.useCallback(((e,n=!0)=>(n?as(t):is(t)).findIndex((t=>t.field===e))),[t]),h=e.useCallback((e=>{const n=f(e);return us(t)[n]}),[t,f]),m=e.useCallback((e=>{ls(t)!==e&&(t.current.setState((n=>_e({},n,{columns:Nk({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:e,keepOnlyColumnsToUpsert:!1})}))),t.current.forceUpdate())}),[t,l]),g=e.useCallback((e=>{const n=Nk({apiRef:t,columnTypes:l,columnsToUpsert:e,initialState:void 0,keepOnlyColumnsToUpsert:!1});u(n)}),[t,u,l]),b=e.useCallback(((e,n)=>{var o;const r=ls(t);if(n!==(null==(o=r[e])||o)){const o=_e({},r,{[e]:n});t.current.setColumnVisibilityModel(o)}}),[t]),v=e.useCallback((e=>os(t).findIndex((t=>t===e))),[t]),y=e.useCallback(((e,n)=>{const o=os(t),r=v(e);if(r===n)return;i.debug(`Moving column ${e} to index ${n}`);const l=[...o],a=l.splice(r,1)[0];l.splice(n,0,a),u(_e({},ns(t.current.state),{orderedFields:l}));const s={column:t.current.getColumn(e),targetIndex:t.current.getColumnIndexRelativeToVisibleColumns(e),oldIndex:r};t.current.publishEvent("columnIndexChange",s)}),[t,i,u,v]),w=e.useCallback(((e,n)=>{i.debug(`Updating column ${e} width to ${n}`);const o=_e({},t.current.getColumn(e),{width:n});t.current.updateColumns([o]),t.current.publishEvent("columnWidthChange",{element:t.current.getColumnHeaderElement(e),colDef:o,width:n})}),[t,i]),x={setColumnIndex:y};Lu(t,{getColumn:c,getAllColumns:d,getColumnIndex:f,getColumnPosition:h,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:v,updateColumns:g,setColumnVisibilityModel:m,setColumnVisibility:b,setColumnWidth:w},"public"),Lu(t,x,n.signature===Hm.DataGrid?"private":"public");const C=e.useCallback(((e,o)=>{var r,i,l;const a={},s=ls(t);(!o.exportOnlyDirtyModels||null!=n.columnVisibilityModel||Object.keys(null!=(r=null==(i=n.initialState)||null==(l=i.columns)?void 0:l.columnVisibilityModel)?r:{}).length>0||Object.keys(s).length>0)&&(a.columnVisibilityModel=s),a.orderedFields=os(t);const u=is(t),c={};return u.forEach((e=>{if(e.hasBeenResized){const t={};Rk.forEach((n=>{let o=e[n];o===1/0&&(o=-1),t[n]=o})),c[e.field]=t}})),Object.keys(c).length>0&&(a.dimensions=c),_e({},e,{columns:a})}),[t,n.columnVisibilityModel,null==(o=n.initialState)?void 0:o.columns]),O=e.useCallback(((e,n)=>{var o;const r=null==(o=n.stateToRestore.columns)?void 0:o.columnVisibilityModel,i=n.stateToRestore.columns;if(null==r&&null==i)return e;const a=Nk({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:i,columnVisibilityModel:r,keepOnlyColumnsToUpsert:!1});return t.current.setState(jk(a)),null!=i&&t.current.publishEvent("columnsChange",a.orderedFields),e}),[t,l]),k=e.useCallback(((e,t)=>{if(t===mg.columns){var o;const e=n.slots.columnsPanel;return Pe.jsx(e,_e({},null==(o=n.slotProps)?void 0:o.columnsPanel))}return e}),[n.slots.columnsPanel,null==(r=n.slotProps)?void 0:r.columnsPanel]),S=e.useCallback((e=>n.disableColumnSelector?e:[...e,"columnMenuColumnsItem"]),[n.disableColumnSelector]);ek(t,"columnMenu",S),ek(t,"exportState",C),ek(t,"restoreState",O),ek(t,"preferencePanel",k);const E=e.useRef(null);Um(t,"viewportInnerSizeChange",(e=>{E.current!==e.width&&(E.current=e.width,u(Tk(ns(t.current.state),e.width)))}));const R=e.useCallback((()=>{i.info("Columns pipe processing have changed, regenerating the columns");const e=Nk({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});u(e)}),[t,i,u,l]);tk(t,"hydrateColumns",R);const T=e.useRef(!0);e.useEffect((()=>{if(T.current)return void(T.current=!1);if(i.info(`GridColumns have changed, new length ${n.columns.length}`),a.current===n.columns&&s.current===l)return;const e=Nk({apiRef:t,columnTypes:l,initialState:void 0,columnsToUpsert:n.columns,keepOnlyColumnsToUpsert:!0});a.current=n.columns,s.current=l,u(e)}),[i,t,u,n.columns,l]),e.useEffect((()=>{void 0!==n.columnVisibilityModel&&t.current.setColumnVisibilityModel(n.columnVisibilityModel)}),[t,i,n.columnVisibilityModel])}(o,n),bS(o,n),$u(o,n),(t=>{const n=e.useRef({}),o=e.useCallback(((e,t,o)=>{const r=n.current;r[e]||(r[e]={}),r[e][t]=o}),[]),r=e.useCallback(((e,t)=>{var o;return null==(o=n.current[e])?void 0:o[t]}),[]),i=e.useCallback((e=>{const{columnIndex:n,rowId:r,minFirstColumnIndex:i,maxLastColumnIndex:l,columns:a}=e,s=a.length,u=a[n],c="function"==typeof u.colSpan?u.colSpan(t.current.getCellParams(r,u.field)):u.colSpan;if(!c||1===c)return o(r,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let d=u.computedWidth;for(let e=1;e<c;e+=1){const t=n+e;t>=i&&t<l&&(d+=a[t].computedWidth,o(r,n+e,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+c,s-1),leftVisibleCellIndex:n})),o(r,n,{spannedByColSpan:!1,cellProps:{colSpan:c,width:d}})}return{colSpan:c}}),[t,o]),l={calculateColSpan:e.useCallback((({rowId:e,minFirstColumn:t,maxLastColumn:n,columns:o})=>{for(let r=t;r<n;r+=1){const l=i({columnIndex:r,rowId:e,minFirstColumnIndex:t,maxLastColumnIndex:n,columns:o});l.colSpan>1&&(r+=l.colSpan-1)}}),[i])};Lu(t,{unstable_getCellColSpanInfo:r},"public"),Lu(t,l,"private");const a=e.useCallback((()=>{n.current={}}),[]);Um(t,"columnOrderChange",a)})(o),((t,n)=>{var o;const r=e.useCallback((e=>{var n;return null!=(n=nu(t)[e])?n:[]}),[t]),i=e.useCallback((()=>ou(t)),[t]);Lu(t,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:i},"public");const l=e.useCallback((()=>{var e;const o=QE(null!=(e=n.columnGroupingModel)?e:[]);t.current.setState((e=>{var t,n;const r=null!=(t=null==(n=e.columns)?void 0:n.orderedFields)?t:[],i=JE(r,o);return _e({},e,{columnGrouping:_e({},e.columnGrouping,{headerStructure:i})})}))}),[t,n.columnGroupingModel]),a=e.useCallback((e=>{var o;if(null==(o=n.experimentalFeatures)||!o.columnGrouping)return;const r=os(t),i=ss(t),l=tR(e??[]),a=QE(e??[]),s=JE(r,a),u=0===i.length?0:Math.max(...i.map((e=>{var t,n;return null!=(t=null==(n=a[e])?void 0:n.length)?t:0})));t.current.setState((e=>_e({},e,{columnGrouping:{lookup:l,unwrappedGroupingModel:a,headerStructure:s,maxDepth:u}})))}),[t,null==(o=n.experimentalFeatures)?void 0:o.columnGrouping]);Um(t,"columnIndexChange",l),Um(t,"columnsChange",(()=>{a(n.columnGroupingModel)})),Um(t,"columnVisibilityModelChange",(()=>{a(n.columnGroupingModel)})),e.useEffect((()=>{a(n.columnGroupingModel)}),[a,n.columnGroupingModel])})(o,n),mS(o,n),((t,n)=>{const o=Km(t,"useGridFocus"),r=e.useRef(null),i=e.useCallback(((e,n)=>{e&&t.current.getRow(e.id)&&t.current.publishEvent("cellFocusOut",t.current.getCellParams(e.id,e.field),n)}),[t]),l=e.useCallback(((e,n)=>{const r=Us(t);(null==r?void 0:r.id)===e&&(null==r?void 0:r.field)===n||(t.current.setState((t=>(o.debug(`Focusing on cell with id=${e} and field=${n}`),_e({},t,{tabIndex:{cell:{id:e,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:e,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))),t.current.forceUpdate(),t.current.getRow(e)&&(r&&i(r,{}),t.current.publishEvent("cellFocusIn",t.current.getCellParams(e,n))))}),[t,o,i]),a=e.useCallback(((e,n={})=>{const r=Us(t);i(r,n),t.current.setState((t=>(o.debug(`Focusing on column header with colIndex=${e}`),_e({},t,{tabIndex:{columnHeader:{field:e},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:e},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))),t.current.forceUpdate()}),[t,o,i]),s=e.useCallback(((e,n={})=>{const r=Us(t);i(r,n),t.current.setState((t=>(o.debug(`Focusing on column header filter with colIndex=${e}`),_e({},t,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:e},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:e},cell:null,columnGroupHeader:null}})))),t.current.forceUpdate()}),[t,o,i]),u=e.useCallback(((e,n,o={})=>{const r=Us(t);r&&t.current.publishEvent("cellFocusOut",t.current.getCellParams(r.id,r.field),o),t.current.setState((t=>_e({},t,{tabIndex:{columnGroupHeader:{field:e,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:e,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null}}))),t.current.forceUpdate()}),[t]),c=e.useCallback((()=>Gs(t)),[t]),d=e.useCallback(((e,o,r)=>{let i=t.current.getColumnIndex(o);const l=as(t),a=xO(t,{pagination:n.pagination,paginationMode:n.paginationMode}),s=Ss(t),u=[].concat(s.top||[],a.rows,s.bottom||[]);let c=u.findIndex((t=>t.id===e));"right"===r?i+=1:"left"===r?i-=1:c+=1,i>=l.length?(c+=1,c<u.length&&(i=0)):i<0&&(c-=1,c>=0&&(i=l.length-1)),c=Qm(c,0,u.length-1);const d=u[c];if(!d)return;const p=t.current.unstable_getCellColSpanInfo(d.id,i);p&&p.spannedByColSpan&&("left"===r||"below"===r?i=p.leftVisibleCellIndex:"right"===r&&(i=p.rightVisibleCellIndex)),i=Qm(i,0,l.length-1);const f=l[i];t.current.setCellFocus(d.id,f.field)}),[t,n.pagination,n.paginationMode]),p=e.useCallback((({id:e,field:n})=>{t.current.setCellFocus(e,n)}),[t]),f=e.useCallback(((e,n)=>{"Enter"===n.key||"Tab"===n.key||"Shift"===n.key||Jp(n.key)||t.current.setCellFocus(e.id,e.field)}),[t]),h=e.useCallback((({field:e},n)=>{n.target===n.currentTarget&&t.current.setColumnHeaderFocus(e,n)}),[t]),m=e.useCallback((({fields:e,depth:n},o)=>{if(o.target!==o.currentTarget)return;const r=Gs(t);null!==r&&r.depth===n&&e.includes(r.field)||t.current.setColumnGroupHeaderFocus(e[0],n,o)}),[t]),g=e.useCallback(((e,n)=>{var r;null!=(r=n.relatedTarget)&&r.className.includes(qa.columnHeader)||(o.debug("Clearing focus"),t.current.setState((e=>_e({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))))}),[o,t]),b=e.useCallback((e=>{r.current=e}),[]),v=e.useCallback((e=>{const n=r.current;r.current=null;const o=Us(t);if(!t.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:e,cell:n}))return;if(!o)return void(n&&t.current.setCellFocus(n.id,n.field));if((null==n?void 0:n.id)===o.id&&(null==n?void 0:n.field)===o.field)return;const l=t.current.getCellElement(o.id,o.field);null!=l&&l.contains(e.target)||(n?t.current.setCellFocus(n.id,n.field):(t.current.setState((e=>_e({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),t.current.forceUpdate(),i(o,e)))}),[t,i]),y=e.useCallback((e=>{if("view"===e.cellMode)return;const n=Us(t);((null==n?void 0:n.id)!==e.id||(null==n?void 0:n.field)!==e.field)&&t.current.setCellFocus(e.id,e.field)}),[t]),w=e.useCallback((()=>{const e=Us(t);e&&!t.current.getRow(e.id)&&t.current.setState((e=>_e({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}),[t]),x={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:c};Lu(t,{setCellFocus:l,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:s},"public"),Lu(t,x,"private"),e.useEffect((()=>{const e=Rt(t.current.rootElementRef.current);return e.addEventListener("mouseup",v),()=>{e.removeEventListener("mouseup",v)}}),[t,v]),Um(t,"columnHeaderBlur",g),Um(t,"headerFilterBlur",g),Um(t,"cellDoubleClick",p),Um(t,"cellMouseDown",b),Um(t,"cellKeyDown",f),Um(t,"cellModeChange",y),Um(t,"columnHeaderFocus",h),Um(t,"columnGroupHeaderFocus",m),Um(t,"rowsSet",w)})(o,n),((t,n)=>{var o;const r=Km(t,"useGridPreferencesPanel"),i=e.useRef(),l=e.useRef(),a=e.useCallback((()=>{r.debug("Hiding Preferences Panel");const e=hg(t.current.state);e.openedPanelValue&&t.current.publishEvent("preferencePanelClose",{openedPanelValue:e.openedPanelValue}),t.current.setState((e=>_e({},e,{preferencePanel:{open:!1}}))),t.current.forceUpdate()}),[t,r]),s=e.useCallback((()=>{l.current=setTimeout((()=>clearTimeout(i.current)),0)}),[]),u=e.useCallback((()=>{i.current=setTimeout(a,100)}),[a]),c=e.useCallback(((e,n,o)=>{r.debug("Opening Preferences Panel"),s(),t.current.setState((t=>_e({},t,{preferencePanel:_e({},t.preferencePanel,{open:!0,openedPanelValue:e,panelId:n,labelId:o})}))),t.current.publishEvent("preferencePanelOpen",{openedPanelValue:e}),t.current.forceUpdate()}),[r,s,t]);Lu(t,{showPreferences:c,hidePreferences:u},"public");const d=e.useCallback(((e,o)=>{var r;const i=hg(t.current.state);return!o.exportOnlyDirtyModels||null!=(null==(r=n.initialState)?void 0:r.preferencePanel)||i.open?_e({},e,{preferencePanel:i}):e}),[t,null==(o=n.initialState)?void 0:o.preferencePanel]),p=e.useCallback(((e,n)=>{const o=n.stateToRestore.preferencePanel;return null!=o&&t.current.setState((e=>_e({},e,{preferencePanel:o}))),e}),[t]);ek(t,"exportState",d),ek(t,"restoreState",p),e.useEffect((()=>()=>{clearTimeout(i.current),clearTimeout(l.current)}),[])})(o,n),((t,n)=>{var o,r,i;const l=Km(t,"useGridFilter");t.current.registerControlState({stateId:"filter",propModel:n.filterModel,propOnChange:n.onFilterModelChange,stateSelector:Is,changeEvent:"filterModelChange"});const a=e.useCallback((()=>{t.current.setState((e=>{const o=Is(e,t.current.instanceId),r="client"===n.filterMode?Yk(n.getRowId,o,t):null,i=t.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:r,filterModel:o??$m()}),l=_e({},e,{filter:_e({},e.filter,i)});return _e({},l,{visibleRowsLookup:eS(t,l)})})),t.current.publishEvent("filteredRowsSet")}),[t,n.filterMode,n.getRowId]),s=e.useCallback(((e,t)=>null==t||!1===t.filterable||n.disableColumnFilter?e:[...e,"columnMenuFilterItem"]),[n.disableColumnFilter]),u=e.useCallback((()=>{a(),t.current.forceUpdate()}),[t,a]),c=e.useCallback((e=>{const n=Is(t),o=[...n.items],r=o.findIndex((t=>t.id===e.id));-1===r?o.push(e):o[r]=e,t.current.setFilterModel(_e({},n,{items:o}),"upsertFilterItem")}),[t]),d=e.useCallback((e=>{const n=Is(t),o=[...n.items];e.forEach((t=>{const n=e.findIndex((e=>e.id===t.id));-1===n?o.push(t):o[n]=t})),t.current.setFilterModel(_e({},n,{items:e}),"upsertFilterItems")}),[t]),p=e.useCallback((e=>{const n=Is(t),o=n.items.filter((t=>t.id!==e.id));o.length!==n.items.length&&t.current.setFilterModel(_e({},n,{items:o}),"deleteFilterItem")}),[t]),f=e.useCallback(((e,o,r)=>{if(l.debug("Displaying filter panel"),e){const o=Is(t),r=o.items.filter((e=>{var n;if(void 0!==e.value)return!(Array.isArray(e.value)&&0===e.value.length);const o=null==(n=t.current.getColumn(e.field).filterOperators)?void 0:n.find((t=>t.value===e.operator));return!(typeof(null==o?void 0:o.requiresFilterValue)>"u"||(null==o?void 0:o.requiresFilterValue))}));let i;const l=r.find((t=>t.field===e)),a=t.current.getColumn(e);i=l?r:n.disableMultipleColumnsFiltering?[qk({field:e,operator:a.filterOperators[0].value},t)]:[...r,qk({field:e,operator:a.filterOperators[0].value},t)],t.current.setFilterModel(_e({},o,{items:i}))}t.current.showPreferences(mg.filters,o,r)}),[t,l,n.disableMultipleColumnsFiltering]),h=e.useCallback((()=>{l.debug("Hiding filter panel"),t.current.hidePreferences()}),[t,l]),m=e.useCallback((e=>{const n=Is(t);n.logicOperator!==e&&t.current.setFilterModel(_e({},n,{logicOperator:e}),"changeLogicOperator")}),[t]),g=e.useCallback((e=>{const n=Is(t);Jm(n.quickFilterValues,e)||t.current.setFilterModel(_e({},n,{quickFilterValues:[...e]}))}),[t]),b=e.useCallback(((e,o)=>{Is(t)!==e&&(l.debug("Setting filter model"),t.current.updateControlState("filter",Gk(e,n.disableMultipleColumnsFiltering,t),o),t.current.unstable_applyFilters())}),[t,l,n.disableMultipleColumnsFiltering]);Lu(t,{setFilterLogicOperator:m,unstable_applyFilters:u,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:d,setFilterModel:b,showFilterPanel:f,hideFilterPanel:h,setQuickFilterValues:g},"public");const v=e.useCallback(((e,o)=>{var r,i;const l=Is(t);return o.exportOnlyDirtyModels&&null==n.filterModel&&null==(null==(r=n.initialState)||null==(i=r.filter)?void 0:i.filterModel)&&Jm(l,$m())?e:_e({},e,{filter:{filterModel:l}})}),[t,n.filterModel,null==(o=n.initialState)||null==(r=o.filter)?void 0:r.filterModel]),y=e.useCallback(((e,o)=>{var r;const i=null==(r=o.stateToRestore.filter)?void 0:r.filterModel;return null==i?e:(t.current.updateControlState("filter",Gk(i,n.disableMultipleColumnsFiltering,t),"restoreState"),_e({},e,{callbacks:[...e.callbacks,t.current.unstable_applyFilters]}))}),[t,n.disableMultipleColumnsFiltering]),w=e.useCallback(((e,t)=>{if(t===mg.filters){var o;const e=n.slots.filterPanel;return Pe.jsx(e,_e({},null==(o=n.slotProps)?void 0:o.filterPanel))}return e}),[n.slots.filterPanel,null==(i=n.slotProps)?void 0:i.filterPanel]),x=t.current.state.rows.dataRowIdToModelLookup,C=e.useMemo((()=>Object.values(x)),[x]),{getRowId:O}=n,k=e.useCallback((e=>{if("client"!==n.filterMode||!e.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const o=bs(t),r={},{isRowMatchingFilters:i}=e,l={},a={passingFilterItems:null,passingQuickFilterValues:null};for(let n=0;n<C.length;n+=1){const o=C[n],s=O?O(o):o.id;i(o,void 0,a);const u=Xk([a.passingFilterItems],[a.passingQuickFilterValues],e.filterModel,t,l);r[s]=u}const s="auto-generated-group-footer-root";return o[s]&&(r[s]=!0),{filteredRowsLookup:r,filteredDescendantCountLookup:{}}}),[t,C,n.filterMode,O]);ek(t,"columnMenu",s),ek(t,"exportState",v),ek(t,"restoreState",y),ek(t,"preferencePanel",w),nk(t,ok,"filtering",k),nk(t,ok,"visibleRowsLookupCreation",Jk);const S=e.useCallback((()=>{l.debug("onColUpdated - GridColumns changed, applying filters");const e=Is(t),n=ps(t),o=e.items.filter((e=>e.field&&n[e.field]));o.length<e.items.length&&t.current.setFilterModel(_e({},e,{items:o}))}),[t,l]),E=e.useCallback((e=>{"filtering"===e&&t.current.unstable_applyFilters()}),[t]),R=e.useCallback((()=>{t.current.setState((e=>_e({},e,{visibleRowsLookup:eS(t,e)}))),t.current.forceUpdate()}),[t]);Um(t,"rowsSet",a),Um(t,"columnsChange",S),Um(t,"activeStrategyProcessorChange",E),Um(t,"rowExpansionChange",R),ng((()=>{t.current.unstable_applyFilters()})),jt((()=>{void 0!==n.filterModel&&t.current.setFilterModel(n.filterModel)}),[t,l,n.filterModel])})(o,n),((t,n)=>{var o,r;const i=Km(t,"useGridSorting");t.current.registerControlState({stateId:"sortModel",propModel:n.sortModel,propOnChange:n.onSortModelChange,stateSelector:js,changeEvent:"sortModelChange"});const l=e.useCallback(((e,n)=>{const o=js(t),r=o.findIndex((t=>t.field===e));let i=[...o];return r>-1?n?i.splice(r,1,n):i.splice(r,1):i=[...o,n],i}),[t]),a=e.useCallback(((e,o)=>{var r;const i=js(t).find((t=>t.field===e.field));if(i){var l;const t=void 0===o?kg(null!=(l=e.sortingOrder)?l:n.sortingOrder,i.sort):o;return null==t?void 0:_e({},i,{sort:t})}return{field:e.field,sort:void 0===o?kg(null!=(r=e.sortingOrder)?r:n.sortingOrder):o}}),[t,n.sortingOrder]),s=e.useCallback(((e,t)=>null==t||!1===t.sortable?e:(t.sortingOrder||n.sortingOrder).some((e=>!!e))?[...e,"columnMenuSortItem"]:e),[n.sortingOrder]),u=e.useCallback((()=>{t.current.setState((e=>{if("server"===n.sortingMode)return i.debug("Skipping sorting rows as sortingMode = server"),_e({},e,{sorting:_e({},e.sorting,{sortedRows:gu(ys(t),uu,!1)})});const o=((e,t)=>{const n=e.map((e=>((e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const o=(e=>"desc"===e)(e.sort)?(...e)=>-1*n.sortComparator(...e):n.sortComparator;return{getSortCellParams:e=>({id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}),comparator:o}})(e,t))).filter((e=>!!e));return 0===n.length?null:e=>e.map((e=>({node:e,params:n.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>((e,t,n)=>e.reduce(((e,o,r)=>{if(0!==e)return e;const i=t.params[r],l=n.params[r];return o.comparator(i.value,l.value,i,l)}),0))(n,e,t))).map((e=>e.node.id))})(js(e,t.current.instanceId),t),r=t.current.applyStrategyProcessor("sorting",{sortRowList:o});return _e({},e,{sorting:_e({},e.sorting,{sortedRows:r})})})),t.current.publishEvent("sortedRowsSet"),t.current.forceUpdate()}),[t,i,n.sortingMode]),c=e.useCallback((e=>{js(t)!==e&&(i.debug("Setting sort model"),t.current.setState(Og(e,n.disableMultipleColumnsSorting)),t.current.forceUpdate(),t.current.applySorting())}),[t,i,n.disableMultipleColumnsSorting]),d=e.useCallback(((e,o,r)=>{if(!e.sortable)return;const i=a(e,o);let s;s=!r||n.disableMultipleColumnsSorting?i?[i]:[]:l(e.field,i),t.current.setSortModel(s)}),[t,l,a,n.disableMultipleColumnsSorting]),p=e.useCallback((()=>js(t)),[t]),f=e.useCallback((()=>Ns(t).map((e=>e.model))),[t]),h=e.useCallback((()=>Ts(t)),[t]),m=e.useCallback((e=>t.current.getSortedRowIds()[e]),[t]);Lu(t,{getSortModel:p,getSortedRows:f,getSortedRowIds:h,getRowIdFromRowIndex:m,setSortModel:c,sortColumn:d,applySorting:u},"public");const g=e.useCallback(((e,o)=>{var r,i;const l=js(t);return!o.exportOnlyDirtyModels||null!=n.sortModel||null!=(null==(r=n.initialState)||null==(i=r.sorting)?void 0:i.sortModel)||l.length>0?_e({},e,{sorting:{sortModel:l}}):e}),[t,n.sortModel,null==(o=n.initialState)||null==(r=o.sorting)?void 0:r.sortModel]),b=e.useCallback(((e,o)=>{var r;const i=null==(r=o.stateToRestore.sorting)?void 0:r.sortModel;return null==i?e:(t.current.setState(Og(i,n.disableMultipleColumnsSorting)),_e({},e,{callbacks:[...e.callbacks,t.current.applySorting]}))}),[t,n.disableMultipleColumnsSorting]),v=e.useCallback((e=>{const n=ys(t),o=n[uu],r=e.sortRowList?e.sortRowList(o.children.map((e=>n[e]))):[...o.children];return null!=o.footerId&&r.push(o.footerId),r}),[t]);ek(t,"exportState",g),ek(t,"restoreState",b),nk(t,ok,"sorting",v);const y=e.useCallback((({colDef:e},t)=>{const n=t.shiftKey||t.metaKey||t.ctrlKey;d(e,void 0,n)}),[d]),w=e.useCallback((({colDef:e},t)=>{(e=>"Enter"===e)(t.key)&&!t.ctrlKey&&!t.metaKey&&d(e,void 0,t.shiftKey)}),[d]),x=e.useCallback((()=>{const e=js(t),n=rs(t);if(e.length>0){const o=e.filter((e=>n[e.field]));o.length<e.length&&t.current.setSortModel(o)}}),[t]),C=e.useCallback((e=>{"sorting"===e&&t.current.applySorting()}),[t]);ek(t,"columnMenu",s),Um(t,"columnHeaderClick",y),Um(t,"columnHeaderKeyDown",w),Um(t,"rowsSet",t.current.applySorting),Um(t,"columnsChange",x),Um(t,"activeStrategyProcessorChange",C),ng((()=>{t.current.applySorting()})),jt((()=>{void 0!==n.sortModel&&t.current.setSortModel(n.sortModel)}),[t,n.sortModel])})(o,n),((t,n)=>{const o=Km(t,"useDensity"),r=e.useCallback((e=>{o.debug(`Set grid density to ${e}`),t.current.setState((t=>{const n=Qs(t),o={value:e,factor:Ak[e]};return Jm(n,o)?t:_e({},t,{density:o})})),t.current.forceUpdate()}),[o,t]);e.useEffect((()=>{t.current.setDensity(n.density)}),[t,n.density]),Lu(t,{setDensity:r},"public")})(o,n),((t,n)=>{var o,r;const i=Km(t,"useGridPagination"),l=$a(t,zs),a=$a(t,eu),s=Math.floor(n.rowHeight*a);t.current.registerControlState({stateId:"pagination",propModel:n.paginationModel,propOnChange:n.onPaginationModelChange,stateSelector:sg,changeEvent:"paginationModelChange"});const u=e.useCallback((e=>{const n=sg(t);e!==n.page&&(i.debug(`Setting page to ${e}`),t.current.setPaginationModel({page:e,pageSize:n.pageSize}))}),[t,i]),c=e.useCallback((e=>{const n=sg(t);e!==n.pageSize&&(i.debug(`Setting page size to ${e}`),t.current.setPaginationModel({pageSize:e,page:n.page}))}),[t,i]),d=e.useCallback((e=>{var o;e!==sg(t)&&(i.debug("Setting 'paginationModel' to",e),t.current.updateControlState("pagination",lS(null!=(o=n.rowCount)?o:l,n.signature,e),"setPaginationModel"),t.current.forceUpdate())}),[t,i,n.rowCount,n.signature,l]);Lu(t,{setPage:u,setPageSize:c,setPaginationModel:d},"public");const p=e.useCallback(((e,o)=>{var r,i;const l=sg(t);return!o.exportOnlyDirtyModels||null!=n.paginationModel||null!=(null==(r=n.initialState)||null==(i=r.pagination)?void 0:i.paginationModel)||0!==l.page&&l.pageSize!==(e=>e?0:100)(n.autoPageSize)?_e({},e,{pagination:_e({},e.pagination,{paginationModel:l})}):e}),[t,n.paginationModel,null==(o=n.initialState)||null==(r=o.pagination)?void 0:r.paginationModel,n.autoPageSize]),f=e.useCallback(((e,o)=>{var r,i,a;const s=null!=(r=o.stateToRestore.pagination)&&r.paginationModel?_e({},ig(n.autoPageSize),null==(i=o.stateToRestore.pagination)?void 0:i.paginationModel):sg(t);return t.current.updateControlState("pagination",lS(null!=(a=n.rowCount)?a:l,n.signature,s),"stateRestorePreProcessing"),e}),[t,n.autoPageSize,n.rowCount,n.signature,l]);ek(t,"exportState",p),ek(t,"restoreState",f);const h=e.useCallback((()=>{const e=t.current.getRootDimensions();if(!n.autoPageSize||!e)return;const o=bu(t),r=Math.floor((e.viewportInnerSize.height-o.top-o.bottom)/s);t.current.setPageSize(r)}),[t,n.autoPageSize,s]);Um(t,"viewportInnerSizeChange",h),Um(t,"paginationModelChange",(()=>{var e;const n=sg(t);null!=(e=t.current.virtualScrollerRef)&&e.current&&t.current.scrollToIndexes({rowIndex:n.page*n.pageSize}),t.current.forceUpdate()})),e.useEffect((()=>{"production"!==process.env.NODE_ENV&&"server"===n.paginationMode&&null==n.rowCount&&rg()}),[n.rowCount,n.paginationMode]),e.useEffect((()=>{var e;t.current.updateControlState("pagination",lS(null!=(e=n.rowCount)?e:l,n.signature,n.paginationModel))}),[t,n.paginationModel,n.rowCount,n.paginationMode,l,n.signature]),e.useEffect((()=>{h()}),[h])})(o,n),((t,n)=>{const{getRowHeight:o,getRowSpacing:r,getEstimatedRowHeight:i}=n,l=e.useRef(Object.create(null)),a=e.useRef(-1),s=e.useRef(!1),u=$a(t,eu),c=$a(t,Is),d=$a(t,ag),p=$a(t,js),f=CO(t,n),h=$a(t,Ss),m=KE(n.rowHeight,HE.rowHeight,YE),g=Math.floor(m*u),b=e.useCallback((()=>{var e,n;s.current=!1;const c=e=>{l.current[e.id]||(l.current[e.id]={sizes:{baseCenter:g},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:n,needsFirstMeasurement:a,sizes:c}=l.current[e.id];let d="number"==typeof g&&g>0?g:52;const p=c.baseCenter;if(n)d=p;else if(o){const t=o(_e({},e,{densityFactor:u}));"auto"===t?(d=a?(i?i(_e({},e,{densityFactor:u})):g)??g:p,s.current=!0,l.current[e.id].autoHeight=!0):(d=KE(t,g,ZE),l.current[e.id].needsFirstMeasurement=!1,l.current[e.id].autoHeight=!1)}else l.current[e.id].needsFirstMeasurement=!1;const h={};for(const e in c)/^base[A-Z]/.test(e)&&(h[e]=c[e]);if(h.baseCenter=d,r){var m,b;const n=t.current.getRowIndexRelativeToVisibleRows(e.id),o=r(_e({},e,{isFirstVisible:0===n,isLastVisible:n===f.rows.length-1,indexRelativeToCurrentPage:n}));h.spacingTop=null!=(m=o.top)?m:0,h.spacingBottom=null!=(b=o.bottom)?b:0}const v=t.current.unstable_applyPipeProcessors("rowHeight",h,e);return l.current[e.id].sizes=v,v},d=[],p=f.rows.reduce(((e,t)=>{d.push(e);let n=0,o=0;const r=c(t);for(const e in r){const t=r[e];/^base[A-Z]/.test(e)?n=t>n?t:n:o+=t}return e+n+o}),0);null==h||null==(e=h.top)||e.forEach((e=>{c(e)})),null==h||null==(n=h.bottom)||n.forEach((e=>{c(e)})),t.current.setState((e=>_e({},e,{rowsMeta:{currentPageTotalHeight:p,positions:d}}))),s.current||(a.current=1/0),t.current.forceUpdate()}),[t,f.rows,g,o,r,i,h,u]),v=e.useCallback((e=>{const t=l.current[e];return t?t.sizes.baseCenter:g}),[g]),y=e.useCallback(((e,t)=>{l.current[e].sizes.baseCenter=t,l.current[e].isResized=!0,l.current[e].needsFirstMeasurement=!1,b()}),[b]),w=e.useMemo((()=>St(b)),[b]),x=e.useCallback(((e,t,n)=>{if(!l.current[e]||!l.current[e].autoHeight)return;const o=l.current[e].sizes[`base${Ot(n)}`]!==t;l.current[e].needsFirstMeasurement=!1,l.current[e].sizes[`base${Ot(n)}`]=t,o&&w()}),[w]),C=e.useCallback((e=>{var t;return(null==(t=l.current[e])?void 0:t.autoHeight)||!1}),[]),O=e.useCallback((()=>a.current),[]),k=e.useCallback((e=>{s.current&&e>a.current&&(a.current=e)}),[]),S=e.useCallback((()=>{l.current={},b()}),[b]);e.useEffect((()=>{b()}),[g,c,d,p,b]),tk(t,"rowHeight",b);const E={getLastMeasuredRowIndex:O,rowHasAutoHeight:C};Lu(t,{unstable_setLastMeasuredRowIndex:k,unstable_getRowHeight:v,unstable_getRowInternalSizes:e=>{var t;return null==(t=l.current[e])?void 0:t.sizes},unstable_setRowHeight:y,unstable_storeRowHeightMeasurement:x,resetRowHeights:S},"public"),Lu(t,E,"private")})(o,n),((t,n)=>{const o=mr(),r=Km(t,"useGridScroll"),i=t.current.columnHeadersElementRef,l=t.current.virtualScrollerRef,a=$a(t,Ds),s=e.useCallback((e=>{const o=hs(t),i=as(t);if(null!=e.rowIndex&&0===o||0===i.length)return!1;r.debug(`Scrolling to cell at row ${e.rowIndex}, col: ${e.colIndex} `);let s={};if(null!=e.colIndex){const n=us(t);let o;if(typeof e.rowIndex<"u"){var u;const n=null==(u=a[e.rowIndex])?void 0:u.id,r=t.current.unstable_getCellColSpanInfo(n,e.colIndex);r&&!r.spannedByColSpan&&(o=r.cellProps.width)}typeof o>"u"&&(o=i[e.colIndex].computedWidth),s.left=kS({clientHeight:l.current.clientWidth,scrollTop:Math.abs(l.current.scrollLeft),offsetHeight:o,offsetTop:n[e.colIndex]})}if(null!=e.rowIndex){var c,d;const o=gg(t.current.state),r=ug(t),i=cg(t),a=n.pagination?e.rowIndex-r*i:e.rowIndex,u=o.positions[a+1]?o.positions[a+1]-o.positions[a]:o.currentPageTotalHeight-o.positions[a],p=(null==(c=l.current.querySelector(`.${qa["pinnedRows--top"]}`))?void 0:c.clientHeight)||0,f=(null==(d=l.current.querySelector(`.${qa["pinnedRows--bottom"]}`))?void 0:d.clientHeight)||0;s.top=kS({clientHeight:l.current.clientHeight-p-f,scrollTop:l.current.scrollTop,offsetHeight:u,offsetTop:o.positions[a]})}return s=t.current.unstable_applyPipeProcessors("scrollToIndexes",s,e),(void 0!==typeof s.left||void 0!==typeof s.top)&&(t.current.scroll(s),!0)}),[r,t,l,n.pagination,a]),u=e.useCallback((e=>{if(l.current&&null!=e.left&&i.current){const t="rtl"===o.direction?-1:1;i.current.scrollLeft=e.left,l.current.scrollLeft=t*e.left,r.debug(`Scrolling left: ${e.left}`)}l.current&&null!=e.top&&(l.current.scrollTop=e.top,r.debug(`Scrolling top: ${e.top}`)),r.debug("Scrolling, updating container, and viewport")}),[l,o.direction,i,r]),c=e.useCallback((()=>null!=l&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0}),[l]);Lu(t,{scroll:u,scrollToIndexes:s,getScrollPosition:c},"public")})(o,n),(t=>{const n=Km(t,"useGridColumnMenu"),o=e.useCallback((e=>{t.current.setState((t=>t.columnMenu.open&&t.columnMenu.field===e?t:(n.debug("Opening Column Menu"),_e({},t,{columnMenu:{open:!0,field:e}}))))&&(t.current.hidePreferences(),t.current.forceUpdate())}),[t,n]),r=e.useCallback((()=>{const e=lu(t.current.state);if(e.field){const n=rs(t),o=ls(t),r=os(t);let i=e.field;if(n[i]||(i=r[0]),!1===o[i]){const e=r.filter((e=>e===i||!1!==o[e])),t=e.indexOf(i);i=e[t+1]||e[t-1]}t.current.setColumnHeaderFocus(i)}t.current.setState((e=>e.columnMenu.open||void 0!==e.columnMenu.field?(n.debug("Hiding Column Menu"),_e({},e,{columnMenu:_e({},e.columnMenu,{open:!1,field:void 0})})):e))&&t.current.forceUpdate()}),[t,n]),i=e.useCallback((e=>{n.debug("Toggle Column Menu");const i=lu(t.current.state);i.open&&i.field===e?r():o(e)}),[t,n,o,r]);Lu(t,{showColumnMenu:o,hideColumnMenu:r,toggleColumnMenu:i},"public"),Um(t,"columnResizeStart",r),Um(t,"virtualScrollerWheel",t.current.hideColumnMenu),Um(t,"virtualScrollerTouchMove",t.current.hideColumnMenu)})(o),$k(o,n),zk(o,n),Sk(o,n),function(t,n){const o=Km(t,"useResizeContainer"),r=e.useRef(!1),i=e.useRef(null),l=e.useRef(null),a=$a(t,gg),s=$a(t,eu),u=Math.floor(n.rowHeight*s),c=Ik(t,n.columnHeaderHeight),d=e.useCallback((()=>{var e;const o=null==(e=t.current.rootElementRef)?void 0:e.current,r=cs(t),s=bu(t);if(!i.current)return;let u,d,p,f;if(null!=n.scrollbarSize)u=n.scrollbarSize;else if(r&&o){const e=Rt(o).createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.overflow="scroll",e.className="scrollDiv",o.appendChild(e),u=e.offsetWidth-e.clientWidth,o.removeChild(e)}else u=0;if(n.autoHeight)f=!1,p=Math.round(r)>Math.round(i.current.width),d={width:i.current.width,height:a.currentPageTotalHeight+(p?u:0)};else{d={width:i.current.width,height:i.current.height-c};const e=(({content:e,container:t,scrollBarSize:n})=>{const o=e.width>t.width,r=e.height>t.height;let i=!1,l=!1;return(o||r)&&(i=o,l=e.height+(i?n:0)>t.height,l&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:l}})({content:{width:Math.round(r),height:a.currentPageTotalHeight},container:{width:Math.round(d.width),height:d.height-s.top-s.bottom},scrollBarSize:u});f=e.hasScrollY,p=e.hasScrollX}const h={viewportOuterSize:d,viewportInnerSize:{width:d.width-(f?u:0),height:d.height-(p?u:0)},hasScrollX:p,hasScrollY:f,scrollBarSize:u},m=l.current;l.current=h,(h.viewportInnerSize.width!==(null==m?void 0:m.viewportInnerSize.width)||h.viewportInnerSize.height!==(null==m?void 0:m.viewportInnerSize.height))&&t.current.publishEvent("viewportInnerSizeChange",h.viewportInnerSize)}),[t,n.scrollbarSize,n.autoHeight,a.currentPageTotalHeight,c]),[p,f]=e.useState(),h=e.useMemo((()=>St(f,60)),[]),m=e.useRef();jt((()=>{p&&(d(),t.current.publishEvent("debouncedResize",i.current))}),[t,p,d]);const g=e.useCallback((()=>{t.current.computeSizeAndPublishResizeEvent()}),[t]),b=e.useCallback((()=>l.current),[]),v=e.useCallback((()=>{const e=t.current.getRootDimensions();if(!e)return 0;const o=xO(t,{pagination:n.pagination,paginationMode:n.paginationMode});if(n.getRowHeight){const e=t.current.getRenderContext(),n=e.lastRowIndex-e.firstRowIndex;return Math.min(n-1,o.rows.length)}const r=Math.floor(e.viewportInnerSize.height/u);return Math.min(r,o.rows.length)}),[t,n.pagination,n.paginationMode,n.getRowHeight,u]),y=e.useCallback((()=>{var e,n,o;const r=null==(e=t.current.mainElementRef)?void 0:e.current;if(!r)return;const i=Tt(r).getComputedStyle(r),l=parseFloat(i.height)||0,a=parseFloat(i.width)||0,s=l!==(null==(n=m.current)?void 0:n.height),u=a!==(null==(o=m.current)?void 0:o.width);if(!m.current||s||u){const e={width:a,height:l};t.current.publishEvent("resize",e),m.current=e}}),[t]),w={getViewportPageSize:v,updateGridDimensionsRef:d,computeSizeAndPublishResizeEvent:y};Lu(t,{resize:g,getRootDimensions:b},"public"),Lu(t,w,"private");const x=e.useRef(!0),C=e.useCallback((e=>{i.current=e;const t=/jsdom/.test(window.navigator.userAgent);return 0===e.height&&!r.current&&!n.autoHeight&&!t&&(o.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),r.current=!0),0===e.width&&!r.current&&!t&&(o.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),r.current=!0),SS||x.current?(f(e),void(x.current=!1)):void h(e)}),[n.autoHeight,h,o]);jt((()=>d()),[d]),Gm(t,"sortedRowsSet",d),Gm(t,"paginationModelChange",d),Gm(t,"columnsChange",d),Um(t,"resize",C),Gm(t,"debouncedResize",n.onResize)}(o,n),function(e,t){Gm(e,"columnHeaderClick",t.onColumnHeaderClick),Gm(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Gm(e,"columnHeaderOver",t.onColumnHeaderOver),Gm(e,"columnHeaderOut",t.onColumnHeaderOut),Gm(e,"columnHeaderEnter",t.onColumnHeaderEnter),Gm(e,"columnHeaderLeave",t.onColumnHeaderLeave),Gm(e,"cellClick",t.onCellClick),Gm(e,"cellDoubleClick",t.onCellDoubleClick),Gm(e,"cellKeyDown",t.onCellKeyDown),Gm(e,"preferencePanelClose",t.onPreferencePanelClose),Gm(e,"preferencePanelOpen",t.onPreferencePanelOpen),Gm(e,"menuOpen",t.onMenuOpen),Gm(e,"menuClose",t.onMenuClose),Gm(e,"rowDoubleClick",t.onRowDoubleClick),Gm(e,"rowClick",t.onRowClick),Gm(e,"stateChange",t.onStateChange)}(o,n),(t=>{const n=e.useCallback(((e={})=>t.current.unstable_applyPipeProcessors("exportState",{},e)),[t]),o=e.useCallback((e=>{t.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:e}).callbacks.forEach((e=>{e()})),t.current.forceUpdate()}),[t]);Lu(t,{exportState:n,restoreState:o},"public")})(o),o},rR=Ro("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"}}),iR=e.forwardRef((function(e,t){const n=Ra(),o=(e=>{const{classes:t}=e;return en({root:["virtualScroller"]},za,t)})(n);return Pe.jsx(rR,_e({ref:t},e,{className:vo(o.root,e.className),ownerState:n}))})),lR=Ro("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),aR=e.forwardRef((function(e,t){var n;const o=Ra(),r=((e,t)=>{const{classes:n}=e;return en({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},za,n)})(o,!o.autoHeight&&"auto"===(null==(n=e.style)?void 0:n.minHeight));return Pe.jsx(lR,_e({ref:t},e,{ownerState:o,className:vo(r.root,e.className)}))})),sR=["className"],uR=Ro("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),cR=e.forwardRef((function(e,t){const{className:n}=e,o=De(e,sR),r=Ra(),i=(e=>{const{classes:t}=e;return en({root:["virtualScrollerRenderZone"]},za,t)})(r);return Pe.jsx(uR,_e({ref:t,className:vo(i.root,n),ownerState:r},o))})),dR=["className","disableVirtualization"],pR=e.forwardRef((function(e,t){const{className:n,disableVirtualization:o}=e,r=De(e,dR),{getRootProps:i,getContentProps:l,getRenderZoneProps:a,getRows:s}=MS({ref:t,disableVirtualization:o});return Pe.jsxs(iR,_e({className:n},i(r),{children:[Pe.jsx(Ou,{}),Pe.jsx(aR,_e({},l(),{children:Pe.jsx(cR,_e({},a(),{children:s()}))}))]}))})),fR=e.forwardRef((function(e,t){const n=UE(e),o=oR(n.apiRef,n);return Pe.jsx(qO,{privateApiRef:o,props:n,children:Pe.jsxs(sm,_e({className:n.className,style:n.style,sx:n.sx,ref:t},n.forwardedProps,{children:[Pe.jsx(dC,{}),Pe.jsx(au,{VirtualScrollerComponent:pR}),Pe.jsx(su,{})]}))})})),hR=e.memo(fR);fR.propTypes={apiRef:pe.shape({current:pe.object.isRequired}),"aria-label":pe.string,"aria-labelledby":pe.string,autoHeight:pe.bool,autoPageSize:pe.bool,cellModesModel:pe.object,checkboxSelection:pe.bool,classes:pe.object,clipboardCopyCellDelimiter:pe.string,columnBuffer:pe.number,columnGroupingModel:pe.arrayOf(pe.object),columnHeaderHeight:pe.number,columns:nt(pe.array.isRequired,(e=>e.columns&&e.columns.some((e=>e.resizable))?new Error(["MUI: `column.resizable = true` is not a valid prop.","Column resizing is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n")):null)),columnThreshold:pe.number,columnVisibilityModel:pe.object,components:pe.object,componentsProps:pe.object,density:pe.oneOf(["comfortable","compact","standard"]),disableColumnFilter:pe.bool,disableColumnMenu:pe.bool,disableColumnSelector:pe.bool,disableDensitySelector:pe.bool,disableRowSelectionOnClick:pe.bool,disableVirtualization:pe.bool,editMode:pe.oneOf(["cell","row"]),experimentalFeatures:pe.shape({columnGrouping:pe.bool,warnIfFocusStateIsNotSynced:pe.bool}),filterMode:pe.oneOf(["client","server"]),filterModel:pe.shape({items:pe.arrayOf(pe.shape({field:pe.string.isRequired,id:pe.oneOfType([pe.number,pe.string]),operator:pe.string.isRequired,value:pe.any})).isRequired,logicOperator:pe.oneOf(["and","or"]),quickFilterLogicOperator:pe.oneOf(["and","or"]),quickFilterValues:pe.array}),forwardedProps:pe.object,getCellClassName:pe.func,getDetailPanelContent:pe.func,getEstimatedRowHeight:pe.func,getRowClassName:pe.func,getRowHeight:pe.func,getRowId:pe.func,getRowSpacing:pe.func,hideFooter:pe.bool,hideFooterPagination:pe.bool,hideFooterSelectedRowCount:pe.bool,initialState:pe.object,isCellEditable:pe.func,isRowSelectable:pe.func,keepNonExistentRowsSelected:pe.bool,loading:pe.bool,localeText:pe.object,logger:pe.shape({debug:pe.func.isRequired,error:pe.func.isRequired,info:pe.func.isRequired,warn:pe.func.isRequired}),logLevel:pe.oneOf(["debug","error","info","warn",!1]),nonce:pe.string,onCellClick:pe.func,onCellDoubleClick:pe.func,onCellEditStart:pe.func,onCellEditStop:pe.func,onCellKeyDown:pe.func,onCellModesModelChange:pe.func,onClipboardCopy:pe.func,onColumnHeaderClick:pe.func,onColumnHeaderDoubleClick:pe.func,onColumnHeaderEnter:pe.func,onColumnHeaderLeave:pe.func,onColumnHeaderOut:pe.func,onColumnHeaderOver:pe.func,onColumnOrderChange:pe.func,onColumnVisibilityModelChange:pe.func,onFilterModelChange:pe.func,onMenuClose:pe.func,onMenuOpen:pe.func,onPaginationModelChange:pe.func,onPreferencePanelClose:pe.func,onPreferencePanelOpen:pe.func,onProcessRowUpdateError:pe.func,onResize:pe.func,onRowClick:pe.func,onRowDoubleClick:pe.func,onRowEditCommit:pe.func,onRowEditStart:pe.func,onRowEditStop:pe.func,onRowModesModelChange:pe.func,onRowSelectionModelChange:pe.func,onSortModelChange:pe.func,onStateChange:pe.func,pageSizeOptions:pe.arrayOf(pe.oneOfType([pe.number,pe.shape({label:pe.string.isRequired,value:pe.number.isRequired})]).isRequired),pagination:e=>!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join("\n")):null,paginationMode:pe.oneOf(["client","server"]),paginationModel:pe.shape({page:pe.number.isRequired,pageSize:pe.number.isRequired}),processRowUpdate:pe.func,rowBuffer:pe.number,rowCount:pe.number,rowHeight:pe.number,rowModesModel:pe.object,rows:pe.arrayOf(pe.object).isRequired,rowSelection:pe.bool,rowSelectionModel:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.number,pe.string]).isRequired),pe.number,pe.string]),rowSpacingType:pe.oneOf(["border","margin"]),rowThreshold:pe.number,scrollbarSize:pe.number,showCellVerticalBorder:pe.bool,showColumnVerticalBorder:pe.bool,slotProps:pe.object,slots:pe.object,sortingMode:pe.oneOf(["client","server"]),sortingOrder:pe.arrayOf(pe.oneOf(["asc","desc"])),sortModel:pe.arrayOf(pe.shape({field:pe.string.isRequired,sort:pe.oneOf(["asc","desc"])})),sx:pe.oneOfType([pe.arrayOf(pe.oneOfType([pe.func,pe.object,pe.bool])),pe.func,pe.object]),unstable_ignoreValueFormatterDuringExport:pe.oneOfType([pe.shape({clipboardExport:pe.bool,csvExport:pe.bool}),pe.bool])};const mR=({apiRef:e,columnField:t})=>{const n=(null==e?void 0:e.current.getVisibleColumns().map((e=>e.field))).includes(t),[o,r]=l(n);return Pe.jsx(nE,{size:"small",checked:o,onChange:()=>{null==e||e.current.setColumnVisibility(t,!o),r(!o)}})},gR=e=>Pe.jsx(C,{...e}),bR=({columnsMenuTitle:e,apiRef:t,fixedColumns:n})=>{const o=(null==t?void 0:t.current.getAllColumns()).filter((e=>!("__check__"===e.field||null!=n&&n.includes(e.field))));return Pe.jsxs("div",{className:"flex flex-col p-5",children:[e&&Pe.jsx("div",{children:e}),Pe.jsx(gR,{className:"flex flex-col !text-[14px]",children:o.map((e=>Pe.jsx(av,{className:"capitalize",control:Pe.jsx(mR,{apiRef:t,columnField:e.field}),label:e.headerName},e.field))).slice(0,-1)})]})},vR=({apiRef:e,columnsMenuTitle:t,fixedColumns:n})=>{const[o,r]=l(null),i=!!o,a=i?"simple-popover":void 0;return Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("div",{className:"flex cursor-pointer items-center justify-center",onClick:e=>{r(e.currentTarget)},"aria-describedby":a,children:Pe.jsx(tl,{icon:"mdi:pin",className:"text-delta-600",width:20,height:20})}),Pe.jsx(O,{id:a,open:i,anchorEl:o,onClose:()=>{r(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:Pe.jsx(bR,{columnsMenuTitle:t,apiRef:e,fixedColumns:n})})]})},yR="_styled-data-grid_1smyb_1",wR="_cell_1smyb_5",xR="_cellContent_1smyb_9",CR="_columnHeader_1smyb_13",OR="_columnHeaderTitle_1smyb_17",kR="_columnHeaders_1smyb_21",SR="_footerContainer_1smyb_25",ER="_iconSeparator_1smyb_29",RR="_row_1smyb_33",TR="_virtualScrollerContent_1smyb_37",NR="_menuIconButton_1smyb_41",jR=t=>{var n,o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v,y,w,x,C;const O=e.useRef({}),k=[...t.columns];return t.disableRowActions||k.push(((e,t,n,o)=>({field:"actions",headerName:"Actions",width:50,disableColumnMenu:!0,sortable:!1,type:"actions",renderHeader:()=>Pe.jsx(vR,{apiRef:e,columnsMenuTitle:n,fixedColumns:o}),getActions:t||(()=>[])}))(O,t.rowActions||(()=>[]),t.columnsMenuTitle||"",t.fixedColumns)),t.disableHeaderPin&&k.forEach((e=>{"actions"===e.type&&(e.renderHeader=()=>"")})),Pe.jsx(hR,{disableColumnMenu:!0,apiRef:O,...t,columns:k,classes:{root:vo(`${yR}`,null==(n=t.classes)?void 0:n.root),cell:vo(`${wR}`,null==(o=t.classes)?void 0:o.cell),cellContent:vo(`${xR}`,null==(r=t.classes)?void 0:r.cellContent),columnHeader:vo(`${CR}`,null==(i=t.classes)?void 0:i.columnHeader),columnHeaderTitle:vo(`${OR}`,null==(l=t.classes)?void 0:l.columnHeaderTitle),columnHeaders:vo(`${kR}`,null==(a=t.classes)?void 0:a.columnHeaders),footerContainer:vo(`${SR}`,null==(s=t.classes)?void 0:s.footerContainer),iconSeparator:vo(`${ER}`,null==(u=t.classes)?void 0:u.iconSeparator),row:vo(`${RR}`,null==(c=t.classes)?void 0:c.row),virtualScrollerContent:vo(`${TR}`,null==(d=t.classes)?void 0:d.virtualScrollerContent),menuIconButton:vo(`${NR}`,null==(p=t.classes)?void 0:p.menuIconButton),...t.classes},slotProps:{baseCheckbox:{classes:{checked:vo("text-gama-700 hover:text-gama-700",null==(m=null==(h=null==(f=t.slotProps)?void 0:f.baseCheckbox)?void 0:h.classes)?void 0:m.checked)},className:vo("text-[#b5bec9] hover:text-gama-600 [&>svg]:h-5 [&>svg]:w-5 [&>input]:h-full [&>input]:w-full",null==(b=null==(g=t.slotProps)?void 0:g.baseCheckbox)?void 0:b.className),disableRipple:!0},baseIconButton:{classes:{root:vo("p-1 rounded text-delta-800 hover:bg-gama-50 active:bg-gama-100 focus:border-2 focus:border-solid focus:border-warning-500 disabled:text-delta-300",null==(w=null==(y=null==(v=t.slotProps)?void 0:v.baseIconButton)?void 0:y.classes)?void 0:w.root)},disableRipple:!0},basePopper:{className:vo("border border-solid border-delta-300 rounded shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(C=null==(x=t.slotProps)?void 0:x.basePopper)?void 0:C.className),sx:{"& .MuiList-root":{padding:"4px 0"}}},...t.slotProps}})};jR.defaultProps={disableHeaderPin:!1,disableRowActions:!1};const PR=e=>{var t;return Pe.jsx(Hh,{...e,classes:{root:vo("px-3 py-2.5",null==(t=e.classes)?void 0:t.root)}})},MR={button:"_button_2p4hz_1",contained:"_contained_2p4hz_10",common:"_common_2p4hz_10",medium:"_medium_2p4hz_40",small:"_small_2p4hz_43",large:"_large_2p4hz_46",error:"_error_2p4hz_49",outlined:"_outlined_2p4hz_88",text:"_text_2p4hz_166",textGray:"_textGray_2p4hz_244"},IR=({variant:e="contained",className:t="",size:n="medium",children:o,refLink:r,startIcon:i,endIcon:l,dataTest:a,error:s,...u})=>{const c="large"===n||"medium"===n,d=s?"error":"common";return Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("div",{style:{display:"none"},children:Pe.jsxs("button",{...u,className:vo(c?"px-2":"px-1.5",MR.button,MR[e],MR[d],MR[n],t),ref:r,"data-test":a,children:[i&&i,o&&Pe.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),l&&l]})}),Pe.jsxs("button",{...u,className:vo(c?"px-2":"px-1.5","asma-core-ui-button",e,d,n,t),ref:r,"data-test":a,children:[i&&i,o&&Pe.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),l&&l]})]})},_R=({onCloseText:e,children:t,onClose:n,dataTest:o,showCloseIcon:r=!0,...i})=>Pe.jsxs(k,{...i,"data-test":o,onClose:n,style:{zIndex:999,...i.style},children:[r&&Pe.jsx("div",{className:"mr-2 mt-2 flex justify-end",children:Pe.jsx(IR,{dataTest:`close-button-${o}`,variant:"textGray",endIcon:Pe.jsx(tl,{icon:"ic:baseline-close",className:"text-2xl"}),onClick:e=>{n&&n(e,"escapeKeyDown")},className:"text-gray-800",children:e})}),t]}),DR=e=>Pe.jsx(S,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:"p-0 m-0 justify-center"},children:Pe.jsx("div",{className:vo("flex w-full justify-end space-x-4 p-4",e.className),children:e.children})}),AR=({children:e,classes:t,className:n,...o})=>Pe.jsx(E,{...o,"data-test":"styled-dialog-content",classes:{...t,root:"p-4 mx-0 mt-0 w-full"},className:n,children:e}),FR=({children:e,...t})=>e?Pe.jsx(R,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:"space-x-3 p-4 text-xl font-semibold leading-tight"},children:e}):null,LR=e=>{var t,o,r,i,l,a,s,u,c,d,p,f,h;return Pe.jsx(T,{...e,classes:{...e.classes,root:vo("border-solid text-sm font-normal px-3 py-2",n.count(e.children)>1?"items-start":"items-center",null==(t=e.classes)?void 0:t.root),action:vo("p-0 pl-4",null==(o=e.classes)?void 0:o.action),icon:vo("text-2xl text-inherit",null==(r=e.classes)?void 0:r.icon),filled:vo("border",null==(i=e.classes)?void 0:i.filled),filledError:vo("border-error-500 bg-error-100 text-error-700",null==(l=e.classes)?void 0:l.filledError),filledInfo:vo("border-info-500 bg-info-300 text-info-700",null==(a=e.classes)?void 0:a.filledInfo),filledSuccess:vo("border-success-500 bg-success-100 text-success-700",null==(s=e.classes)?void 0:s.filledSuccess),filledWarning:vo("border-warning-500 bg-warning-100 text-warning-700",null==(u=e.classes)?void 0:u.filledWarning),outlined:vo("border-2",null==(c=e.classes)?void 0:c.outlined),outlinedError:vo("border-error-700 text-error-700",null==(d=e.classes)?void 0:d.outlinedError),outlinedInfo:vo("border-info-700 text-info-700",null==(p=e.classes)?void 0:p.outlinedInfo),outlinedSuccess:vo("border-success-700 text-success-700",null==(f=e.classes)?void 0:f.outlinedSuccess),outlinedWarning:vo("border-warning-700 text-warning-700",null==(h=e.classes)?void 0:h.outlinedWarning)},iconMapping:{...e.iconMapping,success:Pe.jsx(tl,{icon:"material-symbols:check-circle-outline",fontSize:"inherit"})}})},VR=e=>Pe.jsx(N,{...e,classes:{root:vo("mb-0.5 font-semibold text-sm",e.className)}});let $R={data:""},zR=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||$R,qR=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,HR=/\/\*[^]*?\*\/| +/g,BR=/\n+/g,UR=(e,t)=>{let n="",o="",r="";for(let i in e){let l=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+l+";":o+="f"==i[1]?UR(l,i):i+"{"+UR(l,"k"==i[1]?"":t)+"}":"object"==typeof l?o+=UR(l,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=l&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=UR.p?UR.p(i,l):i+":"+l+";")}return n+(t&&r?t+"{"+r+"}":r)+o},WR={},GR=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+GR(e[n]);return t}return e},KR=(e,t,n,o,r)=>{let i=GR(e),l=WR[i]||(WR[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!WR[l]){let t=i!==e?e:(e=>{let t,n,o=[{}];for(;t=qR.exec(e.replace(HR,""));)t[4]?o.shift():t[3]?(n=t[3].replace(BR," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(BR," ").trim();return o[0]})(e);WR[l]=UR(r?{["@keyframes "+l]:t}:t,n?"":"."+l)}let a=n&&WR.g?WR.g:null;return n&&(WR.g=WR[l]),s=WR[l],u=t,c=o,(d=a)?u.data=u.data.replace(d,s):-1===u.data.indexOf(s)&&(u.data=c?s+u.data:u.data+s),l;var s,u,c,d},YR=(e,t,n)=>e.reduce(((e,o,r)=>{let i=t[r];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":UR(e,""):!1===e?"":e}return e+o+(i??"")}),"");function ZR(e){let t=this||{},n=e.call?e(t.p):e;return KR(n.unshift?n.raw?YR(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,zR(t.target),t.g,t.o,t.k)}function XR(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function QR(e,t,n){return t&&XR(e.prototype,t),n&&XR(e,n),e}function JR(){return JR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},JR.apply(this,arguments)}function eT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function tT(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function nT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}ZR.bind({g:1}),ZR.bind({k:1});var oT=function(){return""},rT=t.createContext({enqueueSnackbar:oT,closeSnackbar:oT}),iT="@media (max-width:599.95px)",lT="@media (min-width:600px)",aT=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},sT=function(e){return""+aT(e.vertical)+aT(e.horizontal)},uT=function(e){return!!e||0===e},cT="unmounted",dT="exited",pT="entering",fT="entered",hT="exiting",mT=function(e){function t(t){var n;n=e.call(this,t)||this;var o,r=t.appear;return n.appearStatus=null,t.in?r?(o=dT,n.appearStatus=pT):o=fT:o=t.unmountOnExit||t.mountOnEnter?cT:dT,n.state={status:o},n.nextCallback=null,n}eT(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===cT?{status:dT}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==pT&&n!==fT&&(t=pT):(n===pT||n===fT)&&(t=hT)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===pT?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===dT&&this.setState({status:cT})},n.performEnter=function(e){var t=this,n=this.props.enter,o=e,r=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:pT},(function(){t.props.onEntering&&t.props.onEntering(t.node,o),t.onTransitionEnd(r.enter,(function(){t.safeSetState({status:fT},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))}))}))):this.safeSetState({status:fT},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:hT},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:dT},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:dT},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===cT)return null;var t=this.props;return(0,t.children)(e,tT(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},QR(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(t.Component);function gT(){}function bT(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function vT(e,t){return p((function(){return null==e&&null==t?null:function(n){bT(e,n),bT(t,n)}}),[e,t])}function yT(e){var t=e.timeout,n=e.style,o=void 0===n?{}:n,r=e.mode;return{duration:"object"==typeof t?t[r]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}mT.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gT,onEntering:gT,onEntered:gT,onExit:gT,onExiting:gT,onExited:gT};var wT="cubic-bezier(0.4, 0, 0.2, 1)",xT="cubic-bezier(0.0, 0, 0.2, 1)",CT="cubic-bezier(0.4, 0, 0.6, 1)",OT=function(e){e.scrollTop=e.scrollTop},kT=function(e){return Math.round(e)+"ms"};function ST(e,t){void 0===e&&(e=["all"]);var n=t||{},o=n.duration,r=void 0===o?300:o,i=n.easing,l=void 0===i?wT:i,a=n.delay,s=void 0===a?0:a;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof r?r:kT(r),n="string"==typeof s?s:kT(s);return e+" "+t+" "+l+" "+n})).join(",")}function ET(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function RT(e,t){if(t){var n=function(e,t){var n,o=t.getBoundingClientRect(),r=ET(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=r.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var l=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");l=parseInt(s[4],10),a=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+l-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-l)+"px)";case"up":return"translateY("+(r.innerHeight+a-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-a)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var TT=a((function(e,t){var n=e.children,o=e.direction,l=void 0===o?"down":o,a=e.in,d=e.style,p=e.timeout,f=void 0===p?0:p,h=e.onEnter,m=e.onEntered,g=e.onExit,b=e.onExited,v=tT(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=s(null),w=vT(n.ref,y),x=vT(w,t),C=u((function(){y.current&&RT(l,y.current)}),[l]);return c((function(){if(!a&&"down"!==l&&"right"!==l){var e=function(e,t){var n;function o(){for(var o=this,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];clearTimeout(n),n=setTimeout((function(){e.apply(o,i)}),t)}return void 0===t&&(t=166),o.clear=function(){clearTimeout(n)},o}((function(){y.current&&RT(l,y.current)})),t=ET(y.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[l,a]),c((function(){a||C()}),[a,C]),i(mT,Object.assign({appear:!0,nodeRef:y,onEnter:function(e,t){RT(l,e),OT(e),h&&h(e,t)},onEntered:m,onEntering:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||xT,n=yT({timeout:f,mode:"enter",style:JR({},d,{transitionTimingFunction:t})});e.style.webkitTransition=ST("-webkit-transform",n),e.style.transition=ST("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||CT,n=yT({timeout:f,mode:"exit",style:JR({},d,{transitionTimingFunction:t})});e.style.webkitTransition=ST("-webkit-transform",n),e.style.transition=ST("transform",n),RT(l,e),g&&g(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",b&&b(e)},in:a,timeout:f},v),(function(e,t){return r(n,JR({ref:x,style:JR({visibility:"exited"!==e||a?void 0:"hidden"},d,{},n.props.style)},t))}))}));TT.displayName="Slide";var NT=function(e){return t.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},jT=function(){return t.createElement(NT,null,t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},PT=function(){return t.createElement(NT,null,t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},MT=function(){return t.createElement(NT,null,t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},IT=function(){return t.createElement(NT,null,t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},_T={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:t.createElement(jT,null),warning:t.createElement(PT,null),error:t.createElement(MT,null),info:t.createElement(IT,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:TT,transitionDuration:{enter:225,exit:195}},DT=function(e,t){return function(n,o){return void 0===o&&(o=!1),o?JR({},_T[n],{},t[n],{},e[n]):"autoHideDuration"===n?function(e,t){var n=function(e){return"number"==typeof e||null===e};return n(e)?e:n(t)?t:_T.autoHideDuration}(e.autoHideDuration,t.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some((function(t){return typeof e===t}))};return n(e,["string","number"])?e:n(e,["object"])?JR({},_T.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?JR({},_T.transitionDuration,{},t):_T.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||_T[n]}};function AT(e){return Object.entries(e).reduce((function(e,t){var n,o=t[0],r=t[1];return JR({},e,((n={})[o]=ZR(r),n))}),{})}var FT="notistack-SnackbarContainer",LT="notistack-Snackbar",VT="notistack-CollapseWrapper",$T="notistack-MuiContent",zT=function(e){return"notistack-MuiContent-"+e},qT=AT({root:{height:0},entered:{height:"auto"}}),HT="0px",BT=a((function(e,t){var n=e.children,o=e.in,r=e.onExited,l=s(null),a=s(null),u=vT(t,a),c=function(){return l.current?l.current.clientHeight:0};return i(mT,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=HT},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=c(),n=yT({timeout:175,mode:"enter"}),o=n.duration,r=n.easing;e.style.transitionDuration="string"==typeof o?o:o+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=r||""},onExit:function(e){e.style.height=c()+"px"},onExited:r,onExiting:function(e){OT(e);var t=yT({timeout:175,mode:"exit"}),n=t.duration,o=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=HT,e.style.transitionTimingFunction=o||""},nodeRef:a,timeout:175},(function(e,t){return i("div",Object.assign({ref:u,className:vo(qT.root,"entered"===e&&qT.entered),style:JR({pointerEvents:"all",overflow:"hidden",minHeight:HT,transition:ST("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!o&&{visibility:"hidden"})},t),i("div",{ref:l,className:VT,style:{display:"flex",width:"100%"}},n))}))}));BT.displayName="Collapse";var UT={right:"left",left:"right",bottom:"up",top:"down"},WT=function(e){return"center"!==e.horizontal?UT[e.horizontal]:UT[e.vertical]},GT=function(e){return"anchorOrigin"+sT(e)},KT=function(){};function YT(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var l=[].concat(r);t&&-1===l.indexOf(t)&&l.push(t),e.apply(this,l),n.apply(this,l)}}),KT)}var ZT=typeof window<"u"?h:c;function XT(e){var t=s(e);return ZT((function(){t.current=e})),u((function(){return t.current.apply(void 0,arguments)}),[])}var QT=a((function(e,t){var n=e.children,o=e.className,r=e.autoHideDuration,l=e.disableWindowBlurListener,a=void 0!==l&&l,d=e.onClose,p=e.id,f=e.open,h=e.SnackbarProps,m=void 0===h?{}:h,g=s(),b=XT((function(){d&&d.apply(void 0,arguments)})),v=XT((function(e){!d||null==e||(g.current&&clearTimeout(g.current),g.current=setTimeout((function(){b(null,"timeout",p)}),e))}));c((function(){return f&&v(r),function(){g.current&&clearTimeout(g.current)}}),[f,r,v]);var y=function(){g.current&&clearTimeout(g.current)},w=u((function(){null!=r&&v(.5*r)}),[r,v]);return c((function(){if(!a&&f)return window.addEventListener("focus",w),window.addEventListener("blur",y),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",y)}}),[a,w,f]),i("div",Object.assign({ref:t},m,{className:vo(LT,o),onMouseEnter:function(e){m.onMouseEnter&&m.onMouseEnter(e),y()},onMouseLeave:function(e){m.onMouseLeave&&m.onMouseLeave(e),w()}}),n)}));QT.displayName="Snackbar";var JT,eN=AT({root:(JT={display:"flex",flexWrap:"wrap",flexGrow:1},JT[lT]={flexGrow:"initial",minWidth:"288px"},JT)}),tN=a((function(e,n){var o=e.className,r=tT(e,["className"]);return t.createElement("div",Object.assign({ref:n,className:vo(eN.root,o)},r))}));tN.displayName="SnackbarContent";var nN=AT({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),oN="notistack-snackbar",rN=a((function(e,n){var o=e.id,r=e.message,i=e.action,l=e.iconVariant,a=e.variant,s=e.hideIconVariant,u=e.style,c=e.className,d=l[a],p=i;return"function"==typeof p&&(p=p(o)),t.createElement(tN,{ref:n,role:"alert","aria-describedby":oN,style:u,className:vo($T,zT(a),nN.root,nN[a],c,!s&&d&&nN.lessPadding)},t.createElement("div",{id:oN,className:nN.message},s?null:d,r),p&&t.createElement("div",{className:nN.action},p))}));rN.displayName="MaterialDesignContent";var iN,lN,aN,sN,uN,cN,dN,pN=m(rN),fN=AT({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),hN=function(e){var n=s(),o=l(!0),r=o[0],i=o[1],a=YT([e.snack.onClose,e.onClose]),d=u((function(){n.current=setTimeout((function(){i((function(e){return!e}))}),125)}),[]);c((function(){return function(){n.current&&clearTimeout(n.current)}}),[]);var f=e.snack,h=e.classes,m=e.Component,g=void 0===m?pN:m,b=p((function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter((function(e){return!t[e]})).reduce((function(t,n){var o;return JR({},t,((o={})[n]=e[n],o))}),{})}(h)}),[h]),v=f.open,y=f.SnackbarProps,w=f.TransitionComponent,x=f.TransitionProps,C=f.transitionDuration,O=f.disableWindowBlurListener,k=f.content,S=tT(f,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),E=JR({direction:WT(S.anchorOrigin),timeout:C},x),R=k;"function"==typeof R&&(R=R(S.id,S.message));var T=["onEnter","onEntered","onExit","onExited"].reduce((function(t,n){var o;return JR({},t,((o={})[n]=YT([e.snack[n],e[n]],S.id),o))}),{});return t.createElement(BT,{in:r,onExited:T.onExited},t.createElement(QT,{open:v,id:S.id,disableWindowBlurListener:O,autoHideDuration:S.autoHideDuration,className:vo(fN.wrappedRoot,b.root,b[GT(S.anchorOrigin)]),SnackbarProps:y,onClose:a},t.createElement(w,Object.assign({},E,{appear:!0,in:v,onExit:T.onExit,onExited:d,onEnter:T.onEnter,onEntered:YT([T.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],S.id)}),R||t.createElement(g,Object.assign({},S)))))},mN={default:20,dense:4},gN={default:6,dense:2},bN="."+VT,vN=AT({root:(iN={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:ST(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},iN[bN]={padding:gN.default+"px 0px",transition:"padding 300ms ease 0ms"},iN.maxWidth="calc(100% - "+2*mN.default+"px)",iN[iT]={width:"100%",maxWidth:"calc(100% - 32px)"},iN),rootDense:(lN={},lN[bN]={padding:gN.dense+"px 0px"},lN),top:{top:mN.default-gN.default+"px",flexDirection:"column"},bottom:{bottom:mN.default-gN.default+"px",flexDirection:"column-reverse"},left:(aN={left:mN.default+"px"},aN[lT]={alignItems:"flex-start"},aN[iT]={left:"16px"},aN),right:(sN={right:mN.default+"px"},sN[lT]={alignItems:"flex-end"},sN[iT]={right:"16px"},sN),center:(uN={left:"50%",transform:"translateX(-50%)"},uN[lT]={alignItems:"center"},uN)}),yN=function(e){var n=e.classes,o=void 0===n?{}:n,r=e.anchorOrigin,i=e.dense,l=e.children,a=vo(FT,vN[r.vertical],vN[r.horizontal],vN.root,o.containerRoot,o["containerAnchorOrigin"+sT(r)],i&&vN.rootDense);return t.createElement("div",{className:a},l)},wN=m(yN),xN="production"!==process.env.NODE_ENV,CN={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},ON=function(e){return!("string"==typeof e||o(e))},kN=function(e){function n(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var o=ON(e)?e:t,r=ON(e)?e.message:e,i=o.key,l=o.preventDuplicate,a=tT(o,["key","preventDuplicate"]),s=uT(i),u=s?i:(new Date).getTime()+Math.random(),c=DT(a,n.props),d=JR({id:u},a,{message:r,open:!0,entered:!1,requestClose:!1,persist:c("persist"),action:c("action"),content:c("content"),variant:c("variant"),anchorOrigin:c("anchorOrigin"),disableWindowBlurListener:c("disableWindowBlurListener"),autoHideDuration:c("autoHideDuration"),hideIconVariant:c("hideIconVariant"),TransitionComponent:c("TransitionComponent"),transitionDuration:c("transitionDuration"),TransitionProps:c("TransitionProps",!0),iconVariant:c("iconVariant",!0),style:c("style",!0),SnackbarProps:c("SnackbarProps",!0),className:vo(n.props.className,a.className)});return d.persist&&(d.autoHideDuration=void 0),n.setState((function(e){if(void 0===l&&n.props.preventDuplicate||l){var t=function(e){return s?e.id===u:e.message===r},o=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(o||i)return e}return n.handleDisplaySnack(JR({},e,{queue:[].concat(e.queue,[d])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?JR({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,o=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&("production"!==process.env.NODE_ENV&&function(e){if(xN){var t=CN[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}("NO_PERSIST_ALL"),o=!0);var r=e.snacks.map((function(e){return t||e.persist&&!o?JR({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),JR({},e,{open:!1})):JR({},e,{requestClose:!0}))}));return JR({},e,{snacks:r})},n.handleEnteredSnack=function(e,t,o){if(!uT(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===o?JR({},e,{entered:!0}):JR({},e)}))}}))},n.handleCloseSnack=function(e,t,o){n.props.onClose&&n.props.onClose(e,t,o);var r=void 0===o;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return r||e.id===o?e.entered?JR({},e,{open:!1}):JR({},e,{requestClose:!0}):JR({},e)})),queue:n.filter((function(e){return e.id!==o}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));uT(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!uT(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var o=n.processQueue(JR({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===o.queue.length?o:n.handleDismissOldest(o)}))},cN=n.enqueueSnackbar,dN=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(nT(n)),closeSnackbar:n.closeSnackbar.bind(nT(n))}},n}return eT(n,e),n.prototype.render=function(){var e=this,n=this.state.contextValue,o=this.props,r=o.domRoot,i=o.children,l=o.dense,a=void 0!==l&&l,s=o.Components,u=void 0===s?{}:s,c=o.classes,d=this.state.snacks.reduce((function(e,t){var n,o=sT(t.anchorOrigin),r=e[o]||[];return JR({},e,((n={})[o]=[].concat(r,[t]),n))}),{}),p=Object.keys(d).map((function(n){var o=d[n],r=o[0];return t.createElement(wN,{key:n,dense:a,anchorOrigin:r.anchorOrigin,classes:c},o.map((function(n){return t.createElement(hN,{key:n.id,snack:n,classes:c,Component:u[n.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:YT([e.handleExitedSnack,e.props.onExited],n.id),onEntered:YT([e.handleEnteredSnack,e.props.onEntered],n.id)})})))}));return t.createElement(rT.Provider,{value:n},i,r?ye(p,r):p)},QR(n,[{key:"maxSnack",get:function(){return this.props.maxSnack||_T.maxSnack}}]),n}(f),SN=function(){return d(rT)};const EN=a(((e,t)=>{const{id:n,message:o,severity:r,alertClassName:i,alertVariant:l,closeButton:a,...s}=xe(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:u}=SN();return Pe.jsx(tN,{ref:t,role:"alert",...s,children:Pe.jsx(LR,{className:i,severity:r,variant:l,onClose:a?()=>u(n):void 0,children:o})})})),RN=a(((e,t)=>{const{id:n,message:o,closeButton:r,type:i,...l}=xe(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:a}=SN(),s="loading"===i;return Pe.jsx(tN,{ref:t,role:"alert",...l,children:Pe.jsxs("div",{className:vo("flex items-center justify-center w-full",s&&"pl-6",r&&"pr-6"),children:["loading"===i?Pe.jsx(Al,{width:20,height:20,className:"left-2 absolute top-1/2 -translate-y-1/2"}):null,Pe.jsx("div",{children:o}),r?Pe.jsx(Bl,{onClick:()=>a(n),width:20,height:20,className:"right-2 absolute top-1/2 -translate-y-1/2"}):null]})})})),TN=e=>Pe.jsx(kN,{...e,Components:{alert:EN,info:RN},autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"},domRoot:document.body,maxSnack:3,classes:{root:"min-w-fit"},className:"w-fit min-w-fit max-w-fit ",children:e.children}),NN=({children:e,...t})=>Pe.jsx(j,{autoHideDuration:t.autoHideDuration??3e3,...t,children:e&&Pe.jsx("div",{children:e})});function jN(e){cN({message:e,variant:"alert",severity:"error",alertClassName:"min-w-[350px] max-w-[350px]",alertVariant:"filled",closeButton:!0,autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"}})}function PN(e){cN({variant:"alert",message:e,severity:"success",alertClassName:"min-w-[350px] bg-theta-700 flex w-full text-center justify-center items-center !text-[color:var(--colors-link-text-standart)]",alertVariant:"filled",autoHideDuration:6e3,closeButton:!0,anchorOrigin:{vertical:"top",horizontal:"right"}})}function MN(e,t){return cN({variant:"info",message:e,autoHideDuration:6e3,className:"bg-gama-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>dN(null==t?void 0:t.id)}const IN={info:(e,t)=>MN(e,t),error:(e,t)=>function(e,t){return cN({variant:"info",message:e,autoHideDuration:6e3,className:"bg-red-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>dN(null==t?void 0:t.id)}(e,t),loading:(e,t)=>MN(e,{...t,type:"loading"})},_N=({dataTest:e,...t})=>Pe.jsx(P,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),DN={input:"_input_sj64y_1",active:"_active_sj64y_1",large:"_large_sj64y_40",small:"_small_sj64y_43",error:"_error_sj64y_46",disabled:"_disabled_sj64y_91",readOnly:"_readOnly_sj64y_136",notEditable:"_notEditable_sj64y_181",label:"_label_sj64y_227",description:"_description_sj64y_248",startIcon:"_startIcon_sj64y_269",endIcon:"_endIcon_sj64y_290"},AN=({description:e,error:t=!1,label:n,refLink:o,startIcon:r,endIcon:i,type:l,readOnly:a,notEditable:s,dataTest:u,size:c="large",className:d,...p})=>{const f=s?"text":l||"text",h="small"===c?DN.small:"",m=t?"error":p.disabled?"disabled":a?"readOnly":s?"notEditable":"active";return Pe.jsxs("div",{className:vo("relative",d),children:[Pe.jsx("label",{htmlFor:"custom-input",className:`${DN.label} ${DN[m]}`,children:n}),Pe.jsx("span",{className:` ${DN.startIcon} ${DN[m]} ${"readOnly"===m?"left-0":""}`,children:r}),Pe.jsx("input",{...p,ref:o,type:f,className:vo(DN.input,DN[m],h,"readOnly"===m&&r&&"pl-8","readOnly"===m&&i&&"pr-8",r&&"pl-12",i&&"pr-12",d),readOnly:s||a,"data-test":u}),Pe.jsx("span",{className:`${DN.endIcon} ${DN[m]} ${"readOnly"===m?"right-0":""}`,children:i}),Pe.jsx("div",{className:`${DN.description} ${DN[m]}`,children:e})]})},FN=({allowClear:e,onClear:t,readOnly:n,disabled:o,dataTest:r,...i})=>Pe.jsx(M,{...i,"data-test":r,disabled:o||n,type:i.type||"mui-input",InputProps:e&&i.value?{endAdornment:Pe.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:Pe.jsx(Bl,{width:18,height:18})})}:i.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused.Mui-error fieldset":{borderColor:"#d3302f !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.Mui-error":{color:"#d3302f !important"},"& label.Mui-disabled":{color:"var(--colors-delta-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"#666666",opacity:"100"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"}},...i.sx}}),LN={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},VN=({id:e,variant:t="active",label:n="",labelClassName:o="",description:r="",value:i="",minRows:a=3,maxRows:u=1/0,disabled:d,error:p,errorMessage:f,containerClassName:m="",className:g="",maxLength:b=1/0,counter:v,refLink:y,dataTest:w,counterLimit:x,...C})=>{const O=s(null),k=y||O,S=!(!v||!x),[E,R]=l(!1);c((()=>{R(!0)}),[]),((e,t,n,o,r,i)=>{h((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,r=e.scrollHeight-24;Math.ceil(r/n)>o?e.style.height=`${n*o+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,o,r,i])})(k.current,i,a,u,E,S),u<a&&(a=u);const[T,N]=l(i.length);c((()=>{N(i.length)}),[i]);const j=p?"error":"active",P=p?"error":d?"disabled":"active";return Pe.jsxs("div",{className:`flex flex-col gap-1 relative ${m}`,"data-test":w,children:[Pe.jsx("label",{htmlFor:e,className:`${LN.label} ${LN[P]} ${o}`,children:n}),Pe.jsx("span",{className:`${LN.description} ${LN[P]}`,children:p?f:r}),"view_only"===t?Pe.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:i}):"not_editable"===t?Pe.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:i}):Pe.jsx("textarea",{...C,id:e,ref:k,className:`${LN.textarea} ${LN[j]} ${g} ${S?"pb-[32px]":""}`,wrap:"soft",value:i,disabled:d,maxLength:b}),S&&Pe.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[T,"/",x]})]})};var $N=function(){this.__data__=[],this.size=0};var zN=function(e,t){return e===t||e!=e&&t!=t},qN=zN;var HN=function(e,t){for(var n=e.length;n--;)if(qN(e[n][0],t))return n;return-1},BN=HN,UN=Array.prototype.splice;var WN=function(e){var t=this.__data__,n=BN(t,e);return!(n<0)&&(n==t.length-1?t.pop():UN.call(t,n,1),--this.size,!0)},GN=HN;var KN=function(e){var t=this.__data__,n=GN(t,e);return n<0?void 0:t[n][1]},YN=HN;var ZN=function(e){return YN(this.__data__,e)>-1},XN=HN;var QN=function(e,t){var n=this.__data__,o=XN(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},JN=$N,ej=WN,tj=KN,nj=ZN,oj=QN;function rj(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}rj.prototype.clear=JN,rj.prototype.delete=ej,rj.prototype.get=tj,rj.prototype.has=nj,rj.prototype.set=oj;var ij=rj,lj=ij;var aj=function(){this.__data__=new lj,this.size=0};var sj=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var uj=function(e){return this.__data__.get(e)};var cj=function(e){return this.__data__.has(e)},dj="object"==typeof ke&&ke&&ke.Object===Object&&ke,pj=dj,fj="object"==typeof self&&self&&self.Object===Object&&self,hj=pj||fj||Function("return this")(),mj=hj.Symbol,gj=mj,bj=Object.prototype,vj=bj.hasOwnProperty,yj=bj.toString,wj=gj?gj.toStringTag:void 0;var xj=function(e){var t=vj.call(e,wj),n=e[wj];try{e[wj]=void 0;var o=!0}catch{}var r=yj.call(e);return o&&(t?e[wj]=n:delete e[wj]),r},Cj=Object.prototype.toString;var Oj=function(e){return Cj.call(e)},kj=xj,Sj=Oj,Ej=mj?mj.toStringTag:void 0;var Rj=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ej&&Ej in Object(e)?kj(e):Sj(e)};var Tj=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Nj=Rj,jj=Tj;var Pj=function(e){if(!jj(e))return!1;var t=Nj(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Mj=hj["__core-js_shared__"],Ij=function(){var e=/[^.]+$/.exec(Mj&&Mj.keys&&Mj.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var _j=function(e){return!!Ij&&Ij in e},Dj=Function.prototype.toString;var Aj=function(e){if(null!=e){try{return Dj.call(e)}catch{}try{return e+""}catch{}}return""},Fj=Pj,Lj=_j,Vj=Tj,$j=Aj,zj=/^\[object .+?Constructor\]$/,qj=Function.prototype,Hj=Object.prototype,Bj=qj.toString,Uj=Hj.hasOwnProperty,Wj=RegExp("^"+Bj.call(Uj).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Gj=function(e){return!(!Vj(e)||Lj(e))&&(Fj(e)?Wj:zj).test($j(e))};var Kj=function(e,t){return null==e?void 0:e[t]},Yj=Gj,Zj=Kj;var Xj=function(e,t){var n=Zj(e,t);return Yj(n)?n:void 0},Qj=Xj(hj,"Map"),Jj=Xj(Object,"create"),eP=Jj;var tP=function(){this.__data__=eP?eP(null):{},this.size=0};var nP=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},oP=Jj,rP=Object.prototype.hasOwnProperty;var iP=function(e){var t=this.__data__;if(oP){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return rP.call(t,e)?t[e]:void 0},lP=Jj,aP=Object.prototype.hasOwnProperty;var sP=function(e){var t=this.__data__;return lP?void 0!==t[e]:aP.call(t,e)},uP=Jj;var cP=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uP&&void 0===t?"__lodash_hash_undefined__":t,this},dP=tP,pP=nP,fP=iP,hP=sP,mP=cP;function gP(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}gP.prototype.clear=dP,gP.prototype.delete=pP,gP.prototype.get=fP,gP.prototype.has=hP,gP.prototype.set=mP;var bP=gP,vP=ij,yP=Qj;var wP=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},xP=wP;var CP=function(e,t){var n=e.__data__;return xP(t)?n["string"==typeof t?"string":"hash"]:n.map},OP=CP;var kP=function(e){var t=OP(this,e).delete(e);return this.size-=t?1:0,t},SP=CP;var EP=function(e){return SP(this,e).get(e)},RP=CP;var TP=function(e){return RP(this,e).has(e)},NP=CP;var jP=function(e,t){var n=NP(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},PP=function(){this.size=0,this.__data__={hash:new bP,map:new(yP||vP),string:new bP}},MP=kP,IP=EP,_P=TP,DP=jP;function AP(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}AP.prototype.clear=PP,AP.prototype.delete=MP,AP.prototype.get=IP,AP.prototype.has=_P,AP.prototype.set=DP;var FP=AP,LP=ij,VP=Qj,$P=FP;var zP=function(e,t){var n=this.__data__;if(n instanceof LP){var o=n.__data__;if(!VP||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new $P(o)}return n.set(e,t),this.size=n.size,this},qP=ij,HP=aj,BP=sj,UP=uj,WP=cj,GP=zP;function KP(e){var t=this.__data__=new qP(e);this.size=t.size}KP.prototype.clear=HP,KP.prototype.delete=BP,KP.prototype.get=UP,KP.prototype.has=WP,KP.prototype.set=GP;var YP=KP;var ZP=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var XP=function(e){return this.__data__.has(e)},QP=FP,JP=ZP,eM=XP;function tM(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new QP;++t<n;)this.add(e[t])}tM.prototype.add=tM.prototype.push=JP,tM.prototype.has=eM;var nM=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var oM=function(e,t){return e.has(t)},rM=tM,iM=nM,lM=oM;var aM=function(e,t,n,o,r,i){var l=1&n,a=e.length,s=t.length;if(a!=s&&!(l&&s>a))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new rM:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var h=e[d],m=t[d];if(o)var g=l?o(m,h,d,t,e,i):o(h,m,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!iM(t,(function(e,t){if(!lM(f,t)&&(h===e||r(h,e,n,o,i)))return f.push(t)}))){p=!1;break}}else if(h!==m&&!r(h,m,n,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p};var sM=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var uM=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},cM=hj.Uint8Array,dM=zN,pM=aM,fM=sM,hM=uM,mM=mj?mj.prototype:void 0,gM=mM?mM.valueOf:void 0;var bM=function(e,t,n,o,r,i,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new cM(e),new cM(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return dM(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=fM;case"[object Set]":var s=1&o;if(a||(a=hM),e.size!=t.size&&!s)return!1;var u=l.get(e);if(u)return u==t;o|=2,l.set(e,t);var c=pM(a(e),a(t),o,r,i,l);return l.delete(e),c;case"[object Symbol]":if(gM)return gM.call(e)==gM.call(t)}return!1};var vM=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},yM=Array.isArray,wM=vM,xM=yM;var CM=function(e,t,n){var o=t(e);return xM(e)?o:wM(o,n(e))};var OM=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var l=e[n];t(l,n,e)&&(i[r++]=l)}return i};var kM=OM,SM=function(){return[]},EM=Object.prototype.propertyIsEnumerable,RM=Object.getOwnPropertySymbols,TM=RM?function(e){return null==e?[]:(e=Object(e),kM(RM(e),(function(t){return EM.call(e,t)})))}:SM,NM=TM;var jM=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};var PM=function(e){return null!=e&&"object"==typeof e},MM=Rj,IM=PM;var _M=function(e){return IM(e)&&"[object Arguments]"==MM(e)},DM=_M,AM=PM,FM=Object.prototype,LM=FM.hasOwnProperty,VM=FM.propertyIsEnumerable,$M=DM(function(){return arguments}())?DM:function(e){return AM(e)&&LM.call(e,"callee")&&!VM.call(e,"callee")},zM=$M,qM={exports:{}};var HM=function(){return!1};!function(e,t){var n=hj,o=HM,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,l=i&&i.exports===r?n.Buffer:void 0,a=(l?l.isBuffer:void 0)||o;e.exports=a}(qM,qM.exports);var BM=qM.exports,UM=/^(?:0|[1-9]\d*)$/;var WM=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&UM.test(e))&&e>-1&&e%1==0&&e<t};var GM=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},KM=Rj,YM=GM,ZM=PM,XM={};XM["[object Float32Array]"]=XM["[object Float64Array]"]=XM["[object Int8Array]"]=XM["[object Int16Array]"]=XM["[object Int32Array]"]=XM["[object Uint8Array]"]=XM["[object Uint8ClampedArray]"]=XM["[object Uint16Array]"]=XM["[object Uint32Array]"]=!0,XM["[object Arguments]"]=XM["[object Array]"]=XM["[object ArrayBuffer]"]=XM["[object Boolean]"]=XM["[object DataView]"]=XM["[object Date]"]=XM["[object Error]"]=XM["[object Function]"]=XM["[object Map]"]=XM["[object Number]"]=XM["[object Object]"]=XM["[object RegExp]"]=XM["[object Set]"]=XM["[object String]"]=XM["[object WeakMap]"]=!1;var QM=function(e){return ZM(e)&&YM(e.length)&&!!XM[KM(e)]};var JM=function(e){return function(t){return e(t)}},eI={exports:{}};!function(e,t){var n=dj,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,l=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l}(eI,eI.exports);var tI=eI.exports,nI=QM,oI=JM,rI=tI&&tI.isTypedArray,iI=rI?oI(rI):nI,lI=jM,aI=zM,sI=yM,uI=BM,cI=WM,dI=iI,pI=Object.prototype.hasOwnProperty;var fI=function(e,t){var n=sI(e),o=!n&&aI(e),r=!n&&!o&&uI(e),i=!n&&!o&&!r&&dI(e),l=n||o||r||i,a=l?lI(e.length,String):[],s=a.length;for(var u in e)(t||pI.call(e,u))&&(!l||!("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||cI(u,s)))&&a.push(u);return a},hI=Object.prototype;var mI=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||hI)};var gI=function(e,t){return function(n){return e(t(n))}},bI=gI(Object.keys,Object),vI=mI,yI=bI,wI=Object.prototype.hasOwnProperty;var xI=function(e){if(!vI(e))return yI(e);var t=[];for(var n in Object(e))wI.call(e,n)&&"constructor"!=n&&t.push(n);return t},CI=Pj,OI=GM;var kI=function(e){return null!=e&&OI(e.length)&&!CI(e)},SI=fI,EI=xI,RI=kI;var TI=function(e){return RI(e)?SI(e):EI(e)},NI=CM,jI=NM,PI=TI;var MI=function(e){return NI(e,PI,jI)},II=MI,_I=Object.prototype.hasOwnProperty;var DI=function(e,t,n,o,r,i){var l=1&n,a=II(e),s=a.length;if(s!=II(t).length&&!l)return!1;for(var u=s;u--;){var c=a[u];if(!(l?c in t:_I.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=l;++u<s;){var m=e[c=a[u]],g=t[c];if(o)var b=l?o(g,m,c,t,e,i):o(m,g,c,e,t,i);if(!(void 0===b?m===g||r(m,g,n,o,i):b)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var v=e.constructor,y=t.constructor;v!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y)&&(f=!1)}return i.delete(e),i.delete(t),f},AI=Xj(hj,"DataView"),FI=Qj,LI=Xj(hj,"Promise"),VI=Xj(hj,"Set"),$I=Xj(hj,"WeakMap"),zI=Rj,qI=Aj,HI="[object Map]",BI="[object Promise]",UI="[object Set]",WI="[object WeakMap]",GI="[object DataView]",KI=qI(AI),YI=qI(FI),ZI=qI(LI),XI=qI(VI),QI=qI($I),JI=zI;(AI&&JI(new AI(new ArrayBuffer(1)))!=GI||FI&&JI(new FI)!=HI||LI&&JI(LI.resolve())!=BI||VI&&JI(new VI)!=UI||$I&&JI(new $I)!=WI)&&(JI=function(e){var t=zI(e),n="[object Object]"==t?e.constructor:void 0,o=n?qI(n):"";if(o)switch(o){case KI:return GI;case YI:return HI;case ZI:return BI;case XI:return UI;case QI:return WI}return t});var e_=YP,t_=aM,n_=bM,o_=DI,r_=JI,i_=yM,l_=BM,a_=iI,s_="[object Arguments]",u_="[object Array]",c_="[object Object]",d_=Object.prototype.hasOwnProperty;var p_=function(e,t,n,o,r,i){var l=i_(e),a=i_(t),s=l?u_:r_(e),u=a?u_:r_(t),c=(s=s==s_?c_:s)==c_,d=(u=u==s_?c_:u)==c_,p=s==u;if(p&&l_(e)){if(!l_(t))return!1;l=!0,c=!1}if(p&&!c)return i||(i=new e_),l||a_(e)?t_(e,t,n,o,r,i):n_(e,t,s,n,o,r,i);if(!(1&n)){var f=c&&d_.call(e,"__wrapped__"),h=d&&d_.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,g=h?t.value():t;return i||(i=new e_),r(m,g,n,o,i)}}return!!p&&(i||(i=new e_),o_(e,t,n,o,r,i))},f_=p_,h_=PM;var m_=function e(t,n,o,r,i){return t===n||(null==t||null==n||!h_(t)&&!h_(n)?t!=t&&n!=n:f_(t,n,o,r,e,i))},g_=m_;var b_=function(e,t){return g_(e,t)},v_={exports:{}};
|
|
19
|
+
*/"production"===process.env.NODE_ENV?_e.exports=function(){if(xe)return ke;xe=1;var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,o){var l,s={},u=null,c=null;for(l in void 0!==o&&(u=""+o),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)r.call(t,l)&&!a.hasOwnProperty(l)&&(s[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===s[l]&&(s[l]=t[l]);return{$$typeof:n,type:e,key:u,ref:c,props:s,_owner:i.current}}return ke.Fragment=o,ke.jsx=l,ke.jsxs=l,ke}():_e.exports=(Ee||(Ee=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];!function(e,t,n){var o=v.ReactDebugCurrentFrame,r=o.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var b,w=!1,x=!1,_=!1,k=!1,E=!1;function C(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return C(e)+".Consumer";case l:return C(e._context)+".Provider";case u:return function(e,t,n){var o=e.displayName;if(o)return o;var r=t.displayName||t.name||"";return""!==r?n+"("+r+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case p:var n=e,h=n._payload,g=n._init;try{return O(g(h))}catch{return null}}return null}b=Symbol.for("react.module.reference");var S,N,j,T,P,M,A,R=Object.assign,I=0;function D(){}D.__reactDisabledLog=!0;var L,q=v.ReactCurrentDispatcher;function F(e,t,n){if(void 0===L)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return"\n"+L+e}var z,V=!1,B="function"==typeof WeakMap?WeakMap:Map;function H(e,t){if(!e||V)return"";var n,o=z.get(e);if(void 0!==o)return o;V=!0;var r,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=q.current,q.current=null,function(){if(0===I){S=console.log,N=console.info,j=console.warn,T=console.error,P=console.group,M=console.groupCollapsed,A=console.groupEnd;var e={configurable:!0,enumerable:!0,value:D,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),s=n.stack.split("\n"),u=l.length-1,c=s.length-1;u>=1&&c>=0&&l[u]!==s[c];)c--;for(;u>=1&&c>=0;u--,c--)if(l[u]!==s[c]){if(1!==u||1!==c)do{if(u--,--c<0||l[u]!==s[c]){var d="\n"+l[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&z.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{V=!1,q.current=r,function(){if(0==--I){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:S}),info:R({},e,{value:N}),warn:R({},e,{value:j}),error:R({},e,{value:T}),group:R({},e,{value:P}),groupCollapsed:R({},e,{value:M}),groupEnd:R({},e,{value:A})})}I<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?F(f):"";return"function"==typeof e&&z.set(e,p),p}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return H(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return F(e);switch(e){case c:return F("Suspense");case d:return F("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return function(e,t,n){return H(e,!1)}(e.render);case f:return U(e.type,t,n);case p:var o=e,r=o._payload,i=o._init;try{return U(i(r),t,n)}catch{}}return""}z=new B;var W=Object.prototype.hasOwnProperty,$={},G=v.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var Y=Array.isArray;function Z(e){return Y(e)}function X(e){return""+e}function Q(e){if(function(e){try{return X(e),!1}catch{return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var J,ee,te,ne=v.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};te={};var re=function(e,t,o,r,i,a,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ie(e,t,n,o,r){var i,a={},l=null,s=null;for(i in void 0!==n&&(Q(n),l=""+n),function(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),l=""+t.key),function(e){if(W.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(s=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var n=O(ne.current.type);te[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(ne.current.type),e.ref),te[n]=!0)}}(t,r)),t)W.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(l||s){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){J||(J=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,c),s&&function(e,t){var n=function(){ee||(ee=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,c)}return re(e,l,s,r,o,ne.current,a)}var ae,le=v.ReactCurrentOwner,se=v.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function ce(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(le.current){var e=O(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var fe={};function pe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=de();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!fe[n]){fe[n]=!0;var o="";e&&e._owner&&e._owner!==le.current&&(o=" It was passed a child from "+O(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),ue(null)}}}function he(e,t){if("object"==typeof e)if(Z(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&pe(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var r=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof r&&r!==e.entries)for(var i,a=r.call(e);!(i=a.next()).done;)ce(i.value)&&pe(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var o=O(n);!function(e,t,n,o,r){var i=Function.call.bind(W);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((o||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](t,a,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}l&&!(l instanceof Error)&&(K(r),y("%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).",o||"React class",n,a,typeof l),K(null)),l instanceof Error&&!(l.message in $)&&($[l.message]=!0,K(r),y("Failed %s type: %s",n,l.message),K(null))}}(t,e.props,"prop",o,e)}else void 0===n.PropTypes||ae||(ae=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function me(e,t,o,g,m,v){var C=function(e){return!!("string"==typeof e||"function"==typeof e||e===r||e===a||E||e===i||e===c||e===d||k||e===h||w||x||_||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===s||e.$$typeof===u||e.$$typeof===b||void 0!==e.getModuleId))}(e);if(!C){var S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" 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 N,j=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);S+=j||de(),null===e?N="null":Z(e)?N="array":void 0!==e&&e.$$typeof===n?(N="<"+(O(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):N=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,S)}var T=ie(e,t,o,m,v);if(null==T)return T;if(C){var P=t.children;if(void 0!==P)if(g)if(Z(P)){for(var M=0;M<P.length;M++)he(P[M],e);Object.freeze&&Object.freeze(P)}else y("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 he(P,e)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if("children"!==o&&"key"!==o){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(T):ge(T),T}var ve=function(e,t,n){return me(e,t,n,!1)},ye=function(e,t,n){return me(e,t,n,!0)};Ce.Fragment=r,Ce.jsx=ve,Ce.jsxs=ye}()),Ce);var Oe=_e.exports;const Se=({color:e="primary",dataTest:t,...n})=>Oe.jsx(y,{color:e,"data-test":t,...n,sx:{"& .MuiBadge-colorPrimary":{backgroundColor:"var(--colors-badge-background)",color:"var(--colors-badge-text)"},...n.sx}}),Ne=({dataTest:e,...t})=>Oe.jsx(b,{...t,"data-test":e});function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},je.apply(this,arguments)}function Te(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Pe(e,t){return(Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}const Me=!1;var Ae="production"!==process.env.NODE_ENV?fe.oneOfType([fe.number,fe.shape({enter:fe.number,exit:fe.number,appear:fe.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&fe.oneOfType([fe.string,fe.shape({enter:fe.string,exit:fe.string,active:fe.string}),fe.shape({enter:fe.string,enterDone:fe.string,enterActive:fe.string,exit:fe.string,exitDone:fe.string,exitActive:fe.string})]);const Re=t.createContext(null);var Ie="unmounted",De="exited",Le="entering",qe="entered",Fe="exiting",ze=function(e){function n(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=De,o.appearStatus=Le):r=qe:r=t.unmountOnExit||t.mountOnEnter?Ie:De,o.state={status:r},o.nextCallback=null,o}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pe(e,t)}(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ie?{status:De}:null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Le&&n!==qe&&(t=Le):(n===Le||n===qe)&&(t=Fe)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Le){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===De&&this.setState({status:Ie})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[he.findDOMNode(this),o],i=r[0],a=r[1],l=this.getTimeouts(),s=o?l.appear:l.enter;!e&&!n||Me?this.safeSetState({status:qe},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Le},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:qe},(function(){t.props.onEntered(i,a)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:he.findDOMNode(this);t&&!Me?(this.props.onExit(o),this.safeSetState({status:Fe},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:De},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:De},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:he.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],a=r[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===Ie)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var r=Te(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(Re.Provider,{value:null},"function"==typeof o?o(e,r):t.cloneElement(t.Children.only(o),r))},n}(t.Component);function Ve(){}ze.contextType=Re,ze.propTypes="production"!==process.env.NODE_ENV?{nodeRef:fe.shape({current:typeof Element>"u"?fe.any:function(e,t,n,o,r,i){var a=e[t];return fe.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:fe.oneOfType([fe.func.isRequired,fe.element.isRequired]).isRequired,in:fe.bool,mountOnEnter:fe.bool,unmountOnExit:fe.bool,appear:fe.bool,enter:fe.bool,exit:fe.bool,timeout:function(e){var t=Ae;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return t.apply(void 0,[e].concat(o))},addEndListener:fe.func,onEnter:fe.func,onEntering:fe.func,onEntered:fe.func,onExit:fe.func,onExiting:fe.func,onExited:fe.func}:{},ze.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ve,onEntering:Ve,onEntered:Ve,onExit:Ve,onExiting:Ve,onExited:Ve},ze.UNMOUNTED=Ie,ze.EXITED=De,ze.ENTERING=Le,ze.ENTERED=qe,ze.EXITING=Fe;const Be=ze;function He(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function Ue(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function We(e){if(!Ue(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=We(e[n])})),t}function $e(e,t,n={clone:!0}){const o=n.clone?je({},e):e;return Ue(e)&&Ue(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(Ue(t[r])&&r in e&&Ue(e[r])?o[r]=$e(e[r],t[r],n):n.clone?o[r]=Ue(t[r])?We(t[r]):t[r]:o[r]=t[r])})),o}function Ge(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||typeof window>"u")return null;let l;const s=i.type;return"function"==typeof s&&!function(e){const{prototype:t={}}=e;return!!t.isReactComponent}(s)&&(l="Did you accidentally use a plain function component for an element instead?"),void 0!==l?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 Ke=He(fe.element,Ge);Ke.isRequired=He(fe.element.isRequired,Ge);const Ye=Ke;function Ze(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Xe(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Ze(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Qe=e=>e,Je=(()=>{let e=Qe;return{configure(t){e=t},generate:t=>e(t),reset(){e=Qe}}})(),et=Je,tt={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function nt(e,t,n="Mui"){const o=tt[t];return o?`${n}-${o}`:`${et.generate(e)}-${t}`}const ot=["values","unit","step"],rt=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>je({},e,{[t.key]:t.val})),{})};const it={borderRadius:4},at="production"!==process.env.NODE_ENV?fe.oneOfType([fe.number,fe.string,fe.object,fe.array]):{};function lt(e,t){return t?$e(e,t,{clone:!1}):e}const st={xs:0,sm:600,md:900,lg:1200,xl:1536},ut={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${st[e]}px)`};function ct(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||ut;return t.reduce(((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o)),{})}if("object"==typeof t){const e=o.breakpoints||ut;return Object.keys(t).reduce(((o,r)=>{if(-1!==Object.keys(e.values||st).indexOf(r)){o[e.up(r)]=n(t[r],r)}else{const e=r;o[e]=t[e]}return o}),{})}return n(t)}function dt(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ft(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:dt(e,n)||o,t&&(r=t(r,o,e)),r}function pt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=dt(e.theme,o)||{};return ct(e,i,(e=>{let o=ft(a,r,e);return e===o&&"string"==typeof e&&(o=ft(a,r,`${t}${"default"===e?"":Xe(e)}`,e)),!1===n?o:{[n]:o}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:at}:{},i.filterProps=[t],i}const ht={m:"margin",p:"padding"},gt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vt=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!mt[e])return[e];e=mt[e]}const[t,n]=e.split(""),o=ht[t],r=gt[n]||"";return Array.isArray(r)?r.map((e=>o+e)):[o+r]})),yt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],wt=[...yt,...bt];function xt(e,t,n,o){var r;const i=null!=(r=dt(e,t,!1))?r:n;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):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("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function _t(e){return xt(e,"spacing",8,"spacing")}function kt(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Et(e,t,n,o){if(-1===t.indexOf(n))return null;const r=function(e,t){return n=>e.reduce(((e,o)=>(e[o]=kt(t,n),e)),{})}(vt(n),o);return ct(e,e[n],r)}function Ct(e,t){const n=_t(e.theme);return Object.keys(e).map((o=>Et(e,t,o,n))).reduce(lt,{})}function Ot(e){return Ct(e,yt)}function St(e){return Ct(e,bt)}function Nt(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,o)=>t[o]?lt(n,t[o](e)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function jt(e){return"number"!=typeof e?e:`${e}px solid`}Ot.propTypes="production"!==process.env.NODE_ENV?yt.reduce(((e,t)=>(e[t]=at,e)),{}):{},Ot.filterProps=yt,St.propTypes="production"!==process.env.NODE_ENV?bt.reduce(((e,t)=>(e[t]=at,e)),{}):{},St.filterProps=bt,"production"!==process.env.NODE_ENV&&wt.reduce(((e,t)=>(e[t]=at,e)),{});const Tt=pt({prop:"border",themeKey:"borders",transform:jt}),Pt=pt({prop:"borderTop",themeKey:"borders",transform:jt}),Mt=pt({prop:"borderRight",themeKey:"borders",transform:jt}),At=pt({prop:"borderBottom",themeKey:"borders",transform:jt}),Rt=pt({prop:"borderLeft",themeKey:"borders",transform:jt}),It=pt({prop:"borderColor",themeKey:"palette"}),Dt=pt({prop:"borderTopColor",themeKey:"palette"}),Lt=pt({prop:"borderRightColor",themeKey:"palette"}),qt=pt({prop:"borderBottomColor",themeKey:"palette"}),Ft=pt({prop:"borderLeftColor",themeKey:"palette"}),zt=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xt(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:kt(t,e)});return ct(e,e.borderRadius,n)}return null};zt.propTypes="production"!==process.env.NODE_ENV?{borderRadius:at}:{},zt.filterProps=["borderRadius"],Nt(Tt,Pt,Mt,At,Rt,It,Dt,Lt,qt,Ft,zt);const Vt=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xt(e.theme,"spacing",8,"gap"),n=e=>({gap:kt(t,e)});return ct(e,e.gap,n)}return null};Vt.propTypes="production"!==process.env.NODE_ENV?{gap:at}:{},Vt.filterProps=["gap"];const Bt=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xt(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:kt(t,e)});return ct(e,e.columnGap,n)}return null};Bt.propTypes="production"!==process.env.NODE_ENV?{columnGap:at}:{},Bt.filterProps=["columnGap"];const Ht=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xt(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:kt(t,e)});return ct(e,e.rowGap,n)}return null};Ht.propTypes="production"!==process.env.NODE_ENV?{rowGap:at}:{},Ht.filterProps=["rowGap"];function Ut(e,t){return"grey"===t?t:e}Nt(Vt,Bt,Ht,pt({prop:"gridColumn"}),pt({prop:"gridRow"}),pt({prop:"gridAutoFlow"}),pt({prop:"gridAutoColumns"}),pt({prop:"gridAutoRows"}),pt({prop:"gridTemplateColumns"}),pt({prop:"gridTemplateRows"}),pt({prop:"gridTemplateAreas"}),pt({prop:"gridArea"}));function Wt(e){return e<=1&&0!==e?100*e+"%":e}Nt(pt({prop:"color",themeKey:"palette",transform:Ut}),pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ut}),pt({prop:"backgroundColor",themeKey:"palette",transform:Ut}));const $t=pt({prop:"width",transform:Wt}),Gt=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,o,r;return{maxWidth:(null==(n=e.theme)||null==(o=n.breakpoints)||null==(r=o.values)?void 0:r[t])||st[t]||Wt(t)}};return ct(e,e.maxWidth,t)}return null};Gt.filterProps=["maxWidth"];const Kt=pt({prop:"minWidth",transform:Wt}),Yt=pt({prop:"height",transform:Wt}),Zt=pt({prop:"maxHeight",transform:Wt}),Xt=pt({prop:"minHeight",transform:Wt});pt({prop:"size",cssProperty:"width",transform:Wt}),pt({prop:"size",cssProperty:"height",transform:Wt});Nt($t,Gt,Kt,Yt,Zt,Xt,pt({prop:"boxSizing"}));const Qt={border:{themeKey:"borders",transform:jt},borderTop:{themeKey:"borders",transform:jt},borderRight:{themeKey:"borders",transform:jt},borderBottom:{themeKey:"borders",transform:jt},borderLeft:{themeKey:"borders",transform:jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zt},color:{themeKey:"palette",transform:Ut},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ut},backgroundColor:{themeKey:"palette",transform:Ut},p:{style:St},pt:{style:St},pr:{style:St},pb:{style:St},pl:{style:St},px:{style:St},py:{style:St},padding:{style:St},paddingTop:{style:St},paddingRight:{style:St},paddingBottom:{style:St},paddingLeft:{style:St},paddingX:{style:St},paddingY:{style:St},paddingInline:{style:St},paddingInlineStart:{style:St},paddingInlineEnd:{style:St},paddingBlock:{style:St},paddingBlockStart:{style:St},paddingBlockEnd:{style:St},m:{style:Ot},mt:{style:Ot},mr:{style:Ot},mb:{style:Ot},ml:{style:Ot},mx:{style:Ot},my:{style:Ot},margin:{style:Ot},marginTop:{style:Ot},marginRight:{style:Ot},marginBottom:{style:Ot},marginLeft:{style:Ot},marginX:{style:Ot},marginY:{style:Ot},marginInline:{style:Ot},marginInlineStart:{style:Ot},marginInlineEnd:{style:Ot},marginBlock:{style:Ot},marginBlockStart:{style:Ot},marginBlockEnd:{style:Ot},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:Vt},rowGap:{style:Ht},columnGap:{style:Bt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wt},maxWidth:{style:Gt},minWidth:{transform:Wt},height:{transform:Wt},maxHeight:{transform:Wt},minHeight:{transform:Wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Jt=Qt;const en=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=dt(n,l)||{};return u?u(r):ct(r,t,(t=>{let n=ft(c,s,t);return t===n&&"string"==typeof t&&(n=ft(c,s,`${e}${"default"===t?"":Xe(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var o;const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=null!=(o=i.unstable_sxConfig)?o:Jt;function l(n){let o=n;if("function"==typeof n)o=n(i);else if("object"!=typeof n)return n;if(!o)return null;const r=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(r);let s=r;return Object.keys(o).forEach((n=>{const r=function(e,t){return"function"==typeof e?e(t):e}(o[n],i);if(null!=r)if("object"==typeof r)if(a[n])s=lt(s,e(n,r,i,a));else{const e=ct({theme:i},r,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,r)?s=lt(s,e):s[n]=t({sx:r,theme:i})}else s=lt(s,e(n,r,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(r)?r.map(l):l(r)}}();en.filterProps=["sx"];const tn=en,nn=["breakpoints","palette","spacing","shape"];function on(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={}}=e,a=Te(e,nn),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,r=Te(e,ot),i=rt(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function u(e,r){const i=a.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:r)-o/100}${n})`}return je({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},r)}(n),s=function(e=8){if(e.mui)return e;const t=_t({spacing:e}),n=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" "));return n.mui=!0,n}(r);let u=$e({breakpoints:l,direction:"ltr",components:{},palette:je({mode:"light"},o),spacing:s,shape:je({},it,i)},a);return u=t.reduce(((e,t)=>$e(e,t)),u),u.unstable_sxConfig=je({},Jt,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return tn({sx:e,theme:this})},u}function rn(t=null){const n=e.useContext(pe);return!n||function(e){return 0===Object.keys(e).length}(n)?t:n}const an=on();function ln(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ln(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function sn(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=ln(e))&&(o&&(o+=" "),o+=t);return o}function un(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function cn(e){if(e.type)return e;if("#"===e.charAt(0))return cn(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ze(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ze(10,o))}else r=r.split(",");return r=r.map((e=>parseFloat(e))),{type:n,values:r,colorSpace:o}}function dn(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function fn(e){let t="hsl"===(e=cn(e)).type||"hsla"===e.type?cn(function(e){e=cn(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),dn({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pn(e,t){const n=fn(e),o=fn(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function hn(e,t){return je({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const gn={black:"#000",white:"#fff"},mn={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"},vn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},yn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},bn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},xn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_n={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},kn=["mode","contrastThreshold","tonalOffset"],En={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:gn.white,default:gn.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}},Cn={text:{primary:gn.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:gn.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}};function On(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=cn(e),t=un(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return dn(e)}(e.main,r):"dark"===t&&(e.dark=function(e,t){if(e=cn(e),t=un(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return dn(e)}(e.main,i)))}function Sn(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,r=Te(e,kn),i=e.primary||function(e="light"){return"dark"===e?{main:wn[200],light:wn[50],dark:wn[400]}:{main:wn[700],light:wn[400],dark:wn[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:vn[200],light:vn[50],dark:vn[400]}:{main:vn[500],light:vn[300],dark:vn[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:yn[500],light:yn[300],dark:yn[700]}:{main:yn[700],light:yn[400],dark:yn[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:xn[400],light:xn[300],dark:xn[700]}:{main:xn[700],light:xn[500],dark:xn[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:_n[400],light:_n[300],dark:_n[700]}:{main:_n[800],light:_n[500],dark:_n[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:bn[400],light:bn[300],dark:bn[700]}:{main:"#ed6c02",light:bn[500],dark:bn[900]}}(t);function d(e){const t=pn(e,Cn.text.primary)>=n?Cn.text.primary:En.text.primary;if("production"!==process.env.NODE_ENV){const n=pn(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"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("\n"))}return t}const f=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e=je({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:Ze(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:Ze(12,t?` (${t})`:"",JSON.stringify(e.main)));return On(e,"light",r,o),On(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:Cn,light:En};return"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),$e(je({common:je({},gn),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:mn,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:o},p[t]),r)}const Nn=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function jn(e){return Math.round(1e5*e)/1e5}const Tn={textTransform:"uppercase"},Pn='"Roboto", "Helvetica", "Arial", sans-serif';function Mn(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=Pn,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Te(n,Nn);"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof u&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,h=d||(e=>e/u*p+"rem"),g=(e,t,n,r,i)=>je({fontFamily:o,fontWeight:e,fontSize:h(t),lineHeight:n},o===Pn?{letterSpacing:`${jn(r/t)}em`}:{},i,c),m={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(l,14,1.75,.4,Tn),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Tn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $e(je({htmlFontSize:u,pxToRem:h,fontFamily:o,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},m),f,{clone:!1})}function An(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Rn=["none",An(0,2,1,-1,0,1,1,0,0,1,3,0),An(0,3,1,-2,0,2,2,0,0,1,5,0),An(0,3,3,-2,0,3,4,0,0,1,8,0),An(0,2,4,-1,0,4,5,0,0,1,10,0),An(0,3,5,-1,0,5,8,0,0,1,14,0),An(0,3,5,-1,0,6,10,0,0,1,18,0),An(0,4,5,-2,0,7,10,1,0,2,16,1),An(0,5,5,-3,0,8,10,1,0,3,14,2),An(0,5,6,-3,0,9,12,1,0,3,16,2),An(0,6,6,-3,0,10,14,1,0,4,18,3),An(0,6,7,-4,0,11,15,1,0,4,20,3),An(0,7,8,-4,0,12,17,2,0,5,22,4),An(0,7,8,-4,0,13,19,2,0,5,24,4),An(0,7,9,-4,0,14,21,2,0,5,26,4),An(0,8,9,-5,0,15,22,2,0,6,28,5),An(0,8,10,-5,0,16,24,2,0,6,30,5),An(0,8,11,-5,0,17,26,2,0,6,32,5),An(0,9,11,-5,0,18,28,2,0,7,34,6),An(0,9,12,-6,0,19,29,2,0,7,36,6),An(0,10,13,-6,0,20,31,3,0,8,38,7),An(0,10,13,-6,0,21,33,3,0,8,40,7),An(0,10,14,-6,0,22,35,3,0,8,42,7),An(0,11,14,-7,0,23,36,3,0,9,44,8),An(0,11,15,-7,0,24,38,3,0,9,46,8)],In=["duration","easing","delay"],Dn={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)"},Ln={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qn(e){return`${Math.round(e)}ms`}function Fn(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zn(e){const t=je({},Dn,e.easing),n=je({},Ln,e.duration);return je({getAutoHeightDuration:Fn,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:a=0}=o,l=Te(o,In);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(r)&&!t(r)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${r}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(a)&&!t(a)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(l).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof r?r:qn(r)} ${i} ${"string"==typeof a?a:qn(a)}`)).join(",")}},e,{easing:t,duration:n})}const Vn={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Bn=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Hn=function(e={},...t){const{mixins:n={},palette:o={},transitions:r={},typography:i={}}=e,a=Te(e,Bn);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Ze(18));const l=Sn(o),s=on(e);let u=$e(s,{mixins:hn(s.breakpoints,n),palette:l,shadows:Rn.slice(),typography:Mn(l,i),transitions:zn(r),zIndex:je({},Vn)});if(u=$e(u,a),u=t.reduce(((e,t)=>$e(e,t)),u),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let o;for(o in t){const r=t[o];if(-1!==e.indexOf(o)&&Object.keys(r).length>0){if("production"!==process.env.NODE_ENV){const e=nt("",o);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:r}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(u.components).forEach((e=>{const n=u.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return u.unstable_sxConfig=je({},Jt,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return tn({sx:e,theme:this})},u}(),Un=Hn;function Wn(){const t=function(e=an){return rn(e)}(Un);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t.$$material||t}function $n(e,t){var n,o;const{timeout:r,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof r?r:r[t.mode]||0,easing:null!=(o=a.transitionTimingFunction)?o:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Gn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Kn={entering:{opacity:1},entered:{opacity:1}},Yn=e.forwardRef((function(t,n){const o=Wn(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:v=r,TransitionComponent:y=Be}=t,b=Te(t,Gn),w=e.useRef(null),x=function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(t,e)}))}),t)}(w,l.ref,n),_=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=_(f),E=_(((e,t)=>{e.scrollTop;const n=$n({style:m,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",n),e.style.transition=o.transitions.create("opacity",n),c&&c(e,t)})),C=_(d),O=_(g),S=_((e=>{const t=$n({style:m,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),p&&p(e)})),N=_(h);return Oe.jsx(y,je({appear:a,in:u,nodeRef:w,onEnter:E,onEntered:C,onEntering:k,onExit:S,onExited:N,onExiting:O,addEndListener:e=>{i&&i(w.current,e)},timeout:v},b,{children:(t,n)=>e.cloneElement(l,je({style:je({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},Kn[t],m,l.props.style),ref:x},n))}))}));"production"!==process.env.NODE_ENV&&(Yn.propTypes={addEndListener:fe.func,appear:fe.bool,children:Ye.isRequired,easing:fe.oneOfType([fe.shape({enter:fe.string,exit:fe.string}),fe.string]),in:fe.bool,onEnter:fe.func,onEntered:fe.func,onEntering:fe.func,onExit:fe.func,onExited:fe.func,onExiting:fe.func,style:fe.object,timeout:fe.oneOfType([fe.number,fe.shape({appear:fe.number,enter:fe.number,exit:fe.number})])});const Zn=Yn,Xn=e=>Oe.jsx(w,{TransitionComponent:Zn,TransitionProps:{timeout:300},arrow:!0,placement:"top",componentsProps:{tooltip:{sx:{bgcolor:"var(--colors-gray-800)",borderRadius:"3px","& .MuiTooltip-arrow":{color:"var(--colors-gray-800)"}}}},...e}),Qn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Jn=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!eo(i)?null:i}const i=r[0],a=i.split("-");if(a.length>1){const e={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!eo(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!eo(e,n)?null:e}return null},eo=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(Qn)||!(t&&""===e.prefix||e.prefix.match(Qn))||!e.name.match(Qn)),to=Object.freeze({left:0,top:0,width:16,height:16}),no=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),oo=Object.freeze({...to,...no}),ro=Object.freeze({...oo,body:"",hidden:!1});function io(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in ro)o in no?o in e&&!(o in n)&&(n[o]=no[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function ao(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function a(e){i=io(o[e]||r[e],i)}return a(t),n.forEach(a),io(e,i)}function lo(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,ao(e,r,i)),n.push(r))}return n}const so={provider:"",aliases:{},not_found:{},...to};function uo(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function co(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!uo(e,so))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(Qn)||"string"!=typeof t.body||!uo(t,ro))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],r=t.parent;if(!e.match(Qn)||"string"!=typeof r||!n[r]&&!o[r]||!uo(t,ro))return null}return t}const fo=Object.create(null);function po(e,t){const n=fo[e]||(fo[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ho(e,t){return co(t)?lo(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let go=!1;function mo(e){return"boolean"==typeof e&&(go=e),go}function vo(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),go&&!t&&!e.prefix){let t=!1;return co(e)&&(e.prefix="",lo(e,((e,n)=>{n&&function(e,t){const n=Jn(e,!0,go);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(po(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!eo({provider:t,prefix:n,name:"a"}))return!1;return!!ho(po(t,n),e)}const yo=Object.freeze({width:null,height:null}),bo=Object.freeze({...yo,...no}),wo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,xo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function _o(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(wo);if(null===o||!o.length)return e;const r=[];let i=o.shift(),a=xo.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");a=!a}}const ko=/\sid="(\S+)"/g,Eo="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Co=0;function Oo(e,t=Eo){const n=[];let o;for(;o=ko.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof t?t(n):t+(Co++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const So=Object.create(null);function No(e){return So[e]||So[""]}function jo(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const To=Object.create(null),Po=["https://api.simplesvg.com","https://api.unisvg.com"],Mo=[];for(;Po.length>0;)1===Po.length||Math.random()>.5?Mo.push(Po.shift()):Mo.push(Po.pop());function Ao(e,t){const n=jo(t);return null!==n&&(To[e]=n,!0)}function Ro(e){return To[e]}To[""]=jo({resources:["https://api.iconify.design"].concat(Mo)});let Io=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const Do={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=Ro(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},l=0;return n.forEach(((n,s)=>{l+=n.length+1,l>=r&&s>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},l=n.length),a.icons.push(n)})),o.push(a),o},send:(e,t,n)=>{if(!Io)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=Ro(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;Io(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function Lo(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let qo=0;var Fo={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function zo(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const l=Date.now();let s,u="pending",c=0,d=null,f=[],p=[];function h(){d&&(clearTimeout(d),d=null)}function g(){"pending"===u&&(u="aborted"),h(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function m(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){u="failed",p.forEach((e=>{e(void 0,s)}))}function y(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function b(){if("pending"!==u)return;h();const o=a.shift();if(void 0===o)return f.length?void(d=setTimeout((()=>{h(),"pending"===u&&(y(),v())}),e.timeout)):void v();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(f=f.filter((e=>e!==t)),u){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=o,void v();if(r)return s=o,void(f.length||(a.length?b():v()));if(h(),y(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",p.forEach((e=>{e(o)}))}(r,t,n)}};f.push(r),c++,d=setTimeout(b,e.rotate),n(o,t,r.callback)}return"function"==typeof o&&p.push(o),setTimeout(b),function(){return{startTime:l,payload:t,status:u,queriesSent:c,queriesPending:f.length,subscribe:m,abort:g}}}function Vo(e){const t={...Fo,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const a=zo(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function Bo(){}const Ho=Object.create(null);function Uo(e,t,n){let o,r;if("string"==typeof e){const t=No(e);if(!t)return n(void 0,424),Bo;r=t.send;const i=function(e){if(!Ho[e]){const t=Ro(e);if(!t)return;const n={config:t,redundancy:Vo(t)};Ho[e]=n}return Ho[e]}(e);i&&(o=i.redundancy)}else{const t=jo(e);if(t){o=Vo(t);const n=No(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),Bo)}const Wo="iconify2",$o="iconify",Go=$o+"-count",Ko=$o+"-version",Yo=36e5,Zo=168;function Xo(e,t){try{return e.getItem(t)}catch{}}function Qo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Jo(e,t){try{e.removeItem(t)}catch{}}function er(e,t){return Qo(e,Go,t.toString())}function tr(e){return parseInt(Xo(e,Go))||0}const nr={local:!0,session:!0},or={local:new Set,session:new Set};let rr=!1;let ir=typeof window>"u"?{}:window;function ar(e){const t=e+"Storage";try{if(ir&&ir[t]&&"number"==typeof ir[t].length)return ir[t]}catch{}nr[e]=!1}function lr(e,t){const n=ar(e);if(!n)return;const o=Xo(n,Ko);if(o!==Wo){if(o){const e=tr(n);for(let t=0;t<e;t++)Jo(n,$o+t.toString())}return Qo(n,Ko,Wo),void er(n,0)}const r=Math.floor(Date.now()/Yo)-Zo,i=e=>{const o=$o+e.toString(),i=Xo(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}Jo(n,o)}};let a=tr(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?(a--,er(n,a)):or[e].add(t))}function sr(){if(!rr){rr=!0;for(const e in nr)lr(e,(e=>{const t=e.data,n=po(e.provider,t.prefix);if(!ho(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function ur(e,t){function n(n){let o;if(!nr[n]||!(o=ar(n)))return;const r=or[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=tr(o),!er(o,i+1))return;const a={cached:Math.floor(Date.now()/Yo),provider:e.provider,data:t};return Qo(o,$o+i.toString(),JSON.stringify(a))}rr||sr(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in nr)lr(n,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function cr(){}function dr(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:a})}return!1})),i.pending.length!==a&&(n||Lo([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const fr=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"==typeof e?Jn(e,t,n):e;r&&o.push(r)})),o}(e,!0,mo()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,a=e.name,l=n[r]||(n[r]=Object.create(null)),s=l[i]||(l[i]=po(r,i));let u;u=a in s.icons?t.loaded:""===i||s.missing.has(a)?t.missing:t.pending;const c={provider:r,prefix:i,name:a};u.push(c)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,cr)})),()=>{e=!1}}const r=Object.create(null),i=[];let a,l;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===l&&t===a)return;a=t,l=n,i.push(po(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=po(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(o)||(a.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=No(t))&&r.prepare(t,n,o).forEach((n=>{Uo(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=ho(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),ur(e,t)}catch(e){console.error(e)}dr(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=qo++,r=Lo.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):cr};const pr=/[\s,]+/;function hr(e,t){t.split(pr).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function gr(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1==0?o(r):0)}}return t}function mr(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let vr;function yr(e){return void 0===vr&&function(){try{vr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{vr=null}}(),vr?vr.createHTML(e):e}const br={...bo,inline:!1},wr={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},xr={display:"inline-block"},_r={backgroundColor:"currentColor"},kr={backgroundColor:"transparent"},Er={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Cr={WebkitMask:_r,mask:_r,background:kr};for(const e in Cr){const t=Cr[e];for(const n in Er)t[e+n]=Er[n]}const Or={...br,inline:!0};function Sr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Nr=(e,n,o,r)=>{const i=o?Or:br,a=function(e,t){const n={...e};for(const e in t){const o=t[e],r=typeof o;e in yo?(null===o||o&&("string"===r||"number"===r))&&(n[e]=o):r===typeof n[e]&&(n[e]="rotate"===e?o%4:o)}return n}(i,n),l=n.mode||"svg",s={},u=n.style||{},c={..."svg"===l?wr:{},ref:r};for(let e in n){const t=n[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&hr(a,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?a[e]=gr(t):"number"==typeof t&&(a[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=t)}}const d=function(e,t){const n={...oo,...e},o={...bo,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let a,l=e.rotate;switch(n?o?l+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),l<0&&(l-=4*Math.floor(l/4)),l%=4,l){case 1:a=r.height/2+r.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:a=r.width/2+r.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}l%2==1&&(r.left!==r.top&&(a=r.left,r.left=r.top,r.top=a),r.width!==r.height&&(a=r.width,r.width=r.height,r.height=a)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const a=o.width,l=o.height,s=r.width,u=r.height;let c,d;null===a?(d=null===l?"1em":"auto"===l?u:l,c=_o(d,s/u)):(c="auto"===a?s:a,d=null===l?_o(c,u/s):"auto"===l?u:l);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",c),p("height",d),f.viewBox=r.left.toString()+" "+r.top.toString()+" "+s.toString()+" "+u.toString(),{attributes:f,body:i}}(e,a),f=d.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),"svg"===l){c.style={...s,...u},Object.assign(c,f);let e=0,o=n.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:yr(Oo(d.body,o?()=>o+"ID"+e++:"iconifyReact"))},t.createElement("svg",c)}const{body:p,width:h,height:g}=e,m="mask"===l||"bg"!==l&&-1!==p.indexOf("currentColor"),v=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(p,{...f,width:h+"",height:g+""});return c.style={...s,"--svg":mr(v),width:Sr(f.width),height:Sr(f.height),...xr,...m?_r:kr,...u},t.createElement("span",c)};var jr;if(mo(!0),jr=Do,So[""]=jr,typeof document<"u"&&typeof window<"u"){sr();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!vo(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;Ao(e,o)||console.error(n)}catch{console.error(n)}}}}class Tr extends t.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!=typeof n||null===(o=Jn(n,!1,!0)))return this._abortLoading(),void this._setData(null);const r=function(e){const t="string"==typeof e?Jn(e,!0,go):e;if(t){const e=po(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(o);if(r){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:r,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==r&&(this._loading={name:n,abort:fr([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,n=this.state.icon;if(null===n)return e.children?e.children:t.createElement("span",{});let o=e;return n.classes&&(o={...e,className:("string"==typeof e.className?e.className+" ":"")+n.classes.join(" ")}),Nr({...oo,...n.data},o,e._inline,e._ref)}}const Pr=t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!1};return t.createElement(Tr,o)}));t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!0};return t.createElement(Tr,o)}));const Mr="_icon_z9w7e_5",Ar=({width:e=20,height:t=20,className:n="",icon:o,onClick:r,color:i,vFlip:a=!1})=>Oe.jsx(Pr,{onClick:r,icon:o,width:e,height:t,className:`${Mr} ${n}`,color:i,vFlip:a}),Rr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:r}),Ir=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:r}),Dr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:r}),Lr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:r}),qr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:r}),Fr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:r}),zr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:r}),Vr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:r}),Br=({width:e=20,height:t=20,className:n="",onClick:o,color:r=""})=>Oe.jsx(Ar,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:r}),Hr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:r}),Ur=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:r}),Wr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:r}),$r=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:r}),Gr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-fact-check",width:e,height:t,className:n,onClick:o,color:r}),Kr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:fact-check",width:e,height:t,className:n,onClick:o,color:r}),Yr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:r}),Zr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:r}),Xr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:r}),Qr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:r}),Jr=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:r}),ei=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:r}),ti=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:r}),ni=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:r}),oi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:r}),ri=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:r}),ii=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:r}),ai=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:r,vFlip:!0}),li=({color:e="black",size:t="20",className:n=""})=>Oe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,viewBox:`0 0 ${t} ${t}`,fill:"none",children:[Oe.jsx("path",{d:"M14.9875 14.1667C16.1366 14.1667 17.0691 13.2334 17.0691 12.0834C17.0691 10.9334 16.1366 10.0001 14.9875 10.0001C13.8385 10.0001 12.9059 10.9334 12.9059 12.0834C12.9059 13.2334 13.8385 14.1667 14.9875 14.1667ZM14.9875 15.2084C13.597 15.2084 10.8243 15.9084 10.8243 17.2917V17.8167C10.8243 18.1001 11.0575 18.3417 11.3489 18.3417H18.6345C18.9176 18.3417 19.159 18.1084 19.159 17.8167V17.2917C19.159 15.9084 16.3863 15.2084 14.9958 15.2084H14.9875Z",fill:e}),Oe.jsx("path",{d:"M4.99584 5.83342C6.14488 5.83342 7.07744 4.90008 7.07744 3.75008C7.07744 2.60008 6.14488 1.66675 4.99584 1.66675C3.8468 1.66675 2.91424 2.60008 2.91424 3.75008C2.91424 4.90008 3.8468 5.83342 4.99584 5.83342ZM4.99584 6.87508C3.60533 6.87508 0.832642 7.57508 0.832642 8.95842V9.48342C0.832642 9.76675 1.06578 10.0084 1.3572 10.0084H8.6428C8.9259 10.0084 9.16736 9.77508 9.16736 9.48342V8.95842C9.16736 7.57508 6.39467 6.87508 5.00417 6.87508H4.99584Z",fill:e}),Oe.jsx("path",{d:"M9.15156 16.4036V16.2574H6.61874C6.14757 16.2574 5.75868 15.8773 5.75868 15.4167V12.8729L7.04503 14.101L7.77047 13.3773L5.10802 10.8334L2.49792 13.4431L3.23832 14.1521L4.4798 12.9094H4.49476V15.4167C4.49476 16.5644 5.45204 17.5001 6.62622 17.5001H9.15904V16.4036H9.15156Z",fill:e}),Oe.jsx("path",{d:"M9.99915 3.59657V3.74277H13.3646C13.8358 3.74277 14.2247 4.12289 14.2247 4.58341V7.12727L12.9383 5.8992L12.2129 6.62289L14.8753 9.16675L17.4854 6.5571L16.745 5.84803L15.5035 7.09072H15.4886V4.58341C15.4886 3.43575 14.5313 2.50008 13.3571 2.50008H9.99168V3.59657H9.99915Z",fill:e})]}),si=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:r}),ui=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:r}),ci=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:r}),di=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:r}),fi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:r}),pi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:r}),hi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:r}),gi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:r}),mi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:r}),vi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:r}),yi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:r}),bi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:r}),wi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:r}),xi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:o,color:r}),_i=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:r}),ki=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:r}),Ei=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:r}),Ci=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:r}),Oi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:r}),Si=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:self-improvement",width:e,height:t,className:n,onClick:o,color:r}),Ni=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:r}),ji=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:r}),Ti=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:r}),Pi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:r}),Mi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:r}),Ai=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:baseline-dvr",width:e,height:t,className:n,onClick:o,color:r}),Ri=({width:e=20,height:t=20,className:n="",onClick:o,color:r="var(--colors-error-500)"})=>Oe.jsx(Ar,{icon:"mdi:error-outline",width:e,height:t,className:n,onClick:o,color:r}),Ii=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:replay",width:e,height:t,className:n,onClick:o,color:r}),Di=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:calendar-blank-outline",width:e,height:t,className:n,onClick:o,color:r}),Li=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-link",width:e,height:t,className:n,onClick:o,color:r}),qi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:fact-check-outline",width:e,height:t,className:n,onClick:o,color:r}),Fi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"material-symbols:unknown-document-outline-rounded",width:e,height:t,className:n,onClick:o,color:r}),zi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:list-status",width:e,height:t,className:n,onClick:o,color:r}),Vi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:text-box-check-outline",width:e,height:t,className:n,onClick:o,color:r}),Bi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ri:list-settings-line",width:e,height:t,className:n,onClick:o,color:r}),Hi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"pajamas:earth",width:e,height:t,className:n,onClick:o,color:r}),Ui=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"streamline:interface-setting-menu-1-button-parallel-horizontal-lines-menu-navigation-three-hamburger",width:e,height:t,className:n,onClick:o,color:r}),Wi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:pencil-outline",width:e,height:t,className:n,onClick:o,color:r});function $i(e){return Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M12 5.99L19.53 19H4.47zM12 2L1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"})})}const Gi=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"ic:outline-calendar-month",width:e,height:t,className:n,onClick:o,color:r});function Ki(e){return Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m5.86 10.31C16.23 21.22 14.28 22.45 12 23c-2.56-.61-4.7-2.07-6.42-4.37C3.86 16.34 3 13.8 3 11V5l9-4l9 4v6c0 2.39-.64 4.61-1.92 6.67l-2.91-2.91c.52-.79.83-1.76.83-2.76a5 5 0 0 0-5-5a5 5 0 0 0-5 5a5 5 0 0 0 5 5c1 0 1.97-.31 2.76-.83z"})})}const Yi=e=>Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M6 21v-2h12v2z"})}),Zi=e=>Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M6 18v-2h12v2zm6-12.4l6 6l-1.4 1.4L12 8.4L7.4 13L6 11.6z"})});function Xi(e){return Oe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:Oe.jsx("path",{fill:"currentColor",d:"M18 8H6V6h12zm0 3H6V9h12zm0 3H6v-2h12zm4-10a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14l4 4z"})})}function Qi(e){return Oe.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24",...e,children:[Oe.jsx("path",{fill:"currentColor",d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"}),Oe.jsx("path",{fill:"currentColor",d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"}),Oe.jsx("circle",{cx:9,cy:13.5,r:1.5,fill:"currentColor"}),Oe.jsx("path",{fill:"currentColor",d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"})]})}const Ji=e=>Oe.jsx(x,{...e}),ea={button:"_button_2p4hz_1",contained:"_contained_2p4hz_10",common:"_common_2p4hz_10",medium:"_medium_2p4hz_40",small:"_small_2p4hz_43",large:"_large_2p4hz_46",error:"_error_2p4hz_49",outlined:"_outlined_2p4hz_88",text:"_text_2p4hz_166",textGray:"_textGray_2p4hz_244"},ta=({variant:e="contained",className:t="",size:n="medium",children:o,refLink:r,startIcon:i,endIcon:a,dataTest:l,error:s,...u})=>{const c="large"===n||"medium"===n,d=s?"error":"common";return Oe.jsxs(Oe.Fragment,{children:[Oe.jsx("div",{style:{display:"none"},children:Oe.jsxs("button",{...u,className:sn(c?"px-2":"px-1.5",ea.button,ea[e],ea[d],ea[n],t),ref:r,"data-test":l,children:[i&&i,o&&Oe.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),a&&a]})}),Oe.jsxs("button",{...u,className:sn(c?"px-2":"px-1.5","asma-core-ui-button",e,d,n,t),ref:r,"data-test":l,children:[i&&i,o&&Oe.jsx("div",{className:"truncate flex items-center justify-center gap-2 "+(c?"px-2":"px-1"),children:o}),a&&a]})]})},na=({onCloseText:e,children:t,onClose:n,dataTest:o,showCloseIcon:r=!0,...i})=>Oe.jsxs(_,{...i,"data-test":o,onClose:n,style:{zIndex:999,...i.style},children:[r&&Oe.jsx("div",{className:"mr-2 mt-2 flex justify-end",children:Oe.jsx(ta,{dataTest:`close-button-${o}`,variant:"textGray",endIcon:Oe.jsx(Pr,{icon:"ic:baseline-close",className:"text-2xl"}),onClick:e=>{n&&n(e,"escapeKeyDown")},className:"text-gray-800",children:e})}),t]}),oa=e=>Oe.jsx(k,{...e,"data-test":"styled-dialog-actions",classes:{...e.classes,root:"p-0 m-0 justify-center"},children:Oe.jsx("div",{className:sn("flex w-full justify-end space-x-4 p-4",e.className),children:e.children})}),ra=({children:e,classes:t,className:n,...o})=>Oe.jsx(E,{...o,"data-test":"styled-dialog-content",classes:{...t,root:"p-4 mx-0 mt-0 w-full"},className:n,children:e}),ia=({children:e,...t})=>e?Oe.jsx(C,{...t,"data-test":"styled-dialog-title",classes:{...t.classes,root:"space-x-3 p-4 text-xl font-semibold leading-tight"},children:e}):null,aa=e=>{var t,o,r,i,a,l,s,u,c,d,f,p,h;return Oe.jsx(O,{...e,classes:{...e.classes,root:sn("border-solid text-sm font-normal px-3 py-2",n.count(e.children)>1?"items-start":"items-center",null==(t=e.classes)?void 0:t.root),action:sn("p-0 pl-4",null==(o=e.classes)?void 0:o.action),icon:sn("text-2xl text-inherit",null==(r=e.classes)?void 0:r.icon),filled:sn("border",null==(i=e.classes)?void 0:i.filled),filledError:sn("border-error-500 bg-error-100 text-error-700",null==(a=e.classes)?void 0:a.filledError),filledInfo:sn("border-info-500 bg-info-300 text-info-700",null==(l=e.classes)?void 0:l.filledInfo),filledSuccess:sn("border-success-500 bg-success-100 text-success-700",null==(s=e.classes)?void 0:s.filledSuccess),filledWarning:sn("border-warning-500 bg-warning-100 text-warning-700",null==(u=e.classes)?void 0:u.filledWarning),outlined:sn("border-2",null==(c=e.classes)?void 0:c.outlined),outlinedError:sn("border-error-700 text-error-700",null==(d=e.classes)?void 0:d.outlinedError),outlinedInfo:sn("border-info-700 text-info-700",null==(f=e.classes)?void 0:f.outlinedInfo),outlinedSuccess:sn("border-success-700 text-success-700",null==(p=e.classes)?void 0:p.outlinedSuccess),outlinedWarning:sn("border-warning-700 text-warning-700",null==(h=e.classes)?void 0:h.outlinedWarning)},iconMapping:{...e.iconMapping,success:Oe.jsx(Pr,{icon:"material-symbols:check-circle-outline",fontSize:"inherit"})}})},la=e=>Oe.jsx(S,{...e,classes:{root:sn("mb-0.5 font-semibold text-sm",e.className)}});let sa={data:""},ua=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||sa,ca=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,da=/\/\*[^]*?\*\/| +/g,fa=/\n+/g,pa=(e,t)=>{let n="",o="",r="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":o+="f"==i[1]?pa(a,i):i+"{"+pa(a,"k"==i[1]?"":t)+"}":"object"==typeof a?o+=pa(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=pa.p?pa.p(i,a):i+":"+a+";")}return n+(t&&r?t+"{"+r+"}":r)+o},ha={},ga=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ga(e[n]);return t}return e},ma=(e,t,n,o,r)=>{let i=ga(e),a=ha[i]||(ha[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!ha[a]){let t=i!==e?e:(e=>{let t,n,o=[{}];for(;t=ca.exec(e.replace(da,""));)t[4]?o.shift():t[3]?(n=t[3].replace(fa," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(fa," ").trim();return o[0]})(e);ha[a]=pa(r?{["@keyframes "+a]:t}:t,n?"":"."+a)}let l=n&&ha.g?ha.g:null;return n&&(ha.g=ha[a]),s=ha[a],u=t,c=o,(d=l)?u.data=u.data.replace(d,s):-1===u.data.indexOf(s)&&(u.data=c?s+u.data:u.data+s),a;var s,u,c,d},va=(e,t,n)=>e.reduce(((e,o,r)=>{let i=t[r];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":pa(e,""):!1===e?"":e}return e+o+(i??"")}),"");function ya(e){let t=this||{},n=e.call?e(t.p):e;return ma(n.unshift?n.raw?va(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,ua(t.target),t.g,t.o,t.k)}function ba(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function wa(e,t,n){return t&&ba(e.prototype,t),n&&ba(e,n),e}function xa(){return xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xa.apply(this,arguments)}function _a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ka(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Ea(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}ya.bind({g:1}),ya.bind({k:1});var Ca=function(){return""},Oa=t.createContext({enqueueSnackbar:Ca,closeSnackbar:Ca}),Sa="@media (max-width:599.95px)",Na="@media (min-width:600px)",ja=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Ta=function(e){return""+ja(e.vertical)+ja(e.horizontal)},Pa=function(e){return!!e||0===e},Ma="unmounted",Aa="exited",Ra="entering",Ia="entered",Da="exiting",La=function(e){function t(t){var n;n=e.call(this,t)||this;var o,r=t.appear;return n.appearStatus=null,t.in?r?(o=Aa,n.appearStatus=Ra):o=Ia:o=t.unmountOnExit||t.mountOnEnter?Ma:Aa,n.state={status:o},n.nextCallback=null,n}_a(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ma?{status:Aa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ra&&n!==Ia&&(t=Ra):(n===Ra||n===Ia)&&(t=Da)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Ra?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===Aa&&this.setState({status:Ma})},n.performEnter=function(e){var t=this,n=this.props.enter,o=e,r=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:Ra},(function(){t.props.onEntering&&t.props.onEntering(t.node,o),t.onTransitionEnd(r.enter,(function(){t.safeSetState({status:Ia},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))}))}))):this.safeSetState({status:Ia},(function(){t.props.onEntered&&t.props.onEntered(t.node,o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Da},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Aa},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:Aa},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ma)return null;var t=this.props;return(0,t.children)(e,ka(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},wa(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(t.Component);function qa(){}function Fa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function za(e,t){return c((function(){return null==e&&null==t?null:function(n){Fa(e,n),Fa(t,n)}}),[e,t])}function Va(e){var t=e.timeout,n=e.style,o=void 0===n?{}:n,r=e.mode;return{duration:"object"==typeof t?t[r]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}La.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qa,onEntering:qa,onEntered:qa,onExit:qa,onExiting:qa,onExited:qa};var Ba="cubic-bezier(0.4, 0, 0.2, 1)",Ha="cubic-bezier(0.0, 0, 0.2, 1)",Ua="cubic-bezier(0.4, 0, 0.6, 1)",Wa=function(e){e.scrollTop=e.scrollTop},$a=function(e){return Math.round(e)+"ms"};function Ga(e,t){void 0===e&&(e=["all"]);var n=t||{},o=n.duration,r=void 0===o?300:o,i=n.easing,a=void 0===i?Ba:i,l=n.delay,s=void 0===l?0:l;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof r?r:$a(r),n="string"==typeof s?s:$a(s);return e+" "+t+" "+a+" "+n})).join(",")}function Ka(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function Ya(e,t){if(t){var n=function(e,t){var n,o=t.getBoundingClientRect(),r=Ka(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=r.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");a=parseInt(s[4],10),l=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-l)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var Za=o((function(e,t){var n=e.children,o=e.direction,u=void 0===o?"down":o,c=e.in,d=e.style,f=e.timeout,p=void 0===f?0:f,h=e.onEnter,g=e.onEntered,m=e.onExit,v=e.onExited,y=ka(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),b=r(null),w=za(n.ref,b),x=za(w,t),_=i((function(){b.current&&Ya(u,b.current)}),[u]);return a((function(){if(!c&&"down"!==u&&"right"!==u){var e=function(e,t){var n;function o(){for(var o=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(o,i)}),t)}return void 0===t&&(t=166),o.clear=function(){clearTimeout(n)},o}((function(){b.current&&Ya(u,b.current)})),t=Ka(b.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[u,c]),a((function(){c||_()}),[c,_]),l(La,Object.assign({appear:!0,nodeRef:b,onEnter:function(e,t){Ya(u,e),Wa(e),h&&h(e,t)},onEntered:g,onEntering:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||Ha,n=Va({timeout:p,mode:"enter",style:xa({},d,{transitionTimingFunction:t})});e.style.webkitTransition=Ga("-webkit-transform",n),e.style.transition=Ga("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==d?void 0:d.transitionTimingFunction)||Ua,n=Va({timeout:p,mode:"exit",style:xa({},d,{transitionTimingFunction:t})});e.style.webkitTransition=Ga("-webkit-transform",n),e.style.transition=Ga("transform",n),Ya(u,e),m&&m(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",v&&v(e)},in:c,timeout:p},y),(function(e,t){return s(n,xa({ref:x,style:xa({visibility:"exited"!==e||c?void 0:"hidden"},d,{},n.props.style)},t))}))}));Za.displayName="Slide";var Xa=function(e){return t.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},Qa=function(){return t.createElement(Xa,null,t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},Ja=function(){return t.createElement(Xa,null,t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},el=function(){return t.createElement(Xa,null,t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},tl=function(){return t.createElement(Xa,null,t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},nl={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:t.createElement(Qa,null),warning:t.createElement(Ja,null),error:t.createElement(el,null),info:t.createElement(tl,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Za,transitionDuration:{enter:225,exit:195}},ol=function(e,t){return function(n,o){return void 0===o&&(o=!1),o?xa({},nl[n],{},t[n],{},e[n]):"autoHideDuration"===n?function(e,t){var n=function(e){return"number"==typeof e||null===e};return n(e)?e:n(t)?t:nl.autoHideDuration}(e.autoHideDuration,t.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some((function(t){return typeof e===t}))};return n(e,["string","number"])?e:n(e,["object"])?xa({},nl.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?xa({},nl.transitionDuration,{},t):nl.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||nl[n]}};function rl(e){return Object.entries(e).reduce((function(e,t){var n,o=t[0],r=t[1];return xa({},e,((n={})[o]=ya(r),n))}),{})}var il="notistack-SnackbarContainer",al="notistack-Snackbar",ll="notistack-CollapseWrapper",sl="notistack-MuiContent",ul=function(e){return"notistack-MuiContent-"+e},cl=rl({root:{height:0},entered:{height:"auto"}}),dl="0px",fl=o((function(e,t){var n=e.children,o=e.in,i=e.onExited,a=r(null),s=r(null),u=za(t,s),c=function(){return a.current?a.current.clientHeight:0};return l(La,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=dl},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=c(),n=Va({timeout:175,mode:"enter"}),o=n.duration,r=n.easing;e.style.transitionDuration="string"==typeof o?o:o+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=r||""},onExit:function(e){e.style.height=c()+"px"},onExited:i,onExiting:function(e){Wa(e);var t=Va({timeout:175,mode:"exit"}),n=t.duration,o=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=dl,e.style.transitionTimingFunction=o||""},nodeRef:s,timeout:175},(function(e,t){return l("div",Object.assign({ref:u,className:sn(cl.root,"entered"===e&&cl.entered),style:xa({pointerEvents:"all",overflow:"hidden",minHeight:dl,transition:Ga("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!o&&{visibility:"hidden"})},t),l("div",{ref:a,className:ll,style:{display:"flex",width:"100%"}},n))}))}));fl.displayName="Collapse";var pl={right:"left",left:"right",bottom:"up",top:"down"},hl=function(e){return"center"!==e.horizontal?pl[e.horizontal]:pl[e.vertical]},gl=function(e){return"anchorOrigin"+Ta(e)},ml=function(){};function vl(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var a=[].concat(r);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),ml)}var yl=typeof window<"u"?f:a;function bl(e){var t=r(e);return yl((function(){t.current=e})),i((function(){return t.current.apply(void 0,arguments)}),[])}var wl=o((function(e,t){var n=e.children,o=e.className,s=e.autoHideDuration,u=e.disableWindowBlurListener,c=void 0!==u&&u,d=e.onClose,f=e.id,p=e.open,h=e.SnackbarProps,g=void 0===h?{}:h,m=r(),v=bl((function(){d&&d.apply(void 0,arguments)})),y=bl((function(e){!d||null==e||(m.current&&clearTimeout(m.current),m.current=setTimeout((function(){v(null,"timeout",f)}),e))}));a((function(){return p&&y(s),function(){m.current&&clearTimeout(m.current)}}),[p,s,y]);var b=function(){m.current&&clearTimeout(m.current)},w=i((function(){null!=s&&y(.5*s)}),[s,y]);return a((function(){if(!c&&p)return window.addEventListener("focus",w),window.addEventListener("blur",b),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",b)}}),[c,w,p]),l("div",Object.assign({ref:t},g,{className:sn(al,o),onMouseEnter:function(e){g.onMouseEnter&&g.onMouseEnter(e),b()},onMouseLeave:function(e){g.onMouseLeave&&g.onMouseLeave(e),w()}}),n)}));wl.displayName="Snackbar";var xl,_l=rl({root:(xl={display:"flex",flexWrap:"wrap",flexGrow:1},xl[Na]={flexGrow:"initial",minWidth:"288px"},xl)}),kl=o((function(e,n){var o=e.className,r=ka(e,["className"]);return t.createElement("div",Object.assign({ref:n,className:sn(_l.root,o)},r))}));kl.displayName="SnackbarContent";var El=rl({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),Cl="notistack-snackbar",Ol=o((function(e,n){var o=e.id,r=e.message,i=e.action,a=e.iconVariant,l=e.variant,s=e.hideIconVariant,u=e.style,c=e.className,d=a[l],f=i;return"function"==typeof f&&(f=f(o)),t.createElement(kl,{ref:n,role:"alert","aria-describedby":Cl,style:u,className:sn(sl,ul(l),El.root,El[l],c,!s&&d&&El.lessPadding)},t.createElement("div",{id:Cl,className:El.message},s?null:d,r),f&&t.createElement("div",{className:El.action},f))}));Ol.displayName="MaterialDesignContent";var Sl,Nl,jl,Tl,Pl,Ml,Al,Rl=h(Ol),Il=rl({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),Dl=function(e){var n=r(),o=p(!0),l=o[0],s=o[1],u=vl([e.snack.onClose,e.onClose]),d=i((function(){n.current=setTimeout((function(){s((function(e){return!e}))}),125)}),[]);a((function(){return function(){n.current&&clearTimeout(n.current)}}),[]);var f=e.snack,h=e.classes,g=e.Component,m=void 0===g?Rl:g,v=c((function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter((function(e){return!t[e]})).reduce((function(t,n){var o;return xa({},t,((o={})[n]=e[n],o))}),{})}(h)}),[h]),y=f.open,b=f.SnackbarProps,w=f.TransitionComponent,x=f.TransitionProps,_=f.transitionDuration,k=f.disableWindowBlurListener,E=f.content,C=ka(f,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=xa({direction:hl(C.anchorOrigin),timeout:_},x),S=E;"function"==typeof S&&(S=S(C.id,C.message));var N=["onEnter","onEntered","onExit","onExited"].reduce((function(t,n){var o;return xa({},t,((o={})[n]=vl([e.snack[n],e[n]],C.id),o))}),{});return t.createElement(fl,{in:l,onExited:N.onExited},t.createElement(wl,{open:y,id:C.id,disableWindowBlurListener:k,autoHideDuration:C.autoHideDuration,className:sn(Il.wrappedRoot,v.root,v[gl(C.anchorOrigin)]),SnackbarProps:b,onClose:u},t.createElement(w,Object.assign({},O,{appear:!0,in:y,onExit:N.onExit,onExited:d,onEnter:N.onEnter,onEntered:vl([N.onEntered,function(){e.snack.requestClose&&u(null,"instructed",e.snack.id)}],C.id)}),S||t.createElement(m,Object.assign({},C)))))},Ll={default:20,dense:4},ql={default:6,dense:2},Fl="."+ll,zl=rl({root:(Sl={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Ga(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Sl[Fl]={padding:ql.default+"px 0px",transition:"padding 300ms ease 0ms"},Sl.maxWidth="calc(100% - "+2*Ll.default+"px)",Sl[Sa]={width:"100%",maxWidth:"calc(100% - 32px)"},Sl),rootDense:(Nl={},Nl[Fl]={padding:ql.dense+"px 0px"},Nl),top:{top:Ll.default-ql.default+"px",flexDirection:"column"},bottom:{bottom:Ll.default-ql.default+"px",flexDirection:"column-reverse"},left:(jl={left:Ll.default+"px"},jl[Na]={alignItems:"flex-start"},jl[Sa]={left:"16px"},jl),right:(Tl={right:Ll.default+"px"},Tl[Na]={alignItems:"flex-end"},Tl[Sa]={right:"16px"},Tl),center:(Pl={left:"50%",transform:"translateX(-50%)"},Pl[Na]={alignItems:"center"},Pl)}),Vl=function(e){var n=e.classes,o=void 0===n?{}:n,r=e.anchorOrigin,i=e.dense,a=e.children,l=sn(il,zl[r.vertical],zl[r.horizontal],zl.root,o.containerRoot,o["containerAnchorOrigin"+Ta(r)],i&&zl.rootDense);return t.createElement("div",{className:l},a)},Bl=h(Vl),Hl="production"!==process.env.NODE_ENV,Ul={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},Wl=function(e){return!("string"==typeof e||g(e))},$l=function(e){function n(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var o=Wl(e)?e:t,r=Wl(e)?e.message:e,i=o.key,a=o.preventDuplicate,l=ka(o,["key","preventDuplicate"]),s=Pa(i),u=s?i:(new Date).getTime()+Math.random(),c=ol(l,n.props),d=xa({id:u},l,{message:r,open:!0,entered:!1,requestClose:!1,persist:c("persist"),action:c("action"),content:c("content"),variant:c("variant"),anchorOrigin:c("anchorOrigin"),disableWindowBlurListener:c("disableWindowBlurListener"),autoHideDuration:c("autoHideDuration"),hideIconVariant:c("hideIconVariant"),TransitionComponent:c("TransitionComponent"),transitionDuration:c("transitionDuration"),TransitionProps:c("TransitionProps",!0),iconVariant:c("iconVariant",!0),style:c("style",!0),SnackbarProps:c("SnackbarProps",!0),className:sn(n.props.className,l.className)});return d.persist&&(d.autoHideDuration=void 0),n.setState((function(e){if(void 0===a&&n.props.preventDuplicate||a){var t=function(e){return s?e.id===u:e.message===r},o=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(o||i)return e}return n.handleDisplaySnack(xa({},e,{queue:[].concat(e.queue,[d])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?xa({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,o=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&("production"!==process.env.NODE_ENV&&function(e){if(Hl){var t=Ul[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}}("NO_PERSIST_ALL"),o=!0);var r=e.snacks.map((function(e){return t||e.persist&&!o?xa({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),xa({},e,{open:!1})):xa({},e,{requestClose:!0}))}));return xa({},e,{snacks:r})},n.handleEnteredSnack=function(e,t,o){if(!Pa(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===o?xa({},e,{entered:!0}):xa({},e)}))}}))},n.handleCloseSnack=function(e,t,o){n.props.onClose&&n.props.onClose(e,t,o);var r=void 0===o;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return r||e.id===o?e.entered?xa({},e,{open:!1}):xa({},e,{requestClose:!0}):xa({},e)})),queue:n.filter((function(e){return e.id!==o}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));Pa(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!Pa(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var o=n.processQueue(xa({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===o.queue.length?o:n.handleDismissOldest(o)}))},Ml=n.enqueueSnackbar,Al=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(Ea(n)),closeSnackbar:n.closeSnackbar.bind(Ea(n))}},n}return _a(n,e),n.prototype.render=function(){var e=this,n=this.state.contextValue,o=this.props,r=o.domRoot,i=o.children,a=o.dense,l=void 0!==a&&a,s=o.Components,u=void 0===s?{}:s,c=o.classes,d=this.state.snacks.reduce((function(e,t){var n,o=Ta(t.anchorOrigin),r=e[o]||[];return xa({},e,((n={})[o]=[].concat(r,[t]),n))}),{}),f=Object.keys(d).map((function(n){var o=d[n],r=o[0];return t.createElement(Bl,{key:n,dense:l,anchorOrigin:r.anchorOrigin,classes:c},o.map((function(n){return t.createElement(Dl,{key:n.id,snack:n,classes:c,Component:u[n.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:vl([e.handleExitedSnack,e.props.onExited],n.id),onEntered:vl([e.handleEnteredSnack,e.props.onEntered],n.id)})})))}));return t.createElement(Oa.Provider,{value:n},i,r?ge(f,r):f)},wa(n,[{key:"maxSnack",get:function(){return this.props.maxSnack||nl.maxSnack}}]),n}(d),Gl=function(){return u(Oa)};const Kl=o(((e,t)=>{const{id:n,message:o,severity:r,alertClassName:i,alertVariant:a,closeButton:l,...s}=me(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:u}=Gl();return Oe.jsx(kl,{ref:t,role:"alert",...s,children:Oe.jsx(aa,{className:i,severity:r,variant:a,onClose:l?()=>u(n):void 0,children:o})})})),Yl=o(((e,t)=>{const{id:n,message:o,closeButton:r,type:i,...a}=me(e,["anchorOrigin","autoHideDuration","hideIconVariant","iconVariant","persist"]),{closeSnackbar:l}=Gl(),s="loading"===i;return Oe.jsx(kl,{ref:t,role:"alert",...a,children:Oe.jsxs("div",{className:sn("flex items-center justify-center w-full",s&&"pl-6",r&&"pr-6"),children:["loading"===i?Oe.jsx(fi,{width:20,height:20,className:"left-2 absolute top-1/2 -translate-y-1/2"}):null,Oe.jsx("div",{children:o}),r?Oe.jsx(wi,{onClick:()=>l(n),width:20,height:20,className:"right-2 absolute top-1/2 -translate-y-1/2"}):null]})})})),Zl=e=>Oe.jsx($l,{...e,Components:{alert:Kl,info:Yl},autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"},domRoot:document.body,maxSnack:3,classes:{root:"min-w-fit"},className:"w-fit min-w-fit max-w-fit ",children:e.children}),Xl=({children:e,...t})=>Oe.jsx(N,{autoHideDuration:t.autoHideDuration??3e3,...t,children:e&&Oe.jsx("div",{children:e})});function Ql(e){Ml({message:e,variant:"alert",severity:"error",alertClassName:"min-w-[350px] max-w-[350px]",alertVariant:"filled",closeButton:!0,autoHideDuration:6e3,anchorOrigin:{vertical:"top",horizontal:"right"}})}function Jl(e){Ml({variant:"alert",message:e,severity:"success",alertClassName:"min-w-[350px] bg-theta-700 flex w-full text-center justify-center items-center !text-[color:var(--colors-link-text-standart)]",alertVariant:"filled",autoHideDuration:6e3,closeButton:!0,anchorOrigin:{vertical:"top",horizontal:"right"}})}function es(e,t){return Ml({variant:"info",message:e,autoHideDuration:6e3,className:"bg-gama-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>Al(null==t?void 0:t.id)}const ts={info:(e,t)=>es(e,t),error:(e,t)=>function(e,t){return Ml({variant:"info",message:e,autoHideDuration:6e3,className:"bg-red-700 text-white !min-w-[100px] !max-w-[400px] rounded-md p-4 flex items-center",anchorOrigin:{vertical:"bottom",horizontal:"center"},...t}),()=>Al(null==t?void 0:t.id)}(e,t),loading:(e,t)=>es(e,{...t,type:"loading"})},ns=({dataTest:e,...t})=>Oe.jsx(j,{...t,"data-test":e,sx:{...t.sx,"&.MuiCheckbox-root":{color:"var(--colors-delta-500) !important"},"&.MuiCheckbox-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"var(--colors-gama-500) !important"},"&.MuiCheckbox-root.Mui-disabled":{color:"var(--colors-delta-200) !important"},"&.MuiCheckbox-root .PrivateSwitchBase-input":{height:"100% !important",width:"100% !important"}}}),os={input:"_input_sj64y_1",active:"_active_sj64y_1",large:"_large_sj64y_40",small:"_small_sj64y_43",error:"_error_sj64y_46",disabled:"_disabled_sj64y_91",readOnly:"_readOnly_sj64y_136",notEditable:"_notEditable_sj64y_181",label:"_label_sj64y_227",description:"_description_sj64y_248",startIcon:"_startIcon_sj64y_269",endIcon:"_endIcon_sj64y_290"},rs=({description:e,error:t=!1,label:n,refLink:o,startIcon:r,endIcon:i,type:a,readOnly:l,notEditable:s,dataTest:u,size:c="large",className:d,...f})=>{const p=s?"text":a||"text",h="small"===c?os.small:"",g=t?"error":f.disabled?"disabled":l?"readOnly":s?"notEditable":"active";return Oe.jsxs("div",{className:sn("relative",d),children:[Oe.jsx("label",{htmlFor:"custom-input",className:`${os.label} ${os[g]}`,children:n}),Oe.jsx("span",{className:` ${os.startIcon} ${os[g]} ${"readOnly"===g?"left-0":""}`,children:r}),Oe.jsx("input",{...f,ref:o,type:p,className:sn(os.input,os[g],h,"readOnly"===g&&r&&"pl-8","readOnly"===g&&i&&"pr-8",r&&"pl-12",i&&"pr-12",d),readOnly:s||l,"data-test":u}),Oe.jsx("span",{className:`${os.endIcon} ${os[g]} ${"readOnly"===g?"right-0":""}`,children:i}),Oe.jsx("div",{className:`${os.description} ${os[g]}`,children:e})]})},is=({allowClear:e,onClear:t,readOnly:n,disabled:o,dataTest:r,...i})=>Oe.jsx(T,{...i,"data-test":r,disabled:o||n,type:i.type||"mui-input",InputProps:e&&i.value?{endAdornment:Oe.jsx("div",{className:"z-40 hover:bg-gama-100 duration-300 absolute right-4 p-[2px] rounded-full flex items-center justify-center",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==t||t()},children:Oe.jsx(wi,{width:18,height:18})})}:i.InputProps,sx:{"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)":{backgroundColor:"#e8f0fe !important"},"& input":{backgroundColor:"transparent"},"& .MuiInputBase-root":{backgroundColor:"transparent"},"& .MuiInputBase-colorPrimary fieldset":{borderColor:"var(--colors-delta-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary:hover fieldset":{borderColor:"var(--colors-gama-300) !important",borderWidth:"2px !important"},"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset":{borderColor:"var(--colors-gama-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset":{borderColor:"var(--colors-error-500) !important"},"& .MuiInputBase-colorPrimary.Mui-focused.Mui-error fieldset":{borderColor:"#d3302f !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-300) !important"},"& label.Mui-focused":{color:"var(--colors-gama-500) !important"},"& label.Mui-focused.Mui-error":{color:"#d3302f !important"},"& label.Mui-disabled":{color:"var(--colors-delta-300) !important"},"& .MuiOutlinedInput-input::placeholder":{color:"#666666",opacity:"100"},"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-300) !important"},...n&&{"& .MuiOutlinedInput-input.Mui-disabled":{WebkitTextFillColor:"var(--colors-delta-800) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled":{backgroundColor:"var(--colors-delta-10) !important"},"& .MuiInputBase-colorPrimary.Mui-disabled fieldset":{borderColor:"var(--colors-delta-200) !important"}},...i.sx}}),as={textarea:"_textarea_1p8hl_1",active:"_active_1p8hl_1",error:"_error_1p8hl_40",label:"_label_1p8hl_80",disabled:"_disabled_1p8hl_88",description:"_description_1p8hl_93"},ls=({id:e,variant:t="active",label:n="",labelClassName:o="",description:i="",value:l="",minRows:s=3,maxRows:u=1/0,disabled:c,error:d,errorMessage:h,containerClassName:g="",className:m="",maxLength:v=1/0,counter:y,refLink:b,dataTest:w,counterLimit:x,..._})=>{const k=r(null),E=b||k,C=!(!y||!x),[O,S]=p(!1);a((()=>{S(!0)}),[]),((e,t,n,o,r,i)=>{f((()=>{if(e){const t=i?32:0;e.style.height="auto";const n=20,r=e.scrollHeight-24;Math.ceil(r/n)>o?e.style.height=`${n*o+24+t}px`:e.style.height=`${e.scrollHeight+t}px`}}),[e,t,n,o,r,i])})(E.current,l,s,u,O,C),u<s&&(s=u);const[N,j]=p(l.length);a((()=>{j(l.length)}),[l]);const T=d?"error":"active",P=d?"error":c?"disabled":"active";return Oe.jsxs("div",{className:`flex flex-col gap-1 relative ${g}`,"data-test":w,children:[Oe.jsx("label",{htmlFor:e,className:`${as.label} ${as[P]} ${o}`,children:n}),Oe.jsx("span",{className:`${as.description} ${as[P]}`,children:d?h:i}),"view_only"===t?Oe.jsx("div",{className:"font-roboto text-sm font-normal pt-3 text-gray-700",children:l}):"not_editable"===t?Oe.jsx("div",{className:"font-roboto text-sm font-normal rounded p-3 bg-gray-200 text-gray-700",children:l}):Oe.jsx("textarea",{..._,id:e,ref:E,className:`${as.textarea} ${as[T]} ${m} ${C?"pb-[32px]":""}`,wrap:"soft",value:l,disabled:c,maxLength:v}),C&&Oe.jsxs("div",{className:"flex justify-end absolute bottom-3 right-3 text-[10px] font-roboto h-[15px] pointer-events-none",children:[N,"/",x]})]})};var ss=function(){this.__data__=[],this.size=0};var us=function(e,t){return e===t||e!=e&&t!=t},cs=us;var ds=function(e,t){for(var n=e.length;n--;)if(cs(e[n][0],t))return n;return-1},fs=ds,ps=Array.prototype.splice;var hs=function(e){var t=this.__data__,n=fs(t,e);return!(n<0)&&(n==t.length-1?t.pop():ps.call(t,n,1),--this.size,!0)},gs=ds;var ms=function(e){var t=this.__data__,n=gs(t,e);return n<0?void 0:t[n][1]},vs=ds;var ys=function(e){return vs(this.__data__,e)>-1},bs=ds;var ws=function(e,t){var n=this.__data__,o=bs(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},xs=ss,_s=hs,ks=ms,Es=ys,Cs=ws;function Os(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Os.prototype.clear=xs,Os.prototype.delete=_s,Os.prototype.get=ks,Os.prototype.has=Es,Os.prototype.set=Cs;var Ss=Os,Ns=Ss;var js=function(){this.__data__=new Ns,this.size=0};var Ts=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Ps=function(e){return this.__data__.get(e)};var Ms=function(e){return this.__data__.has(e)},As="object"==typeof be&&be&&be.Object===Object&&be,Rs=As,Is="object"==typeof self&&self&&self.Object===Object&&self,Ds=Rs||Is||Function("return this")(),Ls=Ds.Symbol,qs=Ls,Fs=Object.prototype,zs=Fs.hasOwnProperty,Vs=Fs.toString,Bs=qs?qs.toStringTag:void 0;var Hs=function(e){var t=zs.call(e,Bs),n=e[Bs];try{e[Bs]=void 0;var o=!0}catch{}var r=Vs.call(e);return o&&(t?e[Bs]=n:delete e[Bs]),r},Us=Object.prototype.toString;var Ws=function(e){return Us.call(e)},$s=Hs,Gs=Ws,Ks=Ls?Ls.toStringTag:void 0;var Ys=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ks&&Ks in Object(e)?$s(e):Gs(e)};var Zs=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Xs=Ys,Qs=Zs;var Js=function(e){if(!Qs(e))return!1;var t=Xs(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},eu=Ds["__core-js_shared__"],tu=function(){var e=/[^.]+$/.exec(eu&&eu.keys&&eu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var nu=function(e){return!!tu&&tu in e},ou=Function.prototype.toString;var ru=function(e){if(null!=e){try{return ou.call(e)}catch{}try{return e+""}catch{}}return""},iu=Js,au=nu,lu=Zs,su=ru,uu=/^\[object .+?Constructor\]$/,cu=Function.prototype,du=Object.prototype,fu=cu.toString,pu=du.hasOwnProperty,hu=RegExp("^"+fu.call(pu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var gu=function(e){return!(!lu(e)||au(e))&&(iu(e)?hu:uu).test(su(e))};var mu=function(e,t){return null==e?void 0:e[t]},vu=gu,yu=mu;var bu=function(e,t){var n=yu(e,t);return vu(n)?n:void 0},wu=bu(Ds,"Map"),xu=bu(Object,"create"),_u=xu;var ku=function(){this.__data__=_u?_u(null):{},this.size=0};var Eu=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Cu=xu,Ou=Object.prototype.hasOwnProperty;var Su=function(e){var t=this.__data__;if(Cu){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ou.call(t,e)?t[e]:void 0},Nu=xu,ju=Object.prototype.hasOwnProperty;var Tu=function(e){var t=this.__data__;return Nu?void 0!==t[e]:ju.call(t,e)},Pu=xu;var Mu=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pu&&void 0===t?"__lodash_hash_undefined__":t,this},Au=ku,Ru=Eu,Iu=Su,Du=Tu,Lu=Mu;function qu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}qu.prototype.clear=Au,qu.prototype.delete=Ru,qu.prototype.get=Iu,qu.prototype.has=Du,qu.prototype.set=Lu;var Fu=qu,zu=Ss,Vu=wu;var Bu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Hu=Bu;var Uu=function(e,t){var n=e.__data__;return Hu(t)?n["string"==typeof t?"string":"hash"]:n.map},Wu=Uu;var $u=function(e){var t=Wu(this,e).delete(e);return this.size-=t?1:0,t},Gu=Uu;var Ku=function(e){return Gu(this,e).get(e)},Yu=Uu;var Zu=function(e){return Yu(this,e).has(e)},Xu=Uu;var Qu=function(e,t){var n=Xu(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Ju=function(){this.size=0,this.__data__={hash:new Fu,map:new(Vu||zu),string:new Fu}},ec=$u,tc=Ku,nc=Zu,oc=Qu;function rc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}rc.prototype.clear=Ju,rc.prototype.delete=ec,rc.prototype.get=tc,rc.prototype.has=nc,rc.prototype.set=oc;var ic=rc,ac=Ss,lc=wu,sc=ic;var uc=function(e,t){var n=this.__data__;if(n instanceof ac){var o=n.__data__;if(!lc||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new sc(o)}return n.set(e,t),this.size=n.size,this},cc=Ss,dc=js,fc=Ts,pc=Ps,hc=Ms,gc=uc;function mc(e){var t=this.__data__=new cc(e);this.size=t.size}mc.prototype.clear=dc,mc.prototype.delete=fc,mc.prototype.get=pc,mc.prototype.has=hc,mc.prototype.set=gc;var vc=mc;var yc=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var bc=function(e){return this.__data__.has(e)},wc=ic,xc=yc,_c=bc;function kc(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wc;++t<n;)this.add(e[t])}kc.prototype.add=kc.prototype.push=xc,kc.prototype.has=_c;var Ec=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var Cc=function(e,t){return e.has(t)},Oc=kc,Sc=Ec,Nc=Cc;var jc=function(e,t,n,o,r,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new Oc:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(o)var m=a?o(g,h,d,t,e,i):o(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!Sc(t,(function(e,t){if(!Nc(p,t)&&(h===e||r(h,e,n,o,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!r(h,g,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var Tc=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};var Pc=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Mc=Ds.Uint8Array,Ac=us,Rc=jc,Ic=Tc,Dc=Pc,Lc=Ls?Ls.prototype:void 0,qc=Lc?Lc.valueOf:void 0;var Fc=function(e,t,n,o,r,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Mc(e),new Mc(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ac(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Ic;case"[object Set]":var s=1&o;if(l||(l=Dc),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;o|=2,a.set(e,t);var c=Rc(l(e),l(t),o,r,i,a);return a.delete(e),c;case"[object Symbol]":if(qc)return qc.call(e)==qc.call(t)}return!1};var zc=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e},Vc=Array.isArray,Bc=zc,Hc=Vc;var Uc=function(e,t,n){var o=t(e);return Hc(e)?o:Bc(o,n(e))};var Wc=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};var $c=Wc,Gc=function(){return[]},Kc=Object.prototype.propertyIsEnumerable,Yc=Object.getOwnPropertySymbols,Zc=Yc?function(e){return null==e?[]:(e=Object(e),$c(Yc(e),(function(t){return Kc.call(e,t)})))}:Gc,Xc=Zc;var Qc=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};var Jc=function(e){return null!=e&&"object"==typeof e},ed=Ys,td=Jc;var nd=function(e){return td(e)&&"[object Arguments]"==ed(e)},od=nd,rd=Jc,id=Object.prototype,ad=id.hasOwnProperty,ld=id.propertyIsEnumerable,sd=od(function(){return arguments}())?od:function(e){return rd(e)&&ad.call(e,"callee")&&!ld.call(e,"callee")},ud=sd,cd={exports:{}};var dd=function(){return!1};!function(e,t){var n=Ds,o=dd,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||o;e.exports=l}(cd,cd.exports);var fd=cd.exports,pd=/^(?:0|[1-9]\d*)$/;var hd=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&pd.test(e))&&e>-1&&e%1==0&&e<t};var gd=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},md=Ys,vd=gd,yd=Jc,bd={};bd["[object Float32Array]"]=bd["[object Float64Array]"]=bd["[object Int8Array]"]=bd["[object Int16Array]"]=bd["[object Int32Array]"]=bd["[object Uint8Array]"]=bd["[object Uint8ClampedArray]"]=bd["[object Uint16Array]"]=bd["[object Uint32Array]"]=!0,bd["[object Arguments]"]=bd["[object Array]"]=bd["[object ArrayBuffer]"]=bd["[object Boolean]"]=bd["[object DataView]"]=bd["[object Date]"]=bd["[object Error]"]=bd["[object Function]"]=bd["[object Map]"]=bd["[object Number]"]=bd["[object Object]"]=bd["[object RegExp]"]=bd["[object Set]"]=bd["[object String]"]=bd["[object WeakMap]"]=!1;var wd=function(e){return yd(e)&&vd(e.length)&&!!bd[md(e)]};var xd=function(e){return function(t){return e(t)}},_d={exports:{}};!function(e,t){var n=As,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,a=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();e.exports=a}(_d,_d.exports);var kd=_d.exports,Ed=wd,Cd=xd,Od=kd&&kd.isTypedArray,Sd=Od?Cd(Od):Ed,Nd=Qc,jd=ud,Td=Vc,Pd=fd,Md=hd,Ad=Sd,Rd=Object.prototype.hasOwnProperty;var Id=function(e,t){var n=Td(e),o=!n&&jd(e),r=!n&&!o&&Pd(e),i=!n&&!o&&!r&&Ad(e),a=n||o||r||i,l=a?Nd(e.length,String):[],s=l.length;for(var u in e)(t||Rd.call(e,u))&&(!a||!("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Md(u,s)))&&l.push(u);return l},Dd=Object.prototype;var Ld=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Dd)};var qd=function(e,t){return function(n){return e(t(n))}},Fd=qd(Object.keys,Object),zd=Ld,Vd=Fd,Bd=Object.prototype.hasOwnProperty;var Hd=function(e){if(!zd(e))return Vd(e);var t=[];for(var n in Object(e))Bd.call(e,n)&&"constructor"!=n&&t.push(n);return t},Ud=Js,Wd=gd;var $d=function(e){return null!=e&&Wd(e.length)&&!Ud(e)},Gd=Id,Kd=Hd,Yd=$d;var Zd=function(e){return Yd(e)?Gd(e):Kd(e)},Xd=Uc,Qd=Xc,Jd=Zd;var ef=function(e){return Xd(e,Jd,Qd)},tf=ef,nf=Object.prototype.hasOwnProperty;var of=function(e,t,n,o,r,i){var a=1&n,l=tf(e),s=l.length;if(s!=tf(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:nf.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<s;){var g=e[c=l[u]],m=t[c];if(o)var v=a?o(m,g,c,t,e,i):o(g,m,c,e,t,i);if(!(void 0===v?g===m||r(g,m,n,o,i):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p},rf=bu(Ds,"DataView"),af=wu,lf=bu(Ds,"Promise"),sf=bu(Ds,"Set"),uf=bu(Ds,"WeakMap"),cf=Ys,df=ru,ff="[object Map]",pf="[object Promise]",hf="[object Set]",gf="[object WeakMap]",mf="[object DataView]",vf=df(rf),yf=df(af),bf=df(lf),wf=df(sf),xf=df(uf),_f=cf;(rf&&_f(new rf(new ArrayBuffer(1)))!=mf||af&&_f(new af)!=ff||lf&&_f(lf.resolve())!=pf||sf&&_f(new sf)!=hf||uf&&_f(new uf)!=gf)&&(_f=function(e){var t=cf(e),n="[object Object]"==t?e.constructor:void 0,o=n?df(n):"";if(o)switch(o){case vf:return mf;case yf:return ff;case bf:return pf;case wf:return hf;case xf:return gf}return t});var kf=vc,Ef=jc,Cf=Fc,Of=of,Sf=_f,Nf=Vc,jf=fd,Tf=Sd,Pf="[object Arguments]",Mf="[object Array]",Af="[object Object]",Rf=Object.prototype.hasOwnProperty;var If=function(e,t,n,o,r,i){var a=Nf(e),l=Nf(t),s=a?Mf:Sf(e),u=l?Mf:Sf(t),c=(s=s==Pf?Af:s)==Af,d=(u=u==Pf?Af:u)==Af,f=s==u;if(f&&jf(e)){if(!jf(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new kf),a||Tf(e)?Ef(e,t,n,o,r,i):Cf(e,t,s,n,o,r,i);if(!(1&n)){var p=c&&Rf.call(e,"__wrapped__"),h=d&&Rf.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new kf),r(g,m,n,o,i)}}return!!f&&(i||(i=new kf),Of(e,t,n,o,r,i))},Df=If,Lf=Jc;var qf=function e(t,n,o,r,i){return t===n||(null==t||null==n||!Lf(t)&&!Lf(n)?t!=t&&n!=n:Df(t,n,o,r,e,i))},Ff=qf;var zf=function(e,t){return Ff(e,t)},Vf={exports:{}};
|
|
196
20
|
/*!
|
|
197
21
|
* Quill Editor v1.3.7
|
|
198
22
|
* https://quilljs.com/
|
|
199
23
|
* Copyright (c) 2014, Jason Chen
|
|
200
24
|
* Copyright (c) 2013, salesforce.com
|
|
201
|
-
*/typeof self<"u"&&self;var y_=v_.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),l=n(45),a=n(46),s=n(47),u=n(48),c=n(49),d=n(12),p=n(32),f=n(33),h=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:d.default,Class:p.default,Style:f.default,Store:h.default}};t.default=g},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var l,a={},s={},u={},c={};function d(e,t){var n=f(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)}function p(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?p(e.parentNode,n):null}function f(e,t){var n;if(void 0===t&&(t=l.ANY),"string"==typeof e)n=c[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=c.block:e&l.LEVEL&l.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=s[o[r]])break;n=n||u[e.tagName]}return null==n?null:t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"==typeof n.keyName?a[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){(null==u[e]||null==n.className)&&(u[e]=n)})))),n}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(l=t.Scope||(t.Scope={})),t.create=d,t.find=p,t.query=f,t.register=h},function(e,t,n){var o=n(51),r=n(11),i=n(3),l=n(20),a=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+l.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+l.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=l.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=l.length(i)}return new s(n)},s.prototype.compose=function(e){var t=l.iterator(this.ops),n=l.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),o.push(t.next());i.retain-a>0&&n.next(i.retain-a)}for(var u=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),p=n.next(c);if("number"==typeof p.retain){var f={};"number"==typeof d.retain?f.retain=c:f.insert=d.insert;var h=l.attributes.compose(d.attributes,p.attributes,"number"==typeof d.retain);if(h&&(f.attributes=h),u.push(f),!n.hasNext()&&r(u.ops[u.ops.length-1],f)){var m=new s(t.rest());return u.concat(m).chop()}}else"number"==typeof p.delete&&"number"==typeof d.retain&&u.push(p)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=o(n[0],n[1],t),c=l.iterator(this.ops),d=l.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var a=c.next(n),s=d.next(n);r(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=l.iterator(this.ops),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=l.iterator(this.ops),o=l.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),a=n.next(i),u=o.next(i);if(a.delete)continue;u.delete?r.push(u):r.retain(i,l.attributes.transform(a.attributes,u.attributes,t))}else r.retain(l.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=l.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},a=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return typeof t>"u"||n.call(e,t)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)o=u(d,n),d!==(r=u(t,n))&&(h&&r&&(a(r)||(i=l(r)))?(i?(i=!1,c=o&&l(o)?o:[]):c=o&&a(o)?o:{},s(d,{name:n,newValue:e(h,c,r)})):typeof r<"u"&&s(d,{name:n,newValue:r}));return d}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=d(n(3)),l=d(n(2)),a=d(n(0)),s=d(n(16)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=1,g=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var i=a.default.create(b.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(a.default.Embed);g.scope=a.default.Scope.BLOCK_BLOT;var b=function(e){function t(e){p(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),v(t))}),new l.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(a.default.query(o,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),l=i.shift();l.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});var a=this;i.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+l.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof s.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+m),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-m)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(a.default.Block);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e||("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope)?t:v(e.parent,t)}b.blotName="block",b.tagName="P",b.defaultChild="break",b.allowedChildren=[u.default,a.default.Embed,c.default],t.bubbleFormats=v,t.BlockEmbed=g,t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var l=g(n(2)),a=g(n(14)),s=g(n(8)),u=g(n(9)),c=g(n(0)),d=n(15),p=g(d),f=g(n(3)),h=g(n(10)),m=g(n(34));function g(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,h.default)("quill"),w=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(v(this,e),this.options=x(t,o),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;C.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&y.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null!=this.imports[e]&&!o&&y.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,i=O(e,t,n),l=r(i,4);return e=l[0],t=l[1],n=l[3],C.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return C.call(this,(function(){var o=n.getSelection(!0),r=new l.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,b({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,b({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var l=this,a=void 0,s=O(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],C.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var l=this,a=void 0,s=O(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],C.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=O(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=O(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return C.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var l=this,a=void 0,s=O(e,0,n,o,i),u=r(s,4);return e=u[0],a=u[2],i=u[3],C.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=O(e,t,n),l=r(i,4);return e=l[0],t=l[1],n=l[3],C.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return C.call(this,(function(){e=new l.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=O(t,n,o),l=r(i,4);t=l[0],n=l[1],o=l[3],this.selection.setRange(new d.Range(t,n),o),o!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new l.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return C.call(this,(function(){return e=new l.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,f.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?y.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},w.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function C(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new l.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=k(r,a,t):0!==o&&(r=k(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),a.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,a,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return a}function O(e,t,n,r,i){var l={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(typeof n>"u"?"undefined":o(n))?(l=n,i=r):"string"==typeof n&&(null!=r?l[n]=r:i=n),[e,t,l,i=i||s.default.sources.API]}function k(e,t,n,o){if(null==e)return null;var i=void 0,a=void 0;if(t instanceof l.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),c=r(u,2);i=c[0],a=c[1]}else{var p=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),f=r(p,2);i=f[0],a=f[1]}return new d.Range(i,a-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:l.default,parchment:c.default,"core/module":u.default,"core/theme":m.default},t.expandConfig=x,t.overload=O,t.default=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(7)),l=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&l.default.query(o,l.default.Scope.BLOT)){var a=this.isolate(e,n);i&&a.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);d.allowedChildren=[d,l.default.Embed,i.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(0)).default.Text);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(54));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=(0,l(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var d=function(e){function t(){a(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",c.error),e}return u(t,e),o(t,[{key:"emit",value:function(){c.log.apply(c,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},t.default=d},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),l=1;l<n;l++)i[l-1]=arguments[l];(t=console)[e].apply(t,i)}}function l(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=l.level=function(e){r=e},t.default=l},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),l=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function a(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}function u(e,t,n){var u,c;if(a(e)||a(t)||e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),l(e,t,n));if(s(e)){if(!s(t)||e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=r(e),p=r(t)}catch{return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),u=d.length-1;u>=0;u--)if(d[u]!=p[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!l(e[c],t[c],n))return!1;return typeof e==typeof t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},l=d(n(2)),a=d(n(0)),s=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new l.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(c.default,this.length()-1),l=o(r,1)[0];null!=l&&l.deleteAt(l.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=a.default.query(o,a.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var l=this.newlineIndex(e,!0)+1,s=i-l+1,u=this.isolate(l,s),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-l+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,2),l=i[0],a=i[1];l.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=b(n(2)),a=b(n(20)),s=b(n(0)),u=b(n(13)),c=b(n(24)),d=n(4),p=b(d),f=b(n(16)),h=b(n(21)),m=b(n(11)),g=b(n(3));function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var w=/^[ -~]*$/,x=function(){function e(t){y(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=O(e)).reduce((function(e,l){var u=l.retain||l.delete||l.insert.length||1,c=l.attributes||{};if(null!=l.insert){if("string"==typeof l.insert){var f=l.insert;f.endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),e>=i&&!f.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,f);var h=t.scroll.line(e),m=r(h,2),b=m[0],v=m[1],y=(0,g.default)({},(0,d.bubbleFormats)(b));if(b instanceof p.default){var w=b.descendant(s.default.Leaf,v),x=r(w,1)[0];y=(0,g.default)(y,(0,d.bubbleFormats)(x))}c=a.default.attributes.diff(y,c)||{}}else if("object"===o(l.insert)){var C=Object.keys(l.insert)[0];if(null==C)return e;t.scroll.insertAt(e,C,l.insert[C])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new l.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),l=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var a=e-t.offset(n.scroll),s=t.newlineIndex(a+l)-a+1;t.formatAt(a,s,r,o[r])}else t.format(r,o[r]);l-=i}))}})),this.scroll.optimize(),this.update((new l.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new l.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new l.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof p.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=C((0,d.bubbleFormats)(n),t)}return t}));return g.default.apply(g.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new l.default).retain(e).insert(v({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new l.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return!(e.statics.blotName!==p.default.blotName||e.children.length>1)&&e.children.head instanceof f.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),a=i[0],s=i[1],c=0,d=new l.default;null!=a&&(c=a instanceof u.default?a.newlineIndex(s)-s+1:a.length()-s,d=a.delta().slice(s,s+c-1).insert("\n"));var p=this.getContents(e,t+c).diff((new l.default).insert(n).concat(d)),f=(new l.default).retain(e).concat(p);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(w)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),a=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),p=(new l.default).insert(u),f=(new l.default).insert(r.value());e=(new l.default).retain(a).concat(p.diff(f,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new l.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),(!e||!(0,m.default)(o.compose(e),this.delta))&&(e=o.diff(this.delta,n));return e}}]),e}();function C(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}function O(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null!=t.attributes&&(!0===t.attributes.list||!0===t.attributes.bullet)&&((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new l.default)}t.default=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(0)),l=u(n(21)),a=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=(0,u(n(10)).default)("quill:selection"),f=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch{}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;o.setNativeRange(r,i,l,a)}})),this.update(s.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),l=o(i,2),a=l[0],s=l[1];if(null==a)return null;var u=a.position(s,!0),c=o(u,2);r=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(r,s);var p=this.scroll.leaf(e+t),f=o(p,2);if(a=f[0],s=f[1],null==a)return null;var h=a.position(s,!0),m=o(h,2);return r=m[0],s=m[1],d.setEnd(r,s),d.getBoundingClientRect()}var g="left",b=void 0;return r instanceof Text?(s<r.data.length?(d.setStart(r,s),d.setEnd(r,s+1)):(d.setStart(r,s-1),d.setEnd(r,s),g="right"),b=d.getBoundingClientRect()):(b=a.domNode.getBoundingClientRect(),s>0&&(g="right")),{bottom:b.top+b.height,height:b.height,left:b[g],right:b[g],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=o(e,2),r=n[0],l=n[1],a=i.default.find(r,!0),s=a.offset(t.scroll);return 0===l?s:a instanceof i.default.Container?s+a.length():s+a.index(r,l)})),l=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),a=Math.min.apply(Math,[l].concat(c(r)));return new f(a,l-a)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var l=void 0,a=t.scroll.leaf(e),s=o(a,2),u=s[0],c=s[1],d=u.position(c,0!==n),p=o(d,2);l=p[0],c=p[1],r.push(l,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),l=o(i,1)[0],a=l;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));a=o(s,1)[0]}if(null!=l&&null!=a){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||r||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||o!==l.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,o),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),p.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[s.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(p)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,p)}}}]),e}();function m(e,t){try{t.parentNode}catch{return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(i(n(0)).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),l=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof a.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,l){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=l})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var l=null==n?a.create("text",t):a.create(t,n);this.appendChild(l)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],l=[[this,e]];return r instanceof t?l.concat(r.path(i,n)):(null!=r&&l.push([r,i]),l)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===n.domNode)&&t.detach()}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var o=u(e);(o.next!=t||null==o.next)&&(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(l.default);function u(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch{t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),l=n(31),a=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new l.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&null!=n&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(a.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new l(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function l(e){this.ops=e,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch{t=function(){}}try{n=Set}catch{n=function(){}}try{o=Promise}catch{o=function(){}}function r(i,l,a,s,c){"object"==typeof l&&(a=l.depth,s=l.prototype,c=l.includeNonEnumerable,l=l.circular);var d=[],p=[],f=typeof Buffer<"u";function h(i,a){if(null===i)return null;if(0===a)return i;var m,g;if("object"!=typeof i)return i;if(e(i,t))m=new t;else if(e(i,n))m=new n;else if(e(i,o))m=new o((function(e,t){i.then((function(t){e(h(t,a-1))}),(function(e){t(h(e,a-1))}))}));else if(r.__isArray(i))m=[];else if(r.__isRegExp(i))m=new RegExp(i.source,u(i)),i.lastIndex&&(m.lastIndex=i.lastIndex);else if(r.__isDate(i))m=new Date(i.getTime());else{if(f&&Buffer.isBuffer(i))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(m),m;e(i,Error)?m=Object.create(i):typeof s>"u"?(g=Object.getPrototypeOf(i),m=Object.create(g)):(m=Object.create(s),g=s)}if(l){var b=d.indexOf(i);if(-1!=b)return p[b];d.push(i),p.push(m)}for(var v in e(i,t)&&i.forEach((function(e,t){var n=h(t,a-1),o=h(e,a-1);m.set(n,o)})),e(i,n)&&i.forEach((function(e){var t=h(e,a-1);m.add(t)})),i){var y;g&&(y=Object.getOwnPropertyDescriptor(g,v)),(!y||null!=y.set)&&(m[v]=h(i[v],a-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(v=0;v<w.length;v++){var x=w[v];(O=Object.getOwnPropertyDescriptor(i,x))&&!O.enumerable&&!c||(m[x]=h(i[x],a-1),O.enumerable||Object.defineProperty(m,x,{enumerable:!1}))}}if(c){var C=Object.getOwnPropertyNames(i);for(v=0;v<C.length;v++){var O,k=C[v];(O=Object.getOwnPropertyDescriptor(i,k))&&O.enumerable||(m[k]=h(i[k],a-1),Object.defineProperty(m,k,{enumerable:!1}))}}return m}return typeof l>"u"&&(l=!0),typeof a>"u"&&(a=1/0),h(i,a)}function i(e){return Object.prototype.toString.call(e)}function l(e){return"object"==typeof e&&"[object Date]"===i(e)}function a(e){return"object"==typeof e&&"[object Array]"===i(e)}function s(e){return"object"==typeof e&&"[object RegExp]"===i(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=l,r.__isArray=a,r.__isRegExp=s,r.__getRegExpFlags=u,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},l=f(n(0)),a=f(n(8)),s=n(4),u=f(s),c=f(n(16)),d=f(n(13)),p=f(n(25));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function b(e){return e instanceof u.default||e instanceof s.BlockEmbed}var v=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return g(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),l=o(r,2),a=l[0],u=l[1],p=this.line(e+n),f=o(p,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=f&&a!==f&&u>0){if(a instanceof s.BlockEmbed||f instanceof s.BlockEmbed)return void this.optimize();if(a instanceof d.default){var h=a.newlineIndex(a.length(),!0);if(h>-1&&(a=a.split(h+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof c.default?null:f.children.head;a.moveChildren(f,g),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){null!=this.whitelist&&!this.whitelist[o]||(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==l.default.query(n,l.default.Scope.BLOCK)){var r=l.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var a=l.default.create(n,o);this.appendChild(a)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===l.default.Scope.INLINE_BLOT){var o=l.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(b,e)}},{key:"lines",value:function(){return function e(t,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){b(t)?r.push(t):t instanceof l.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(l.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[u.default,s.BlockEmbed,p.default],t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=m(n(21)),a=m(n(11)),s=m(n(3)),u=m(n(2)),c=m(n(20)),d=m(n(0)),p=m(n(5)),f=m(n(10)),h=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=(0,f.default)("quill:keyboard"),x=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(e){function t(e,n){b(this,t);var o=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){"list autofill"===t&&null!=e.scroll.whitelist&&!e.scroll.whitelist.list||o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},R),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},k),o.addBinding({key:t.keys.DELETE},{collapsed:!0},S)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},k),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},S)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},E),o.addBinding({key:t.keys.DELETE},{collapsed:!1},E),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},k),o.listen(),o}return y(t,e),i(t,null,[{key:"match",value:function(e,t){return t=j(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=j(e);if(null==o||null==o.key)return w.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,l=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==l.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=r(u,2),p=c[0],f=c[1],h=e.quill.getLeaf(s.index),m=r(h,2),g=m[0],b=m[1],v=0===s.length?[g,b]:e.quill.getLeaf(s.index+s.length),y=r(v,2),w=y[0],x=y[1],C=g instanceof d.default.Text?g.value().slice(0,b):"",O=w instanceof d.default.Text?w.value().slice(x):"",k={collapsed:0===s.length,empty:0===s.length&&p.length()<=1,format:e.quill.getFormat(s),offset:f,prefix:C,suffix:O};l.some((function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed||null!=t.empty&&t.empty!==k.empty||null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==k.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,a.default)(t.format[e],k.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix)||null!=t.suffix&&!t.suffix.test(k.suffix))&&!0!==t.handler.call(e,s,k)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function O(e,t){var n,o=e===C.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},o,/^$/),g(n,"handler",(function(n){var o=n.index;e===C.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===C.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),1))})),n}function k(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var l=this.quill.getLine(e.index-1),a=r(l,1)[0];if(null!=a&&a.length()>1){var s=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,p.default.sources.USER),this.quill.focus()}}function S(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,l=this.quill.getLine(e.index),a=r(l,1)[0];if(t.offset>=a.length()-1){var s=this.quill.getLine(e.index+1),u=r(s,1)[0];if(u){var d=a.formats(),f=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(d,f)||{},i=u.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,p.default.sources.USER)}}function E(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function R(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function T(e){return{key:C.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,l=this.quill.scroll.descendant(n,o),a=r(l,2),s=a[0],u=a[1];if(null!=s){var c=this.quill.getIndex(s),f=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),m=s.domNode.textContent.slice(f,h).split("\n");u=0,m.forEach((function(t,r){e?(s.insertAt(f+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(o,i,p.default.sources.SILENT)}}}}function N(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function j(e){if("string"==typeof e||"number"==typeof e)return j({key:e});if("object"===(typeof e>"u"?"undefined":o(e))&&(e=(0,l.default)(e,!1)),"string"==typeof e.key)if(null!=C.keys[e.key.toUpperCase()])e.key=C.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[x]=e.shortKey,delete e.shortKey),e}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:N("bold"),italic:N("italic"),underline:N("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":T(!0),"outdent code-block":T(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],l=(0,s.default)({},o.formats(),{list:"checked"}),a=(new u.default).retain(e.index).insert("\n",l).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],l=o[1],a=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-l-1).retain(1,{header:null});this.quill.updateContents(a,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),l=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-a).delete(n+1).retain(l.length()-2-a).retain(1,{list:s});this.quill.updateContents(c,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],l=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(l,p.default.sources.USER)}},"embed left":O(C.keys.LEFT,!1),"embed left shift":O(C.keys.LEFT,!0),"embed right":O(C.keys.RIGHT,!1),"embed right shift":O(C.keys.RIGHT,!0)}},t.default=C,t.SHORTKEY=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=s(n(0)),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return d(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==l.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),p=o(d,2);return i=p[0],s=p[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}(l.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=l(n(0)),r=n(4),i=l(r);function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(o.default.Container);c.allowedChildren=[i.default,r.BlockEmbed,c],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(i.default.Attributor.Style),d=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),p=new c("color","color",{scope:i.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=d,t.ColorStyle=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(i(n(6)).default);function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=a(n(23)),l=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0;function c(e,t){e.setAttribute(t,"true"!==e.getAttribute(t))}var d=function(){function e(t){var n=this;s(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=b(n(0)),r=b(n(5)),i=n(4),l=b(i),a=b(n(16)),s=b(n(25)),u=b(n(24)),c=b(n(35)),d=b(n(6)),p=b(n(22)),f=b(n(7)),h=b(n(55)),m=b(n(42)),g=b(n(23));function b(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":l.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":f.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":g.default}),o.default.register(l.default,a.default,u.default,d.default,p.default,f.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var l=o.create(this.statics.scope);i.wrap(l),l.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),(this.domNode.parentNode!=e.domNode||this.domNode.nextSibling!=n)&&e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),l=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),a=i.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=l.query(t,l.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(0)),l=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d="\ufeff",p=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return c(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(d).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var r=this.prev.length();this.prev.insertAt(r,o),t={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=d,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}]),t}(i.default.Embed);t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new o.default.Attributor.Attribute("align","align",i),a=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=l,t.AlignClass=a,t.AlignStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o=i(n(0)),r=n(26);function i(e){return e&&e.__esModule?e:{default:e}}var l=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),a=new r.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},l=new o.default.Attributor.Attribute("direction","dir",i),a=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=l,t.DirectionClass=a,t.DirectionStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new i.default.Attributor.Class("font","ql-font",c),p=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(i.default.Attributor.Style),f=new p("font","font-family",c);t.FontStyle=f,t.FontClass=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=l},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=l(n(0)),i=l(n(5));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(e,n){a(this,t);var o=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return u(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=p(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(l(n(9)).default);function d(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}function p(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return d(e)&&(n-=1),n}c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=c,t.getLastChangeIndex=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=h(n(3)),l=h(n(2)),a=h(n(8)),s=h(n(23)),u=h(n(34)),c=h(n(59)),d=h(n(60)),p=h(n(28)),f=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],C=["small",!1,"large","huge"],O=function(e){function t(e,n){m(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null!=o.tooltip&&!o.tooltip.root.contains(n.target)&&document.activeElement!==o.tooltip.textbox&&!o.quill.hasFocus()&&o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,r),o}return b(t,e),o(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&E(e,v),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&E(e,y,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?E(e,w):e.classList.contains("ql-header")?E(e,x):e.classList.contains("ql-size")&&E(e,C)),new p.default(e)}));var o=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(a.default.events.EDITOR_CHANGE,o)}}]),t}(u.default);O.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(o.index).delete(o.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(o.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(e){function t(e,n){m(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return b(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,a.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=S(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function S(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=k,t.default=O},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],l=e-r[1],a=this.iterator(i);(o=a())&&l<e+t;){var s=o.length();e>l?n(o,e-l,Math.min(t,l+s-e)):n(o,0,Math.min(s,e+t-l)),l+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),l=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[l.DATA_KEY].mutations&&(e.domNode[l.DATA_KEY].mutations=[]),t&&a(e.parent))},u=function(e){null==e.domNode[l.DATA_KEY]||null==e.domNode[l.DATA_KEY].mutations||(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=l.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(l.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=l.find(e,!1);a(t,!1),t instanceof i.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(u),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=l.find(e.target,!0);return null==t?null:null==t.domNode[l.DATA_KEY].mutations?(t.domNode[l.DATA_KEY].mutations=[e],t):(t.domNode[l.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null==e||e===o||null==e.domNode[l.DATA_KEY]||e.update(e.domNode[l.DATA_KEY].mutations||[],n)})),null!=this.domNode[l.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||l.query(o,l.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&a(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=l.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=l.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=l.query(n,l.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=l.query(o,l.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=l.query(n,l.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=l.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=l.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),l=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=l.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=l.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,o=1,r=0;function i(e,t,n){if(e==t)return e?[[r,e]]:[];(n<0||e.length<n)&&(n=null);var o=u(e,t),i=e.substring(0,o);o=c(e=e.substring(o),t=t.substring(o));var a=e.substring(e.length-o),s=l(e=e.substring(0,e.length-o),t=t.substring(0,t.length-o));return i&&s.unshift([r,i]),a&&s.push([r,a]),p(s),null!=n&&(s=m(s,n)),s=g(s)}function l(e,t){var l;if(!e)return[[o,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return l=[[o,s.substring(0,c)],[r,u],[o,s.substring(c+u.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==u.length)return[[n,e],[o,t]];var p=d(e,t);if(p){var f=p[0],h=p[1],m=p[2],g=p[3],b=p[4],v=i(f,m),y=i(h,g);return v.concat([[r,b]],y)}return a(e,t)}function a(e,t){for(var r=e.length,i=t.length,l=Math.ceil((r+i)/2),a=l,u=2*l,c=new Array(u),d=new Array(u),p=0;p<u;p++)c[p]=-1,d[p]=-1;c[a+1]=0,d[a+1]=0;for(var f=r-i,h=f%2!=0,m=0,g=0,b=0,v=0,y=0;y<l;y++){for(var w=-y+m;w<=y-g;w+=2){for(var x=a+w,C=(R=w==-y||w!=y&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;R<r&&C<i&&e.charAt(R)==t.charAt(C);)R++,C++;if(c[x]=R,R>r)g+=2;else if(C>i)m+=2;else if(h&&(S=a+f-w)>=0&&S<u&&-1!=d[S]&&R>=(k=r-d[S]))return s(e,t,R,C)}for(var O=-y+b;O<=y-v;O+=2){for(var k,S=a+O,E=(k=O==-y||O!=y&&d[S-1]<d[S+1]?d[S+1]:d[S-1]+1)-O;k<r&&E<i&&e.charAt(r-k-1)==t.charAt(i-E-1);)k++,E++;if(d[S]=k,k>r)v+=2;else if(E>i)b+=2;else if(!h){var R;if((x=a+f-O)>=0&&x<u&&-1!=c[x]&&(C=a+(R=c[x])-x,R>=(k=r-k)))return s(e,t,R,C)}}}return[[n,e],[o,t]]}function s(e,t,n,o){var r=e.substring(0,n),l=t.substring(0,o),a=e.substring(n),s=t.substring(o),u=i(r,l),c=i(a,s);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function d(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function r(e,t,n){for(var o,r,i,l,a=e.substring(n,n+Math.floor(e.length/4)),s=-1,d="";-1!=(s=t.indexOf(a,s+1));){var p=u(e.substring(n),t.substring(s)),f=c(e.substring(0,n),t.substring(0,s));d.length<f+p&&(d=t.substring(s-f,s)+t.substring(s,s+p),o=e.substring(0,n-f),r=e.substring(n+p),i=t.substring(0,s-f),l=t.substring(s+p))}return 2*d.length>=e.length?[o,r,i,l,d]:null}var i,l,a,s,d,p=r(n,o,Math.ceil(n.length/4)),f=r(n,o,Math.ceil(n.length/2));return p||f?(i=f?p&&p[4].length>f[4].length?p:f:p,e.length>t.length?(l=i[0],a=i[1],s=i[2],d=i[3]):(s=i[0],d=i[1],l=i[2],a=i[3]),[l,a,s,d,i[4]]):null}function p(e){e.push([r,""]);for(var t,i=0,l=0,a=0,s="",d="";i<e.length;)switch(e[i][0]){case o:a++,d+=e[i][1],i++;break;case n:l++,s+=e[i][1],i++;break;case r:l+a>1?(0!==l&&0!==a&&(0!==(t=u(d,s))&&(i-l-a>0&&e[i-l-a-1][0]==r?e[i-l-a-1][1]+=d.substring(0,t):(e.splice(0,0,[r,d.substring(0,t)]),i++),d=d.substring(t),s=s.substring(t)),0!==(t=c(d,s))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),s=s.substring(0,s.length-t))),0===l?e.splice(i-a,l+a,[o,d]):0===a?e.splice(i-l,l+a,[n,s]):e.splice(i-l-a,l+a,[n,s],[o,d]),i=i-l-a+(l?1:0)+(a?1:0)+1):0!==i&&e[i-1][0]==r?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,a=0,l=0,s="",d=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(i=1;i<e.length-1;)e[i-1][0]==r&&e[i+1][0]==r&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),f=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),f=!0)),i++;f&&p(e)}var f=i;function h(e,t){if(0===t)return[r,e];for(var o=0,i=0;i<e.length;i++){var l=e[i];if(l[0]===n||l[0]===r){var a=o+l[1].length;if(t===a)return[i+1,e];if(t<a){e=e.slice();var s=t-o,u=[l[0],l[1].slice(0,s)],c=[l[0],l[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}o=a}}throw new Error("cursor_pos is out of bounds!")}function m(e,t){var n=h(e,t),o=n[1],i=n[0],l=o[i],a=o[i+1];if(null==l)return e;if(l[0]!==r)return e;if(null!=a&&l[1]+a[1]===a[1]+l[1])return o.splice(i,2,a,l),b(o,i,2);if(null!=a&&0===a[1].indexOf(l[1])){o.splice(i,2,[a[0],l[1]],[0,l[1]]);var s=a[1].slice(l[1].length);return s.length>0&&o.splice(i+2,0,[a[0],s]),b(o,i,3)}return e}function g(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},l=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},a=2;a<e.length;a+=1)e[a-2][0]===r&&l(e[a-2][1])&&e[a-1][0]===n&&i(e[a-1][1])&&e[a][0]===o&&i(e[a][1])&&(t=!0,e[a-1][1]=e[a-2][1].slice(-1)+e[a-1][1],e[a][1]=e[a-2][1].slice(-1)+e[a][1],e[a-2][1]=e[a-2][1].slice(0,-1));if(!t)return e;var s=[];for(a=0;a<e.length;a+=1)e[a][1].length>0&&s.push(e[a]);return s}function b(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}f.INSERT=o,f.DELETE=n,f.EQUAL=r,e.exports=f},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),l.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},l.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,l=r.length,a=new Array(l);i<l;i++)a[i]=r[i].fn;return a},l.prototype.emit=function(e,t,n,r,i,l){var a=o?o+e:e;if(!this._events[a])return!1;var s,u,c=this._events[a],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,l),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var p,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(p=1,s=new Array(d-1);p<d;p++)s[p-1]=arguments[p];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,n){var r=new i(t,n||this),l=o?o+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],r]:this._events[l].push(r):(this._events[l]=r,this._eventsCount++),this},l.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),l=o?o+e:e;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],r]:this._events[l].push(r):(this._events[l]=r,this._eventsCount++),this},l.prototype.removeListener=function(e,t,n,i){var l=o?o+e:e;if(!this._events[l])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[l],this;var a=this._events[l];if(a.fn)a.fn===t&&(!i||a.once)&&(!n||a.context===n)&&(0==--this._eventsCount?this._events=new r:delete this._events[l]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==t||i&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[l]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[l]}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=o,l.EventEmitter=l,typeof e<"u"&&(e.exports=l)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=y(n(3)),a=y(n(2)),s=y(n(0)),u=y(n(5)),c=y(n(10)),d=y(n(9)),p=n(36),f=n(37),h=y(n(13)),m=n(26),g=n(38),b=n(39),v=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var k=(0,c.default)("quill:clipboard"),S="__ql-matcher",E=[[Node.TEXT_NODE,B],[Node.TEXT_NODE,z],["br",L],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,F],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,H],["li",$],["b",D.bind(D,"bold")],["i",D.bind(D,"italic")],["style",V]],R=[p.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),T=[p.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,b.FontStyle,v.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),N=function(e){function t(e,n){x(this,t);var o=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],E.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],l=t[1];!n.matchVisual&&l===q||o.addMatcher(i,l)})),o}return O(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),l=i[0],s=i[1],u=_(this.container,l,s);return M(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new a.default).retain(u.length()-1).delete(1))),k.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new a.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),l=i[0],a=i[1];switch(l){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(l),(function(e){e[S]=e[S]||[],e[S].push(a)}))}})),[t,n]}}]),t}(d.default);function j(e,t,n){return"object"===(typeof t>"u"?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return j(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,l.default)({},w({},t,n),o.attributes))}),new a.default)}function P(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function M(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function I(e){if(0===e.childNodes.length)return!1;var t=P(e);return["block","list-item"].indexOf(t.display)>-1}function _(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var i=_(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[S]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new a.default):new a.default}function D(e,t,n){return j(n,e,!0)}function A(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null!=(n=R[t])&&(n.attrName===t||n.keyName===t)&&(i[n.attrName]=n.value(e)||void 0),null!=(n=T[t])&&(n.attrName===t||n.keyName===t)&&(n=T[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=j(t,i)),t}function F(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new a.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=j(t,n.blotName,n.formats(e)));return t}function L(e,t){return M(t,"\n")||t.insert("\n"),t}function V(){return new a.default}function $(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!M(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:o}))}function z(e,t){return M(t,"\n")||(I(e)||t.length()>0&&e.nextSibling&&I(e.nextSibling))&&t.insert("\n"),t}function q(e,t){if(I(e)&&null!=e.nextElementSibling&&!M(t,"\n\n")){var n=e.offsetHeight+parseFloat(P(e).marginTop)+parseFloat(P(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function H(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===P(e).fontStyle&&(n.italic=!0),o.fontWeight&&(P(e).fontWeight.startsWith("bold")||parseInt(P(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=j(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}function B(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!P(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&I(e.parentNode)||null!=e.previousSibling&&I(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&I(e.parentNode)||null!=e.nextSibling&&I(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}N.DEFAULTS={matchers:[],matchVisual:!0},t.default=N,t.matchAttributor=A,t.matchBlot=F,t.matchNewline=z,t.matchSpacing=q,t.matchText=B},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(i(n(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(2)),l=c(n(0)),a=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=(0,s.default)("quill:toolbar"),g=function(e){function t(e,n){p(this,t);var r,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var l=document.createElement("div");v(l,i.options.container),e.container.parentNode.insertBefore(l,e.container),i.container=l}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=m.error("Container required for toolbar",i.options),f(i,r))}return h(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void m.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void m.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),p=o(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(l.default.query(n).prototype instanceof l.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(p.index).delete(p.length).insert(d({},n,s)),a.default.sources.USER)}else t.quill.format(n,s,a.default.sources.USER);t.update(p)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],l=r[1];if("SELECT"===l.tagName){var a=void 0;if(null==e)a=null;else if(null==t[i])a=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=l.querySelector('option[value="'+s+'"]')}null==a?(l.value="",l.selectedIndex=-1):a.selected=!0}else if(null==e)l.classList.remove("ql-active");else if(l.hasAttribute("value")){var u=t[i]===l.getAttribute("value")||null!=t[i]&&t[i].toString()===l.getAttribute("value")||null==t[i]&&!l.getAttribute("value");l.classList.toggle("ql-active",u)}else l.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function b(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)b(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?y(n,t,o):b(n,t,o)}})),e.appendChild(n)}))}function y(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}g.DEFAULTS={},g.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):!e&&"right"===t&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=g,t.addControls=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){l(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),o}return s(t,e),o(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){l(this,t);var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return s(t,e),o(t,[{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){var o=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var l=r.bottom-r.top,a=e.bottom-e.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=f(n(3)),a=f(n(8)),s=n(43),u=f(s),c=f(n(27)),d=n(15),p=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=b);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return g(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),p.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);v.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){h(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return g(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===a.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),l=o(i,2),s=l[0],u=l[1];if(null!=s){e.linkRange=new d.Range(t.index-u,s.length());var p=c.default.formats(s.domNode);return e.preview.textContent=p,e.preview.setAttribute("href",p),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=D(n(29)),r=n(36),i=n(38),l=n(64),a=D(n(65)),s=D(n(66)),u=n(67),c=D(u),d=n(37),p=n(26),f=n(39),h=n(40),m=D(n(56)),g=D(n(68)),b=D(n(27)),v=D(n(69)),y=D(n(70)),w=D(n(71)),x=D(n(72)),C=D(n(73)),O=n(13),k=D(O),S=D(n(74)),E=D(n(75)),R=D(n(57)),T=D(n(41)),N=D(n(28)),j=D(n(59)),P=D(n(60)),M=D(n(61)),I=D(n(108)),_=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":l.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":f.FontClass,"formats/size":h.SizeClass,"formats/blockquote":a.default,"formats/code-block":k.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":m.default,"formats/code":O.Code,"formats/italic":g.default,"formats/link":b.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":C.default,"formats/list/item":u.ListItem,"modules/formula":S.default,"modules/syntax":E.default,"modules/toolbar":R.default,"themes/bubble":I.default,"themes/snow":_.default,"ui/icons":T.default,"ui/picker":N.default,"ui/icon-picker":P.default,"ui/color-picker":j.default,"ui/tooltip":M.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(i.default.Attributor.Class),d=new c("indent","ql-indent",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(4)).default);a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){function t(){return i(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(r(n(4)).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(0)),l=s(n(4)),a=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),o(t,[{key:"format",value:function(e,n){e!==h.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);f.blotName="list-item",f.tagName="LI";var h=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return p(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return("checked"===e||"unchecked"===e)&&o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof f)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[f],t.ListItem=f,t.default=h},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(56)).default);a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return l(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(i(n(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(6)).default);a.blotName="strike",a.tagName="S",t.default=a},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(o(n(6)).default);a.blotName="underline",a.tagName="U",t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=a(n(0)),l=n(27);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],p=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=n(4),l=a(n(27));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],p=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(35)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);p.blotName="formula",p.className="ql-formula",p.tagName="SPAN";var f=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),o(t,null,[{key:"register",value:function(){l.default.register(p,!0)}}]),t}(a.default);t.FormulaBlot=p,t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},i=s(n(0)),l=s(n(5)),a=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);p.className="ql-syntax";var f=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return d(t,e),o(t,null,[{key:"register",value:function(){l.default.register(f,!0),l.default.register(p,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(a.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=p,t.CodeToken=f,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var l=r.get;return void 0===l?void 0:l.call(o)},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=d(n(3)),l=d(n(8)),a=n(43),s=d(a),u=n(15),c=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);g.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){p(this,t);var o=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===l.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var a=i[i.length-1],s=o.quill.getIndex(a),c=Math.min(a.length()-1,t.index+t.length-s),d=o.quill.getBounds(new u.Range(s,c));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(a.BaseTooltip);b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=g},function(e,t,n){e.exports=n(63)}]).default,w_=ke&&ke.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),x_=ke&&ke.__assign||function(){return x_=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},x_.apply(this,arguments)},C_=ke&&ke.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],l=0,a=i.length;l<a;l++,r++)o[r]=i[l];return o},O_=ke&&ke.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},k_=O_(t),S_=O_(ve),E_=O_(b_),R_=O_(y_),T_=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,o,r){var i,l,a,s;"text-change"===e?null===(l=(i=n).onEditorChangeText)||void 0===l||l.call(i,n.editor.root.innerHTML,t,r,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(a=n).onEditorChangeSelection)||void 0===s||s.call(a,t,r,n.unprivilegedEditor))};var o=n.isControlled()?t.value:t.defaultValue;return n.value=o??"",n}return w_(t,e),t.prototype.validateProps=function(e){var t;if(k_.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(k_.default.Children.count(e.children)&&"textarea"===(null===(t=k_.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),r=e.value??"";this.isEqualValue(r,o)||this.setEditorContents(this.editor,r)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),C_(this.cleanProps,this.dirtyProps).some((function(t){return!E_.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!E_.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var o=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,l=(o=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var a=this.editor;a.setContents(o),N_((function(){return n.setEditorSelection(a,l)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new R_.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?E_.default(e.ops,t.ops):E_.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var o=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),N_((function(){return n.setEditorSelection(e,o)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,o;null!==(o=null===(n=e)||void 0===n?void 0:n.scroll)&&void 0!==o&&o.domNode&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=S_.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,o=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return k_.default.Children.count(n)?k_.default.cloneElement(k_.default.Children.only(n),r):o?k_.default.createElement("pre",x_({},r)):k_.default.createElement("div",x_({},r))},t.prototype.render=function(){var e;return k_.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,e??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,o){var r,i;if(this.editor){var l=this.isDelta(this.value)?o.getContents():o.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,null===(i=(r=this.props).onChange)||void 0===i||i.call(r,e,t,n,o))}},t.prototype.onEditorChangeSelection=function(e,t,n){var o,r,i,l,a,s;if(this.editor){var u=this.getEditorSelection(),c=!u&&e,d=u&&!e;E_.default(e,u)||(this.selection=e,null===(r=(o=this.props).onChangeSelection)||void 0===r||r.call(o,e,t,n),c?null===(l=(i=this.props).onFocus)||void 0===l||l.call(i,e,t,n):d&&(null===(s=(a=this.props).onBlur)||void 0===s||s.call(a,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=R_.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(k_.default.Component);function N_(e){Promise.resolve().then(e)}const j_=Se(T_),P_="_viewMode_dgzrp_1",M_="_editMode_dgzrp_2",I_="_text-label_dgzrp_24",__="_error-message_dgzrp_28",D_={toolbar:[[{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}]]},A_=["size","font","bold","italic","underline","strike","blockquote","list","bullet","indent"],F_=({dataTest:e,...t})=>Pe.jsxs(Pe.Fragment,{children:[t.label&&Pe.jsx("span",{className:vo(I_),"data-test":`label-${e}`,children:t.label}),t.disabled?Pe.jsx(j_,{...t,className:vo(P_,t.className),readOnly:!0,modules:{toolbar:!1},"data-test":e}):Pe.jsx(j_,{...t,className:vo(M_,t.className),modules:{...D_,...t.modules},formats:{...A_,...t.formats},"data-test":e}),(t.is_error?"error":t.is_warning?"warning":!!t.isRequired||null)&&Pe.jsx("span",{className:__,"data-test":`error-${e}`,children:t.error?t.error:"error"})]}),L_=({dataTest:e,allowClear:t,...n})=>Pe.jsx(I,{...n,"data-test":e,value:n.value,IconComponent:e=>Pe.jsx(tl,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:vo(e.className,"select-custom-icon")}),endAdornment:t&&n.value?Pe.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=n.onChange)||e.call(n,{target:{value:""}},null)},children:Pe.jsx(Bl,{width:18,height:18})}):null,sx:{...n.sx,".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"}}}),V_=e=>Pe.jsx(_,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important"},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:e.children});function $_({dataTest:e,...t}){return Pe.jsx(D,{...t,className:vo("!text-sm",t.className),popupIcon:t.popupIcon||Pe.jsx(tl,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:vo("select-custom-icon")}),"data-test":e,PaperComponent:({children:t})=>Pe.jsx(A,{"data-test":`paper-${e}`,sx:{"& ul":{padding:"0 !important"},"& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),sx:{...t.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})}const z_=({dataTest:e,...t})=>{var n,o,r;return Pe.jsx(F,{...t,"data-test":e,classes:{...t.classes},slotProps:{...t.slotProps,thumb:{className:vo("w-4 h-4","before:shadow-none","vertical"===t.orientation?"ml-0 mb-1":"ml-1",t.disabled||!t.value?"bg-delta-200":"bg-gama-600"),...null==(n=t.slotProps)?void 0:n.thumb},rail:{className:"bg-delta-200",...null==(o=t.slotProps)?void 0:o.rail},markLabel:{className:vo("text-delta-600 text-sm font-semibold ml-1","vertical"===t.orientation&&"mb-1"),...null==(r=t.slotProps)?void 0:r.markLabel}},sx:{...t.sx,"& .MuiSlider-track":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-gray-200)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",border:"1px solid",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",opacity:1}}}})},q_=({dataTest:e,...t})=>Pe.jsx(L,{...t,"data-test":e,sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-200) !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"}}}),H_=({dataTest:e,...t})=>Pe.jsx(V,{...t,"data-test":e,sx:{"&":{color:"var(--colors-gray-200)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),B_=({dataTest:e,...t})=>Pe.jsx($,{"data-test":e,...t}),U_="-";function W_(e){const t=function(e){const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return function(e,t){return t?e.map((([e,n])=>{const o=n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e));return[e,o]})):e}(Object.entries(e.classGroups),n).forEach((([e,n])=>{Y_(n,o,e,t)})),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){const n=e.split(U_);return""===n[0]&&1!==n.length&&n.shift(),G_(n,t)||function(e){if(K_.test(e)){const t=K_.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}function G_(e,t){var n;if(0===e.length)return t.classGroupId;const o=e[0],r=t.nextPart.get(o),i=r?G_(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const l=e.join(U_);return null==(n=t.validators.find((({validator:e})=>e(l))))?void 0:n.classGroupId}const K_=/^\[(.+)\]$/;function Y_(e,t,n,o){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return function(e){return e.isThemeGetter}(e)?void Y_(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,r])=>{Y_(r,Z_(t,e),n,o)}))}else{(""===e?t:Z_(t,e)).classGroupId=n}}))}function Z_(e,t){let n=e;return t.split(U_).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function X_(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;function r(r,i){n.set(r,i),t++,t>e&&(t=0,o=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}}const Q_="!";function J_(e){const t=e.separator,n=1===t.length,o=t[0],r=t.length;return function(e){const i=[];let l,a=0,s=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===a){if(c===o&&(n||e.slice(u,u+r)===t)){i.push(e.slice(s,u)),s=u+r;continue}if("/"===c){l=u;continue}}"["===c?a++:"]"===c&&a--}const u=0===i.length?e:e.substring(s),c=u.startsWith(Q_);return{modifiers:i,hasImportantModifier:c,baseClassName:c?u.substring(1):u,maybePostfixModifierPosition:l&&l>s?l-s:void 0}}}const eD=/\s+/;function tD(){let e,t,n=0,o="";for(;n<arguments.length;)(e=arguments[n++])&&(t=nD(e))&&(o&&(o+=" "),o+=t);return o}function nD(e){if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=nD(e[o]))&&(n&&(n+=" "),n+=t);return n}function oD(e,...t){let n,o,r,i=function(a){const s=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:X_(e.cacheSize),splitModifiers:J_(e),...W_(e)}}(s),o=n.cache.get,r=n.cache.set,i=l,l(a)};function l(e){const t=o(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=new Set;return e.trim().split(eD).map((e=>{const{modifiers:t,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:l}=n(e);let a=o(l?i.substring(0,l):i),s=!!l;if(!a){if(!l)return{isTailwindClass:!1,originalClassName:e};if(a=o(i),!a)return{isTailwindClass:!1,originalClassName:e};s=!1}const u=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:r?u+Q_:u,classGroupId:a,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:o}=e,l=t+n;return!i.has(l)&&(i.add(l),r(n,o).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return r(e,i),i}return function(){return i(tD.apply(null,arguments))}}function rD(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const iD=/^\[(?:([a-z-]+):)?(.+)\]$/i,lD=/^\d+\/\d+$/,aD=new Set(["px","full","screen"]),sD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cD=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function pD(e){return hD(e)||aD.has(e)||lD.test(e)}function fD(e){return RD(e,"length",TD)}function hD(e){return!!e&&!Number.isNaN(Number(e))}function mD(e){return RD(e,"number",hD)}function gD(e){return!!e&&Number.isInteger(Number(e))}function bD(e){return e.endsWith("%")&&hD(e.slice(0,-1))}function vD(e){return iD.test(e)}function yD(e){return sD.test(e)}const wD=new Set(["length","size","percentage"]);function xD(e){return RD(e,wD,ND)}function CD(e){return RD(e,"position",ND)}const OD=new Set(["image","url"]);function kD(e){return RD(e,OD,PD)}function SD(e){return RD(e,"",jD)}function ED(){return!0}function RD(e,t,n){const o=iD.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):n(o[2]))}function TD(e){return uD.test(e)}function ND(){return!1}function jD(e){return cD.test(e)}function PD(e){return dD.test(e)}function MD(){const e=rD("colors"),t=rD("spacing"),n=rD("blur"),o=rD("brightness"),r=rD("borderColor"),i=rD("borderRadius"),l=rD("borderSpacing"),a=rD("borderWidth"),s=rD("contrast"),u=rD("grayscale"),c=rD("hueRotate"),d=rD("invert"),p=rD("gap"),f=rD("gradientColorStops"),h=rD("gradientColorStopPositions"),m=rD("inset"),g=rD("margin"),b=rD("opacity"),v=rD("padding"),y=rD("saturate"),w=rD("scale"),x=rD("sepia"),C=rD("skew"),O=rD("space"),k=rD("translate"),S=()=>["auto",vD,t],E=()=>[vD,t],R=()=>["",pD,fD],T=()=>["auto",hD,vD],N=()=>["","0",vD],j=()=>[hD,mD],P=()=>[hD,vD];return{cacheSize:500,separator:":",theme:{colors:[ED],spacing:[pD,fD],blur:["none","",yD,vD],brightness:j(),borderColor:[e],borderRadius:["none","","full",yD,vD],borderSpacing:E(),borderWidth:R(),contrast:j(),grayscale:N(),hueRotate:P(),invert:N(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[bD,fD],inset:S(),margin:S(),opacity:j(),padding:E(),saturate:j(),scale:j(),sepia:N(),skew:P(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",vD]}],container:["container"],columns:[{columns:[yD]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",vD]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gD,vD]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",vD]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",gD,vD]}],"grid-cols":[{"grid-cols":[ED]}],"col-start-end":[{col:["auto",{span:["full",gD,vD]},vD]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[ED]}],"row-start-end":[{row:["auto",{span:[gD,vD]},vD]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",vD]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",vD]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",vD,t]}],"min-w":[{"min-w":[vD,t,"min","max","fit"]}],"max-w":[{"max-w":[vD,t,"none","full","min","max","fit","prose",{screen:[yD]},yD]}],h:[{h:[vD,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[vD,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[vD,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[vD,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yD,fD]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mD]}],"font-family":[{font:[ED]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",vD]}],"line-clamp":[{"line-clamp":["none",hD,mD]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pD,vD]}],"list-image":[{"list-image":["none",vD]}],"list-style-type":[{list:["none","disc","decimal",vD]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pD,fD]}],"underline-offset":[{"underline-offset":["auto",pD,vD]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",vD]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",vD]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",CD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[pD,vD]}],"outline-w":[{outline:[pD,fD]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[pD,fD]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yD,SD]}],"shadow-color":[{shadow:[ED]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",yD,vD]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",vD]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",vD]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",vD]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[gD,vD]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",vD]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",vD]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",vD]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pD,fD,mD]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const ID=oD(MD);function _D(...e){return ID(vo(e))}const DD=({children:e,onClick:t,className:n,dataTest:o})=>Pe.jsx("div",{className:_D("text-[10px] font-semibold flex items-center justify-center w-fit uppercase h-4 px-1.5 py-0.5 rounded-[3px] bg-gama-50 text-gama-700",n),onClick:t,"data-test":o,children:e});function AD(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function FD(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function LD(e){FD(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===QO(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function VD(e,t){FD(2,arguments);var n=LD(e),o=AD(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function $D(e,t){FD(2,arguments);var n=LD(e),o=AD(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var r=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+o+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}var zD={};function qD(){return zD}function HD(e,t){var n,o,r,i,l,a,s,u;FD(1,arguments);var c=qD(),d=AD(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=LD(e),f=p.getDay(),h=(f<d?7:0)+f-d;return p.setDate(p.getDate()-h),p.setHours(0,0,0,0),p}function BD(e){return FD(1,arguments),HD(e,{weekStartsOn:1})}function UD(e){FD(1,arguments);var t=function(e){FD(1,arguments);var t=LD(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=BD(o),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var l=BD(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),BD(n)}function WD(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function GD(e){FD(1,arguments);var t=LD(e);return t.setHours(0,0,0,0),t}var KD=864e5;function YD(e,t){FD(2,arguments);var n=GD(e),o=GD(t),r=n.getTime()-WD(n),i=o.getTime()-WD(o);return Math.round((r-i)/KD)}function ZD(e,t){return FD(2,arguments),VD(e,7*AD(t))}function XD(e,t){return FD(2,arguments),$D(e,12*AD(t))}function QD(e,t){FD(2,arguments);var n=GD(e),o=GD(t);return n.getTime()===o.getTime()}function JD(e){return FD(1,arguments),e instanceof Date||"object"===QO(e)&&"[object Date]"===Object.prototype.toString.call(e)}function eA(e,t){FD(2,arguments);var n=LD(e),o=LD(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}var tA=6048e5;function nA(e){FD(1,arguments);var t=LD(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function oA(e){FD(1,arguments);var t=LD(e);return t.setDate(1),t.setHours(0,0,0,0),t}function rA(e){FD(1,arguments);var t=LD(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function iA(e,t){var n,o,r,i,l,a,s,u;FD(1,arguments);var c=qD(),d=AD(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=LD(e),f=p.getDay(),h=6+(f<d?-7:0)-(f-d);return p.setDate(p.getDate()+h),p.setHours(23,59,59,999),p}function lA(e){return FD(1,arguments),iA(e,{weekStartsOn:1})}function aA(e,t){return FD(2,arguments),function(e,t){FD(2,arguments);var n=LD(e).getTime(),o=AD(t);return new Date(n+o)}(e,-AD(t))}function sA(e){FD(1,arguments);var t=LD(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function uA(e){FD(1,arguments);var t=LD(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=sA(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var l=sA(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function cA(e){FD(1,arguments);var t=LD(e),n=sA(t).getTime()-function(e){FD(1,arguments);var t=uA(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),sA(n)}(t).getTime();return Math.round(n/6048e5)+1}function dA(e,t){var n,o,r,i,l,a,s,u;FD(1,arguments);var c=qD(),d=AD(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=LD(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function pA(e,t){var n,o,r,i,l,a,s,u;FD(1,arguments);var c=LD(e),d=c.getUTCFullYear(),p=qD(),f=AD(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:p.firstWeekContainsDate)&&void 0!==o?o:null===(s=p.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=dA(h,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var b=dA(g,t);return c.getTime()>=m.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}function fA(e,t){FD(1,arguments);var n=LD(e),o=dA(n,t).getTime()-function(e,t){var n,o,r,i,l,a,s,u;FD(1,arguments);var c=qD(),d=AD(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=pA(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),dA(f,t)}(n,t).getTime();return Math.round(o/6048e5)+1}function hA(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}var mA={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return hA("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):hA(n+1,2)},d:function(e,t){return hA(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return hA(e.getUTCHours()%12||12,t.length)},H:function(e,t){return hA(e.getUTCHours(),t.length)},m:function(e,t){return hA(e.getUTCMinutes(),t.length)},s:function(e,t){return hA(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return hA(Math.floor(o*Math.pow(10,n-3)),t.length)}};const gA=mA;var bA="midnight",vA="noon",yA="morning",wA="afternoon",xA="evening",CA="night",OA={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return gA.y(e,t)},Y:function(e,t,n,o){var r=pA(e,o),i=r>0?r:1-r;return"YY"===t?hA(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):hA(i,t.length)},R:function(e,t){return hA(uA(e),t.length)},u:function(e,t){return hA(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return hA(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return hA(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return gA.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return hA(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=fA(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):hA(r,t.length)},I:function(e,t,n){var o=cA(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):hA(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):gA.d(e,t)},D:function(e,t,n){var o=function(e){FD(1,arguments);var t=LD(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):hA(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return hA(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return hA(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return hA(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?vA:0===r?bA:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?xA:r>=12?wA:r>=4?yA:CA,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return gA.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):gA.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):hA(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):hA(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):gA.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):gA.s(e,t)},S:function(e,t){return gA.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return SA(r);case"XXXX":case"XX":return EA(r);default:return EA(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return SA(r);case"xxxx":case"xx":return EA(r);default:return EA(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+kA(r,":");default:return"GMT"+EA(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+kA(r,":");default:return"GMT"+EA(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return hA(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return hA((o._originalDate||e).getTime(),t.length)}};function kA(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var l=t||"";return n+String(r)+l+hA(i,2)}function SA(e,t){return e%60==0?(e>0?"-":"+")+hA(Math.abs(e)/60,2):EA(e,t)}function EA(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+hA(Math.floor(r/60),2)+n+hA(r%60,2)}const RA=OA;var TA=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},NA=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},jA={p:NA,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return TA(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",TA(r,t)).replace("{{time}}",NA(i,t))}};const PA=jA;var MA=["D","DD"],IA=["YY","YYYY"];function _A(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var DA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const AA=function(e,t,n){var o,r=DA[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function FA(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const LA={date:FA({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:FA({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:FA({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var VA={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const $A=function(e,t,n,o){return VA[e]};function zA(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var l=e.defaultWidth,a=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[l]}return o[e.argumentCallback?e.argumentCallback(t):t]}}var qA={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:zA({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:zA({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:zA({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:zA({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:zA({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const HA=qA;function BA(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var l,a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,(function(e){return e.test(a)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,(function(e){return e.test(a)}));return l=e.valueCallback?e.valueCallback(u):u,{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(a.length)}}}var UA={ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var r=o[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(r.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:BA({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:BA({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:BA({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:BA({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:BA({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const WA=UA;const GA={code:"en-US",formatDistance:AA,formatLong:LA,formatRelative:$A,localize:HA,match:WA,options:{weekStartsOn:0,firstWeekContainsDate:1}};var KA=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,YA=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ZA=/^'([^]*?)'?$/,XA=/''/g,QA=/[a-zA-Z]/;function JA(e,t,n){var o,r,i,l,a,s,u,c,d,p,f,h,m,g,b,v,y,w;FD(2,arguments);var x=String(t),C=qD(),O=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:C.locale)&&void 0!==o?o:GA,k=AD(null!==(i=null!==(l=null!==(a=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:C.firstWeekContainsDate)&&void 0!==l?l:null===(d=C.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=AD(null!==(f=null!==(h=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(b=n.locale)||void 0===b||null===(v=b.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:C.weekStartsOn)&&void 0!==h?h:null===(y=C.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var E=LD(e);if(!function(e){if(FD(1,arguments),!JD(e)&&"number"!=typeof e)return!1;var t=LD(e);return!isNaN(Number(t))}(E))throw new RangeError("Invalid time value");var R=aA(E,WD(E)),T={firstWeekContainsDate:k,weekStartsOn:S,locale:O,_originalDate:E},N=x.match(YA).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,PA[t])(e,O.formatLong):e})).join("").match(KA).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return function(e){var t=e.match(ZA);return t?t[1].replace(XA,"'"):e}(o);var i=RA[r];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&function(e){return-1!==IA.indexOf(e)}(o)&&_A(o,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&function(e){return-1!==MA.indexOf(e)}(o)&&_A(o,t,String(e)),i(R,o,O.localize,T);if(r.match(QA))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("");return N}var eF=6048e5;function tF(e){return FD(1,arguments),Math.floor(function(e){return FD(1,arguments),LD(e).getTime()}(e)/1e3)}function nF(e,t){var n,o,r,i,l,a,s,u;FD(1,arguments);var c=qD(),d=AD(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),p=function(e,t){var n,o,r,i,l,a,s,u;FD(1,arguments);var c=LD(e),d=c.getFullYear(),p=qD(),f=AD(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(l=t.locale)||void 0===l||null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==r?r:p.firstWeekContainsDate)&&void 0!==o?o:null===(s=p.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,f),h.setHours(0,0,0,0);var m=HD(h,t),g=new Date(0);g.setFullYear(d,0,f),g.setHours(0,0,0,0);var b=HD(g,t);return c.getTime()>=m.getTime()?d+1:c.getTime()>=b.getTime()?d:d-1}(e,t),f=new Date(0);return f.setFullYear(p,0,d),f.setHours(0,0,0,0),HD(f,t)}var oF=6048e5;function rF(e,t){return FD(1,arguments),function(e,t,n){FD(2,arguments);var o=HD(e,n),r=HD(t,n),i=o.getTime()-WD(o),l=r.getTime()-WD(r);return Math.round((i-l)/tA)}(function(e){FD(1,arguments);var t=LD(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),oA(e),t)+1}function iF(e,t){FD(2,arguments);var n=LD(e),o=LD(t);return n.getTime()>o.getTime()}function lF(e,t){FD(2,arguments);var n=LD(e),o=LD(t);return n.getTime()<o.getTime()}function aF(e,t){FD(2,arguments);var n=LD(e),o=LD(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function sF(e,t){return FD(2,arguments),VD(e,-AD(t))}function uF(e,t){FD(2,arguments);var n=LD(e),o=AD(t),r=n.getFullYear(),i=n.getDate(),l=new Date(0);l.setFullYear(r,o,15),l.setHours(0,0,0,0);var a=function(e){FD(1,arguments);var t=LD(e),n=t.getFullYear(),o=t.getMonth(),r=new Date(0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}(l);return n.setMonth(o,Math.min(i,a)),n}function cF(e,t){FD(2,arguments);var n=LD(e),o=AD(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}const dF={code:"en-GB",formatDistance:AA,formatLong:{date:FA({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:FA({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:FA({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:$A,localize:HA,match:WA,options:{weekStartsOn:1,firstWeekContainsDate:4}};var pF=function(){return pF=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},pF.apply(this,arguments)};function fF(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function hF(e){return"multiple"===e.mode}function mF(e){return"range"===e.mode}function gF(e){return"single"===e.mode}var bF={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var vF=Object.freeze({__proto__:null,formatCaption:function(e,t){return JA(e,"LLLL y",t)},formatDay:function(e,t){return JA(e,"d",t)},formatMonthCaption:function(e,t){return JA(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return JA(e,"cccccc",t)},formatYearCaption:function(e,t){return JA(e,"yyyy",t)}}),yF=Object.freeze({__proto__:null,labelDay:function(e,t,n){return JA(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return JA(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var wF=g(void 0);function xF(e){var n,o,r=e.initialProps,i={captionLayout:"buttons",classNames:bF,formatters:vF,labels:yF,locale:GA,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"},l=function(e){var t=e.fromYear,n=e.toYear,o=e.fromMonth,r=e.toMonth,i=e.fromDate,l=e.toDate;return o?i=oA(o):t&&(i=new Date(t,0,1)),r?l=nA(r):n&&(l=new Date(n,11,31)),{fromDate:i?GD(i):void 0,toDate:l?GD(l):void 0}}(r),a=l.fromDate,s=l.toDate,u=null!==(n=r.captionLayout)&&void 0!==n?n:i.captionLayout;"buttons"!==u&&(!a||!s)&&(u="buttons"),(gF(r)||hF(r)||mF(r))&&(o=r.onSelect);var c=pF(pF(pF({},i),r),{captionLayout:u,classNames:pF(pF({},i.classNames),r.classNames),components:pF({},r.components),formatters:pF(pF({},i.formatters),r.formatters),fromDate:a,labels:pF(pF({},i.labels),r.labels),mode:r.mode||i.mode,modifiers:pF(pF({},i.modifiers),r.modifiers),modifiersClassNames:pF(pF({},i.modifiersClassNames),r.modifiersClassNames),onSelect:o,styles:pF(pF({},i.styles),r.styles),toDate:s});return t.createElement(wF.Provider,{value:c},e.children)}function CF(){var e=d(wF);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function OF(e){var n=CF(),o=n.locale,r=n.classNames,i=n.styles,l=n.formatters.formatCaption;return t.createElement("div",{className:r.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id},l(e.displayMonth,{locale:o}))}function kF(e){return t.createElement("svg",pF({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),t.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function SF(e){var n,o,r=e.onChange,i=e.value,l=e.children,a=e.caption,s=e.className,u=e.style,c=CF(),d=null!==(o=null===(n=c.components)||void 0===n?void 0:n.IconDropdown)&&void 0!==o?o:kF;return t.createElement("div",{className:s,style:u},t.createElement("span",{className:c.classNames.vhidden},e["aria-label"]),t.createElement("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:r},l),t.createElement("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},a,t.createElement(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})))}function EF(e){var n,o=CF(),r=o.fromDate,i=o.toDate,l=o.styles,a=o.locale,s=o.formatters.formatMonthCaption,u=o.classNames,c=o.components,d=o.labels.labelMonthDropdown;if(!r)return t.createElement(t.Fragment,null);if(!i)return t.createElement(t.Fragment,null);var p=[];if(function(e,t){FD(2,arguments);var n=LD(e),o=LD(t);return n.getFullYear()===o.getFullYear()}(r,i))for(var f=oA(r),h=r.getMonth();h<=i.getMonth();h++)p.push(uF(f,h));else for(f=oA(new Date),h=0;h<=11;h++)p.push(uF(f,h));var m=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:SF;return t.createElement(m,{name:"months","aria-label":d(),className:u.dropdown_month,style:l.dropdown_month,onChange:function(t){var n=Number(t.target.value),o=uF(oA(e.displayMonth),n);e.onChange(o)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:a})},p.map((function(e){return t.createElement("option",{key:e.getMonth(),value:e.getMonth()},s(e,{locale:a}))})))}function RF(e){var n,o=e.displayMonth,r=CF(),i=r.fromDate,l=r.toDate,a=r.locale,s=r.styles,u=r.classNames,c=r.components,d=r.formatters.formatYearCaption,p=r.labels.labelYearDropdown,f=[];if(!i)return t.createElement(t.Fragment,null);if(!l)return t.createElement(t.Fragment,null);for(var h=i.getFullYear(),m=l.getFullYear(),g=h;g<=m;g++)f.push(cF(rA(new Date),g));var b=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:SF;return t.createElement(b,{name:"years","aria-label":p(),className:u.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=cF(oA(o),Number(t.target.value));e.onChange(n)},value:o.getFullYear(),caption:d(o,{locale:a})},f.map((function(e){return t.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},d(e,{locale:a}))})))}function TF(){var e=CF(),t=function(e){var t=e.month,n=e.defaultMonth,o=e.today,r=t||n||o||new Date,i=e.toDate,l=e.fromDate,a=e.numberOfMonths,s=void 0===a?1:a;return i&&eA(i,r)<0&&(r=$D(i,-1*(s-1))),l&&eA(r,l)<0&&(r=l),oA(r)}(e),n=function(e,t){var n=l(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],r=n[1];return[o,function(t){var n;if(!e.disableNavigation){var o=oA(t);r(o),null===(n=e.onMonthChange)||void 0===n||n.call(e,o)}}]}var NF=g(void 0);function jF(e){var n=CF(),o=TF(),r=o[0],i=o[1],l=function(e,t){for(var n=t.reverseMonths,o=t.numberOfMonths,r=oA(e),i=eA(oA($D(r,o)),r),l=[],a=0;a<i;a++){var s=$D(r,a);l.push(s)}return n&&(l=l.reverse()),l}(r,n),a=function(e,t){if(!t.disableNavigation){var n=t.toDate,o=t.pagedNavigation,r=t.numberOfMonths,i=void 0===r?1:r,l=o?i:1,a=oA(e);if(!n)return $D(a,l);if(!(eA(n,e)<i))return $D(a,l)}}(r,n),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,o=t.pagedNavigation,r=t.numberOfMonths,i=o?void 0===r?1:r:1,l=oA(e);if(!n)return $D(l,-i);if(!(eA(l,n)<=0))return $D(l,-i)}}(r,n),u=function(e){return l.some((function(t){return aF(e,t)}))},c={currentMonth:r,displayMonths:l,goToMonth:i,goToDate:function(e,t){u(e)||(t&&lF(e,t)?i($D(e,1+-1*n.numberOfMonths)):i(e))},previousMonth:s,nextMonth:a,isDateDisplayed:u};return t.createElement(NF.Provider,{value:c},e.children)}function PF(){var e=d(NF);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function MF(e){var n,o=CF(),r=o.classNames,i=o.styles,l=o.components,a=PF().goToMonth,s=function(t){a($D(t,e.displayIndex?-e.displayIndex:0))},u=null!==(n=null==l?void 0:l.CaptionLabel)&&void 0!==n?n:OF,c=t.createElement(u,{id:e.id,displayMonth:e.displayMonth});return t.createElement("div",{className:r.caption_dropdowns,style:i.caption_dropdowns},t.createElement("div",{className:r.vhidden},c),t.createElement(EF,{onChange:s,displayMonth:e.displayMonth}),t.createElement(RF,{onChange:s,displayMonth:e.displayMonth}))}function IF(e){return t.createElement("svg",pF({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function _F(e){return t.createElement("svg",pF({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var DF=a((function(e,n){var o=CF(),r=o.classNames,i=o.styles,l=[r.button_reset,r.button];e.className&&l.push(e.className);var a=l.join(" "),s=pF(pF({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),t.createElement("button",pF({},e,{ref:n,type:"button",className:a,style:s}))}));function AF(e){var n,o,r=CF(),i=r.dir,l=r.locale,a=r.classNames,s=r.styles,u=r.labels,c=u.labelPrevious,d=u.labelNext,p=r.components;if(!e.nextMonth&&!e.previousMonth)return t.createElement(t.Fragment,null);var f=c(e.previousMonth,{locale:l}),h=[a.nav_button,a.nav_button_previous].join(" "),m=d(e.nextMonth,{locale:l}),g=[a.nav_button,a.nav_button_next].join(" "),b=null!==(n=null==p?void 0:p.IconRight)&&void 0!==n?n:_F,v=null!==(o=null==p?void 0:p.IconLeft)&&void 0!==o?o:IF;return t.createElement("div",{className:a.nav,style:s.nav},!e.hidePrevious&&t.createElement(DF,{name:"previous-month","aria-label":f,className:h,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===i?t.createElement(b,{className:a.nav_icon,style:s.nav_icon}):t.createElement(v,{className:a.nav_icon,style:s.nav_icon})),!e.hideNext&&t.createElement(DF,{name:"next-month","aria-label":m,className:g,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===i?t.createElement(v,{className:a.nav_icon,style:s.nav_icon}):t.createElement(b,{className:a.nav_icon,style:s.nav_icon})))}function FF(e){var n=CF().numberOfMonths,o=PF(),r=o.previousMonth,i=o.nextMonth,l=o.goToMonth,a=o.displayMonths,s=a.findIndex((function(t){return aF(e.displayMonth,t)})),u=0===s,c=s===a.length-1,d=n>1&&(u||!c),p=n>1&&(c||!u);return t.createElement(AF,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:p,nextMonth:i,previousMonth:r,onPreviousClick:function(){r&&l(r)},onNextClick:function(){i&&l(i)}})}function LF(e){var n,o,r=CF(),i=r.classNames,l=r.disableNavigation,a=r.styles,s=r.captionLayout,u=r.components,c=null!==(n=null==u?void 0:u.CaptionLabel)&&void 0!==n?n:OF;return o=l?t.createElement(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?t.createElement(MF,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?t.createElement(t.Fragment,null,t.createElement(MF,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.createElement(FF,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})):t.createElement(t.Fragment,null,t.createElement(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.createElement(FF,{displayMonth:e.displayMonth,id:e.id})),t.createElement("div",{className:i.caption,style:a.caption},o)}function VF(e){var n=CF(),o=n.footer,r=n.styles,i=n.classNames.tfoot;return o?t.createElement("tfoot",{className:i,style:r.tfoot},t.createElement("tr",null,t.createElement("td",{colSpan:8},o))):t.createElement(t.Fragment,null)}function $F(){var e=CF(),n=e.classNames,o=e.styles,r=e.showWeekNumber,i=e.locale,l=e.weekStartsOn,a=e.ISOWeek,s=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var o=n?BD(new Date):HD(new Date,{locale:e,weekStartsOn:t}),r=[],i=0;i<7;i++){var l=VD(o,i);r.push(l)}return r}(i,l,a);return t.createElement("tr",{style:o.head_row,className:n.head_row},r&&t.createElement("td",{style:o.head_cell,className:n.head_cell}),c.map((function(e,r){return t.createElement("th",{key:r,scope:"col",className:n.head_cell,style:o.head_cell,"aria-label":u(e,{locale:i})},s(e,{locale:i}))})))}function zF(){var e,n=CF(),o=n.classNames,r=n.styles,i=n.components,l=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:$F;return t.createElement("thead",{style:r.head,className:o.head},t.createElement(l,null))}function qF(e){var n=CF(),o=n.locale,r=n.formatters.formatDay;return t.createElement(t.Fragment,null,r(e.date,{locale:o}))}var HF=g(void 0);function BF(e){if(!hF(e.initialProps)){return t.createElement(HF.Provider,{value:{selected:void 0,modifiers:{disabled:[]}}},e.children)}return t.createElement(UF,{initialProps:e.initialProps,children:e.children})}function UF(e){var n=e.initialProps,o=e.children,r=n.selected,i=n.min,l=n.max,a={disabled:[]};r&&a.disabled.push((function(e){var t=l&&r.length>l-1,n=r.some((function(t){return QD(t,e)}));return!(!t||n)}));var s={selected:r,onDayClick:function(e,t,o){var a,s;if((null===(a=n.onDayClick)||void 0===a||a.call(n,e,t,o),!!(!t.selected||!i||(null==r?void 0:r.length)!==i))&&!!(t.selected||!l||(null==r?void 0:r.length)!==l)){var u=r?fF([],r,!0):[];if(t.selected){var c=u.findIndex((function(t){return QD(e,t)}));u.splice(c,1)}else u.push(e);null===(s=n.onSelect)||void 0===s||s.call(n,u,e,t,o)}},modifiers:a};return t.createElement(HF.Provider,{value:s},o)}function WF(){var e=d(HF);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var GF,KF=g(void 0);function YF(e){if(!mF(e.initialProps)){return t.createElement(KF.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}}},e.children)}return t.createElement(ZF,{initialProps:e.initialProps,children:e.children})}function ZF(e){var n=e.initialProps,o=e.children,r=n.selected,i=r||{},l=i.from,a=i.to,s=n.min,u=n.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(l?(c.range_start=[l],a?(c.range_end=[a],QD(l,a)||(c.range_middle=[{after:l,before:a}])):c.range_end=[l]):a&&(c.range_start=[a],c.range_end=[a]),s&&(l&&!a&&c.disabled.push({after:sF(l,s-1),before:VD(l,s-1)}),l&&a&&c.disabled.push({after:l,before:VD(l,s-1)}),!l&&a&&c.disabled.push({after:sF(a,s-1),before:VD(a,s-1)})),u){if(l&&!a&&(c.disabled.push({before:VD(l,1-u)}),c.disabled.push({after:VD(l,u-1)})),l&&a){var d=u-(YD(a,l)+1);c.disabled.push({before:sF(l,d)}),c.disabled.push({after:VD(a,d)})}!l&&a&&(c.disabled.push({before:VD(a,1-u)}),c.disabled.push({after:VD(a,u-1)}))}return t.createElement(KF.Provider,{value:{selected:r,onDayClick:function(e,t,o){var i,l;null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,o);var a=function(e,t){var n=t||{},o=n.from,r=n.to;return o&&r?QD(r,e)&&QD(o,e)?void 0:QD(r,e)?{from:r,to:void 0}:QD(o,e)?void 0:iF(o,e)?{from:e,to:r}:{from:o,to:e}:r?iF(e,r)?{from:r,to:e}:{from:e,to:r}:o?lF(e,o)?{from:e,to:o}:{from:o,to:e}:{from:e,to:void 0}}(e,r);null===(l=n.onSelect)||void 0===l||l.call(n,a,e,t,o)},modifiers:c}},o)}function XF(){var e=d(KF);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function QF(e){return Array.isArray(e)?fF([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(GF||(GF={}));var JF=GF.Selected,eL=GF.Disabled,tL=GF.Hidden,nL=GF.Today,oL=GF.RangeEnd,rL=GF.RangeMiddle,iL=GF.RangeStart,lL=GF.Outside;var aL=g(void 0);function sL(e){var n=CF(),o=function(e,t,n){var o,r=((o={})[JF]=QF(e.selected),o[eL]=QF(e.disabled),o[tL]=QF(e.hidden),o[nL]=[e.today],o[oL]=[],o[rL]=[],o[iL]=[],o[lL]=[],o);return e.fromDate&&r[eL].push({before:e.fromDate}),e.toDate&&r[eL].push({after:e.toDate}),hF(e)?r[eL]=r[eL].concat(t.modifiers[eL]):mF(e)&&(r[eL]=r[eL].concat(n.modifiers[eL]),r[iL]=n.modifiers[iL],r[rL]=n.modifiers[rL],r[oL]=n.modifiers[oL]),r}(n,WF(),XF()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];t[n]=QF(o)})),t}(n.modifiers),i=pF(pF({},o),r);return t.createElement(aL.Provider,{value:i},e.children)}function uL(){var e=d(aL);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function cL(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(function(e){return JD(e)}(t))return QD(e,t);if(function(e){return Array.isArray(e)&&e.every(JD)}(t))return t.includes(e);if(function(e){return!(!e||"object"!=typeof e||!("from"in e))}(t))return function(e,t){var n,o=t.from,r=t.to;return o&&r?(YD(r,o)<0&&(o=(n=[r,o])[0],r=n[1]),YD(e,o)>=0&&YD(r,e)>=0):r?QD(r,e):!!o&&QD(o,e)}(e,t);if(function(e){return!(!e||"object"!=typeof e||!("dayOfWeek"in e))}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=YD(t.before,e)>0,o=YD(t.after,e)<0;return iF(t.before,t.after)?o&&n:n||o}return function(e){return!(!e||"object"!=typeof e||!("after"in e))}(t)?YD(e,t.after)>0:function(e){return!(!e||"object"!=typeof e||!("before"in e))}(t)?YD(t.before,e)>0:"function"==typeof t&&t(e)}))}function dL(e,t,n){var o=Object.keys(t).reduce((function(n,o){var r=t[o];return cL(e,r)&&n.push(o),n}),[]),r={};return o.forEach((function(e){return r[e]=!0})),n&&!aF(e,n)&&(r.outside=!0),r}var pL=365;function fL(e,t){var n=t.moveBy,o=t.direction,r=t.context,i=t.modifiers,l=t.retry,a=void 0===l?{count:0,lastFocused:e}:l,s=r.weekStartsOn,u=r.fromDate,c=r.toDate,d=r.locale,p={day:VD,week:ZD,month:$D,year:XD,startOfWeek:function(e){return r.ISOWeek?BD(e):HD(e,{locale:d,weekStartsOn:s})},endOfWeek:function(e){return r.ISOWeek?lA(e):iA(e,{locale:d,weekStartsOn:s})}}[n](e,"after"===o?1:-1);"before"===o&&u?p=function(e){var t,n;if(FD(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==QO(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=LD(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}([u,p]):"after"===o&&c&&(p=function(e){var t,n;if(FD(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==QO(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=LD(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}([c,p]));var f=!0;if(i){var h=dL(p,i);f=!h.disabled&&!h.hidden}return f?p:a.count>pL?a.lastFocused:fL(p,{moveBy:n,direction:o,context:r,modifiers:i,retry:pF(pF({},a),{count:a.count+1})})}var hL=g(void 0);function mL(e){var n=PF(),o=uL(),r=l(),i=r[0],a=r[1],s=l(),u=s[0],c=s[1],d=function(e,t){for(var n,o,r=oA(e[0]),i=nA(e[e.length-1]),l=r;l<=i;){var a=dL(l,t);if(a.disabled||a.hidden)l=VD(l,1);else{if(a.selected)return l;a.today&&!o&&(o=l),n||(n=l),l=VD(l,1)}}return o||n}(n.displayMonths,o),p=i??(u&&n.isDateDisplayed(u))?u:d,f=function(e){a(e)},h=CF(),m=function(e,t){if(i){var r=fL(i,{moveBy:e,direction:t,context:h,modifiers:o});QD(i,r)||(n.goToDate(r,i),f(r))}},g={focusedDay:i,focusTarget:p,blur:function(){c(i),a(void 0)},focus:f,focusDayAfter:function(){return m("day","after")},focusDayBefore:function(){return m("day","before")},focusWeekAfter:function(){return m("week","after")},focusWeekBefore:function(){return m("week","before")},focusMonthBefore:function(){return m("month","before")},focusMonthAfter:function(){return m("month","after")},focusYearBefore:function(){return m("year","before")},focusYearAfter:function(){return m("year","after")},focusStartOfWeek:function(){return m("startOfWeek","before")},focusEndOfWeek:function(){return m("endOfWeek","after")}};return t.createElement(hL.Provider,{value:g},e.children)}function gL(){var e=d(hL);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var bL=g(void 0);function vL(e){if(!gF(e.initialProps)){return t.createElement(bL.Provider,{value:{selected:void 0}},e.children)}return t.createElement(yL,{initialProps:e.initialProps,children:e.children})}function yL(e){var n=e.initialProps,o=e.children,r={selected:n.selected,onDayClick:function(e,t,o){var r,i,l;null===(r=n.onDayClick)||void 0===r||r.call(n,e,t,o),!t.selected||n.required?null===(l=n.onSelect)||void 0===l||l.call(n,e,e,t,o):null===(i=n.onSelect)||void 0===i||i.call(n,void 0,e,t,o)}};return t.createElement(bL.Provider,{value:r},o)}function wL(){var e=d(bL);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function xL(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var o=e.modifiersClassNames[t];if(o)n.push(o);else if(function(e){return Object.values(GF).includes(e)}(t)){var r=e.classNames["day_".concat(t)];r&&n.push(r)}})),n}function CL(e,n,o){var r,i,l,a=CF(),s=gL(),u=function(e,t){return dL(e,uL(),t)}(e,n),d=function(e,t){var n=CF(),o=wL(),r=WF(),i=XF(),l=gL(),a=l.focusDayAfter,s=l.focusDayBefore,u=l.focusWeekAfter,c=l.focusWeekBefore,d=l.blur,p=l.focus,f=l.focusMonthBefore,h=l.focusMonthAfter,m=l.focusYearBefore,g=l.focusYearAfter,b=l.focusStartOfWeek,v=l.focusEndOfWeek;return{onClick:function(l){var a,s,u,c;gF(n)?null===(a=o.onDayClick)||void 0===a||a.call(o,e,t,l):hF(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,l):mF(n)?null===(u=i.onDayClick)||void 0===u||u.call(i,e,t,l):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,l)},onFocus:function(o){var r;p(e),null===(r=n.onDayFocus)||void 0===r||r.call(n,e,t,o)},onBlur:function(o){var r;d(),null===(r=n.onDayBlur)||void 0===r||r.call(n,e,t,o)},onKeyDown:function(o){var r;switch(o.key){case"ArrowLeft":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?a():s();break;case"ArrowRight":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?s():a();break;case"ArrowDown":o.preventDefault(),o.stopPropagation(),u();break;case"ArrowUp":o.preventDefault(),o.stopPropagation(),c();break;case"PageUp":o.preventDefault(),o.stopPropagation(),o.shiftKey?m():f();break;case"PageDown":o.preventDefault(),o.stopPropagation(),o.shiftKey?g():h();break;case"Home":o.preventDefault(),o.stopPropagation(),b();break;case"End":o.preventDefault(),o.stopPropagation(),v()}null===(r=n.onDayKeyDown)||void 0===r||r.call(n,e,t,o)},onKeyUp:function(o){var r;null===(r=n.onDayKeyUp)||void 0===r||r.call(n,e,t,o)},onMouseEnter:function(o){var r;null===(r=n.onDayMouseEnter)||void 0===r||r.call(n,e,t,o)},onMouseLeave:function(o){var r;null===(r=n.onDayMouseLeave)||void 0===r||r.call(n,e,t,o)},onPointerEnter:function(o){var r;null===(r=n.onDayPointerEnter)||void 0===r||r.call(n,e,t,o)},onPointerLeave:function(o){var r;null===(r=n.onDayPointerLeave)||void 0===r||r.call(n,e,t,o)},onTouchCancel:function(o){var r;null===(r=n.onDayTouchCancel)||void 0===r||r.call(n,e,t,o)},onTouchEnd:function(o){var r;null===(r=n.onDayTouchEnd)||void 0===r||r.call(n,e,t,o)},onTouchMove:function(o){var r;null===(r=n.onDayTouchMove)||void 0===r||r.call(n,e,t,o)},onTouchStart:function(o){var r;null===(r=n.onDayTouchStart)||void 0===r||r.call(n,e,t,o)}}}(e,u),p=function(){var e=CF(),t=wL(),n=WF(),o=XF();return gF(e)?t.selected:hF(e)?n.selected:mF(e)?o.selected:void 0}(),f=!(!a.onDayClick&&"default"===a.mode);c((function(){var t;u.outside||s.focusedDay&&f&&QD(s.focusedDay,e)&&(null===(t=o.current)||void 0===t||t.focus())}),[s.focusedDay,e,o,f,u.outside]);var h=xL(a,u).join(" "),m=function(e,t){var n=pF({},e.styles.day);return Object.keys(t).forEach((function(t){var o;n=pF(pF({},n),null===(o=e.modifiersStyles)||void 0===o?void 0:o[t])})),n}(a,u),g=!!(u.outside&&!a.showOutsideDays||u.hidden),b=null!==(l=null===(i=a.components)||void 0===i?void 0:i.DayContent)&&void 0!==l?l:qF,v={style:m,className:h,children:t.createElement(b,{date:e,displayMonth:n,activeModifiers:u}),role:"gridcell"},y=s.focusTarget&&QD(s.focusTarget,e)&&!u.outside,w=s.focusedDay&&QD(s.focusedDay,e),x=pF(pF(pF({},v),((r={disabled:u.disabled,role:"gridcell"})["aria-selected"]=u.selected,r.tabIndex=w||y?0:-1,r)),d);return{isButton:f,isHidden:g,activeModifiers:u,selectedDays:p,buttonProps:x,divProps:v}}function OL(e){var n=s(null),o=CL(e.date,e.displayMonth,n);return o.isHidden?t.createElement("div",{role:"gridcell"}):o.isButton?t.createElement(DF,pF({name:"day",ref:n},o.buttonProps)):t.createElement("div",pF({},o.divProps))}function kL(e){var n=e.number,o=e.dates,r=CF(),i=r.onWeekNumberClick,l=r.styles,a=r.classNames,s=r.locale,u=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(n),{locale:s});if(!i)return t.createElement("span",{className:a.weeknumber,style:l.weeknumber},c);var d=u(Number(n),{locale:s});return t.createElement(DF,{name:"week-number","aria-label":d,className:a.weeknumber,style:l.weeknumber,onClick:function(e){i(n,o,e)}},c)}function SL(e){var n,o,r,i=CF(),l=i.styles,a=i.classNames,s=i.showWeekNumber,u=i.components,c=null!==(n=null==u?void 0:u.Day)&&void 0!==n?n:OL,d=null!==(o=null==u?void 0:u.WeekNumber)&&void 0!==o?o:kL;return s&&(r=t.createElement("td",{className:a.cell,style:l.cell},t.createElement(d,{number:e.weekNumber,dates:e.dates}))),t.createElement("tr",{className:a.row,style:l.row},r,e.dates.map((function(n){return t.createElement("td",{className:a.cell,style:l.cell,key:tF(n),role:"presentation"},t.createElement(c,{displayMonth:e.displayMonth,date:n}))})))}function EL(e,t,n){for(var o=null!=n&&n.ISOWeek?lA(t):iA(t,n),r=null!=n&&n.ISOWeek?BD(e):HD(e,n),i=YD(o,r),l=[],a=0;a<=i;a++)l.push(VD(r,a));var s=l.reduce((function(e,t){var o=null!=n&&n.ISOWeek?function(e){FD(1,arguments);var t=LD(e),n=BD(t).getTime()-UD(t).getTime();return Math.round(n/eF)+1}(t):function(e,t){FD(1,arguments);var n=LD(e),o=HD(n,t).getTime()-nF(n,t).getTime();return Math.round(o/oF)+1}(t,n),r=e.find((function(e){return e.weekNumber===o}));return r?(r.dates.push(t),e):(e.push({weekNumber:o,dates:[t]}),e)}),[]);return s}function RL(e){var n,o,r,i=CF(),l=i.locale,a=i.classNames,s=i.styles,u=i.hideHead,c=i.fixedWeeks,d=i.components,p=i.weekStartsOn,f=i.firstWeekContainsDate,h=i.ISOWeek,m=function(e,t){var n=EL(oA(e),nA(e),t);if(null!=t&&t.useFixedWeeks){var o=rF(e,t);if(o<6){var r=n[n.length-1],i=r.dates[r.dates.length-1],l=ZD(i,6-o),a=EL(ZD(i,1),l,t);n.push.apply(n,a)}}return n}(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:l,weekStartsOn:p,firstWeekContainsDate:f}),g=null!==(n=null==d?void 0:d.Head)&&void 0!==n?n:zF,b=null!==(o=null==d?void 0:d.Row)&&void 0!==o?o:SL,v=null!==(r=null==d?void 0:d.Footer)&&void 0!==r?r:VF;return t.createElement("table",{id:e.id,className:a.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&t.createElement(g,null),t.createElement("tbody",{className:a.tbody,style:s.tbody},m.map((function(n){return t.createElement(b,{displayMonth:e.displayMonth,key:n.weekNumber,dates:n.dates,weekNumber:n.weekNumber})}))),t.createElement(v,{displayMonth:e.displayMonth}))}var TL=typeof window<"u"&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,NL=!1,jL=0;function PL(){return"react-day-picker-".concat(++jL)}function ML(n){var o,r,i=CF(),l=i.dir,a=i.classNames,s=i.styles,u=i.components,c=PF().displayMonths,d=function(t){var n,o=t??(NL?PL():null),r=e.useState(o),i=r[0],l=r[1];return TL((function(){null===i&&l(PL())}),[]),e.useEffect((function(){!1===NL&&(NL=!0)}),[]),null!==(n=t??i)&&void 0!==n?n:void 0}(i.id?"".concat(i.id,"-").concat(n.displayIndex):void 0),p=i.id?"".concat(i.id,"-grid-").concat(n.displayIndex):void 0,f=[a.month],h=s.month,m=0===n.displayIndex,g=n.displayIndex===c.length-1,b=!m&&!g;"rtl"===l&&(g=(o=[m,g])[0],m=o[1]),m&&(f.push(a.caption_start),h=pF(pF({},h),s.caption_start)),g&&(f.push(a.caption_end),h=pF(pF({},h),s.caption_end)),b&&(f.push(a.caption_between),h=pF(pF({},h),s.caption_between));var v=null!==(r=null==u?void 0:u.Caption)&&void 0!==r?r:LF;return t.createElement("div",{key:n.displayIndex,className:f.join(" "),style:h},t.createElement(v,{id:d,displayMonth:n.displayMonth,displayIndex:n.displayIndex}),t.createElement(RL,{id:p,"aria-labelledby":d,displayMonth:n.displayMonth}))}function IL(e){var n=e.initialProps,o=CF(),r=gL(),i=PF(),a=l(!1),s=a[0],u=a[1];c((function(){o.initialFocus&&r.focusTarget&&(s||(r.focus(r.focusTarget),u(!0)))}),[o.initialFocus,s,r.focus,r.focusTarget,r]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var p=pF(pF({},o.styles.root),o.style),f=Object.keys(n).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var o;return pF(pF({},e),((o={})[t]=n[t],o))}),{});return t.createElement("div",pF({className:d.join(" "),style:p,dir:o.dir,id:o.id},f),t.createElement("div",{className:o.classNames.months,style:o.styles.months},i.displayMonths.map((function(e,n){return t.createElement(ML,{key:n,displayIndex:n,displayMonth:e})}))))}function _L(e){var n=e.children,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return t.createElement(xF,{initialProps:o},t.createElement(jF,null,t.createElement(vL,{initialProps:o},t.createElement(BF,{initialProps:o},t.createElement(YF,{initialProps:o},t.createElement(sL,null,t.createElement(mL,null,n)))))))}function DL(e){return t.createElement(_L,pF({},e),t.createElement(IL,{initialProps:e}))}const AL="object"==typeof global&&global&&global.Object===Object&&global;var FL="object"==typeof self&&self&&self.Object===Object&&self;const LL=(AL||FL||Function("return this")()).Symbol;var VL=Object.prototype,$L=VL.hasOwnProperty,zL=VL.toString,qL=LL?LL.toStringTag:void 0;var HL=Object.prototype.toString;var BL="[object Null]",UL="[object Undefined]",WL=LL?LL.toStringTag:void 0;function GL(e){return null==e?void 0===e?UL:BL:WL&&WL in Object(e)?function(e){var t=$L.call(e,qL),n=e[qL];try{e[qL]=void 0;var o=!0}catch{}var r=zL.call(e);return o&&(t?e[qL]=n:delete e[qL]),r}(e):function(e){return HL.call(e)}(e)}var KL="[object Symbol]";const YL=Array.isArray;var ZL=1/0,XL=LL?LL.prototype:void 0,QL=XL?XL.toString:void 0;function JL(e){if("string"==typeof e)return e;if(YL(e))return function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,JL)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&GL(e)==KL}(e))return QL?QL.call(e):"";var t=e+"";return"0"==t&&1/e==-ZL?"-0":t}function eV(e){return null==e?"":JL(e)}function tV(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(e,t,n)}var nV=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function oV(e){return nV.test(e)}var rV="\\ud800-\\udfff",iV="["+rV+"]",lV="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",aV="\\ud83c[\\udffb-\\udfff]",sV="[^"+rV+"]",uV="(?:\\ud83c[\\udde6-\\uddff]){2}",cV="[\\ud800-\\udbff][\\udc00-\\udfff]",dV="(?:"+lV+"|"+aV+")"+"?",pV="[\\ufe0e\\ufe0f]?",fV=pV+dV+("(?:\\u200d(?:"+[sV,uV,cV].join("|")+")"+pV+dV+")*"),hV="(?:"+[sV+lV+"?",lV,uV,cV,iV].join("|")+")",mV=RegExp(aV+"(?="+aV+")|"+hV+fV,"g");function gV(e){return oV(e)?function(e){return e.match(mV)||[]}(e):function(e){return e.split("")}(e)}var bV=function(e){return function(t){var n=oV(t=eV(t))?gV(t):void 0,o=n?n[0]:t.charAt(0),r=n?tV(n,1).join(""):t.slice(1);return o[e]()+r}}("toUpperCase");const vV=bV;function yV(e){return vV(eV(e).toLowerCase())}const wV=({onClose:e,isNb:t,selected:n,removeSelection:o,setMonth:r,month:i,onClear:l})=>{const{goToMonth:a,nextMonth:s,previousMonth:u}=PF(),c=YL(n)?!n.length:JD(n)?!n:!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(n)||!function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r}(Object.values(n)).length;return Pe.jsxs("div",{className:"mt-2 flex justify-between mr-3",children:[Pe.jsx(IR,{variant:"text",onClick:e=>{l?l():o(e),r(new Date(Date.now()))},size:"small",disabled:c,dataTest:"select-today",className:"!min-w-[60px]",startIcon:Pe.jsx(tl,{icon:"ph:eraser-duotone",width:24,height:24})}),Pe.jsxs("div",{className:"rdp-custom-caption-navigation flex gap-1",children:[Pe.jsx(IR,{variant:"outlined",size:"small",dataTest:"previous-month",disabled:!u,onClick:()=>u&&a(u),startIcon:Pe.jsx(sl,{})}),Pe.jsx(IR,{size:"small",disabled:i&&aF(new Date(Date.now()),i),onClick:()=>{r(new Date(Date.now()))},variant:"outlined",dataTest:"select-today",className:"!disabled:cursor-default",children:t?"I dag":"Today"}),Pe.jsx(IR,{variant:"outlined",size:"small",dataTest:"next-month",disabled:!s,onClick:()=>s&&a(s),startIcon:Pe.jsx(al,{})})]}),Pe.jsx(IR,{size:"small",onClick:t=>{null==e||e(t,"backdropClick")},dataTest:"select-today",className:"!min-w-[60px]",children:t?"Velg":"Select"})]})};function xV(e){const{month:t}=e;return Pe.jsx("div",{className:"rdp-custom-caption flex justify-between items-center h-[30px] ml-4",children:t&&Pe.jsx(LF,{displayMonth:t})})}const CV=e=>Pe.jsx(z,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"}}}),OV=e=>{const{caption:t,children:n}=e,{goToMonth:o}=PF(),{month:r}=CF(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Pe.jsx(CV,{className:"w-[105px] ml-[-5px]",children:Pe.jsx(L_,{dataTest:"StyledCalendarPickerSelectMonth",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,l=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(l))&&o(uF(r,Number(l)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Pe.jsx(V_,{value:e.label,children:yV(e.label)},e.id)))})})},kV=e=>{const{caption:t,children:n}=e,{goToMonth:o}=PF(),{month:r}=CF(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Pe.jsx(CV,{className:"w-[70px] ml-[5px]",children:Pe.jsx(L_,{dataTest:"StyledCalendarPickerSelectYear",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,l=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(l))&&o(cF(r,Number(l)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Pe.jsx(V_,{value:e.label,children:e.label},e.id)))})})},SV=({datePickerProps:e,popoverProps:t,positionAbove:n})=>{const{showOutsideDays:o=!0,locale:r,selected:i,numberOfMonths:a,disabledDays:s,onClear:u}=e,{open:c,anchorEl:d,onClose:p}=t,[f,h]=l(new Date(Date.now())),m="nb"===(null==r?void 0:r.code),g=(a||1)<2;return Pe.jsx(O,{open:c,anchorEl:d,onClose:p,anchorOrigin:{vertical:n?"top":50,horizontal:"left"},transformOrigin:{vertical:n?"bottom":"top",horizontal:"left"},children:Pe.jsx(DL,{disabled:s,month:f,onMonthChange:e=>{h(e)},captionLayout:"dropdown",locale:r||dF,fromYear:2e3,toYear:2050,"data-test":"calendar-picker",showWeekNumber:!0,showOutsideDays:o,fixedWeeks:!0,className:"font-roboto",classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-base text-[var(--colors-gray-700)] font-medium",nav:"space-x-1 flex items-center",nav_button:"h-7 w-7 flex text-[var(--colors-gray-700)] items-center justify-center border border-[var(--colors-gray-500)] hover:bg-[var(--colors-gray-50)] rounded",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",head_row:"flex text-sm cursor-pointer",head_cell:"text-[var(--colors-gray-600)] w-9 cursor-pointer capitalize",row:"flex w-full mt-2",cell:"text-sm w-9 text-[var(--colors-gray-800)] relative [&:has([aria-selected])]:bg-gama-50 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md ",day:"h-10 w-9 p-0 font-normal rounded-md hover:bg-[var(--colors-gray-50)] focus-visible:border-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-gama-500 focus-visible:z-50",day_today:"text-gama-700 text-base bg-gray-100 font-bold hover:bg-gama-50",day_selected:"[&.bg-gray-100]:bg-gama-500 bg-gama-500 text-white hover:bg-gama-500 hover:text-white",day_outside:"text-[var(--colors-gray-400)]",day_disabled:"text-[var(--colors-gray-400)]",day_range_middle:"aria-selected:bg-gama-50 [&.bg-gray-100.bg-gama-500]:bg-gama-50 aria-selected:text-[var(--colors-gray-800)]",day_hidden:"invisible",caption_end:g?"":"[&_tfoot]:hidden [&_.rdp-custom-caption]:opacity-0 [&_.rdp-custom-caption]:pointer-events-none"},components:{IconLeft:()=>Pe.jsx(sl,{className:"h-4 w-4 "}),IconRight:()=>Pe.jsx(al,{className:"h-4 w-4"}),Caption:e=>Pe.jsx(xV,{...e,setMonth:h,month:f,isNb:m}),Dropdown:e=>"months"===e.name?Pe.jsx(OV,{...e}):Pe.jsx(kV,{...e})},footer:Pe.jsx(wV,{onClose:p,isNb:m,selected:i,removeSelection:t=>{var n;return i&&(null==(n=null==e?void 0:e.onSelect)?void 0:n.call(e,void 0,new Date(Date.now()),{},t))},setMonth:h,month:f,onClear:u}),...e})})},EV=(e,t="dd.MM.yy")=>e?JA(e,t):"",RV=e=>{var t,n,o;const{dataTest:r,placeholder:i,disabled:l,onClick:a,inputClassName:s,onClear:u,allowClear:c,dateFormat:d,label:p}=e;if("range"!==e.mode)return null;const f=EV(null==(t=e.selected)?void 0:t.from,d),h=EV(null==(n=e.selected)?void 0:n.to,d),m=null!=(o=e.selected)&&o.from?e.selected.to?`${f} - ${h}`:f:"";return Pe.jsx(FN,{dataTest:r,placeholder:i,label:p,size:"small",onClick:e=>!l&&a(e),InputProps:{endAdornment:Pe.jsx(ba,{width:24,height:24})},value:m,disabled:!!l,className:_D(`w-60 ${s}`),allowClear:c,onClear:()=>{null==u||u()}})},TV=e=>{var t,n;const{dataTest:o,className:r,inputClassName:i,disabled:l,placeholderFrom:a,placeholderTo:s,dateFormat:u,onClick:c,labelFrom:d,labelTo:p}=e;if("range"!==e.mode)return null;const f=EV(null==(t=e.selected)?void 0:t.from,u),h=EV(null==(n=e.selected)?void 0:n.to,u);return Pe.jsxs("div",{"data-test":o,className:`${r} ${l?"cursor-default text-[var(--colors-gray-300)]":"cursor-pointer"} inline-flex gap-4 w-fit items-center`,onClick:e=>!l&&c(e),children:[Pe.jsx(FN,{label:d,autoComplete:"off",size:"small",dataTest:"styled-date-picker-input-range-from",placeholder:a,value:f,disabled:!!l,className:`${i} w-36`,InputProps:{endAdornment:Pe.jsx(ba,{width:24,height:24})}}),Pe.jsx(FN,{label:p,autoComplete:"off",dataTest:"styled-date-picker-input-range-to",size:"small",placeholder:s,value:h,disabled:!!l,className:`${i} w-36`,InputProps:{endAdornment:Pe.jsx(ba,{width:24,height:24})}})]})},NV=e=>{const{dataTest:t,placeholder:n,disabled:o,onClick:r,inputClassName:i,onClear:l,allowClear:a,dateFormat:s}=e;return"single"!==e.mode?null:Pe.jsx(FN,{dataTest:t,placeholder:n,size:"small",onClick:e=>!o&&r(e),InputProps:{endAdornment:Pe.jsx(ba,{width:24,height:24})},value:EV(e.selected,s),disabled:!!o,className:_D(`w-36 ${i}`),allowClear:a,onClear:()=>{null==l||l()},label:e.label})},jV=e=>{const t="range"===e.mode&&!e.compact,n="range"===e.mode&&e.compact;return t?Pe.jsx(RV,{...e,onClick:e.onClick}):n?Pe.jsx(TV,{...e,onClick:e.onClick}):Pe.jsx(NV,{...e,onClick:e.onClick})},PV=e=>{const[t,n]=l(null),[o,r]=l(!1);return Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(jV,{...e,onClick:e=>{n(e.currentTarget),((e,t)=>{const n=window.innerHeight,o=e.currentTarget.getBoundingClientRect(),r=o.top,i=n-o.bottom;t(i<300&&r>i)})(e,r)}}),Pe.jsx(SV,{datePickerProps:{...e},popoverProps:{open:!!t,anchorEl:t,onClose:()=>{n(null)}},positionAbove:o})]})};function MV(t){if(typeof window>"u")return t;const n=e.useRef(null);return e.useLayoutEffect((()=>{n.current=t})),e.useCallback(((...e)=>{var t;null===(t=n.current)||void 0===t||t.call(n,...e)}),[])}const IV={};const _V={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function DV({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:o}){const r=s(!0);c((()=>(r.current=!0,()=>{r.current=!1})),[]);const[i,a]=l(_V),d=u((e=>{r.current&&a(e)}),[]),p=u((e=>d((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),f=MV((e=>(i.isOpen?g(e):h(e),i))),h=MV((t=>{const o=t instanceof Element?void 0:t,r=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void d((e=>({...e,_deferNextOpen:!0})));const i=null==o?void 0:o.clientX,l=null==o?void 0:o.clientY,a="number"==typeof i&&"number"==typeof l?{left:i,top:l}:void 0,s=i=>{if(!t&&!i.setAnchorElUsed&&"dialog"!==n&&function(e,t){IV[e]||(IV[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return i;setTimeout((()=>e._setChildPopupState(x)))}const l={...i,isOpen:!0,anchorPosition:a,hovered:"mouseover"===(null==o?void 0:o.type)||i.hovered,focused:"focus"===(null==o?void 0:o.type)||i.focused,_openEventType:null==o?void 0:o.type};return null!=o&&o.currentTarget?i.setAnchorElUsed||(l.anchorEl=null==o?void 0:o.currentTarget):r&&(l.anchorEl=r),l};d((e=>e._deferNextOpen?(setTimeout((()=>d(s)),0),{...e,_deferNextOpen:!1}):s(e)))})),m=t=>{const{_childPopupState:n}=t;return setTimeout((()=>{null==n||n.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},g=MV((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?d((e=>e._deferNextClose?(setTimeout((()=>d(m)),0),{...e,_deferNextClose:!1}):m(e))):d((e=>({...e,_deferNextClose:!0})))})),b=u(((e,t)=>{e?h(t):g(t)}),[]),v=MV((e=>{const{relatedTarget:t}=e;d((e=>!e.hovered||t instanceof Element&&VV(t,x)?e:e.focused?{...e,hovered:!1}:m(e)))})),y=MV((e=>{if(!e)return;const{relatedTarget:t}=e;d((e=>!e.focused||t instanceof Element&&VV(t,x)?e:e.hovered?{...e,focused:!1}:m(e)))})),w=u((e=>d((t=>({...t,_childPopupState:e})))),[]),x={...i,setAnchorEl:p,popupId:t,variant:n,open:h,close:g,toggle:f,setOpen:b,onBlur:y,onMouseLeave:v,disableAutoFocus:o??!(!i.hovered&&!i.focused),_setChildPopupState:w};return x}function AV({isOpen:e,popupId:t,variant:n}){return{..."popover"===n?{"aria-haspopup":!0,"aria-controls":e&&null!=t?t:void 0}:"popper"===n?{"aria-describedby":e&&null!=t?t:void 0}:void 0}}function FV(e){return{...AV(e),onClick:e.open,onTouchStart:e.open}}function LV({isOpen:e,anchorEl:t,popupId:n,onMouseLeave:o}){return{id:n,anchorEl:t,open:e,onMouseLeave:o}}function VV(e,t){const{anchorEl:n,_childPopupState:o}=t;return $V(n,e)||$V(function(e,{popupId:t}){if(!t)return null;const n="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof n.getElementById?n.getElementById(t):null}(e,t),e)||null!=o&&VV(e,o)}function $V(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function zV({children:e,popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}){return e(DV({popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}))??null}zV.propTypes={children:pe.func.isRequired,popupId:pe.string,variant:pe.oneOf(["popover","popper"]).isRequired,parentPopupState:pe.object,disableAutoFocus:pe.bool};const qV=({type:e,value:t,onSelect:n})=>{const o=new Date,r="hours"===e,i=r?24:12,l=r?o.getHours():o.getMinutes();return Pe.jsx("div",{className:"styled-time-picker-root_column overflow-y-scroll scrollbar-track-transparent scrollbar-thumb-delta-100 scrollbar-thin",children:new Array(i).fill(null).map(((e,o)=>{const i=r?o:5*o,a=t&&i===(r?function(e){return FD(1,arguments),LD(e).getHours()}(t):function(e){return FD(1,arguments),LD(e).getMinutes()}(t)),s=l==i;return Pe.jsx("div",{className:vo("styled-time-picker-root_cell",a&&"styled-time-picker-root_cell__cell-selected",s&&"styled-time-picker-root_cell__cell-now"),onClick:()=>{n(function(e,t){if(FD(2,arguments),"object"!==QO(t)||null===t)throw new RangeError("values parameter must be an object");var n=LD(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=uF(n,t.month)),null!=t.date&&n.setDate(AD(t.date)),null!=t.hours&&n.setHours(AD(t.hours)),null!=t.minutes&&n.setMinutes(AD(t.minutes)),null!=t.seconds&&n.setSeconds(AD(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(AD(t.milliseconds)),n)}(t||new Date,r?{hours:i}:{minutes:i}))},children:i.toString().padStart(2,"0")},i)}))})},HV=({value:e,onSelect:t,dataTest:n})=>{const o=s(null);return c((()=>{var e;null==(e=o.current)||e.querySelectorAll("div.styled-time-picker-root_cell__cell-selected").forEach((e=>e.scrollIntoView()))}),[o]),Pe.jsxs("div",{ref:o,"data-test":n,className:"styled-time-picker-root",children:[Pe.jsx(qV,{type:"hours",value:e,onSelect:t}),Pe.jsx(qV,{type:"minutes",value:e,onSelect:t})]})},BV=e=>{const{popupState:t,dataTest:n,value:o,onSelect:r,handleClear:i}=e;return Pe.jsx(q,{...LV(t),transition:!0,className:"z-[1300] absolute top-2",children:({TransitionProps:e})=>Pe.jsx(H,{...e,timeout:350,children:Pe.jsxs(A,{className:"pb-[1px]",children:[Pe.jsx(HV,{dataTest:`${n}-time-picker-body`,value:o,onSelect:r}),Pe.jsxs("div",{className:"flex my-3 justify-between",children:[Pe.jsx(IR,{variant:"text",onClick:i,size:"small",disabled:!o,dataTest:"select-today",className:"!min-w-[40px] ml-2.5",startIcon:Pe.jsx(tl,{icon:"ph:eraser-duotone",width:24,height:24})}),Pe.jsx(IR,{size:"small",onClick:()=>t.close(),dataTest:"select-time",className:"!min-w-[40px] mr-4",startIcon:Pe.jsx(tl,{icon:"bi:check-lg",width:20,height:20})})]})]})})})},UV=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Pe.jsx(ol,{icon:"mdi:clock-outline",width:e,height:t,className:n,onClick:o,color:r}),WV=({isValidTime:e,error:t=!1,localization:n="en",helperText:o})=>{if(e&&!t)return null;let r=o;return e||(r="en"===n?"Not valid":"Ikke gyldig"),Pe.jsx("span",{className:"absolute",children:r})},GV=e=>{const{placeholder:t,disabled:n,inputClassName:o,dataTest:r,width:i,error:l,helperText:a,label:s,locale:u="en",popupState:c,handleChange:d,isValidTime:p,localValue:f}=e;return Pe.jsx(FN,{name:"password",autoComplete:"off",type:"text",dataTest:r,placeholder:t,size:"small",error:!p||l,helperText:Pe.jsx(WV,{isValidTime:p,error:l,localization:u,helperText:a}),onChange:d,InputProps:{endAdornment:Pe.jsx(UV,{width:24,height:24,onClick:()=>!n&&c.open()})},value:f,sx:{maxWidth:i||130,width:i,minWidth:i},disabled:n,className:_D(o),label:s})},KV=e=>{const{value:t,onSelect:n}=e,[o,r]=l(t?JA(t,"HH:mm"):""),[i,a]=l(!0),s=e=>{const t=e.target.value;r(t);const o=(e=>{var t,n;const o=e.split(":"),r=Number(o[0]),i=Number(o[1]);if(2==(null==(t=o[0])?void 0:t.length)&&2==(null==(n=o[1])?void 0:n.length)&&r>=0&&r<=23&&i>=0&&i<=59){const e=new Date;return e.setHours(r),e.setMinutes(i),e}return null})(t);n(o||void 0),a(!!o)},u=e=>{n(e),r(e?JA(e,"HH:mm"):""),a(!0)},c=()=>{n(void 0),r(""),a(!0)};return Pe.jsx(zV,{variant:"popper",popupId:"time-picker-popper",children:t=>Pe.jsx(B,{mouseEvent:"onMouseDown",onClickAway:()=>{t.close()},children:Pe.jsxs("div",{className:"w-fit h-fit relative",children:[Pe.jsx("div",{...FV(t),children:Pe.jsx(GV,{...e,popupState:t,localValue:o,isValidTime:i,handleChange:s})}),t.isOpen&&Pe.jsx(BV,{...e,popupState:t,handleClear:c,onSelect:u})]})})})},YV=e=>Pe.jsx(U,{...e}),ZV=e=>Pe.jsx(W,{...e}),XV=e=>Pe.jsx(G,{...e}),QV=e=>Pe.jsx(K,{...e}),JV=e=>Pe.jsx(Y,{...e}),e$=e=>Pe.jsx(Z,{...e}),t$=e=>{var t,n;return Pe.jsx(X,{...e,classes:{paper:vo("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:vo("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},n$=e=>{var t;return Pe.jsx(_,{...e,classes:{root:vo("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},o$=e=>Pe.jsx(Q,{...e}),r$="_link_gyvti_1",i$=({href:e,title:t,disabled:n,size:o="large",dataTest:r,reflink:i,className:l,...a})=>{let s="text-sm";return"large"===o&&(s="text-base"),n?Pe.jsx("span",{className:`font-roboto font-semibold w-fit underline rounded px-1 py-0.5 outline-none border-none text-delta-300 ${s}`,children:t}):Pe.jsx("a",{...a,"data-test":r,ref:i,href:e,className:vo(`${r$} + ${s}`,l),children:t})},l$=e=>Pe.jsx(J,{...e,sx:{"&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"}}}),a$=e=>Pe.jsx(ee,{TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},...e}),s$=e=>Pe.jsx(te,{...e}),u$=e=>Pe.jsx(ne,{...e}),c$=e=>Pe.jsx(oe,{...e,className:vo("flex-row-reverse gap-2.5",e.className),expandIcon:Pe.jsx(ql,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(0deg)"}}}),d$=e=>Pe.jsx(re,{...e}),p$="select",f$="expand-column-id",h$="actions";
|
|
25
|
+
*/typeof self<"u"&&self;var Bf=Vf.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),a=n(45),l=n(46),s=n(47),u=n(48),c=n(49),d=n(12),f=n(32),p=n(33),h=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:c.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var a,l={},s={},u={},c={};function d(e,t){var n=p(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)}function f(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?f(e.parentNode,n):null}function p(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=c[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=c.block:e&a.LEVEL&a.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=s[o[r]])break;n=n||u[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"==typeof n.keyName?l[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){(null==u[e]||null==n.className)&&(u[e]=n)})))),n}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=d,t.find=f,t.query=p,t.register=h},function(e,t,n){var o=n(51),r=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=a.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=a.length(i)}return new s(n)},s.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),o.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var u=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),f=n.next(c);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=c:p.insert=d.insert;var h=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&r(u.ops[u.ops.length-1],p)){var g=new s(t.rest());return u.concat(g).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&u.push(f)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=o(n[0],n[1],t),c=a.iterator(this.ops),d=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var l=c.next(n),s=d.next(n);r(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),o=a.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),l=n.next(i),u=o.next(i);if(l.delete)continue;u.delete?r.push(u):r.retain(i,a.attributes.transform(l.attributes,u.attributes,t))}else r.retain(a.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e},e.exports=s},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},l=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return typeof t>"u"||n.call(e,t)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)o=u(d,n),d!==(r=u(t,n))&&(h&&r&&(l(r)||(i=a(r)))?(i?(i=!1,c=o&&a(o)?o:[]):c=o&&l(o)?o:{},s(d,{name:n,newValue:e(h,c,r)})):typeof r<"u"&&s(d,{name:n,newValue:r}));return d}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=d(n(3)),a=d(n(2)),l=d(n(0)),s=d(n(16)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=1,m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var i=l.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(l.default.Embed);m.scope=l.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),y(t))}),new a.default).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(l.default.query(o,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof s.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-g)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e||("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope)?t:y(e.parent,t)}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,l.default.Embed,c.default],t.bubbleFormats=y,t.BlockEmbed=m,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var a=m(n(2)),l=m(n(14)),s=m(n(8)),u=m(n(9)),c=m(n(0)),d=n(15),f=m(d),p=m(n(3)),h=m(n(10)),g=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),w=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=x(t,o),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;_.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null!=this.imports[e]&&!o&&b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return _.call(this,(function(){var o=n.getSelection(!0),r=new a.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,v({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,v({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],_.call(this,(function(){return a.editor.formatLine(e,t,l)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],l=u[2],i=u[3],_.call(this,(function(){return a.editor.formatText(e,t,l)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return _.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var a=this,l=void 0,s=k(e,0,n,o,i),u=r(s,4);return e=u[0],l=u[2],i=u[3],_.call(this,(function(){return a.editor.insertText(e,t,l)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){e=new a.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,o),a=r(i,4);t=a[0],n=a[1],o=a[3],this.selection.setRange(new d.Range(t,n),o),o!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return _.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=g.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},w.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function _(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=E(r,l,t):0!==o&&(r=E(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),l.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,l,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return l}function k(e,t,n,r,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(typeof n>"u"?"undefined":o(n))?(a=n,i=r):"string"==typeof n&&(null!=r?a[n]=r:i=n),[e,t,a,i=i||s.default.sources.API]}function E(e,t,n,o){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),c=r(u,2);i=c[0],l=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===s.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=r(f,2);i=p[0],l=p[1]}return new d.Range(i,l-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=s.default.events,w.sources=s.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":g.default},t.expandConfig=x,t.overload=k,t.default=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&a.default.query(o,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);d.allowedChildren=[d,a.default.Embed,i.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(0)).default.Text);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var d=function(e){function t(){l(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",c.error),e}return u(t,e),o(t,[{key:"emit",value:function(){c.log.apply(c,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},t.default=d},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){r=e},t.default=a},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function l(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}function u(e,t,n){var u,c;if(l(e)||l(t)||e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),a(e,t,n));if(s(e)){if(!s(t)||e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=r(e),f=r(t)}catch{return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),u=d.length-1;u>=0;u--)if(d[u]!=f[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},a=d(n(2)),l=d(n(0)),s=d(n(4)),u=d(n(6)),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);g.blotName="code",g.tagName="CODE";var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(c.default,this.length()-1),a=o(r,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=l.default.query(o,l.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,u=this.isolate(a,s),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-a+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=g,t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=v(n(2)),l=v(n(20)),s=v(n(0)),u=v(n(13)),c=v(n(24)),d=n(4),f=v(d),p=v(n(16)),h=v(n(21)),g=v(n(11)),m=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var w=/^[ -~]*$/,x=function(){function e(t){b(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=k(e)).reduce((function(e,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),g=r(h,2),v=g[0],y=g[1],b=(0,m.default)({},(0,d.bubbleFormats)(v));if(v instanceof f.default){var w=v.descendant(s.default.Leaf,y),x=r(w,1)[0];b=(0,m.default)(b,(0,d.bubbleFormats)(x))}c=l.default.attributes.diff(b,c)||{}}else if("object"===o(a.insert)){var _=Object.keys(a.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,a.insert[_])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,r,o[r])}else t.format(r,o[r]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof f.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=_((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(y({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return!(e.statics.blotName!==f.default.blotName||e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),l=i[0],s=i[1],c=0,d=new a.default;null!=l&&(c=l instanceof u.default?l.newlineIndex(s)-s+1:l.length()-s,d=l.delta().slice(s,s+c-1).insert("\n"));var f=this.getContents(e,t+c).diff((new a.default).insert(n).concat(d)),p=(new a.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(w)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),l=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),f=(new a.default).insert(u),p=(new a.default).insert(r.value());e=(new a.default).retain(l).concat(f.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),(!e||!(0,g.default)(o.compose(e),this.delta))&&(e=o.diff(this.delta,n));return e}}]),e}();function _(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}function k(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null!=t.attributes&&(!0===t.attributes.list||!0===t.attributes.bullet)&&((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new a.default)}t.default=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(0)),a=u(n(21)),l=u(n(11)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,u(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch{}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;o.setNativeRange(r,i,a,l)}})),this.update(s.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),a=o(i,2),l=a[0],s=a[1];if(null==l)return null;var u=l.position(s,!0),c=o(u,2);r=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(r,s);var f=this.scroll.leaf(e+t),p=o(f,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),g=o(h,2);return r=g[0],s=g[1],d.setEnd(r,s),d.getBoundingClientRect()}var m="left",v=void 0;return r instanceof Text?(s<r.data.length?(d.setStart(r,s),d.setEnd(r,s+1)):(d.setStart(r,s-1),d.setEnd(r,s),m="right"),v=d.getBoundingClientRect()):(v=l.domNode.getBoundingClientRect(),s>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=o(e,2),r=n[0],a=n[1],l=i.default.find(r,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(r,a)})),a=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(c(r)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!g(this.root,e.startContainer)||!e.collapsed&&!g(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a=void 0,l=t.scroll.leaf(e),s=o(l,2),u=s[0],c=s[1],d=u.position(c,0!==n),f=o(d,2);a=f[0],c=f[1],r.push(a,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),a=o(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));l=o(s,1)[0]}if(null!=a&&null!=l){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||r||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||o!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,o),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(f)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function g(e,t){try{t.parentNode}catch{return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(i(n(0)).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=a})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],a=[[this,e]];return r instanceof t?a.concat(r.path(i,n)):(null!=r&&a.push([r,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===n.domNode)&&t.detach()}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var o=u(e);(o.next!=t||null==o.next)&&(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(a.default);function u(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch{t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&null!=n&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(l.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch{t=function(){}}try{n=Set}catch{n=function(){}}try{o=Promise}catch{o=function(){}}function r(i,a,l,s,c){"object"==typeof a&&(l=a.depth,s=a.prototype,c=a.includeNonEnumerable,a=a.circular);var d=[],f=[],p=typeof Buffer<"u";function h(i,l){if(null===i)return null;if(0===l)return i;var g,m;if("object"!=typeof i)return i;if(e(i,t))g=new t;else if(e(i,n))g=new n;else if(e(i,o))g=new o((function(e,t){i.then((function(t){e(h(t,l-1))}),(function(e){t(h(e,l-1))}))}));else if(r.__isArray(i))g=[];else if(r.__isRegExp(i))g=new RegExp(i.source,u(i)),i.lastIndex&&(g.lastIndex=i.lastIndex);else if(r.__isDate(i))g=new Date(i.getTime());else{if(p&&Buffer.isBuffer(i))return g=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(g),g;e(i,Error)?g=Object.create(i):typeof s>"u"?(m=Object.getPrototypeOf(i),g=Object.create(m)):(g=Object.create(s),m=s)}if(a){var v=d.indexOf(i);if(-1!=v)return f[v];d.push(i),f.push(g)}for(var y in e(i,t)&&i.forEach((function(e,t){var n=h(t,l-1),o=h(e,l-1);g.set(n,o)})),e(i,n)&&i.forEach((function(e){var t=h(e,l-1);g.add(t)})),i){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),(!b||null!=b.set)&&(g[y]=h(i[y],l-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(i);for(y=0;y<w.length;y++){var x=w[y];(k=Object.getOwnPropertyDescriptor(i,x))&&!k.enumerable&&!c||(g[x]=h(i[x],l-1),k.enumerable||Object.defineProperty(g,x,{enumerable:!1}))}}if(c){var _=Object.getOwnPropertyNames(i);for(y=0;y<_.length;y++){var k,E=_[y];(k=Object.getOwnPropertyDescriptor(i,E))&&k.enumerable||(g[E]=h(i[E],l-1),Object.defineProperty(g,E,{enumerable:!1}))}}return g}return typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0),h(i,l)}function i(e){return Object.prototype.toString.call(e)}function a(e){return"object"==typeof e&&"[object Date]"===i(e)}function l(e){return"object"==typeof e&&"[object Array]"===i(e)}function s(e){return"object"==typeof e&&"[object RegExp]"===i(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=a,r.__isArray=l,r.__isRegExp=s,r.__getRegExpFlags=u,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},a=p(n(0)),l=p(n(8)),s=n(4),u=p(s),c=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e){return e instanceof u.default||e instanceof s.BlockEmbed}var y=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return m(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),a=o(r,2),l=a[0],u=a[1],f=this.line(e+n),p=o(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&u>0){if(l instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var g=p.newlineIndex(0);g>-1&&p.split(g+1)}var m=p.children.head instanceof c.default?null:p.children.head;l.moveChildren(p,m),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){null!=this.whitelist&&!this.whitelist[o]||(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==a.default.query(n,a.default.Scope.BLOCK)){var r=a.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var l=a.default.create(n,o);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var o=a.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(v,e)}},{key:"lines",value:function(){return function e(t,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){v(t)?r.push(t):t instanceof a.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,s.BlockEmbed,f.default],t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=g(n(21)),l=g(n(11)),s=g(n(3)),u=g(n(2)),c=g(n(20)),d=g(n(0)),f=g(n(5)),p=g(n(10)),h=g(n(9));function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=(0,p.default)("quill:keyboard"),x=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",_=function(e){function t(e,n){v(this,t);var o=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){"list autofill"===t&&null!=e.scroll.whitelist&&!e.scroll.whitelist.list||o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},S),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},E),o.addBinding({key:t.keys.DELETE},{collapsed:!0},C)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},E),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},C)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},O),o.addBinding({key:t.keys.DELETE},{collapsed:!1},O),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},E),o.listen(),o}return b(t,e),i(t,null,[{key:"match",value:function(e,t){return t=T(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=T(e);if(null==o||null==o.key)return w.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=r(u,2),f=c[0],p=c[1],h=e.quill.getLeaf(s.index),g=r(h,2),m=g[0],v=g[1],y=0===s.length?[m,v]:e.quill.getLeaf(s.index+s.length),b=r(y,2),w=b[0],x=b[1],_=m instanceof d.default.Text?m.value().slice(0,v):"",k=w instanceof d.default.Text?w.value().slice(x):"",E={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:_,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed||null!=t.empty&&t.empty!==E.empty||null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,l.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix)||null!=t.suffix&&!t.suffix.test(E.suffix))&&!0!==t.handler.call(e,s,E)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function k(e,t){var n,o=e===_.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},o,/^$/),m(n,"handler",(function(n){var o=n.index;e===_.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===_.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function E(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=r(a,1)[0];if(null!=l&&l.length()>1){var s=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function C(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,a=this.quill.getLine(e.index),l=r(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),u=r(s,1)[0];if(u){var d=l.formats(),p=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(d,p)||{},i=u.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,f.default.sources.USER)}}function O(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function S(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function N(e){return{key:_.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,a=this.quill.scroll.descendant(n,o),l=r(a,2),s=l[0],u=l[1];if(null!=s){var c=this.quill.getIndex(s),p=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),g=s.domNode.textContent.slice(p,h).split("\n");u=0,g.forEach((function(t,r){e?(s.insertAt(p+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(o,i,f.default.sources.SILENT)}}}}function j(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function T(e){if("string"==typeof e||"number"==typeof e)return T({key:e});if("object"===(typeof e>"u"?"undefined":o(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=_.keys[e.key.toUpperCase()])e.key=_.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[x]=e.shortKey,delete e.shortKey),e}_.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},_.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:_.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:_.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:_.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:_.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:_.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:_.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:_.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(0,s.default)({},o.formats(),{list:"checked"}),l=(new u.default).retain(e.index).insert("\n",a).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:_.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],a=o[1],l=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(c,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:_.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":k(_.keys.LEFT,!1),"embed left shift":k(_.keys.LEFT,!0),"embed right":k(_.keys.RIGHT,!1),"embed right shift":k(_.keys.RIGHT,!0)}},t.default=_,t.SHORTKEY=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=s(n(0)),l=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return d(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],i=u[1],s=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var d=[i,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),f=o(d,2);return i=f[0],s=f[1],{startNode:r,startOffset:i,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);f.blotName="cursor",f.className="ql-cursor",f.tagName="span",f.CONTENTS="\ufeff",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(0)),r=n(4),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(o.default.Container);c.allowedChildren=[i.default,r.BlockEmbed,c],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(i.default.Attributor.Style),d=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),f=new c("color","color",{scope:i.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=d,t.ColorStyle=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(i(n(6)).default);function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=0;function c(e,t){e.setAttribute(t,"true"!==e.getAttribute(t))}var d=function(){function e(t){var n=this;s(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=v(n(0)),r=v(n(5)),i=n(4),a=v(i),l=v(n(16)),s=v(n(25)),u=v(n(24)),c=v(n(35)),d=v(n(6)),f=v(n(22)),p=v(n(7)),h=v(n(55)),g=v(n(42)),m=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":g.default,"modules/keyboard":m.default}),o.default.register(a.default,l.default,u.default,d.default,f.default,p.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var a=o.create(this.statics.scope);i.wrap(a),a.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),(this.domNode.parentNode!=e.domNode||this.domNode.nextSibling!=n)&&e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d="\ufeff",f=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return c(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(d).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var r=this.prev.length();this.prev.insertAt(r,o),t={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=d,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}]),t}(i.default.Embed);t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",i),l=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=a,t.AlignClass=l,t.AlignStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o=i(n(0)),r=n(26);function i(e){return e&&e.__esModule?e:{default:e}}var a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new r.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",i),l=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=a,t.DirectionClass=l,t.DirectionStyle=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new i.default.Attributor.Class("font","ql-font",c),f=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(i.default.Attributor.Style),p=new f("font","font-family",c);t.FontStyle=p,t.FontClass=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o=r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=a},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(e,n){l(this,t);var o=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return u(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=f(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function d(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}function f(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return d(e)&&(n-=1),n}c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=c,t.getLastChangeIndex=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=h(n(3)),a=h(n(2)),l=h(n(8)),s=h(n(23)),u=h(n(34)),c=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],_=["small",!1,"large","huge"],k=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null!=o.tooltip&&!o.tooltip.root.contains(n.target)&&document.activeElement!==o.tooltip.textbox&&!o.quill.hasFocus()&&o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,r),o}return v(t,e),o(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&O(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&O(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?O(e,w):e.classList.contains("ql-header")?O(e,x):e.classList.contains("ql-size")&&O(e,_)),new f.default(e)}));var o=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(l.default.events.EDITOR_CHANGE,o)}}]),t}(u.default);k.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(o.index).delete(o.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(o.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return v(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){s.default.match(t,"enter")?(e.save(),t.preventDefault()):s.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,l.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=C(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",l.default.sources.USER),this.quill.setSelection(o+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function C(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=E,t.default=k},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],a=e-r[1],l=this.iterator(i);(o=l())&&a<e+t;){var s=o.length();e>a?n(o,e-a,Math.min(t,a+s-e)):n(o,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},u=function(e){null==e.domNode[a.DATA_KEY]||null==e.domNode[a.DATA_KEY].mutations||(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(u),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null==e||e===o||null==e.domNode[a.DATA_KEY]||e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1);function l(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||a.query(o,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&l(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=a.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=a.query(o,a.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=a.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,o=1,r=0;function i(e,t,n){if(e==t)return e?[[r,e]]:[];(n<0||e.length<n)&&(n=null);var o=u(e,t),i=e.substring(0,o);o=c(e=e.substring(o),t=t.substring(o));var l=e.substring(e.length-o),s=a(e=e.substring(0,e.length-o),t=t.substring(0,t.length-o));return i&&s.unshift([r,i]),l&&s.push([r,l]),f(s),null!=n&&(s=g(s,n)),s=m(s)}function a(e,t){var a;if(!e)return[[o,t]];if(!t)return[[n,e]];var s=e.length>t.length?e:t,u=e.length>t.length?t:e,c=s.indexOf(u);if(-1!=c)return a=[[o,s.substring(0,c)],[r,u],[o,s.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,e],[o,t]];var f=d(e,t);if(f){var p=f[0],h=f[1],g=f[2],m=f[3],v=f[4],y=i(p,g),b=i(h,m);return y.concat([[r,v]],b)}return l(e,t)}function l(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),l=a,u=2*a,c=new Array(u),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[l+1]=0,d[l+1]=0;for(var p=r-i,h=p%2!=0,g=0,m=0,v=0,y=0,b=0;b<a;b++){for(var w=-b+g;w<=b-m;w+=2){for(var x=l+w,_=(S=w==-b||w!=b&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;S<r&&_<i&&e.charAt(S)==t.charAt(_);)S++,_++;if(c[x]=S,S>r)m+=2;else if(_>i)g+=2;else if(h&&(C=l+p-w)>=0&&C<u&&-1!=d[C]&&S>=(E=r-d[C]))return s(e,t,S,_)}for(var k=-b+v;k<=b-y;k+=2){for(var E,C=l+k,O=(E=k==-b||k!=b&&d[C-1]<d[C+1]?d[C+1]:d[C-1]+1)-k;E<r&&O<i&&e.charAt(r-E-1)==t.charAt(i-O-1);)E++,O++;if(d[C]=E,E>r)y+=2;else if(O>i)v+=2;else if(!h){var S;if((x=l+p-k)>=0&&x<u&&-1!=c[x]&&(_=l+(S=c[x])-x,S>=(E=r-E)))return s(e,t,S,_)}}}return[[n,e],[o,t]]}function s(e,t,n,o){var r=e.substring(0,n),a=t.substring(0,o),l=e.substring(n),s=t.substring(o),u=i(r,a),c=i(l,s);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function d(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function r(e,t,n){for(var o,r,i,a,l=e.substring(n,n+Math.floor(e.length/4)),s=-1,d="";-1!=(s=t.indexOf(l,s+1));){var f=u(e.substring(n),t.substring(s)),p=c(e.substring(0,n),t.substring(0,s));d.length<p+f&&(d=t.substring(s-p,s)+t.substring(s,s+f),o=e.substring(0,n-p),r=e.substring(n+f),i=t.substring(0,s-p),a=t.substring(s+f))}return 2*d.length>=e.length?[o,r,i,a,d]:null}var i,a,l,s,d,f=r(n,o,Math.ceil(n.length/4)),p=r(n,o,Math.ceil(n.length/2));return f||p?(i=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(a=i[0],l=i[1],s=i[2],d=i[3]):(s=i[0],d=i[1],a=i[2],l=i[3]),[a,l,s,d,i[4]]):null}function f(e){e.push([r,""]);for(var t,i=0,a=0,l=0,s="",d="";i<e.length;)switch(e[i][0]){case o:l++,d+=e[i][1],i++;break;case n:a++,s+=e[i][1],i++;break;case r:a+l>1?(0!==a&&0!==l&&(0!==(t=u(d,s))&&(i-a-l>0&&e[i-a-l-1][0]==r?e[i-a-l-1][1]+=d.substring(0,t):(e.splice(0,0,[r,d.substring(0,t)]),i++),d=d.substring(t),s=s.substring(t)),0!==(t=c(d,s))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),s=s.substring(0,s.length-t))),0===a?e.splice(i-l,a+l,[o,d]):0===l?e.splice(i-a,a+l,[n,s]):e.splice(i-a-l,a+l,[n,s],[o,d]),i=i-a-l+(a?1:0)+(l?1:0)+1):0!==i&&e[i-1][0]==r?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,l=0,a=0,s="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i<e.length-1;)e[i-1][0]==r&&e[i+1][0]==r&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),p=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),p=!0)),i++;p&&f(e)}var p=i;function h(e,t){if(0===t)return[r,e];for(var o=0,i=0;i<e.length;i++){var a=e[i];if(a[0]===n||a[0]===r){var l=o+a[1].length;if(t===l)return[i+1,e];if(t<l){e=e.slice();var s=t-o,u=[a[0],a[1].slice(0,s)],c=[a[0],a[1].slice(s)];return e.splice(i,1,u,c),[i+1,e]}o=l}}throw new Error("cursor_pos is out of bounds!")}function g(e,t){var n=h(e,t),o=n[1],i=n[0],a=o[i],l=o[i+1];if(null==a)return e;if(a[0]!==r)return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),v(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var s=l[1].slice(a[1].length);return s.length>0&&o.splice(i+2,0,[l[0],s]),v(o,i,3)}return e}function m(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},l=2;l<e.length;l+=1)e[l-2][0]===r&&a(e[l-2][1])&&e[l-1][0]===n&&i(e[l-1][1])&&e[l][0]===o&&i(e[l][1])&&(t=!0,e[l-1][1]=e[l-2][1].slice(-1)+e[l-1][1],e[l][1]=e[l-2][1].slice(-1)+e[l][1],e[l-2][1]=e[l-2][1].slice(0,-1));if(!t)return e;var s=[];for(l=0;l<e.length;l+=1)e[l][1].length>0&&s.push(e[l]);return s}function v(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}p.INSERT=o,p.DELETE=n,p.EQUAL=r,e.exports=p},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),a.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,l=new Array(a);i<a;i++)l[i]=r[i].fn;return l},a.prototype.emit=function(e,t,n,r,i,a){var l=o?o+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},a.prototype.on=function(e,t,n){var r=new i(t,n||this),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn===t&&(!i||l.once)&&(!n||l.context===n)&&(0==--this._eventsCount?this._events=new r:delete this._events[a]);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||i&&!l[s].once||n&&l[s].context!==n)&&u.push(l[s]);u.length?this._events[a]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=o,a.EventEmitter=a,typeof e<"u"&&(e.exports=a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=b(n(3)),l=b(n(2)),s=b(n(0)),u=b(n(5)),c=b(n(10)),d=b(n(9)),f=n(36),p=n(37),h=b(n(13)),g=n(26),m=n(38),v=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var E=(0,c.default)("quill:clipboard"),C="__ql-matcher",O=[[Node.TEXT_NODE,U],[Node.TEXT_NODE,V],["br",q],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,H],["li",z],["b",I.bind(I,"bold")],["i",I.bind(I,"italic")],["style",F]],S=[f.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),N=[f.AlignStyle,p.BackgroundStyle,g.ColorStyle,m.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),j=function(e){function t(e,n){x(this,t);var o=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],O.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],a=t[1];!n.matchVisual&&a===B||o.addMatcher(i,a)})),o}return k(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),a=i[0],s=i[1],u=R(this.container,a,s);return M(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new l.default).retain(u.length()-1).delete(1))),E.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new l.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[C]=e[C]||[],e[C].push(l)}))}})),[t,n]}}]),t}(d.default);function T(e,t,n){return"object"===(typeof t>"u"?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return T(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,a.default)({},w({},t,n),o.attributes))}),new l.default)}function P(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function M(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function A(e){if(0===e.childNodes.length)return!1;var t=P(e);return["block","list-item"].indexOf(t.display)>-1}function R(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var i=R(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[C]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new l.default):new l.default}function I(e,t,n){return T(n,e,!0)}function D(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null!=(n=S[t])&&(n.attrName===t||n.keyName===t)&&(i[n.attrName]=n.value(e)||void 0),null!=(n=N[t])&&(n.attrName===t||n.keyName===t)&&(n=N[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=T(t,i)),t}function L(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new l.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=T(t,n.blotName,n.formats(e)));return t}function q(e,t){return M(t,"\n")||t.insert("\n"),t}function F(){return new l.default}function z(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!M(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:o}))}function V(e,t){return M(t,"\n")||(A(e)||t.length()>0&&e.nextSibling&&A(e.nextSibling))&&t.insert("\n"),t}function B(e,t){if(A(e)&&null!=e.nextElementSibling&&!M(t,"\n\n")){var n=e.offsetHeight+parseFloat(P(e).marginTop)+parseFloat(P(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function H(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===P(e).fontStyle&&(n.italic=!0),o.fontWeight&&(P(e).fontWeight.startsWith("bold")||parseInt(P(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=T(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}function U(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!P(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&A(e.parentNode)||null!=e.previousSibling&&A(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&A(e.parentNode)||null!=e.nextSibling&&A(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}j.DEFAULTS={matchers:[],matchVisual:!0},t.default=j,t.matchAttributor=D,t.matchBlot=L,t.matchNewline=V,t.matchSpacing=B,t.matchText=U},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(i(n(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(2)),a=c(n(0)),l=c(n(5)),s=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=(0,s.default)("quill:toolbar"),m=function(e){function t(e,n){f(this,t);var r,i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");y(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=g.error("Container required for toolbar",i.options),p(i,r))}return h(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void g.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void g.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var s=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];s=!u.hasAttribute("selected")&&(u.value||!1)}else s=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=o(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,s);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(s=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(d({},n,s)),l.default.sources.USER)}else t.quill.format(n,s,l.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],a=r[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+s+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function v(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function y(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)v(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?b(n,t,o):v(n,t,o)}})),e.appendChild(n)}))}function b(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}m.DEFAULTS={},m.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):!e&&"right"===t&&this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=m,t.addControls=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){a(this,t);var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),o}return s(t,e),o(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=i:o.style.fill=i)}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(e,n){a(this,t);var o=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return s(t,e),o(t,[{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(i(n(28)).default);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n){var o=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var a=r.bottom-r.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=p(n(3)),l=p(n(8)),s=n(43),u=p(s),c=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return m(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);y.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return m(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===l.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),a=o(i,2),s=a[0],u=a[1];if(null!=s){e.linkRange=new d.Range(t.index-u,s.length());var f=c.default.formats(s.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=I(n(29)),r=n(36),i=n(38),a=n(64),l=I(n(65)),s=I(n(66)),u=n(67),c=I(u),d=n(37),f=n(26),p=n(39),h=n(40),g=I(n(56)),m=I(n(68)),v=I(n(27)),y=I(n(69)),b=I(n(70)),w=I(n(71)),x=I(n(72)),_=I(n(73)),k=n(13),E=I(k),C=I(n(74)),O=I(n(75)),S=I(n(57)),N=I(n(41)),j=I(n(28)),T=I(n(59)),P=I(n(60)),M=I(n(61)),A=I(n(108)),R=I(n(62));function I(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":g.default,"formats/code":k.Code,"formats/italic":m.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":_.default,"formats/list/item":u.ListItem,"modules/formula":C.default,"modules/syntax":O.default,"modules/toolbar":S.default,"themes/bubble":A.default,"themes/snow":R.default,"ui/icons":N.default,"ui/picker":j.default,"ui/icon-picker":P.default,"ui/color-picker":T.default,"ui/tooltip":M.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(i.default.Attributor.Class),d=new c("indent","ql-indent",{scope:i.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(4)).default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(r(n(4)).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(0)),a=s(n(4)),l=s(n(25));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),o(t,[{key:"format",value:function(e,n){e!==h.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);p.blotName="list-item",p.tagName="LI";var h=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return f(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return("checked"===e||"unchecked"===e)&&o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof p)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);h.blotName="list",h.scope=i.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[p],t.ListItem=p,t.default=h},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(56)).default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)};function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(i(n(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(6)).default);l.blotName="strike",l.tagName="S",t.default=l},function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(o(n(6)).default);l.blotName="underline",l.tagName="U",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=l(n(0)),a=n(27);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,a.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=n(4),a=l(n(27));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],f=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),o(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return a.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(35)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),o(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(l.default);t.FormulaBlot=f,t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},i=s(n(0)),a=s(n(5)),l=s(n(9));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);f.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return d(t,e),o(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(f,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0===a?void 0:a.call(o)},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=d(n(3)),a=d(n(8)),l=n(43),s=d(l),u=n(15),c=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(s.default);m.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(e){function t(e,n){f(this,t);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===a.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var l=i[i.length-1],s=o.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-s),d=o.quill.getBounds(new u.Range(s,c));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=v,t.default=m},function(e,t,n){e.exports=n(63)}]).default,Hf=be&&be.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Uf=be&&be.__assign||function(){return Uf=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Uf.apply(this,arguments)},Wf=be&&be.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,r++)o[r]=i[a];return o},$f=be&&be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Gf=$f(t),Kf=$f(he),Yf=$f(zf),Zf=$f(Bf),Xf=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,o,r){var i,a,l,s;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,r,n.unprivilegedEditor):"selection-change"===e&&(null===(s=(l=n).onEditorChangeSelection)||void 0===s||s.call(l,t,r,n.unprivilegedEditor))};var o=n.isControlled()?t.value:t.defaultValue;return n.value=o??"",n}return Hf(t,e),t.prototype.validateProps=function(e){var t;if(Gf.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(Gf.default.Children.count(e.children)&&"textarea"===(null===(t=Gf.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),r=e.value??"";this.isEqualValue(r,o)||this.setEditorContents(this.editor,r)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),Wf(this.cleanProps,this.dirtyProps).some((function(t){return!Yf.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!Yf.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var o=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(o=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(o),Qf((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new Zf.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?Yf.default(e.ops,t.ops):Yf.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var o=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),Qf((function(){return n.setEditorSelection(e,o)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,o;null!==(o=null===(n=e)||void 0===n?void 0:n.scroll)&&void 0!==o&&o.domNode&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=Kf.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,o=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return Gf.default.Children.count(n)?Gf.default.cloneElement(Gf.default.Children.only(n),r):o?Gf.default.createElement("pre",Uf({},r)):Gf.default.createElement("div",Uf({},r))},t.prototype.render=function(){var e;return Gf.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,e??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,o){var r,i;if(this.editor){var a=this.isDelta(this.value)?o.getContents():o.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(r=this.props).onChange)||void 0===i||i.call(r,e,t,n,o))}},t.prototype.onEditorChangeSelection=function(e,t,n){var o,r,i,a,l,s;if(this.editor){var u=this.getEditorSelection(),c=!u&&e,d=u&&!e;Yf.default(e,u)||(this.selection=e,null===(r=(o=this.props).onChangeSelection)||void 0===r||r.call(o,e,t,n),c?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):d&&(null===(s=(l=this.props).onBlur)||void 0===s||s.call(l,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=Zf.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(Gf.default.Component);function Qf(e){Promise.resolve().then(e)}const Jf=we(Xf),ep="_viewMode_dgzrp_1",tp="_editMode_dgzrp_2",np="_text-label_dgzrp_24",op="_error-message_dgzrp_28",rp={toolbar:[[{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}]]},ip=["size","font","bold","italic","underline","strike","blockquote","list","bullet","indent"],ap=({dataTest:e,...t})=>Oe.jsxs(Oe.Fragment,{children:[t.label&&Oe.jsx("span",{className:sn(np),"data-test":`label-${e}`,children:t.label}),t.disabled?Oe.jsx(Jf,{...t,className:sn(ep,t.className),readOnly:!0,modules:{toolbar:!1},"data-test":e}):Oe.jsx(Jf,{...t,className:sn(tp,t.className),modules:{...rp,...t.modules},formats:{...ip,...t.formats},"data-test":e}),(t.is_error?"error":t.is_warning?"warning":!!t.isRequired||null)&&Oe.jsx("span",{className:op,"data-test":`error-${e}`,children:t.error?t.error:"error"})]}),lp=({dataTest:e,allowClear:t,...n})=>Oe.jsx(P,{...n,"data-test":e,value:n.value,IconComponent:e=>Oe.jsx(Pr,{...e,icon:"material-symbols:expand-more-rounded",width:24,height:24,className:sn(e.className,"select-custom-icon")}),endAdornment:t&&n.value?Oe.jsx("div",{className:"hover:bg-gama-100 duration-300 absolute right-8 p-[2px] rounded-full flex items-center justify-center",onClick:()=>{var e;null==(e=n.onChange)||e.call(n,{target:{value:""}},null)},children:Oe.jsx(wi,{width:18,height:18})}):null,sx:{...n.sx,".MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-delta-500) !important"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"&.Mui-focused::after":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-3.5px !important"}}}),sp=e=>Oe.jsx(M,{...e,sx:{"&.MuiMenuItem-root":{fontSize:"14px !important"},"&.Mui-selected":{backgroundColor:"var(--colors-gama-50) !important"}},children:e.children});function up({dataTest:e,...t}){return Oe.jsx(A,{...t,className:sn("!text-sm",t.className),popupIcon:t.popupIcon||Oe.jsx(Pr,{icon:"material-symbols:expand-more-rounded",width:24,height:24,className:sn("select-custom-icon")}),"data-test":e,PaperComponent:({children:t})=>Oe.jsx(R,{"data-test":`paper-${e}`,sx:{"& ul":{padding:"0 !important"},"& .MuiAutocomplete-option.Mui-focused":{background:"var(--colors-delta-50) !important"},"& li[aria-selected=true]":{background:"var(--colors-gama-50) !important"},"& li[aria-selected=true].MuiAutocomplete-option.Mui-focused":{background:"var(--colors-gama-50) !important"}},children:t}),sx:{...t.sx,"& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--colors-gama-500) !important"},"& .select-custom-icon":{marginTop:"-0.5px !important"},"& .MuiInputBase-inputSizeSmall":{minHeight:"23px !important"}}})}const cp=({dataTest:e,...t})=>{var n,o,r;return Oe.jsx(I,{...t,"data-test":e,classes:{...t.classes},slotProps:{...t.slotProps,thumb:{className:sn("w-4 h-4","before:shadow-none","vertical"===t.orientation?"ml-0 mb-1":"ml-1",t.disabled||!t.value?"bg-delta-200":"bg-gama-600"),...null==(n=t.slotProps)?void 0:n.thumb},rail:{className:"bg-delta-200",...null==(o=t.slotProps)?void 0:o.rail},markLabel:{className:sn("text-delta-600 text-sm font-semibold ml-1","vertical"===t.orientation&&"mb-1"),...null==(r=t.slotProps)?void 0:r.markLabel}},sx:{...t.sx,"& .MuiSlider-track":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)"},"& .MuiSlider-mark":{backgroundColor:"white",border:"1px solid var(--colors-gray-200)",borderRadius:"50%",height:"8px",width:"8px","&.MuiSlider-markActive":{backgroundColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",border:"1px solid",borderColor:t.disabled?"var(--colors-gray-200)":"var(--colors-gama-600)",opacity:1}}}})},dp=({dataTest:e,...t})=>Oe.jsx(D,{...t,"data-test":e,sx:{"& .MuiButtonBase-root.Mui-checked":{color:"var(--colors-gama-500) !important"},"& .Mui-disabled .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-200) !important"},"& .MuiSwitch-thumb":{backgroundColor:"var(--colors-gama-500) !important"},"& .MuiSwitch-input:not(:checked) ~ .MuiSwitch-thumb":{backgroundColor:"var(--colors-gray-10) !important"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--colors-gama-200) !important"},"& .PrivateSwitchBase-input.MuiSwitch-input":{height:"100% !important"}}}),fp=({dataTest:e,...t})=>Oe.jsx(L,{...t,"data-test":e,sx:{"&":{color:"var(--colors-gray-200)"},"& input":{height:"100% !important",width:"100% !important"},"&.Mui-checked":{color:"var(--colors-gama-500)"}}}),pp=({dataTest:e,...t})=>Oe.jsx(q,{"data-test":e,...t}),hp="-";function gp(e){const t=function(e){const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return function(e,t){return t?e.map((([e,n])=>{const o=n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e));return[e,o]})):e}(Object.entries(e.classGroups),n).forEach((([e,n])=>{yp(n,o,e,t)})),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){const n=e.split(hp);return""===n[0]&&1!==n.length&&n.shift(),mp(n,t)||function(e){if(vp.test(e)){const t=vp.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const r=n[e]||[];return t&&o[e]?[...r,...o[e]]:r}}}function mp(e,t){var n;if(0===e.length)return t.classGroupId;const o=e[0],r=t.nextPart.get(o),i=r?mp(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join(hp);return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId}const vp=/^\[(.+)\]$/;function yp(e,t,n,o){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return function(e){return e.isThemeGetter}(e)?void yp(e(o),t,n,o):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,r])=>{yp(r,bp(t,e),n,o)}))}else{(""===e?t:bp(t,e)).classGroupId=n}}))}function bp(e,t){let n=e;return t.split(hp).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function wp(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;function r(r,i){n.set(r,i),t++,t>e&&(t=0,o=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}}const xp="!";function _p(e){const t=e.separator,n=1===t.length,o=t[0],r=t.length;return function(e){const i=[];let a,l=0,s=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===l){if(c===o&&(n||e.slice(u,u+r)===t)){i.push(e.slice(s,u)),s=u+r;continue}if("/"===c){a=u;continue}}"["===c?l++:"]"===c&&l--}const u=0===i.length?e:e.substring(s),c=u.startsWith(xp);return{modifiers:i,hasImportantModifier:c,baseClassName:c?u.substring(1):u,maybePostfixModifierPosition:a&&a>s?a-s:void 0}}}const kp=/\s+/;function Ep(){let e,t,n=0,o="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Cp(e))&&(o&&(o+=" "),o+=t);return o}function Cp(e){if("string"==typeof e)return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=Cp(e[o]))&&(n&&(n+=" "),n+=t);return n}function Op(e,...t){let n,o,r,i=function(l){const s=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:wp(e.cacheSize),splitModifiers:_p(e),...gp(e)}}(s),o=n.cache.get,r=n.cache.set,i=a,a(l)};function a(e){const t=o(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,i=new Set;return e.trim().split(kp).map((e=>{const{modifiers:t,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let l=o(a?i.substring(0,a):i),s=!!a;if(!l){if(!a)return{isTailwindClass:!1,originalClassName:e};if(l=o(i),!l)return{isTailwindClass:!1,originalClassName:e};s=!1}const u=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:r?u+xp:u,classGroupId:l,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:o}=e,a=t+n;return!i.has(a)&&(i.add(a),r(n,o).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return r(e,i),i}return function(){return i(Ep.apply(null,arguments))}}function Sp(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const Np=/^\[(?:([a-z-]+):)?(.+)\]$/i,jp=/^\d+\/\d+$/,Tp=new Set(["px","full","screen"]),Pp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ap=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ip(e){return Lp(e)||Tp.has(e)||jp.test(e)}function Dp(e){return Zp(e,"length",Xp)}function Lp(e){return!!e&&!Number.isNaN(Number(e))}function qp(e){return Zp(e,"number",Lp)}function Fp(e){return!!e&&Number.isInteger(Number(e))}function zp(e){return e.endsWith("%")&&Lp(e.slice(0,-1))}function Vp(e){return Np.test(e)}function Bp(e){return Pp.test(e)}const Hp=new Set(["length","size","percentage"]);function Up(e){return Zp(e,Hp,Qp)}function Wp(e){return Zp(e,"position",Qp)}const $p=new Set(["image","url"]);function Gp(e){return Zp(e,$p,eh)}function Kp(e){return Zp(e,"",Jp)}function Yp(){return!0}function Zp(e,t,n){const o=Np.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):n(o[2]))}function Xp(e){return Mp.test(e)}function Qp(){return!1}function Jp(e){return Ap.test(e)}function eh(e){return Rp.test(e)}function th(){const e=Sp("colors"),t=Sp("spacing"),n=Sp("blur"),o=Sp("brightness"),r=Sp("borderColor"),i=Sp("borderRadius"),a=Sp("borderSpacing"),l=Sp("borderWidth"),s=Sp("contrast"),u=Sp("grayscale"),c=Sp("hueRotate"),d=Sp("invert"),f=Sp("gap"),p=Sp("gradientColorStops"),h=Sp("gradientColorStopPositions"),g=Sp("inset"),m=Sp("margin"),v=Sp("opacity"),y=Sp("padding"),b=Sp("saturate"),w=Sp("scale"),x=Sp("sepia"),_=Sp("skew"),k=Sp("space"),E=Sp("translate"),C=()=>["auto",Vp,t],O=()=>[Vp,t],S=()=>["",Ip,Dp],N=()=>["auto",Lp,Vp],j=()=>["","0",Vp],T=()=>[Lp,qp],P=()=>[Lp,Vp];return{cacheSize:500,separator:":",theme:{colors:[Yp],spacing:[Ip,Dp],blur:["none","",Bp,Vp],brightness:T(),borderColor:[e],borderRadius:["none","","full",Bp,Vp],borderSpacing:O(),borderWidth:S(),contrast:T(),grayscale:j(),hueRotate:P(),invert:j(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[zp,Dp],inset:C(),margin:C(),opacity:T(),padding:O(),saturate:T(),scale:T(),sepia:j(),skew:P(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",Vp]}],container:["container"],columns:[{columns:[Bp]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Vp]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fp,Vp]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Vp]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Fp,Vp]}],"grid-cols":[{"grid-cols":[Yp]}],"col-start-end":[{col:["auto",{span:["full",Fp,Vp]},Vp]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Yp]}],"row-start-end":[{row:["auto",{span:[Fp,Vp]},Vp]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Vp]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Vp]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Vp,t]}],"min-w":[{"min-w":[Vp,t,"min","max","fit"]}],"max-w":[{"max-w":[Vp,t,"none","full","min","max","fit","prose",{screen:[Bp]},Bp]}],h:[{h:[Vp,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Vp,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Vp,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Vp,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Bp,Dp]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qp]}],"font-family":[{font:[Yp]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Vp]}],"line-clamp":[{"line-clamp":["none",Lp,qp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ip,Vp]}],"list-image":[{"list-image":["none",Vp]}],"list-style-type":[{list:["none","disc","decimal",Vp]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ip,Dp]}],"underline-offset":[{"underline-offset":["auto",Ip,Vp]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Vp]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Vp]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Wp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Up]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gp]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Ip,Vp]}],"outline-w":[{outline:[Ip,Dp]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Ip,Dp]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Bp,Kp]}],"shadow-color":[{shadow:[Yp]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Bp,Vp]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Vp]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",Vp]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",Vp]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Fp,Vp]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Vp]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Vp]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Vp]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ip,Dp,qp]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const nh=Op(th);function oh(...e){return nh(sn(e))}const rh=({children:e,onClick:t,className:n,dataTest:o})=>Oe.jsx("div",{className:oh("text-[10px] font-semibold flex items-center justify-center w-fit uppercase h-4 px-1.5 py-0.5 rounded-[3px] bg-gama-50 text-gama-700",n),onClick:t,"data-test":o,children:e});function ih(e){return ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ih(e)}function ah(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function lh(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function sh(e){lh(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ih(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function uh(e,t){lh(2,arguments);var n=sh(e),o=ah(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function ch(e,t){lh(2,arguments);var n=sh(e),o=ah(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var r=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+o+1,0),r>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}var dh={};function fh(){return dh}function ph(e,t){var n,o,r,i,a,l,s,u;lh(1,arguments);var c=fh(),d=ah(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=sh(e),p=f.getDay(),h=(p<d?7:0)+p-d;return f.setDate(f.getDate()-h),f.setHours(0,0,0,0),f}function hh(e){return lh(1,arguments),ph(e,{weekStartsOn:1})}function gh(e){lh(1,arguments);var t=function(e){lh(1,arguments);var t=sh(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var r=hh(o),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var a=hh(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),hh(n)}function mh(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function vh(e){lh(1,arguments);var t=sh(e);return t.setHours(0,0,0,0),t}var yh=864e5;function bh(e,t){lh(2,arguments);var n=vh(e),o=vh(t),r=n.getTime()-mh(n),i=o.getTime()-mh(o);return Math.round((r-i)/yh)}function wh(e,t){return lh(2,arguments),uh(e,7*ah(t))}function xh(e,t){return lh(2,arguments),ch(e,12*ah(t))}function _h(e,t){lh(2,arguments);var n=vh(e),o=vh(t);return n.getTime()===o.getTime()}function kh(e){return lh(1,arguments),e instanceof Date||"object"===ih(e)&&"[object Date]"===Object.prototype.toString.call(e)}function Eh(e,t){lh(2,arguments);var n=sh(e),o=sh(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}var Ch=6048e5;function Oh(e){lh(1,arguments);var t=sh(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Sh(e){lh(1,arguments);var t=sh(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Nh(e){lh(1,arguments);var t=sh(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function jh(e,t){var n,o,r,i,a,l,s,u;lh(1,arguments);var c=fh(),d=ah(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=sh(e),p=f.getDay(),h=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+h),f.setHours(23,59,59,999),f}function Th(e){return lh(1,arguments),jh(e,{weekStartsOn:1})}function Ph(e,t){return lh(2,arguments),function(e,t){lh(2,arguments);var n=sh(e).getTime(),o=ah(t);return new Date(n+o)}(e,-ah(t))}function Mh(e){lh(1,arguments);var t=sh(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Ah(e){lh(1,arguments);var t=sh(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var r=Mh(o),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Mh(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Rh(e){lh(1,arguments);var t=sh(e),n=Mh(t).getTime()-function(e){lh(1,arguments);var t=Ah(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Mh(n)}(t).getTime();return Math.round(n/6048e5)+1}function Ih(e,t){var n,o,r,i,a,l,s,u;lh(1,arguments);var c=fh(),d=ah(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:c.weekStartsOn)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=sh(e),p=f.getUTCDay(),h=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Dh(e,t){var n,o,r,i,a,l,s,u;lh(1,arguments);var c=sh(e),d=c.getUTCFullYear(),f=fh(),p=ah(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var g=Ih(h,t),m=new Date(0);m.setUTCFullYear(d,0,p),m.setUTCHours(0,0,0,0);var v=Ih(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Lh(e,t){lh(1,arguments);var n=sh(e),o=Ih(n,t).getTime()-function(e,t){var n,o,r,i,a,l,s,u;lh(1,arguments);var c=fh(),d=ah(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=Dh(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),Ih(p,t)}(n,t).getTime();return Math.round(o/6048e5)+1}function qh(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}var Fh={y:function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return qh("yy"===t?o%100:o,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):qh(n+1,2)},d:function(e,t){return qh(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return qh(e.getUTCHours()%12||12,t.length)},H:function(e,t){return qh(e.getUTCHours(),t.length)},m:function(e,t){return qh(e.getUTCMinutes(),t.length)},s:function(e,t){return qh(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,o=e.getUTCMilliseconds();return qh(Math.floor(o*Math.pow(10,n-3)),t.length)}};const zh=Fh;var Vh="midnight",Bh="noon",Hh="morning",Uh="afternoon",Wh="evening",$h="night",Gh={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),r=o>0?o:1-o;return n.ordinalNumber(r,{unit:"year"})}return zh.y(e,t)},Y:function(e,t,n,o){var r=Dh(e,o),i=r>0?r:1-r;return"YY"===t?qh(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):qh(i,t.length)},R:function(e,t){return qh(Ah(e),t.length)},u:function(e,t){return qh(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return qh(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return qh(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return zh.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return qh(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var r=Lh(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):qh(r,t.length)},I:function(e,t,n){var o=Rh(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):qh(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):zh.d(e,t)},D:function(e,t,n){var o=function(e){lh(1,arguments);var t=sh(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):qh(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return qh(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var r=e.getUTCDay(),i=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return qh(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return qh(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,r=e.getUTCHours();switch(o=12===r?Bh:0===r?Vh:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,r=e.getUTCHours();switch(o=r>=17?Wh:r>=12?Uh:r>=4?Hh:$h,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return zh.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):zh.H(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):qh(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):qh(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):zh.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):zh.s(e,t)},S:function(e,t){return zh.S(e,t)},X:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Yh(r);case"XXXX":case"XX":return Zh(r);default:return Zh(r,":")}},x:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return Yh(r);case"xxxx":case"xx":return Zh(r);default:return Zh(r,":")}},O:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Kh(r,":");default:return"GMT"+Zh(r,":")}},z:function(e,t,n,o){var r=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Kh(r,":");default:return"GMT"+Zh(r,":")}},t:function(e,t,n,o){var r=o._originalDate||e;return qh(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,o){return qh((o._originalDate||e).getTime(),t.length)}};function Kh(e,t){var n=e>0?"-":"+",o=Math.abs(e),r=Math.floor(o/60),i=o%60;if(0===i)return n+String(r);var a=t||"";return n+String(r)+a+qh(i,2)}function Yh(e,t){return e%60==0?(e>0?"-":"+")+qh(Math.abs(e)/60,2):Zh(e,t)}function Zh(e,t){var n=t||"",o=e>0?"-":"+",r=Math.abs(e);return o+qh(Math.floor(r/60),2)+n+qh(r%60,2)}const Xh=Gh;var Qh=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Jh=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},eg={p:Jh,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],r=o[1],i=o[2];if(!i)return Qh(e,t);switch(r){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Qh(r,t)).replace("{{time}}",Jh(i,t))}};const tg=eg;var ng=["D","DD"],og=["YY","YYYY"];function rg(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var ig={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const ag=function(e,t,n){var o,r=ig[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function lg(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const sg={date:lg({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:lg({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:lg({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var ug={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const cg=function(e,t,n,o){return ug[e]};function dg(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;o=e.formattingValues[i]||e.formattingValues[r]}else{var a=e.defaultWidth,l=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}return o[e.argumentCallback?e.argumentCallback(t):t]}}var fg={ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:dg({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:dg({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dg({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:dg({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:dg({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const pg=fg;function hg(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a,l=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,(function(e){return e.test(l)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,(function(e){return e.test(l)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(l.length)}}}var gg={ordinalNumber:function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var r=o[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:hg({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:hg({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:hg({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:hg({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:hg({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const mg=gg;const vg={code:"en-US",formatDistance:ag,formatLong:sg,formatRelative:cg,localize:pg,match:mg,options:{weekStartsOn:0,firstWeekContainsDate:1}};var yg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wg=/^'([^]*?)'?$/,xg=/''/g,_g=/[a-zA-Z]/;function kg(e,t,n){var o,r,i,a,l,s,u,c,d,f,p,h,g,m,v,y,b,w;lh(2,arguments);var x=String(t),_=fh(),k=null!==(o=null!==(r=null==n?void 0:n.locale)&&void 0!==r?r:_.locale)&&void 0!==o?o:vg,E=ah(null!==(i=null!==(a=null!==(l=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:_.firstWeekContainsDate)&&void 0!==a?a:null===(d=_.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=ah(null!==(p=null!==(h=null!==(g=null!==(m=null==n?void 0:n.weekStartsOn)&&void 0!==m?m:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var O=sh(e);if(!function(e){if(lh(1,arguments),!kh(e)&&"number"!=typeof e)return!1;var t=sh(e);return!isNaN(Number(t))}(O))throw new RangeError("Invalid time value");var S=Ph(O,mh(O)),N={firstWeekContainsDate:E,weekStartsOn:C,locale:k,_originalDate:O},j=x.match(bg).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,tg[t])(e,k.formatLong):e})).join("").match(yg).map((function(o){if("''"===o)return"'";var r=o[0];if("'"===r)return function(e){var t=e.match(wg);return t?t[1].replace(xg,"'"):e}(o);var i=Xh[r];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&function(e){return-1!==og.indexOf(e)}(o)&&rg(o,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&function(e){return-1!==ng.indexOf(e)}(o)&&rg(o,t,String(e)),i(S,o,k.localize,N);if(r.match(_g))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return o})).join("");return j}var Eg=6048e5;function Cg(e){return lh(1,arguments),Math.floor(function(e){return lh(1,arguments),sh(e).getTime()}(e)/1e3)}function Og(e,t){var n,o,r,i,a,l,s,u;lh(1,arguments);var c=fh(),d=ah(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:c.firstWeekContainsDate)&&void 0!==o?o:null===(s=c.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=function(e,t){var n,o,r,i,a,l,s,u;lh(1,arguments);var c=sh(e),d=c.getFullYear(),f=fh(),p=ah(null!==(n=null!==(o=null!==(r=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:f.firstWeekContainsDate)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,p),h.setHours(0,0,0,0);var g=ph(h,t),m=new Date(0);m.setFullYear(d,0,p),m.setHours(0,0,0,0);var v=ph(m,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}(e,t),p=new Date(0);return p.setFullYear(f,0,d),p.setHours(0,0,0,0),ph(p,t)}var Sg=6048e5;function Ng(e,t){return lh(1,arguments),function(e,t,n){lh(2,arguments);var o=ph(e,n),r=ph(t,n),i=o.getTime()-mh(o),a=r.getTime()-mh(r);return Math.round((i-a)/Ch)}(function(e){lh(1,arguments);var t=sh(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),Sh(e),t)+1}function jg(e,t){lh(2,arguments);var n=sh(e),o=sh(t);return n.getTime()>o.getTime()}function Tg(e,t){lh(2,arguments);var n=sh(e),o=sh(t);return n.getTime()<o.getTime()}function Pg(e,t){lh(2,arguments);var n=sh(e),o=sh(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Mg(e,t){return lh(2,arguments),uh(e,-ah(t))}function Ag(e,t){lh(2,arguments);var n=sh(e),o=ah(t),r=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(r,o,15),a.setHours(0,0,0,0);var l=function(e){lh(1,arguments);var t=sh(e),n=t.getFullYear(),o=t.getMonth(),r=new Date(0);return r.setFullYear(n,o+1,0),r.setHours(0,0,0,0),r.getDate()}(a);return n.setMonth(o,Math.min(i,l)),n}function Rg(e,t){lh(2,arguments);var n=sh(e),o=ah(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}const Ig={code:"en-GB",formatDistance:ag,formatLong:{date:lg({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:lg({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:lg({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:cg,localize:pg,match:mg,options:{weekStartsOn:1,firstWeekContainsDate:4}};var Dg=function(){return Dg=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Dg.apply(this,arguments)};function Lg(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function qg(e){return"multiple"===e.mode}function Fg(e){return"range"===e.mode}function zg(e){return"single"===e.mode}var Vg={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var Bg=Object.freeze({__proto__:null,formatCaption:function(e,t){return kg(e,"LLLL y",t)},formatDay:function(e,t){return kg(e,"d",t)},formatMonthCaption:function(e,t){return kg(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return kg(e,"cccccc",t)},formatYearCaption:function(e,t){return kg(e,"yyyy",t)}}),Hg=Object.freeze({__proto__:null,labelDay:function(e,t,n){return kg(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return kg(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});var Ug=m(void 0);function Wg(e){var n,o,r=e.initialProps,i={captionLayout:"buttons",classNames:Vg,formatters:Bg,labels:Hg,locale:vg,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:new Date,mode:"default"},a=function(e){var t=e.fromYear,n=e.toYear,o=e.fromMonth,r=e.toMonth,i=e.fromDate,a=e.toDate;return o?i=Sh(o):t&&(i=new Date(t,0,1)),r?a=Oh(r):n&&(a=new Date(n,11,31)),{fromDate:i?vh(i):void 0,toDate:a?vh(a):void 0}}(r),l=a.fromDate,s=a.toDate,u=null!==(n=r.captionLayout)&&void 0!==n?n:i.captionLayout;"buttons"!==u&&(!l||!s)&&(u="buttons"),(zg(r)||qg(r)||Fg(r))&&(o=r.onSelect);var c=Dg(Dg(Dg({},i),r),{captionLayout:u,classNames:Dg(Dg({},i.classNames),r.classNames),components:Dg({},r.components),formatters:Dg(Dg({},i.formatters),r.formatters),fromDate:l,labels:Dg(Dg({},i.labels),r.labels),mode:r.mode||i.mode,modifiers:Dg(Dg({},i.modifiers),r.modifiers),modifiersClassNames:Dg(Dg({},i.modifiersClassNames),r.modifiersClassNames),onSelect:o,styles:Dg(Dg({},i.styles),r.styles),toDate:s});return t.createElement(Ug.Provider,{value:c},e.children)}function $g(){var e=u(Ug);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Gg(e){var n=$g(),o=n.locale,r=n.classNames,i=n.styles,a=n.formatters.formatCaption;return t.createElement("div",{className:r.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id},a(e.displayMonth,{locale:o}))}function Kg(e){return t.createElement("svg",Dg({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),t.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function Yg(e){var n,o,r=e.onChange,i=e.value,a=e.children,l=e.caption,s=e.className,u=e.style,c=$g(),d=null!==(o=null===(n=c.components)||void 0===n?void 0:n.IconDropdown)&&void 0!==o?o:Kg;return t.createElement("div",{className:s,style:u},t.createElement("span",{className:c.classNames.vhidden},e["aria-label"]),t.createElement("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:r},a),t.createElement("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},l,t.createElement(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})))}function Zg(e){var n,o=$g(),r=o.fromDate,i=o.toDate,a=o.styles,l=o.locale,s=o.formatters.formatMonthCaption,u=o.classNames,c=o.components,d=o.labels.labelMonthDropdown;if(!r)return t.createElement(t.Fragment,null);if(!i)return t.createElement(t.Fragment,null);var f=[];if(function(e,t){lh(2,arguments);var n=sh(e),o=sh(t);return n.getFullYear()===o.getFullYear()}(r,i))for(var p=Sh(r),h=r.getMonth();h<=i.getMonth();h++)f.push(Ag(p,h));else for(p=Sh(new Date),h=0;h<=11;h++)f.push(Ag(p,h));var g=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:Yg;return t.createElement(g,{name:"months","aria-label":d(),className:u.dropdown_month,style:a.dropdown_month,onChange:function(t){var n=Number(t.target.value),o=Ag(Sh(e.displayMonth),n);e.onChange(o)},value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:l})},f.map((function(e){return t.createElement("option",{key:e.getMonth(),value:e.getMonth()},s(e,{locale:l}))})))}function Xg(e){var n,o=e.displayMonth,r=$g(),i=r.fromDate,a=r.toDate,l=r.locale,s=r.styles,u=r.classNames,c=r.components,d=r.formatters.formatYearCaption,f=r.labels.labelYearDropdown,p=[];if(!i)return t.createElement(t.Fragment,null);if(!a)return t.createElement(t.Fragment,null);for(var h=i.getFullYear(),g=a.getFullYear(),m=h;m<=g;m++)p.push(Rg(Nh(new Date),m));var v=null!==(n=null==c?void 0:c.Dropdown)&&void 0!==n?n:Yg;return t.createElement(v,{name:"years","aria-label":f(),className:u.dropdown_year,style:s.dropdown_year,onChange:function(t){var n=Rg(Sh(o),Number(t.target.value));e.onChange(n)},value:o.getFullYear(),caption:d(o,{locale:l})},p.map((function(e){return t.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},d(e,{locale:l}))})))}function Qg(){var e=$g(),t=function(e){var t=e.month,n=e.defaultMonth,o=e.today,r=t||n||o||new Date,i=e.toDate,a=e.fromDate,l=e.numberOfMonths,s=void 0===l?1:l;return i&&Eh(i,r)<0&&(r=ch(i,-1*(s-1))),a&&Eh(r,a)<0&&(r=a),Sh(r)}(e),n=function(e,t){var n=p(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],r=n[1];return[o,function(t){var n;if(!e.disableNavigation){var o=Sh(t);r(o),null===(n=e.onMonthChange)||void 0===n||n.call(e,o)}}]}var Jg=m(void 0);function em(e){var n=$g(),o=Qg(),r=o[0],i=o[1],a=function(e,t){for(var n=t.reverseMonths,o=t.numberOfMonths,r=Sh(e),i=Eh(Sh(ch(r,o)),r),a=[],l=0;l<i;l++){var s=ch(r,l);a.push(s)}return n&&(a=a.reverse()),a}(r,n),l=function(e,t){if(!t.disableNavigation){var n=t.toDate,o=t.pagedNavigation,r=t.numberOfMonths,i=void 0===r?1:r,a=o?i:1,l=Sh(e);if(!n)return ch(l,a);if(!(Eh(n,e)<i))return ch(l,a)}}(r,n),s=function(e,t){if(!t.disableNavigation){var n=t.fromDate,o=t.pagedNavigation,r=t.numberOfMonths,i=o?void 0===r?1:r:1,a=Sh(e);if(!n)return ch(a,-i);if(!(Eh(a,n)<=0))return ch(a,-i)}}(r,n),u=function(e){return a.some((function(t){return Pg(e,t)}))},c={currentMonth:r,displayMonths:a,goToMonth:i,goToDate:function(e,t){u(e)||(t&&Tg(e,t)?i(ch(e,1+-1*n.numberOfMonths)):i(e))},previousMonth:s,nextMonth:l,isDateDisplayed:u};return t.createElement(Jg.Provider,{value:c},e.children)}function tm(){var e=u(Jg);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function nm(e){var n,o=$g(),r=o.classNames,i=o.styles,a=o.components,l=tm().goToMonth,s=function(t){l(ch(t,e.displayIndex?-e.displayIndex:0))},u=null!==(n=null==a?void 0:a.CaptionLabel)&&void 0!==n?n:Gg,c=t.createElement(u,{id:e.id,displayMonth:e.displayMonth});return t.createElement("div",{className:r.caption_dropdowns,style:i.caption_dropdowns},t.createElement("div",{className:r.vhidden},c),t.createElement(Zg,{onChange:s,displayMonth:e.displayMonth}),t.createElement(Xg,{onChange:s,displayMonth:e.displayMonth}))}function om(e){return t.createElement("svg",Dg({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function rm(e){return t.createElement("svg",Dg({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),t.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var im=o((function(e,n){var o=$g(),r=o.classNames,i=o.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var l=a.join(" "),s=Dg(Dg({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),t.createElement("button",Dg({},e,{ref:n,type:"button",className:l,style:s}))}));function am(e){var n,o,r=$g(),i=r.dir,a=r.locale,l=r.classNames,s=r.styles,u=r.labels,c=u.labelPrevious,d=u.labelNext,f=r.components;if(!e.nextMonth&&!e.previousMonth)return t.createElement(t.Fragment,null);var p=c(e.previousMonth,{locale:a}),h=[l.nav_button,l.nav_button_previous].join(" "),g=d(e.nextMonth,{locale:a}),m=[l.nav_button,l.nav_button_next].join(" "),v=null!==(n=null==f?void 0:f.IconRight)&&void 0!==n?n:rm,y=null!==(o=null==f?void 0:f.IconLeft)&&void 0!==o?o:om;return t.createElement("div",{className:l.nav,style:s.nav},!e.hidePrevious&&t.createElement(im,{name:"previous-month","aria-label":p,className:h,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===i?t.createElement(v,{className:l.nav_icon,style:s.nav_icon}):t.createElement(y,{className:l.nav_icon,style:s.nav_icon})),!e.hideNext&&t.createElement(im,{name:"next-month","aria-label":g,className:m,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===i?t.createElement(y,{className:l.nav_icon,style:s.nav_icon}):t.createElement(v,{className:l.nav_icon,style:s.nav_icon})))}function lm(e){var n=$g().numberOfMonths,o=tm(),r=o.previousMonth,i=o.nextMonth,a=o.goToMonth,l=o.displayMonths,s=l.findIndex((function(t){return Pg(e.displayMonth,t)})),u=0===s,c=s===l.length-1,d=n>1&&(u||!c),f=n>1&&(c||!u);return t.createElement(am,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:i,previousMonth:r,onPreviousClick:function(){r&&a(r)},onNextClick:function(){i&&a(i)}})}function sm(e){var n,o,r=$g(),i=r.classNames,a=r.disableNavigation,l=r.styles,s=r.captionLayout,u=r.components,c=null!==(n=null==u?void 0:u.CaptionLabel)&&void 0!==n?n:Gg;return o=a?t.createElement(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===s?t.createElement(nm,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===s?t.createElement(t.Fragment,null,t.createElement(nm,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),t.createElement(lm,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})):t.createElement(t.Fragment,null,t.createElement(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),t.createElement(lm,{displayMonth:e.displayMonth,id:e.id})),t.createElement("div",{className:i.caption,style:l.caption},o)}function um(e){var n=$g(),o=n.footer,r=n.styles,i=n.classNames.tfoot;return o?t.createElement("tfoot",{className:i,style:r.tfoot},t.createElement("tr",null,t.createElement("td",{colSpan:8},o))):t.createElement(t.Fragment,null)}function cm(){var e=$g(),n=e.classNames,o=e.styles,r=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,l=e.ISOWeek,s=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var o=n?hh(new Date):ph(new Date,{locale:e,weekStartsOn:t}),r=[],i=0;i<7;i++){var a=uh(o,i);r.push(a)}return r}(i,a,l);return t.createElement("tr",{style:o.head_row,className:n.head_row},r&&t.createElement("td",{style:o.head_cell,className:n.head_cell}),c.map((function(e,r){return t.createElement("th",{key:r,scope:"col",className:n.head_cell,style:o.head_cell,"aria-label":u(e,{locale:i})},s(e,{locale:i}))})))}function dm(){var e,n=$g(),o=n.classNames,r=n.styles,i=n.components,a=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:cm;return t.createElement("thead",{style:r.head,className:o.head},t.createElement(a,null))}function fm(e){var n=$g(),o=n.locale,r=n.formatters.formatDay;return t.createElement(t.Fragment,null,r(e.date,{locale:o}))}var pm=m(void 0);function hm(e){if(!qg(e.initialProps)){return t.createElement(pm.Provider,{value:{selected:void 0,modifiers:{disabled:[]}}},e.children)}return t.createElement(gm,{initialProps:e.initialProps,children:e.children})}function gm(e){var n=e.initialProps,o=e.children,r=n.selected,i=n.min,a=n.max,l={disabled:[]};r&&l.disabled.push((function(e){var t=a&&r.length>a-1,n=r.some((function(t){return _h(t,e)}));return!(!t||n)}));var s={selected:r,onDayClick:function(e,t,o){var l,s;if((null===(l=n.onDayClick)||void 0===l||l.call(n,e,t,o),!!(!t.selected||!i||(null==r?void 0:r.length)!==i))&&!!(t.selected||!a||(null==r?void 0:r.length)!==a)){var u=r?Lg([],r,!0):[];if(t.selected){var c=u.findIndex((function(t){return _h(e,t)}));u.splice(c,1)}else u.push(e);null===(s=n.onSelect)||void 0===s||s.call(n,u,e,t,o)}},modifiers:l};return t.createElement(pm.Provider,{value:s},o)}function mm(){var e=u(pm);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var vm,ym=m(void 0);function bm(e){if(!Fg(e.initialProps)){return t.createElement(ym.Provider,{value:{selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}}},e.children)}return t.createElement(wm,{initialProps:e.initialProps,children:e.children})}function wm(e){var n=e.initialProps,o=e.children,r=n.selected,i=r||{},a=i.from,l=i.to,s=n.min,u=n.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(c.range_start=[a],l?(c.range_end=[l],_h(a,l)||(c.range_middle=[{after:a,before:l}])):c.range_end=[a]):l&&(c.range_start=[l],c.range_end=[l]),s&&(a&&!l&&c.disabled.push({after:Mg(a,s-1),before:uh(a,s-1)}),a&&l&&c.disabled.push({after:a,before:uh(a,s-1)}),!a&&l&&c.disabled.push({after:Mg(l,s-1),before:uh(l,s-1)})),u){if(a&&!l&&(c.disabled.push({before:uh(a,1-u)}),c.disabled.push({after:uh(a,u-1)})),a&&l){var d=u-(bh(l,a)+1);c.disabled.push({before:Mg(a,d)}),c.disabled.push({after:uh(l,d)})}!a&&l&&(c.disabled.push({before:uh(l,1-u)}),c.disabled.push({after:uh(l,u-1)}))}return t.createElement(ym.Provider,{value:{selected:r,onDayClick:function(e,t,o){var i,a;null===(i=n.onDayClick)||void 0===i||i.call(n,e,t,o);var l=function(e,t){var n=t||{},o=n.from,r=n.to;return o&&r?_h(r,e)&&_h(o,e)?void 0:_h(r,e)?{from:r,to:void 0}:_h(o,e)?void 0:jg(o,e)?{from:e,to:r}:{from:o,to:e}:r?jg(e,r)?{from:r,to:e}:{from:e,to:r}:o?Tg(e,o)?{from:e,to:o}:{from:o,to:e}:{from:e,to:void 0}}(e,r);null===(a=n.onSelect)||void 0===a||a.call(n,l,e,t,o)},modifiers:c}},o)}function xm(){var e=u(ym);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function _m(e){return Array.isArray(e)?Lg([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(vm||(vm={}));var km=vm.Selected,Em=vm.Disabled,Cm=vm.Hidden,Om=vm.Today,Sm=vm.RangeEnd,Nm=vm.RangeMiddle,jm=vm.RangeStart,Tm=vm.Outside;var Pm=m(void 0);function Mm(e){var n=$g(),o=function(e,t,n){var o,r=((o={})[km]=_m(e.selected),o[Em]=_m(e.disabled),o[Cm]=_m(e.hidden),o[Om]=[e.today],o[Sm]=[],o[Nm]=[],o[jm]=[],o[Tm]=[],o);return e.fromDate&&r[Em].push({before:e.fromDate}),e.toDate&&r[Em].push({after:e.toDate}),qg(e)?r[Em]=r[Em].concat(t.modifiers[Em]):Fg(e)&&(r[Em]=r[Em].concat(n.modifiers[Em]),r[jm]=n.modifiers[jm],r[Nm]=n.modifiers[Nm],r[Sm]=n.modifiers[Sm]),r}(n,mm(),xm()),r=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],o=e[1];t[n]=_m(o)})),t}(n.modifiers),i=Dg(Dg({},o),r);return t.createElement(Pm.Provider,{value:i},e.children)}function Am(){var e=u(Pm);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Rm(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(function(e){return kh(e)}(t))return _h(e,t);if(function(e){return Array.isArray(e)&&e.every(kh)}(t))return t.includes(e);if(function(e){return!(!e||"object"!=typeof e||!("from"in e))}(t))return function(e,t){var n,o=t.from,r=t.to;return o&&r?(bh(r,o)<0&&(o=(n=[r,o])[0],r=n[1]),bh(e,o)>=0&&bh(r,e)>=0):r?_h(r,e):!!o&&_h(o,e)}(e,t);if(function(e){return!(!e||"object"!=typeof e||!("dayOfWeek"in e))}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return!!(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=bh(t.before,e)>0,o=bh(t.after,e)<0;return jg(t.before,t.after)?o&&n:n||o}return function(e){return!(!e||"object"!=typeof e||!("after"in e))}(t)?bh(e,t.after)>0:function(e){return!(!e||"object"!=typeof e||!("before"in e))}(t)?bh(t.before,e)>0:"function"==typeof t&&t(e)}))}function Im(e,t,n){var o=Object.keys(t).reduce((function(n,o){var r=t[o];return Rm(e,r)&&n.push(o),n}),[]),r={};return o.forEach((function(e){return r[e]=!0})),n&&!Pg(e,n)&&(r.outside=!0),r}var Dm=365;function Lm(e,t){var n=t.moveBy,o=t.direction,r=t.context,i=t.modifiers,a=t.retry,l=void 0===a?{count:0,lastFocused:e}:a,s=r.weekStartsOn,u=r.fromDate,c=r.toDate,d=r.locale,f={day:uh,week:wh,month:ch,year:xh,startOfWeek:function(e){return r.ISOWeek?hh(e):ph(e,{locale:d,weekStartsOn:s})},endOfWeek:function(e){return r.ISOWeek?Th(e):jh(e,{locale:d,weekStartsOn:s})}}[n](e,"after"===o?1:-1);"before"===o&&u?f=function(e){var t,n;if(lh(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==ih(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=sh(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}([u,f]):"after"===o&&c&&(f=function(e){var t,n;if(lh(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==ih(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=sh(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}([c,f]));var p=!0;if(i){var h=Im(f,i);p=!h.disabled&&!h.hidden}return p?f:l.count>Dm?l.lastFocused:Lm(f,{moveBy:n,direction:o,context:r,modifiers:i,retry:Dg(Dg({},l),{count:l.count+1})})}var qm=m(void 0);function Fm(e){var n=tm(),o=Am(),r=p(),i=r[0],a=r[1],l=p(),s=l[0],u=l[1],c=function(e,t){for(var n,o,r=Sh(e[0]),i=Oh(e[e.length-1]),a=r;a<=i;){var l=Im(a,t);if(l.disabled||l.hidden)a=uh(a,1);else{if(l.selected)return a;l.today&&!o&&(o=a),n||(n=a),a=uh(a,1)}}return o||n}(n.displayMonths,o),d=i??(s&&n.isDateDisplayed(s))?s:c,f=function(e){a(e)},h=$g(),g=function(e,t){if(i){var r=Lm(i,{moveBy:e,direction:t,context:h,modifiers:o});_h(i,r)||(n.goToDate(r,i),f(r))}},m={focusedDay:i,focusTarget:d,blur:function(){u(i),a(void 0)},focus:f,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return t.createElement(qm.Provider,{value:m},e.children)}function zm(){var e=u(qm);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Vm=m(void 0);function Bm(e){if(!zg(e.initialProps)){return t.createElement(Vm.Provider,{value:{selected:void 0}},e.children)}return t.createElement(Hm,{initialProps:e.initialProps,children:e.children})}function Hm(e){var n=e.initialProps,o=e.children,r={selected:n.selected,onDayClick:function(e,t,o){var r,i,a;null===(r=n.onDayClick)||void 0===r||r.call(n,e,t,o),!t.selected||n.required?null===(a=n.onSelect)||void 0===a||a.call(n,e,e,t,o):null===(i=n.onSelect)||void 0===i||i.call(n,void 0,e,t,o)}};return t.createElement(Vm.Provider,{value:r},o)}function Um(){var e=u(Vm);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Wm(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var o=e.modifiersClassNames[t];if(o)n.push(o);else if(function(e){return Object.values(vm).includes(e)}(t)){var r=e.classNames["day_".concat(t)];r&&n.push(r)}})),n}function $m(e,n,o){var r,i,l,s=$g(),u=zm(),c=function(e,t){return Im(e,Am(),t)}(e,n),d=function(e,t){var n=$g(),o=Um(),r=mm(),i=xm(),a=zm(),l=a.focusDayAfter,s=a.focusDayBefore,u=a.focusWeekAfter,c=a.focusWeekBefore,d=a.blur,f=a.focus,p=a.focusMonthBefore,h=a.focusMonthAfter,g=a.focusYearBefore,m=a.focusYearAfter,v=a.focusStartOfWeek,y=a.focusEndOfWeek;return{onClick:function(a){var l,s,u,c;zg(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,a):qg(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,a):Fg(n)?null===(u=i.onDayClick)||void 0===u||u.call(i,e,t,a):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,a)},onFocus:function(o){var r;f(e),null===(r=n.onDayFocus)||void 0===r||r.call(n,e,t,o)},onBlur:function(o){var r;d(),null===(r=n.onDayBlur)||void 0===r||r.call(n,e,t,o)},onKeyDown:function(o){var r;switch(o.key){case"ArrowLeft":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowRight":o.preventDefault(),o.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowDown":o.preventDefault(),o.stopPropagation(),u();break;case"ArrowUp":o.preventDefault(),o.stopPropagation(),c();break;case"PageUp":o.preventDefault(),o.stopPropagation(),o.shiftKey?g():p();break;case"PageDown":o.preventDefault(),o.stopPropagation(),o.shiftKey?m():h();break;case"Home":o.preventDefault(),o.stopPropagation(),v();break;case"End":o.preventDefault(),o.stopPropagation(),y()}null===(r=n.onDayKeyDown)||void 0===r||r.call(n,e,t,o)},onKeyUp:function(o){var r;null===(r=n.onDayKeyUp)||void 0===r||r.call(n,e,t,o)},onMouseEnter:function(o){var r;null===(r=n.onDayMouseEnter)||void 0===r||r.call(n,e,t,o)},onMouseLeave:function(o){var r;null===(r=n.onDayMouseLeave)||void 0===r||r.call(n,e,t,o)},onPointerEnter:function(o){var r;null===(r=n.onDayPointerEnter)||void 0===r||r.call(n,e,t,o)},onPointerLeave:function(o){var r;null===(r=n.onDayPointerLeave)||void 0===r||r.call(n,e,t,o)},onTouchCancel:function(o){var r;null===(r=n.onDayTouchCancel)||void 0===r||r.call(n,e,t,o)},onTouchEnd:function(o){var r;null===(r=n.onDayTouchEnd)||void 0===r||r.call(n,e,t,o)},onTouchMove:function(o){var r;null===(r=n.onDayTouchMove)||void 0===r||r.call(n,e,t,o)},onTouchStart:function(o){var r;null===(r=n.onDayTouchStart)||void 0===r||r.call(n,e,t,o)}}}(e,c),f=function(){var e=$g(),t=Um(),n=mm(),o=xm();return zg(e)?t.selected:qg(e)?n.selected:Fg(e)?o.selected:void 0}(),p=!(!s.onDayClick&&"default"===s.mode);a((function(){var t;c.outside||u.focusedDay&&p&&_h(u.focusedDay,e)&&(null===(t=o.current)||void 0===t||t.focus())}),[u.focusedDay,e,o,p,c.outside]);var h=Wm(s,c).join(" "),g=function(e,t){var n=Dg({},e.styles.day);return Object.keys(t).forEach((function(t){var o;n=Dg(Dg({},n),null===(o=e.modifiersStyles)||void 0===o?void 0:o[t])})),n}(s,c),m=!!(c.outside&&!s.showOutsideDays||c.hidden),v=null!==(l=null===(i=s.components)||void 0===i?void 0:i.DayContent)&&void 0!==l?l:fm,y={style:g,className:h,children:t.createElement(v,{date:e,displayMonth:n,activeModifiers:c}),role:"gridcell"},b=u.focusTarget&&_h(u.focusTarget,e)&&!c.outside,w=u.focusedDay&&_h(u.focusedDay,e),x=Dg(Dg(Dg({},y),((r={disabled:c.disabled,role:"gridcell"})["aria-selected"]=c.selected,r.tabIndex=w||b?0:-1,r)),d);return{isButton:p,isHidden:m,activeModifiers:c,selectedDays:f,buttonProps:x,divProps:y}}function Gm(e){var n=r(null),o=$m(e.date,e.displayMonth,n);return o.isHidden?t.createElement("div",{role:"gridcell"}):o.isButton?t.createElement(im,Dg({name:"day",ref:n},o.buttonProps)):t.createElement("div",Dg({},o.divProps))}function Km(e){var n=e.number,o=e.dates,r=$g(),i=r.onWeekNumberClick,a=r.styles,l=r.classNames,s=r.locale,u=r.labels.labelWeekNumber,c=(0,r.formatters.formatWeekNumber)(Number(n),{locale:s});if(!i)return t.createElement("span",{className:l.weeknumber,style:a.weeknumber},c);var d=u(Number(n),{locale:s});return t.createElement(im,{name:"week-number","aria-label":d,className:l.weeknumber,style:a.weeknumber,onClick:function(e){i(n,o,e)}},c)}function Ym(e){var n,o,r,i=$g(),a=i.styles,l=i.classNames,s=i.showWeekNumber,u=i.components,c=null!==(n=null==u?void 0:u.Day)&&void 0!==n?n:Gm,d=null!==(o=null==u?void 0:u.WeekNumber)&&void 0!==o?o:Km;return s&&(r=t.createElement("td",{className:l.cell,style:a.cell},t.createElement(d,{number:e.weekNumber,dates:e.dates}))),t.createElement("tr",{className:l.row,style:a.row},r,e.dates.map((function(n){return t.createElement("td",{className:l.cell,style:a.cell,key:Cg(n),role:"presentation"},t.createElement(c,{displayMonth:e.displayMonth,date:n}))})))}function Zm(e,t,n){for(var o=null!=n&&n.ISOWeek?Th(t):jh(t,n),r=null!=n&&n.ISOWeek?hh(e):ph(e,n),i=bh(o,r),a=[],l=0;l<=i;l++)a.push(uh(r,l));var s=a.reduce((function(e,t){var o=null!=n&&n.ISOWeek?function(e){lh(1,arguments);var t=sh(e),n=hh(t).getTime()-gh(t).getTime();return Math.round(n/Eg)+1}(t):function(e,t){lh(1,arguments);var n=sh(e),o=ph(n,t).getTime()-Og(n,t).getTime();return Math.round(o/Sg)+1}(t,n),r=e.find((function(e){return e.weekNumber===o}));return r?(r.dates.push(t),e):(e.push({weekNumber:o,dates:[t]}),e)}),[]);return s}function Xm(e){var n,o,r,i=$g(),a=i.locale,l=i.classNames,s=i.styles,u=i.hideHead,c=i.fixedWeeks,d=i.components,f=i.weekStartsOn,p=i.firstWeekContainsDate,h=i.ISOWeek,g=function(e,t){var n=Zm(Sh(e),Oh(e),t);if(null!=t&&t.useFixedWeeks){var o=Ng(e,t);if(o<6){var r=n[n.length-1],i=r.dates[r.dates.length-1],a=wh(i,6-o),l=Zm(wh(i,1),a,t);n.push.apply(n,l)}}return n}(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:h,locale:a,weekStartsOn:f,firstWeekContainsDate:p}),m=null!==(n=null==d?void 0:d.Head)&&void 0!==n?n:dm,v=null!==(o=null==d?void 0:d.Row)&&void 0!==o?o:Ym,y=null!==(r=null==d?void 0:d.Footer)&&void 0!==r?r:um;return t.createElement("table",{id:e.id,className:l.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&t.createElement(m,null),t.createElement("tbody",{className:l.tbody,style:s.tbody},g.map((function(n){return t.createElement(v,{displayMonth:e.displayMonth,key:n.weekNumber,dates:n.dates,weekNumber:n.weekNumber})}))),t.createElement(y,{displayMonth:e.displayMonth}))}var Qm=typeof window<"u"&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Jm=!1,ev=0;function tv(){return"react-day-picker-".concat(++ev)}function nv(n){var o,r,i=$g(),a=i.dir,l=i.classNames,s=i.styles,u=i.components,c=tm().displayMonths,d=function(t){var n,o=t??(Jm?tv():null),r=e.useState(o),i=r[0],a=r[1];return Qm((function(){null===i&&a(tv())}),[]),e.useEffect((function(){!1===Jm&&(Jm=!0)}),[]),null!==(n=t??i)&&void 0!==n?n:void 0}(i.id?"".concat(i.id,"-").concat(n.displayIndex):void 0),f=i.id?"".concat(i.id,"-grid-").concat(n.displayIndex):void 0,p=[l.month],h=s.month,g=0===n.displayIndex,m=n.displayIndex===c.length-1,v=!g&&!m;"rtl"===a&&(m=(o=[g,m])[0],g=o[1]),g&&(p.push(l.caption_start),h=Dg(Dg({},h),s.caption_start)),m&&(p.push(l.caption_end),h=Dg(Dg({},h),s.caption_end)),v&&(p.push(l.caption_between),h=Dg(Dg({},h),s.caption_between));var y=null!==(r=null==u?void 0:u.Caption)&&void 0!==r?r:sm;return t.createElement("div",{key:n.displayIndex,className:p.join(" "),style:h},t.createElement(y,{id:d,displayMonth:n.displayMonth,displayIndex:n.displayIndex}),t.createElement(Xm,{id:f,"aria-labelledby":d,displayMonth:n.displayMonth}))}function ov(e){var n=e.initialProps,o=$g(),r=zm(),i=tm(),l=p(!1),s=l[0],u=l[1];a((function(){o.initialFocus&&r.focusTarget&&(s||(r.focus(r.focusTarget),u(!0)))}),[o.initialFocus,s,r.focus,r.focusTarget,r]);var c=[o.classNames.root,o.className];o.numberOfMonths>1&&c.push(o.classNames.multiple_months),o.showWeekNumber&&c.push(o.classNames.with_weeknumber);var d=Dg(Dg({},o.styles.root),o.style),f=Object.keys(n).filter((function(e){return e.startsWith("data-")})).reduce((function(e,t){var o;return Dg(Dg({},e),((o={})[t]=n[t],o))}),{});return t.createElement("div",Dg({className:c.join(" "),style:d,dir:o.dir,id:o.id},f),t.createElement("div",{className:o.classNames.months,style:o.styles.months},i.displayMonths.map((function(e,n){return t.createElement(nv,{key:n,displayIndex:n,displayMonth:e})}))))}function rv(e){var n=e.children,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return t.createElement(Wg,{initialProps:o},t.createElement(em,null,t.createElement(Bm,{initialProps:o},t.createElement(hm,{initialProps:o},t.createElement(bm,{initialProps:o},t.createElement(Mm,null,t.createElement(Fm,null,n)))))))}function iv(e){return t.createElement(rv,Dg({},e),t.createElement(ov,{initialProps:e}))}const av="object"==typeof global&&global&&global.Object===Object&&global;var lv="object"==typeof self&&self&&self.Object===Object&&self;const sv=(av||lv||Function("return this")()).Symbol;var uv=Object.prototype,cv=uv.hasOwnProperty,dv=uv.toString,fv=sv?sv.toStringTag:void 0;var pv=Object.prototype.toString;var hv="[object Null]",gv="[object Undefined]",mv=sv?sv.toStringTag:void 0;function vv(e){return null==e?void 0===e?gv:hv:mv&&mv in Object(e)?function(e){var t=cv.call(e,fv),n=e[fv];try{e[fv]=void 0;var o=!0}catch{}var r=dv.call(e);return o&&(t?e[fv]=n:delete e[fv]),r}(e):function(e){return pv.call(e)}(e)}var yv="[object Symbol]";const bv=Array.isArray;var wv=1/0,xv=sv?sv.prototype:void 0,_v=xv?xv.toString:void 0;function kv(e){if("string"==typeof e)return e;if(bv(e))return function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,kv)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&vv(e)==yv}(e))return _v?_v.call(e):"";var t=e+"";return"0"==t&&1/e==-wv?"-0":t}function Ev(e){return null==e?"":kv(e)}function Cv(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(e,t,n)}var Ov=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Sv(e){return Ov.test(e)}var Nv="\\ud800-\\udfff",jv="["+Nv+"]",Tv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Pv="\\ud83c[\\udffb-\\udfff]",Mv="[^"+Nv+"]",Av="(?:\\ud83c[\\udde6-\\uddff]){2}",Rv="[\\ud800-\\udbff][\\udc00-\\udfff]",Iv="(?:"+Tv+"|"+Pv+")"+"?",Dv="[\\ufe0e\\ufe0f]?",Lv=Dv+Iv+("(?:\\u200d(?:"+[Mv,Av,Rv].join("|")+")"+Dv+Iv+")*"),qv="(?:"+[Mv+Tv+"?",Tv,Av,Rv,jv].join("|")+")",Fv=RegExp(Pv+"(?="+Pv+")|"+qv+Lv,"g");function zv(e){return Sv(e)?function(e){return e.match(Fv)||[]}(e):function(e){return e.split("")}(e)}var Vv=function(e){return function(t){var n=Sv(t=Ev(t))?zv(t):void 0,o=n?n[0]:t.charAt(0),r=n?Cv(n,1).join(""):t.slice(1);return o[e]()+r}}("toUpperCase");const Bv=Vv;function Hv(e){return Bv(Ev(e).toLowerCase())}const Uv=({onClose:e,isNb:t,selected:n,removeSelection:o,setMonth:r,month:i,onClear:a})=>{const{goToMonth:l,nextMonth:s,previousMonth:u}=tm(),c=bv(n)?!n.length:kh(n)?!n:!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(n)||!function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r}(Object.values(n)).length;return Oe.jsxs("div",{className:"mt-2 flex justify-between mr-3",children:[Oe.jsx(ta,{variant:"text",onClick:e=>{a?a():o(e),r(new Date(Date.now()))},size:"small",disabled:c,dataTest:"select-today",className:"!min-w-[60px]",startIcon:Oe.jsx(Pr,{icon:"ph:eraser-duotone",width:24,height:24})}),Oe.jsxs("div",{className:"rdp-custom-caption-navigation flex gap-1",children:[Oe.jsx(ta,{variant:"outlined",size:"small",dataTest:"previous-month",disabled:!u,onClick:()=>u&&l(u),startIcon:Oe.jsx(qr,{})}),Oe.jsx(ta,{size:"small",disabled:i&&Pg(new Date(Date.now()),i),onClick:()=>{r(new Date(Date.now()))},variant:"outlined",dataTest:"select-today",className:"!disabled:cursor-default",children:t?"I dag":"Today"}),Oe.jsx(ta,{variant:"outlined",size:"small",dataTest:"next-month",disabled:!s,onClick:()=>s&&l(s),startIcon:Oe.jsx(Lr,{})})]}),Oe.jsx(ta,{size:"small",onClick:t=>{null==e||e(t,"backdropClick")},dataTest:"select-today",className:"!min-w-[60px]",children:t?"Velg":"Select"})]})};function Wv(e){const{month:t}=e;return Oe.jsx("div",{className:"rdp-custom-caption flex justify-between items-center h-[30px] ml-4",children:t&&Oe.jsx(sm,{displayMonth:t})})}const $v=e=>Oe.jsx(F,{...e,sx:{...e.sx,"& label.MuiInputLabel-shrink":{background:"white !important",color:"var(--colors-delta-500) !important"}}}),Gv=e=>{const{caption:t,children:n}=e,{goToMonth:o}=tm(),{month:r}=$g(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Oe.jsx($v,{className:"w-[105px] ml-[-5px]",children:Oe.jsx(lp,{dataTest:"StyledCalendarPickerSelectMonth",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,a=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(a))&&o(Ag(r,Number(a)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Oe.jsx(sp,{value:e.label,children:Hv(e.label)},e.id)))})})},Kv=e=>{const{caption:t,children:n}=e,{goToMonth:o}=tm(),{month:r}=$g(),i=null==n?void 0:n.map((e=>({id:e.props.value,label:e.props.children})));return Oe.jsx($v,{className:"w-[70px] ml-[5px]",children:Oe.jsx(lp,{dataTest:"StyledCalendarPickerSelectYear",size:"small",variant:"standard",value:t,onChange:e=>{var t;const n=e.target.value,a=null==(t=i.find((e=>e.label===n)))?void 0:t.id;r&&!isNaN(Number(a))&&o(Rg(r,Number(a)))},MenuProps:{className:"[&_ul]:overflow-auto [&_ul]:max-h-[250px]"},children:null==i?void 0:i.map((e=>Oe.jsx(sp,{value:e.label,children:e.label},e.id)))})})},Yv=({datePickerProps:e,popoverProps:t,positionAbove:n})=>{const{showOutsideDays:o=!0,locale:r,selected:i,numberOfMonths:a,disabledDays:l,onClear:s}=e,{open:u,anchorEl:c,onClose:d}=t,[f,h]=p(new Date(Date.now())),g="nb"===(null==r?void 0:r.code),m=(a||1)<2;return Oe.jsx(z,{open:u,anchorEl:c,onClose:d,anchorOrigin:{vertical:n?"top":50,horizontal:"left"},transformOrigin:{vertical:n?"bottom":"top",horizontal:"left"},children:Oe.jsx(iv,{disabled:l,month:f,onMonthChange:e=>{h(e)},captionLayout:"dropdown",locale:r||Ig,fromYear:2e3,toYear:2050,"data-test":"calendar-picker",showWeekNumber:!0,showOutsideDays:o,fixedWeeks:!0,className:"font-roboto",classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-base text-[var(--colors-gray-700)] font-medium",nav:"space-x-1 flex items-center",nav_button:"h-7 w-7 flex text-[var(--colors-gray-700)] items-center justify-center border border-[var(--colors-gray-500)] hover:bg-[var(--colors-gray-50)] rounded",nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",head_row:"flex text-sm cursor-pointer",head_cell:"text-[var(--colors-gray-600)] w-9 cursor-pointer capitalize",row:"flex w-full mt-2",cell:"text-sm w-9 text-[var(--colors-gray-800)] relative [&:has([aria-selected])]:bg-gama-50 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md ",day:"h-10 w-9 p-0 font-normal rounded-md hover:bg-[var(--colors-gray-50)] focus-visible:border-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-gama-500 focus-visible:z-50",day_today:"text-gama-700 text-base bg-gray-100 font-bold hover:bg-gama-50",day_selected:"[&.bg-gray-100]:bg-gama-500 bg-gama-500 text-white hover:bg-gama-500 hover:text-white",day_outside:"text-[var(--colors-gray-400)]",day_disabled:"text-[var(--colors-gray-400)]",day_range_middle:"aria-selected:bg-gama-50 [&.bg-gray-100.bg-gama-500]:bg-gama-50 aria-selected:text-[var(--colors-gray-800)]",day_hidden:"invisible",caption_end:m?"":"[&_tfoot]:hidden [&_.rdp-custom-caption]:opacity-0 [&_.rdp-custom-caption]:pointer-events-none"},components:{IconLeft:()=>Oe.jsx(qr,{className:"h-4 w-4 "}),IconRight:()=>Oe.jsx(Lr,{className:"h-4 w-4"}),Caption:e=>Oe.jsx(Wv,{...e,setMonth:h,month:f,isNb:g}),Dropdown:e=>"months"===e.name?Oe.jsx(Gv,{...e}):Oe.jsx(Kv,{...e})},footer:Oe.jsx(Uv,{onClose:d,isNb:g,selected:i,removeSelection:t=>{var n;return i&&(null==(n=null==e?void 0:e.onSelect)?void 0:n.call(e,void 0,new Date(Date.now()),{},t))},setMonth:h,month:f,onClear:s}),...e})})},Zv=(e,t="dd.MM.yy")=>e?kg(e,t):"",Xv=e=>{var t,n,o;const{dataTest:r,placeholder:i,disabled:a,onClick:l,inputClassName:s,onClear:u,allowClear:c,dateFormat:d,label:f}=e;if("range"!==e.mode)return null;const p=Zv(null==(t=e.selected)?void 0:t.from,d),h=Zv(null==(n=e.selected)?void 0:n.to,d),g=null!=(o=e.selected)&&o.from?e.selected.to?`${p} - ${h}`:p:"";return Oe.jsx(is,{dataTest:r,placeholder:i,label:f,size:"small",onClick:e=>!a&&l(e),InputProps:{endAdornment:Oe.jsx(Gi,{width:24,height:24})},value:g,disabled:!!a,className:oh(`w-60 ${s}`),allowClear:c,onClear:()=>{null==u||u()}})},Qv=e=>{var t,n;const{dataTest:o,className:r,inputClassName:i,disabled:a,placeholderFrom:l,placeholderTo:s,dateFormat:u,onClick:c,labelFrom:d,labelTo:f}=e;if("range"!==e.mode)return null;const p=Zv(null==(t=e.selected)?void 0:t.from,u),h=Zv(null==(n=e.selected)?void 0:n.to,u);return Oe.jsxs("div",{"data-test":o,className:`${r} ${a?"cursor-default text-[var(--colors-gray-300)]":"cursor-pointer"} inline-flex gap-4 w-fit items-center`,onClick:e=>!a&&c(e),children:[Oe.jsx(is,{label:d,autoComplete:"off",size:"small",dataTest:"styled-date-picker-input-range-from",placeholder:l,value:p,disabled:!!a,className:`${i} w-36`,InputProps:{endAdornment:Oe.jsx(Gi,{width:24,height:24})}}),Oe.jsx(is,{label:f,autoComplete:"off",dataTest:"styled-date-picker-input-range-to",size:"small",placeholder:s,value:h,disabled:!!a,className:`${i} w-36`,InputProps:{endAdornment:Oe.jsx(Gi,{width:24,height:24})}})]})},Jv=e=>{const{dataTest:t,placeholder:n,disabled:o,onClick:r,inputClassName:i,onClear:a,allowClear:l,dateFormat:s,error:u=!1,helperText:c}=e;return"single"!==e.mode?null:Oe.jsx(is,{dataTest:t,placeholder:n,size:"small",onClick:e=>!o&&r(e),InputProps:{endAdornment:Oe.jsx(Gi,{width:24,height:24})},value:Zv(e.selected,s),disabled:!!o,className:oh(`w-36 ${i}`),allowClear:l,onClear:()=>{null==a||a()},label:e.label,error:u,helperText:c})},ey=e=>{const t="range"===e.mode&&!e.compact,n="range"===e.mode&&e.compact;return t?Oe.jsx(Xv,{...e,onClick:e.onClick}):n?Oe.jsx(Qv,{...e,onClick:e.onClick}):Oe.jsx(Jv,{...e,onClick:e.onClick})},ty=e=>{const[t,n]=p(null),[o,r]=p(!1);return Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(ey,{...e,onClick:e=>{n(e.currentTarget),((e,t)=>{const n=window.innerHeight,o=e.currentTarget.getBoundingClientRect(),r=o.top,i=n-o.bottom;t(i<300&&r>i)})(e,r)}}),Oe.jsx(Yv,{datePickerProps:{...e},popoverProps:{open:!!t,anchorEl:t,onClose:()=>{n(null)}},positionAbove:o})]})};function ny(t){if(typeof window>"u")return t;const n=e.useRef(null);return e.useLayoutEffect((()=>{n.current=t})),e.useCallback(((...e)=>{var t;null===(t=n.current)||void 0===t||t.call(n,...e)}),[])}const oy={};const ry={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function iy({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:o}){const l=r(!0);a((()=>(l.current=!0,()=>{l.current=!1})),[]);const[s,u]=p(ry),c=i((e=>{l.current&&u(e)}),[]),d=i((e=>c((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),f=ny((e=>(s.isOpen?m(e):h(e),s))),h=ny((t=>{const o=t instanceof Element?void 0:t,r=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void c((e=>({...e,_deferNextOpen:!0})));const i=null==o?void 0:o.clientX,a=null==o?void 0:o.clientY,l="number"==typeof i&&"number"==typeof a?{left:i,top:a}:void 0,s=i=>{if(!t&&!i.setAnchorElUsed&&"dialog"!==n&&function(e,t){oy[e]||(oy[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return i;setTimeout((()=>e._setChildPopupState(x)))}const a={...i,isOpen:!0,anchorPosition:l,hovered:"mouseover"===(null==o?void 0:o.type)||i.hovered,focused:"focus"===(null==o?void 0:o.type)||i.focused,_openEventType:null==o?void 0:o.type};return null!=o&&o.currentTarget?i.setAnchorElUsed||(a.anchorEl=null==o?void 0:o.currentTarget):r&&(a.anchorEl=r),a};c((e=>e._deferNextOpen?(setTimeout((()=>c(s)),0),{...e,_deferNextOpen:!1}):s(e)))})),g=t=>{const{_childPopupState:n}=t;return setTimeout((()=>{null==n||n.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},m=ny((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?c((e=>e._deferNextClose?(setTimeout((()=>c(g)),0),{...e,_deferNextClose:!1}):g(e))):c((e=>({...e,_deferNextClose:!0})))})),v=i(((e,t)=>{e?h(t):m(t)}),[]),y=ny((e=>{const{relatedTarget:t}=e;c((e=>!e.hovered||t instanceof Element&&uy(t,x)?e:e.focused?{...e,hovered:!1}:g(e)))})),b=ny((e=>{if(!e)return;const{relatedTarget:t}=e;c((e=>!e.focused||t instanceof Element&&uy(t,x)?e:e.hovered?{...e,focused:!1}:g(e)))})),w=i((e=>c((t=>({...t,_childPopupState:e})))),[]),x={...s,setAnchorEl:d,popupId:t,variant:n,open:h,close:m,toggle:f,setOpen:v,onBlur:b,onMouseLeave:y,disableAutoFocus:o??!(!s.hovered&&!s.focused),_setChildPopupState:w};return x}function ay({isOpen:e,popupId:t,variant:n}){return{..."popover"===n?{"aria-haspopup":!0,"aria-controls":e&&null!=t?t:void 0}:"popper"===n?{"aria-describedby":e&&null!=t?t:void 0}:void 0}}function ly(e){return{...ay(e),onClick:e.open,onTouchStart:e.open}}function sy({isOpen:e,anchorEl:t,popupId:n,onMouseLeave:o}){return{id:n,anchorEl:t,open:e,onMouseLeave:o}}function uy(e,t){const{anchorEl:n,_childPopupState:o}=t;return cy(n,e)||cy(function(e,{popupId:t}){if(!t)return null;const n="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof n.getElementById?n.getElementById(t):null}(e,t),e)||null!=o&&uy(e,o)}function cy(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function dy({children:e,popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}){return e(iy({popupId:t,variant:n,parentPopupState:o,disableAutoFocus:r}))??null}dy.propTypes={children:fe.func.isRequired,popupId:fe.string,variant:fe.oneOf(["popover","popper"]).isRequired,parentPopupState:fe.object,disableAutoFocus:fe.bool};const fy=({type:e,value:t,onSelect:n})=>{const o=new Date,r="hours"===e,i=r?24:12,a=r?o.getHours():o.getMinutes();return Oe.jsx("div",{className:"styled-time-picker-root_column overflow-y-scroll scrollbar-track-transparent scrollbar-thumb-delta-100 scrollbar-thin",children:new Array(i).fill(null).map(((e,o)=>{const i=r?o:5*o,l=t&&i===(r?function(e){return lh(1,arguments),sh(e).getHours()}(t):function(e){return lh(1,arguments),sh(e).getMinutes()}(t)),s=a==i;return Oe.jsx("div",{className:sn("styled-time-picker-root_cell",l&&"styled-time-picker-root_cell__cell-selected",s&&"styled-time-picker-root_cell__cell-now"),onClick:()=>{n(function(e,t){if(lh(2,arguments),"object"!==ih(t)||null===t)throw new RangeError("values parameter must be an object");var n=sh(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Ag(n,t.month)),null!=t.date&&n.setDate(ah(t.date)),null!=t.hours&&n.setHours(ah(t.hours)),null!=t.minutes&&n.setMinutes(ah(t.minutes)),null!=t.seconds&&n.setSeconds(ah(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(ah(t.milliseconds)),n)}(t||new Date,r?{hours:i}:{minutes:i}))},children:i.toString().padStart(2,"0")},i)}))})},py=({value:e,onSelect:t,dataTest:n})=>{const o=r(null);return a((()=>{var e;null==(e=o.current)||e.querySelectorAll("div.styled-time-picker-root_cell__cell-selected").forEach((e=>e.scrollIntoView()))}),[o]),Oe.jsxs("div",{ref:o,"data-test":n,className:"styled-time-picker-root",children:[Oe.jsx(fy,{type:"hours",value:e,onSelect:t}),Oe.jsx(fy,{type:"minutes",value:e,onSelect:t})]})},hy=e=>{const{popupState:t,dataTest:n,value:o,onSelect:r,handleClear:i}=e;return Oe.jsx(V,{...sy(t),transition:!0,className:"z-[1300] absolute top-2",children:({TransitionProps:e})=>Oe.jsx(B,{...e,timeout:350,children:Oe.jsxs(R,{className:"pb-[1px]",children:[Oe.jsx(py,{dataTest:`${n}-time-picker-body`,value:o,onSelect:r}),Oe.jsxs("div",{className:"flex my-3 justify-between",children:[Oe.jsx(ta,{variant:"text",onClick:i,size:"small",disabled:!o,dataTest:"select-today",className:"!min-w-[40px] ml-2.5",startIcon:Oe.jsx(Pr,{icon:"ph:eraser-duotone",width:24,height:24})}),Oe.jsx(ta,{size:"small",onClick:()=>t.close(),dataTest:"select-time",className:"!min-w-[40px] mr-4",startIcon:Oe.jsx(Pr,{icon:"bi:check-lg",width:20,height:20})})]})]})})})},gy=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Oe.jsx(Ar,{icon:"mdi:clock-outline",width:e,height:t,className:n,onClick:o,color:r}),my=({isValidTime:e,error:t=!1,localization:n="en",helperText:o})=>{if(e&&!t)return null;let r=o;return e||(r="en"===n?"Not valid":"Ikke gyldig"),Oe.jsx("span",{className:"absolute",children:r})},vy=e=>{const{placeholder:t,disabled:n,inputClassName:o,dataTest:r,width:i,error:a,helperText:l,label:s,locale:u="en",popupState:c,handleChange:d,isValidTime:f,localValue:p}=e;return Oe.jsx(is,{name:"password",autoComplete:"off",type:"text",dataTest:r,placeholder:t,size:"small",error:!f||a,helperText:Oe.jsx(my,{isValidTime:f,error:a,localization:u,helperText:l}),onChange:d,InputProps:{endAdornment:Oe.jsx(gy,{width:24,height:24,onClick:()=>!n&&c.open()})},value:p,sx:{maxWidth:i||130,width:i,minWidth:i},disabled:n,className:oh(o),label:s})},yy=e=>{const{value:t,onSelect:n}=e,[o,r]=p(t?kg(t,"HH:mm"):""),[i,a]=p(!0),l=e=>{const t=e.target.value;r(t);const o=(e=>{var t,n;const o=e.split(":"),r=Number(o[0]),i=Number(o[1]);if(2==(null==(t=o[0])?void 0:t.length)&&2==(null==(n=o[1])?void 0:n.length)&&r>=0&&r<=23&&i>=0&&i<=59){const e=new Date;return e.setHours(r),e.setMinutes(i),e}return null})(t);n(o||void 0),a(!!o)},s=e=>{n(e),r(e?kg(e,"HH:mm"):""),a(!0)},u=()=>{n(void 0),r(""),a(!0)};return Oe.jsx(dy,{variant:"popper",popupId:"time-picker-popper",children:t=>Oe.jsx(H,{mouseEvent:"onMouseDown",onClickAway:()=>{t.close()},children:Oe.jsxs("div",{className:"w-fit h-fit relative",children:[Oe.jsx("div",{...ly(t),children:Oe.jsx(vy,{...e,popupState:t,localValue:o,isValidTime:i,handleChange:l})}),t.isOpen&&Oe.jsx(hy,{...e,popupState:t,handleClear:u,onSelect:s})]})})})},by=e=>Oe.jsx(U,{...e}),wy=e=>Oe.jsx(W,{...e}),xy=e=>Oe.jsx($,{...e}),_y=e=>Oe.jsx(G,{...e}),ky=e=>Oe.jsx(K,{...e}),Ey=e=>Oe.jsx(Y,{...e}),Cy=e=>Oe.jsx(Z,{...e}),Oy=e=>{var t,n;return Oe.jsx(X,{...e,classes:{paper:sn("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]",null==(t=e.classes)?void 0:t.paper),list:sn("py-1",null==(n=e.classes)?void 0:n.list),...e.classes}})},Sy=e=>{var t;return Oe.jsx(M,{...e,classes:{root:sn("px-3 py-2.5",null==(t=e.classes)?void 0:t.root),...e.classes}})},Ny=e=>Oe.jsx(Q,{...e}),jy="_link_gyvti_1",Ty=({href:e,title:t,disabled:n,size:o="large",dataTest:r,reflink:i,className:a,...l})=>{let s="text-sm";return"large"===o&&(s="text-base"),n?Oe.jsx("span",{className:`font-roboto font-semibold w-fit underline rounded px-1 py-0.5 outline-none border-none text-delta-300 ${s}`,children:t}):Oe.jsx("a",{...l,"data-test":r,ref:i,href:e,className:sn(`${jy} + ${s}`,a),children:t})},Py=e=>Oe.jsx(J,{...e,sx:{"&.MuiTab-textColorPrimary.Mui-selected":{color:"var(--colors-gama-500)"}}}),My=e=>Oe.jsx(ee,{TabIndicatorProps:{style:{background:"var(--colors-gama-500)",color:"var(--colors-gama-500)"}},...e}),Ay=e=>Oe.jsx(te,{...e}),Ry=e=>Oe.jsx(ne,{...e}),Iy=e=>Oe.jsx(oe,{...e,className:sn("flex-row-reverse gap-2.5",e.className),expandIcon:Oe.jsx(yi,{width:24,height:24}),sx:{...e.sx,backgroundColor:"transparent !important","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},"& .MuiAccordionSummary-expandIconWrapper:not(.Mui-expanded)":{transform:"rotate(0deg)"}}}),Dy=e=>Oe.jsx(re,{...e}),Ly="select",qy="expand-column-id",Fy="actions";
|
|
202
26
|
/**
|
|
203
27
|
* table-core
|
|
204
28
|
*
|
|
@@ -208,7 +32,7 @@ function(e,t){const n=we(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
208
32
|
* LICENSE.md file in the root directory of this source tree.
|
|
209
33
|
*
|
|
210
34
|
* @license MIT
|
|
211
|
-
*/function m$(e,t){return"function"==typeof e?e(t):e}function g$(e,t){return n=>{t.setState((t=>({...t,[e]:m$(n,t[e])})))}}function b$(e){return e instanceof Function}function v$(e,t,n){let o,r=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const l=e();if(l.length===r.length&&!l.some(((e,t)=>r[t]!==e)))return o;let a;if(r=l,n.key&&n.debug&&(a=Date.now()),o=t(...l),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-a))/100,o=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return o}}function y$(e,t,n){var o;let r={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(r,e)})),r}const w$={createTable:e=>{e.getHeaderGroups=v$((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>{var i,l;const a=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(l=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[];return x$(t,[...a,...n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),...s],e)}),{key:"development"===process.env.NODE_ENV&&"getHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=v$((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>x$(t,n=n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),e,"center")),{key:"development"===process.env.NODE_ENV&&"getCenterHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=v$((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var r;return x$(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"left")}),{key:"development"===process.env.NODE_ENV&&"getLeftHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=v$((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var r;return x$(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"right")}),{key:"development"===process.env.NODE_ENV&&"getRightHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=v$((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=v$((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getLeftFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=v$((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getCenterFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=v$((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getRightFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=v$((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=v$((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getLeftFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=v$((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getCenterFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=v$((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getRightFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=v$((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getCenterLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=v$((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getLeftLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=v$((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getRightLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=v$((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,r,i,l,a,s;return[...null!=(o=null==(r=e[0])?void 0:r.headers)?o:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),{key:"development"===process.env.NODE_ENV&&"getLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function x$(e,t,n,o){var r,i;let l=0;const a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)};a(e);let s=[];const u=(e,t)=>{const r={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const l=[...i].reverse()[0];let a,s=!1;if(e.column.depth===r.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),l&&(null==l?void 0:l.column)===a)l.subHeaders.push(e);else{const r=y$(n,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===a)).length}`:void 0,depth:t,index:i.length});r.subHeaders.push(e),i.push(r)}r.headers.push(e),e.headerGroup=r})),s.push(r),t>0&&u(i,t-1)},c=t.map(((e,t)=>y$(n,e,{depth:l,index:t})));u(c,l-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:r}=e;t+=n,o.push(r)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(r=null==(i=s[0])?void 0:i.headers)?r:[]),s}const C$={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},O$={getDefaultColumnDef:()=>C$,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:g$("columnSizing",e),onColumnSizingInfoChange:g$("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:C$.minSize,null!=(o=i??e.columnDef.size)?o:C$.size),null!=(r=e.columnDef.maxSize)?r:C$.maxSize)},e.getStart=n=>{const o=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),r=o.findIndex((t=>t.id===e.id));if(r>0){const e=o[r-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...o}=t;return o}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return r=>{if(!n||!o||(null==r.persist||r.persist(),S$(r)&&r.touches&&r.touches.length>1))return;const i=e.getSize(),l=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],a=S$(r)?Math.round(r.touches[0].clientX):r.clientX,s={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var t,o;const r=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(r/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;s[t]=Math.round(100*Math.max(n+n*i,0))/100})),{...e,deltaOffset:r,deltaPercentage:i}})),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing((e=>({...e,...s}))))},c=e=>u("move",e),d=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p={moveHandler:e=>c(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",p.moveHandler),document.removeEventListener("mouseup",p.upHandler),d(e.clientX)}},f={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",f.moveHandler),document.removeEventListener("touchend",f.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof k$)return k$;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return k$=e,k$}()&&{passive:!1};S$(r)?(document.addEventListener("touchmove",f.moveHandler,h),document.addEventListener("touchend",f.upHandler,h)):(document.addEventListener("mousemove",p.moveHandler,h),document.addEventListener("mouseup",p.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:n.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let k$=null;function S$(e){return"touchstart"===e.type}const E$={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:g$("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some((e=>!e.getIsExpanded())))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var r;const i=!0===o||!(null==o||!o[e.id]);let l={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{l[e]=!0})):l=o,n=null!=(r=n)?r:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=l;return n}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||null!=o&&o[e.id])},e.getCanExpand=()=>{var n,o,r;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(r=e.subRows)||!r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},R$=(e,t,n)=>{var o;const r=n.toLowerCase();return!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())||!o.includes(r))};R$.autoRemove=e=>F$(e);const T$=(e,t,n)=>{var o;return!(null==(o=e.getValue(t))||null==(o=o.toString())||!o.includes(n))};T$.autoRemove=e=>F$(e);const N$=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};N$.autoRemove=e=>F$(e);const j$=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};j$.autoRemove=e=>F$(e)||!(null!=e&&e.length);const P$=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));P$.autoRemove=e=>F$(e)||!(null!=e&&e.length);const M$=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));M$.autoRemove=e=>F$(e)||!(null!=e&&e.length);const I$=(e,t,n)=>e.getValue(t)===n;I$.autoRemove=e=>F$(e);const _$=(e,t,n)=>e.getValue(t)==n;_$.autoRemove=e=>F$(e);const D$=(e,t,n)=>{let[o,r]=n;const i=e.getValue(t);return i>=o&&i<=r};D$.resolveFilterValue=e=>{let[t,n]=e,o="number"!=typeof t?parseFloat(t):t,r="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(o)?-1/0:o,l=null===n||Number.isNaN(r)?1/0:r;if(i>l){const e=i;i=l,l=e}return[i,l]},D$.autoRemove=e=>F$(e)||F$(e[0])&&F$(e[1]);const A$={includesString:R$,includesStringSensitive:T$,equalsString:N$,arrIncludes:j$,arrIncludesAll:P$,arrIncludesSome:M$,equals:I$,weakEquals:_$,inNumberRange:D$};function F$(e){return null==e||""===e}const L$={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:g$("columnFilters",e),onGlobalFilterChange:g$("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"==typeof o?A$.includesString:"number"==typeof o?A$.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?A$.equals:Array.isArray(o)?A$.arrIncludes:A$.weakEquals},e.getFilterFn=()=>{var n,o;return b$(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:A$[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(r=t.options.enableFilters)||r)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,o,r,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(r=t.options.enableFilters)||r)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=m$(n,r?r.value:void 0);var l;if(V$(o,i,e))return null!=(l=null==t?void 0:t.filter((t=>t.id!==e.id)))?l:[];const a={id:e.id,value:i};var s;return r?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?s:[]:null!=t&&t.length?[...t,a]:[a]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>A$.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return b$(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:A$[o]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=m$(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(V$(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function V$(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||typeof t>"u"||"string"==typeof t&&!t}const $$={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"==typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o<n||void 0===o&&n>=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=r=n):(o>n&&(o=n),r<n&&(r=n)))})),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach((t=>{let r=t.getValue(e);null!=r&&(r=+r)>=r&&(++n,o+=r)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!=0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},z$={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:g$("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...t??[],e.id]))},e.getCanGroup=()=>{var n,o,r,i;return null!=(n=null==(o=null!=(r=null==(i=e.columnDef.enableGrouping)||i)?r:t.options.enableGrouping)||o)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"==typeof o?$$.sum:"[object Date]"===Object.prototype.toString.call(o)?$$.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return b$(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:$$[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const q$={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:g$("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=v$((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let r=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&r.push(n.splice(o,1)[0])}r=[...r,...n]}else r=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));return"remove"===n?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(r,t,n)}),{key:"development"===process.env.NODE_ENV&&"getOrderColumnsFn"})}},H$={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:g$("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>m$(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=m$(t,n.pageIndex);const r=typeof e.options.pageCount>"u"||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,m$(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=m$(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=v$((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:"development"===process.env.NODE_ENV&&"getPageOptions",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},B$={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:g$("columnPinning",e),onRowPinningChange:g$("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,r,i,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(r=t.options.enableColumnPinning)?r:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:r}=t.getState().columnPinning,i=n.some((e=>null==o?void 0:o.includes(e))),l=n.some((e=>null==r?void 0:r.includes(e)));return i?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[r])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,o,r)=>{const i=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],l=r?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],a=new Set([...l,e.id,...i]);t.setRowPinning((e=>{var t,o,r,i,l,s;return"bottom"===n?{top:(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=a&&a.has(e)))),...a]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter((e=>!(null!=a&&a.has(e)))),...a],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=a&&a.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=a&&a.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=a&&a.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return"function"==typeof o?o(e):null==(n=o??r)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,i=n.some((e=>null==o?void 0:o.includes(e))),l=n.some((e=>null==r?void 0:r.includes(e)));return i?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const i=null==(n=t._getPinnedRows(r))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==i?void 0:i.indexOf(e.id))?o:-1},e.getCenterVisibleCells=v$((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.column.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=v$((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"development"===process.env.NODE_ENV&&"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=v$((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"development"===process.env.NODE_ENV&&"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.left)&&r.length||null!=(i=o.right)&&i.length)},e.getLeftLeafColumns=v$((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getLeftLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=v$((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getRightLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=v$((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.id)))}),{key:"development"===process.env.NODE_ENV&&"getCenterLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.top)&&r.length||null!=(i=o.bottom)&&i.length)},e._getPinnedRows=t=>v$((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,o)=>{var r;return(null==(r=e.options.keepPinnedRows)||r?(o??[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(o??[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:"development"===process.env.NODE_ENV&&`row.get${"top"===t?"Top":"Bottom"}Rows`,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=v$((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...t??[],...n??[]]);return e.filter((e=>!o.has(e.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterRows",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},U$={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:g$("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):r.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach((t=>{W$(r,t.id,o,e)})),r})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=v$((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?G$(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"development"===process.env.NODE_ENV&&"getSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=v$((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?G$(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=v$((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?G$(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!(!t.length||!Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=n=>{const o=e.getIsSelected();t.setRowSelection((r=>{if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return r;const i={...r};return W$(i,e.id,n,t),i}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return K$(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Y$(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Y$(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},W$=(e,t,n,o)=>{var r;const i=o.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>W$(e,t.id,n,o)))};function G$(e,t){const n=e.getState().rowSelection,o=[],r={},i=function(e,t){return e.map((e=>{var t;const l=K$(e,n);if(l&&(o.push(e),r[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:r}}function K$(e,t){var n;return null!=(n=t[e.id])&&n}function Y$(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let r=!0,i=!1;return e.subRows.forEach((e=>{if((!i||r)&&(e.getCanSelect()&&(K$(e,t)?i=!0:r=!1),e.subRows&&e.subRows.length)){const n=Y$(e,t);"all"===n?i=!0:("some"===n&&(i=!0),r=!1)}})),r?"all":!!i&&"some"}const Z$=/([0-9]+)/gm;function X$(e,t){return e===t?0:e>t?1:-1}function Q$(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function J$(e,t){const n=e.split(Z$).filter(Boolean),o=t.split(Z$).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),r=parseInt(e,10),i=parseInt(t,10),l=[r,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(l[1]))return isNaN(r)?-1:1;if(r>i)return 1;if(i>r)return-1}}return n.length-o.length}const ez={alphanumeric:(e,t,n)=>J$(Q$(e.getValue(n)).toLowerCase(),Q$(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>J$(Q$(e.getValue(n)),Q$(t.getValue(n))),text:(e,t,n)=>X$(Q$(e.getValue(n)).toLowerCase(),Q$(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>X$(Q$(e.getValue(n)),Q$(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},basic:(e,t,n)=>X$(e.getValue(n),t.getValue(n))},tz={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:g$("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return ez.datetime;if("string"==typeof n&&(o=!0,n.split(Z$).length>1))return ez.alphanumeric}return o?ez.text:ez.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return b$(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:ez[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),i=typeof n<"u"&&null!==n;t.setSorting((l=>{const a=null==l?void 0:l.find((t=>t.id===e.id)),s=null==l?void 0:l.findIndex((t=>t.id===e.id));let u,c=[],d=i?n:"desc"===r;var p;(u=null!=l&&l.length&&e.getCanMultiSort()&&o?a?"toggle":"add":null!=l&&l.length&&s!==l.length-1?"replace":a?"toggle":"replace","toggle"===u&&(i||r||(u="remove")),"add"===u)?(c=[...l,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):c="toggle"===u?l.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===u?l.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return c}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?!!(l===i||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(r=t.options.enableMultiRemove)&&!r)&&("desc"===l?"asc":"desc"):i},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},nz={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:g$("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:n??!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;return null==(n=null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=v$((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"production"===process.env.NODE_ENV&&"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=v$((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:"development"===process.env.NODE_ENV&&"row.getVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>v$((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},oz=[w$,nz,q$,B$,L$,tz,z$,E$,H$,U$,O$];function rz(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:oz};const o=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let r={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;r=null!=(t=null==e.getInitialState?void 0:e.getInitialState(r))?t:r}));const i=[];let l=!1;const a={_features:oz,options:{...o,...e},initialState:r,_queue:e=>{i.push(e),l||(l=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();l=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=m$(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,o)=>{var r;return null!=(r=null==n.options.getRowId?void 0:n.options.getRowId(e,t,o))?r:`${o?[o.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{const o=(t?n.getCoreRowModel():n.getRowModel()).rowsById[e];if(!o)throw"production"!==process.env.NODE_ENV?new Error(`getRow expected an ID, but got ${e}`):new Error;return o},_getDefaultColumnDef:v$((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:"development"===process.env.NODE_ENV&&"getDefaultColumnDef"}),_getColumnDefs:()=>n.options.columns,getAllColumns:v$((()=>[n._getColumnDefs()]),(e=>{const t=function(e,o,r){return void 0===r&&(r=0),e.map((e=>{const i=function(e,t,n,o){var r,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let s,u=null!=(r=null!=(i=l.id)?i:a?a.replace(".","_"):void 0)?r:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?s=l.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${a}" returned undefined.`)}return t}:e=>e[l.accessorKey]),!u)throw"production"!==process.env.NODE_ENV?new Error(l.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let c={id:`${String(u)}`,accessorFn:s,parent:o,depth:n,columnDef:l,columns:[],getFlatColumns:v$((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"production"===process.env.NODE_ENV&&"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:v$((()=>[e._getOrderColumnsFn()]),(e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap((e=>e.getLeafColumns()))):[c]}),{key:"production"===process.env.NODE_ENV&&"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(n,e,r,o),l=e;return i.columns=l.columns?t(l.columns,i,r+1):[],i}))};return t(e)}),{key:"development"===process.env.NODE_ENV&&"getAllColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:v$((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:v$((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumnsById",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:v$((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:"development"===process.env.NODE_ENV&&"getAllLeafColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>{const t=n._getAllFlatColumnsById()[e];return"production"!==process.env.NODE_ENV&&!t&&console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(n,a);for(let e=0;e<n._features.length;e++){const t=n._features[e];null==t||null==t.createTable||t.createTable(n)}return n}const iz=(e,t,n,o,r,i,l)=>{let a={id:t,index:o,original:n,depth:r,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,o),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>function(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const r=t(e);null!=r&&r.length&&o(r)}))};return o(e),n}(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:v$((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const r={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:v$((()=>[e,n,t,r]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:"development"===process.env.NODE_ENV&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach((o=>{null==o.createCell||o.createCell(r,n,t,e)}),{}),r}(e,a,t,t.id)))),{key:"development"===process.env.NODE_ENV&&"row.getAllCells",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:v$((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"production"===process.env.NODE_ENV&&"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a};function lz(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function az(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var o;const r=[],i={},l=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,a=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){var u;let d=e[c];const p=iz(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(p.columnFilters=d.columnFilters,null!=(u=d.subRows)&&u.length&&o<l){if(p.subRows=a(d.subRows,o+1),d=p,t(d)&&!p.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}if(t(d)||p.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}}else d=p,t(d)&&(s.push(d),i[d.id]=d,r.push(d))}return s};return{rows:a(e),flatRows:r,rowsById:i}}(e,t,n):function(e,t,n){var o;const r=[],i={},l=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,a=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){let d=e[c];if(t(d)){var u;if(null!=(u=d.subRows)&&u.length&&o<l){const e=iz(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=a(d.subRows,o+1),d=e}s.push(d),r.push(d),i[d.id]=d}}return s};return{rows:a(e),flatRows:r,rowsById:i}}(e,t,n)}function sz(e){const t=[],n=e=>{var o;t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}
|
|
35
|
+
*/function zy(e,t){return"function"==typeof e?e(t):e}function Vy(e,t){return n=>{t.setState((t=>({...t,[e]:zy(n,t[e])})))}}function By(e){return e instanceof Function}function Hy(e,t,n){let o,r=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const a=e();if(a.length===r.length&&!a.some(((e,t)=>r[t]!==e)))return o;let l;if(r=a,n.key&&n.debug&&(l=Date.now()),o=t(...a),null==n||null==n.onChange||n.onChange(o),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-l))/100,o=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return o}}function Uy(e,t,n){var o;let r={id:null!=(o=n.id)?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(r,e)})),r}const Wy={createTable:e=>{e.getHeaderGroups=Hy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>{var i,a;const l=null!=(i=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(a=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return $y(t,[...l,...n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),...s],e)}),{key:"development"===process.env.NODE_ENV&&"getHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=Hy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,o,r)=>$y(t,n=n.filter((e=>!(null!=o&&o.includes(e.id)||null!=r&&r.includes(e.id)))),e,"center")),{key:"development"===process.env.NODE_ENV&&"getCenterHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=Hy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,o)=>{var r;return $y(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"left")}),{key:"development"===process.env.NODE_ENV&&"getLeftHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=Hy((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,o)=>{var r;return $y(t,null!=(r=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],e,"right")}),{key:"development"===process.env.NODE_ENV&&"getRightHeaderGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=Hy((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=Hy((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getLeftFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=Hy((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getCenterFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=Hy((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:"development"===process.env.NODE_ENV&&"getRightFooterGroups",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=Hy((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=Hy((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getLeftFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=Hy((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getCenterFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=Hy((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:"development"===process.env.NODE_ENV&&"getRightFlatHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=Hy((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getCenterLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=Hy((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getLeftLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=Hy((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:"development"===process.env.NODE_ENV&&"getRightLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=Hy((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var o,r,i,a,l,s;return[...null!=(o=null==(r=e[0])?void 0:r.headers)?o:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),{key:"development"===process.env.NODE_ENV&&"getLeafHeaders",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}};function $y(e,t,n,o){var r,i;let a=0;const l=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let s=[];const u=(e,t)=>{const r={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let l,s=!1;if(e.column.depth===r.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{const r=Uy(n,l,{id:[o,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===l)).length}`:void 0,depth:t,index:i.length});r.subHeaders.push(e),i.push(r)}r.headers.push(e),e.headerGroup=r})),s.push(r),t>0&&u(i,t-1)},c=t.map(((e,t)=>Uy(n,e,{depth:a,index:t})));u(c,a-1),s.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,o=[0];e.subHeaders&&e.subHeaders.length?(o=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:r}=e;t+=n,o.push(r)}))):t=1;return n+=Math.min(...o),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(r=null==(i=s[0])?void 0:i.headers)?r:[]),s}const Gy={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Ky={getDefaultColumnDef:()=>Gy,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:Vy("columnSizing",e),onColumnSizingInfoChange:Vy("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:Gy.minSize,null!=(o=i??e.columnDef.size)?o:Gy.size),null!=(r=e.columnDef.maxSize)?r:Gy.maxSize)},e.getStart=n=>{const o=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),r=o.findIndex((t=>t.id===e.id));if(r>0){const e=o[r-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...o}=t;return o}))},e.getCanResize=()=>{var n,o;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(o=t.options.enableColumnResizing)||o)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var o;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(o=e.column.getSize())?o:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return r=>{if(!n||!o||(null==r.persist||r.persist(),Zy(r)&&r.touches&&r.touches.length>1))return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],l=Zy(r)?Math.round(r.touches[0].clientX):r.clientX,s={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var t,o;const r=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(r/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;s[t]=Math.round(100*Math.max(n+n*i,0))/100})),{...e,deltaOffset:r,deltaPercentage:i}})),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing((e=>({...e,...s}))))},c=e=>u("move",e),d=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},f={moveHandler:e=>c(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),d(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof Yy)return Yy;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Yy=e,Yy}()&&{passive:!1};Zy(r)?(document.addEventListener("touchmove",p.moveHandler,h),document.addEventListener("touchend",p.upHandler,h)):(document.addEventListener("mousemove",f.moveHandler,h),document.addEventListener("mouseup",f.upHandler,h)),t.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let Yy=null;function Zy(e){return"touchstart"===e.type}const Xy={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Vy("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,o;e.setExpanded(t?{}:null!=(n=null==(o=e.initialState)?void 0:o.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some((e=>!e.getIsExpanded())))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((o=>{var r;const i=!0===o||!(null==o||!o[e.id]);let a={};if(!0===o?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=o,n=null!=(r=n)?r:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return o}))},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===o||null!=o&&o[e.id])},e.getCanExpand=()=>{var n,o,r;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(o=t.options.enableExpanding)||o)&&!(null==(r=e.subRows)||!r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Qy=(e,t,n)=>{var o;const r=n.toLowerCase();return!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())||!o.includes(r))};Qy.autoRemove=e=>sb(e);const Jy=(e,t,n)=>{var o;return!(null==(o=e.getValue(t))||null==(o=o.toString())||!o.includes(n))};Jy.autoRemove=e=>sb(e);const eb=(e,t,n)=>{var o;return(null==(o=e.getValue(t))||null==(o=o.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())};eb.autoRemove=e=>sb(e);const tb=(e,t,n)=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)};tb.autoRemove=e=>sb(e)||!(null!=e&&e.length);const nb=(e,t,n)=>!n.some((n=>{var o;return!(null!=(o=e.getValue(t))&&o.includes(n))}));nb.autoRemove=e=>sb(e)||!(null!=e&&e.length);const ob=(e,t,n)=>n.some((n=>{var o;return null==(o=e.getValue(t))?void 0:o.includes(n)}));ob.autoRemove=e=>sb(e)||!(null!=e&&e.length);const rb=(e,t,n)=>e.getValue(t)===n;rb.autoRemove=e=>sb(e);const ib=(e,t,n)=>e.getValue(t)==n;ib.autoRemove=e=>sb(e);const ab=(e,t,n)=>{let[o,r]=n;const i=e.getValue(t);return i>=o&&i<=r};ab.resolveFilterValue=e=>{let[t,n]=e,o="number"!=typeof t?parseFloat(t):t,r="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(o)?-1/0:o,a=null===n||Number.isNaN(r)?1/0:r;if(i>a){const e=i;i=a,a=e}return[i,a]},ab.autoRemove=e=>sb(e)||sb(e[0])&&sb(e[1]);const lb={includesString:Qy,includesStringSensitive:Jy,equalsString:eb,arrIncludes:tb,arrIncludesAll:nb,arrIncludesSome:ob,equals:rb,weakEquals:ib,inNumberRange:ab};function sb(e){return null==e||""===e}const ub={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Vy("columnFilters",e),onGlobalFilterChange:Vy("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"==typeof o?lb.includesString:"number"==typeof o?lb.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?lb.equals:Array.isArray(o)?lb.arrIncludes:lb.weakEquals},e.getFilterFn=()=>{var n,o;return By(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?n:lb[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(r=t.options.enableFilters)||r)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,o,r,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(r=t.options.enableFilters)||r)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),r=null==t?void 0:t.find((t=>t.id===e.id)),i=zy(n,r?r.value:void 0);var a;if(cb(o,i,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const l={id:e.id,value:i};var s;return r?null!=(s=null==t?void 0:t.map((t=>t.id===e.id?l:t)))?s:[]:null!=t&&t.length?[...t,l]:[l]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>lb.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return By(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[o])?t:lb[o]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=zy(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(cb(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function cb(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||typeof t>"u"||"string"==typeof t&&!t}const db={sum:(e,t,n)=>n.reduce(((t,n)=>{const o=n.getValue(e);return t+("number"==typeof o?o:0)}),0),min:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o>n||void 0===o&&n>=n)&&(o=n)})),o},max:(e,t,n)=>{let o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(o<n||void 0===o&&n>=n)&&(o=n)})),o},extent:(e,t,n)=>{let o,r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===o?n>=n&&(o=r=n):(o>n&&(o=n),r<n&&(r=n)))})),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach((t=>{let r=t.getValue(e);null!=r&&(r=+r)>=r&&(++n,o+=r)})),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(!function(e){return Array.isArray(e)&&e.every((e=>"number"==typeof e))}(n))return;if(1===n.length)return n[0];const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t));return n.length%2!=0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},fb={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Vy("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...t??[],e.id]))},e.getCanGroup=()=>{var n,o,r,i;return null!=(n=null==(o=null!=(r=null==(i=e.columnDef.enableGrouping)||i)?r:t.options.enableGrouping)||o)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"==typeof o?db.sum:"[object Date]"===Object.prototype.toString.call(o)?db.extent:void 0},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return By(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?n:db[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return null!=o&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const pb={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Vy("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Hy((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>o=>{let r=[];if(null!=e&&e.length){const t=[...e],n=[...o];for(;n.length&&t.length;){const e=t.shift(),o=n.findIndex((t=>t.id===e));o>-1&&r.push(n.splice(o,1)[0])}r=[...r,...n]}else r=o;return function(e,t,n){if(null==t||!t.length||!n)return e;const o=e.filter((e=>!t.includes(e.id)));return"remove"===n?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(r,t,n)}),{key:"development"===process.env.NODE_ENV&&"getOrderColumnsFn"})}},hb={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Vy("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(t){if(null!=(o=null!=(r=e.options.autoResetAll)?r:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>zy(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=zy(t,n.pageIndex);const r=typeof e.options.pageCount>"u"||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,r)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,o;e.setPageIndex(t?0:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageIndex)?n:0)},e.resetPageSize=t=>{var n,o;e.setPageSize(t?10:null!=(n=null==(o=e.initialState)||null==(o=o.pagination)?void 0:o.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,zy(t,e.pageSize)),o=e.pageSize*e.pageIndex,r=Math.floor(o/n);return{...e,pageIndex:r,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let r=zy(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}})),e.getPageOptions=Hy((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:"development"===process.env.NODE_ENV&&"getPageOptions",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},gb={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Vy("columnPinning",e),onRowPinningChange:Vy("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,r,i,a,l,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,o,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(o=null!=(r=t.options.enableColumnPinning)?r:t.options.enablePinning)||o)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:o,right:r}=t.getState().columnPinning,i=n.some((e=>null==o?void 0:o.includes(e))),a=n.some((e=>null==r?void 0:r.includes(e)));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?null!=(n=null==(o=t.getState().columnPinning)||null==(o=o[r])?void 0:o.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,o,r)=>{const i=o?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=r?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],l=new Set([...a,e.id,...i]);t.setRowPinning((e=>{var t,o,r,i,a,s;return"bottom"===n?{top:(null!=(r=null==e?void 0:e.top)?r:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=l&&l.has(e)))),...l]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=l&&l.has(e)))),...l],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=l&&l.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=l&&l.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return"function"==typeof o?o(e):null==(n=o??r)||n},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,i=n.some((e=>null==o?void 0:o.includes(e))),a=n.some((e=>null==r?void 0:r.includes(e)));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const i=null==(n=t._getPinnedRows(r))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(o=null==i?void 0:i.indexOf(e.id))?o:-1},e.getCenterVisibleCells=Hy((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.column.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=Hy((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"development"===process.env.NODE_ENV&&"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=Hy((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"development"===process.env.NODE_ENV&&"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(o=e.initialState)?void 0:o.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.left)&&r.length||null!=(i=o.right)&&i.length)},e.getLeftLeafColumns=Hy((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getLeftLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=Hy((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(t??[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:"development"===process.env.NODE_ENV&&"getRightLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=Hy((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const o=[...t??[],...n??[]];return e.filter((e=>!o.includes(e.id)))}),{key:"development"===process.env.NODE_ENV&&"getCenterLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(o=e.initialState)?void 0:o.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;var r,i;return t?!(null==(n=o[t])||!n.length):!!(null!=(r=o.top)&&r.length||null!=(i=o.bottom)&&i.length)},e._getPinnedRows=t=>Hy((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,o)=>{var r;return(null==(r=e.options.keepPinnedRows)||r?(o??[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(o??[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:"development"===process.env.NODE_ENV&&`row.get${"top"===t?"Top":"Bottom"}Rows`,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Hy((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const o=new Set([...t??[],...n??[]]);return e.filter((e=>!o.has(e.id)))}),{key:"development"===process.env.NODE_ENV&&"row.getCenterRows",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},mb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Vy("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):r.forEach((e=>{delete o[e.id]})),o}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach((t=>{vb(r,t.id,o,e)})),r})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Hy((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?yb(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"development"===process.env.NODE_ENV&&"getSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=Hy((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?yb(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=Hy((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?yb(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"production"===process.env.NODE_ENV&&"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!(!t.length||!Object.keys(n).length);return o&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some((e=>!n[e.id]))&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=n=>{const o=e.getIsSelected();t.setRowSelection((r=>{if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return r;const i={...r};return vb(i,e.id,n,t),i}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return bb(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===wb(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===wb(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected(null==(o=n.target)?void 0:o.checked)}}}},vb=(e,t,n,o)=>{var r;const i=o.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach((t=>vb(e,t.id,n,o)))};function yb(e,t){const n=e.getState().rowSelection,o=[],r={},i=function(e,t){return e.map((e=>{var t;const a=bb(e,n);if(a&&(o.push(e),r[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:o,rowsById:r}}function bb(e,t){var n;return null!=(n=t[e.id])&&n}function wb(e,t,n){var o;if(null==(o=e.subRows)||!o.length)return!1;let r=!0,i=!1;return e.subRows.forEach((e=>{if((!i||r)&&(e.getCanSelect()&&(bb(e,t)?i=!0:r=!1),e.subRows&&e.subRows.length)){const n=wb(e,t);"all"===n?i=!0:("some"===n&&(i=!0),r=!1)}})),r?"all":!!i&&"some"}const xb=/([0-9]+)/gm;function _b(e,t){return e===t?0:e>t?1:-1}function kb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Eb(e,t){const n=e.split(xb).filter(Boolean),o=t.split(xb).filter(Boolean);for(;n.length&&o.length;){const e=n.shift(),t=o.shift(),r=parseInt(e,10),i=parseInt(t,10),a=[r,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(r)?-1:1;if(r>i)return 1;if(i>r)return-1}}return n.length-o.length}const Cb={alphanumeric:(e,t,n)=>Eb(kb(e.getValue(n)).toLowerCase(),kb(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Eb(kb(e.getValue(n)),kb(t.getValue(n))),text:(e,t,n)=>_b(kb(e.getValue(n)).toLowerCase(),kb(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>_b(kb(e.getValue(n)),kb(t.getValue(n))),datetime:(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},basic:(e,t,n)=>_b(e.getValue(n),t.getValue(n))},Ob={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Vy("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return Cb.datetime;if("string"==typeof n&&(o=!0,n.split(xb).length>1))return Cb.alphanumeric}return o?Cb.text:Cb.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return By(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?n:Cb[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),i=typeof n<"u"&&null!==n;t.setSorting((a=>{const l=null==a?void 0:a.find((t=>t.id===e.id)),s=null==a?void 0:a.findIndex((t=>t.id===e.id));let u,c=[],d=i?n:"desc"===r;var f;(u=null!=a&&a.length&&e.getCanMultiSort()&&o?l?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":l?"toggle":"replace","toggle"===u&&(i||r||(u="remove")),"add"===u)?(c=[...a,{id:e.id,desc:d}],c.splice(0,c.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===u?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return c}))},e.getFirstSortDir=()=>{var n,o;return(null!=(n=null!=(o=e.columnDef.sortDescFirst)?o:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(o=t.options.enableSortingRemoval)&&!o||n&&null!=(r=t.options.enableMultiRemove)&&!r)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,o;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(o=t.options.enableSorting)||o)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return null!=(n=null!=(o=e.columnDef.enableMultiSort)?o:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!o&&(o.desc?"desc":"asc")},e.getSortIndex=()=>{var n,o;return null!=(n=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:null!=(n=null==(o=e.initialState)?void 0:o.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Sb={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Vy("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:n??!e.getIsVisible()})))},e.getIsVisible=()=>{var n,o;return null==(n=null==(o=t.getState().columnVisibility)?void 0:o[e.id])||n},e.getCanHide=()=>{var n,o;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(o=t.options.enableHiding)||o)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Hy((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"production"===process.env.NODE_ENV&&"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=Hy((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:"development"===process.env.NODE_ENV&&"row.getVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>Hy((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},Nb=[Wy,Sb,pb,gb,ub,Ob,fb,Xy,hb,mb,Ky];function jb(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Nb};const o=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let r={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;r=null!=(t=null==e.getInitialState?void 0:e.getInitialState(r))?t:r}));const i=[];let a=!1;const l={_features:Nb,options:{...o,...e},initialState:r,_queue:e=>{i.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;i.length;)i.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=zy(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,o)=>{var r;return null!=(r=null==n.options.getRowId?void 0:n.options.getRowId(e,t,o))?r:`${o?[o.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{const o=(t?n.getCoreRowModel():n.getRowModel()).rowsById[e];if(!o)throw"production"!==process.env.NODE_ENV?new Error(`getRow expected an ID, but got ${e}`):new Error;return o},_getDefaultColumnDef:Hy((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:"development"===process.env.NODE_ENV&&"getDefaultColumnDef"}),_getColumnDefs:()=>n.options.columns,getAllColumns:Hy((()=>[n._getColumnDefs()]),(e=>{const t=function(e,o,r){return void 0===r&&(r=0),e.map((e=>{const i=function(e,t,n,o){var r,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let s,u=null!=(r=null!=(i=a.id)?i:l?l.replace(".","_"):void 0)?r:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?s=a.accessorFn:l&&(s=l.includes(".")?e=>{let t=e;for(const e of l.split(".")){var n;t=null==(n=t)?void 0:n[e],"production"!==process.env.NODE_ENV&&void 0===t&&console.warn(`"${e}" in deeply nested key "${l}" returned undefined.`)}return t}:e=>e[a.accessorKey]),!u)throw"production"!==process.env.NODE_ENV?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let c={id:`${String(u)}`,accessorFn:s,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:Hy((()=>[!0]),(()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"production"===process.env.NODE_ENV&&"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:Hy((()=>[e._getOrderColumnsFn()]),(e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap((e=>e.getLeafColumns()))):[c]}),{key:"production"===process.env.NODE_ENV&&"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(const t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(n,e,r,o),a=e;return i.columns=a.columns?t(a.columns,i,r+1):[],i}))};return t(e)}),{key:"development"===process.env.NODE_ENV&&"getAllColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:Hy((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:Hy((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:"development"===process.env.NODE_ENV&&"getAllFlatColumnsById",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:Hy((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:"development"===process.env.NODE_ENV&&"getAllLeafColumns",debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>{const t=n._getAllFlatColumnsById()[e];return"production"!==process.env.NODE_ENV&&!t&&console.error(`[Table] Column with id '${e}' does not exist.`),t}};Object.assign(n,l);for(let e=0;e<n._features.length;e++){const t=n._features[e];null==t||null==t.createTable||t.createTable(n)}return n}const Tb=(e,t,n,o,r,i,a)=>{let l={id:t,index:o,original:n,depth:r,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(l._valuesCache[t]=n.accessorFn(l.original,o),l._valuesCache[t]):void 0},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,o),l._uniqueValuesCache[t]):(l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>function(e,t){const n=[],o=e=>{e.forEach((e=>{n.push(e);const r=t(e);null!=r&&r.length&&o(r)}))};return o(e),n}(l.subRows,(e=>e.subRows)),getParentRow:()=>l.parentId?e.getRow(l.parentId):void 0,getParentRows:()=>{let e=[],t=l;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Hy((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,o){const r={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:Hy((()=>[e,n,t,r]),((e,t,n,o)=>({table:e,column:t,row:n,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:"development"===process.env.NODE_ENV&&"cell.getContext",debug:()=>e.options.debugAll})};return e._features.forEach((o=>{null==o.createCell||o.createCell(r,n,t,e)}),{}),r}(e,l,t,t.id)))),{key:"development"===process.env.NODE_ENV&&"row.getAllCells",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:Hy((()=>[l.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"production"===process.env.NODE_ENV&&"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(l,e)}return l};function Pb(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function Mb(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var o;const r=[],i={},a=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,l=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){var u;let d=e[c];const f=Tb(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(f.columnFilters=d.columnFilters,null!=(u=d.subRows)&&u.length&&o<a){if(f.subRows=l(d.subRows,o+1),d=f,t(d)&&!f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}if(t(d)||f.subRows.length){s.push(d),i[d.id]=d,r.push(d);continue}}else d=f,t(d)&&(s.push(d),i[d.id]=d,r.push(d))}return s};return{rows:l(e),flatRows:r,rowsById:i}}(e,t,n):function(e,t,n){var o;const r=[],i={},a=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,l=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c<e.length;c++){let d=e[c];if(t(d)){var u;if(null!=(u=d.subRows)&&u.length&&o<a){const e=Tb(n,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=l(d.subRows,o+1),d=e}s.push(d),r.push(d),i[d.id]=d}}return s};return{rows:l(e),flatRows:r,rowsById:i}}(e,t,n)}function Ab(e){const t=[],n=e=>{var o;t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}
|
|
212
36
|
/**
|
|
213
37
|
* react-table
|
|
214
38
|
*
|
|
@@ -219,4 +43,4 @@ function(e,t){const n=we(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
219
43
|
*
|
|
220
44
|
* @license MIT
|
|
221
45
|
*/
|
|
222
|
-
function uz(t,n){return t?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(t)?e.createElement(t,n):t:null}function cz({table:e,stickyHeader:t=!1,hideHeader:n=!1}){return Pe.jsxs("thead",{className:vo("table-header-group z-50 bg-[#fcfcfd] cursor-default",n&&"h-0 opacity-0"),style:t&&{position:"sticky",top:-.2}||{},children:[Pe.jsx(dz,{}),e.getHeaderGroups().map((e=>Pe.jsx("tr",{children:e.headers.map((e=>{var t;let o=e.getSize();o&&(o=`min-w-[${o}px] w-[${o}px] max-w-[${o}px]`);const r="actions"===(null==(t=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(e.headerGroup.headers))?void 0:t.id),i=e.headerGroup.headers[e.headerGroup.headers.length-(r?2:1)];((null==i?void 0:i.id)===e.id||!o)&&(o="w-full");let l="";return"actions"===e.column.id&&(l="sticky bg-transparent right-[-1px] top-[1px] bottom-[1px] bg-[#fcfcfd]"),Pe.jsx("th",{colSpan:e.colSpan,className:_D(o,"px-2.5 py-0","text-delta-500 bg-transparent border-none text-start text-[10px] font-semibold uppercase justify-start",l),style:{maxWidth:e.column.columnDef.maxSize,minWidth:e.column.columnDef.minSize},children:e.isPlaceholder?null:Pe.jsxs("div",{className:vo("flex items-center justify-left",n?"h-0":"h-[30px]",e.column.getCanSort()||"actions"===e.column.id?"cursor-pointer select-none":"",e.column.columnDef.className),onClick:e.column.getToggleSortingHandler(),children:[uz(e.column.columnDef.header,e.getContext()),{asc:Pe.jsx(Fl,{className:"text-delta-800"}),desc:Pe.jsx(Ll,{className:"text-delta-800"})}[e.column.getIsSorted()]??null]})},e.id)}))},e.id))),Pe.jsx(dz,{})]})}const dz=()=>Pe.jsx("tr",{className:"bg-[#fcfcfd] w-full relative table-row",children:Pe.jsx("th",{className:"w-[calc(100%-1px)] p-0 bg-[#fcfcfd] border-b-solid border-t-transparent border-x-0 border-[0.5px] border-b-delta-300 h-full absolute-center"})}),pz=e=>Pe.jsx(O,{...e}),fz=()=>{const[e,t]=l(null),n=!!e,o=u((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:u((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}};function hz({table:e,locale:t}){const{anchorEl:n,open:o,handleClose:r,handleOpen:i}=fz(),l="no"===t,a=()=>{var e;const t=document.querySelectorAll('[data-index="0"]');null==(e=null==t?void 0:t[0])||e.scrollIntoView({behavior:"smooth",block:"end",inline:"end"})},s=e.getPageCount(),u=e.getState().pagination.pageIndex+1,c=Array.from({length:s},((e,t)=>t+1));return s>1?Pe.jsxs("div",{className:"w-fit animate-opacity-in-5 justify-end flex items-center bg-transparent gap-2",children:[Pe.jsx(Cr,{title:l?"Nåværende side":"Current Page",children:Pe.jsx("div",{children:Pe.jsxs(IR,{variant:"outlined",dataTest:"list-pages",className:"w-[134px]",onClick:e=>{i(e)},endIcon:o?Pe.jsx(Hl,{height:24,width:24}):Pe.jsx(ql,{height:24,width:24}),children:[l?"Side":"Page"," ",u," ",l?"av":"of"," ",s]})})}),Pe.jsx(pz,{open:o,anchorEl:n,onClose:r,anchorOrigin:{vertical:-5,horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:Pe.jsx("div",{className:"max-h-[200px] w-[134px] overflow-auto",children:c.map((t=>Pe.jsxs("div",{className:vo("h-[36px] relative flex items-center pl-10 cursor-pointer hover:bg-delta-50",u===t&&"bg-gama-50"),onClick:()=>{e.setPageIndex(t-1),r(),a()},children:[u===t&&Pe.jsx(Ul,{className:"absolute left-2 top-1 text-gama-500",height:24,width:24}),Pe.jsxs("span",{children:[l?"Side":"Page"," ",t]})]},t)))})}),Pe.jsx(Cr,{title:1===u?"":l?"Forrige side":"Previous Page",children:Pe.jsx("div",{children:Pe.jsx(IR,{variant:"outlined",dataTest:"pagination-ChevronLeftIcon",startIcon:Pe.jsx(sl,{height:24,width:24}),onClick:()=>{e.previousPage(),a()},disabled:!e.getCanPreviousPage()})})}),Pe.jsx(Cr,{title:u===s?"":l?"Neste side":"Next Page",children:Pe.jsx("div",{children:Pe.jsx(IR,{variant:"outlined",dataTest:"pagination-ChevronRightIcon",startIcon:Pe.jsx(al,{height:24,width:24}),onClick:()=>{e.nextPage(),a()},disabled:!e.getCanNextPage()})})})]}):null}function mz({table:e,locale:t,children:n}){return Pe.jsxs("div",{className:"w-full gap-2 bg-transparent flex flex-row py-1 my-1 items-center justify-end ",children:[n,Pe.jsx(hz,{table:e,locale:t})]})}const gz=t=>{const{columns:n,data:o,initialState:r,enableRowSelection:i,tableInstanceRef:l,...a}=t,s=function(t){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[o]=e.useState((()=>({current:rz(n)}))),[r,i]=e.useState((()=>o.current.initialState));return o.current.setOptions((e=>({...e,...t,state:{...r,...t.state},onStateChange:e=>{i(e),null==t.onStateChange||t.onStateChange(e)}}))),o.current}({...a,columns:n,data:o,initialState:{pagination:{pageIndex:0,pageSize:50},columnVisibility:{...null==r?void 0:r.columnVisibility,[p$]:!1},...r},enableRowSelection:i,getCoreRowModel:e=>v$((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,r,i){void 0===r&&(r=0);const l=[];for(let s=0;s<t.length;s++){const u=iz(e,e._getRowId(t[s],s,i),t[s],s,r,void 0,null==i?void 0:i.id);var a;n.flatRows.push(u),n.rowsById[u.id]=u,l.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=u.originalSubRows)&&a.length&&(u.subRows=o(u.originalSubRows,r+1,u)))}return l};return n.rows=o(t),n}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getExpandedRowModel:e=>v$((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>t.rows.length&&(!0===e||Object.keys(e??{}).length)&&n?sz(t):t),{key:"development"===process.env.NODE_ENV&&"getExpandedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredRowModel:e=>v$((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,o)=>{if(!t.rows.length||(null==n||!n.length)&&!o){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const r=[],i=[];(n??[]).forEach((t=>{var n;const o=e.getColumn(t.id);if(!o)return;const i=o.getFilterFn();i?r.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value}):"production"!==process.env.NODE_ENV&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${o.id}.`)}));const l=n.map((e=>e.id)),a=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let u,c;o&&a&&s.length&&(l.push("__global__"),s.forEach((e=>{var t;i.push({id:e.id,filterFn:a,resolvedValue:null!=(t=null==a.resolveFilterValue?void 0:a.resolveFilterValue(o))?t:o})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},r.length)for(let e=0;e<r.length;e++){u=r[e];const t=u.id;n.columnFilters[t]=u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(i.length){for(let e=0;e<i.length;e++){c=i[e];const t=c.id;if(c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return az(t.rows,(e=>{for(let t=0;t<l.length;t++)if(!1===e.columnFilters[l[t]])return!1;return!0}),e)}),{key:"development"===process.env.NODE_ENV&&"getFilteredRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>v$((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const o=e.getState().sorting,r=[],i=o.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),l={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(l[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const a=e=>{const t=[...e];return t.sort(((e,t)=>{for(let o=0;o<i.length;o+=1){var n;const r=i[o],a=l[r.id],s=null!=(n=null==r?void 0:r.desc)&&n;let u=0;if(a.sortUndefined){const n=void 0===e.getValue(r.id),o=void 0===t.getValue(r.id);(n||o)&&(u=n&&o?0:n?a.sortUndefined:-a.sortUndefined)}if(0===u&&(u=a.sortingFn(e,t,r.id)),0!==u)return s&&(u*=-1),a.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;r.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t};return{rows:a(n.rows),flatRows:r,rowsById:n.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>v$((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:r}=t;let{rows:i,flatRows:l,rowsById:a}=n;const s=o*r,u=s+o;let c;i=i.slice(s,u),c=e.options.paginateExpandedRows?{rows:i,flatRows:l,rowsById:a}:sz({rows:i,flatRows:l,rowsById:a}),c.flatRows=[];const d=e=>{c.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return c.rows.forEach(d),c}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getRowId:a.getRowId||((e,t,n)=>n?[n.id,e.id].join("."):e.id.toString())});return l&&(l.current=s),{table:s}};function bz({tableData:e,actions:t}){const{anchorEl:n,open:o,handleClose:r,handleOpen:i}=fz();return Pe.jsxs("div",{className:"flex justify-center items-center",children:[Pe.jsx(IR,{dataTest:"test",variant:"text",size:"small",onClick:e=>{e.stopPropagation(),e.preventDefault(),i(e)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:Pe.jsx(_l,{className:"!text-delta-800",width:20,height:20})}),Pe.jsx(pz,{open:o,anchorEl:n,onClose:r,onClick:r,anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"right"},children:t(e.row).filter((e=>!e.hide)).map(((t,n)=>Pe.jsx(n$,{className:t.className,disabled:t.disabled,onClick:()=>{var n;null==(n=t.onClick)||n.call(t,e.row)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:t.label},n)))})]})}function vz({headerData:e}){const{anchorEl:t,open:n,handleClose:o,handleOpen:r}=fz();return Pe.jsxs("div",{className:"w-full flex items-center justify-end ",children:[Pe.jsx("div",{className:"px-2.5 h-[30px] flex items-center justify-center",onClick:r,children:Pe.jsx(tl,{icon:"mdi:pin",className:"text-delta-500 hover:text-delta-600 min-w-[20px] min-h-[20px]"})}),Pe.jsx(pz,{anchorEl:t,anchorOrigin:{horizontal:"left",vertical:"bottom"},open:n,onClose:o,children:e.table.getAllLeafColumns().filter((e=>e.getCanHide()&&e.id!==p$)).map((e=>e.columnDef.header?Pe.jsxs(n$,{onClick:()=>e.toggleVisibility(!e.getIsVisible()),children:[Pe.jsx(_N,{size:"small",dataTest:"test",disableRipple:!0,className:"p-0 pr-2",checked:e.getIsVisible()}),"string"==typeof e.columnDef.header?e.columnDef.header:e.id]},e.id):null))})]})}const yz=e=>{const{columns:t,actions:n,customActionsNode:o,headerPin:r=!0,enableRowSelection:i,expandArrow:l}=e;!t.find((e=>"actions"===e.id))&&(n||o||r)&&t.push(function(e){const{headerPin:t,actions:n,customActionsNode:o}=e;return{id:"actions",enableHiding:!1,enableSorting:!1,accessorFn:e=>e,header:e=>t?Pe.jsx(vz,{headerData:e}):null,cell:e=>n||o?Pe.jsxs("div",{className:"flex gap-2 items-center justify-end",children:[o&&(null==o?void 0:o(e)),n&&Pe.jsx(bz,{tableData:e,actions:n})]}):null,size:50}}({headerPin:r,actions:n,customActionsNode:o})),i&&!t.find((e=>e.id===p$))&&t.unshift({id:p$,minSize:40,maxSize:40,size:40,header:({table:e})=>Pe.jsx("div",{className:"w-[25px]",children:Pe.jsx(_N,{size:"small",dataTest:"cell-select-all",checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler()})}),cell:({cell:e})=>Pe.jsx("div",{className:"w-[25px]",children:Pe.jsx(_N,{size:"small",dataTest:"cell-select",checked:e.row.getIsSelected(),disabled:!e.row.getCanSelect(),onClick:e=>e.stopPropagation(),onChange:e.row.getToggleSelectedHandler()})})}),l&&!t.find((e=>e.id===f$))&&t.unshift({id:f$,minSize:40,maxSize:40,size:40,enableHiding:!1,enableSorting:!1,header:()=>null,cell:({cell:e})=>{const t=e.row.getIsExpanded();return e.row.getCanExpand()?Pe.jsx("span",{className:"flex w-fit h-fit px-2 bg-transparent outline-none focus:outline-none items-center justify-center",onClick:()=>e.row.getToggleExpandedHandler()(),children:t?Pe.jsx(Hl,{width:24,height:24}):Pe.jsx(ql,{width:24,height:24})}):null}})};function wz({tableProps:e,row:t,index:n}){const{focusable:o,loading:r,getRowClassName:i,rowHeight:l,onRowClick:a,expandArrow:s,tdClassName:u,customSubRowData:c,renderSubRows:d}=e;return Pe.jsxs(b,{children:[Pe.jsx("tr",{"data-index":n,"data-test":t.id,id:t.id,tabIndex:o?-1:void 0,className:_D("table-row align-middle group border-solid border-x border-t border-b-0 last:border-b-transparent first:border-t-transparent border-x-transparent border-y-delta-300 hover:cursor-pointer hover:bg-gama-25 focus:bg-gama-50 focus:border focus:border-gama-500",(t.getIsExpanded()||t.getIsSelected())&&"bg-gama-50",r&&"opacity-50",null==i?void 0:i(t)),style:{height:l?`${l}px`:"inherit"},onMouseDown:e=>{e.target.classList.contains("MuiModal-backdrop")||"INPUT"===e.target.nodeName||"BUTTON"===e.target.nodeName||(t.getCanExpand()&&!s&&t.getToggleExpandedHandler()(),a&&a(e,t))},children:t.getVisibleCells().map((e=>{const n="actions"===e.column.id;return Pe.jsx("td",{className:_D("break-words table-cell align-middle text-sm text-delta-900 whitespace-pre-wrap","px-2.5 py-0",u,n&&"bg-white sticky right-[-1px] group-hover:bg-gama-25",n&&(null==i?void 0:i(t))),children:uz(e.column.columnDef.cell,e.getContext())},e.id)}))}),t.getIsExpanded()&&Pe.jsx(Pe.Fragment,{children:c&&d&&d({rows:c.get(t.original.id.toString())??[],row:t.original})})]},t.id)}function xz({tableProps:e,table:t}){const n=e.hideFooter?t.getCoreRowModel().rows:t.getRowModel().rows;return Pe.jsx(Pe.Fragment,{children:n.map(((t,n)=>Pe.jsx(wz,{tableProps:e,row:t,index:n},t.id)))})}const Cz=e=>{const{columns:t,data:n,loading:o,noRowsOverlay:r,className:i,stickyHeader:l,height:a,locale:s="en",footer:u,hideHeader:c,hideFooter:d}=e;yz(e);const{table:p}=gz(e);return Pe.jsxs("div",{children:[Pe.jsx("div",{className:vo("overflow-auto w-full",i),style:{height:a},children:Pe.jsxs("table",{className:vo("table box-border border-collapse animate-opacity-appear-3 border-spacing-[1px] max-w-[inherit] m-0 w-[calc(100%-5px)]"),children:[!o&&Pe.jsx(cz,{table:p,stickyHeader:l,hideHeader:c}),Pe.jsxs("tbody",{className:"table-row-group align-middle max-w-[inherit]",children:[n.length>0&&o?Pe.jsx(Al,{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-gama-500 z-10",width:50,height:50}):null,0===n.length&&o?Pe.jsx(Pe.Fragment,{children:Array.from({length:5}).map(((e,n)=>Pe.jsx("tr",{children:Pe.jsx("td",{colSpan:t.length,children:Pe.jsx(ie,{variant:"text",width:"100%",height:50},n)})},n)))}):n.length>0?Pe.jsx(xz,{tableProps:e,table:p}):Pe.jsx("tr",{className:"h-28",children:Pe.jsx("td",{colSpan:t.length,className:"text-center align-middle text-sm text-delta-900",children:r})})]})]})}),!d&&Pe.jsx(mz,{table:p,locale:s,children:null==u?void 0:u(p)})]})},Oz="_title_17oo0_1",kz=function(e){return Pe.jsx("div",{className:Oz,children:e.children})},Sz=function(e){return Pe.jsx("h1",{"data-test":e.dataTest,className:"font-roboto md:mb-2 mb-5 text-2xl font-bold leading-10 text-[#17232E]",children:e.children})},Ez=()=>{const[e,t]=l(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:o=>{e?n():(e=>{t((()=>e.currentTarget))})(o)}}},Rz=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:r="large",variant:i="outlined"})=>{const{onAnchorClick:l,onClose:a,anchorEl:s}=Ez();return Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"w-fit h-fit relative",children:[Pe.jsx(IR,{disabled:o,variant:i,startIcon:Pe.jsx(ta,{width:"large"===r?24:20,height:"large"===r?24:20}),onClick:l,size:r,dataTest:n,children:"Filter"}),e&&Pe.jsx("div",{className:vo("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]}),Pe.jsx(pz,{open:!!s,anchorEl:s,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:"my-1",children:t})]})},Tz=({onCloseText:e,onMinimizeText:t,onExpandText:n,showCloseIcon:o=!0,showMinimizeIcon:r=!0,showExpandIcon:i=!0,title:a,label:s,children:u,open:c,onClose:d,className:p="",primaryButtonText:f,secondaryButtonText:h,onPrimaryButtonClick:m,onSecondaryButtonClick:g,dataTest:b})=>{const[v,y]=l(!1),w=()=>{y(!v)};return c?v?Pe.jsx("div",{className:"fixed bottom-4 right-4 z-[51] w-[387px] rounded-lg bg-white py-2 pl-4 pr-3 shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",children:Pe.jsxs("div",{className:"flex items-center justify-between","data-test":b,children:[Pe.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:a}),Pe.jsxs("div",{className:"flex gap-x-1",children:[Pe.jsx("div",{className:"flex items-center gap-x-2",children:Pe.jsx(IR,{dataTest:"minimize-button",variant:"text",size:"small",onClick:w,endIcon:i&&Pe.jsx(wa,{height:20,width:20,color:"text-gama-500"}),children:n})}),Pe.jsx("div",{className:"flex items-center gap-x-2",children:Pe.jsx(IR,{dataTest:"close-button",variant:"textGray",size:"small",onClick:d,endIcon:o&&Pe.jsx(Bl,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]})}):Pe.jsxs("div",{className:vo("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",p),"data-test":b,children:[Pe.jsxs("div",{className:"fixed-top flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[Pe.jsxs("div",{className:"flex items-center justify-between",children:[s?Pe.jsx("div",{className:"text-sm text-delta-700",children:s}):Pe.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a}),Pe.jsxs("div",{className:"flex gap-x-1",children:[Pe.jsx("div",{className:"flex items-center gap-x-2",children:Pe.jsx(IR,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:w,endIcon:r&&Pe.jsx(ya,{height:20,width:20,color:"text-delta-700"}),children:t})}),Pe.jsx("div",{className:"flex items-center gap-x-2",children:Pe.jsx(IR,{dataTest:"close-button",variant:"textGray",size:"small",onClick:d,endIcon:Pe.jsx(Bl,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]}),s&&Pe.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a})]}),Pe.jsx("div",{children:u}),Pe.jsxs("div",{className:"fixed-bottom flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",children:[h&&g&&Pe.jsx(IR,{dataTest:"cancel-button",variant:"outlined",onClick:g,children:h}),f&&m&&Pe.jsx(IR,{dataTest:"save-button",onClick:m,children:f})]})]}):null};export{h$ as ACTIONS_COLUMN_ID,Vl as ArchiveIcon,xl as AssignmentIcon,Cl as AssignmentOutlineIcon,le as Avatar,Ca as BadgeIcon,il as BellIcon,rl as BellOutlineIcon,la as CalendarBlankOutlineIcon,yl as CalendarIcon,wl as CalendarRangeIcon,zl as CheckBoxCheckedIcon,vl as CheckFactOutlineIcon,Ul as CheckIcon,bl as CheckOutlineIcon,ul as ChevronDoubleLeftIcon,cl as ChevronDoubleRightIcon,ql as ChevronDownIcon,sl as ChevronLeftIcon,al as ChevronRightIcon,Hl as ChevronUpIcon,ae as ClickAwayListener,Bl as CloseIcon,va as ConsentsIcon,fl as DashboardViewIcon,hl as DashboardViewOutlineIcon,ea as DeleteOutlineIcon,_l as DotsVerticalIcon,$l as DownloadIcon,Ql as DragHorizontalIcon,Ll as DropDownIcon,Fl as DropUpIcon,oa as DvrIcon,f$ as EXPAND_COLUMN_ID,fa as EarthIcon,Xl as EmptyPageIcon,ra as ErrorOutlineIcon,se as Fade,sa as FastCheckOutlineIcon,Jl as FilePdfIcon,ta as FilterIcon,jl as FindReplaceIcon,Pl as FindReplacePeopleIcon,zO as GridRow,ll as HamburgerIcon,Kl as InboxOutboxIcon,Yl as InboxOutboxOutlineIcon,wa as KeyboardCapslockIcon,aa as LinkOutlineIcon,Ol as ListNumberedIcon,pa as ListSettingsLineIcon,ca as ListStatusIcon,Al as LoadingIcon,na as LockIcon,kl as MessageProcessingIcon,Sl as MessageProcessingOutlineIcon,xa as MessageReplyIcon,Tz as MinimizableDialog,ya as MinimizeIcon,ba as OutlineCalendarMonth,ue as Paper,pl as PdfIcon,ma as PencilOutlineIcon,gl as PeopleIcon,ml as PeopleOutlineIcon,Wl as PermMediaIcon,Gl as PermMediaOutline,Ml as PersonIcon,Il as PersonOutlineIcon,ce as Popper,dl as QnrIcon,ia as ReplayIcon,El as ReportBoxIcon,Rl as ReportBoxOutlineIcon,F_ as RichInput,p$ as SELECT_COLUMN_ID,Dl as SearchIcon,Tl as SettingsIcon,ha as SettingsMenuHorizontalIcon,Nl as SettingsOutlineIcon,de as Skeleton,TN as SnackbarProvider,u$ as StyledAccordion,d$ as StyledAccordionDetails,c$ as StyledAccordionSummary,LR as StyledAlert,VR as StyledAlertTitle,Me as StyledBadge,IR as StyledButton,_N as StyledCheckbox,Ie as StyledChip,s$ as StyledContainer,jR as StyledDataGrid,PV as StyledDatePicker,_R as StyledDialog,DR as StyledDialogActions,AR as StyledDialogContent,FR as StyledDialogTitle,e$ as StyledDrawer,Rz as StyledFilterMenu,CV as StyledFormControl,YV as StyledFormControlLabel,gR as StyledFormGroup,ZV as StyledFormHelperText,XV as StyledFormLabel,PR as StyledGridActionsCellItem,AN as StyledInput,FN as StyledInputField,QV as StyledInputLabel,DD as StyledLabel,i$ as StyledLink,t$ as StyledMenu,n$ as StyledMenuItem,o$ as StyledMenuList,Sz as StyledModuleTitle,pz as StyledPopover,H_ as StyledRadio,B_ as StyledRadioGroup,L_ as StyledSelect,$_ as StyledSelectAutocomplete,V_ as StyledSelectItem,z_ as StyledSlider,NN as StyledSnackbar,JV as StyledStack,q_ as StyledSwitch,l$ as StyledTab,Cz as StyledTable,a$ as StyledTabs,VN as StyledTextarea,KV as StyledTimePicker,Cr as StyledTooltip,Oa as StyledTypography,kz as StyledWidgetTitle,da as TextBoxCheckOutlineIcon,Zl as TopicIcon,ua as UnknownDocumentOutlineRoundedIcon,ga as WarningAmberOutlineIcon,dN as closeSnackbar,lz as createColumnHelper,cN as enqueueSnackbar,Tg as gridDateComparator,IN as message,xe as omit,Ce as pick,jN as processAlertSnackBar,PN as processInfoSnackbar,Oe as tokenOptimizer,SN as useSnackbar};
|
|
46
|
+
function Rb(t,n){return t?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(t)?e.createElement(t,n):t:null}function Ib({table:e,styledTableProps:t}){const{stickyHeader:n=!1,hideHeader:o=!1}=t;return t.loading?null:Oe.jsxs("thead",{className:sn("table-header-group z-50 bg-[#fcfcfd] cursor-default",o&&"h-0 opacity-0"),style:n&&{position:"sticky",top:-.2}||{},children:[Oe.jsx(Db,{}),e.getHeaderGroups().map((e=>Oe.jsx("tr",{children:e.headers.map((e=>{var t;let n=e.getSize();n&&(n=`min-w-[${n}px] w-[${n}px] max-w-[${n}px]`);const r="actions"===(null==(t=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(e.headerGroup.headers))?void 0:t.id),i=e.headerGroup.headers[e.headerGroup.headers.length-(r?2:1)];((null==i?void 0:i.id)===e.id||!n)&&(n="w-full");let a="";return"actions"===e.column.id&&(a="sticky bg-transparent right-[-1px] top-[1px] bottom-[1px] bg-[#fcfcfd]"),Oe.jsx("th",{colSpan:e.colSpan,className:oh(n,"px-2.5 py-0","text-delta-500 bg-transparent border-none text-start text-[10px] font-semibold uppercase justify-start",a),style:{maxWidth:e.column.columnDef.maxSize,minWidth:e.column.columnDef.minSize},children:e.isPlaceholder?null:Oe.jsxs("div",{className:sn("flex items-center justify-left",o?"h-0":"h-[30px]",e.column.getCanSort()||"actions"===e.column.id?"cursor-pointer select-none":"",e.column.columnDef.className),onClick:e.column.getToggleSortingHandler(),children:[Rb(e.column.columnDef.header,e.getContext()),{asc:Oe.jsx(pi,{className:"text-delta-800"}),desc:Oe.jsx(hi,{className:"text-delta-800"})}[e.column.getIsSorted()]??null]})},e.id)}))},e.id))),Oe.jsx(Db,{})]})}const Db=()=>Oe.jsx("tr",{className:"bg-[#fcfcfd] w-full relative table-row",children:Oe.jsx("th",{className:"w-[calc(100%-1px)] p-0 bg-[#fcfcfd] border-b-solid border-t-transparent border-x-0 border-[0.5px] border-b-delta-300 h-full absolute-center"})}),Lb=({colSpan:e})=>Oe.jsx(Oe.Fragment,{children:Array.from({length:5}).map(((t,n)=>Oe.jsx("tr",{children:Oe.jsx("td",{colSpan:e,children:Oe.jsx(ie,{variant:"text",width:"100%",height:50},n)})},n)))});function qb({styledTableProps:e,row:t,index:n}){const{focusable:o,loading:r,getRowClassName:i,rowHeight:a,onRowClick:l,expandArrow:s,tdClassName:u,customSubRowData:c,renderSubRows:d}=e;return Oe.jsxs(v,{children:[Oe.jsx("tr",{"data-index":n,"data-test":t.id,id:t.id,tabIndex:o?-1:void 0,className:oh("table-row align-middle group border-solid border-x border-t border-b-0 last:border-b-transparent first:border-t-transparent border-x-transparent border-y-delta-300 hover:cursor-pointer hover:bg-gama-25 focus:bg-gama-50 focus:border focus:border-gama-500",(t.getIsExpanded()||t.getIsSelected())&&"bg-gama-50",r&&"opacity-50",null==i?void 0:i(t)),style:{height:a?`${a}px`:"inherit"},onMouseDown:e=>{e.target.classList.contains("MuiModal-backdrop")||"INPUT"===e.target.nodeName||"BUTTON"===e.target.nodeName||(t.getCanExpand()&&!s&&t.getToggleExpandedHandler()(),l&&l(e,t))},children:t.getVisibleCells().map((e=>{const n="actions"===e.column.id;return Oe.jsx("td",{className:oh("break-words table-cell align-middle text-sm text-delta-900 whitespace-pre-wrap","px-2.5 py-0",u,n&&"bg-white sticky right-[-1px] group-hover:bg-gama-25",n&&(null==i?void 0:i(t))),children:Rb(e.column.columnDef.cell,e.getContext())},e.id)}))}),t.getIsExpanded()&&Oe.jsx(Oe.Fragment,{children:c&&d&&d({rows:c.get(t.original.id.toString())??[],row:t.original})})]},t.id)}function Fb({styledTableProps:e,table:t}){const n=e.hideFooter?t.getCoreRowModel().rows:t.getRowModel().rows;return Oe.jsx(Oe.Fragment,{children:n.map(((t,n)=>Oe.jsx(qb,{styledTableProps:e,row:t,index:n},t.id)))})}const zb=({colSpan:e,noRowsOverlay:t})=>Oe.jsx("tr",{className:"h-28",children:Oe.jsx("td",{colSpan:e,className:"text-center align-middle text-sm text-delta-900",children:t})});function Vb({table:e,styledTableProps:t}){const{columns:n,data:o,loading:r,noRowsOverlay:i}=t;return Oe.jsxs("tbody",{className:"tbody",children:[o.length>0&&r&&Oe.jsx(fi,{className:"loading-icon",width:50,height:50}),0===o.length&&r?Oe.jsx(Lb,{colSpan:n.length}):o.length>0?Oe.jsx(Fb,{table:e,styledTableProps:t}):Oe.jsx(zb,{colSpan:n.length,noRowsOverlay:i})]})}const Bb=e=>Oe.jsx(z,{...e}),Hb=()=>{const[e,t]=p(null),n=!!e,o=i((e=>{t(e.currentTarget)}),[]);return{open:n,handleClose:i((()=>{t(null)}),[]),handleOpen:o,anchorEl:e}};function Ub({table:e,locale:t}){const{anchorEl:n,open:o,handleClose:r,handleOpen:i}=Hb(),a="no"===t,l=()=>{var e;const t=document.querySelectorAll('[data-index="0"]');null==(e=null==t?void 0:t[0])||e.scrollIntoView({behavior:"smooth",block:"end",inline:"end"})},s=e.getPageCount(),u=e.getState().pagination.pageIndex+1,c=Array.from({length:s},((e,t)=>t+1));return s>1?Oe.jsxs("div",{className:"w-fit animate-opacity-in-5 justify-end flex items-center bg-transparent gap-2",children:[Oe.jsx(Xn,{title:a?"Nåværende side":"Current Page",children:Oe.jsx("div",{children:Oe.jsxs(ta,{variant:"outlined",dataTest:"list-pages",className:"w-[134px]",onClick:e=>{i(e)},endIcon:o?Oe.jsx(bi,{height:24,width:24}):Oe.jsx(yi,{height:24,width:24}),children:[a?"Side":"Page"," ",u," ",a?"av":"of"," ",s]})})}),Oe.jsx(Bb,{open:o,anchorEl:n,onClose:r,anchorOrigin:{vertical:-5,horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},children:Oe.jsx("div",{className:"max-h-[200px] w-[134px] overflow-auto",children:c.map((t=>Oe.jsxs("div",{className:sn("h-[36px] relative flex items-center pl-10 cursor-pointer hover:bg-delta-50",u===t&&"bg-gama-50"),onClick:()=>{e.setPageIndex(t-1),r(),l()},children:[u===t&&Oe.jsx(xi,{className:"absolute left-2 top-1 text-gama-500",height:24,width:24}),Oe.jsxs("span",{children:[a?"Side":"Page"," ",t]})]},t)))})}),Oe.jsx(Xn,{title:1===u?"":a?"Forrige side":"Previous Page",children:Oe.jsx("div",{children:Oe.jsx(ta,{variant:"outlined",dataTest:"pagination-ChevronLeftIcon",startIcon:Oe.jsx(qr,{height:24,width:24}),onClick:()=>{e.previousPage(),l()},disabled:!e.getCanPreviousPage()})})}),Oe.jsx(Xn,{title:u===s?"":a?"Neste side":"Next Page",children:Oe.jsx("div",{children:Oe.jsx(ta,{variant:"outlined",dataTest:"pagination-ChevronRightIcon",startIcon:Oe.jsx(Lr,{height:24,width:24}),onClick:()=>{e.nextPage(),l()},disabled:!e.getCanNextPage()})})})]}):null}function Wb({table:e,styledTableProps:t}){var n;return t.hideFooter?null:Oe.jsxs("div",{className:"w-full gap-2 bg-transparent flex flex-row py-1 my-1 items-center justify-end ",children:[null==(n=t.footer)?void 0:n.call(t,e),Oe.jsx(Ub,{table:e,locale:t.locale||"en"})]})}const $b=t=>{const{columns:n,data:o,initialState:r,enableRowSelection:i,tableInstanceRef:a,...l}=t,s=function(t){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[o]=e.useState((()=>({current:jb(n)}))),[r,i]=e.useState((()=>o.current.initialState));return o.current.setOptions((e=>({...e,...t,state:{...r,...t.state},onStateChange:e=>{i(e),null==t.onStateChange||t.onStateChange(e)}}))),o.current}({...l,columns:n,data:o,initialState:{pagination:{pageIndex:0,pageSize:50},columnVisibility:{...null==r?void 0:r.columnVisibility,[Ly]:!1},...r},enableRowSelection:i,getCoreRowModel:e=>Hy((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,r,i){void 0===r&&(r=0);const a=[];for(let s=0;s<t.length;s++){const u=Tb(e,e._getRowId(t[s],s,i),t[s],s,r,void 0,null==i?void 0:i.id);var l;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=u.originalSubRows)&&l.length&&(u.subRows=o(u.originalSubRows,r+1,u)))}return a};return n.rows=o(t),n}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getExpandedRowModel:e=>Hy((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>t.rows.length&&(!0===e||Object.keys(e??{}).length)&&n?Ab(t):t),{key:"development"===process.env.NODE_ENV&&"getExpandedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredRowModel:e=>Hy((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,o)=>{if(!t.rows.length||(null==n||!n.length)&&!o){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}const r=[],i=[];(n??[]).forEach((t=>{var n;const o=e.getColumn(t.id);if(!o)return;const i=o.getFilterFn();i?r.push({id:t.id,filterFn:i,resolvedValue:null!=(n=null==i.resolveFilterValue?void 0:i.resolveFilterValue(t.value))?n:t.value}):"production"!==process.env.NODE_ENV&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${o.id}.`)}));const a=n.map((e=>e.id)),l=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let u,c;o&&l&&s.length&&(a.push("__global__"),s.forEach((e=>{var t;i.push({id:e.id,filterFn:l,resolvedValue:null!=(t=null==l.resolveFilterValue?void 0:l.resolveFilterValue(o))?t:o})})));for(let e=0;e<t.flatRows.length;e++){const n=t.flatRows[e];if(n.columnFilters={},r.length)for(let e=0;e<r.length;e++){u=r[e];const t=u.id;n.columnFilters[t]=u.filterFn(n,t,u.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))}if(i.length){for(let e=0;e<i.length;e++){c=i[e];const t=c.id;if(c.filterFn(n,t,c.resolvedValue,(e=>{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return Mb(t.rows,(e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0}),e)}),{key:"development"===process.env.NODE_ENV&&"getFilteredRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>Hy((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const o=e.getState().sorting,r=[],i=o.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=[...e];return t.sort(((e,t)=>{for(let o=0;o<i.length;o+=1){var n;const r=i[o],l=a[r.id],s=null!=(n=null==r?void 0:r.desc)&&n;let u=0;if(l.sortUndefined){const n=void 0===e.getValue(r.id),o=void 0===t.getValue(r.id);(n||o)&&(u=n&&o?0:n?l.sortUndefined:-l.sortUndefined)}if(0===u&&(u=l.sortingFn(e,t,r.id)),0!==u)return s&&(u*=-1),l.invertSorting&&(u*=-1),u}return e.index-t.index})),t.forEach((e=>{var t;r.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:r,rowsById:n.rowsById}}),{key:"development"===process.env.NODE_ENV&&"getSortedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getPaginationRowModel:e=>Hy((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:r}=t;let{rows:i,flatRows:a,rowsById:l}=n;const s=o*r,u=s+o;let c;i=i.slice(s,u),c=e.options.paginateExpandedRows?{rows:i,flatRows:a,rowsById:l}:Ab({rows:i,flatRows:a,rowsById:l}),c.flatRows=[];const d=e=>{c.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return c.rows.forEach(d),c}),{key:"development"===process.env.NODE_ENV&&"getPaginationRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getRowId:l.getRowId||((e,t,n)=>n?[n.id,e.id].join("."):e.id.toString())});return a&&(a.current=s),{table:s}};function Gb({tableData:e,actions:t}){const{anchorEl:n,open:o,handleClose:r,handleOpen:i}=Hb(),a=t(e.row).filter((e=>!e.hide));return Oe.jsx("div",{className:"flex justify-center items-center w-[42px]",children:a.length?Oe.jsxs(Oe.Fragment,{children:[Oe.jsx(ta,{dataTest:"test",variant:"text",size:"small",onClick:e=>{e.stopPropagation(),e.preventDefault(),i(e)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:Oe.jsx(ci,{className:"!text-delta-800",width:20,height:20})}),Oe.jsx(Bb,{open:o,anchorEl:n,onClose:r,onClick:r,anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"right"},children:t(e.row).filter((e=>!e.hide)).map(((t,n)=>Oe.jsx(Sy,{className:t.className,disabled:t.disabled,onClick:()=>{var n;null==(n=t.onClick)||n.call(t,e.row)},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseUp:e=>{e.stopPropagation(),e.preventDefault()},children:t.label},n)))})]}):null})}function Kb({headerData:e}){const{anchorEl:t,open:n,handleClose:o,handleOpen:r}=Hb();return Oe.jsxs("div",{className:"w-full flex items-center justify-end ",children:[Oe.jsx("div",{className:"px-2.5 h-[30px] flex items-center justify-center",onClick:r,children:Oe.jsx(Pr,{icon:"mdi:pin",className:"text-delta-500 hover:text-delta-600 min-w-[20px] min-h-[20px]"})}),Oe.jsx(Bb,{anchorEl:t,anchorOrigin:{horizontal:"left",vertical:"bottom"},open:n,onClose:o,children:e.table.getAllLeafColumns().filter((e=>e.getCanHide()&&e.id!==Ly)).map((e=>e.columnDef.header?Oe.jsxs(Sy,{onClick:()=>e.toggleVisibility(!e.getIsVisible()),children:[Oe.jsx(ns,{size:"small",dataTest:"test",disableRipple:!0,className:"p-0 pr-2",checked:e.getIsVisible()}),"string"==typeof e.columnDef.header?e.columnDef.header:e.id]},e.id):null))})]})}const Yb=e=>{const{columns:t,actions:n,customActionsNode:o,headerPin:r=!0,enableRowSelection:i,expandArrow:a}=e;!t.find((e=>"actions"===e.id))&&(n||o||r)&&t.push(function(e){const{headerPin:t,actions:n,customActionsNode:o}=e;return{id:"actions",enableHiding:!1,enableSorting:!1,accessorFn:e=>e,header:e=>t?Oe.jsx(Kb,{headerData:e}):null,cell:e=>n||o?Oe.jsxs("div",{className:"flex gap-2 items-center justify-end",children:[o&&(null==o?void 0:o(e)),n&&Oe.jsx(Gb,{tableData:e,actions:n})]}):null,size:50}}({headerPin:r,actions:n,customActionsNode:o})),i&&!t.find((e=>e.id===Ly))&&t.unshift({id:Ly,minSize:40,maxSize:40,size:40,header:({table:e})=>Oe.jsx("div",{className:"w-[25px]",children:Oe.jsx(ns,{size:"small",dataTest:"cell-select-all",checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler()})}),cell:({cell:e})=>Oe.jsx("div",{className:"w-[25px]",children:Oe.jsx(ns,{size:"small",dataTest:"cell-select",checked:e.row.getIsSelected(),disabled:!e.row.getCanSelect(),onClick:e=>e.stopPropagation(),onChange:e.row.getToggleSelectedHandler()})})}),a&&!t.find((e=>e.id===qy))&&t.unshift({id:qy,minSize:40,maxSize:40,size:40,enableHiding:!1,enableSorting:!1,header:()=>null,cell:({cell:e})=>{const t=e.row.getIsExpanded();return e.row.getCanExpand()?Oe.jsx("span",{className:"flex w-fit h-fit px-2 bg-transparent outline-none focus:outline-none items-center justify-center",onClick:()=>e.row.getToggleExpandedHandler()(),children:t?Oe.jsx(bi,{width:24,height:24}):Oe.jsx(yi,{width:24,height:24})}):null}})},Zb=e=>{const{className:t,height:n}=e;Yb(e);const{table:o}=$b(e);return Oe.jsxs("div",{className:"asma-core-ui-styled-table",children:[Oe.jsx("div",{className:oh("table-wrapper",t),style:{height:n},children:Oe.jsxs("table",{className:"table",children:[Oe.jsx(Ib,{table:o,styledTableProps:e}),Oe.jsx(Vb,{table:o,styledTableProps:e})]})}),Oe.jsx(Wb,{table:o,styledTableProps:e})]})},Xb="_title_17oo0_1",Qb=function(e){return Oe.jsx("div",{className:Xb,children:e.children})},Jb=function(e){return Oe.jsx("h1",{"data-test":e.dataTest,className:"font-roboto md:mb-2 mb-5 text-2xl font-bold leading-10 text-[#17232E]",children:e.children})},ew=()=>{const[e,t]=p(null),n=()=>{t((()=>null))};return{anchorEl:e,onClose:n,onAnchorClick:o=>{e?n():(e=>{t((()=>e.currentTarget))})(o)}}},tw=({filterIsActive:e,popoverContent:t,dataTest:n,disabled:o,size:r="large",variant:i="outlined"})=>{const{onAnchorClick:a,onClose:l,anchorEl:s}=ew();return Oe.jsxs(Oe.Fragment,{children:[Oe.jsxs("div",{className:"w-fit h-fit relative",children:[Oe.jsx(ta,{disabled:o,variant:i,startIcon:Oe.jsx(Pi,{width:"large"===r?24:20,height:"large"===r?24:20}),onClick:a,size:r,dataTest:n,children:"Filter"}),e&&Oe.jsx("div",{className:sn("h-2 w-2 bg-gama-400 rounded-full absolute","large"===r?"top-2 right-2":"top-1 right-1")})]}),Oe.jsx(Bb,{open:!!s,anchorEl:s,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:"my-1",children:t})]})},nw=({onCloseText:e,onMinimizeText:t,onExpandText:n,showCloseIcon:o=!0,showMinimizeIcon:r=!0,showExpandIcon:i=!0,title:a,label:l,children:s,open:u,onClose:c,className:d="",primaryButtonText:f,secondaryButtonText:h,onPrimaryButtonClick:g,onSecondaryButtonClick:m,dataTest:v})=>{const[y,b]=p(!1),w=()=>{b(!y)};return u?y?Oe.jsx("div",{className:"fixed bottom-4 right-4 z-[51] w-[387px] rounded-lg bg-white py-2 pl-4 pr-3 shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",children:Oe.jsxs("div",{className:"flex items-center justify-between","data-test":v,children:[Oe.jsx("div",{className:"truncate text-lg font-semibold text-delta-800",children:a}),Oe.jsxs("div",{className:"flex gap-x-1",children:[Oe.jsx("div",{className:"flex items-center gap-x-2",children:Oe.jsx(ta,{dataTest:"minimize-button",variant:"text",size:"small",onClick:w,endIcon:i&&Oe.jsx(Zi,{height:20,width:20,color:"text-gama-500"}),children:n})}),Oe.jsx("div",{className:"flex items-center gap-x-2",children:Oe.jsx(ta,{dataTest:"close-button",variant:"textGray",size:"small",onClick:c,endIcon:o&&Oe.jsx(wi,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]})}):Oe.jsxs("div",{className:sn("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",d),"data-test":v,children:[Oe.jsxs("div",{className:"fixed-top flex flex-col gap-y-2 p-4 border-b-[1px] border-delta-200",children:[Oe.jsxs("div",{className:"flex items-center justify-between",children:[l?Oe.jsx("div",{className:"text-sm text-delta-700",children:l}):Oe.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a}),Oe.jsxs("div",{className:"flex gap-x-1",children:[Oe.jsx("div",{className:"flex items-center gap-x-2",children:Oe.jsx(ta,{dataTest:"minimize-button",variant:"textGray",size:"small",onClick:w,endIcon:r&&Oe.jsx(Yi,{height:20,width:20,color:"text-delta-700"}),children:t})}),Oe.jsx("div",{className:"flex items-center gap-x-2",children:Oe.jsx(ta,{dataTest:"close-button",variant:"textGray",size:"small",onClick:c,endIcon:Oe.jsx(wi,{height:20,width:20,color:"text-delta-700"}),children:e})})]})]}),l&&Oe.jsx("div",{className:"text-2xl font-semibold text-delta-800",children:a})]}),Oe.jsx("div",{children:s}),Oe.jsxs("div",{className:"fixed-bottom flex justify-end gap-x-4 border-t-[1px] border-delta-200 p-4",children:[h&&m&&Oe.jsx(ta,{dataTest:"cancel-button",variant:"outlined",onClick:m,children:h}),f&&g&&Oe.jsx(ta,{dataTest:"save-button",onClick:g,children:f})]})]}):null};export{Fy as ACTIONS_COLUMN_ID,gi as ArchiveIcon,Xr as AssignmentIcon,Qr as AssignmentOutlineIcon,ae as Avatar,Qi as BadgeIcon,Ir as BellIcon,Rr as BellOutlineIcon,Di as CalendarBlankOutlineIcon,Yr as CalendarIcon,Zr as CalendarRangeIcon,vi as CheckBoxCheckedIcon,Kr as CheckFactOutlineIcon,xi as CheckIcon,Gr as CheckOutlineIcon,Fr as ChevronDoubleLeftIcon,zr as ChevronDoubleRightIcon,yi as ChevronDownIcon,qr as ChevronLeftIcon,Lr as ChevronRightIcon,bi as ChevronUpIcon,le as ClickAwayListener,wi as CloseIcon,Ki as ConsentsIcon,Hr as DashboardViewIcon,Ur as DashboardViewOutlineIcon,Ti as DeleteOutlineIcon,ci as DotsVerticalIcon,mi as DownloadIcon,Ni as DragHorizontalIcon,hi as DropDownIcon,pi as DropUpIcon,Ai as DvrIcon,qy as EXPAND_COLUMN_ID,Hi as EarthIcon,Si as EmptyPageIcon,Ri as ErrorOutlineIcon,se as Fade,qi as FastCheckOutlineIcon,ji as FilePdfIcon,Pi as FilterIcon,ai as FindReplaceIcon,li as FindReplacePeopleIcon,Dr as HamburgerIcon,Ei as InboxOutboxIcon,Ci as InboxOutboxOutlineIcon,Zi as KeyboardCapslockIcon,Li as LinkOutlineIcon,Jr as ListNumberedIcon,Bi as ListSettingsLineIcon,zi as ListStatusIcon,fi as LoadingIcon,Mi as LockIcon,ei as MessageProcessingIcon,ti as MessageProcessingOutlineIcon,Xi as MessageReplyIcon,nw as MinimizableDialog,Yi as MinimizeIcon,Gi as OutlineCalendarMonth,ue as Paper,Br as PdfIcon,Wi as PencilOutlineIcon,$r as PeopleIcon,Wr as PeopleOutlineIcon,_i as PermMediaIcon,ki as PermMediaOutline,si as PersonIcon,ui as PersonOutlineIcon,ce as Popper,Vr as QnrIcon,Ii as ReplayIcon,ni as ReportBoxIcon,oi as ReportBoxOutlineIcon,ap as RichInput,Ly as SELECT_COLUMN_ID,di as SearchIcon,ri as SettingsIcon,Ui as SettingsMenuHorizontalIcon,ii as SettingsOutlineIcon,de as Skeleton,Zl as SnackbarProvider,Ry as StyledAccordion,Dy as StyledAccordionDetails,Iy as StyledAccordionSummary,aa as StyledAlert,la as StyledAlertTitle,Se as StyledBadge,ta as StyledButton,ns as StyledCheckbox,Ne as StyledChip,Ay as StyledContainer,ty as StyledDatePicker,na as StyledDialog,oa as StyledDialogActions,ra as StyledDialogContent,ia as StyledDialogTitle,Cy as StyledDrawer,tw as StyledFilterMenu,$v as StyledFormControl,by as StyledFormControlLabel,Ey as StyledFormGroup,wy as StyledFormHelperText,xy as StyledFormLabel,rs as StyledInput,is as StyledInputField,_y as StyledInputLabel,rh as StyledLabel,Ty as StyledLink,Oy as StyledMenu,Sy as StyledMenuItem,Ny as StyledMenuList,Jb as StyledModuleTitle,Bb as StyledPopover,fp as StyledRadio,pp as StyledRadioGroup,lp as StyledSelect,up as StyledSelectAutocomplete,sp as StyledSelectItem,cp as StyledSlider,Xl as StyledSnackbar,ky as StyledStack,dp as StyledSwitch,Py as StyledTab,Zb as StyledTable,My as StyledTabs,ls as StyledTextarea,yy as StyledTimePicker,Xn as StyledTooltip,Ji as StyledTypography,Qb as StyledWidgetTitle,Vi as TextBoxCheckOutlineIcon,Oi as TopicIcon,Fi as UnknownDocumentOutlineRoundedIcon,$i as WarningAmberOutlineIcon,Al as closeSnackbar,Pb as createColumnHelper,Ml as enqueueSnackbar,ts as message,me as omit,ve as pick,Ql as processAlertSnackBar,Jl as processInfoSnackbar,ye as tokenOptimizer,Gl as useSnackbar};
|